1 2008-08-22 Eric Blake <ebb9@byu.net>
3 count-one-bits: relax license
4 * modules/count-one-bits (License): Relicense to LGPLv2+.
5 Suggested by Ludovic Courtès, approved by Ben Pfaff.
7 2008-08-22 Andreas Schwab <schwab@suse.de>
9 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10 Remove spurious space in assignment.
12 2008-08-21 Simon Josefsson <simon@josefsson.org>
14 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
15 Paul Eggert <eggert@CS.UCLA.EDU>.
17 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
19 * modules/gettext: Add m4/threadlib.m4.
21 2008-08-19 Eric Blake <ebb9@byu.net>
23 test-c-stack: fix compilation failure on FreeBSD 5.0
24 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
25 headers before <sys/resource.h>.
26 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
28 Reported by Nelson H. F. Beebe.
30 strverscmp: migrate from "strverscmp.h" to <string.h>
31 * modules/string (Makefile.am): Add new hooks.
32 * modules/strverscmp (Files): Remove strverscmp.h.
33 (Depends-on): Add string.
34 (configure.ac): Add indicator.
35 (Include): Mention new header.
36 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40 * lib/strverscmp.h: Delete.
41 * lib/string.in.h (strverscmp): Provide declaration, when needed.
42 * tests/test-strverscmp.c (includes): Adjust client.
43 * lib/check-version.c (includes): Likewise.
44 * NEWS: Document the change.
46 strverscmp: add unit test
47 * modules/strverscmp-tests: New file.
48 * tests/test-strverscmp.c: Likewise.
50 2008-08-19 Simon Josefsson <simon@josefsson.org>
52 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
53 regarding Windows crypto stuff, from Mono.
55 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
57 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
58 if present, for intel RND. Return error on failures.
60 2008-08-18 Ben Pfaff <blp@gnu.org>
62 gitlog-to-changelog: give better diagnostic for failed pipe-open
63 * build-aux/gitlog-to-changelog: Improve error message: suggest
64 that the version of Git may be too old.
66 2008-08-18 Simon Josefsson <simon@josefsson.org>
68 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
69 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
71 2008-08-18 Bruno Haible <bruno@clisp.org>
73 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76 2008-08-18 Bruno Haible <bruno@clisp.org>
78 * lib/glthread/threadlib.c: Include <pthread.h>.
80 2008-08-18 Bruno Haible <bruno@clisp.org>
82 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
83 glthread_recursive_lock_* macros.
84 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
87 2008-08-18 Bruno Haible <bruno@clisp.org>
89 * lib/glthread/thread.c: Avoid forcing a context switch right after
92 2008-08-17 Bruno Haible <bruno@clisp.org>
94 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
95 * lib/glthread/thread.h: Provide Win32 specific implementation.
96 * modules/thread (Files): Add lib/glthread/thread.c.
97 (Depends-on): Add lock.
98 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
100 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
103 * modules/yield: New file.
104 * lib/glthread/yield.h: New file.
105 * m4/yield.m4: New file.
106 * MODULES.html.sh (Multithreading): Add yield.
108 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
111 * modules/thread: New file.
112 * lib/glthread/thread.h: New file.
113 * m4/thread.m4: New file.
114 * MODULES.html.sh (Multithreading): Add thread.
116 2008-08-17 Bruno Haible <bruno@clisp.org>
118 * lib/glthread/lock.h: Include <stdlib.h> always.
119 * lib/glthread/tls.h: Likewise.
120 * lib/glthread/cond.h: Likewise.
122 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
125 * modules/cond: New file.
126 * lib/glthread/cond.h: New file.
127 * lib/glthread/cond.c: New file.
128 * m4/cond.m4: New file.
129 * MODULES.html.sh (Multithreading): Add cond.
131 2008-08-16 Eric Blake <ebb9@byu.net>
133 c-stack: fix regression on Irix 5.3 from 2008-06-21
134 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
136 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
137 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
138 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
139 * modules/signal (Makefile.am): Use the value.
140 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
141 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
142 * doc/posix-headers/signal.texi (signal.h): Document this
144 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
145 Reported by Tom G. Christensen.
147 2008-08-17 Bruno Haible <bruno@clisp.org>
149 New module 'threadlib'.
150 * modules/threadlib: New file.
151 * lib/glthread/threadlib.c: New file, extracted from
153 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
155 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
156 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
157 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
159 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
160 (gl_DISABLE_THREADS): Remove macro.
161 * modules/lock (Files): Remove build-aux/config.rpath.
162 (Depends-on): Remove havelib. Add threadlib.
163 (configure.ac-early): Remove section.
164 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
165 * modules/tls (Depends-on): Remove lock. Add threadlib.
166 (Link): New section, copied from threadlib.
167 * MODULES.html.sh (Multithreading): Add threadlib.
169 2008-08-14 Bruno Haible <bruno@clisp.org>
171 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
172 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
173 glthread_rwlock_unlock, glthread_rwlock_destroy,
174 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
175 glthread_recursive_lock_destroy): Define as macros always.
176 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
178 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
179 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
180 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
181 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
182 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
183 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
184 (glthread_recursive_lock_lock_func): Renamed from
185 glthread_recursive_lock_lock.
186 (glthread_recursive_lock_unlock_func): Renamed from
187 glthread_recursive_lock_unlock.
188 (glthread_recursive_lock_destroy_func): Renamed from
189 glthread_recursive_lock_destroy.
191 2008-08-14 Bruno Haible <bruno@clisp.org>
193 * lib/glthread/lock.h: Renamed from lib/lock.h.
194 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
195 * lib/glthread/tls.h: Renamed from lib/tls.h.
196 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
197 * lib/fstrcmp.c: Update includes.
198 * lib/strsignal.c: Update includes.
199 * modules/lock (Files, Makefile.am): Update.
200 (Include): Change to "glthread/lock.h".
201 * modules/tls (Files, Makefile.am): Update.
202 (Include): Change to "glthread/tls.h".
203 * tests/test-lock.c: Update includes.
204 * tests/test-tls.c: Update includes.
205 * NEWS: Mention the renamed header files.
207 2008-08-11 Jim Meyering <meyering@redhat.com>
209 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
211 2008-08-11 Eric Blake <ebb9@byu.net>
213 test-c-stack: avoid C99-ism
214 * tests/test-c-stack.c (main): Fix whitespace, move declaration
216 Reported by Alain Guibert.
218 2008-08-10 Jim Meyering <meyering@redhat.com>
220 ensure that return value of uinttostr et al are not ignored
221 * lib/inttostr.h (__GNUC_PREREQ): Define.
222 (__attribute_warn_unused_result__): Define.
223 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
225 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
227 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
228 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
230 2008-08-07 Jim Meyering <meyering@redhat.com>
232 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
234 * modules/mkstemp (License): Relicense under LGPLv2+.
235 * modules/tempname (License): Likewise.
237 2008-08-06 Bruno Haible <bruno@clisp.org>
239 * lib/poll.c (poll): Further micro-optimization.
241 2008-08-06 Jim Meyering <meyering@redhat.com>
243 inet_pton.c: use locale-independent tolower
244 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
245 (inet_pton6): Use c_tolower rather than tolower.
246 * modules/inet_pton (Depends-on): Add c-ctype.
248 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
250 * lib/poll.c (poll): Avoid division when timeout is 0, cache
251 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
253 2008-08-06 Jim Meyering <meyering@redhat.com>
255 * modules/inet_pton (License): Relicense under LGPLv2+.
257 2008-08-03 Bruno Haible <bruno@clisp.org>
259 Additional non-aborting API for lock and tls.
260 * lib/lock.h: Include <errno.h>.
261 (glthread_lock_init): New macro/function.
262 (gl_lock_init): Define as wrapper around glthread_lock_init.
263 (glthread_lock_lock): New macro/function.
264 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
265 (glthread_lock_unlock): New macro/function.
266 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
267 (glthread_lock_destroy): New macro/function.
268 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
269 (glthread_rwlock_init): New macro/function.
270 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
271 (glthread_rwlock_rdlock): New macro/function.
272 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
273 (glthread_rwlock_wrlock): New macro/function.
274 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
275 (glthread_rwlock_unlock): New macro/function.
276 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
277 (glthread_rwlock_destroy): New macro/function.
278 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
279 (glthread_recursive_lock_init): New macro/function.
280 (gl_recursive_lock_init): Define as wrapper around
281 glthread_recursive_lock_init.
282 (glthread_recursive_lock_lock): New macro/function.
283 (gl_recursive_lock_lock): Define as wrapper around
284 glthread_recursive_lock_lock.
285 (glthread_recursive_lock_unlock): New macro/function.
286 (gl_recursive_lock_unlock): Define as wrapper around
287 glthread_recursive_lock_unlock.
288 (glthread_recursive_lock_destroy): New macro/function.
289 (gl_recursive_lock_destroy): Define as wrapper around
290 glthread_recursive_lock_destroy.
291 (glthread_once): New macro/function.
292 (gl_once): Define as wrapper around glthread_once.
293 Update function declarations.
294 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
295 glthread_rwlock_init. Return error code.
296 (glthread_rwlock_rdlock_multithreaded): Renamed from
297 glthread_rwlock_rdlock. Return error code.
298 (glthread_rwlock_wrlock_multithreaded): Renamed from
299 glthread_rwlock_wrlock. Return error code.
300 (glthread_rwlock_unlock_multithreaded): Renamed from
301 glthread_rwlock_unlock. Return error code.
302 (glthread_rwlock_destroy_multithreaded): Renamed from
303 glthread_rwlock_destroy. Return error code.
304 (glthread_recursive_lock_init_multithreaded): Renamed from
305 glthread_recursive_lock_init. Return error code.
306 (glthread_recursive_lock_lock_multithreaded): Renamed from
307 glthread_recursive_lock_lock. Return error code.
308 (glthread_recursive_lock_unlock_multithreaded): Renamed from
309 glthread_recursive_lock_unlock. Return error code.
310 (glthread_recursive_lock_destroy_multithreaded): Renamed from
311 glthread_recursive_lock_destroy. Return error code.
312 (glthread_once_call): Make static.
313 (glthread_once_multithreaded): Renamed from glthread_once.
314 * lib/tls.h: Include <errno.h>.
315 (glthread_tls_key_init): New macro/function.
316 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
317 (glthread_tls_set): New macro/function.
318 (gl_tls_set): Define as wrapper around glthread_tls_set.
319 (glthread_tls_key_destroy): New macro/function.
320 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
321 Update function declarations.
322 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
324 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
326 2008-08-04 Eric Blake <ebb9@byu.net>
328 gnumakefile: use space, not TAB, outside of targets
329 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
331 2008-08-02 Jim Meyering <meyering@redhat.com>
333 getdate.y: avoid locale-dependent date parsing failure
334 In Turkish locales, getdate would fail to recognize keywords
335 containing a lowercase "i". The solution is not to rely on
336 locale-sensitive case-conversion.
337 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
338 (lookup_word): Use c_toupper in place of toupper.
339 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
340 Reported by Vefa Bicakci <bicave@superonline.com> in
341 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
342 * modules/getdate (Depends-on): Add c-ctype.
344 2008-08-02 Bruno Haible <bruno@clisp.org>
346 * gnulib-tool (func_import): When updating or creating a .gitignore
347 file, prepend each added line with a slash, and ignore leading slashes
348 from the existing lines.
349 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
351 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
353 Portability fix for GNU make 3.79.1.
354 * top/GNUmakefile: Avoid 'else COND', which older GNU make
355 versions do not understand.
357 2008-08-01 Bruno Haible <bruno@clisp.org>
359 Work around bug of HP-UX 10.20 cc with -0.0 literal.
360 * tests/test-isnanf.h (zero): New variable.
361 (main): Avoid literal -0.0f.
362 * tests/test-isnand.h (zero): New variable.
363 (main): Avoid literal -0.0.
364 * tests/test-isnanl.h (zero): New variable.
365 (main): Avoid literal -0.0L.
366 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
367 (test_float, test_double, test_long_double): Avoid literals -0.0f,
369 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
370 (test_signbitd): Avoid literal -0.0.
371 (test_signbitl): Avoid literal -0.0L.
372 * tests/test-ceilf1.c (zero): New variable.
373 (main): Avoid literal -0.0f.
374 * tests/test-ceill.c (zero): New variable.
375 (main): Avoid literal -0.0L.
376 * tests/test-floorf1.c (zero): New variable.
377 (main): Avoid literal -0.0f.
378 * tests/test-floorl.c (zero): New variable.
379 (main): Avoid literal -0.0L.
380 * tests/test-roundf1.c (zero): New variable.
381 (main): Avoid literal -0.0f.
382 * tests/test-round1.c (zero): New variable.
383 (main): Avoid literal -0.0.
384 * tests/test-roundl.c (zero): New variable.
385 (main): Avoid literal -0.0L.
386 * tests/test-truncf1.c (zero): New variable.
387 (main): Avoid literal -0.0f.
388 * tests/test-trunc1.c (zero): New variable.
389 (main): Avoid literal -0.0.
390 * tests/test-truncl.c (zero): New variable.
391 (main): Avoid literal -0.0L.
392 * tests/test-frexp.c (zero): New variable.
393 (main): Avoid literal -0.0.
394 * tests/test-frexpl.c (zero): New variable.
395 (main): Avoid literal -0.0L.
396 * tests/test-ldexpl.c (zero): New variable.
397 (main): Avoid literal -0.0L.
398 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
399 (zerod, zerol): New variables.
400 (test_function): Avoid literals -0.0, -0.0L.
401 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
402 (zerod, zerol): New variables.
403 (test_function): Avoid literals -0.0, -0.0L.
404 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
405 (zerod, zerol): New variables.
406 (test_function): Avoid literals -0.0, -0.0L.
407 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
408 (zerod, zerol): New variables.
409 (test_function): Avoid literals -0.0, -0.0L.
410 * tests/test-strtod.c (zero): New variable.
411 (main): Avoid literal -0.0.
412 Reported by Jonathan C. Patschke <jp@centtech.com>.
414 2008-07-31 Jim Meyering <meyering@redhat.com>
416 sha256.h: correct definition of SHA224_DIGEST_SIZE
417 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
418 Reported by Paulie Pena IV <paulie4@gmail.com>.
419 Define as 224 / 8, rather than as a literal.
420 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
421 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
422 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
424 2008-07-31 Bruno Haible <bruno@clisp.org>
426 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
427 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
428 Reported by Jonathan Patschke <jp@centtech.com>.
430 2008-07-31 Bruno Haible <bruno@clisp.org>
432 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
433 Reported by Paolo Bonzini <bonzini@gnu.org>.
435 2008-07-30 Eric Blake <ebb9@byu.net>
437 test-strtod: allow compilation without -lm
438 * tests/test-strtod.c (main): Avoid link dependence on fabs.
439 Reported by Dennis Clarke <blastwave@gmail.com>.
441 2008-07-28 Jim Meyering <meyering@redhat.com>
443 bootstrap: work also when there are no .po files in po/
444 * build-aux/bootstrap (update_po_files): Complete the change
445 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
447 2008-07-27 Jim Meyering <meyering@redhat.com>
449 * users.txt: Add zile.
451 2008-07-26 Ben Pfaff <blp@gnu.org>
453 Add missing dependencies on new m4/exponent[fdl].m4 files.
454 * modules/isnanf-nolibm: Add m4/exponentf.m4.
455 * modules/isnand-nolibm: Add m4/exponentd.m4.
456 * modules/isnanl-nolibm: Add m4/exponentl.m4.
457 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
458 m4/isnan[fdl].m4, because the macros actually used moved.
459 Reported by Jim Meyering.
461 2008-07-14 Ben Pfaff <blp@gnu.org>
464 * lib/isinf.c: New file.
465 * lib/math.in.h: Define isinf macro if we have decided to replace
467 * m4/isinf.m4: New file.
468 * m4/math_h.m4: Initialize and substitute variables for isinf
470 * modules/isinf: New file.
471 * modules/isinf-tests: New file.
472 * modules/math: Add substitutions for new module.
473 * tests/test-isinf.c: New file.
474 * doc/posix-functions/isinf.texi: Mention new module.
475 * MODULES.html.sh: Mention new module.
477 2008-07-14 Ben Pfaff <blp@gnu.org>
479 Factor out some macros for use by additional modules.
480 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
482 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
484 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
486 * m4/exponentf.m4: New file.
487 * m4/exponentd.m4: New file.
488 * m4/exponentl.m4: New file.
489 * modules/isnanf: Use new file m4/exponentf.m4.
490 * modules/isnand: Use new file m4/exponentd.m4.
491 * modules/isnanl: Use new file m4/exponentl.m4.
493 2008-07-23 Ulrich Drepper <drepper@redhat.com>
495 mktime.c: normalize tp->tm_isdst value to -1/0/1.
496 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
497 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
498 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
500 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
501 readlink on platforms without PATH_MAX.
503 2008-07-21 Eric Blake <ebb9@byu.net>
505 Warn, not fail, on stale version.
506 * top/GNUmakefile (_curr-ver): Tone down previous patch.
508 Don't allow installation with stale devel version number.
509 * top/GNUmakefile (_is-install-target): New macro.
510 (_curr-ver): Forbid installation with stale version number.
512 2008-07-20 Bruno Haible <bruno@clisp.org>
514 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
516 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
518 2008-07-20 Bruno Haible <bruno@clisp.org>
520 * lib/c-stack.h (c_stack_action): Add documentation.
521 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
523 2008-07-20 Bruno Haible <bruno@clisp.org>
525 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
526 * modules/readlink (License): Likewise.
528 2008-07-17 Eric Blake <ebb9@byu.net>
530 * modules/c-stack (Link): Fix typo.
532 Make c-stack use libsigsegv, when available.
533 * modules/c-stack (Depends-on): Add libsigsegv.
534 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
536 * lib/c-stack.c (SIGSTKSZ): Define fallback.
537 (segv_handler, overflow_handler, c_stack_action)
538 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
539 implementation when libsigsegv is available, but only when using
540 the library is necessary.
541 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
542 comment, explaining why XSI check fails on Linux.
543 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
544 * tests/test-c-stack2.sh: Tweak skip message.
545 * NEWS: Document new link-time requirements.
547 2008-07-16 Eric Blake <ebb9@byu.net>
549 c-stack: Expose false positives when not using libsigsegv.
550 * modules/c-stack-tests (Files): Expand test.
551 * tests/test-c-stack.c (main): Add means to conditionally trigger
552 non-overflow SIGSEGV.
553 * tests/test-c-stack2.sh: New file.
555 2008-07-14 Bruno Haible <bruno@clisp.org>
557 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
558 Reported by Eric Blake.
560 2008-07-14 Sam Steingold <sds@gnu.org>
561 Bruno Haible <bruno@clisp.org>
563 New module libsigsegv.
564 * modules/libsigsegv: New file.
565 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
567 * MODULES.html.sh (Signal handling): New section.
569 2008-07-14 Bruno Haible <bruno@clisp.org>
571 * modules/unictype/ctype-* (Description): Add the word "function".
572 Improves the resulting doc in MODULES.html.
574 2008-07-12 Ben Pfaff <blp@gnu.org>
577 * modules/longlong: New file.
579 2008-07-12 Bruno Haible <bruno@clisp.org>
581 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
584 2008-07-10 Ben Pfaff <blp@gnu.org>
587 * doc/posix-functions/isnan.texi: Mention new module.
588 * lib/math.in.h: Define isnan macro if we have decided to replace
590 * m4/isnan.m4: New file.
591 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
592 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
594 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
596 * m4/math_h.m4: Initialize and substitute variables for isnan
598 * modules/isnan: New file.
599 * modules/isnan-tests: New file.
600 * modules/math: Add substitutions for new module.
601 * tests/test-isnan.c: New file.
602 * MODULES.html.sh: Mention new module.
604 2008-07-10 Ben Pfaff <blp@gnu.org>
607 * lib/isnanf.m4: New file.
608 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
609 (gl_HAVE_ISNANF_IN_LIBM): New macro.
610 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
611 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
612 * modules/isnanf: New file.
613 * modules/isnanf-tests: New file.
614 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
616 * tests/test-isnanf-nolibm.c: factored most of its contents into
617 new file tests/test-isnanf.h.
618 * tests/test-isnanf.h: New file.
619 * tests/test-isnanf.c: New file.
620 * MODULES.html.sh: Mention new module.
621 * doc/glibc-functions/isnanf.texi: Mention new module.
623 2008-07-10 Ben Pfaff <blp@gnu.org>
626 * lib/isnand.h: New file.
627 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
628 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
629 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
631 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
632 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
633 (gl_HAVE_ISNAND_IN_LIBM): New macro.
634 * modules/isnand: New file.
635 * modules/isnand-tests: New file.
636 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
638 * tests/test-isnand-nolibm.c: factored most of its contents into
639 new file tests/test-isnand.h.
640 * tests/test-isnand.h: New file.
641 * tests/test-isnand.c: New file.
642 * MODULES.html.sh: Mention new module.
644 2008-07-10 Ben Pfaff <blp@gnu.org>
646 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
647 * lib/isnand.h: Rename lib/isnand-nolibm.h.
648 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
649 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
650 * modules/isnanf-nolibm: Update references to renamed files.
651 * modules/isnand-nolibm: Likewise.
652 * modules/isnanf-nolibm-tests: Likewise.
653 * modules/isnand-nolibm-tests: Likewise.
654 * lib/frexp.c: Likewise.
655 * lib/isfinite.c: Likewise.
656 * lib/signbitd.c: Likewise.
657 * lib/signbitf.c: Likewise.
658 * lib/vasnprintf.c: Likewise.
659 * tests/test-ceilf1.c: Likewise.
660 * tests/test-ceilf2.c: Likewise.
661 * tests/test-floorf1.c: Likewise.
662 * tests/test-floorf2.c: Likewise.
663 * tests/test-frexp.c: Likewise.
664 * tests/test-round1.c: Likewise.
665 * tests/test-round2.c: Likewise.
666 * tests/test-roundf1.c: Likewise.
667 * tests/test-strtod.c: Likewise.
668 * tests/test-trunc1.c: Likewise.
669 * tests/test-trunc2.c: Likewise.
670 * tests/test-truncf1.c: Likewise.
671 * tests/test-truncf2.c: Likewise.
672 * NEWS: Mention the renamed header files.
674 2008-07-11 Jim Meyering <meyering@redhat.com>
676 vc-list-files: make the last-resort awk code more portable
677 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
678 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
681 2008-07-10 Eric Blake <ebb9@byu.net>
683 Work with tar's bootstrap.
684 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
685 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
688 2008-07-09 Jim Meyering <meyering@redhat.com>
690 posix-shell.m4: fix typo that made this test malfunction
691 * m4/posix-shell.m4: Remove capitalization in variable name.
693 2008-07-08 Bruno Haible <bruno@clisp.org>
695 * m4/onceonly.m4: Update comments.
696 Reported by Ben Pfaff <blp@cs.stanford.edu>.
698 2008-07-04 Jim Meyering <meyering@redhat.com>
700 * users.txt: Add vc-dwim.
701 (bison, coreutils): Use the gitweb URL.
703 2008-07-03 Jim Meyering <meyering@redhat.com>
705 * users.txt: Add libffcall. From Sam Steingold.
707 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
709 getdate.y: do not ignore TZ with relative day, month or year offset
710 * lib/getdate.y (get_date): Move the tz-handling block to follow the
711 relative-date-handling, since otherwise, the latter would clobber the
712 sole output (an updated Start value) of the tz-handling block.
713 * tests/test-getdate.c: Tests for the fix
715 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
717 Recognize 'foo_LIBRARIES += libgnu.a'.
718 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
719 makefile snippet has already specified an installation location,
722 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
724 getdate.y: factor out common actions
725 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
726 Use them in place of open-coded actions.
728 2008-07-01 Simon Josefsson <simon@josefsson.org>
730 Add self-test for getdate module.
731 * modules/getdate-tests: New file.
732 * tests/test-getdate.c: New file.
734 2008-06-29 Bruno Haible <bruno@clisp.org>
736 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
738 Reported by Sylvain Beucler <beuc@beuc.net>.
740 2008-06-29 Bruno Haible <bruno@clisp.org>
742 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
743 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
745 2008-06-29 Bruno Haible <bruno@clisp.org>
747 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
749 Reported by Sylvain Beucler <beuc@beuc.net>.
751 2008-06-26 Jim Meyering <meyering@redhat.com>
753 make several modules depend on the "open" module
754 This provides slightly increased consistency when opening-for-write
755 the name of a non-directory spelled with a trailing slash.
756 * modules/chdir-safer: Likewise.
757 * modules/chown: Likewise.
758 * modules/clean-temp: Likewise.
759 * modules/copy-file: Likewise.
760 * modules/fchdir: Likewise.
761 * modules/fcntl-safer: Likewise.
762 * modules/pipe: Likewise.
763 * modules/utime: Likewise.
764 Prompted by Eric Blake and Bruno Haible.
766 2008-06-24 Andreas Schwab <schwab@suse.de>
768 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
769 literals can be used as initializers for global variables.
771 2008-06-23 Eric Blake <ebb9@byu.net>
773 Make gnulib-cache.m4 easier to diff.
774 * gnulib-tool (func_import): Allow newlines when reading cached
775 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
777 2008-06-23 Bruno Haible <bruno@clisp.org>
779 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
780 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
781 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
782 m4/signalblocking.m4.
783 (gl_PREREQ_SIGACTION): Don't invoke it.
784 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
785 gl_PREREQ_SIG_HANDLER_H.
786 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
787 Don't check for sigaction here.
789 2008-06-23 Bruno Haible <bruno@clisp.org>
791 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
792 (install_handlers): Don't set the SA_RESETHAND flag.
794 2008-06-23 Bruno Haible <bruno@clisp.org>
796 * m4/sigaction.m4: Comment fixes.
797 * lib/signal.in.h: Likewise.
799 2008-06-23 Eric Blake <ebb9@byu.net>
802 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
805 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
806 Reported by Ralf Wildenhues.
808 Avoid test failure due to SA_RESTORER.
809 * tests/test-sigaction.c (SA_MASK): New macro.
810 (main): Avoid failing due to extension flags being set.
811 Reported by Jim Meyering.
813 Revert use of sig-handler.h in sigprocmask.c.
814 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
815 it requires the existence of struct sigaction.
816 * lib/sigprocmask.c (handler_t): Restore typedef.
817 (rpl_signal, old_handlers): Use local type.
819 2008-06-22 Bruno Haible <bruno@clisp.org>
821 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
823 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
825 2008-06-22 Bruno Haible <bruno@clisp.org>
827 * doc/posix-functions/siginterrupt.texi: Move note.
829 * lib/signal.in.h (SA_RESTART): New macro.
830 * lib/sigaction.c: Update comment.
832 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
834 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
835 (gl_PREREQ_SIGPROCMASK): Invoke it.
836 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
838 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
840 * lib/sigprocmask.c: Update a comment.
842 2008-06-21 Eric Blake <ebb9@byu.net>
844 Use sigaction module rather than signal().
845 * modules/c-stack (Depends-on): Add sigaction.
846 * modules/fatal-signal (Depends-on): Likewise.
847 * modules/nanosleep (Depends-on): Likewise.
848 * modules/sigprocmask (Files): Add sig-handler.h.
849 * modules/sigaction (Files): Likewise.
850 * lib/sig-handler.h (get_handler): New file, suggested by Paul
852 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
853 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
854 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
855 (init_fatal_signals): Likewise.
856 * lib/nanosleep.c (rpl_nanosleep): Likewise.
857 (siginterrupt): Delete fallback.
858 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
860 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
863 New module sigaction, for mingw.
864 * modules/sigaction: New module...
865 * modules/sigaction-tests: ...and its test.
866 * m4/sigaction.m4: New file.
867 * lib/sigaction.c: Likewise.
868 * tests/test-sigaction.c: Likewise.
869 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
870 * modules/signal (Makefile.am): Likewise.
871 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
873 * doc/posix-headers/signal.texi (signal.h): Mention provided
875 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
876 that sigaction is preferable.
877 * doc/posix-functions/sigaction.texi (sigaction): Mention new
879 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
882 Improve robustness of sigprocmask by overriding signal.
883 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
885 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
886 (SIGKILL, SIGSTOP): Provide fallbacks.
887 (rpl_signal): Implement.
888 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
889 signal can be called inside handlers.
891 Fix nanosleep module on mingw.
892 * modules/nanosleep (Depends-on): Add sys_select.
893 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
895 Fix licensing of sigprocmask.
896 * modules/raise (License): Relicense as LGPL.
898 2008-06-21 Bruno Haible <bruno@clisp.org>
900 * lib/propername.c (proper_name_utf8): Don't use the transliterated
901 result if it contains question marks.
902 Reported by Michael Geng <linux@michaelgeng.de>.
904 2008-06-19 Bruno Haible <bruno@clisp.org>
907 * doc/gnulib.texi: Include updated-stamp.texi.
908 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
909 (updated-stamp.texi): New rule.
910 (gnulib.info): Depend on it.
911 * doc/.gitignore: Add updated-stamp.texi.
912 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
914 2008-06-19 Bruno Haible <bruno@clisp.org>
916 * doc/Makefile (gnulib.info): Update and simplify dependencies.
917 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
919 2008-06-19 Eric Blake <ebb9@byu.net>
921 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
922 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
923 Reported by Stepan Kasal.
925 2008-06-18 Bruno Haible <bruno@clisp.org>
927 * lib/fatal-signal.c (init_fatal_signals): Add comment.
928 Reported by Eric Blake.
930 2008-06-18 Eric Blake <ebb9@byu.net>
932 Work around cygwin 1.5.25 strsignal bug.
933 * tests/test-strsignal.c: Allow for const char *.
934 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
936 2008-06-18 Simon Josefsson <simon@josefsson.org>
938 * users.txt: Update URL to article and add author/date
941 2008-06-17 Bruno Haible <bruno@clisp.org>
943 New macro gl_DISABLE_THREADS.
944 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
945 if the user did not pass --enable-threads or --disable-threads option.
946 (gl_DISABLE_THREADS): New macro.
947 Reported by Eric Blake <ebb9@byu.net>.
949 2008-06-17 Bruno Haible <bruno@clisp.org>
951 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
952 when the macro ignores it.
953 Based on a patch by Eric Blake <ebb9@byu.net>.
955 2008-06-17 Bruno Haible <bruno@clisp.org>
957 * modules/tls (License): Change to LGPLv2+.
958 Reported by Eric Blake.
960 2008-06-17 Eric Blake <ebb9@byu.net>
962 Simplify c-stack prerequisites.
963 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
964 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
965 no longer requires <ucontext.h> to exist. Optimize setrlimit
967 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
970 Move c-stack test into testsuite.
971 * modules/c-stack-tests: New file.
972 * lib/c-stack.c [DEBUG]: Move test program...
973 * tests/test-c-stack.c: ...into this new file. Skip rather than
974 fail test if sigaltstack is lacking.
975 * tests/test-c-stack.sh: New driver file.
977 2008-06-16 Eric Blake <ebb9@byu.net>
979 Use raise module consistently.
980 * modules/fatal-signal (Depends-on): Add raise.
981 * modules/sigprocmask (Depends-on): Likewise.
982 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
983 * lib/sigprocmask.c (sigprocmask): Likewise.
984 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
985 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
987 Fix compliance bug in sigpending.
988 * lib/sigprocmask.c (sigpending): Return pending array via
989 parameter, not return value.
991 2008-06-14 Eric Blake <ebb9@byu.net>
993 Improve obstack-printf test code.
994 * tests/test-obstack-printf.c (test_function): Fix comment, and
995 simplify usage of obstack_* in macros. Add a test for coverage.
996 Reported by Bruno Haible.
998 2008-06-14 Bruno Haible <bruno@clisp.org>
1000 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1001 array size as a constant, not as a const variable.
1002 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1003 AC_USE_SYSTEM_EXTENSIONS.
1004 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1005 Test whether the obstack_printf function actually exists.
1006 * modules/obstack-printf (Depends-on): Add extensions.
1007 (Include): Remove obstack.h.
1008 * modules/obstack-printf-posix (Depends-on): Add extensions.
1009 (Include): Remove obstack.h.
1011 2008-06-13 Eric Blake <ebb9@byu.net>
1013 Add obstack-printf and obstack-printf-posix modules.
1014 * modules/obstack-printf: New file.
1015 * modules/obstack-printf-posix: Likewise.
1016 * MODULES.html.sh (Misc): Mention them.
1017 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1019 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1021 * modules/stdio (Makefile.am): Accomodate new modules.
1022 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1023 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1025 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1027 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1028 (gl_REPLACE_OBSTACK_PRINTF): New macros
1029 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1030 * tests/test-obstack-printf.c: New file.
1031 * modules/obstack-printf-tests: Likewise.
1032 * modules/obstack-printf-posix-tests: Likewise.
1034 2008-06-11 Bruno Haible <bruno@clisp.org>
1036 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1037 * lib/open.c: Include errno.h.
1038 (open): Fail when attempting to write to a file that has a trailing
1040 * tests/test-open.c (main): Test against trailing slash bug.
1041 * doc/posix-functions/open.texi: Mention the trailing slash bug.
1043 2008-06-10 Bruno Haible <bruno@clisp.org>
1045 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1046 for $? to work inside the trap command, with various /bin/sh-s.
1047 * tests/test-vc-list-files-cvs.sh: Likewise.
1049 2008-06-10 Bruno Haible <bruno@clisp.org>
1051 * lib/acl-internal.h: Don't include gettext.h here.
1052 * lib/set-mode-acl.c: Include gettext.h here.
1053 * lib/copy-acl.c: Likewise.
1055 2008-06-10 Bruno Haible <bruno@clisp.org>
1057 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1058 * lib/wait-process.c (wait_subprocess): Likewise.
1059 * lib/execute.h (execute): Add termsigp argument.
1060 * lib/execute.c (execute): Likewise.
1061 * lib/csharpcomp.c (compile_csharp_using_pnet,
1062 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1063 * lib/csharpexec.c (execute_csharp_using_pnet,
1064 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1065 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1066 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1067 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1068 is_jikes_present): Update.
1069 * lib/javaexec.c (execute_java_class): Update.
1070 * lib/javaversion.c (execute_and_read_line): Update.
1071 * NEWS: Document the changes.
1072 Reported by Eric Blake.
1074 2008-06-10 Eric Blake <ebb9@byu.net>
1076 Add missing include.
1077 * tests/test-strstr.c (includes): Add <signal.h>.
1078 * tests/test-strcasestr.c (includes): Likewise.
1079 * tests/test-memmem.c (includes): Likewise.
1081 2008-06-10 Bruno Haible <bruno@clisp.org>
1083 * lib/wait-process.c (wait_subprocess): Add an assertion.
1085 2008-06-10 Bruno Haible <bruno@clisp.org>
1087 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1089 2008-06-10 Bruno Haible <bruno@clisp.org>
1091 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1093 * tests/test-strcasestr.c (main): Likewise.
1094 * tests/test-strstr.c (main): Likewise.
1096 2008-06-09 Bruno Haible <bruno@clisp.org>
1098 Work around the Solaris 10 ACE ACLs ABI change.
1099 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
1100 declare if ACL_NO_TRIVIAL is present.
1101 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
1102 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
1103 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
1104 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
1105 define if ACL_NO_TRIVIAL is present.
1106 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
1107 and use the current ABI.
1108 (file_has_acl): Use same #if condition as elsewhere.
1109 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
1110 in use, and use the current ABI.
1111 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
1112 Reported by Jim Meyering.
1114 2008-06-09 Eric Blake <ebb9@byu.net>
1116 Work around environments that (stupidly) ignore SIGALRM.
1117 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
1118 before using alarm().
1119 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1120 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1121 Reported by Ian Beckwith <ianb@erislabs.net>.
1123 Produce autobuild blurb earlier in log.
1124 * modules/autobuild (configure.ac-early): Move AB_INIT here.
1126 2008-06-09 Jim Meyering <meyering@redhat.com>
1127 and Ondřej Vašík <ovasik@redhat.com>
1129 utimens.c: correct kernel bug work-around
1130 Ondřej Vašík found that the invalid return value of 280 indicates
1131 failure, not success, and the kernel bug we're trying to work
1132 around affects not just the utimensat call, but also the fallback
1134 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
1136 [HAVE_FUTIMENS]: Use the same work-around, here.
1138 2008-06-09 Jim Meyering <meyering@redhat.com>
1140 add more guards around definition of ACE_-related code
1141 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
1142 ALLOW and ACE_OWNER are also defined.
1144 2008-06-08 Bruno Haible <bruno@clisp.org>
1146 * lib/acl-internal.h: Add me as co-author.
1147 * lib/file-has-acl.c: Likewise.
1148 * lib/set-mode-acl.c: Likewise.
1149 * lib/copy-acl.c: Likewise.
1151 2008-06-08 Bruno Haible <bruno@clisp.org>
1153 Add support for AIX ACLs.
1154 * lib/acl-internal.h (acl_nontrivial): New declaration.
1155 * lib/file-has-acl.c (acl_nontrivial): New function.
1156 (file_has_acl): Add implementation using AIX 4 ACL API.
1157 * lib/set-mode-acl.c (qset_acl): Likewise.
1158 * lib/copy-acl.c (qcopy_acl): Likewise.
1160 2008-06-08 Bruno Haible <bruno@clisp.org>
1162 Add support for HP-UX ACLs.
1163 * lib/acl-internal.h (acl_nontrivial): New declaration.
1164 * lib/file-has-acl.c (acl_nontrivial): New function.
1165 (file_has_acl): Add implementation using HP-UX 11 ACL API.
1166 * lib/set-mode-acl.c (qset_acl): Likewise.
1167 * lib/copy-acl.c (qcopy_acl): Likewise.
1169 2008-06-08 Bruno Haible <bruno@clisp.org>
1171 Add support for Cygwin ACLs.
1172 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
1173 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
1174 the chmod_or_fchmod call.
1175 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
1177 2008-06-08 Bruno Haible <bruno@clisp.org>
1179 Fix bug with setuid modes in Solaris 10+ code.
1180 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
1181 succeeded, when the mode contains some special bits.
1183 2008-06-08 Bruno Haible <bruno@clisp.org>
1185 Add support for Solaris 7..10 ACLs.
1186 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
1188 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
1190 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
1191 * lib/set-mode-acl.c (qset_acl): Likewise.
1192 * lib/copy-acl.c (qcopy_acl): Likewise.
1194 2008-06-08 Bruno Haible <bruno@clisp.org>
1196 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
1198 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
1199 (acl_access_nontrivial): Remove MacOS X case.
1200 (file_has_acl): Use acl_extended_nontrivial.
1201 * lib/copy-acl.c (qcopy_acl): Likewise.
1203 2008-06-08 Bruno Haible <bruno@clisp.org>
1205 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
1207 2008-06-08 Jim Meyering <meyering@redhat.com>
1209 * modules/acl (Maintainer): Add Bruno Haible.
1211 2008-06-07 Bruno Haible <bruno@clisp.org>
1213 Improve support for Tru64 ACLs.
1214 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
1217 2008-06-07 Bruno Haible <bruno@clisp.org>
1219 Add support for MacOS X ACLs.
1220 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
1221 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
1222 * lib/set-mode-acl.c (qset_acl): Likewise.
1223 * lib/copy-acl.c (qcopy_acl): Likewise.
1225 2008-06-07 Bruno Haible <bruno@clisp.org>
1227 Fix memory leak introduced on 2008-05-22.
1228 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
1231 2008-06-07 Bruno Haible <bruno@clisp.org>
1233 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
1234 to construct an empty ACL.
1236 2008-06-07 Bruno Haible <bruno@clisp.org>
1238 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
1240 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
1242 2008-06-07 Bruno Haible <bruno@clisp.org>
1244 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
1245 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
1247 2008-06-07 Bruno Haible <bruno@clisp.org>
1249 * doc/posix-functions/_setjmp.texi: Explain the use of this function
1250 regardless of POSIX.
1251 * doc/posix-functions/_longjmp.texi: Likewise.
1252 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
1253 SystemV platform in this case.
1255 2008-06-06 Eric Blake <ebb9@byu.net>
1257 Document abort() bugs.
1258 * doc/posix-functions/abort.texi (abort): Mention anomalies.
1260 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
1261 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
1263 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
1264 siglongjmp, but only as a macro.
1265 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
1267 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
1269 Tweak documentation to cover cygwin argz bugs.
1270 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
1271 argz bug fix; no code change needed since no cygwin releases
1272 occurred between the last fix and the bug being tested.
1273 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
1274 module and recently fixed cygwin bugs.
1275 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
1276 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
1277 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
1278 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
1279 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
1281 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
1282 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
1283 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
1284 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
1285 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
1286 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
1289 Avoid gcc warning on cygwin.
1290 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
1291 !ACL_NO_TRIVIAL]: Avoid unused variable.
1293 2008-06-05 Eric Blake <ebb9@byu.net>
1295 Be tolerant of UNKNOWN version in gnulib-tool test dir.
1296 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
1297 git-version-gen fails to come up with a version.
1298 Reported by Simon Josefsson.
1300 2008-06-05 Jim Meyering <meyering@redhat.com>
1301 Paul Eggert <eggert@cs.ucla.edu>
1303 utimens.c: work around a probable Linux kernel bug
1304 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
1305 appears to be a kernel bug that causes utimensat to return 280
1306 instead of 0, indicating success.
1308 2008-06-04 Bruno Haible <bruno@clisp.org>
1310 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
1313 2008-06-04 Bruno Haible <bruno@clisp.org>
1315 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
1316 * lib/file-has-acl.c (acl_access_nontrivial): New function.
1317 (file_has_acl): Use it. Save errno afterwards.
1318 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
1320 2008-06-03 Bruno Haible <bruno@clisp.org>
1322 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
1323 draft code. Simplify #ifs.
1324 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
1325 Put Solaris code after POSIX-draft code. Fix comments regarding
1326 Solaris 10, HP-UX. Mention Cygwin.
1327 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
1329 2008-06-03 Eric Blake <ebb9@byu.net>
1331 Provide fallback for older kernels.
1332 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
1333 Provide runtime fallback if kernel lacks support.
1334 Reported by Mike Frysinger.
1336 2008-06-02 Bruno Haible <bruno@clisp.org>
1338 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
1341 2008-06-02 Bruno Haible <bruno@clisp.org>
1343 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
1344 * lib/copy-acl.c (qcopy_acl): Update comment.
1346 2008-06-02 Bruno Haible <bruno@clisp.org>
1348 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
1351 2008-06-02 Bruno Haible <bruno@clisp.org>
1353 * tests/test-file-has-acl.sh: Use different code for Cygwin.
1354 * tests/test-set-mode-acl.sh: Likewise.
1355 * tests/test-copy-acl.sh: Likewise.
1356 * tests/test-copy-file.sh: Likewise.
1358 2008-06-02 Bruno Haible <bruno@clisp.org>
1360 * tests/test-file-has-acl.sh: Remove unused code.
1362 2008-06-01 Bruno Haible <bruno@clisp.org>
1364 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
1365 (copy_acl): Just a wrapper around qcopy_acl that emits the error
1367 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
1369 2008-06-01 Bruno Haible <bruno@clisp.org>
1371 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
1372 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
1373 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
1375 * modules/acl-tests (configure.ac): Remove tests now contained in
1378 2008-06-02 Jim Meyering <meyering@redhat.com>
1380 announce-gen: use a better key-server host name
1381 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
1382 it may be more consistently reliable. Suggested by Werner Koch
1383 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
1385 2008-06-01 Bruno Haible <bruno@clisp.org>
1387 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
1388 Reported by Voroskoi Andras <voroskoi@gmail.com>.
1390 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
1392 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
1394 2008-06-01 Bruno Haible <bruno@clisp.org>
1397 * tests/test-file-has-acl.sh: New file.
1398 * tests/test-file-has-acl.c: New file.
1399 * tests/test-set-mode-acl.sh: New file.
1400 * tests/test-set-mode-acl.c: New file.
1401 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
1402 * tests/test-copy-acl.c: New file.
1403 * modules/acl-tests: New file, based on modules/copy-file-tests.
1404 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
1405 (Depends-on): Add acl-tests.
1406 (configure.ac): Remove checks.
1407 (Makefile.am): Don't create test-sameacls program here any more.
1409 2008-06-01 Bruno Haible <bruno@clisp.org>
1411 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
1412 * tests/test-sameacls.c: Include progname.h.
1413 (main): Invoke set_program_name. Portability fixes for MacOS X,
1416 2008-06-01 Bruno Haible <bruno@clisp.org>
1418 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
1420 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
1422 2008-06-01 Bruno Haible <bruno@clisp.org>
1424 * modules/rpmatch (Depends-on): Add strdup.
1426 2008-06-01 Bruno Haible <bruno@clisp.org>
1428 * lib/pipe.c: Include unistd-safer.h.
1429 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
1430 * modules/pipe (Depends-on): Add unistd-safer.
1432 2008-05-30 Simon Josefsson <simon@josefsson.org>
1434 * modules/autobuild (configure.ac): Call AB_INIT.
1436 2008-05-30 Simon Josefsson <simon@josefsson.org>
1438 * tests/test-getaddrinfo.c: Don't print debug messages by default.
1439 Suggested by Bruno Haible <bruno@clisp.org>.
1441 2008-05-30 Simon Josefsson <simon@josefsson.org>
1443 * tests/test-base64.c: Cast size_t to unsigned long when invoking
1444 printf. Use %lu instead of %d. Reported by Bruno Haible
1447 2008-05-29 Eric Blake <ebb9@byu.net>
1449 Prefer new POSIX 200x interfaces over futimesat.
1450 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
1451 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
1453 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
1455 2008-05-28 Bruno Haible <bruno@clisp.org>
1457 * modules/stpcpy (License): Change to LGPLv2+.
1458 Requested by David Lutterkort <dlutter@redhat.com>.
1460 2008-05-27 Bruno Haible <bruno@clisp.org>
1462 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
1464 Reported by Jose E. Marchesi <jemarch@gnu.org>.
1466 2008-05-27 Bruno Haible <bruno@clisp.org>
1468 * modules/iconv_open (Link): New section, from module 'iconv'.
1469 * modules/striconv (Link): Likewise.
1470 * modules/striconveh (Link): Likewise.
1471 * modules/xstriconv (Link): Likewise.
1472 * modules/unicodeio (Link): Likewise.
1473 * modules/propername (Link): Likewise.
1474 Reported by Jim Meyering.
1476 2008-05-26 Jim Meyering <meyering@redhat.com>
1478 sha256: do not artificially restrict buffer length to be < 2^32
1479 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
1481 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
1484 avoid unaligned access errors, e.g., on sparc
1485 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
1486 direct access through a possibly-unaligned uint64* pointer.
1487 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
1488 direct access through a possibly-unaligned uint32* pointer.
1489 Prompted by this patch from Tom "spot" Callaway:
1490 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
1492 sha512.c: fix typo in comment
1493 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
1495 2008-05-25 Bruno Haible <bruno@clisp.org>
1497 * lib/set-mode-acl.c: Renamed from lib/acl.c.
1498 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
1499 (Makefile.am): Update lib_SOURCES.
1501 2008-05-25 Bruno Haible <bruno@clisp.org>
1503 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
1505 2008-05-25 Jim Meyering <meyering@redhat.com>
1507 useless-if-before-free: freed expr may have white-space differences
1508 * build-aux/useless-if-before-free: Recognize cases in which the
1509 freed expression differs from the tested one in embedded white
1510 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
1511 $1 was used, so we can't make any regexp shy. Improved tests now
1514 useless-if-before-free: accept white space in the expression.
1515 * build-aux/useless-if-before-free: For now, any white space
1516 in the expression must be identical in the free argument.
1518 useless-if-before-free: efficiency tweak
1519 * build-aux/useless-if-before-free: Make the expression-matching
1521 Make the *outer* regexp shy, not the expr-matching one.
1523 update code-in-comment to accept cast of free arg
1524 * build-aux/useless-if-before-free: Update regexp.
1526 2008-05-25 Bruno Haible <bruno@clisp.org>
1528 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
1529 * modules/copy-file-tests (Files, Makefile.am): Update.
1530 * tests/test-copy-file.c (func_test_copy): Update.
1532 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
1534 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
1536 2008-05-23 Bruno Haible <bruno@clisp.org>
1538 Improve support for ACLs on OSF/1.
1539 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
1540 Remove fallback for unknown flavors of ACLs.
1542 2008-05-22 Bruno Haible <bruno@clisp.org>
1544 Add support for ACLs on OSF/1.
1545 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
1547 (acl_free_text): New macro fallback.
1548 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
1550 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
1551 acl_free_text function. Require AC_C_INLINE.
1553 2008-05-22 Bruno Haible <bruno@clisp.org>
1555 Make copy_acl work on MacOS X 10.5.
1556 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
1557 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
1558 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
1559 If MODE_INSIDE_ACL, don't assume that every system has the same text
1560 representation for ACLs as FreeBSD.
1561 * lib/copy-acl.c (copy_acl): Add support for platforms with
1563 * lib/file-has-acl.c (file_has_acl): Likewise.
1564 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
1565 FreeBSD, MacOS X, or IRIX, respectively.
1567 2008-05-22 Bruno Haible <bruno@clisp.org>
1569 * lib/acl.h: Don't include <sys/acl.h>.
1570 (GETACLCNT): Move fallback to lib/acl-internal.h.
1571 * lib/acl-internal.h: Include <sys/acl.h> here.
1572 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
1574 2008-05-22 Bruno Haible <bruno@clisp.org>
1576 Split off copy_acl function to separate file.
1577 * lib/copy-acl.c: New file, extracted from lib/acl.c.
1578 * lib/acl.c (copy_acl): Moved function to separate file.
1579 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
1580 * modules/acl (Files): Add lib/copy-acl.c.
1581 (Makefiles.am): Augment lib_SOURCES.
1583 2008-05-22 Bruno Haible <bruno@clisp.org>
1585 * modules/copy-file-tests: New file.
1586 * tests/test-copy-file.sh: New file.
1587 * tests/test-copy-file.c: New file.
1588 * tests/test-copy-file-sameacls.c: New file.
1590 2008-05-22 Eric Blake <ebb9@byu.net>
1593 * tests/test-memcmp.c (main): Pass NULL indirectly.
1595 2008-05-21 Bruno Haible <bruno@clisp.org>
1597 Add reference doc about ACLs.
1598 * doc/acl-resources.txt: New file.
1599 * doc/acl-cygwin.txt: New file.
1601 2008-05-21 Bruno Haible <bruno@clisp.org>
1603 Avoid one more warning from gcc.
1604 * lib/vasnprintf.c (IF_LINT): Update comments.
1605 (VASNPRINTF): Use it also for the 'prefix' array initializer.
1607 2008-05-21 Jim Meyering <meyering@redhat.com>
1609 avoid a warning from gcc
1610 * lib/vasnprintf.c (IF_LINT): Define.
1611 (scale10_round_decimal_long_double):
1612 Use it to avoid a "may be used uninitialized" warning.
1613 (scale10_round_decimal_double): Likewise.
1615 2008-05-21 Simon Josefsson <simon@josefsson.org>
1617 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
1620 2008-05-20 Bruno Haible <bruno@clisp.org>
1622 * tests/test-memcmp.c (main): Test also the sign of the result. Test
1623 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
1625 2008-05-20 Simon Josefsson <simon@josefsson.org>
1627 * modules/memcmp-tests: New file.
1628 * tests/test-memcmp.c: New file.
1630 2008-05-19 Bruno Haible <bruno@clisp.org>
1632 * modules/propername (Notice, configure.ac): Put quoted "..." into
1634 * lib/propername.h: Update comments accordingly.
1635 Reported by Eric Blake.
1637 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
1639 * modules/getpass-gnu (Depends-on): Add fseeko.
1641 2008-05-19 Simon Josefsson <simon@josefsson.org>
1643 * modules/base64-tests: New file.
1645 2008-05-19 Bo Borgerson <gigabo@gmail.com>
1647 * lib/base64.c (base64_decode_ctx): If a decode context structure
1648 was passed in use it to ignore newlines. If a context structure
1649 was _not_ passed in, continue to treat newlines as garbage (this
1650 is the historical behavior). Formerly base64_decode.
1651 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
1652 takes a decode context structure.
1653 * lib/base64.h (base64_decode): Macro for four-argument calls.
1654 (base64_decode_alloc): Likewise.
1655 * lib/base64.c (base64_decode_ctx): If a decode context structure
1656 was passed in use it to ignore newlines. If a context structure
1657 was _not_ passed in, continue to treat newlines as garbage (this
1658 is the historical behavior). Formerly base64_decode.
1659 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
1660 takes a decode context structure.
1661 * lib/base64.h (base64_decode): Macro for four-argument calls.
1662 (base64_decode_alloc): Likewise.
1664 2008-05-19 Jim Meyering <meyering@redhat.com>
1666 avoid a warning from gcc
1667 * lib/trim.c (IF_LINT): Define.
1668 (trim2): Use it to avoid a "may be used uninitialized" warning.
1671 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
1673 2008-05-19 Bruno Haible <bruno@clisp.org>
1675 * doc/glibc-functions/getpass.texi: Document limits of other
1678 2008-05-19 Simon Josefsson <simon@josefsson.org>
1679 Bruno Haible <bruno@clisp.org>
1681 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
1683 2008-05-18 Bruno Haible <bruno@clisp.org>
1685 * modules/propername: New file, from GNU gettext.
1686 * lib/propername.h: New file, from GNU gettext.
1687 * lib/propername.c: New file, from GNU gettext.
1688 * MODULES.html.sh (Internationalization functions): Add propername.
1690 2008-05-16 Jim Meyering <meyering@redhat.com>
1691 Bruno Haible <bruno@clisp.org>
1693 Avoid some warnings from "gcc -Wshadow".
1694 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
1696 2008-05-15 Eric Blake <ebb9@byu.net>
1698 Extend previous patch to cygwin 1.7.0.
1699 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
1700 fast implementation in cygwin >= 1.7.0.
1701 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1702 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1704 2008-05-15 Bruno Haible <bruno@clisp.org>
1706 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
1707 implementation in glibc >= 2.9.
1708 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1709 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1711 2008-05-15 Bruno Haible <bruno@clisp.org>
1713 * MODULES.html.sh (Internationalization functions): Remove linebreak.
1714 (Unicode string functions): Add unilbrk/*.
1715 Reported by Karl Berry.
1717 2008-05-15 Eric Blake <ebb9@byu.net>
1719 Fix violation of <stdbool.h> replacement in regex.
1720 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
1721 * lib/regexec.c (re_search_internal): Likewise.
1722 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
1724 2008-05-15 Jim Meyering <meyering@redhat.com>
1726 avoid distracting test output when git or cvs is not found
1727 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
1728 * tests/test-vc-list-files-git.sh: Likewise.
1730 2008-05-15 Eric Blake <ebb9@byu.net>
1732 Glibc finally accepted the memmem speedup code, bugzilla #5514.
1733 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
1735 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1736 * doc/posix-functions/strstr.texi (strstr): Likewise.
1737 * lib/str-two-way.h (MAX): Sychronize with glibc.
1739 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
1741 * lib/regcomp.c (optimize_utf8): Add a note on why we test
1743 (calc_first): Initialize constraint field.
1744 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1746 (duplicate_node): Merge constraint field for all node types.
1747 (calc_eclosure_iter): Look at constraint field for all node types.
1748 * lib/regex_internal.c (create_cd_newstate): Don't look at
1751 2008-05-14 Bruno Haible <bruno@clisp.org>
1753 Help GCC to do better code generation.
1754 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
1755 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1756 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
1757 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
1758 Declare with attribute 'malloc' if supported.
1760 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
1762 use "echo STR|wc -c" rather than unportable "expr length STR"
1763 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
1764 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
1766 2008-05-14 Jim Meyering <meyering@redhat.com>
1768 use dd ibs=$n count=1 ... rather than less-portable head -c$n
1769 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
1770 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
1771 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
1774 2008-05-14 Eric Blake <ebb9@byu.net>
1776 Avoid quadratic growth in gl_LIBSOURCES.
1777 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
1778 Suggested by Bruno Haible.
1781 * modules/xmemdup0-tests: New file.
1782 * tests/test-xmemdup0.c: Likewise.
1784 2008-05-13 Eric Blake <ebb9@byu.net>
1786 Split xmemdup0 into its own module.
1787 * modules/xmemdup0: New file.
1788 * lib/xmemdup0.h: Likewise.
1789 * lib/xmemdup0.c: Likewise.
1790 * MODULES.html.sh (Memory management functions): Add xmemdup0.
1791 * lib/xalloc.h (xmemdup0): Remove.
1792 * lib/xmalloc.c (xmemdup0): Likewise.
1794 2008-05-13 Eric Blake <ebb9@byu.net>
1795 Bruno Haible <bruno@clisp.org>
1797 Reduce number of forks required during autoconf.
1798 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
1799 and gl_LIBSOURCES_DIR.
1800 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
1801 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
1803 <m4_foreach_w>: Move...
1804 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
1806 2008-05-13 Eric Blake <ebb9@byu.net>
1808 * gnulib-tool: Fix various comment typos.
1810 2008-05-12 Bruno Haible <bruno@clisp.org>
1812 Tailor the linebreaking algorithm.
1813 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
1815 2008-05-12 Bruno Haible <bruno@clisp.org>
1817 Update to Unicode 5.0.0.
1818 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
1819 LBP_JV, LBP_JT. Redistribute values.
1820 (unilbrk_table): Change size.
1821 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
1822 Unicode TR#14 rev. 22.
1823 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
1824 LBP_JV, LBP_JT. Redistribute values.
1825 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
1826 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
1828 * lib/unilbrk/lbrkprop1.h: Regenerated.
1829 * lib/unilbrk/lbrkprop2.h: Regenerated.
1830 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
1831 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
1832 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
1834 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
1836 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
1838 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1839 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1840 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1841 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
1842 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
1843 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
1845 2008-05-11 Bruno Haible <bruno@clisp.org>
1847 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
1849 2008-05-11 Bruno Haible <bruno@clisp.org>
1851 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
1852 * modules/unilbrk/gen-lbrk: New file.
1854 2008-05-11 Bruno Haible <bruno@clisp.org>
1856 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
1857 * m4/sha512.m4 (gl_SHA512): Likewise.
1859 2008-05-11 Jim Meyering <meyering@redhat.com>
1861 New modules: crypto/sha256, crypto/sha512 (from coreutils)
1862 * modules/crypto/sha256: New file.
1863 * modules/crypto/sha512: Likewise.
1864 * lib/sha256.c: Likewise.
1865 * lib/sha256.h: Likewise.
1866 * lib/sha512.c: Likewise.
1867 * lib/sha512.h: Likewise.
1868 * lib/u64.h: Likewise.
1869 * m4/sha256.m4: Likewise.
1870 * m4/sha512.m4: Likewise.
1871 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
1873 2008-05-10 Bruno Haible <bruno@clisp.org>
1875 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
1876 (Input/Output <stdio.h>): Add xprintf.
1877 (Signal handling <signal.h>): Add strsignal.
1878 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
1879 (Core language properties): Add func.
1880 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
1881 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
1883 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
1884 (Input/output): New section.
1885 (File system functions): Add openat-die, stat-macros.
1886 (Networking functions): Add sockets.
1887 (Unicode string functions): Add unictype/*.
1888 (Support for building libraries and executables): Add gperf.
1889 (Support for building documentation): Add agpl-3.0.
1890 (Misc): Add nocrash.
1892 2008-05-10 Bruno Haible <bruno@clisp.org>
1894 * modules/unictype/gen-ctype: New file.
1896 2008-05-10 Jim Meyering <meyering@redhat.com>
1898 Make chdir-safer.c more efficient on a system with no symlinks.
1899 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
1900 also if ELOOP is zero. Suggested by Bruno Haible.
1902 Make chdir-safer.c slightly safer.
1903 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
1904 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
1906 Avoid compile failure on systems without ELOOP (like mingw).
1907 * lib/chdir-safer.c (ELOOP): Define if not already defined.
1908 Reported by Bruno Haible.
1910 2008-05-10 Bruno Haible <bruno@clisp.org>
1912 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
1913 (is_utf8_encoding): Use a case-insensitive comparison.
1914 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
1917 2008-05-10 Bruno Haible <bruno@clisp.org>
1919 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
1920 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
1921 * lib/unilbrk/ulc-common.h (iconv_string_length,
1922 iconv_string_keeping_offsets): Remove declarations.
1923 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
1924 Don't include <iconv.h>, streq.h, xsize.h.
1925 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
1927 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
1928 <iconv.h>, streq.h, xsize.h.
1929 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
1931 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
1932 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
1933 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
1934 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
1936 2008-05-10 Bruno Haible <bruno@clisp.org>
1938 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
1939 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
1941 * modules/unilbrk/u32-width-linebreaks-tests: New file.
1942 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
1944 * modules/unilbrk/u16-width-linebreaks-tests: New file.
1945 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
1947 * modules/unilbrk/u8-width-linebreaks-tests: New file.
1948 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
1950 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
1951 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
1953 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
1954 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
1956 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
1957 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
1959 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
1960 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
1962 2008-05-10 Bruno Haible <bruno@clisp.org>
1964 Split up 'linebreak' module.
1965 * lib/unilbrk.h: New file, based on lib/linebreak.h.
1966 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
1967 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
1969 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
1970 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
1971 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
1973 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
1975 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
1977 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
1978 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
1979 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
1981 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
1983 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
1985 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
1987 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
1989 * modules/unilbrk/base: New file.
1990 * modules/unilbrk/tables: New file.
1991 * modules/unilbrk/u8-possible-linebreaks: New file.
1992 * modules/unilbrk/u16-possible-linebreaks: New file.
1993 * modules/unilbrk/u32-possible-linebreaks: New file.
1994 * modules/unilbrk/ulc-common: New file.
1995 * modules/unilbrk/ulc-possible-linebreaks: New file.
1996 * modules/unilbrk/u8-width-linebreaks: New file.
1997 * modules/unilbrk/u16-width-linebreaks: New file.
1998 * modules/unilbrk/u32-width-linebreaks: New file.
1999 * modules/unilbrk/ulc-width-linebreaks: New file.
2000 * lib/linebreak.h: Remove file.
2001 * lib/linebreak.c: Remove file.
2002 * m4/linebreak.m4: Remove file.
2003 * modules/linebreak: Remove file.
2004 * NEWS: Mention the changes.
2006 2008-05-09 Eric Blake <ebb9@byu.net>
2009 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2011 * lib/xmalloc.c (xmemdup0): New C implementation.
2013 2008-05-08 Bruno Haible <bruno@clisp.org>
2015 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2017 2008-05-07 Eric Blake <ebb9@byu.net>
2019 Support cross-compilation of <wctype.h>.
2020 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2023 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
2025 * build-aux/vc-list-files: Add support for bzr.
2027 2008-05-03 Jim Meyering <meyering@redhat.com>
2029 avoid failed assertion with tight malloc
2030 * tests/test-getndelim2.c: Correct an off-by-one assertion.
2032 2008-05-03 Simon Josefsson <simon@josefsson.org>
2034 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2035 are needed from arpa/inet.h.
2036 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2037 Reported by Bruno Haible.
2039 2008-05-02 Jim Meyering <meyering@redhat.com>
2041 avoid compilation error on FreeBSD 6
2042 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2044 2008-05-01 Jim Meyering <meyering@redhat.com>
2046 useless-if-before-free: correct --help's exit status description
2047 * build-aux/useless-if-before-free (usage): Like grep, exit 0
2048 for one or more matches, etc. Reported by Bruno Haible.
2050 vc-list-files: make the stand-alone gnulib test work
2051 * modules/vc-list-files-tests (configure.ac):
2052 Define and AC_SUBST abs_aux_dir.
2053 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2054 $(abs_top_srcdir) to each script and having each of them
2055 duplicate the work of setting PATH, set PATH here, using
2056 the new variable, abs_aux_dir instead.
2057 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2058 * tests/test-vc-list-files-git.sh: Likewise.
2059 Reported by Bruno Haible.
2061 2008-05-01 Bruno Haible <bruno@clisp.org>
2063 * lib/getndelim2.c (getndelim2): Fix newsize computation during
2064 reallocation. Rename 'done' to 'found_delimiter'.
2066 2008-05-01 Jim Meyering <meyering@redhat.com>
2068 vc-list-files: accommodate /bin/sh like the one from Solaris 10
2069 * build-aux/vc-list-files: Use `...`, not $(...).
2071 2008-04-30 Jim Meyering <meyering@redhat.com>
2073 add tests for vc-list-files
2074 * modules/vc-list-files-tests: New module.
2075 * tests/test-vc-list-files-cvs.sh: New file.
2076 * tests/test-vc-list-files-git.sh: New file.
2078 avoid a warning from gcc
2079 * lib/getndelim2.c (IF_LINT): Define.
2080 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2082 vc-list-files: work properly with build-aux/cvsu, too
2083 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2084 to all cvs-based clauses.
2086 vc-list-files: work properly in the CVS+awk case, too
2087 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2089 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2090 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2091 take more than one file argument, so . Add quotes, just in case $dir
2092 ever contains a shell meta-character. Prompted by Soren Hansen in
2093 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2095 2008-04-29 Eric Blake <ebb9@byu.net>
2097 Optimize getndelim2 to use block operations when possible.
2098 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
2099 freadseek, and memchr2.
2100 * lib/getndelim2.c (getndelim2): Use them for block reads.
2102 2008-04-29 Bruno Haible <bruno@clisp.org>
2104 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
2105 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2106 * modules/inet_ntop (Depends-on): Add extensions.
2107 * modules/inet_pton (Depends-on): Likewise.
2108 Reported by Simon Josefsson.
2110 2008-04-29 Jim Meyering <meyering@redhat.com>
2112 When the is more than one match in a block, match all of them.
2113 * build-aux/useless-if-before-free: Iterate through each block
2114 until there are no more matches.
2116 Fix broken useless-if-before-free script.
2117 * build-aux/useless-if-before-free: Fix typo: missing "?" after
2118 the expression to match cast of argument to free-like function.
2120 2008-04-29 Eric Blake <ebb9@byu.net>
2123 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
2125 2008-04-29 Jim Meyering <meyering@redhat.com>
2127 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
2128 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
2129 by gnulib to exist and to declare e.g., inet_ntop.
2130 Don't include "inet_ntop.h", now removed.
2132 * m4/arpa_inet_h.m4: Remove trailing blanks.
2134 2008-04-29 Eric Blake <ebb9@byu.net>
2136 Silence valgrind on safe reads beyond potential array bounds.
2137 * lib/rawmemchr.valgrind: New file.
2138 * lib/strchrnul.valgrind: Likewise.
2139 * modules/rawmemchr (Files): Distribute new file.
2140 * modules/strchrnul (Files): Likewise.
2141 Suggested by Bruno Haible.
2143 2008-04-29 Bruno Haible <bruno@clisp.org>
2145 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
2146 (inet_ntop, inet_pton): Change portability warning's wording.
2147 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
2148 Invoke gl_CHECK_NEXT_HEADERS.
2149 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
2150 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
2152 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2153 * modules/arpa_inet (Description): No longer only for systems that
2155 (Depends-on): Add include_next.
2156 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
2159 2008-04-29 Jim Meyering <meyering@redhat.com>
2161 * modules/mkdir (License): Re-license as LGPLv2+.
2163 2008-04-29 Bruno Haible <bruno@clisp.org>
2165 * modules/rawmemchr (Maintainer): Set to Eric.
2166 * modules/strchrnul (Maintainer): Likewise.
2168 2008-04-29 Simon Josefsson <simon@josefsson.org>
2170 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
2171 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
2173 * modules/arpa_inet (arpa/inet.h): Use them.
2175 2008-04-28 Eric Blake <ebb9@byu.net>
2178 * modules/getndelim2-tests: New file.
2179 * tests/test-getndelim2.c: Likewise.
2180 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
2182 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
2184 * MODULES.html.sh: Document new module.
2186 2008-04-20 Bruno Haible <bruno@clisp.org>
2188 * lib/c-stack.c (die): Use raise.
2189 * modules/c-stack (Depends-on): Add raise.
2191 2008-04-28 Bruno Haible <bruno@clisp.org>
2193 Expect rpmatch to be declared.
2194 * lib/yesno.c (rpmatch): Remove declaration.
2197 * lib/stdlib.in.h (rpmatch): New declaration.
2198 * lib/rpmatch.c: Include <stdlib.h> first.
2199 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
2200 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
2201 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
2203 * modules/rpmatch (Depends-on): Add stdlib, extensions.
2204 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2205 (Include): Set to <stdlib.h>.
2206 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
2208 * NEWS: Document the change.
2210 2008-04-28 Bruno Haible <bruno@clisp.org>
2212 Change rpmatch to use nl_langinfo when appropriate.
2213 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
2215 (localized_pattern): New function/macro.
2216 (try): Remove match, nomatch arguments. Copy the pattern into safe
2217 memory before caching it.
2218 (rpmatch): Use localized_pattern. Add translator comments.
2219 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
2220 Suggested by Eric Blake.
2221 * modules/rpmatch (Depends-on): Add stdbool.
2223 2008-04-28 Eric Blake <ebb9@byu.net>
2225 Add rawmemchr module, matching glibc.
2226 * modules/string (Makefile.am): New indicator.
2227 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
2228 * lib/string.in.h (rawmemchr): Declare when appropriate.
2229 * modules/rawmemchr: New file.
2230 * m4/rawmemchr.m4: Likewise.
2231 * lib/rawmemchr.c: Likewise.
2232 * modules/rawmemchr-tests: Likewise.
2233 * tests/test-rawmemchr.c: Likewise.
2234 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
2236 * modules/strchrnul (Depends-on): Add rawmemchr.
2237 * lib/strchrnul.c (strchrnul): Optimize a corner case.
2240 * tests/test-strchrnul.c: Reindent.
2241 * lib/strchrnul.c: Likewise.
2243 Optimize and test strchrnul.
2244 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
2245 * modules/strchrnul-tests: New file.
2246 * tests/test-strchrnul.c: Likewise.
2248 Remove intprops dependency.
2249 * modules/memchr (Depends-on): Remove intprops.
2250 * modules/memrchr (Depends-on): Likewise.
2251 * modules/memchr2 (Depends-on): Likewise.
2252 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
2253 * lib/memrchr.c (__memrchr): Likewise.
2254 * lib/memrchr2.c (memchr2): Likewise.
2255 Reported by Simon Josefsson.
2257 2008-04-28 Simon Josefsson <simon@josefsson.org>
2259 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
2260 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2262 2008-04-28 Simon Josefsson <simon@josefsson.org>
2264 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
2266 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
2268 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
2270 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
2272 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
2274 * m4/inet_pton.m4: Don't check for header files.
2276 * m4/inet_ntop.m4: Don't check for header files.
2278 2008-04-28 Simon Josefsson <simon@josefsson.org>
2280 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
2281 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
2282 trigger for cygwin).
2283 Reported by Bruno Haible <bruno@clisp.org>.
2285 2008-04-28 Bruno Haible <bruno@clisp.org>
2287 * doc/posix-functions/strdup.texi: Mention mingw problem.
2289 2008-04-27 Bruno Haible <bruno@clisp.org>
2291 * modules/stat-time-tests (Depends-on): Add sleep.
2292 * tests/test-stat-time.c (force_unlink): New function.
2294 (test_mtime): Remove the ctime related tests.
2295 (test_ctime): New function, containing the ctime related tests.
2296 (main): Call test_ctime, except on native Windows platforms.
2298 2008-04-27 Bruno Haible <bruno@clisp.org>
2300 * lib/rpmatch.c (rpmatch): Add some comments.
2301 Reported by James Youngman <jay@gnu.org>.
2303 2008-04-27 Bruno Haible <bruno@clisp.org>
2305 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
2308 2008-04-27 Bruno Haible <bruno@clisp.org>
2310 Make test-yesno.sh work on mingw.
2311 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
2312 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
2313 (main): Set stdin to binary mode.
2314 * modules/yesno-tests (Depends-on): Add binary-io.
2316 2008-04-27 Bruno Haible <bruno@clisp.org>
2318 Fix 'isfinite' on x86, x86_64, ia64 platforms.
2319 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
2320 argument that lie outside the IEEE 854 domain.
2321 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
2322 (gl_ISFINITE): Use it.
2323 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
2325 2008-04-27 Bruno Haible <bruno@clisp.org>
2327 Allow local renaming in config.h.
2328 * lib/memrchr.c (memrchr): Don't undefine outside libc.
2330 2008-04-27 Bruno Haible <bruno@clisp.org>
2332 * lib/memchr.c (__memchr): Change type of 'i'.
2333 * lib/memchr2.c (memchr2): Likewise.
2335 2008-04-26 Eric Blake <ebb9@byu.net>
2336 and Bruno Haible <bruno@clisp.org>
2338 Optimize and test memrchr.
2339 * modules/memrchr (Depends-on): Add intprops.
2340 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
2341 * modules/memrchr-tests: New file.
2342 * tests/test-memrchr.c: New file.
2344 2008-04-26 Bruno Haible <bruno@clisp.org>
2346 Add tentative support for DragonFly BSD.
2347 * lib/stdio-impl.h: Add macros for DragonFly BSD.
2348 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
2350 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2351 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
2352 * lib/fpurge.c (fpurge): Likewise.
2353 * lib/freadable.c (freaadable): Likewise.
2354 * lib/freadahead.c (freadahead): Likewise.
2355 * lib/freading.c (freading): Likewise.
2356 * lib/freadptr.c (freadptr): Likewise.
2357 * lib/freadseek.c (freadptrinc): Likewise.
2358 * lib/fseeko.c (fseeko): Likewise.
2359 * lib/fseterr.c (fseterr): Likewise.
2360 * lib/fwritable.c (fwritable): Likewise.
2361 * lib/fwriting.c (fwriting): Likewise.
2363 2008-04-26 Bruno Haible <bruno@clisp.org>
2365 * lib/stdio-impl.h: New file.
2366 * lib/fbufmode.c: Include stdio-impl.h.
2367 (fbufmode): Use fp_, remove redundant #defines.
2368 * lib/fflush.c: Include stdio-impl.h.
2369 (clear_ungetc_buffer): Remove redundant #defines.
2370 * lib/fpurge.c: Include stdio-impl.h.
2371 (fpurge): Remove redundant #defines.
2372 * lib/freadable.c: Include stdio-impl.h.
2373 (freadable): Remove redundant #defines.
2374 * lib/freadahead.c: Include stdio-impl.h.
2375 (freadahead): Remove redundant #defines.
2376 * lib/freading.c: Include stdio-impl.h.
2377 (freading): Remove redundant #defines.
2378 * lib/freadptr.c: Include stdio-impl.h.
2379 (freadptr): Remove redundant #defines.
2380 * lib/freadseek.c: Include stdio-impl.h.
2381 (freadptrinc): Remove redundant #defines.
2382 * lib/fseeko.c: Include stdio-impl.h.
2383 (rpl_fseeko): Remove redundant #defines.
2384 * lib/fseterr.c: Include stdio-impl.h.
2385 (fseterr): Remove redundant #defines.
2386 * lib/fwritable.c: Include stdio-impl.h.
2387 (fwritable: Remove redundant #defines.
2388 * lib/fwriting.c: Include stdio-impl.h.
2389 (fwriting): Remove redundant #defines.
2390 * modules/fbufmode (Files): Add lib/stdio-impl.h.
2391 * modules/fflush (Files): Likewise.
2392 * modules/fpurge (Files): Likewise.
2393 * modules/freadable (Files): Likewise.
2394 * modules/freadahead (Files): Likewise.
2395 * modules/freading (Files): Likewise.
2396 * modules/freadptr (Files): Likewise.
2397 * modules/freadseek (Files): Likewise.
2398 * modules/fseeko (Files): Likewise.
2399 * modules/fseterr (Files): Likewise.
2400 * modules/fwritable (Files): Likewise.
2401 * modules/fwriting (Files): Likewise.
2403 2008-04-26 Bruno Haible <bruno@clisp.org>
2405 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2406 restore_seek_optimization, update_fpos_cache): New functions, extracted
2408 (rpl_fflush): Use them.
2409 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
2410 (gl_REPLACE_FFLUSH): Use it.
2412 2008-04-26 Bruno Haible <bruno@clisp.org>
2414 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
2416 * tests/test-xstrtoimax.sh: Likewise.
2417 * tests/test-xstrtoumax.sh: Likewise.
2418 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2420 2008-04-26 Bruno Haible <bruno@clisp.org>
2422 * modules/memchr-tests: New file.
2423 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
2425 2008-04-26 Eric Blake <ebb9@byu.net>
2426 Bruno Haible <bruno@clisp.org>
2428 * lib/memchr.c: Include intprops.h.
2429 (__memchr): Optimize parallel detection of matching bytes. Rename local
2430 variables. Add explanatory comments.
2432 2008-04-26 Bruno Haible <bruno@clisp.org>
2434 Fix module 'memchr', broken since 2000-10-28.
2435 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
2437 2008-04-26 Bruno Haible <bruno@clisp.org>
2439 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
2442 2008-04-25 Eric Blake <ebb9@byu.net>
2444 Use native fstatat on cygwin 1.7.0.
2445 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
2448 2008-04-23 Eric Blake <ebb9@byu.net>
2450 Improve memchr2 performance.
2451 * lib/memchr2.c (memchr2): Further optimize parallel detection of
2453 * modules/memchr2 (Depends-on): Use intprops.h.
2455 2008-04-23 Simon Josefsson <simon@josefsson.org>
2457 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
2458 an inline function instead of a CPP macro. Patch by Ben Pfaff
2459 <blp@cs.stanford.edu>.
2461 2008-04-23 Simon Josefsson <simon@josefsson.org>
2463 * lib/arpa_inet.in.h: New file.
2465 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
2466 (Makefile.am): Sed in substitute header file.
2468 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
2469 gl_ARPA_INET_MODULE_INDICATOR. Use them.
2471 * modules/inet_ntop (configure.ac): Use
2472 gl_ARPA_INET_MODULE_INDICATOR.
2474 * modules/inet_pton (configure.ac): Use
2475 gl_ARPA_INET_MODULE_INDICATOR.
2477 2008-04-22 Jim Meyering <meyering@redhat.com>
2479 * modules/verify (License): Re-license as LGPLv2+.
2481 2008-04-22 Simon Josefsson <simon@josefsson.org>
2483 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
2484 parameter to void* as per POSIX standard (MinGW uses char*).
2486 2008-04-21 Bruno Haible <bruno@clisp.org>
2488 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2489 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
2490 Define to replacements if REPLACE_ISWCNTRL is 1.
2491 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
2492 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
2493 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
2494 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
2496 * doc/posix-functions/iswalpha.texi: Likewise.
2497 * doc/posix-functions/iswblank.texi: Likewise.
2498 * doc/posix-functions/iswcntrl.texi: Likewise.
2499 * doc/posix-functions/iswdigit.texi: Likewise.
2500 * doc/posix-functions/iswgraph.texi: Likewise.
2501 * doc/posix-functions/iswlower.texi: Likewise.
2502 * doc/posix-functions/iswprint.texi: Likewise.
2503 * doc/posix-functions/iswpunct.texi: Likewise.
2504 * doc/posix-functions/iswspace.texi: Likewise.
2505 * doc/posix-functions/iswupper.texi: Likewise.
2506 * doc/posix-functions/iswxdigit.texi: Likewise.
2507 Reported by Alain Guibert.
2509 2008-04-21 Bruno Haible <bruno@clisp.org>
2511 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
2512 Patch by Alain Guibert.
2514 2008-04-21 Bruno Haible <bruno@clisp.org>
2516 Fix test failures on mingw.
2517 * tests/test-xstrtol.c (print_no_progname): New function.
2518 (main): Install it in error_print_progname hook.
2519 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
2520 * tests/test-xstrtoimax.sh: Likewise.
2521 * tests/test-xstrtoumax.sh: Likewise.
2523 2008-04-21 Bruno Haible <bruno@clisp.org>
2525 Fix test failure on mingw.
2526 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
2528 2008-04-21 Bruno Haible <bruno@clisp.org>
2530 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
2531 Actually assign a value.
2533 2008-04-20 Bruno Haible <bruno@clisp.org>
2535 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
2537 * lib/canonicalize.c (canonicalize_file_name): Elide if the
2538 'canonicalize-lgpl' module is also used.
2539 * lib/canonicalize-lgpl.c: Undo last change.
2540 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
2542 2008-04-20 Bruno Haible <bruno@clisp.org>
2544 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
2545 config.h. Provide _mkdir based fallback for mingw.
2546 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
2547 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
2548 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
2549 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
2550 rather than defining mkdir in config.h.
2551 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
2552 (gl_SYS_STAT_H_DEFAULTS): New macro.
2553 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
2555 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
2556 HAVE_DECL_MKDIR and HAVE_IO_H.
2558 2008-04-20 Bruno Haible <bruno@clisp.org>
2560 * lib/isapipe.c: Port to native Windows platforms.
2562 2008-04-20 Bruno Haible <bruno@clisp.org>
2564 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
2566 2008-04-21 Eric Blake <ebb9@byu.net>
2568 Work around preprocessors that don't handle UINTMAX_MAX.
2569 * lib/memchr2.c (memchr2): Avoid embedded #if.
2570 Reported by Alain Guibert, fix suggested by Bruno Haible.
2572 2008-04-21 Simon Josefsson <simon@josefsson.org>
2574 * doc/posix-functions/strftime.texi (strftime): Explain better
2575 Windows incompatibility. Suggested by Micah Cowan
2578 2008-04-20 Bruno Haible <bruno@clisp.org>
2580 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
2583 2008-04-20 Bruno Haible <bruno@clisp.org>
2585 Fix test failure on platforms with non-GNU iconv.
2586 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
2587 (U_TO_U8): Use it, rather than u16_to_u8.
2588 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
2589 units at the end of the input string.
2590 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
2592 2008-04-20 Bruno Haible <bruno@clisp.org>
2594 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
2595 when the resulting length is 0.
2596 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
2598 2008-04-20 Bruno Haible <bruno@clisp.org>
2600 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
2602 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
2604 2008-04-20 Bruno Haible <bruno@clisp.org>
2606 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
2607 * modules/tsearch-tests (configure.ac): Test for initstate function.
2609 2008-04-20 Bruno Haible <bruno@clisp.org>
2611 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
2612 for nlink_t if missing.
2613 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
2615 2008-04-19 Bruno Haible <bruno@clisp.org>
2617 Work around snprintf bug on Linux libc5.
2618 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
2619 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2621 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2622 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
2624 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2625 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
2626 * modules/snprintf (Files): Add m4/printf.m4.
2627 * modules/vsnprintf (Files): Likewise.
2628 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
2629 * doc/posix-functions/vsnprintf.texi: Likewise.
2631 2008-04-19 Bruno Haible <bruno@clisp.org>
2633 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
2634 from 0.0058 to less than 10^-7.
2636 2008-04-19 Bruno Haible <bruno@clisp.org>
2638 Fix rounding when a precision is given.
2639 * lib/vasnprintf.c (is_borderline): New function.
2640 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
2642 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
2644 * tests/test-vasprintf-posix.c (test_function): Likewise.
2645 * tests/test-snprintf-posix.h (test_function): Likewise.
2646 * tests/test-sprintf-posix.h (test_function): Likewise.
2647 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
2648 * tests/test-printf-posix.h (test_function): Likewise.
2649 * tests/test-printf-posix.output: Update.
2650 Reported by John Darrington <john@darrington.wattle.id.au> via
2651 Ben Pfaff <blp@cs.stanford.edu>.
2653 2008-04-18 Simon Josefsson <simon@josefsson.org>
2655 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
2656 Suggested by Bruno Haible <bruno@clisp.org>.
2658 2008-04-17 Bruno Haible <bruno@clisp.org>
2660 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
2661 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
2663 Patch by Bruce Merry <bmerry@gmail.com>.
2665 2008-04-17 Simon Josefsson <simon@josefsson.org>
2667 * doc/posix-functions/strftime.texi (strftime): Mention that %e
2668 doesn't work under Windows.
2670 2008-04-16 Bruno Haible <bruno@clisp.org>
2672 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
2674 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
2675 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
2676 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
2677 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
2678 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
2679 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
2680 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
2682 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
2683 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
2684 Northern Sotho, Uighur.
2686 2008-04-16 Bruno Haible <bruno@clisp.org>
2688 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
2689 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
2690 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
2691 Reported by Daniel Bergström <daniel@octocode.com>.
2693 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
2694 Bruno Haible <bruno@clisp.org>
2696 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
2698 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
2699 New functions, mostly extracted from gl_locale_name_default.
2700 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
2702 2008-04-16 Eric Blake <ebb9@byu.net>
2704 Adjust strtod detection to catch glibc 2.7 bug.
2705 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
2706 Reported by John Gatewood Ham.
2708 2008-04-16 Bruno Haible <bruno@clisp.org>
2710 Add tentative support for Linux libc5.
2711 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
2712 * lib/fpurge.c (fpurge): Likewise.
2713 * lib/freadable.c (freadable): Likewise.
2714 * lib/freadahead.c (freadahead): Likewise.
2715 * lib/freading.c (freading): Likewise.
2716 * lib/freadptr.c (freadptr): Likewise.
2717 * lib/freadseek.c (freadptrinc): Likewise.
2718 * lib/fseeko.c (rpl_fseeko): Likewise.
2719 * lib/fseterr.c (fseterr): Likewise.
2720 * lib/fwritable.c (fwritable): Likewise.
2721 * lib/fwriting.c (fwriting): Likewise.
2722 Reported by Alain Guibert <alguibert+bts@free.fr>.
2724 2008-04-15 Bruno Haible <bruno@clisp.org>
2726 * modules/mathl (configure.ac): Define module indicator.
2728 2008-04-15 Bruno Haible <bruno@clisp.org>
2730 * lib/logl.c (logl): Remove unused variables.
2732 2008-04-15 Bruno Haible <bruno@clisp.org>
2734 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
2737 2008-04-15 Bruno Haible <bruno@clisp.org>
2739 * lib/trim.c (trim2): Fix argument of isspace() macro.
2741 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
2743 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
2745 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
2747 2008-04-14 Bruno Haible <bruno@clisp.org>
2749 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
2750 AC_LANG_PROGRAM argument.
2751 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
2752 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
2753 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2754 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2755 * m4/math_h.m4 (gl_MATH_H): Likewise.
2756 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2757 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2758 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
2759 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
2760 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2761 * m4/regex.m4 (gl_REGEX): Likewise.
2762 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
2763 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
2764 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2765 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
2766 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2767 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2768 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2769 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2771 2008-04-14 Jim Meyering <meyering@redhat.com>
2773 test-strtod: fix typos: s/abs/fabs/
2774 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
2776 2008-04-13 Bruno Haible <bruno@clisp.org>
2778 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
2779 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
2780 module is also used and while not building the reloc-wrapper.
2782 2008-04-13 Bruno Haible <bruno@clisp.org>
2784 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
2786 2008-04-13 Bruno Haible <bruno@clisp.org>
2788 Fix AIX compilation failure introduced on 2008-04-02.
2789 * tests/test-frexp.c (exp): Undefine before redefining.
2790 * tests/test-frexpl.c (exp): Likewise.
2792 2008-04-13 Bruno Haible <bruno@clisp.org>
2794 Work around a HP-UX stdio bug.
2795 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
2796 * tests/test-ftello.c (main): Likewise.
2797 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
2798 * doc/posix-functions/ftello.texi: Likewise.
2800 2008-04-13 Bruno Haible <bruno@clisp.org>
2802 Make test-signbit pass on HP-UX/hppa.
2803 * tests/test-signbit.c (minus_zerol): New variable.
2804 (test_signbitl): Use it.
2806 2008-04-13 Bruno Haible <bruno@clisp.org>
2808 Make truncl work on OSF/1 4.0.
2809 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
2810 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
2811 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
2812 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
2814 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
2816 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
2818 2008-04-13 Bruno Haible <bruno@clisp.org>
2820 * lib/unictype.h: Remove trailing comma from enumeration definitions.
2822 2008-04-13 Bruno Haible <bruno@clisp.org>
2824 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
2825 expression, so as to avoid HP-UX 11 cc compiler bug.
2827 2008-04-13 Bruno Haible <bruno@clisp.org>
2829 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
2831 2008-04-13 Bruno Haible <bruno@clisp.org>
2833 * lib/git-merge-changelog.c: Remove empty declaration outside of
2836 2008-04-13 Bruno Haible <bruno@clisp.org>
2838 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
2840 2008-04-13 Bruno Haible <bruno@clisp.org>
2842 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
2843 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
2844 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
2845 also if it exists but lacks definitions of the SHUT_* macros.
2846 * modules/sys_socket (Description): Update.
2847 Reported by Elbert Pol <e.pol@chello.nl>.
2849 2008-04-13 Bruno Haible <bruno@clisp.org>
2851 * lib/localcharset.c (OS2): Don't redefine if already defined.
2852 Reported by Elbert Pol <e.pol@chello.nl>.
2854 2008-04-13 Bruno Haible <bruno@clisp.org>
2856 * lib/binary-io.h [__EMX__]: Include <io.h>.
2857 Reported by Elbert Pol <e.pol@chello.nl>.
2859 2008-04-12 Bruno Haible <bruno@clisp.org>
2861 * lib/fpucw.h: Enable the definitions also for x86_64.
2862 Needed for NetBSD/x86_64.
2863 Reported by Thomas Klausner <tk@giga.or.at>.
2865 2008-04-12 Bruno Haible <bruno@clisp.org>
2867 * tests/test-strtod.c: Include isnand.h.
2868 (main): Use isnand instead of isnan.
2869 Reported by Jim Meyering.
2871 2008-04-12 Bruno Haible <bruno@clisp.org>
2873 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
2874 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2876 2008-04-12 Jim Meyering <meyering@redhat.com>
2878 * m4/math_h.m4 (gl_MATH_H): Fix typos.
2880 2008-04-12 Bruno Haible <bruno@clisp.org>
2882 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
2883 Reported by Elbert Pol <e.pol@chello.nl>.
2885 2008-04-12 Eric Blake <ebb9@byu.net>
2887 Work around Solaris 10 math.h bug.
2888 * m4/math_h.m4 (gl_MATH_H): Check for bug.
2889 (gl_MATH_H_DEFAULTS): Set up default.
2890 * modules/math (Makefile.am): Replace new indicators.
2891 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
2892 * tests/test-math.c (main): Test this.
2893 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
2894 * doc/posix-headers/math.texi (math.h): Mention bug.
2895 Reported by Nelson H. F. Beebe and Jim Meyering.
2897 2008-04-11 Bruno Haible <bruno@clisp.org>
2899 Adapt to future versions of Apple GCC.
2900 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
2901 Reported by Peter O'Gorman <peter@pogma.com>.
2903 2008-04-11 Bruno Haible <bruno@clisp.org>
2905 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
2907 2008-04-11 Bruno Haible <bruno@clisp.org>
2909 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
2911 * modules/getaddrinfo-tests (Makefile.am): Define
2912 test_getaddrinfo_LDADD.
2914 2008-04-11 Bruno Haible <bruno@clisp.org>
2916 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
2917 (init): Fix syntax error.
2918 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
2921 2008-04-11 Bruno Haible <bruno@clisp.org>
2923 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
2924 * modules/glob (Depends-on): Add stdbool.
2926 2008-04-11 Bruno Haible <bruno@clisp.org>
2928 * lib/trim.c: Include <string.h>.
2930 2008-04-11 Eric Blake <ebb9@byu.net>
2932 Avoid compile failure on OS/2.
2933 * lib/regex_internal.h (internal_function): Disable optimization
2934 on OS/2 (__EMX__), where it caused compiler error.
2935 Reported by Elbert Pol.
2937 2008-04-11 Bruno Haible <bruno@clisp.org>
2939 Flush the standard error stream before aborting. Needed on mingw.
2940 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
2941 * tests/test-array_list.c (ASSERT): Likewise.
2942 * tests/test-array_oset.c (ASSERT): Likewise.
2943 * tests/test-avltree_list.c (ASSERT): Likewise.
2944 * tests/test-avltree_oset.c (ASSERT): Likewise.
2945 * tests/test-avltreehash_list.c (ASSERT): Likewise.
2946 * tests/test-binary-io.c (ASSERT): Likewise.
2947 * tests/test-byteswap.c (ASSERT): Likewise.
2948 * tests/test-c-ctype.c (ASSERT): Likewise.
2949 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
2950 * tests/test-c-strcasestr.c (ASSERT): Likewise.
2951 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
2952 * tests/test-c-strstr.c (ASSERT): Likewise.
2953 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
2954 * tests/test-canonicalize.c (ASSERT): Likewise.
2955 * tests/test-carray_list.c (ASSERT): Likewise.
2956 * tests/test-ceilf1.c (ASSERT): Likewise.
2957 * tests/test-ceilf2.c (ASSERT): Likewise.
2958 * tests/test-ceill.c (ASSERT): Likewise.
2959 * tests/test-count-one-bits.c (ASSERT): Likewise.
2960 * tests/test-fbufmode.c (ASSERT): Likewise.
2961 * tests/test-fflush2.c (ASSERT): Likewise.
2962 * tests/test-floorf1.c (ASSERT): Likewise.
2963 * tests/test-floorf2.c (ASSERT): Likewise.
2964 * tests/test-floorl.c (ASSERT): Likewise.
2965 * tests/test-fopen.c (ASSERT): Likewise.
2966 * tests/test-fpending.c (ASSERT): Likewise.
2967 * tests/test-fprintf-posix.c (ASSERT): Likewise.
2968 * tests/test-fpurge.c (ASSERT): Likewise.
2969 * tests/test-freadable.c (ASSERT): Likewise.
2970 * tests/test-freadahead.c (ASSERT): Likewise.
2971 * tests/test-freading.c (ASSERT): Likewise.
2972 * tests/test-freadptr.c (ASSERT): Likewise.
2973 * tests/test-freadptr2.c (ASSERT): Likewise.
2974 * tests/test-freadseek.c (ASSERT): Likewise.
2975 * tests/test-freopen.c (ASSERT): Likewise.
2976 * tests/test-frexp.c (ASSERT): Likewise.
2977 * tests/test-frexpl.c (ASSERT): Likewise.
2978 * tests/test-fseek.c (ASSERT): Likewise.
2979 * tests/test-fseeko.c (ASSERT): Likewise.
2980 * tests/test-fstrcmp.c (ASSERT): Likewise.
2981 * tests/test-ftell.c (ASSERT): Likewise.
2982 * tests/test-ftello.c (ASSERT): Likewise.
2983 * tests/test-func.c (ASSERT): Likewise.
2984 * tests/test-fwritable.c (ASSERT): Likewise.
2985 * tests/test-fwriting.c (ASSERT): Likewise.
2986 * tests/test-getdelim.c (ASSERT): Likewise.
2987 * tests/test-getline.c (ASSERT): Likewise.
2988 * tests/test-i-ring.c (ASSERT): Likewise.
2989 * tests/test-iconv-utf.c (ASSERT): Likewise.
2990 * tests/test-iconv.c (ASSERT): Likewise.
2991 * tests/test-isfinite.c (ASSERT): Likewise.
2992 * tests/test-isnand.c (ASSERT): Likewise.
2993 * tests/test-isnanf.c (ASSERT): Likewise.
2994 * tests/test-isnanl.h (ASSERT): Likewise.
2995 * tests/test-ldexpl.c (ASSERT): Likewise.
2996 * tests/test-linked_list.c (ASSERT): Likewise.
2997 * tests/test-linkedhash_list.c (ASSERT): Likewise.
2998 * tests/test-localename.c (ASSERT): Likewise.
2999 * tests/test-lseek.c (ASSERT): Likewise.
3000 * tests/test-mbscasecmp.c (ASSERT): Likewise.
3001 * tests/test-mbscasestr1.c (ASSERT): Likewise.
3002 * tests/test-mbscasestr2.c (ASSERT): Likewise.
3003 * tests/test-mbscasestr3.c (ASSERT): Likewise.
3004 * tests/test-mbscasestr4.c (ASSERT): Likewise.
3005 * tests/test-mbschr.c (ASSERT): Likewise.
3006 * tests/test-mbscspn.c (ASSERT): Likewise.
3007 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3008 * tests/test-mbspbrk.c (ASSERT): Likewise.
3009 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3010 * tests/test-mbsrchr.c (ASSERT): Likewise.
3011 * tests/test-mbsspn.c (ASSERT): Likewise.
3012 * tests/test-mbsstr1.c (ASSERT): Likewise.
3013 * tests/test-mbsstr2.c (ASSERT): Likewise.
3014 * tests/test-mbsstr3.c (ASSERT): Likewise.
3015 * tests/test-memchr2.c (ASSERT): Likewise.
3016 * tests/test-memmem.c (ASSERT): Likewise.
3017 * tests/test-open.c (ASSERT): Likewise.
3018 * tests/test-printf-frexp.c (ASSERT): Likewise.
3019 * tests/test-printf-frexpl.c (ASSERT): Likewise.
3020 * tests/test-printf-posix.c (ASSERT): Likewise.
3021 * tests/test-quotearg.c (ASSERT): Likewise.
3022 * tests/test-rbtree_list.c (ASSERT): Likewise.
3023 * tests/test-rbtree_oset.c (ASSERT): Likewise.
3024 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3025 * tests/test-round1.c (ASSERT): Likewise.
3026 * tests/test-roundf1.c (ASSERT): Likewise.
3027 * tests/test-roundl.c (ASSERT): Likewise.
3028 * tests/test-signbit.c (ASSERT): Likewise.
3029 * tests/test-sleep.c (ASSERT): Likewise.
3030 * tests/test-snprintf-posix.c (ASSERT): Likewise.
3031 * tests/test-snprintf.c (ASSERT): Likewise.
3032 * tests/test-sprintf-posix.c (ASSERT): Likewise.
3033 * tests/test-stat-time.c (ASSERT): Likewise.
3034 * tests/test-strcasestr.c (ASSERT): Likewise.
3035 * tests/test-strerror.c (ASSERT): Likewise.
3036 * tests/test-striconv.c (ASSERT): Likewise.
3037 * tests/test-striconveh.c (ASSERT): Likewise.
3038 * tests/test-striconveha.c (ASSERT): Likewise.
3039 * tests/test-strsignal.c (ASSERT): Likewise.
3040 * tests/test-strstr.c (ASSERT): Likewise.
3041 * tests/test-strtod.c (ASSERT): Likewise.
3042 * tests/test-trunc1.c (ASSERT): Likewise.
3043 * tests/test-trunc2.c (ASSERT): Likewise.
3044 * tests/test-truncf1.c (ASSERT): Likewise.
3045 * tests/test-truncf2.c (ASSERT): Likewise.
3046 * tests/test-truncl.c (ASSERT): Likewise.
3047 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3048 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3049 * tests/test-vasnprintf.c (ASSERT): Likewise.
3050 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3051 * tests/test-vasprintf.c (ASSERT): Likewise.
3052 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3053 * tests/test-vprintf-posix.c (ASSERT): Likewise.
3054 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3055 * tests/test-vsnprintf.c (ASSERT): Likewise.
3056 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3057 * tests/test-wcwidth.c (ASSERT): Likewise.
3058 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3059 * tests/test-xprintf-posix.c (ASSERT): Likewise.
3060 * tests/test-xvasprintf.c (ASSERT): Likewise.
3061 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3062 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3063 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3064 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3065 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3066 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3067 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3068 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3069 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3070 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3071 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3072 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3073 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3074 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3075 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3076 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3077 * tests/unictype/test-block_list.c (ASSERT): Likewise.
3078 * tests/unictype/test-block_of.c (ASSERT): Likewise.
3079 * tests/unictype/test-block_test.c (ASSERT): Likewise.
3080 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3081 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3082 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3083 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3084 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3085 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3086 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3087 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3088 * tests/unictype/test-combining.c (ASSERT): Likewise.
3089 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3090 * tests/unictype/test-digit.c (ASSERT): Likewise.
3091 * tests/unictype/test-mirror.c (ASSERT): Likewise.
3092 * tests/unictype/test-numeric.c (ASSERT): Likewise.
3093 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3094 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3095 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3096 * tests/unictype/test-scripts.c (ASSERT): Likewise.
3097 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
3098 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
3099 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
3100 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
3101 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
3102 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
3103 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
3104 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
3105 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
3106 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
3107 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
3108 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
3109 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
3110 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
3111 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
3112 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
3113 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
3114 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
3115 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
3116 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
3117 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
3118 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
3119 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
3120 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
3121 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
3122 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
3123 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
3124 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
3125 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
3126 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
3127 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
3128 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
3129 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
3130 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
3131 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
3132 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
3133 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
3134 Reported by Eric Blake.
3136 2008-04-11 Bruno Haible <bruno@clisp.org>
3138 * lib/wchar.in.h: Tweak comment.
3140 2008-04-11 Bruno Haible <bruno@clisp.org>
3142 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
3143 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
3145 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
3147 2008-04-11 Bruno Haible <bruno@clisp.org>
3149 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
3151 2008-04-11 Simon Josefsson <simon@josefsson.org>
3153 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
3154 of attempting to use non-existing /dev/*random. Based on patch
3155 from Adam Strzelecki <ono@java.pl> in
3156 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
3158 2008-04-08 Bruno Haible <bruno@clisp.org>
3160 Add tentative support for emx+gcc.
3161 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
3162 * lib/fpurge.c (fpurge): Likewise.
3163 * lib/freadable.c (freadable): Likewise.
3164 * lib/freadahead.c (freadahead): Likewise.
3165 * lib/freading.c (freading): Likewise.
3166 * lib/freadptr.c (freadptr): Likewise.
3167 * lib/freadseek.c (freadptrinc): Likewise.
3168 * lib/fseeko.c (rpl_fseeko): Likewise.
3169 * lib/fseterr.c (fseterr): Likewise.
3170 * lib/fwritable.c (fwritable): Likewise.
3171 * lib/fwriting.c (fwriting): Likewise.
3172 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
3174 2008-04-09 Eric Blake <ebb9@byu.net>
3176 Avoid some autoconf warnings.
3177 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
3178 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
3179 * m4/afs.m4 (gl_AFS): Likewise.
3180 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
3181 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
3182 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3183 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
3184 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3185 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
3186 (AC_CHECK_DECLS_ONCE): Likewise.
3188 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
3189 gnulib-tool requires autoconf 2.59 or better.
3190 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
3192 2008-04-08 Eric Blake <ebb9@byu.net>
3194 Use 'git describe --match' if present (added in git 1.5.5).
3195 * build-aux/git-version-gen: Limit result to tags that match 'v*'
3198 2008-04-08 Bruno Haible <bruno@clisp.org>
3200 Add tentative support for OpenServer.
3201 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
3203 * lib/fpurge.c (fpurge): Likewise.
3204 * lib/freadable.c (freadable): Likewise.
3205 * lib/freadahead.c (freadahead): Likewise.
3206 * lib/freading.c (freading): Likewise.
3207 * lib/freadptr.c (freadptr): Likewise.
3208 * lib/freadseek.c (freadptrinc): Likewise.
3209 * lib/fseeko.c (rpl_fseeko): Likewise.
3210 * lib/fseterr.c (fseterr): Likewise.
3211 * lib/fwritable.c (fwritable): Likewise.
3212 * lib/fwriting.c (fwriting): Likewise.
3213 Reported by Roger Cornelius <rac@tenzing.org> and
3214 Brian K. White <brian@aljex.com>.
3216 2008-04-06 Jim Meyering <meyering@redhat.com>
3218 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
3220 2008-04-06 Bruno Haible <bruno@clisp.org>
3222 Avoid possible error with non-ASCII bytes in UTF-8 locales.
3223 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
3224 * tests/test-printf-posix.sh: Likewise.
3225 * tests/test-vfprintf-posix.sh: Likewise.
3226 * tests/test-vprintf-posix.sh: Likewise.
3227 * tests/test-xprintf-posix.sh: Likewise.
3229 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3231 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
3232 hide error from 'ls', needed on OS/2.
3233 Report by Elbert Pol <elbert.pol@gmail.com>.
3235 2008-04-04 Eric Blake <ebb9@byu.net>
3237 Make test-fseeko.c failures meaningful.
3238 * tests/test-fseeko.c: Print line number on failure.
3239 * tests/test-fseek.c: Likewise.
3240 Reported by Nelson H. F. Beebe.
3242 Improve strtod bug detection check.
3243 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
3244 required for Solaris 10.
3245 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
3247 2008-04-04 Bruno Haible <bruno@clisp.org>
3249 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
3252 2008-04-03 Eric Blake <ebb9@byu.net>
3254 Ensure sane .version contents.
3255 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
3257 * build-aux/git-version-gen: Improve documentation.
3259 Make GNU make output nicer.
3260 * top/GNUmakefile [!_have-Makefile]: Add dependency on
3261 MAKECMDGOALS to enforce message for all command line targets. Set
3262 srcdir for use in maint.mk.
3264 Another maintainer tweak.
3265 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
3266 a target that regenerates version.
3268 2008-04-03 Jim Meyering <meyering@redhat.com>
3270 vc-list-files: don't cause coreutils "make po-check" failure
3271 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
3273 2008-04-03 Eric Blake <ebb9@byu.net>
3275 Allow VPATH usage of vc-list-files.
3276 * build-aux/vc-list-files (scriptversion): Add timestamp.
3277 (options): Add --help, --version, -C.
3278 (CVS): Support installed cvsu.
3280 2008-04-02 Bruno Haible <bruno@clisp.org>
3282 Avoid some "statement with no effect" warnings from gcc.
3283 * tests/test-wctype.c (main): Explicitly ignore unused values.
3284 Reported by Jim Meyering.
3286 2008-04-02 Jim Meyering <meyering@redhat.com>
3288 Avoid some warnings from "gcc -Wshadow".
3289 * tests/test-frexp.c (exp): Define to a different identifier.
3290 * tests/test-frexpl.c (exp): Likewise.
3292 2008-04-03 Jim Meyering <meyering@redhat.com>
3294 bootstrap: remove dangling *.[ch] symlinks from lib
3295 * build-aux/bootstrap [dangling symlink removal]: Move find's
3296 -depth option to precede all others, to avoid a warning.
3297 Remove *.[ch] files too, and from "$source_base" (usually lib/).
3299 2008-04-02 Bruno Haible <bruno@clisp.org>
3301 Avoid some warnings from "gcc -Wshadow".
3302 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
3303 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
3304 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
3305 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
3306 Reported by Jim Meyering.
3308 2008-04-01 Bruno Haible <bruno@clisp.org>
3310 Fix test to work on IRIX 6.5 with cc.
3311 * tests/test-math.c (numeric_equal): New function.
3314 2008-04-01 Bruno Haible <bruno@clisp.org>
3316 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
3318 2008-04-01 Bruno Haible <bruno@clisp.org>
3320 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
3321 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3322 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
3323 (Depends-on): Remove math.
3325 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
3326 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3327 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
3328 (Depends-on): Remove math.
3330 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
3331 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3332 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
3333 (Depends-on): Remove math.
3334 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
3335 (Depends-on): Remove math.
3337 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
3338 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3339 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
3340 (Depends-on): Remove math.
3341 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
3342 (Depends-on): Remove math.
3344 * tests/test-round1.c: Include nan.h.
3345 (main): Use NaNd instead of NAN.
3346 * modules/round-tests (Files): Add tests/nan.h.
3348 * tests/test-trunc1.c: Include nan.h.
3349 (main): Use NaNd instead of NAN.
3350 * modules/trunc-tests (Files): Add tests/nan.h.
3352 * tests/test-roundf1.c: Include nan.h.
3353 (main): Use NaNf instead of NAN.
3354 * modules/roundf-tests (Files): Add tests/nan.h.
3356 * tests/test-truncf1.c: Include nan.h.
3357 (main): Use NaNf instead of NAN.
3358 * modules/truncf-tests (Files): Add tests/nan.h.
3360 * tests/test-ceilf1.c: Include nan.h.
3361 (main): Use NaNf instead of NAN.
3362 * modules/ceilf-tests (Files): Add tests/nan.h.
3364 * tests/test-floorf1.c: Include nan.h.
3365 (main): Use NaNf instead of NAN.
3366 * modules/floorf-tests (Files): Add tests/nan.h.
3368 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
3369 (main): Use NaNf instead of NAN.
3370 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
3372 * tests/test-isnand.c: Include nan.h instead of <math.h>.
3373 (main): Use NaNd instead of NAN.
3374 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
3376 * tests/test-frexp.c: Include nan.h.
3377 (main): Use NaNd instead of NAN.
3378 * modules/frexp-tests (Files): Add tests/nan.h.
3380 * lib/isnan.c: Don't include <math.h>.
3381 (FUNC): Don't use NAN macro.
3382 * modules/isnand-nolibm (Depends-on): Remove math.
3383 * modules/isnanf-nolibm (Depends-on): Remove math.
3384 * modules/isnanl (Depends-on): Remove math.
3385 * modules/isnanl-nolibm (Depends-on): Remove math.
3387 * tests/nan.h: New file.
3389 2008-04-01 Eric Blake <ebb9@byu.net>
3392 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
3393 values to be the right type.
3395 For now, cater to gnulib strtod inaccuracies.
3396 * tests/test-strtod.c (main): Allow 1-ulp error on expected
3397 fractional results. While not as nice from a QoI perspective, it
3398 is a quicker patch than correctly implementing decimal to binary
3401 2008-03-31 Eric Blake <ebb9@byu.net>
3403 Guarantee a definition of NAN.
3404 * lib/math.in.h (NAN): Define if missing.
3405 * tests/test-math.c (main): Test it.
3406 * doc/posix-headers/math.texi (math.h): Document this.
3407 * lib/isnan.c (rpl_isnand): Use it.
3408 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
3409 * tests/test-floorf1.c (NaN): Likewise.
3410 * tests/test-frexp.c (NaN): Likewise.
3411 * tests/test-isnand.c (NaN): Likewise.
3412 * tests/test-isnanf.c (NaN): Likewise.
3413 * tests/test-round1.c (NaN): Likewise.
3414 * tests/test-roundf1.c (NaN): Likewise.
3415 * tests/test-snprintf-posix.h (NaN): Likewise.
3416 * tests/test-sprintf-posix.h (NaN): Likewise.
3417 * tests/test-trunc1.c (NaN): Likewise.
3418 * tests/test-truncf1.c (NaN): Likewise.
3419 * tests/test-vasnprintf-posix.c (NaN): Likewise.
3420 * tests/test-vasprintf-posix.c (NaN): Likewise.
3421 * modules/isnand-nolibm (Depends-on): Add math.
3422 * modules/isnanf-nolibm (Depends-on): Likewise.
3423 * modules/isnanl (Depends-on): Likewise.
3424 * modules/isnanl-nolibm (Depends-on): Likewise.
3425 * modules/snprintf-posix-tests (Depends-on): Likewise.
3426 * modules/sprintf-posix-tests (Depends-on): Likewise.
3427 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
3428 * modules/vsprintf-posix-tests (Depends-on): Likewise.
3429 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
3430 * modules/vasprintf-posix-tests (Depends-on): Likewise.
3432 2008-03-31 Bruno Haible <bruno@clisp.org>
3434 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
3435 * doc/posix-functions/strtod.texi: Likewise.
3437 2008-03-31 Bruno Haible <bruno@clisp.org>
3439 * tests/test-strtod.c (main): Don't use C99 syntax.
3441 2008-03-31 Bruno Haible <bruno@clisp.org>
3443 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
3444 Reported by Eric Blake.
3446 2008-03-31 Jim Meyering <meyering@redhat.com>
3448 Don't compare actual signbit return values.
3449 * tests/test-strtod.c (main): Rather, compare only their
3450 zero/non-zero nature.
3452 2008-03-31 Eric Blake <ebb9@byu.net>
3454 More strtod documentation.
3455 * doc/posix-functions/strtod.texi (strtod): Interpret more test
3456 failures as distinct bugs.
3458 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
3460 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
3461 Problem reported by Erik Benada in
3462 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
3464 2008-03-30 Bruno Haible <bruno@clisp.org>
3466 * tests/test-strtod.c: Add comments about which assertion fails on which
3468 * doc/posix-functions/strtod.texi: Add info about many more platforms.
3470 2008-03-30 Eric Blake <ebb9@byu.net>
3472 Test signbit behavior on zeros.
3473 * tests/test-signbit.c (test_signbitf): Add tests for zero.
3474 (test_signbitd, test_signbitl): Likewise.
3476 More strtod touchups.
3477 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
3478 sign of negative underflow, for now. Use .5, not .1.
3479 * doc/posix-functions/strtod.texi (strtod): Mention these
3481 Reported by Jim Meyering.
3483 2008-03-30 Bruno Haible <bruno@clisp.org>
3485 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
3486 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
3488 2008-03-30 Bruno Haible <bruno@clisp.org>
3490 Avoid failure when attempting to return empty iconv results on some
3492 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
3493 allocation, don't report ENOMEM when the resulting string is empty.
3495 2008-03-30 Bruno Haible <bruno@clisp.org>
3498 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
3499 Don't consider the width for tmp_length. Check count against tmp_length
3500 before doing the padding. Ensure enough allocation during padding.
3502 2008-03-30 Eric Blake <ebb9@byu.net>
3505 * lib/strtod.c (strtod): Avoid compiler warnings.
3506 Reported by Jim Meyering.
3508 2008-03-30 Bruno Haible <bruno@clisp.org>
3510 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
3511 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
3512 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
3513 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
3514 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
3515 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
3516 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
3517 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
3519 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
3520 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
3521 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
3522 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
3523 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
3524 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
3525 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
3526 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
3528 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
3529 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
3530 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
3531 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
3532 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
3533 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
3534 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
3535 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
3537 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
3538 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
3540 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
3541 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
3543 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
3544 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
3546 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
3547 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
3548 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
3550 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
3551 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
3552 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
3554 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
3555 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
3556 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
3558 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
3559 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
3560 * modules/vasprintf (Depends-on): Add EOVERFLOW.
3562 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
3563 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
3564 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
3565 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
3566 (Depends-on): Add EOVERFLOW.
3567 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
3568 (Depends-on): Add EOVERFLOW.
3569 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
3570 (Depends-on): Add EOVERFLOW.
3571 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
3572 (Depends-on): Add EOVERFLOW.
3573 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
3574 (Depends-on): Add EOVERFLOW.
3575 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
3576 (Depends-on): Add EOVERFLOW.
3577 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
3578 (Depends-on): Add EOVERFLOW.
3579 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
3580 (Depends-on): Add EOVERFLOW.
3582 * lib/sprintf.c (EOVERFLOW): Remove fallback.
3583 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
3584 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
3586 * lib/snprintf.c (EOVERFLOW): Remove fallback.
3587 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
3588 * modules/snprintf (Depends-on): Add EOVERFLOW.
3590 * lib/poll.c (EOVERFLOW): Remove fallback.
3591 * modules/poll (Depends-on): Add EOVERFLOW.
3593 * lib/getugroups.c (EOVERFLOW): Remove fallback.
3594 * modules/getugroups (Depends-on): Add EOVERFLOW.
3596 * lib/getdelim.c (EOVERFLOW): Remove fallback.
3597 * modules/getdelim (Depends-on): Add EOVERFLOW.
3599 * lib/ftell.c (EOVERFLOW): Remove fallback.
3600 * modules/ftell (Depends-on): Add EOVERFLOW.
3602 * lib/fprintf.c (EOVERFLOW): Remove fallback.
3603 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
3604 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
3606 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
3608 * modules/EOVERFLOW-tests: New file.
3609 * tests/test-EOVERFLOW.c: New file.
3611 * modules/EOVERFLOW: New file.
3612 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
3614 2008-03-30 Bruno Haible <bruno@clisp.org>
3616 Fix bug introduced on 2007-06-10.
3617 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
3618 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
3620 2008-03-30 Bruno Haible <bruno@clisp.org>
3622 Improve freadseek's efficiency after ungetc.
3623 * lib/freadseek.c: Include freadahead.h.
3624 (freadptrinc): New function, extracted from freadseek.
3625 (freadseek): Use it in a loop. Use freadahead to determine the number
3627 * modules/freadseek (Depends-on): Add freadahead.
3628 (configure.ac): Require AC_C_INLINE.
3630 2008-03-30 Bruno Haible <bruno@clisp.org>
3632 * lib/freadseek.c (freadseek): Don't ignore the return value of
3635 2008-03-29 Eric Blake <ebb9@byu.net>
3637 Add hex float support.
3638 * modules/strtod (Depends-on): Add c-ctype.
3639 (Link): Mention POW_LIB.
3640 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
3641 whitespace between 'e' and exponent.
3642 * tests/test-strtod.c (main): Enable hex float tests.
3643 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
3646 Document various strtod bugs, with some fixes.
3647 * doc/posix-functions/strtod.texi (strtod): Document bugs with
3648 "-0x", "inf", "nan", and hex constants.
3649 * doc/posix-functions/atof.texi (atof): Likewise.
3650 * modules/stdlib (Makefile.am): Support strtod.
3651 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
3652 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
3653 detect additional strtod bugs.
3654 * lib/stdlib.in.h (rpl_strtod): Add declarations.
3655 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
3656 bool where appropriate. Parse 'inf' and 'nan'.
3657 * tests/test-strtod.c: New file.
3658 * modules/strtod (Depends-on): Add stdbool, stdlib.
3659 (configure.ac): Turn on module indicator.
3660 * modules/strtod-tests: New module.
3662 2008-03-29 Eric Blake <ebb9@byu.net>
3665 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
3666 * modules/ftell-tests (Depends-on): Add binary-io.
3667 * modules/ftello-tests (Depends-on): Likewise.
3668 * tests/test-ftell.c (main): Enhance test to cover behavior after
3669 ungetc. Enforce binary mode.
3670 * tests/test-ftello.c (main): Likewise.
3672 Pass test-freadseek on cygwin.
3673 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
3674 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
3677 * tests/test-fflush2.c (main): Fix typo.
3679 2008-03-29 Bruno Haible <bruno@clisp.org>
3681 * tests/test-fflush2.c (main): Temporarily disable the contents of
3683 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
3684 Reported by Eric Blake.
3686 2008-03-28 Simon Josefsson <simon@josefsson.org>
3688 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
3689 (GC_SHA224_DIGEST_SIZE): Add.
3691 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
3692 (gc_hash_digest_length): Likewise.
3693 (gc_hash_buffer): Likewise.
3695 2008-03-25 Bruno Haible <bruno@clisp.org>
3697 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
3698 detail which gettext release to use.
3699 Reported by Simon Josefsson.
3701 2008-03-26 Jim Meyering <meyering@redhat.com>
3703 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
3704 * modules/gnumakefile (clean-GNUmakefile): Also, use
3705 test ... && ... || : syntax rather than if-then ... fi.
3707 gnumakefile: Don't double-quote-expand $(VPATH) value.
3708 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
3710 2008-03-24 Eric Blake <ebb9@byu.net>
3712 Alter GNUmakefile to install into top directory.
3713 * modules/maintainer-makefile: Split, and add dependency...
3714 * modules/gnumakefile: to this new module.
3715 * build-aux/GNUmakefile: Move...
3716 * top/GNUmakefile: ...here.
3717 * build-aux/maint.mk: Move...
3718 * top/maint.mk: ...here.
3719 * MODULES.html.sh (Support for maintaining...): Document new
3722 2008-03-23 Bruno Haible <bruno@clisp.org>
3724 * gnulib-tool: New options --vc-files, --no-vc-files.
3725 (func_usage): Document them.
3726 (vc_files): New variable.
3727 (func_import): Consider vc_files.
3728 (func_create_testdir): Set vc_files to empty.
3729 Suggested by Jim Meyering and Karl Berry.
3731 2008-03-23 Bruno Haible <bruno@clisp.org>
3733 Fix regex compilation error on HP-UX 11.
3734 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
3735 * modules/regex (Files): Add m4/mbstate_t.m4.
3736 Reported by Ton Voon <ton.voon@altinity.com>.
3738 2008-03-23 Bruno Haible <bruno@clisp.org>
3740 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
3742 2008-03-23 Eric Blake <ebb9@byu.net>
3743 Bruno Haible <bruno@clisp.org>
3745 Install files from top/ in the destination directory.
3746 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
3747 augmentation also for the files from top/.
3748 (func_import, func_create_testdir): Rewrite file names:
3749 top/filename -> filename.
3751 2008-03-23 Bruno Haible <bruno@clisp.org>
3753 Tweak "gnulib --version" output.
3754 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
3756 2008-03-23 Bruno Haible <bruno@clisp.org>
3758 Tweak "gnulib --version" output.
3759 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
3760 rather than contents of ChangeLog, when possible.
3762 2008-03-21 Eric Blake <ebb9@byu.net>
3764 More --version tweaks.
3765 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
3766 date of last ChangeLog entry.
3768 2008-03-21 Jim Meyering <meyering@redhat.com>
3770 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
3772 2008-03-20 Eric Blake <ebb9@byu.net>
3775 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
3777 2008-03-20 Simon Josefsson <simon@josefsson.org>
3779 * build-aux/GNUmakefile: Make git-version-gen optional. Add
3780 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
3782 2008-03-20 Eric Blake <ebb9@byu.net>
3784 Sync GNUmakefile with coreutils.
3785 * build-aux/GNUmakefile (have-Makefile): Rename...
3786 (_have-Makefile): ...to this, for namespace consideration.
3787 (GNUmakefile.cfg): Include, if present.
3788 (_autoreconf): Define a default.
3789 (_is-dist-target): New rule for rebuilds to pick up intra-release
3791 (maint-cfg.mk): Rename...
3792 (cfg.mk): ...to this.
3794 2008-03-18 Jim Meyering <meyering@redhat.com>
3796 New script and module: mktempd
3797 * MODULES.html.sh (maint+release support): Add mktempd.
3798 * build-aux/mktempd: New file.
3799 * modules/mktempd: New file.
3801 2008-03-15 Jim Meyering <meyering@redhat.com>
3804 * lib/sha1.c, lib/md5.c: 63 != ~63.
3805 Reported by Andreas Schwab.
3807 sha1.c, md5.c: Hoist a redundant expression.
3808 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
3809 "ctx->buflen" only once, before calling *_process_block.
3810 * lib/md5.c (md5_process_bytes): Likewise.
3812 2008-03-14 Eric Blake <ebb9@byu.net>
3814 Bump copyright year in files generated by gnulib-tool.
3815 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
3816 gnulib-tool, rather than hard-coding it.
3818 Fix 'gnulib-tool --version' output to work with git.
3819 * gnulib-tool (func_gnulib_dir): New function, extracted from...
3821 (func_version): Use it to invoke git-version-gen, rather than
3822 relying on CVS keyword expansion. Modernize wording.
3823 (cvsdatestamp, last_checkin_date, version): Kill unused
3826 2008-03-12 Jim Meyering <meyering@redhat.com>
3828 Recognize optional cast of the argument to free.
3829 * build-aux/useless-if-before-free: Update regexps.
3831 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
3833 2008-03-11 Bruno Haible <bruno@clisp.org>
3835 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
3836 by a single package.
3837 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
3838 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
3839 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
3840 Reported by Sam Steingold <sds@gnu.org>.
3842 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
3844 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
3847 2008-03-11 Bruno Haible <bruno@clisp.org>
3849 Avoid conflicts between local macro definitions.
3850 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3851 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
3853 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
3854 Bruno Haible <bruno@clisp.org>
3856 Make va_copy work with some version of xlc on AIX 5.1.
3857 * lib/stdarg.in.h: New file.
3858 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
3859 On AIX, use a <stdarg.h> file substitute.
3860 * modules/stdarg (Files): Add lib/stdarg.in.h.
3861 (Depends-on): Add include_next.
3862 (Makefile.am): Build a stdarg.h substitute if requested.
3863 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
3865 2008-03-10 Bruno Haible <bruno@clisp.org>
3867 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
3868 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3869 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
3871 2008-03-10 Bruno Haible <bruno@clisp.org>
3873 * modules/stdlib (Depends-on): Add include_next, remove
3876 2008-03-09 Bruno Haible <bruno@clisp.org>
3878 * lib/freadahead.h (freadahead): Document more precisely.
3879 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
3880 the sum of both buffer sizes.
3881 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
3882 * NEWS: Document the change.
3884 2008-03-09 Bruno Haible <bruno@clisp.org>
3886 Extend freadptr to return also the buffer size.
3887 * lib/freadptr.h (freadptr): Add sizep argument.
3888 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
3889 (freadptr): Add sizep argument. Determine buffer size like freadahead
3891 * tests/test-freadptr.c: Don't include freadahead.h.
3892 (main): Adapt for new calling convention of freadptr.
3893 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
3894 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
3895 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
3896 tests/test-freadptr2.sh.
3897 (Depends): Remove freadahead.
3898 (TESTS): Add test-freadptr2.sh.
3899 (check_PROGRAMS): Add test-freadptr2.
3901 2008-03-09 Bruno Haible <bruno@clisp.org>
3903 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
3904 Report and solution by Simon Josefsson.
3906 2008-03-06 Bruno Haible <bruno@clisp.org>
3908 Make fflush after ungetc work on BSD platforms.
3909 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
3910 * tests/test-fflush2.c: New file.
3911 * tests/test-fflush2.sh: New file.
3912 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
3913 tests/test-fflush2.c.
3914 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
3915 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
3917 2008-03-06 Eric Blake <ebb9@byu.net>
3919 Likewise for ftello.
3920 * modules/ftello (Dependencies): Add extensions.
3921 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
3923 2008-03-06 Bruno Haible <bruno@clisp.org>
3925 * modules/fseeko (Dependencies): Add extensions.
3926 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
3927 Needed on glibc systems.
3929 2008-03-06 Bruno Haible <bruno@clisp.org>
3931 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
3933 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3935 2008-03-06 Bruno Haible <bruno@clisp.org>
3937 * users.txt: Add libgnupdf.
3939 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
3941 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
3942 (Header File Substitutes, Function Substitutes,
3943 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
3944 (Build robot for gnulib): Fix typo.
3946 2008-03-06 Bruno Haible <bruno@clisp.org>
3948 * doc/gnulib-tool.texi (VCS Issues): Small updates.
3949 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3951 2008-03-06 Bruno Haible <bruno@clisp.org>
3953 * doc/func.texi: New file, extracted from doc/gnulib.texi.
3954 * doc/gnulib.texi: Include it.
3956 2008-03-06 Simon Josefsson <simon@josefsson.org>
3958 * modules/func (License): Change license to unlimited; there was
3959 no LGPL parts in the module anyway.
3961 2008-03-06 Simon Josefsson <simon@josefsson.org>
3963 * modules/__func__: Renamed to modules/func.
3964 * modules/__func__-tests: Renamed to modules/func-tests.
3965 * tests/test-__func__.c: Renamed to tests/test-func.c.
3966 * m4/__func__.m4: Renamed to m4/func.m4.
3967 * doc/gnulib.texi (__func__): Section renamed to func.
3968 Suggested by Eric Blake <ebb9@byu.net>.
3970 2008-03-06 Simon Josefsson <simon@josefsson.org>
3972 * doc/gnulib.texi (__func__): Use C99 terminology when talking
3973 about __func__. Make example self-contained. Suggested by Eric
3974 Blake <ebb9@byu.net>.
3976 * tests/test-__func__.c (main): Avoid extraneous () around __func.
3977 Suggested by Eric Blake <ebb9@byu.net>.
3979 2008-03-06 Simon Josefsson <simon@josefsson.org>
3981 * modules/__func__: New file.
3982 * modules/__func__-tests: New file.
3983 * tests/test-__func__.c: New file.
3984 * m4/__func__.m4: New file.
3985 * doc/gnulib.texi (__func__): Document __func__ module.
3987 2008-03-05 Simon Josefsson <simon@josefsson.org>
3989 * modules/byteswap (License): Re-license as LGPLv2+.
3991 2008-03-05 Simon Josefsson <simon@josefsson.org>
3993 * doc/Makefile: Add pdf target.
3995 2008-03-05 Simon Josefsson <simon@josefsson.org>
3997 * modules/inline (License): Use 'unlimited', since there are only
3998 *.m4 files in this module.
4000 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
4001 Bruno Haible <bruno@clisp.org>
4003 Add support for HP C 7.1 on OpenVMS 8.3.
4004 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4006 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
4008 Update VMS specifics.
4009 * lib/getopt.c [VMS]: Remove include of unixlib.h.
4011 2008-03-02 Jim Meyering <meyering@redhat.com>
4013 Remove the last dependency on the "free" module.
4014 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4015 Reported by Bob Proulx.
4017 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4019 Remove useless "if" tests before free. Deprecate "free" module.
4020 * doc/posix-functions/free.texi: Mention that this
4021 module is no longer useful.
4022 * modules/free (Notice): Say this module is obsolete.
4023 * modules/readutmp (Depends-on): Remove free.
4024 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4025 * lib/putenv.c (putenv): Likewise.
4026 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4027 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4028 * tests/test-c-strcasestr.c (main): Likewise.
4029 * tests/test-c-strstr.c (main): Likewise.
4030 * tests/test-mbscasestr1.c (main): Likewise.
4031 * tests/test-mbscasestr2.c (main): Likewise.
4032 * tests/test-mbsstr1.c (main): Likewise.
4033 * tests/test-mbsstr2.c (main): Likewise.
4034 * tests/test-memmem.c (main): Likewise.
4035 * tests/test-strcasestr.c (main): Likewise.
4036 * tests/test-striconv.c (main): Likewise.
4037 * tests/test-striconveh.c (main): Likewise.
4038 * tests/test-striconveha.c (main): Likewise.
4039 * tests/test-strstr.c (main): Likewise.
4041 * build-aux/git-version-gen: Adjust a comment and the Usage string.
4043 bootstrap: sync from coreutils again
4044 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4046 2008-03-01 Jim Meyering <meyering@redhat.com>
4048 bootstrap: sync from coreutils
4049 * build-aux/bootstrap (update_po_files): Copy a .po file into place
4050 also when the target doesn't exist.
4052 2008-03-01 Eric Blake <ebb9@byu.net>
4054 Fix bugs in last patch.
4055 * lib/memchr2.c (memchr2): Fix typo.
4056 * tests/test-memchr2.c: Test previous bug, and don't use GNU
4058 Reported by Bruce Korb.
4060 New module 'memchr2'.
4061 * modules/memchr2: New file.
4062 * modules/memchr2-tests: Likewise.
4063 * lib/memchr2.h: Likewise.
4064 * lib/memchr2.c: Likewise, based on memchr.c.
4065 * tests/test-memchr2.c: New test.
4066 * MODULES.html.sh (String handling): Add memchr2.
4068 2008-02-29 Bruno Haible <bruno@clisp.org>
4070 * modules/freadseek-tests: New file.
4071 * tests/test-freadseek.sh: New file.
4072 * tests/test-freadseek.c: New file.
4074 New module 'freadseek'.
4075 * modules/freadseek: New file.
4076 * lib/freadseek.h: New file.
4077 * lib/freadseek.c: New file.
4078 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4080 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
4082 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4085 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4086 program_invocation_name and program_invocation_short_name are
4089 2008-02-28 Bruno Haible <bruno@clisp.org>
4091 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4092 * tests/test-freadptr.sh: Also test non-seekable stdin.
4094 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
4096 * build-aux/bootstrap (source_base, m4_base)
4097 (doc_base, tests_base): New variables.
4098 (gnulib_tool_options): Do not hardcode base directories, use
4099 the above variables instead.
4101 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
4103 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
4105 2008-02-28 Bruno Haible <bruno@clisp.org>
4107 * modules/freadptr-tests: New file.
4108 * tests/test-freadptr.sh: New file.
4109 * tests/test-freadptr.c: New file.
4111 New module 'freadptr'.
4112 * modules/freadptr: New file.
4113 * lib/freadptr.h: New file.
4114 * lib/freadptr.c: New file.
4115 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
4117 2008-02-26 Karl Berry <karl@freefriends.org>
4120 * libltdl/argz.c (argz_add, argz_count): New functions.
4121 * libltdl/argz.in.h: Declare them.
4122 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
4124 2008-02-22 Bruno Haible <bruno@clisp.org>
4126 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
4127 is a pointer type. Needed for HP-UX 10.
4128 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
4129 * doc/posix-functions/gmtime_r.texi: Likewise.
4130 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4132 2008-02-24 Bruno Haible <bruno@clisp.org>
4134 * modules/environ-tests: New file.
4135 * tests/test-environ.c: New file.
4137 New module 'environ'.
4138 * modules/environ: New file.
4139 * lib/unistd.in.h (environ): New declaration.
4140 * m4/environ.m4: New file.
4141 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
4143 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
4145 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
4147 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
4148 wrong claim that 'environ' is missing on some systems.
4149 * modules/execute (Depends-on): Add environ.
4150 * lib/execute.c (environ): Remove fallback declaration.
4151 * modules/pipe (Depends-on): Add environ.
4152 * lib/pipe.c (environ): Remove fallback declaration.
4153 * modules/setenv (Depends-on): Add environ.
4154 * lib/setenv.c (environ): Remove fallback declaration.
4155 * modules/unsetenv (Depends-on): Add environ.
4156 * lib/unsetenv.c (environ): Remove fallback declaration.
4157 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
4159 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
4160 (gl_PREREQ_UNSETENV): Likewise.
4162 2008-02-24 Bruno Haible <bruno@clisp.org>
4164 * doc/posix-functions/environ.texi: Document the MacOS X problem.
4166 2008-02-20 Bob Proulx <bob@proulx.com>
4168 Enable use of older two part flavor 'git describe'.
4169 * build-aux/git-version-gen: If using the older two part flavor of
4170 git version then recreate the third part now present in the
4171 newer three part flavor of git describe.
4173 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
4175 * lib/fts.c (fts_build): Typo correction to comment.
4177 2008-02-17 Bruno Haible <bruno@clisp.org>
4179 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
4180 generating no-op conflicts.
4182 2008-02-17 Bruno Haible <bruno@clisp.org>
4185 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
4186 result_entries, rather than an index-based loop.
4188 2008-02-17 Bruno Haible <bruno@clisp.org>
4191 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
4193 (entry_create): New function.
4194 (entry_hashcode): Use the cached hashcode if possible.
4195 (read_changelog_file, try_split_merged_entry): Use entry_create.
4197 2008-02-17 Bruno Haible <bruno@clisp.org>
4199 Speed up from O(n^2) to O(n) for long ChangeLog files.
4200 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
4201 (read_changelog_file): Change implementation of entries_reversed list
4203 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
4205 2008-02-17 Bruno Haible <bruno@clisp.org>
4207 New option --split-merged-entry.
4208 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
4209 (find_paragraph_end, try_split_merged_entry): New functions.
4210 (long_options): Add option --split-merged-entry.
4211 (usage): Document option --split-merged-entry.
4212 (main): Implement option --split-merged-entry.
4213 Reported by Eric Blake.
4215 2008-02-17 Bruno Haible <bruno@clisp.org>
4217 * lib/git-merge-changelog.c: Include c-strstr.h.
4218 (main): Support the "git pull --rebase" situation.
4219 * modules/git-merge-changelog (Depends-on): Add c-strstr.
4220 Reported by Eric Blake.
4222 2008-02-16 Eric Blake <ebb9@byu.net>
4224 Avoid doubling \ in common case of "c-maybe" quoting style.
4225 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
4226 eliding outer quotes.
4227 * lib/quotearg.h: Document this.
4228 * tests/test-quotearg.c (result_strings, inputs, results_g)
4229 (flag_results, locale_results): Test it by adding a new string to
4231 (compare_strings): Test new string.
4233 2008-02-13 Eric Blake <ebb9@byu.net>
4235 Avoid trigraph quoting in default output.
4236 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
4237 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
4238 unless explicitly requested.
4239 * tests/test-quotearg.c (flag_results, main): Add additional tests.
4241 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
4243 Don't rely on signed integer overflowing to negative value.
4244 * lib/getugroups.c (getugroups): Include <limits.h>.
4245 Instead, compare against INT_MAX, and increment only if the test passes.
4247 2008-02-13 Jim Meyering <meyering@redhat.com>
4248 and Eric Blake <ebb9@byu.net>
4250 Avoid shadowing warning and compile errors on Linux.
4251 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
4252 forwarding macros on Linux.
4253 (dcgettext): Define a stub, for Linux.
4254 (results_g, main): Avoid warnings.
4256 2008-02-12 Eric Blake <ebb9@byu.net>
4258 Silence warning in last patch.
4259 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
4261 Quotearg part 4: add tests, fix c-maybe colon quoting.
4262 * lib/quotearg.h: Improve documentation.
4263 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
4264 escapes when adding outer quotes. When quoting trigraphs, use
4265 valid C notation. When quoting NUL, omit extra characters if next
4266 character is not digit. Alter prototype.
4267 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
4269 * modules/quotearg-tests: New module.
4270 * tests/test-quotearg.c: New test.
4272 2008-02-07 Eric Blake <ebb9@byu.net>
4274 Quotearg part 3: add flag to control outer quote elision.
4275 * lib/quotearg.h (c_maybe_quoting_style): New style.
4276 (enum quoting_flags): Better documentation of flags.
4277 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
4279 (quotearg_buffer_restyled): Handle new flag to elide outer
4282 Quotearg part 2: add flag that can control NUL elision.
4283 * lib/quotearg.h (set_quoting_flags): New prototype.
4284 * lib/quotearg.c (struct quoting_options): Add flag field.
4285 (set_quoting_flags): New function.
4286 (quotearg_buffer_restyled): Add flags parameter.
4287 (quotearg_alloc_mem): Set the flag if length cannot be returned.
4288 (quotearg_n_options): Set the flag, since length cannot be
4290 (quoting_options_from_style): Default flags correctly.
4292 Quotearg part 1: more wrappers, restore quotearg_char state.
4293 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
4294 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
4295 (quotearg_colon_mem): New wrappers.
4296 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
4297 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
4299 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
4300 (quotearg_colon_mem): New functions.
4302 2008-02-11 Bruno Haible <bruno@clisp.org>
4304 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
4305 library in the current directory: it does not work with parallel make.
4306 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4308 2008-02-11 Bruno Haible <bruno@clisp.org>
4310 * .gitattributes: New file.
4312 2008-02-11 Jim Meyering <meyering@redhat.com>
4314 useless-if-before-free: Fix reversed exit values.
4315 * build-aux/useless-if-before-free: Use correct values
4316 for EXIT_MATCH and EXIT_NO_MATCH.
4318 * build-aux/useless-if-before-free: Close stdout carefully.
4320 2008-02-10 Bruno Haible <bruno@clisp.org>
4322 New module 'git-merge-changelog'.
4323 * modules/git-merge-changelog: New file.
4324 * lib/git-merge-changelog.c: New file.
4326 2008-02-10 Jim Meyering <meyering@redhat.com>
4328 useless-if-before-free: New option: --list (-l).
4330 useless-if-before-free: Don't exit immediately upon open failure.
4331 * build-aux/useless-if-before-free: Exit 2 for errors.
4332 Upon failure to open a file, don't exit immediately.
4333 Rather, just warn and continue with any remaining files.
4335 2008-02-10 Bruno Haible <bruno@clisp.org>
4337 New abstract list operation 'node_set_value'.
4338 * lib/gl_list.h (gl_list_node_set_value): New function.
4339 (struct gl_list_implementation): New field node_set_value.
4340 * lib/gl_list.c (gl_list_node_set_value): New function.
4341 * lib/gl_array_list.c (gl_array_node_set_value): New function.
4342 (gl_array_list_implementation): Update.
4343 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
4344 (gl_carray_list_implementation): Update.
4345 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
4346 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4347 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4348 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
4349 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4350 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4351 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4353 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4354 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
4355 (gl_sublist_list_implementation): Update.
4357 2008-02-10 Bruno Haible <bruno@clisp.org>
4359 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
4360 Needed when ELEMENT is #defined to 'some_type *'.
4362 2008-02-10 Jim Meyering <meyering@redhat.com>
4364 New script and module: useless-if-before-free
4365 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
4366 * build-aux/useless-if-before-free: New file.
4367 * modules/useless-if-before-free: New file.
4369 * build-aux/gitlog-to-changelog: Use committer date, not author date.
4371 xstrtol_error: Fix typo.
4372 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
4373 s/exit_failure/exit_status/.
4375 2008-02-09 Jim Meyering <meyering@redhat.com>
4377 New script and module: gitlog-to-changelog
4378 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
4379 * modules/gitlog-to-changelog: New file.
4380 * build-aux/gitlog-to-changelog: New file.
4382 2008-02-08 Jim Meyering <meyering@redhat.com>
4384 Avoid two "parameter unused" warnings.
4385 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4388 Use "git COMMAND", not "git-COMMAND".
4389 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
4390 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
4391 * build-aux/git-version-gen: Use "git status", not "git-status".
4393 2008-02-07 Bruno Haible <bruno@clisp.org>
4395 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
4396 Avoids a crash on Windows Vista.
4397 Reported by Adam Strzelecki <ono@java.pl> via
4398 Simon Josefsson <simon@josefsson.org>.
4400 2008-02-06 Bruno Haible <bruno@clisp.org>
4402 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
4403 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
4404 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
4405 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
4406 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4407 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4408 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
4409 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
4410 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4411 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4412 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4413 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4414 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4415 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4416 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4417 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
4419 * tests/test-snprintf-posix.h (test_function): Likewise.
4420 * tests/test-sprintf-posix.h (test_function): Likewise.
4421 * tests/test-vasprintf-posix.c (test_function): Likewise.
4422 * doc/posix-functions/fprintf.texi: Update.
4423 * doc/posix-functions/printf.texi: Update.
4424 * doc/posix-functions/snprintf.texi: Update.
4425 * doc/posix-functions/sprintf.texi: Update.
4426 * doc/posix-functions/vfprintf.texi: Update.
4427 * doc/posix-functions/vprintf.texi: Update.
4428 * doc/posix-functions/vsnprintf.texi: Update.
4429 * doc/posix-functions/vsprintf.texi: Update.
4430 Reported by Peter Fales <psfales@alcatel-lucent.com>.
4432 2008-02-06 Bruno Haible <bruno@clisp.org>
4434 Fix bug introduced on 2008-01-26.
4435 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
4437 2008-02-06 Bruno Haible <bruno@clisp.org>
4439 Fix bug introduced on 2007-06-10.
4440 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
4441 !NEED_PRINTF_FLAG_ZERO.
4443 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
4445 getloadavg: use libperfstat on AIX5
4446 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
4448 2008-02-03 Bruno Haible <bruno@clisp.org>
4450 * lib/diffseq.h: Add comments about required #includes.
4451 Reported by Michael Biggs <gnulib@doubleplum.net>.
4453 2008-02-01 Bruno Haible <bruno@clisp.org>
4455 * users.txt: Add gnuit.
4457 2008-01-31 Bruno Haible <bruno@clisp.org>
4459 * lib/md4.c (set_uint32): Mark as inline.
4460 * lib/md5.c (set_uint32): Likewise.
4461 * lib/sha1.c (set_uint32): Likewise.
4462 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
4463 * m4/md5.m4 (gl_MD5): Likewise.
4464 * m4/sha1.m4 (gl_SHA1): Likewise.
4466 2008-01-31 Jim Meyering <meyering@redhat.com>
4468 Use "sizeof VAR", rather than a literal "4".
4469 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
4470 * lib/md4.c (md4_read_ctx): Likewise.
4471 * lib/sha1.c (sha1_read_ctx): Likewise.
4473 2008-01-31 Simon Josefsson <simon@josefsson.org>
4475 * tests/test-sha1.c: New file, based on test-md5.c.
4477 * modules/crypto/sha1-tests: New file.
4479 2008-01-31 Simon Josefsson <simon@josefsson.org>
4481 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
4483 2008-01-31 Jim Meyering <meyering@redhat.com>
4485 Prefer "sizeof v" over the equivalent "4".
4486 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
4487 * lib/md5.c (set_uint32): Likewise.
4488 * lib/sha1.c (set_uint32): Likewise.
4490 2008-01-31 Simon Josefsson <simon@josefsson.org>
4492 * lib/sha1.c (set_uint32): Mark function as static.
4494 2008-01-31 Simon Josefsson <simon@josefsson.org>
4496 md2: clarify comments to say that alignment is not required.
4497 * lib/md2.h: Remove warning about alignment in comment.
4498 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
4499 never been required.
4501 2008-01-31 Simon Josefsson <simon@josefsson.org>
4503 md4: adapt alignment constraint fix from sha1.
4504 * lib/md4.c (set_uint32): New function, from sha1.c
4505 (md4_read_ctx): Use it.
4506 (md4_finish_ctx): Doc fix.
4507 * lib/md4.h: Doc fix.
4509 2008-01-31 Simon Josefsson <simon@josefsson.org>
4511 md5: adapt alignment constraint fix from sha1.
4512 * lib/md5.c (set_uint32): New function, from sha1.c
4513 (md5_read_ctx): Use it.
4514 (md5_finish_ctx): Doc fix.
4515 * lib/md5.h: Doc fix.
4517 2008-01-30 Peter Palfrader <weasel@debian.org>
4519 sha1: remove the result buffer alignment constraint
4520 * lib/sha1.c (set_uint32): New function.
4521 (sha1_read_ctx): Rewrite to remove the result buffer alignment
4523 (sha1_finish_ctx): Remove comment warning about alignment constraint.
4524 * lib/sha1.h: Likewise.
4526 2008-01-30 Andreas Schwab <schwab@suse.de>
4527 Bruno Haible <bruno@clisp.org>
4529 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
4530 correct definition of LDBL_MIN_EXP.
4532 2008-01-30 Karl Berry <karl@gnu.org>
4534 * config/srclist-update: try to preserve x bit on updates.
4535 * config/srclistvars.sh: update for karl.
4537 2008-01-29 Jim Meyering <meyering@redhat.com>
4539 vasnprintf.c: Avoid warning about unused label
4540 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
4541 "overflow" label definition and associated code with the
4542 same cpp condition that guards the sole use of that label.
4544 2008-01-26 Bruno Haible <bruno@clisp.org>
4546 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
4547 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
4548 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
4549 * lib/isnanl-nolibm.h (isnanl): Likewise.
4550 Reported by Paul Eggert <eggert@cs.ucla.edu>.
4552 2008-01-26 Bruno Haible <bruno@clisp.org>
4554 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
4555 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
4557 2008-01-26 Bruno Haible <bruno@clisp.org>
4559 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
4560 GCC >= 4.0 built-in.
4561 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
4563 2008-01-26 Bruno Haible <bruno@clisp.org>
4565 Rename isnan, applicable to 'double' only, to isnand.
4566 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
4567 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
4568 (configure.ac): Update.
4569 (Include): Replace "isnan.h" with "isnand.h".
4570 * m4/isnand.m4: Renamed from m4/isnan.m4.
4571 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
4572 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
4574 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
4575 instead of HAVE_ISNAN_IN_LIBC.
4576 (isnand): Renamed from isnan.
4577 * lib/isnand.c: New file.
4578 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
4579 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
4580 (Makefile.am): Update.
4581 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
4582 Include isnand.h instead of isnan.h.
4583 (main): Test isnand instead of isnan.
4584 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
4586 * modules/frexp (Depends-on): Likewise.
4587 * modules/frexp-tests (Depends-on): Likewise.
4588 * modules/frexp-nolibm (Depends-on): Likewise.
4589 * modules/frexp-nolibm-tests (Depends-on): Likewise.
4590 * modules/isfinite (Depends-on): Likewise.
4591 * modules/round-tests (Depends-on): Likewise.
4592 * modules/signbit (Depends-on): Likewise.
4593 * modules/signbit-tests (Depends-on): Likewise.
4594 * modules/snprintf-posix (Depends-on): Likewise.
4595 * modules/sprintf-posix (Depends-on): Likewise.
4596 * modules/trunc-tests (Depends-on): Likewise.
4597 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4598 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4599 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4600 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4601 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4602 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4603 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4604 * modules/vasnprintf-posix (Depends-on): Likewise.
4605 * modules/vasprintf-posix (Depends-on): Likewise.
4606 * modules/vfprintf-posix (Depends-on): Likewise.
4607 * modules/vsnprintf-posix (Depends-on): Likewise.
4608 * modules/vsprintf-posix (Depends-on): Likewise.
4609 * lib/frexp.c: Include isnand.h instead of isnan.h.
4610 (ISNAN): Set to isnand instead of isnan.
4611 * lib/isfinite.c: Include isnand.h instead of isnan.h.
4612 (gl_isfinited): Use isnand instead of isnan.
4613 * lib/signbitd.c: Include isnand.h instead of isnan.h.
4614 (gl_signbitd): Use isnand instead of isnan.
4615 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
4616 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
4617 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
4618 (main): Use isnand instead of isnan.
4619 * tests/test-round1.c: Include isnand.h.
4620 (main): Use isnand instead of isnan.
4621 * tests/test-round2.c: Include isnand.h instead of isnan.h.
4622 (ISNAN): Set to isnand instead of isnan.
4623 * tests/test-trunc1.c: Include isnand.h.
4624 (main): Use isnand instead of isnan.
4625 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
4626 (equal): Use isnand instead of isnan.
4627 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
4629 * NEWS: Mention the change.
4631 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
4632 Bruno Haible <bruno@clisp.org>
4634 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
4635 the GCC builtins for signbits are present and set
4636 REPLACE_SIGNBIT_USING_GCC if so.
4637 * lib/math.in.h (signbit): Define using GCC builtins if
4638 REPLACE_SIGNBIT_USING_GCC is set.
4639 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4640 REPLACE_SIGNBIT_USING_GCC.
4641 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
4643 2008-01-25 Jim Meyering <meyering@redhat.com>
4645 Prefer <config.h> over "config.h". See autoconf doc for explanation.
4646 * lib/poll.c: Include <config.h>, not "config.h".
4647 * tests/test-getaddrinfo.c: Likewise.
4649 2008-01-25 Simon Josefsson <simon@josefsson.org>
4651 * modules/sockets-tests: New file.
4653 2008-01-24 Simon Josefsson <simon@josefsson.org>
4655 * modules/sockets: New module, can be used to call WSA_Startup and
4656 WSA_Cleanup when needed.
4658 * lib/sockets.h, lib/sockets.c: New files.
4660 * m4/sockets.m4: New file.
4662 * tests/test-sockets.c: New file.
4664 2008-01-19 Bruno Haible <bruno@clisp.org>
4666 * doc/posix-headers: Renamed from doc/headers.
4667 * doc/posix-functions: Renamed from doc/functions.
4668 * doc/gnulib.texi: Update.
4670 2008-01-19 Bruno Haible <bruno@clisp.org>
4672 * doc/glibc-functions/strcasestr.texi: Include contents of
4673 doc/functions/strcasestr.texi, fixing the list of platforms.
4674 * doc/functions/strcasestr.texi: Remove file.
4676 2008-01-19 Bruno Haible <bruno@clisp.org>
4678 * doc/glibc-functions/memmem.texi: Include contents of
4679 doc/functions/memmem.texi.
4680 * doc/functions/memmem.texi: Remove file.
4682 2008-01-18 Bruno Haible <bruno@clisp.org>
4684 * doc/glibc-functions/*.texi: New files.
4685 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
4686 to use the new files.
4688 2008-01-17 Bruno Haible <bruno@clisp.org>
4690 * tests/test-gethostname.c (main): Fix printf statement.
4692 2008-01-17 Simon Josefsson <simon@josefsson.org>
4694 * modules/gethostname-tests: New file.
4696 * tests/test-gethostname.c: New file.
4698 2008-01-17 Simon Josefsson <simon@josefsson.org>
4700 * lib/gethostname.c: Include string.h unconditionally, strncpy is
4701 used by the UNAME case. Reported by Bruno Haible
4704 2008-01-17 Eric Blake <ebb9@byu.net>
4706 Convert c-strcasestr to be more efficient.
4707 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
4708 (Depends-on): Add c-strcase, remove malloca, strnlen.
4709 * tests/test-c-strcasestr.c (main): Enhance test.
4710 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
4712 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
4714 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
4715 Use it in creating po/Makevars.
4717 2008-01-15 Simon Josefsson <simon@josefsson.org>
4719 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
4720 Applications that requires it should initialize libgcrypt
4723 2008-01-16 Simon Josefsson <simon@josefsson.org>
4725 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
4727 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
4729 Fix problem with getdate on mingw32 reported by Simon Josefsson
4730 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
4731 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
4732 tzname", when deciding whether to declare tzname.
4733 * lib/strftime.c (tzname): Likewise.
4735 2008-01-15 Bruno Haible <bruno@clisp.org>
4737 Work around a MacOS X 10.5 bug in frexpl().
4738 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
4739 * doc/functions/frexpl.texi: Document the bug.
4740 Reported by Elias Pipping <pipping@gentoo.org>.
4742 2008-01-14 Eric Blake <ebb9@byu.net>
4744 Touch up previous patch.
4745 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
4746 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
4748 Convert strcasestr module to use Two-Way algorithm.
4749 * modules/strcasestr-simple: New module, based on the old
4750 strcasestr, but with Two-Way rather than KMP.
4751 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
4752 * lib/string.in.h (rpl_strcasestr): Declare.
4753 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
4755 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
4756 * modules/string (Makefile.am): Support strcasestr.
4757 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
4758 * modules/strcasestr-tests (Depends-on): Check for alarm.
4759 * tests/test-strcasestr.c: Augment test.
4760 * lib/str-two-way.h: Clean up stray macro.
4761 * NEWS: Document new module.
4762 * MODULES.html.sh (string handling): Likewise.
4763 * doc/functions/strcasestr.texi: New file.
4764 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
4765 here, since it is not a POSIX function.
4767 2008-01-14 Colin Watson <cjwatson@debian.org>
4768 Bruno Haible <bruno@clisp.org>
4770 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
4771 works fine; if not, set REPLACE_STRSIGNAL.
4772 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
4773 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4775 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
4776 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
4777 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
4779 2008-01-14 Bruno Haible <bruno@clisp.org>
4781 * modules/strsignal (Include): Change to <string.h>.
4783 2008-01-14 Colin Watson <cjwatson@debian.org>
4785 * modules/argp (Notice): Add a notice recommending to change
4787 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
4789 2008-01-13 Colin Watson <cjwatson@debian.org>
4791 * modules/strsignal-tests: New file.
4792 * tests/test-strsignal.c: New file.
4794 * lib/strsignal.c: New file, from glibc with modifications.
4795 * lib/siglist.h: New file, from glibc with modifications.
4796 * lib/string.in.h (strsignal): New declaration.
4797 * m4/strsignal.m4: New file.
4798 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4799 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
4800 * modules/strsignal: New file.
4801 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
4802 HAVE_DECL_STRSIGNAL.
4804 2008-01-13 Bruno Haible <bruno@clisp.org>
4806 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
4807 locale encoding is not ASCII. Needed for OpenBSD 4.0.
4808 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4809 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4811 2008-01-13 Bruno Haible <bruno@clisp.org>
4813 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
4814 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
4815 * lib/argp.h (__attribute__): Likewise.
4816 * lib/c-stack.c (__attribute__): Likewise.
4817 * lib/error.h (__attribute__): Likewise.
4818 * lib/fts.c (__attribute__): Likewise.
4819 * lib/openat.h (__attribute__): Likewise.
4820 * lib/stdio.in.h (__attribute__): Likewise.
4821 * lib/string.in.h (__attribute__): Likewise.
4822 * lib/utimens.c (__attribute__): Likewise.
4823 * lib/vasnprintf.h (__attribute__): Likewise.
4824 * lib/xalloc.h (__attribute__): Likewise.
4825 * lib/xprintf.h (__attribute__): Likewise.
4826 * lib/xstrtol.h (__attribute__): Likewise.
4827 * lib/xvasprintf.h (__attribute__): Likewise.
4829 2008-01-12 Bruno Haible <bruno@clisp.org>
4831 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
4832 * doc/glibc-headers/a.out.texi: New file.
4833 * doc/glibc-headers/aliases.texi: New file.
4834 * doc/glibc-headers/alloca.texi: New file.
4835 * doc/glibc-headers/ar.texi: New file.
4836 * doc/glibc-headers/argp.texi: New file.
4837 * doc/glibc-headers/argz.texi: New file.
4838 * doc/glibc-headers/byteswap.texi: New file.
4839 * doc/glibc-headers/crypt.texi: New file.
4840 * doc/glibc-headers/endian.texi: New file.
4841 * doc/glibc-headers/envz.texi: New file.
4842 * doc/glibc-headers/err.texi: New file.
4843 * doc/glibc-headers/error.texi: New file.
4844 * doc/glibc-headers/execinfo.texi: New file.
4845 * doc/glibc-headers/fpu_control.texi: New file.
4846 * doc/glibc-headers/fstab.texi: New file.
4847 * doc/glibc-headers/fts.texi: New file.
4848 * doc/glibc-headers/getopt.texi: New file.
4849 * doc/glibc-headers/ieee754.texi: New file.
4850 * doc/glibc-headers/ifaddrs.texi: New file.
4851 * doc/glibc-headers/libintl.texi: New file.
4852 * doc/glibc-headers/mcheck.texi: New file.
4853 * doc/glibc-headers/mntent.texi: New file.
4854 * doc/glibc-headers/obstack.texi: New file.
4855 * doc/glibc-headers/paths.texi: New file.
4856 * doc/glibc-headers/printf.texi: New file.
4857 * doc/glibc-headers/pty.texi: New file.
4858 * doc/glibc-headers/resolv.texi: New file.
4859 * doc/glibc-headers/shadow.texi: New file.
4860 * doc/glibc-headers/sysexits.texi: New file.
4861 * doc/glibc-headers/ttyent.texi: New file.
4863 2008-01-12 Jim Meyering <meyering@redhat.com>
4865 announce-gen: emit Gnulib's git-based version string.
4866 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
4867 New option --gnulib-version=V, where V is expected to be
4868 the output of running git describe in the gnulib directory.
4869 (get_tool_versions): Request feedback on xdelta. I suspect it's
4870 not useful, and plan to stop publishing an xdelta file with each
4873 * build-aux/announce-gen: Also check for lzma-compressed files.
4875 2008-01-11 Bruno Haible <bruno@clisp.org>
4877 * tests/test-memmem.c (main): Increase maximum allowed time.
4878 * tests/test-strstr.c (main): Likewise.
4880 2008-01-11 Bruno Haible <bruno@clisp.org>
4882 * doc/functions/memmem.texi: Add more precisions about platforms.
4883 * doc/functions/strstr.texi: Likewise.
4885 2008-01-10 Eric Blake <ebb9@byu.net>
4887 * m4/strstr.m4: Delete cruft from copy-n-paste.
4888 Reported by Bruno Haible.
4890 2008-01-10 Bruno Haible <bruno@clisp.org>
4892 Make c-strstr rely on strstr.
4893 * lib/c-strstr.c: Don't include str-kmp.h.
4894 (c_strstr): Define in terms of strstr.
4895 * modules/c-strstr (Files): Remove lib/str-kmp.h.
4896 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
4898 2008-01-10 Bruno Haible <bruno@clisp.org>
4900 * doc/gnulib.texi (String Functions in C Locale): New section.
4901 * doc/c-ctype.texi: New file.
4902 * doc/c-strcase.texi: New file.
4903 * doc/c-strcaseeq.texi: New file.
4904 * doc/c-strcasestr.texi: New file.
4905 * doc/c-strstr.texi: New file.
4906 * doc/c-strtod.texi: New file.
4907 * doc/c-strtold.texi: New file.
4909 2008-01-10 Eric Blake <ebb9@byu.net>
4911 * lib/relocatable.h: Fix a comment.
4913 2008-01-10 Eric Blake <ebb9@byu.net>
4915 Share two-way algorithm.
4916 * lib/str-two-way.h: New file, merged from...
4917 * lib/memmem.c: ...here...
4918 * lib/strstr.c: ...and here.
4919 * modules/memmem (Files): Use it.
4920 * modules/strstr (Files): Likewise.
4922 Avoid quadratic strstr implementations.
4923 * lib/strstr.c: New file.
4924 * m4/strstr.m4: Likewise.
4925 * modules/strstr: Likewise.
4926 * modules/strstr-tests: Likewise.
4927 * tests/test-strstr.c: Likewise.
4928 * lib/string.in.h (rpl_strstr): Declare.
4929 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
4930 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
4931 * modules/string (Makefile.am): Likewise.
4932 * MODULES.html.sh (string handling): Mention new module.
4933 * doc/functions/strstr.texi (strstr): Document the bug.
4935 2008-01-10 Bruno Haible <bruno@clisp.org>
4937 * lib/relocatable.h (relocate): State whether result is freshly
4939 * lib/relocatable.c (relocate): Return a freshly allocated string
4940 instead of a pointer to a privately held string.
4941 Reported by Sylvain Beucler <beuc@gnu.org>.
4943 2008-01-10 Colin Watson <cjwatson@debian.org>
4945 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
4948 2008-01-09 Bruno Haible <bruno@clisp.org>
4950 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
4952 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
4953 if it's only a guess.
4954 * modules/memmem: Simplify by depending on memmem-simple.
4956 2008-01-09 Bruno Haible <bruno@clisp.org>
4958 Work around OpenBSD 4.0 tdelete() bug.
4959 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
4960 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
4961 macros and don't redefine the enum values.
4962 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
4963 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
4964 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
4966 2008-01-09 Bruno Haible <bruno@clisp.org>
4968 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
4969 (main): Don't perform the tests if setlocale did not install a UTF-8
4970 locale. Needed on OpenBSD 4.0.
4971 * modules/wcwidth-tests (Depends-on): Add localcharset.
4973 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
4975 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
4976 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
4977 * NEWS: announce this.
4978 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
4980 2008-01-09 Simon Josefsson <simon@josefsson.org>
4981 and Eric Blake <ebb9@byu.net>
4983 Add memmem-simple module.
4984 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
4985 (gl_FUNC_MEMMEM): Separate performance from presence checks.
4986 * modules/memmem-simple: New file.
4987 * modules/memmem (Description): Tweak.
4988 * MODULES.html.sh (string handling): Mention new module.
4989 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
4990 addressed by memmem-simple.
4991 * NEWS: Document the difference.
4993 2008-01-09 Eric Blake <ebb9@byu.net>
4995 Give gcc some memmem optimization hints.
4996 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
4997 (strcasestr): Declare as pure.
4998 * modules/memmem (Maintainer): Claim my implementation.
5000 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5002 Support AIX 6.1 and higher.
5003 * build-aux/config.libpath: Likewise.
5004 * build-aux/config.rpath: Likewise.
5006 2008-01-08 Jim Meyering <meyering@redhat.com>
5007 Bruno Haible <bruno@clisp.org>
5009 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5010 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5011 Reported by Peter Fales in
5012 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5014 2008-01-08 Bruno Haible <bruno@clisp.org>
5016 * modules/unictype/category-of (Depends-on): Add
5017 unictype/category-none.
5018 * modules/unictype/category-and-tests (Depends-on): Add
5019 unictype/category-{L,N,Lu,Nd}.
5020 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5021 * modules/unictype/category-or-tests (Depends-on): Add
5022 unictype/category-{L,N}.
5023 * modules/unictype/category-name-tests (Depends-on): Add
5024 unictype/category-{Z,Nl}.
5025 Reported by Simon Josefsson.
5027 2008-01-08 Bruno Haible <bruno@clisp.org>
5029 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5031 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5032 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5033 Reported by Peter Miller <millerp@canb.auug.org.au>.
5035 2008-01-08 Eric Blake <ebb9@byu.net>
5037 Rewrite memmem to guarantee linear complexity without malloc.
5038 * lib/memmem.c (memmem): Use Two-Way rather than
5039 Knuth-Morris-Pratt, to allow O(1) space usage.
5040 (critical_factorization, two_way_short_needle)
5041 (two_way_long_needle): New functions.
5042 (knuth_morris_pratt): Delete.
5043 * modules/memmem (Depends-on): No longer need malloca or stdbool.
5045 * tests/test-memmem.c (main): Add tests for periodic needle and
5046 sublinear performance.
5047 * doc/functions/memmem.texi (memmem): Document other deficiencies
5048 in cygwin and older glibc.
5050 2008-01-08 Bruno Haible <bruno@clisp.org>
5052 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5055 2008-01-08 Mike Frysinger <vapier@gentoo.org>
5057 Add a configure time option: --disable-acl.
5058 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5061 2008-01-06 Simon Josefsson <simon@josefsson.org>
5063 * tests/test-localename.c: Don't include obsolete "setenv.h".
5065 * modules/localename-tests (Depends-on): Need unsetenv.
5067 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5069 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5071 2008-01-06 Colin Watson <cjwatson@debian.org>
5073 * users.txt: Add man-db.
5075 2008-01-07 Bruno Haible <bruno@clisp.org>
5077 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5078 previous section name.
5080 2008-01-07 Bruno Haible <bruno@clisp.org>
5082 * lib/progname.c (set_program_name): Don't strip off a leading
5083 "lt-" prefix outside a .libs directory.
5084 Suggested by Paul Eggert.
5086 2008-01-01 Sylvain Beucler <beuc@gnu.org>
5087 Bruno Haible <bruno@clisp.org>
5089 Improve memory cleanup in 'relocatable' module.
5090 * lib/relocatable.h (compute_curr_prefix): Change return type to
5092 * lib/relocatable.c (compute_curr_prefix): Change return type to
5093 'char *'. Free curr_installdir after use.
5094 (relocate): Free curr_prefix_better after use.
5095 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5097 2008-01-01 Bruno Haible <bruno@clisp.org>
5099 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
5100 failure on older glibc systems.
5101 Reported by Peter Fales <psfales@alcatel-lucent.com>.
5103 2008-01-05 Eric Blake <ebb9@byu.net>
5105 Avoid quadratic system memmem.
5106 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
5107 Reported by Ralf Wildenhues.
5109 Fix memmem test for mingw.
5110 * modules/memmem-tests (configure.ac): Check for alarm.
5111 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
5113 * doc/functions/memmem.texi: New file.
5114 * doc/gnulib.texi (Function Substitutes): Add memmem.
5115 Reported by Bruno Haible.
5117 2008-01-04 Bruno Haible <bruno@clisp.org>
5119 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
5120 Require gl_HEADER_STRINGS_H_DEFAULTS, not
5121 gl_HEADER_STRING_H_DEFAULTS.
5123 2008-01-04 Eric Blake <ebb9@byu.net>
5125 Shorten duration of memmem test.
5126 * tests/test-memmem.c (main): Use alarm to declare failure if test
5128 Reported by Ralf Wildenhues.
5130 2007-12-21 Simon Josefsson <simon@josefsson.org>
5132 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
5133 string, needed by strerror.
5135 2008-01-03 Colin Watson <cjwatson@debian.org>
5136 Bruno Haible <bruno@clisp.org>
5138 * doc/gnulib-tool.texi (Localization): New section.
5140 2008-01-02 Bruno Haible <bruno@clisp.org>
5142 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
5143 variables to 'unsigned char *' type.
5144 Reported by Paul Eggert.
5146 2008-01-02 Jim Meyering <jim@meyering.net>
5148 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
5150 2007-12-31 Jim Meyering <jim@meyering.net>
5152 Avoid use of private FTS type name.
5153 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
5155 2007-12-30 Karl Berry <karl@gnu.org>
5157 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
5158 work around defect in Texinfo and/or the standalone Info browser.
5160 2007-12-30 Bruno Haible <bruno@clisp.org>
5162 Unify 5 copies of the KMP code.
5163 * lib/str-kmp.h: New file.
5164 * lib/c-strcasestr.c: Include str-kmp.h.
5165 (knuth_morris_pratt): Remove function.
5166 (c_strcasestr): Update.
5167 * lib/c-strstr.c: Include str-kmp.h.
5168 (knuth_morris_pratt): Remove function.
5169 (c_strcasestr): Update.
5170 * lib/mbscasestr.c: Include str-kmp.h.
5171 (knuth_morris_pratt_unibyte): Remove function.
5172 * lib/mbsstr.c: Include str-kmp.h.
5173 (knuth_morris_pratt_unibyte): Remove function.
5174 * lib/strcasestr.c: Include str-kmp.h.
5175 (knuth_morris_pratt): Remove function.
5176 (strcasestr): Update.
5177 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
5178 * modules/c-strstr (Files): Likewise.
5179 * modules/mbscasestr (Files): Likewise.
5180 * modules/mbsstr (Files): Likewise.
5181 * modules/strcasestr (Files): Likewise.
5182 Suggested by Paul Eggert.
5184 2007-12-30 Bruno Haible <bruno@clisp.org>
5186 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
5189 2007-12-30 Bruno Haible <bruno@clisp.org>
5191 * lib/xmalloca.h: Include xalloc.h.
5192 (xnmalloca): New macro.
5194 2007-12-30 Bruno Haible <bruno@clisp.org>
5196 * lib/malloca.h (nmalloca): New macro.
5197 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
5198 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
5199 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
5200 knuth_morris_pratt_multibyte): Likewise.
5201 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
5202 knuth_morris_pratt_multibyte): Likewise.
5203 * lib/memmem.c (knuth_morris_pratt): Likewise.
5204 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
5206 2007-12-25 Bruno Haible <bruno@clisp.org>
5208 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
5209 * lib/glob.c: Don't include openat.h.
5210 (link_exists2_p): Add back the code that deals with the
5211 !GLOB_ALTDIRFUNC case.
5212 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
5213 let it do the filename concatenation.
5214 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
5215 * modules/glob (Depends-on): Remove openat.
5217 2007-12-31 Bruno Haible <bruno@clisp.org>
5219 * modules/dirfd (License): Change to LGPLv2+.
5220 Approved by Jim Meyering.
5222 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
5224 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
5225 when multiplying M by sizeof (size_t).
5227 2007-12-10 Martin Lambers <marlam@marlam.de>
5229 Override getpagesize on mingw.
5230 * lib/getpagesize.c: New file.
5231 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
5232 * modules/getpagesize (Files): Add lib/getpagesize.c.
5233 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
5234 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5235 REPLACE_GETPAGESIZE.
5236 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
5238 2007-12-25 Bruno Haible <bruno@clisp.org>
5240 * modules/localcharset (Notice): New field.
5241 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
5242 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5244 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
5245 Bruno Haible <bruno@clisp.org>
5247 Avoid using the syntax symbol() in formatted documentation.
5248 * MODULES.html.sh (func_module): When replacing symbol() with a
5249 hyperlink, remove the parentheses. Show an error if some remain.
5250 Recognize and render the '...' syntax.
5251 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
5252 Rework. Add paragraph about GCC's inlining.
5253 * doc/alloca.texi: Likewise.
5254 * doc/error.texi: Remove parentheses from symbol reference.
5255 * doc/gnulib-intro.texi: Likewise.
5256 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
5257 * modules/fnmatch (Description): Reword to say "the ... function".
5258 * modules/full-read (Description): Likewise.
5259 * modules/full-write (Description): Likewise.
5260 * modules/safe-read (Description): Likewise.
5261 * modules/safe-write (Description): Likewise.
5262 * modules/strchrnul (Description): Likewise.
5263 * modules/trim (Description): Likewise.
5264 * modules/error (Description): Remove parentheses from symbol
5266 * modules/verror (Description): Likewise.
5267 Reported by Karl Berry.
5269 2007-12-25 Bruno Haible <bruno@clisp.org>
5271 Fixup after 2007-10-16 commit.
5272 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
5274 2007-12-24 Bruno Haible <bruno@clisp.org>
5276 Make --enable-relocatable work with DESTDIR.
5277 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
5278 to compute installdir from destprog.
5279 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
5280 also set the RELOC_DESTDIR variable.
5281 Reported by Левашев Иван <octagram@bluebottle.com>.
5283 2007-12-24 Bruno Haible <bruno@clisp.org>
5285 Fix link error due to xalloc_die().
5286 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
5288 * lib/relocwrapper.c: Update comments.
5289 * build-aux/install-reloc: Remove xreadlink.c from file list.
5290 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
5292 Reported by Левашев Иван <octagram@bluebottle.com>.
5294 2007-12-24 Bruno Haible <bruno@clisp.org>
5296 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
5297 * lib/setenv.h: Remove file.
5298 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
5300 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
5301 (Depends-on): Add stdlib.
5302 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
5304 (Include): Replace setenv.h with <stdlib.h>.
5305 * modules/unsetenv: New file.
5306 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
5307 * lib/unsetenv.c: Include <stdlib.h> first.
5308 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
5309 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
5310 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
5311 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
5312 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
5313 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5314 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
5315 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5316 * doc/functions/unsetenv.texi: Update.
5317 * modules/xsetenv (Depends-on): Add unsetenv.
5318 * modules/getdate (Depends-on): Likewise.
5319 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
5320 * lib/xsetenv.c: Don't include setenv.h.
5321 * lib/getdate.y: Likewise.
5322 * lib/relocwrapper.c: Likewise.
5323 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
5324 (Depends-on): Add stdlib.
5325 * NEWS: Mention the changes.
5326 Reported by Левашев Иван <octagram@bluebottle.com>.
5328 2007-12-23 Bruno Haible <bruno@clisp.org>
5330 * lib/memmem.c (memmem): Use lowercase variable names. Tab
5333 2007-12-23 Bruno Haible <bruno@clisp.org>
5335 * lib/c-strcasestr.c: Add more comments.
5336 * lib/c-strstr.c: Likewise.
5337 * lib/mbscasestr.c: Likewise.
5338 * lib/mbsstr.c: Likewise.
5339 * lib/strcasestr.c: Likewise.
5340 * lib/memmem.c: Likewise.
5342 2007-12-23 Bruno Haible <bruno@clisp.org>
5344 * tests/test-memmem.c: Include <string.h> first.
5346 2007-12-22 Bruno Haible <bruno@clisp.org>
5348 * gnulib-tool (func_create_testdir): Change $auxdir while generating
5349 the contents of $testsbase.
5350 Reported by Ralf Wildenhues.
5352 2007-12-22 Bruno Haible <bruno@clisp.org>
5354 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
5355 two variables local_ldadd_before, local_ldadd_last.
5357 2007-12-20 Eric Blake <ebb9@byu.net>
5359 Work around circular library issue when cross-compiling.
5360 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
5361 that progname.o does not need to pull in rpl_memcmp.
5363 2007-12-19 Eric Blake <ebb9@byu.net>
5365 Fix memmem to avoid O(n^2) worst-case complexity.
5366 * lib/memmem.c (knuth_morris_pratt): New function.
5367 (memmem): Use it if first few naive iterations fail.
5368 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
5369 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
5370 * modules/memchr (License): Likewise.
5371 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
5373 * tests/test-memmem.c: Rewrite, borrowing ideas from
5374 test-mbsstr1.c; the old version wouldn't even compile!
5375 * modules/memmem-tests: New file.
5376 * lib/string.in.h (rpl_memmem): Add declaration.
5377 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
5378 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
5381 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
5383 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
5384 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
5385 before any system include files, and undef after them all. This
5386 should fix a problem on VMS reported by John E. Malmberg in
5387 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
5389 2007-12-17 Eric Blake <ebb9@byu.net>
5391 Revert addition of verify, for BSD/OS.
5392 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
5393 can't handle large files, for the sake of obsolete platforms.
5394 * modules/fseeko (Depends-on): Remove verify.
5395 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
5396 * doc/functions/ftello.texi (ftello): Likewise.
5397 * doc/functions/fgetpos.texi (fgetpos): Likewise.
5398 Reported by Larry Jones.
5400 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
5402 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
5403 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
5405 2007-12-17 Jim Meyering <meyering@redhat.com>
5407 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
5408 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
5409 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
5410 * modules/getcwd (Depends-on): Add openat.
5411 Reported by Petr Salinger.
5413 2007-12-17 Bruno Haible <bruno@clisp.org>
5415 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
5416 avoid a segmentation fault of the configure test on x86_64 systems.
5418 2007-12-15 Jim Meyering <meyering@redhat.com>
5420 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
5422 2007-12-13 Eric Blake <ebb9@byu.net>
5425 * tests/test-fseek.c (main): Also test ungetc handling.
5426 * tests/test-fseeko.c (main): Likewise.
5427 * modules/fseeko (Depends-on): Add verify.
5428 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
5430 Reported by Larry Jones.
5432 Fix fseeko on mingw.
5433 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
5436 Beef up fseek tests.
5437 * tests/test-fseek.c (main): Also test eof handling.
5438 * tests/test-fseeko.c (main): Likewise.
5439 Reported by Larry Jones.
5441 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
5443 Fix fseeko on BSD-based platforms.
5444 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
5447 2007-12-12 Eric Blake <ebb9@byu.net>
5449 Allow circular dependency of separate libtests.a
5450 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
5453 2007-12-11 Eric Blake <ebb9@byu.net>
5455 Fix bug with -0.0L in previous patch.
5456 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
5457 * tests/test-isnan.c (main): Also test on zeroes.
5458 * tests/test-isnanf.c (main): Likewise.
5459 * tests/test-isnanl.h (main): Likewise.
5461 Detect pseudo-denormals on x86 even when cross-compiling.
5462 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
5463 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
5464 invalid bit patterns that happen to satisfy ==.
5466 Avoid link failures with separate libtests.a.
5467 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
5468 last, to satisfy circular dependencies.
5470 2007-12-11 Eric Blake <ebb9@byu.net>
5471 and Bruno Haible <bruno@clisp.org>
5473 Fix OpenBSD 4.0 <float.h> handling of long double.
5474 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
5475 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
5476 * doc/headers/float.texi (float.h): Document OpenBSD bug.
5478 2007-12-11 Jim Meyering <meyering@redhat.com>
5480 * users.txt: Add libvirt.
5482 Support versions of autoconf prior to 2.59c.
5483 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
5484 if it is not already defined.
5486 2007-12-09 Bruno Haible <bruno@clisp.org>
5488 Let 'gnulib-tool --import' collect sources needed for the tests in
5489 tests/ rather than in lib/.
5490 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
5491 argument. If true, add rules to generate libtests.a, and put libtests.a
5492 into $(LDADD). Consider source files in subdirectories and set
5494 (func_emit_initmacro_start, func_emit_initmacro_end,
5495 func_emit_initmacro_done): Pass all arguments explicitly.
5496 (func_import): Determine two module lists main_modules,
5497 testsrelated_modules. Determine use_libtests. Determine two variables
5498 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
5499 instead of just sed_transform_lib_file. Determine two variables
5500 main_files and testsrelated_files. Compute 'files' as the union of
5501 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
5502 func_add_or_update. In the generated gnulib-comp.m4, collect the
5503 object files for tests/ in different variables than those for lib/.
5504 Substitute LIBTESTS_LIBDEPS.
5505 (func_create_testdir): Combine the uses_subdirs results from
5506 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
5508 2007-12-09 Bruno Haible <bruno@clisp.org>
5510 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
5511 the build-aux directory.
5513 2007-12-09 Bruno Haible <bruno@clisp.org>
5515 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
5516 introduced on 2006-09-09.
5518 2007-12-07 Jim Meyering <meyering@redhat.com>
5520 Let these macros work also with autoconf-2.59.
5521 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
5522 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
5523 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5525 2007-12-06 Jim Meyering <meyering@redhat.com>
5527 Avoid a configure-time syntax error in gl_FUNC_ACL.
5528 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
5529 function in each branch, before testing the cache variable.
5531 2007-12-04 Eric Blake <ebb9@byu.net>
5533 Make scripts executable.
5534 * build-aux/config.guess: Add execute permissions.
5535 * build-aux/config.sub: Likewise.
5536 * build-aux/gendocs.sh: Likewise.
5539 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
5541 * doc/functions/frexp.texi (frexp): Document the bug.
5543 Make cygwin fseeko check more reliable.
5544 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
5545 version numbers, rather than unrelated feature check.
5546 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
5547 * doc/functions/ftello.texi (ftello): Likewise.
5548 Reported by Bruno Haible.
5550 * m4/strerror.m4: Bump version number.
5552 2007-12-03 Bruno Haible <bruno@clisp.org>
5554 * doc/functions/mprotect.texi: Mention the mingw problem.
5556 2007-12-03 Eric Blake <ebb9@byu.net>
5558 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
5559 REPLACE_STRERROR is initialized before this macro.
5561 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
5563 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
5564 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
5565 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
5566 put -lsec in even for programs other than 'ls'. This fixes a problem
5567 for gettext reported by Bruno Haible in
5568 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
5569 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
5570 Add support for Solaris 10. This isn't efficient, but should get the
5573 2007-12-03 James Youngman <jay@gnu.org>
5575 * doc/regexprops-generic.texi: change "an close-group" to "a
5576 close-group" and "illegal" to "not allowed".
5578 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5580 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
5581 pr_byname.h. Needed for the rare case when the maintainer has done
5582 "make maintainer-clean" in the source directory and then attempts a
5583 build outside the source directory.
5584 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
5587 2007-12-02 Martin Lambers <marlam@marlam.de>
5588 Bruno Haible <bruno@clisp.org>
5590 * lib/getpagesize.h: Remove file.
5591 * lib/unistd.in.h: Include declaration of getpagesize here.
5592 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
5593 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
5595 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
5596 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
5597 * modules/getpagesize (Files): Remove lib/getpagesize.h.
5598 (Depends-on): Add unistd.
5599 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5600 (Include): Use <unistd.h> instead of getpagesize.h.
5601 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
5602 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
5603 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
5604 gl_GETPAGESIZE invocation, already handled by module dependency.
5605 * lib/pagealign_alloc.c: Don't include getpagesize.h.
5607 2007-12-02 Bruno Haible <bruno@clisp.org>
5609 * modules/strings-tests: New file.
5610 * tests/test-strings.c: New file.
5612 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
5613 * lib/strings.in.h: New file.
5614 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
5615 * m4/strings_h.m4: New file.
5616 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
5617 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
5618 * modules/strings: New file.
5619 * modules/string (Makefile.am): Update.
5620 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
5621 Reported by Karl Berry.
5623 2007-12-01 Eric Blake <ebb9@byu.net>
5625 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
5626 accomodate fix in cygwin 1.5.25.
5628 2007-12-01 Jim Meyering <meyering@redhat.com>
5630 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
5631 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5632 that would inhibit utf8-optimization of a regexp containing line-
5633 or buffer-anchors, e.g., `^', `$'.
5635 2007-11-30 Bruno Haible <bruno@clisp.org>
5637 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
5638 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
5639 glthread_recursive_lock_init.
5640 * lib/lock.c (glthread_recursive_lock_init)
5641 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
5642 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5644 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
5646 New function qset_acl, like set_acl but with syscall semantics.
5647 * lib/acl.h (qset_acl): New decl.
5648 * lib/acl.c (qset_acl): New function.
5649 (set_acl): Use new function. Use more-consistent diagnostics.
5651 2007-11-28 Jim Meyering <meyering@redhat.com>
5653 * modules/physmem (License): Change from GPL to LGPLv2+.
5655 2007-11-26 Bruno Haible <bruno@clisp.org>
5657 * lib/vasnprintf.c (decode_long_double): Don't abort if the
5658 'long double' type has excess precision.
5659 Reported by Jim Meyering in
5660 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
5662 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5664 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
5665 Sync from <http://gnu.org/licenses>.
5666 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
5667 with license text from same location.
5668 * doc/maintain.texi, doc/standards.texi: Sync from
5669 <http://savannah.gnu.org/projects/gnustandards>.
5671 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
5672 and Jim Meyering <meyering@redhat.com>
5674 Adjust getdate' grammar to accept a slightly more regular language.
5675 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
5676 Before, the former was rejected.
5677 * lib/getdate.y (digits_to_date_time): New function, factored
5679 (number): ...here. Just call digits_to_date_time.
5680 (hybrid): New non-terminal to handle an <unsigned number,
5681 signed relative offset> sequence consistently.
5683 2007-11-18 Jim Meyering <meyering@redhat.com>
5685 Pull my changes from coreutils:
5686 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
5687 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
5688 use of $gnulib_tool_option_extras, so that it's separated from the
5691 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
5692 * build-aux/bootstrap (cp_mark_as_generated): Create any required
5693 parent destination directories before copying a file into place.
5695 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
5697 bootstrap: work also with 4-argument variant of AC_INIT
5698 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
5700 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
5702 Port test-getaddrinfo to Solaris.
5703 Problem reported by Bruno Haible in
5704 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
5705 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
5706 explanation of setting 'hints'.
5707 Don't reject an implementation merely because it returns EAI_SERVICE.
5708 (EAI_SERVICE): Define to 0 if not defined.
5710 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
5712 The license of gnu-make and posix-shell is now "GPLed build tool".
5713 * modules/gnu-make (License): Likewise.
5714 * modules/posix-shell (License): Likewise.
5716 New module posix-shell, for determining a POSIX shell
5717 or perhaps something that is close enough to a POSIX shell.
5718 * m4/posix-shell.m4: New file.
5719 * modules/posix-shell: New file.
5721 * MODULES.html.sh: Mention new module.
5723 New module gnu-make, for determining whether we're using GNU Make.
5724 * m4/gnu-make.m4: New file.
5725 * modules/gnu-make: New file.
5726 * MODULES.html.sh: Mention new module.
5728 2007-11-14 Jim Meyering <meyering@redhat.com>
5730 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
5731 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
5732 use this macro to create a function _definition_.
5733 Remove useless "#undef ARGMATCH_DIE".
5735 2007-11-14 Bruno Haible <bruno@clisp.org>
5737 * lib/config.charset: Update for OpenBSD 4.1.
5738 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
5740 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
5742 Document 64-bit #if problems in stdint.texi.
5743 * doc/headers/stdint.texi (stdint.h): Mention problems with
5744 64-bit-#if, and how to work around them.
5746 Don't insist on 'long long int' support in the preprocessor. It
5747 breaks too many things. For example, PRIdMAX still uses a 'long
5748 long int' format with the latest Sun compiler, even though
5749 HAVE_LONG_LONG_INT isn't defined due to that compiler's
5750 preprocessor problem. This causes the latest coreutils to dump
5751 core on Solaris 10 sparc with the Sun C compiler.
5752 Instead, fix the 2007-10-16 problem in a different way, by evaluating
5753 the troublesome expressions at configure-time, not at #if-time.
5754 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
5756 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
5757 compile-time C checks, done at 'configure'-time.
5758 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
5759 * modules/inttypes (Makefile): Substitute the new symbols that
5760 gl_INTTYPES_H now generates.
5761 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
5763 2007-11-12 Bruno Haible <bruno@clisp.org>
5765 Tests for Unicode character classification functions.
5767 * modules/unictype/bidicategory-byname-tests: New file.
5768 * modules/unictype/bidicategory-name-tests: New file.
5769 * modules/unictype/bidicategory-of-tests: New file.
5770 * modules/unictype/bidicategory-test-tests: New file.
5771 * modules/unictype/block-list-tests: New file.
5772 * modules/unictype/block-of-tests: New file.
5773 * modules/unictype/block-test-tests: New file.
5774 * modules/unictype/category-C-tests: New file.
5775 * modules/unictype/category-Cc-tests: New file.
5776 * modules/unictype/category-Cf-tests: New file.
5777 * modules/unictype/category-Cn-tests: New file.
5778 * modules/unictype/category-Co-tests: New file.
5779 * modules/unictype/category-Cs-tests: New file.
5780 * modules/unictype/category-L-tests: New file.
5781 * modules/unictype/category-Ll-tests: New file.
5782 * modules/unictype/category-Lm-tests: New file.
5783 * modules/unictype/category-Lo-tests: New file.
5784 * modules/unictype/category-Lt-tests: New file.
5785 * modules/unictype/category-Lu-tests: New file.
5786 * modules/unictype/category-M-tests: New file.
5787 * modules/unictype/category-Mc-tests: New file.
5788 * modules/unictype/category-Me-tests: New file.
5789 * modules/unictype/category-Mn-tests: New file.
5790 * modules/unictype/category-N-tests: New file.
5791 * modules/unictype/category-Nd-tests: New file.
5792 * modules/unictype/category-Nl-tests: New file.
5793 * modules/unictype/category-No-tests: New file.
5794 * modules/unictype/category-P-tests: New file.
5795 * modules/unictype/category-Pc-tests: New file.
5796 * modules/unictype/category-Pd-tests: New file.
5797 * modules/unictype/category-Pe-tests: New file.
5798 * modules/unictype/category-Pf-tests: New file.
5799 * modules/unictype/category-Pi-tests: New file.
5800 * modules/unictype/category-Po-tests: New file.
5801 * modules/unictype/category-Ps-tests: New file.
5802 * modules/unictype/category-S-tests: New file.
5803 * modules/unictype/category-Sc-tests: New file.
5804 * modules/unictype/category-Sk-tests: New file.
5805 * modules/unictype/category-Sm-tests: New file.
5806 * modules/unictype/category-So-tests: New file.
5807 * modules/unictype/category-Z-tests: New file.
5808 * modules/unictype/category-Zl-tests: New file.
5809 * modules/unictype/category-Zp-tests: New file.
5810 * modules/unictype/category-Zs-tests: New file.
5811 * modules/unictype/category-and-not-tests: New file.
5812 * modules/unictype/category-and-tests: New file.
5813 * modules/unictype/category-byname-tests: New file.
5814 * modules/unictype/category-name-tests: New file.
5815 * modules/unictype/category-none-tests: New file.
5816 * modules/unictype/category-of-tests: New file.
5817 * modules/unictype/category-or-tests: New file.
5818 * modules/unictype/category-test-withtable-tests: New file.
5819 * modules/unictype/combining-class-tests: New file.
5820 * modules/unictype/ctype-alnum-tests: New file.
5821 * modules/unictype/ctype-alpha-tests: New file.
5822 * modules/unictype/ctype-blank-tests: New file.
5823 * modules/unictype/ctype-cntrl-tests: New file.
5824 * modules/unictype/ctype-digit-tests: New file.
5825 * modules/unictype/ctype-graph-tests: New file.
5826 * modules/unictype/ctype-lower-tests: New file.
5827 * modules/unictype/ctype-print-tests: New file.
5828 * modules/unictype/ctype-punct-tests: New file.
5829 * modules/unictype/ctype-space-tests: New file.
5830 * modules/unictype/ctype-upper-tests: New file.
5831 * modules/unictype/ctype-xdigit-tests: New file.
5832 * modules/unictype/decimal-digit-tests: New file.
5833 * modules/unictype/digit-tests: New file.
5834 * modules/unictype/mirror-tests: New file.
5835 * modules/unictype/numeric-tests: New file.
5836 * modules/unictype/property-alphabetic-tests: New file.
5837 * modules/unictype/property-ascii-hex-digit-tests: New file.
5838 * modules/unictype/property-bidi-arabic-digit-tests: New file.
5839 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
5840 * modules/unictype/property-bidi-block-separator-tests: New file.
5841 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
5842 * modules/unictype/property-bidi-common-separator-tests: New file.
5843 * modules/unictype/property-bidi-control-tests: New file.
5844 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
5845 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
5846 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
5847 * modules/unictype/property-bidi-european-digit-tests: New file.
5848 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
5849 * modules/unictype/property-bidi-left-to-right-tests: New file.
5850 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
5851 * modules/unictype/property-bidi-other-neutral-tests: New file.
5852 * modules/unictype/property-bidi-pdf-tests: New file.
5853 * modules/unictype/property-bidi-segment-separator-tests: New file.
5854 * modules/unictype/property-bidi-whitespace-tests: New file.
5855 * modules/unictype/property-byname-tests: New file.
5856 * modules/unictype/property-combining-tests: New file.
5857 * modules/unictype/property-composite-tests: New file.
5858 * modules/unictype/property-currency-symbol-tests: New file.
5859 * modules/unictype/property-dash-tests: New file.
5860 * modules/unictype/property-decimal-digit-tests: New file.
5861 * modules/unictype/property-default-ignorable-code-point-tests: New file.
5862 * modules/unictype/property-deprecated-tests: New file.
5863 * modules/unictype/property-diacritic-tests: New file.
5864 * modules/unictype/property-extender-tests: New file.
5865 * modules/unictype/property-format-control-tests: New file.
5866 * modules/unictype/property-grapheme-base-tests: New file.
5867 * modules/unictype/property-grapheme-extend-tests: New file.
5868 * modules/unictype/property-grapheme-link-tests: New file.
5869 * modules/unictype/property-hex-digit-tests: New file.
5870 * modules/unictype/property-hyphen-tests: New file.
5871 * modules/unictype/property-id-continue-tests: New file.
5872 * modules/unictype/property-id-start-tests: New file.
5873 * modules/unictype/property-ideographic-tests: New file.
5874 * modules/unictype/property-ids-binary-operator-tests: New file.
5875 * modules/unictype/property-ids-trinary-operator-tests: New file.
5876 * modules/unictype/property-ignorable-control-tests: New file.
5877 * modules/unictype/property-iso-control-tests: New file.
5878 * modules/unictype/property-join-control-tests: New file.
5879 * modules/unictype/property-left-of-pair-tests: New file.
5880 * modules/unictype/property-line-separator-tests: New file.
5881 * modules/unictype/property-logical-order-exception-tests: New file.
5882 * modules/unictype/property-lowercase-tests: New file.
5883 * modules/unictype/property-math-tests: New file.
5884 * modules/unictype/property-non-break-tests: New file.
5885 * modules/unictype/property-not-a-character-tests: New file.
5886 * modules/unictype/property-numeric-tests: New file.
5887 * modules/unictype/property-other-alphabetic-tests: New file.
5888 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
5889 * modules/unictype/property-other-grapheme-extend-tests: New file.
5890 * modules/unictype/property-other-id-continue-tests: New file.
5891 * modules/unictype/property-other-id-start-tests: New file.
5892 * modules/unictype/property-other-lowercase-tests: New file.
5893 * modules/unictype/property-other-math-tests: New file.
5894 * modules/unictype/property-other-uppercase-tests: New file.
5895 * modules/unictype/property-paired-punctuation-tests: New file.
5896 * modules/unictype/property-paragraph-separator-tests: New file.
5897 * modules/unictype/property-pattern-syntax-tests: New file.
5898 * modules/unictype/property-pattern-white-space-tests: New file.
5899 * modules/unictype/property-private-use-tests: New file.
5900 * modules/unictype/property-punctuation-tests: New file.
5901 * modules/unictype/property-quotation-mark-tests: New file.
5902 * modules/unictype/property-radical-tests: New file.
5903 * modules/unictype/property-sentence-terminal-tests: New file.
5904 * modules/unictype/property-soft-dotted-tests: New file.
5905 * modules/unictype/property-space-tests: New file.
5906 * modules/unictype/property-terminal-punctuation-tests: New file.
5907 * modules/unictype/property-test-tests: New file.
5908 * modules/unictype/property-titlecase-tests: New file.
5909 * modules/unictype/property-unassigned-code-value-tests: New file.
5910 * modules/unictype/property-unified-ideograph-tests: New file.
5911 * modules/unictype/property-uppercase-tests: New file.
5912 * modules/unictype/property-variation-selector-tests: New file.
5913 * modules/unictype/property-white-space-tests: New file.
5914 * modules/unictype/property-xid-continue-tests: New file.
5915 * modules/unictype/property-xid-start-tests: New file.
5916 * modules/unictype/property-zero-width-tests: New file.
5917 * modules/unictype/scripts-tests: New file.
5918 * modules/unictype/syntax-c-ident-tests: New file.
5919 * modules/unictype/syntax-c-whitespace-tests: New file.
5920 * modules/unictype/syntax-java-ident-tests: New file.
5921 * modules/unictype/syntax-java-whitespace-tests: New file.
5922 * tests/unictype/test-bidi_byname.c: New file.
5923 * tests/unictype/test-bidi_name.c: New file.
5924 * tests/unictype/test-bidi_of.c: New file.
5925 * tests/unictype/test-bidi_test.c: New file.
5926 * tests/unictype/test-block_list.c: New file.
5927 * tests/unictype/test-block_of.c: New file.
5928 * tests/unictype/test-block_test.c: New file.
5929 * tests/unictype/test-categ_and.c: New file.
5930 * tests/unictype/test-categ_and_not.c: New file.
5931 * tests/unictype/test-categ_byname.c: New file.
5932 * tests/unictype/test-categ_name.c: New file.
5933 * tests/unictype/test-categ_none.c: New file.
5934 * tests/unictype/test-categ_of.c: New file.
5935 * tests/unictype/test-categ_or.c: New file.
5936 * tests/unictype/test-categ_test_withtable.c: New file.
5937 * tests/unictype/test-combining.c: New file.
5938 * tests/unictype/test-decdigit.c: New file.
5939 * tests/unictype/test-digit.c: New file.
5940 * tests/unictype/test-mirror.c: New file.
5941 * tests/unictype/test-numeric.c: New file.
5942 * tests/unictype/test-pr_byname.c: New file.
5943 * tests/unictype/test-pr_test.c: New file.
5944 * tests/unictype/test-predicate-part1.h: New file.
5945 * tests/unictype/test-predicate-part2.h: New file.
5946 * tests/unictype/test-scripts.c: New file.
5947 * tests/unictype/test-sy_c_ident.c: New file.
5948 * tests/unictype/test-sy_java_ident.c: New file.
5950 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
5952 * tests/unictype/test-categ_Cc.c: Likewise.
5953 * tests/unictype/test-categ_Cf.c: Likewise.
5954 * tests/unictype/test-categ_Cn.c: Likewise.
5955 * tests/unictype/test-categ_Co.c: Likewise.
5956 * tests/unictype/test-categ_Cs.c: Likewise.
5957 * tests/unictype/test-categ_L.c: Likewise.
5958 * tests/unictype/test-categ_Ll.c: Likewise.
5959 * tests/unictype/test-categ_Lm.c: Likewise.
5960 * tests/unictype/test-categ_Lo.c: Likewise.
5961 * tests/unictype/test-categ_Lt.c: Likewise.
5962 * tests/unictype/test-categ_Lu.c: Likewise.
5963 * tests/unictype/test-categ_M.c: Likewise.
5964 * tests/unictype/test-categ_Mc.c: Likewise.
5965 * tests/unictype/test-categ_Me.c: Likewise.
5966 * tests/unictype/test-categ_Mn.c: Likewise.
5967 * tests/unictype/test-categ_N.c: Likewise.
5968 * tests/unictype/test-categ_Nd.c: Likewise.
5969 * tests/unictype/test-categ_Nl.c: Likewise.
5970 * tests/unictype/test-categ_No.c: Likewise.
5971 * tests/unictype/test-categ_P.c: Likewise.
5972 * tests/unictype/test-categ_Pc.c: Likewise.
5973 * tests/unictype/test-categ_Pd.c: Likewise.
5974 * tests/unictype/test-categ_Pe.c: Likewise.
5975 * tests/unictype/test-categ_Pf.c: Likewise.
5976 * tests/unictype/test-categ_Pi.c: Likewise.
5977 * tests/unictype/test-categ_Po.c: Likewise.
5978 * tests/unictype/test-categ_Ps.c: Likewise.
5979 * tests/unictype/test-categ_S.c: Likewise.
5980 * tests/unictype/test-categ_Sc.c: Likewise.
5981 * tests/unictype/test-categ_Sk.c: Likewise.
5982 * tests/unictype/test-categ_Sm.c: Likewise.
5983 * tests/unictype/test-categ_So.c: Likewise.
5984 * tests/unictype/test-categ_Z.c: Likewise.
5985 * tests/unictype/test-categ_Zl.c: Likewise.
5986 * tests/unictype/test-categ_Zp.c: Likewise.
5987 * tests/unictype/test-categ_Zs.c: Likewise.
5988 * tests/unictype/test-ctype_alnum.c: Likewise.
5989 * tests/unictype/test-ctype_alpha.c: Likewise.
5990 * tests/unictype/test-ctype_blank.c: Likewise.
5991 * tests/unictype/test-ctype_cntrl.c: Likewise.
5992 * tests/unictype/test-ctype_digit.c: Likewise.
5993 * tests/unictype/test-ctype_graph.c: Likewise.
5994 * tests/unictype/test-ctype_lower.c: Likewise.
5995 * tests/unictype/test-ctype_print.c: Likewise.
5996 * tests/unictype/test-ctype_punct.c: Likewise.
5997 * tests/unictype/test-ctype_space.c: Likewise.
5998 * tests/unictype/test-ctype_upper.c: Likewise.
5999 * tests/unictype/test-ctype_xdigit.c: Likewise.
6000 * tests/unictype/test-decdigit.h: Likewise.
6001 * tests/unictype/test-digit.h: Likewise.
6002 * tests/unictype/test-numeric.h: Likewise.
6003 * tests/unictype/test-pr_alphabetic.c: Likewise.
6004 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6005 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6006 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6007 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6008 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6009 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6010 * tests/unictype/test-pr_bidi_control.c: Likewise.
6011 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6012 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6013 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6014 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6015 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6016 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6017 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6018 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6019 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6020 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6021 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6022 * tests/unictype/test-pr_combining.c: Likewise.
6023 * tests/unictype/test-pr_composite.c: Likewise.
6024 * tests/unictype/test-pr_currency_symbol.c: Likewise.
6025 * tests/unictype/test-pr_dash.c: Likewise.
6026 * tests/unictype/test-pr_decimal_digit.c: Likewise.
6027 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6028 * tests/unictype/test-pr_deprecated.c: Likewise.
6029 * tests/unictype/test-pr_diacritic.c: Likewise.
6030 * tests/unictype/test-pr_extender.c: Likewise.
6031 * tests/unictype/test-pr_format_control.c: Likewise.
6032 * tests/unictype/test-pr_grapheme_base.c: Likewise.
6033 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6034 * tests/unictype/test-pr_grapheme_link.c: Likewise.
6035 * tests/unictype/test-pr_hex_digit.c: Likewise.
6036 * tests/unictype/test-pr_hyphen.c: Likewise.
6037 * tests/unictype/test-pr_id_continue.c: Likewise.
6038 * tests/unictype/test-pr_id_start.c: Likewise.
6039 * tests/unictype/test-pr_ideographic.c: Likewise.
6040 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6041 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6042 * tests/unictype/test-pr_ignorable_control.c: Likewise.
6043 * tests/unictype/test-pr_iso_control.c: Likewise.
6044 * tests/unictype/test-pr_join_control.c: Likewise.
6045 * tests/unictype/test-pr_left_of_pair.c: Likewise.
6046 * tests/unictype/test-pr_line_separator.c: Likewise.
6047 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6048 * tests/unictype/test-pr_lowercase.c: Likewise.
6049 * tests/unictype/test-pr_math.c: Likewise.
6050 * tests/unictype/test-pr_non_break.c: Likewise.
6051 * tests/unictype/test-pr_not_a_character.c: Likewise.
6052 * tests/unictype/test-pr_numeric.c: Likewise.
6053 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6054 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6055 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6056 * tests/unictype/test-pr_other_id_continue.c: Likewise.
6057 * tests/unictype/test-pr_other_id_start.c: Likewise.
6058 * tests/unictype/test-pr_other_lowercase.c: Likewise.
6059 * tests/unictype/test-pr_other_math.c: Likewise.
6060 * tests/unictype/test-pr_other_uppercase.c: Likewise.
6061 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6062 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6063 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6064 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6065 * tests/unictype/test-pr_private_use.c: Likewise.
6066 * tests/unictype/test-pr_punctuation.c: Likewise.
6067 * tests/unictype/test-pr_quotation_mark.c: Likewise.
6068 * tests/unictype/test-pr_radical.c: Likewise.
6069 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6070 * tests/unictype/test-pr_soft_dotted.c: Likewise.
6071 * tests/unictype/test-pr_space.c: Likewise.
6072 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6073 * tests/unictype/test-pr_titlecase.c: Likewise.
6074 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6075 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6076 * tests/unictype/test-pr_uppercase.c: Likewise.
6077 * tests/unictype/test-pr_variation_selector.c: Likewise.
6078 * tests/unictype/test-pr_white_space.c: Likewise.
6079 * tests/unictype/test-pr_xid_continue.c: Likewise.
6080 * tests/unictype/test-pr_xid_start.c: Likewise.
6081 * tests/unictype/test-pr_zero_width.c: Likewise.
6082 * tests/unictype/test-sy_c_whitespace.c: Likewise.
6083 * tests/unictype/test-sy_java_whitespace.c: Likewise.
6085 2007-11-12 Bruno Haible <bruno@clisp.org>
6087 Unicode character classification functions.
6088 * lib/unictype.h: New file.
6089 * modules/unictype/base: New file.
6090 * modules/unictype/category-L: New file.
6091 * modules/unictype/category-Lu: New file.
6092 * modules/unictype/category-Ll: New file.
6093 * modules/unictype/category-Lt: New file.
6094 * modules/unictype/category-Lm: New file.
6095 * modules/unictype/category-Lo: New file.
6096 * modules/unictype/category-M: New file.
6097 * modules/unictype/category-Mn: New file.
6098 * modules/unictype/category-Mc: New file.
6099 * modules/unictype/category-Me: New file.
6100 * modules/unictype/category-N: New file.
6101 * modules/unictype/category-Nd: New file.
6102 * modules/unictype/category-Nl: New file.
6103 * modules/unictype/category-No: New file.
6104 * modules/unictype/category-P: New file.
6105 * modules/unictype/category-Pc: New file.
6106 * modules/unictype/category-Pd: New file.
6107 * modules/unictype/category-Ps: New file.
6108 * modules/unictype/category-Pe: New file.
6109 * modules/unictype/category-Pi: New file.
6110 * modules/unictype/category-Pf: New file.
6111 * modules/unictype/category-Po: New file.
6112 * modules/unictype/category-S: New file.
6113 * modules/unictype/category-Sm: New file.
6114 * modules/unictype/category-Sc: New file.
6115 * modules/unictype/category-Sk: New file.
6116 * modules/unictype/category-So: New file.
6117 * modules/unictype/category-Z: New file.
6118 * modules/unictype/category-Zs: New file.
6119 * modules/unictype/category-Zl: New file.
6120 * modules/unictype/category-Zp: New file.
6121 * modules/unictype/category-C: New file.
6122 * modules/unictype/category-Cc: New file.
6123 * modules/unictype/category-Cf: New file.
6124 * modules/unictype/category-Cs: New file.
6125 * modules/unictype/category-Co: New file.
6126 * modules/unictype/category-Cn: New file.
6127 * modules/unictype/category-or: New file.
6128 * modules/unictype/category-of: New file.
6129 * modules/unictype/category-test: New file.
6130 * modules/unictype/category-test-withtable: New file.
6131 * modules/unictype/category-byname: New file.
6132 * modules/unictype/category-none: New file.
6133 * modules/unictype/category-and: New file.
6134 * modules/unictype/category-and-not: New file.
6135 * modules/unictype/category-name: New file.
6136 * modules/unictype/combining-class: New file.
6137 * modules/unictype/category-all: New file.
6138 * modules/unictype/bidicategory-all: New file.
6139 * modules/unictype/bidicategory-byname: New file.
6140 * modules/unictype/bidicategory-name: New file.
6141 * modules/unictype/bidicategory-of: New file.
6142 * modules/unictype/bidicategory-test: New file.
6143 * modules/unictype/decimal-digit: New file.
6144 * modules/unictype/digit: New file.
6145 * modules/unictype/numeric: New file.
6146 * modules/unictype/mirror: New file.
6147 * modules/unictype/property-white-space: New file.
6148 * modules/unictype/property-alphabetic: New file.
6149 * modules/unictype/property-other-alphabetic: New file.
6150 * modules/unictype/property-not-a-character: New file.
6151 * modules/unictype/property-default-ignorable-code-point: New file.
6152 * modules/unictype/property-other-default-ignorable-code-point: New
6154 * modules/unictype/property-deprecated: New file.
6155 * modules/unictype/property-logical-order-exception: New file.
6156 * modules/unictype/property-variation-selector: New file.
6157 * modules/unictype/property-private-use: New file.
6158 * modules/unictype/property-unassigned-code-value: New file.
6159 * modules/unictype/property-uppercase: New file.
6160 * modules/unictype/property-other-uppercase: New file.
6161 * modules/unictype/property-lowercase: New file.
6162 * modules/unictype/property-other-lowercase: New file.
6163 * modules/unictype/property-titlecase: New file.
6164 * modules/unictype/property-soft-dotted: New file.
6165 * modules/unictype/property-id-start: New file.
6166 * modules/unictype/property-other-id-start: New file.
6167 * modules/unictype/property-id-continue: New file.
6168 * modules/unictype/property-other-id-continue: New file.
6169 * modules/unictype/property-xid-start: New file.
6170 * modules/unictype/property-xid-continue: New file.
6171 * modules/unictype/property-pattern-white-space: New file.
6172 * modules/unictype/property-pattern-syntax: New file.
6173 * modules/unictype/property-join-control: New file.
6174 * modules/unictype/property-grapheme-base: New file.
6175 * modules/unictype/property-grapheme-extend: New file.
6176 * modules/unictype/property-other-grapheme-extend: New file.
6177 * modules/unictype/property-grapheme-link: New file.
6178 * modules/unictype/property-bidi-control: New file.
6179 * modules/unictype/property-bidi-left-to-right: New file.
6180 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
6181 * modules/unictype/property-bidi-arabic-right-to-left: New file.
6182 * modules/unictype/property-bidi-european-digit: New file.
6183 * modules/unictype/property-bidi-eur-num-separator: New file.
6184 * modules/unictype/property-bidi-eur-num-terminator: New file.
6185 * modules/unictype/property-bidi-arabic-digit: New file.
6186 * modules/unictype/property-bidi-common-separator: New file.
6187 * modules/unictype/property-bidi-block-separator: New file.
6188 * modules/unictype/property-bidi-segment-separator: New file.
6189 * modules/unictype/property-bidi-whitespace: New file.
6190 * modules/unictype/property-bidi-non-spacing-mark: New file.
6191 * modules/unictype/property-bidi-boundary-neutral: New file.
6192 * modules/unictype/property-bidi-pdf: New file.
6193 * modules/unictype/property-bidi-embedding-or-override: New file.
6194 * modules/unictype/property-bidi-other-neutral: New file.
6195 * modules/unictype/property-hex-digit: New file.
6196 * modules/unictype/property-ascii-hex-digit: New file.
6197 * modules/unictype/property-ideographic: New file.
6198 * modules/unictype/property-unified-ideograph: New file.
6199 * modules/unictype/property-radical: New file.
6200 * modules/unictype/property-ids-binary-operator: New file.
6201 * modules/unictype/property-ids-trinary-operator: New file.
6202 * modules/unictype/property-zero-width: New file.
6203 * modules/unictype/property-space: New file.
6204 * modules/unictype/property-non-break: New file.
6205 * modules/unictype/property-iso-control: New file.
6206 * modules/unictype/property-format-control: New file.
6207 * modules/unictype/property-dash: New file.
6208 * modules/unictype/property-hyphen: New file.
6209 * modules/unictype/property-punctuation: New file.
6210 * modules/unictype/property-line-separator: New file.
6211 * modules/unictype/property-paragraph-separator: New file.
6212 * modules/unictype/property-quotation-mark: New file.
6213 * modules/unictype/property-sentence-terminal: New file.
6214 * modules/unictype/property-terminal-punctuation: New file.
6215 * modules/unictype/property-currency-symbol: New file.
6216 * modules/unictype/property-math: New file.
6217 * modules/unictype/property-other-math: New file.
6218 * modules/unictype/property-paired-punctuation: New file.
6219 * modules/unictype/property-left-of-pair: New file.
6220 * modules/unictype/property-combining: New file.
6221 * modules/unictype/property-composite: New file.
6222 * modules/unictype/property-decimal-digit: New file.
6223 * modules/unictype/property-numeric: New file.
6224 * modules/unictype/property-diacritic: New file.
6225 * modules/unictype/property-extender: New file.
6226 * modules/unictype/property-ignorable-control: New file.
6227 * modules/unictype/property-test: New file.
6228 * modules/unictype/property-byname: New file.
6229 * modules/unictype/property-all: New file.
6230 * modules/unictype/scripts: New file.
6231 * modules/unictype/scripts-all: New file.
6232 * modules/unictype/block-of: New file.
6233 * modules/unictype/block-test: New file.
6234 * modules/unictype/block-list: New file.
6235 * modules/unictype/block-all: New file.
6236 * modules/unictype/syntax-c-whitespace: New file.
6237 * modules/unictype/syntax-java-whitespace: New file.
6238 * modules/unictype/syntax-c-ident: New file.
6239 * modules/unictype/syntax-java-ident: New file.
6240 * modules/unictype/ctype-alnum: New file.
6241 * modules/unictype/ctype-alpha: New file.
6242 * modules/unictype/ctype-cntrl: New file.
6243 * modules/unictype/ctype-digit: New file.
6244 * modules/unictype/ctype-graph: New file.
6245 * modules/unictype/ctype-lower: New file.
6246 * modules/unictype/ctype-print: New file.
6247 * modules/unictype/ctype-punct: New file.
6248 * modules/unictype/ctype-space: New file.
6249 * modules/unictype/ctype-upper: New file.
6250 * modules/unictype/ctype-xdigit: New file.
6251 * modules/unictype/ctype-blank: New file.
6252 * lib/unictype/bidi_byname.c: New file.
6253 * lib/unictype/bidi_name.c: New file.
6254 * lib/unictype/bidi_of.c: New file.
6255 * lib/unictype/bidi_test.c: New file.
6256 * lib/unictype/bitmap.h: New file.
6257 * lib/unictype/block_test.c: New file.
6258 * lib/unictype/blocks.c: New file.
6259 * lib/unictype/categ_C.c: New file.
6260 * lib/unictype/categ_Cc.c: New file.
6261 * lib/unictype/categ_Cf.c: New file.
6262 * lib/unictype/categ_Cn.c: New file.
6263 * lib/unictype/categ_Co.c: New file.
6264 * lib/unictype/categ_Cs.c: New file.
6265 * lib/unictype/categ_L.c: New file.
6266 * lib/unictype/categ_Ll.c: New file.
6267 * lib/unictype/categ_Lm.c: New file.
6268 * lib/unictype/categ_Lo.c: New file.
6269 * lib/unictype/categ_Lt.c: New file.
6270 * lib/unictype/categ_Lu.c: New file.
6271 * lib/unictype/categ_M.c: New file.
6272 * lib/unictype/categ_Mc.c: New file.
6273 * lib/unictype/categ_Me.c: New file.
6274 * lib/unictype/categ_Mn.c: New file.
6275 * lib/unictype/categ_N.c: New file.
6276 * lib/unictype/categ_Nd.c: New file.
6277 * lib/unictype/categ_Nl.c: New file.
6278 * lib/unictype/categ_No.c: New file.
6279 * lib/unictype/categ_P.c: New file.
6280 * lib/unictype/categ_Pc.c: New file.
6281 * lib/unictype/categ_Pd.c: New file.
6282 * lib/unictype/categ_Pe.c: New file.
6283 * lib/unictype/categ_Pf.c: New file.
6284 * lib/unictype/categ_Pi.c: New file.
6285 * lib/unictype/categ_Po.c: New file.
6286 * lib/unictype/categ_Ps.c: New file.
6287 * lib/unictype/categ_S.c: New file.
6288 * lib/unictype/categ_Sc.c: New file.
6289 * lib/unictype/categ_Sk.c: New file.
6290 * lib/unictype/categ_Sm.c: New file.
6291 * lib/unictype/categ_So.c: New file.
6292 * lib/unictype/categ_Z.c: New file.
6293 * lib/unictype/categ_Zl.c: New file.
6294 * lib/unictype/categ_Zp.c: New file.
6295 * lib/unictype/categ_Zs.c: New file.
6296 * lib/unictype/categ_and.c: New file.
6297 * lib/unictype/categ_and_not.c: New file.
6298 * lib/unictype/categ_byname.c: New file.
6299 * lib/unictype/categ_name.c: New file.
6300 * lib/unictype/categ_none.c: New file.
6301 * lib/unictype/categ_of.c: New file.
6302 * lib/unictype/categ_or.c: New file.
6303 * lib/unictype/categ_test.c: New file.
6304 * lib/unictype/combining.c: New file.
6305 * lib/unictype/ctype_alnum.c: New file.
6306 * lib/unictype/ctype_alpha.c: New file.
6307 * lib/unictype/ctype_blank.c: New file.
6308 * lib/unictype/ctype_cntrl.c: New file.
6309 * lib/unictype/ctype_digit.c: New file.
6310 * lib/unictype/ctype_graph.c: New file.
6311 * lib/unictype/ctype_lower.c: New file.
6312 * lib/unictype/ctype_print.c: New file.
6313 * lib/unictype/ctype_punct.c: New file.
6314 * lib/unictype/ctype_space.c: New file.
6315 * lib/unictype/ctype_upper.c: New file.
6316 * lib/unictype/ctype_xdigit.c: New file.
6317 * lib/unictype/decdigit.c: New file.
6318 * lib/unictype/digit.c: New file.
6319 * lib/unictype/identsyntaxmap.h: New file.
6320 * lib/unictype/mirror.c: New file.
6321 * lib/unictype/numeric.c: New file.
6322 * lib/unictype/pr_alphabetic.c: New file.
6323 * lib/unictype/pr_ascii_hex_digit.c: New file.
6324 * lib/unictype/pr_bidi_arabic_digit.c: New file.
6325 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
6326 * lib/unictype/pr_bidi_block_separator.c: New file.
6327 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
6328 * lib/unictype/pr_bidi_common_separator.c: New file.
6329 * lib/unictype/pr_bidi_control.c: New file.
6330 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
6331 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
6332 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
6333 * lib/unictype/pr_bidi_european_digit.c: New file.
6334 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
6335 * lib/unictype/pr_bidi_left_to_right.c: New file.
6336 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
6337 * lib/unictype/pr_bidi_other_neutral.c: New file.
6338 * lib/unictype/pr_bidi_pdf.c: New file.
6339 * lib/unictype/pr_bidi_segment_separator.c: New file.
6340 * lib/unictype/pr_bidi_whitespace.c: New file.
6341 * lib/unictype/pr_byname.c: New file.
6342 * lib/unictype/pr_byname.gperf: New file.
6343 * lib/unictype/pr_combining.c: New file.
6344 * lib/unictype/pr_composite.c: New file.
6345 * lib/unictype/pr_currency_symbol.c: New file.
6346 * lib/unictype/pr_dash.c: New file.
6347 * lib/unictype/pr_decimal_digit.c: New file.
6348 * lib/unictype/pr_default_ignorable_code_point.c: New file.
6349 * lib/unictype/pr_deprecated.c: New file.
6350 * lib/unictype/pr_diacritic.c: New file.
6351 * lib/unictype/pr_extender.c: New file.
6352 * lib/unictype/pr_format_control.c: New file.
6353 * lib/unictype/pr_grapheme_base.c: New file.
6354 * lib/unictype/pr_grapheme_extend.c: New file.
6355 * lib/unictype/pr_grapheme_link.c: New file.
6356 * lib/unictype/pr_hex_digit.c: New file.
6357 * lib/unictype/pr_hyphen.c: New file.
6358 * lib/unictype/pr_id_continue.c: New file.
6359 * lib/unictype/pr_id_start.c: New file.
6360 * lib/unictype/pr_ideographic.c: New file.
6361 * lib/unictype/pr_ids_binary_operator.c: New file.
6362 * lib/unictype/pr_ids_trinary_operator.c: New file.
6363 * lib/unictype/pr_ignorable_control.c: New file.
6364 * lib/unictype/pr_iso_control.c: New file.
6365 * lib/unictype/pr_join_control.c: New file.
6366 * lib/unictype/pr_left_of_pair.c: New file.
6367 * lib/unictype/pr_line_separator.c: New file.
6368 * lib/unictype/pr_logical_order_exception.c: New file.
6369 * lib/unictype/pr_lowercase.c: New file.
6370 * lib/unictype/pr_math.c: New file.
6371 * lib/unictype/pr_non_break.c: New file.
6372 * lib/unictype/pr_not_a_character.c: New file.
6373 * lib/unictype/pr_numeric.c: New file.
6374 * lib/unictype/pr_other_alphabetic.c: New file.
6375 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
6376 * lib/unictype/pr_other_grapheme_extend.c: New file.
6377 * lib/unictype/pr_other_id_continue.c: New file.
6378 * lib/unictype/pr_other_id_start.c: New file.
6379 * lib/unictype/pr_other_lowercase.c: New file.
6380 * lib/unictype/pr_other_math.c: New file.
6381 * lib/unictype/pr_other_uppercase.c: New file.
6382 * lib/unictype/pr_paired_punctuation.c: New file.
6383 * lib/unictype/pr_paragraph_separator.c: New file.
6384 * lib/unictype/pr_pattern_syntax.c: New file.
6385 * lib/unictype/pr_pattern_white_space.c: New file.
6386 * lib/unictype/pr_private_use.c: New file.
6387 * lib/unictype/pr_punctuation.c: New file.
6388 * lib/unictype/pr_quotation_mark.c: New file.
6389 * lib/unictype/pr_radical.c: New file.
6390 * lib/unictype/pr_sentence_terminal.c: New file.
6391 * lib/unictype/pr_soft_dotted.c: New file.
6392 * lib/unictype/pr_space.c: New file.
6393 * lib/unictype/pr_terminal_punctuation.c: New file.
6394 * lib/unictype/pr_test.c: New file.
6395 * lib/unictype/pr_titlecase.c: New file.
6396 * lib/unictype/pr_unassigned_code_value.c: New file.
6397 * lib/unictype/pr_unified_ideograph.c: New file.
6398 * lib/unictype/pr_uppercase.c: New file.
6399 * lib/unictype/pr_variation_selector.c: New file.
6400 * lib/unictype/pr_white_space.c: New file.
6401 * lib/unictype/pr_xid_continue.c: New file.
6402 * lib/unictype/pr_xid_start.c: New file.
6403 * lib/unictype/pr_zero_width.c: New file.
6404 * lib/unictype/scripts.c: New file.
6405 * lib/unictype/sy_c_ident.c: New file.
6406 * lib/unictype/sy_c_whitespace.c: New file.
6407 * lib/unictype/sy_java_ident.c: New file.
6408 * lib/unictype/sy_java_whitespace.c: New file.
6410 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
6412 * lib/unictype/blocks.h: Likewise.
6413 * lib/unictype/categ_C.h: Likewise.
6414 * lib/unictype/categ_Cc.h: Likewise.
6415 * lib/unictype/categ_Cf.h: Likewise.
6416 * lib/unictype/categ_Cn.h: Likewise.
6417 * lib/unictype/categ_Co.h: Likewise.
6418 * lib/unictype/categ_Cs.h: Likewise.
6419 * lib/unictype/categ_L.h: Likewise.
6420 * lib/unictype/categ_Ll.h: Likewise.
6421 * lib/unictype/categ_Lm.h: Likewise.
6422 * lib/unictype/categ_Lo.h: Likewise.
6423 * lib/unictype/categ_Lt.h: Likewise.
6424 * lib/unictype/categ_Lu.h: Likewise.
6425 * lib/unictype/categ_M.h: Likewise.
6426 * lib/unictype/categ_Mc.h: Likewise.
6427 * lib/unictype/categ_Me.h: Likewise.
6428 * lib/unictype/categ_Mn.h: Likewise.
6429 * lib/unictype/categ_N.h: Likewise.
6430 * lib/unictype/categ_Nd.h: Likewise.
6431 * lib/unictype/categ_Nl.h: Likewise.
6432 * lib/unictype/categ_No.h: Likewise.
6433 * lib/unictype/categ_P.h: Likewise.
6434 * lib/unictype/categ_Pc.h: Likewise.
6435 * lib/unictype/categ_Pd.h: Likewise.
6436 * lib/unictype/categ_Pe.h: Likewise.
6437 * lib/unictype/categ_Pf.h: Likewise.
6438 * lib/unictype/categ_Pi.h: Likewise.
6439 * lib/unictype/categ_Po.h: Likewise.
6440 * lib/unictype/categ_Ps.h: Likewise.
6441 * lib/unictype/categ_S.h: Likewise.
6442 * lib/unictype/categ_Sc.h: Likewise.
6443 * lib/unictype/categ_Sk.h: Likewise.
6444 * lib/unictype/categ_Sm.h: Likewise.
6445 * lib/unictype/categ_So.h: Likewise.
6446 * lib/unictype/categ_Z.h: Likewise.
6447 * lib/unictype/categ_Zl.h: Likewise.
6448 * lib/unictype/categ_Zp.h: Likewise.
6449 * lib/unictype/categ_Zs.h: Likewise.
6450 * lib/unictype/categ_of.h: Likewise.
6451 * lib/unictype/combining.h: Likewise.
6452 * lib/unictype/ctype_alnum.h: Likewise.
6453 * lib/unictype/ctype_alpha.h: Likewise.
6454 * lib/unictype/ctype_blank.h: Likewise.
6455 * lib/unictype/ctype_cntrl.h: Likewise.
6456 * lib/unictype/ctype_digit.h: Likewise.
6457 * lib/unictype/ctype_graph.h: Likewise.
6458 * lib/unictype/ctype_lower.h: Likewise.
6459 * lib/unictype/ctype_print.h: Likewise.
6460 * lib/unictype/ctype_punct.h: Likewise.
6461 * lib/unictype/ctype_space.h: Likewise.
6462 * lib/unictype/ctype_upper.h: Likewise.
6463 * lib/unictype/ctype_xdigit.h: Likewise.
6464 * lib/unictype/decdigit.h: Likewise.
6465 * lib/unictype/digit.h: Likewise.
6466 * lib/unictype/mirror.h: Likewise.
6467 * lib/unictype/numeric.h: Likewise.
6468 * lib/unictype/pr_alphabetic.h: Likewise.
6469 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6470 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6471 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6472 * lib/unictype/pr_bidi_block_separator.h: Likewise.
6473 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6474 * lib/unictype/pr_bidi_common_separator.h: Likewise.
6475 * lib/unictype/pr_bidi_control.h: Likewise.
6476 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6477 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6478 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6479 * lib/unictype/pr_bidi_european_digit.h: Likewise.
6480 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6481 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6482 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6483 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6484 * lib/unictype/pr_bidi_pdf.h: Likewise.
6485 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6486 * lib/unictype/pr_bidi_whitespace.h: Likewise.
6487 * lib/unictype/pr_combining.h: Likewise.
6488 * lib/unictype/pr_composite.h: Likewise.
6489 * lib/unictype/pr_currency_symbol.h: Likewise.
6490 * lib/unictype/pr_dash.h: Likewise.
6491 * lib/unictype/pr_decimal_digit.h: Likewise.
6492 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6493 * lib/unictype/pr_deprecated.h: Likewise.
6494 * lib/unictype/pr_diacritic.h: Likewise.
6495 * lib/unictype/pr_extender.h: Likewise.
6496 * lib/unictype/pr_format_control.h: Likewise.
6497 * lib/unictype/pr_grapheme_base.h: Likewise.
6498 * lib/unictype/pr_grapheme_extend.h: Likewise.
6499 * lib/unictype/pr_grapheme_link.h: Likewise.
6500 * lib/unictype/pr_hex_digit.h: Likewise.
6501 * lib/unictype/pr_hyphen.h: Likewise.
6502 * lib/unictype/pr_id_continue.h: Likewise.
6503 * lib/unictype/pr_id_start.h: Likewise.
6504 * lib/unictype/pr_ideographic.h: Likewise.
6505 * lib/unictype/pr_ids_binary_operator.h: Likewise.
6506 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6507 * lib/unictype/pr_ignorable_control.h: Likewise.
6508 * lib/unictype/pr_iso_control.h: Likewise.
6509 * lib/unictype/pr_join_control.h: Likewise.
6510 * lib/unictype/pr_left_of_pair.h: Likewise.
6511 * lib/unictype/pr_line_separator.h: Likewise.
6512 * lib/unictype/pr_logical_order_exception.h: Likewise.
6513 * lib/unictype/pr_lowercase.h: Likewise.
6514 * lib/unictype/pr_math.h: Likewise.
6515 * lib/unictype/pr_non_break.h: Likewise.
6516 * lib/unictype/pr_not_a_character.h: Likewise.
6517 * lib/unictype/pr_numeric.h: Likewise.
6518 * lib/unictype/pr_other_alphabetic.h: Likewise.
6519 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6520 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6521 * lib/unictype/pr_other_id_continue.h: Likewise.
6522 * lib/unictype/pr_other_id_start.h: Likewise.
6523 * lib/unictype/pr_other_lowercase.h: Likewise.
6524 * lib/unictype/pr_other_math.h: Likewise.
6525 * lib/unictype/pr_other_uppercase.h: Likewise.
6526 * lib/unictype/pr_paired_punctuation.h: Likewise.
6527 * lib/unictype/pr_paragraph_separator.h: Likewise.
6528 * lib/unictype/pr_pattern_syntax.h: Likewise.
6529 * lib/unictype/pr_pattern_white_space.h: Likewise.
6530 * lib/unictype/pr_private_use.h: Likewise.
6531 * lib/unictype/pr_punctuation.h: Likewise.
6532 * lib/unictype/pr_quotation_mark.h: Likewise.
6533 * lib/unictype/pr_radical.h: Likewise.
6534 * lib/unictype/pr_sentence_terminal.h: Likewise.
6535 * lib/unictype/pr_soft_dotted.h: Likewise.
6536 * lib/unictype/pr_space.h: Likewise.
6537 * lib/unictype/pr_terminal_punctuation.h: Likewise.
6538 * lib/unictype/pr_titlecase.h: Likewise.
6539 * lib/unictype/pr_unassigned_code_value.h: Likewise.
6540 * lib/unictype/pr_unified_ideograph.h: Likewise.
6541 * lib/unictype/pr_uppercase.h: Likewise.
6542 * lib/unictype/pr_variation_selector.h: Likewise.
6543 * lib/unictype/pr_white_space.h: Likewise.
6544 * lib/unictype/pr_xid_continue.h: Likewise.
6545 * lib/unictype/pr_xid_start.h: Likewise.
6546 * lib/unictype/pr_zero_width.h: Likewise.
6547 * lib/unictype/scripts.h: Likewise.
6548 * lib/unictype/scripts_byname.gperf: Likewise.
6549 * lib/unictype/sy_c_ident.h: Likewise.
6550 * lib/unictype/sy_c_whitespace.h: Likewise.
6551 * lib/unictype/sy_java_ident.h: Likewise.
6552 * lib/unictype/sy_java_whitespace.h: Likewise.
6554 * lib/unictype/Makefile: New file.
6555 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
6557 * lib/unictype/3level.h: New file, copied from glibc.
6558 * lib/unictype/3levelbit.h: New file.
6560 2007-11-11 Bruno Haible <bruno@clisp.org>
6562 * modules/gperf: New file.
6563 * modules/iconv_open (Depends-on): Add it.
6564 (Makefile.am): Remove the GPERF definition.
6566 2007-11-11 Bruno Haible <bruno@clisp.org>
6568 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
6569 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
6571 2007-11-11 Bruno Haible <bruno@clisp.org>
6573 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
6574 (usage): Remove function.
6576 2007-11-11 Bruno Haible <bruno@clisp.org>
6578 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
6580 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
6582 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
6584 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
6585 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
6586 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
6588 2007-11-11 Bruno Haible <bruno@clisp.org>
6590 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
6591 roundf were declared but do not exist on functions.
6592 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
6593 roundl were declared but do not exist on functions.
6594 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
6595 HAVE_FLOORL_AND_CEILL, respectively.
6596 Needed for Sun C on Solaris 10.
6598 2007-11-11 Bruno Haible <bruno@clisp.org>
6600 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
6601 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
6602 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
6603 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
6604 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
6605 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
6606 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
6608 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
6609 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
6610 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
6611 of HAVE_DECL_ROUND*.
6612 * modules/math (Makefile.am): Update.
6614 2007-11-10 Bruno Haible <bruno@clisp.org>
6616 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
6617 ptrdiff_t as m4/intl.m4.
6619 2007-11-10 Jim Meyering <meyering@redhat.com>
6621 Avoid link failure for the argmatch test.
6622 * tests/test-argmatch.c (usage): Define function to avoid a link
6623 failure: argmatch_die requires a usage function.
6625 2007-11-09 Bruno Haible <bruno@clisp.org>
6627 * doc/functions/snprintf.texi: Mention BeOS deficiency.
6628 * doc/functions/vsnprintf.texi: Likewise.
6629 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
6630 with a size argument < 2.
6632 2007-11-09 Bruno Haible <bruno@clisp.org>
6634 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
6635 buffer. Fixes an inefficiency introduced on 2007-11-03.
6637 2007-11-09 Bruno Haible <bruno@clisp.org>
6639 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
6640 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
6642 2007-11-08 Jim Meyering <meyering@redhat.com>
6644 Change cache variable name prefix "jm_" to "gl_" everywhere.
6645 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
6646 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
6647 * m4/uptime.m4: s/gl_/jm_/
6649 2007-11-07 Bruno Haible <bruno@clisp.org>
6651 Update to GNU gettext 0.17.
6652 * m4/intl.m4: Update to GNU gettext 0.17.
6653 * m4/po.m4: Likewise.
6654 * modules/gettext (Files): Remove m4/ulonglong.m4.
6655 (configure.ac): Require gettext infrastructure from version 0.17.
6657 2007-11-06 Bruno Haible <bruno@clisp.org>
6659 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
6660 symbolic values are not defined in a public header.
6661 * lib/freadable.c (freadable) [QNX]: Likewise.
6662 * lib/freadahead.c (freadahead) [QNX]: Likewise.
6663 * lib/freading.c (freading) [QNX]: Likewise.
6664 * lib/fseterr.c (fseterr) [QNX]: Likewise.
6665 * lib/fwritable.c (fwritable) [QNX]: Likewise.
6666 * lib/fwriting.c (fwriting) [QNX]: Likewise.
6667 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
6668 Reported by Alain Magloire.
6670 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
6672 2007-11-05 Bruno Haible <bruno@clisp.org>
6674 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
6675 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
6676 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
6677 Reported by Eric Blake.
6679 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6680 Bruno Haible <bruno@clisp.org>
6682 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
6683 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
6684 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
6685 (malloc): Undefine also before including <stdlib.h>.
6686 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
6687 Needed on OSF/1 4.0.
6689 2007-11-05 Jim Meyering <meyering@redhat.com>
6691 git-version-gen: sync from coreutils.
6692 * build-aux/git-version-gen: Add comments.
6693 Change the first '-' to '.' in the snapshot version string,
6694 e.g., 6.9-377-08144 -> 6.9.377-08144
6695 Remove first parameter.
6696 Don't declare a version "-dirty" merely because a time
6699 2007-11-04 Bruno Haible <bruno@clisp.org>
6701 * lib/lock.h: Protect all macro definitions containing an 'if'
6702 statement through a "do { ... } while (0)".
6703 * lib/tls.h: Likewise.
6705 2007-11-04 Bruno Haible <bruno@clisp.org>
6707 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
6709 2007-11-04 Bruno Haible <bruno@clisp.org>
6711 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
6712 * modules/fprintf-posix (Depends-on): Add nocrash.
6713 * modules/snprintf-posix (Depends-on): Likewise.
6714 * modules/sprintf-posix (Depends-on): Likewise.
6715 * modules/vasnprintf-posix (Depends-on): Likewise.
6716 * modules/vasprintf-posix (Depends-on): Likewise.
6717 * modules/vfprintf-posix (Depends-on): Likewise.
6718 * modules/vsnprintf-posix (Depends-on): Likewise.
6719 * modules/vsprintf-posix (Depends-on): Likewise.
6720 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6721 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6722 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6723 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6724 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6725 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6726 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6728 2007-11-04 Bruno Haible <bruno@clisp.org>
6730 * modules/nocrash: New file.
6731 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
6732 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
6734 2007-11-04 Bruno Haible <bruno@clisp.org>
6736 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
6738 * tests/test-vasprintf-posix.c (test_function): Likewise.
6739 * tests/test-snprintf-posix.h (test_function): Likewise.
6740 * tests/test-sprintf-posix.h (test_function): Likewise.
6742 Fix *printf behaviour for large precisions on mingw and BeOS.
6743 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
6744 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
6745 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
6746 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6747 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6748 gl_PRINTF_PRECISION and test its result. Invoke
6749 gl_PREREQ_VASNPRINTF_PRECISION.
6750 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6751 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6752 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6753 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6754 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6755 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6756 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6757 * doc/functions/fprintf.texi: Update.
6758 * doc/functions/printf.texi: Update.
6759 * doc/functions/snprintf.texi: Update.
6760 * doc/functions/sprintf.texi: Update.
6761 * doc/functions/vfprintf.texi: Update.
6762 * doc/functions/vprintf.texi: Update.
6763 * doc/functions/vsnprintf.texi: Update.
6764 * doc/functions/vsprintf.texi: Update.
6766 2007-11-04 Bruno Haible <bruno@clisp.org>
6768 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
6770 2007-11-04 Bruno Haible <bruno@clisp.org>
6772 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
6773 Reported by Sylvain Beucler <beuc@gnu.org>.
6775 2007-11-03 Bruno Haible <bruno@clisp.org>
6777 * tests/test-fprintf-posix2.sh: New file.
6778 * tests/test-fprintf-posix2.c: New file.
6779 * modules/fprintf-posix-tests (Files): Add them.
6780 (TESTS): Add test-fprintf-posix2.sh.
6781 (configure.ac): Check for getrlimit and setrlimit.
6782 (check_PROGRAMS): Add test-fprintf-posix2.
6784 * tests/test-printf-posix2.sh: New file.
6785 * tests/test-printf-posix2.c: New file.
6786 * modules/printf-posix-tests (Files): Add them.
6787 (TESTS): Add test-printf-posix2.sh.
6788 (configure.ac): Check for getrlimit and setrlimit.
6789 (check_PROGRAMS): Add test-printf-posix2.
6791 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
6792 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
6793 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
6794 (decode_double): New function, copied from decode_long_double.
6795 (scale10_round_decimal_decoded): New function, extracted from
6796 scale10_round_decimal_long_double.
6797 (scale10_round_decimal_long_double): Use it.
6798 (scale10_round_decimal_double): New function.
6799 (floorlog10): New function.
6800 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
6801 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
6802 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6803 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6804 gl_PRINTF_ENOMEM and test its result. Invoke
6805 gl_PREREQ_VASNPRINTF_ENOMEM.
6806 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6807 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6808 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6809 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6810 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6811 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6812 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6813 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
6814 * modules/snprintf-posix (Depends-on): Likewise.
6815 * modules/sprintf-posix (Depends-on): Likewise.
6816 * modules/vasnprintf-posix (Depends-on): Likewise.
6817 * modules/vasprintf-posix (Depends-on): Likewise.
6818 * modules/vfprintf-posix (Depends-on): Likewise.
6819 * modules/vsnprintf-posix (Depends-on): Likewise.
6820 * modules/vsprintf-posix (Depends-on): Likewise.
6821 * doc/functions/fprintf.texi: Update.
6822 * doc/functions/printf.texi: Update.
6823 * doc/functions/snprintf.texi: Update.
6824 * doc/functions/sprintf.texi: Update.
6825 * doc/functions/vfprintf.texi: Update.
6826 * doc/functions/vprintf.texi: Update.
6827 * doc/functions/vsnprintf.texi: Update.
6828 * doc/functions/vsprintf.texi: Update.
6830 2007-11-03 Bruno Haible <bruno@clisp.org>
6832 * modules/frexp-nolibm-tests: New file.
6834 * modules/frexp-nolibm: New file.
6835 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
6837 2007-11-03 Bruno Haible <bruno@clisp.org>
6839 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
6840 value is C99 compliant.
6841 Needed for OSF/1 5.1.
6843 2007-11-03 Bruno Haible <bruno@clisp.org>
6845 Fix out-of-memory handling of vasnprintf.
6846 * lib/printf-parse.c: Include <errno.h>.
6847 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
6848 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
6851 2007-11-02 Eric Blake <ebb9@byu.net>
6853 Fix tests on cygwin.
6854 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
6856 2007-11-01 Bruno Haible <bruno@clisp.org>
6858 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
6860 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
6861 needed for POSIX compatibility.
6863 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
6865 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
6866 for compatibility with GNU.
6868 2007-11-01 Bruno Haible <bruno@clisp.org>
6870 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
6871 (putenv): Renamed from rpl_putenv. Change argument type from
6872 'const char *' to 'char *'.
6873 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
6874 of defining putenv in config.h, just set REPLACE_PUTENV.
6875 * modules/putenv (Depends-on): Add stdlib.
6876 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6877 (Include): Use <stdlib.h>.
6878 * lib/stdlib.in.h (putenv): New declaration.
6879 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
6881 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
6883 Needed for MacOS X 10.5.0.
6884 Reported by Peter O'Gorman <peter@pogma.com>.
6886 2007-11-01 Jim Meyering <meyering@redhat.com>
6888 Treat an empty date string exactly like "0".
6889 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
6890 if the remaining date string (to be parsed) is empty, use "0".
6891 Reported by Mischa Molhoek and discussed in this thread:
6892 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
6894 2007-10-31 Bruno Haible <bruno@clisp.org>
6896 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
6897 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
6898 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
6899 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
6900 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
6901 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
6903 2007-10-31 Bruno Haible <bruno@clisp.org>
6905 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
6906 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
6907 (AC_TYPE_LONG_LONG_INT): Use it.
6908 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
6910 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
6912 * modules/stdint (Files): Remove m4/ulonglong.m4.
6913 * modules/strtoull (Files): Use m4/longlong.m4 instead of
6915 * modules/strtoumax (Files): Likewise.
6917 2007-10-30 Bruno Haible <bruno@clisp.org>
6919 * modules/xvasprintf-posix: New file.
6920 Suggested by Eric Blake.
6922 2007-10-30 Bruno Haible <bruno@clisp.org>
6924 * modules/xprintf-posix-tests: New file.
6925 * tests/test-xprintf-posix.sh: New file.
6926 * tests/test-xprintf-posix.c: New file.
6927 * tests/test-xfprintf-posix.c: New file.
6929 * modules/xprintf-posix: New file.
6931 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6933 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
6934 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
6935 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
6937 2007-10-29 Bruno Haible <bruno@clisp.org>
6939 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
6940 contain the special marker '_cv_'.
6941 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6942 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6943 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6944 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6945 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6946 Reported by Ralf Wildenhues.
6948 2007-10-29 Bruno Haible <bruno@clisp.org>
6950 * gnulib-tool (func_import): When --lgpl is not specified, set
6951 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
6953 Reported by Simon Josefsson.
6955 2007-10-28 Bruno Haible <bruno@clisp.org>
6957 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
6958 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
6960 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
6961 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
6964 2007-10-28 Bruno Haible <bruno@clisp.org>
6966 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
6967 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
6969 2007-10-28 Bruno Haible <bruno@clisp.org>
6971 Fix link errors with Sun C 5.0 on Solaris 10.
6972 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
6973 function is declared but not present in the compiler's libm.
6974 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6975 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6976 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
6977 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
6978 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
6979 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
6980 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
6981 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
6982 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
6983 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
6984 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
6987 2007-10-28 Bruno Haible <bruno@clisp.org>
6989 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
6990 gl_FUNC_FLOORL. Cache the result.
6991 (gl_FUNC_FLOORL): Use it.
6992 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
6993 gl_FUNC_CEILL. Cache the result.
6994 (gl_FUNC_CEILL): Use it.
6996 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
6997 gl_FUNC_FLOOR. Cache the result.
6998 (gl_FUNC_FLOOR): Use it.
6999 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7000 gl_FUNC_CEIL. Cache the result.
7001 (gl_FUNC_CEIL): Use it.
7003 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7004 gl_FUNC_FLOORF. Cache the result.
7005 (gl_FUNC_FLOORF): Use it.
7006 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7007 gl_FUNC_CEILF. Cache the result.
7008 (gl_FUNC_CEILF): Use it.
7010 2007-10-28 Bruno Haible <bruno@clisp.org>
7012 * gnulib-tool: Allow specifying the LGPL version number through
7013 --lgpl=2 or --lgpl=3.
7014 (func_usage): Document --lgpl with argument.
7015 Handle --lgpl=... arguments.
7016 (func_import): Recognize also gl_LGPL calls with an argument. When
7017 --lgpl=2 is used and the module's license is just LGPL, report an
7018 error. Set sed_transform_lib_file according to the lgpl variable. In
7019 the generated files, use --lgpl or gl_LGPL invocations with argument,
7021 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7023 * doc/gnulib-tool.texi (Modified imports): Update explanation of
7026 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7027 Bruno Haible <bruno@clisp.org>
7029 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7030 (u16_uctomb_aux): Likewise.
7031 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7033 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7035 2007-10-28 Bruno Haible <bruno@clisp.org>
7037 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7038 Invoke AM_GETTEXT_OPTION if it exists.
7039 * modules/vasprintf: Likewise.
7040 * modules/verror: Likewise.
7041 * modules/xprintf: Likewise.
7042 * modules/xvasprintf: Likewise.
7044 2007-10-27 Ben Pfaff <blp@gnu.org>
7046 * lib/math.in.h: Define isfinite macro and prototypes for
7047 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7049 * m4/math_h.m4: New substitutions for isfinite module.
7050 * lib/isfinite.c: New file.
7051 * m4/isfinite.m4: New file.
7052 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7053 * modules/isfinite: New file.
7054 * modules/isfinite-tests: New file.
7055 * tests/tests-isfinite.c: New file.
7056 * doc/functions/isfinite.texi: Mention isfinite module.
7057 * MODULES.html.sh: Mention new module.
7059 2007-10-27 Ben Pfaff <blp@gnu.org>
7061 Ralf Wildenhues reported that Tru64 4.0D declares the round
7062 functions but does not have definitions.
7063 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7064 cannot be found in any library, set the output variable to
7065 "missing" instead of "".
7066 * m4/round.m4: Also use our substitute if we cannot find round in
7067 any library, even if it is declared.
7068 * m4/roundf.m4: Likewise for roundf.
7069 * m4/roundl.m4: Likewise for roundl.
7070 * lib/math.in.h: Undefine roundf, round, roundl before defining
7071 their replacements, to allow for hypothetical systems where these
7072 may be defined as macros but not available in libraries.
7074 2007-10-27 Bruno Haible <bruno@clisp.org>
7076 * doc/gnulib.texi: Invoke @firstparagraphindent.
7077 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7079 (Source changes): New section.
7081 2007-10-26 Bruno Haible <bruno@clisp.org>
7083 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7084 borrowed from autoconf.
7086 2007-10-26 Bruno Haible <bruno@clisp.org>
7088 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7089 strerror returned the empty string. Needed on HP-UX 11.00.
7091 2007-10-24 Micah Cowan <micah@cowan.name>
7093 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
7094 * build-aux/bootstrap: Remove support for now-unnecessary option,
7095 --cvs-user, and envvars CVS_USER, CVS_RSH.
7097 2007-10-24 Jim Meyering <meyering@redhat.com>
7099 Avoid diagnostics from sha1sum when there is no cached checksum.
7100 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
7101 if the po.s1 file hasn't been created yet.
7103 * build-aux/bootstrap: Sync from coreutils:
7104 2007-10-24 Jim Meyering <meyering@redhat.com>
7105 Get gnulib from the git repository, not from an obsolete cvs one.
7106 * build-aux/bootstrap: Suggestion from Micah Cowan.
7107 2007-10-04 Jim Meyering <jim@meyering.net>
7108 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
7109 (update_po_files): Work also when there are no .po files in po/.
7111 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
7113 * README: Append ".git" to git and cg examples.
7114 Problem reported by Benoit Sigoure.
7116 2007-10-23 Micah Cowan <micah@cowan.name>
7118 * users.txt: Add wget.
7120 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7122 Fix linking of some unistdio tests on FreeBSD.
7123 * modules/unistdio/u16-vsnprintf-tests
7124 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
7125 * modules/unistdio/u16-vsprintf-tests
7126 (test_u16_vsnprintf1_LDADD): Likewise.
7127 * modules/unistdio/u32-vsnprintf-tests
7128 (test_u32_vsnprintf1_LDADD): Likewise.
7129 * modules/unistdio/u32-vsprintf-tests
7130 (test_u32_vsprintf1_LDADD): Likewise.
7131 * modules/unistdio/u8-vsnprintf-tests
7132 (test_u8_vsnprintf1_LDADD): Likewise.
7133 * modules/unistdio/u8-vsprintf-tests
7134 (test_u8_vsprintf1_LDADD): Likewise.
7135 * modules/unistdio/ulc-vsnprintf-tests
7136 (test_ulc_vsnprintf1_LDADD): Likewise.
7137 * modules/unistdio/ulc-vsprintf-tests
7138 (test_ulc_vsprintf1_LDADD): Likewise.
7140 Fix linking of some uniconv tests on FreeBSD.
7141 * modules/uniconv/u16-conv-from-enc-tests
7142 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
7143 * modules/uniconv/u16-conv-to-enc-tests
7144 (test_u16_conv_to_enc_LDADD): Likewise.
7145 * modules/uniconv/u16-strconv-from-enc-tests
7146 (test_u16_strconv_from_enc_LDADD): Likewise.
7147 * modules/uniconv/u16-strconv-to-enc-tests
7148 (test_u16_strconv_to_enc_LDADD): Likewise.
7149 * modules/uniconv/u32-conv-from-enc-tests
7150 (test_u32_conv_from_enc_LDADD): Likewise.
7151 * modules/uniconv/u32-conv-to-enc-tests
7152 (test_u32_conv_to_enc_LDADD): Likewise.
7153 * modules/uniconv/u32-strconv-from-enc-tests
7154 (test_u32_strconv_from_enc_LDADD): Likewise.
7155 * modules/uniconv/u32-strconv-to-enc-tests
7156 (test_u32_strconv_to_enc_LDADD): Likewise.
7157 * modules/uniconv/u8-conv-from-enc-tests
7158 (test_u8_conv_from_enc_LDADD): Likewise.
7159 * modules/uniconv/u8-conv-to-enc-tests
7160 (test_u8_conv_to_enc_LDADD): Likewise.
7161 * modules/uniconv/u8-strconv-from-enc-tests
7162 (test_u8_strconv_from_enc_LDADD): Likewise.
7163 * modules/uniconv/u8-strconv-to-enc-tests
7164 (test_u8_strconv_to_enc_LDADD): Likewise.
7166 2007-10-22 Bruno Haible <bruno@clisp.org>
7168 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
7171 2007-10-22 Eric Blake <ebb9@byu.net>
7173 Tweak x*printf documentation.
7174 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
7175 variable name and comments.
7176 Suggested by Bruno Haible.
7178 2007-10-22 Bruno Haible <bruno@clisp.org>
7180 * lib/acl.c (copy_acl): Fix file name in comment.
7182 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
7184 Fix Tru64 problem with stdbool.h.
7185 * lib/stdbool.in.h (false, true):
7186 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
7187 Don't declare as an enum in this situation; it runs afoul of Tru64.
7188 Problem reported by Steven M. Schweda in
7189 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
7191 2007-10-22 Eric Blake <ebb9@byu.net>
7193 Also wrap vf?printf.
7194 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
7195 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
7196 (xvprintf, xvfprintf): New functions.
7198 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7200 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
7201 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
7203 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
7204 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
7206 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
7208 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
7211 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7214 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
7215 Undef `sys' after including sys/table.h, for Tru64 4.0D.
7217 * tests/test-i-ring.c: Work for C89.
7219 2007-10-22 Bruno Haible <bruno@clisp.org>
7221 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
7222 -1u, in preprocessor expression, so that we don't test for the bug
7223 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
7224 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7226 2007-10-22 Eric Blake <ebb9@byu.net>
7228 * tests/test-yesno.sh: Silence stderr during test.
7230 2007-10-22 Simon Josefsson <simon@josefsson.org>
7232 * modules/crypto/gc-camellia: New file.
7234 * m4/gc-camellia.m4: New file.
7236 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
7238 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
7240 2007-10-22 Simon Josefsson <simon@josefsson.org>
7242 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
7243 --help to stdout. Reported by sms@antinode.org (Steven
7246 2007-10-22 Simon Josefsson <simon@josefsson.org>
7248 * users.txt: Fix link to libksba.
7250 2007-10-21 Ben Pfaff <blp@gnu.org>
7252 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
7253 round.c roundf implementation that depends on floorf and ceilf to
7254 be tested unconditionally.
7256 2007-10-21 Ben Pfaff <blp@gnu.org>
7258 * m4/check-libm-func.m4: Removed.
7259 * m4/check-math-lib.m4: New file.
7260 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
7261 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
7262 definition and lack of AC_LIBOBJ([roundf]).
7263 * m4/roundl.m4: Ditto, and similarly for roundl.
7264 * modules/round: Reference new m4 file.
7265 * modules/roundf: Ditto.
7266 * modules/roundl: Ditto.
7267 * tests/test-round2.c (main): Use ROUND instead of round.
7268 Bug report from Bruno Haible.
7270 2007-10-21 Bruno Haible <bruno@clisp.org>
7272 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
7275 2007-10-21 Bruno Haible <bruno@clisp.org>
7277 * tests/test-wcwidth.c (main): Allow negative result for some control
7280 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
7281 Needed on OSF/1 5.1.
7283 2007-10-21 Bruno Haible <bruno@clisp.org>
7285 * tests/test-floorf1.c: Include isnanf.h.
7286 (main): Use isnanf() instead of isnan().
7287 * tests/test-ceilf1.c: Include isnanf.h.
7288 (main): Use isnanf() instead of isnan().
7289 * tests/test-truncf1.c: Include isnanf.h.
7290 (main): Use isnanf() instead of isnan().
7291 * tests/test-roundf1.c: Include isnanf.h.
7292 (main): Use isnanf() instead of isnan().
7294 2007-10-21 Eric Blake <ebb9@byu.net>
7296 * users.txt: Update URL for m4.
7298 2007-10-21 Bruno Haible <bruno@clisp.org>
7300 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
7302 2007-10-21 Bruno Haible <bruno@clisp.org>
7304 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
7305 Git's management files if the CVS files are not present.
7307 2007-10-20 Bruno Haible <bruno@clisp.org>
7309 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
7312 2007-10-20 Ben Pfaff <blp@gnu.org>
7314 * lib/math.in.h: Declare round, roundf, roundl if we are providing
7316 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
7317 * lib/round.c: New file.
7318 * lib/roundf.c: New file.
7319 * lib/roundl.c: New file.
7320 * m4/round.m4: New file.
7321 * m4/roundf.m4: New file.
7322 * m4/roundl.m4: New file.
7323 * m4/check-libm-func-m4: New file.
7324 * modules/math: Replace round, roundf, roundl related @VARS@ in
7326 * modules/round: New file.
7327 * modules/round-tests: New file.
7328 * modules/roundf: New file.
7329 * modules/roundf-tests: New file.
7330 * modules/roundl: New file.
7331 * modules/roundl-tests: New file.
7332 * tests/test-round1.c: New file.
7333 * tests/test-round2.c: New file.
7334 * tests/test-roundf1.c: New file.
7335 * tests/test-roundf2.c: New file.
7336 * tests/test-roundl.c: New file.
7337 * doc/functions/round.texi: Mention round module.
7338 * doc/functions/roundf.texi: Mention roundf module.
7339 * doc/functions/roundl.texi: Mention roundl module.
7340 * MODULES.html.sh: Mention new modules.
7341 Thanks to Bruno Haible for suggestions.
7343 2007-10-20 Jim Meyering <meyering@redhat.com>
7345 * lib/xprintf.c: Include <config.h> unconditionally.
7347 Change xprintf's license to GPL.
7348 * modules/xprintf (License): s/LGPL/GPL/, since this module
7349 depends on modules (exit and exitfail) which are GPL.
7350 Suggestion from Bruno Haible.
7353 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
7354 Use a clearer diagnostic.
7355 Patch from Bruno Haible.
7357 2007-10-20 Bruno Haible <bruno@clisp.org>
7359 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
7360 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
7361 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7363 2007-10-20 Bruno Haible <bruno@clisp.org>
7365 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
7366 precision in the comparison result > x - 1 or similar.
7367 * tests/test-ceilf2.c (correct_result_p): Likewise.
7368 * tests/test-truncf2.c (correct_result_p): Likewise.
7369 * tests/test-trunc2.c (correct_result_p): Likewise.
7370 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7372 2007-10-20 Bruno Haible <bruno@clisp.org>
7374 * modules/ceil: New file.
7375 * m4/ceil.m4: New file.
7376 * doc/functions/ceil.texi: Mention the 'ceil' module.
7378 2007-10-20 Bruno Haible <bruno@clisp.org>
7380 * modules/floor: New file.
7381 * m4/floor.m4: New file.
7382 * doc/functions/floor.texi: Mention the 'floor' module.
7384 2007-10-20 Bruno Haible <bruno@clisp.org>
7386 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
7388 * modules/floorf-tests (Depends-on): Likewise.
7389 * modules/truncf-tests (Depends-on): Likewise.
7390 * modules/trunc-tests (Depends-on): Likewise.
7391 Reported by Ben Pfaff.
7393 2007-10-19 Jim Meyering <meyering@redhat.com>
7395 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
7396 Don't bother testing specific errno values. Just test ferror.
7399 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
7401 2007-10-19 Bruno Haible <bruno@clisp.org>
7403 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
7405 * modules/javaexec (Makefile.am): Likewise.
7406 * modules/relocatable-prog (Makefile.am): Likewise.
7407 Suggested by Jim Meyering.
7409 2007-10-18 Bruno Haible <bruno@clisp.org>
7411 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
7412 Reported by Jim Meyering.
7414 2007-10-18 Eric Blake <ebb9@byu.net>
7416 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
7418 2007-10-18 Bruno Haible <bruno@clisp.org>
7420 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
7421 the format string into writable memory. Needed in Fortify conditions.
7423 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
7424 Bruno Haible <bruno@clisp.org>
7426 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
7427 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
7428 * modules/trim (Depends-on): Add mbchar.
7429 (configure.ac): Add gl_FUNC_MBRTOWC.
7430 (Makefile.am): Augment lib_SOURCES.
7432 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
7434 Modify glob.c to use fstatat and dirfd, to simplify it.
7435 Suggested by Eric Blake.
7436 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
7437 Don't include <stdbool.h>; not used.
7438 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
7439 (link_exists_p): Simplify implementation, since we can now assume
7441 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
7443 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7445 * gnulib-tool (func_get_dependencies): Fix sed script to
7448 2007-10-17 Bruno Haible <bruno@clisp.org>
7450 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
7451 allow locale names without encoding suffix.
7452 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7453 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7455 2007-10-16 Bruno Haible <bruno@clisp.org>
7457 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
7458 * lib/getgroups.c (getgroups): Likewise.
7459 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
7461 2007-10-16 Bruno Haible <bruno@clisp.org>
7463 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
7464 * modules/malloc-posix (License): Likewise.
7465 * modules/realloc-posix (License): Likewise.
7466 * modules/calloc-posix (License): Likewise.
7467 * modules/intprops (License): Change from GPL to LGPL, with
7468 Paul Eggert's approval.
7470 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
7472 Merge glibc changes into lib/glob.c.
7474 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
7475 2007-10-15 04:59:03 UTC. Here are the changes:
7477 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7479 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
7481 * lib/glob.c: Add some branch prediction throughout.
7483 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7486 * lib/glob.c (glob): Recognize patterns starting \/.
7488 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7491 * lib/glob.c (attribute_hidden): Define if not defined.
7492 (glob): Unescape dirname, filename or username when needed and not
7493 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7494 is NULL. Handle unescaped [ in pattern without closing ].
7495 Don't pass GLOB_CHECK down to recursive glob for directories.
7496 (__glob_pattern_type): New function.
7497 (__glob_pattern_p): Implement using __glob_pattern_type.
7498 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7499 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7500 Remove unreachable code.
7502 2006-09-30 Ulrich Drepper <drepper@redhat.com>
7504 * lib/glob.c (glob_in_dir): Add some comments and asserts to
7505 explain why there are no leaks.
7507 2006-09-25 Jakub Jelinek <jakub@redhat.com>
7510 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
7511 time, rather allocate increasingly bigger arrays of pointers, if
7512 possible with alloca, if too large with malloc.
7514 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
7516 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7517 Problem reported by H.Merijn Brand in
7518 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7519 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
7520 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7522 2007-10-15 Bruno Haible <bruno@clisp.org>
7524 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
7525 with explicit rpl_ prefix.
7526 * lib/fopen.c (fopen): Likewise.
7527 * lib/freopen.c (freopen): Likewise.
7528 * lib/iconv.c (iconv): Likewise.
7529 * lib/iconv_close.c (iconv_close): Likewise.
7531 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7533 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
7535 2007-10-15 Bruno Haible <bruno@clisp.org>
7537 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
7538 <stddef.h> instead of <stdlib.h> since we only need NULL.
7539 Reported by Ben Pfaff <blp@cs.stanford.edu>.
7541 2007-10-15 Bruno Haible <bruno@clisp.org>
7543 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
7544 Replace paragraph talking about LIBOBJS.
7545 Reported by Colin Watson <cjwatson@debian.org>.
7547 2007-10-15 Bruno Haible <bruno@clisp.org>
7549 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
7550 <stdlib.h> before using NULL.
7552 2007-10-15 Simon Josefsson <simon@josefsson.org>
7554 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
7555 Reported by Albert Chin <china@thewrittenword.com>.
7557 2007-10-14 Bruno Haible <bruno@clisp.org>
7559 * modules/iconv_open-utf-tests: New file.
7560 * tests/test-iconv-utf.c: New file.
7562 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
7563 * modules/iconv_open-utf: New file.
7564 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
7565 (iconv, iconv_close): New declarations.
7566 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
7568 (iconv_open): Add special handling of conversion between UTF-8 and
7570 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
7571 * lib/iconv_close.c: New file.
7572 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
7574 (gl_FUNC_ICONV_OPEN): Use it.
7575 (gl_FUNC_ICONV_OPEN_UTF): New macro.
7576 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
7577 and REPLACE_ICONV_UTF.
7578 * modules/iconv_open (Depends-on): Add c-strcase.
7579 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
7581 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
7583 2007-10-13 Albert Chin <china@thewrittenword.com>
7584 Bruno Haible <bruno@clisp.org>
7586 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
7587 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
7589 2007-10-13 Bruno Haible <bruno@clisp.org>
7591 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
7592 defined, use the ISO C99 inline semantics.
7593 * lib/argp.h (ARGP_EI): Likewise.
7595 2007-10-13 Bruno Haible <bruno@clisp.org>
7597 Handle 'inline' change in gcc 4.3.0.
7598 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
7599 argp_fmtstream_write, argp_fmtstream_set_lmargin,
7600 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
7601 argp_fmtstream_point): Disable 'extern' declaration if the function
7602 definition is going to be provided inline.
7603 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
7604 semantics, not the ISO C99 inline semantics.
7605 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
7606 'extern' declaration if the function definition is going to be provided
7608 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
7609 the GNU C inline semantics, not the ISO C99 inline semantics. With
7610 GCC 4.2, avoid a warning.
7612 2007-10-13 Bruno Haible <bruno@clisp.org>
7614 * lib/freading.h (freading): Enable the use of __freading for
7616 * lib/freading.c (freading): Likewise.
7618 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
7620 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
7621 "warning: C99 inline functions are not supported; using GNU89".
7623 2007-10-12 Bruno Haible <bruno@clisp.org>
7625 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
7627 * tests/test-ceilf2.c: New file.
7628 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
7630 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
7631 * modules/ceilf-tests: Update.
7633 2007-10-12 Bruno Haible <bruno@clisp.org>
7635 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
7637 * tests/test-floorf2.c: New file.
7638 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
7640 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
7641 * modules/floorf-tests: Update.
7643 2007-10-12 Bruno Haible <bruno@clisp.org>
7645 * tests/test-trunc2.c: New file.
7646 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
7648 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
7649 * modules/trunc-tests: Update.
7651 2007-10-12 Bruno Haible <bruno@clisp.org>
7653 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
7655 * tests/test-truncf2.c: New file.
7656 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
7658 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
7659 * modules/truncf-tests: Update.
7661 2007-10-11 Eric Blake <ebb9@byu.net>
7663 Don't claim strerror is broken on Interix.
7664 * doc/functions/strerror.texi (strerror): Known broken systems are
7665 now Solaris 8, and not Interix.
7666 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
7667 Interix on cross-compile.
7668 Reported by Martin Koeppe in
7669 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
7671 2007-10-11 Bruno Haible <bruno@clisp.org>
7673 * modules/i-ring-tests: New file.
7674 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
7677 2007-10-11 Bruno Haible <bruno@clisp.org>
7679 * modules/filenamecat-tests: New file.
7680 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
7681 * lib/filenamecat.c: Remove test code.
7683 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
7685 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
7687 * lib/strerror.c: Include <string.h> always, to test interface,
7688 and to remove the need for the dummy.
7689 Include intprops.h to compute width instead of doing it ourselves
7690 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
7691 (strerror): Define it to return NULL if there's no system strerror.
7692 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
7693 Omit !HAVE_STRERROR code. We don't need to worry about supporting
7694 ancient pre-strerror Unix systems well any more. Saying "unknown
7695 system error" is enough.
7696 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
7697 simpler strerror.c implementation.
7698 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
7699 Simplify the tests to reflect the simpler strerror implementation.
7700 * modules/strerror (Depends-on): Add intprops.
7702 2007-10-09 Eric Blake <ebb9@byu.net>
7704 Silence test-fpending.
7705 * modules/fpending-tests (Files): Add wrapper script.
7706 * tests/test-fpending.sh: New file.
7708 2007-10-09 Bruno Haible <bruno@clisp.org>
7710 * MODULES.html.sh (func_module): Don't create a hyperlink for
7711 function names like 'printf_frexp'.
7712 (Misc): Add crc, memxor.
7713 (Characteristics of floating types): New section.
7714 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
7715 isnanf-nolibm, signbit, trunc, truncf, truncl.
7716 (Enhancements for ISO C 99 functions): New subsection Input/output.
7717 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
7718 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
7719 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
7720 (Compatibility checks for POSIX:2001 functions): Add clock-time.
7721 (Enhancements for POSIX:2001 functions): Add chdir-long.
7722 (File system functions): Add areadlink, chdir-safer, read-file.
7724 (File system as inode set): New section.
7725 (Date and time): Add gethrxtime.
7726 (Multithreading): Add openmp.
7727 (Internationalization functions): Add localename.
7728 (Unicode string functions): Add unistr/u*-mbsnlen.
7729 (Support for maintaining and releasing projects): Add git-version-gen.
7730 (Lone files): Remove directories.
7732 2007-10-08 Ben Pfaff <blp@gnu.org>
7734 * lib/xmalloca.h: Fix typo in comment.
7736 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
7738 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
7739 when avoiding problems with integer overflow. Use a portable test
7742 2007-10-08 Simon Josefsson <simon@josefsson.org>
7744 * modules/dummy (License): Change to LGPLv2+.
7745 * modules/float (License): Likewise
7746 * modules/realloc (License): Likewise
7747 * modules/stdlib (License): Likewise
7749 2007-10-07 Bruno Haible <bruno@clisp.org>
7751 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
7752 * floor.c (TWO_MANT_DIG): Likewise.
7753 * ceil.c (TWO_MANT_DIG): Likewise.
7754 Reported by Ben Pfaff.
7756 2007-10-07 Bruno Haible <bruno@clisp.org>
7758 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
7759 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
7760 * lib/frexp.c (FUNC): Likewise.
7761 * lib/printf-frexp.h (printf_frexp): Likewise.
7762 * lib/printf-frexpl.h (printf_frexpl): Likewise.
7763 * lib/printf-frexp.c (FUNC): Likewise.
7764 Suggested by Jim Meyering.
7766 2007-10-07 Jim Meyering <meyering@redhat.com>
7768 Make xnanosleep's integer overflow test more robust.
7769 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
7770 so that gcc-4.3.0 doesn't optimize away this test for overflow.
7772 2007-10-07 Bruno Haible <bruno@clisp.org>
7774 * NEWS: Mention the license change.
7776 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
7777 abbreviations in the modules files.
7779 Change copyright notice from GPLv2+ to GPLv3+.
7780 * README: Change copyright notice.
7781 * MODULES.html.sh: Likewise.
7782 * build-aux/bootstrap.conf: Likewise.
7783 * build-aux/config.libpath: Likewise.
7784 * build-aux/csharpcomp.sh.in: Likewise.
7785 * build-aux/csharpexec.sh.in: Likewise.
7786 * build-aux/install-reloc: Likewise.
7787 * build-aux/javacomp.sh.in: Likewise.
7788 * build-aux/javaexec.sh.in: Likewise.
7789 * build-aux/ldd.sh.in: Likewise.
7790 * build-aux/reloc-ldflags: Likewise.
7791 * build-aux/relocatable.sh.in: Likewise.
7792 * build-aux/x-to-1.in: Likewise.
7793 * check-module: Likewise.
7794 * config/srclistvars.sh: Likewise.
7795 * gnulib-tool: Likewise.
7796 * lib/acl-internal.h: Likewise.
7797 * lib/acl.c: Likewise.
7798 * lib/acl.h: Likewise.
7799 * lib/acl_entries.c: Likewise.
7800 * lib/areadlink-with-size.c: Likewise.
7801 * lib/areadlink.c: Likewise.
7802 * lib/areadlink.h: Likewise.
7803 * lib/argmatch.c: Likewise.
7804 * lib/argmatch.h: Likewise.
7805 * lib/argp-ba.c: Likewise.
7806 * lib/argp-eexst.c: Likewise.
7807 * lib/argp-fmtstream.c: Likewise.
7808 * lib/argp-fmtstream.h: Likewise.
7809 * lib/argp-fs-xinl.c: Likewise.
7810 * lib/argp-help.c: Likewise.
7811 * lib/argp-namefrob.h: Likewise.
7812 * lib/argp-parse.c: Likewise.
7813 * lib/argp-pin.c: Likewise.
7814 * lib/argp-pv.c: Likewise.
7815 * lib/argp-pvh.c: Likewise.
7816 * lib/argp-xinl.c: Likewise.
7817 * lib/argp.h: Likewise.
7818 * lib/at-func.c: Likewise.
7819 * lib/atanl.c: Likewise.
7820 * lib/backupfile.c: Likewise.
7821 * lib/backupfile.h: Likewise.
7822 * lib/basename.c: Likewise.
7823 * lib/binary-io.h: Likewise.
7824 * lib/byteswap.in.h: Likewise.
7825 * lib/c-stack.c: Likewise.
7826 * lib/c-stack.h: Likewise.
7827 * lib/c-strcasestr.c: Likewise.
7828 * lib/c-strcasestr.h: Likewise.
7829 * lib/c-strstr.c: Likewise.
7830 * lib/c-strstr.h: Likewise.
7831 * lib/c-strtod.c: Likewise.
7832 * lib/calloc.c: Likewise.
7833 * lib/canon-host.c: Likewise.
7834 * lib/canon-host.h: Likewise.
7835 * lib/canonicalize-lgpl.c: Likewise.
7836 * lib/canonicalize.c: Likewise.
7837 * lib/canonicalize.h: Likewise.
7838 * lib/ceil.c: Likewise.
7839 * lib/ceilf.c: Likewise.
7840 * lib/ceill.c: Likewise.
7841 * lib/chdir-long.c: Likewise.
7842 * lib/chdir-long.h: Likewise.
7843 * lib/chdir-safer.c: Likewise.
7844 * lib/chdir-safer.h: Likewise.
7845 * lib/chown.c: Likewise.
7846 * lib/classpath.c: Likewise.
7847 * lib/classpath.h: Likewise.
7848 * lib/clean-temp.c: Likewise.
7849 * lib/clean-temp.h: Likewise.
7850 * lib/cloexec.c: Likewise.
7851 * lib/close-stream.c: Likewise.
7852 * lib/closein.c: Likewise.
7853 * lib/closein.h: Likewise.
7854 * lib/closeout.c: Likewise.
7855 * lib/closeout.h: Likewise.
7856 * lib/concat-filename.c: Likewise.
7857 * lib/copy-file.c: Likewise.
7858 * lib/copy-file.h: Likewise.
7859 * lib/count-one-bits.h: Likewise.
7860 * lib/crc.c: Likewise.
7861 * lib/crc.h: Likewise.
7862 * lib/creat-safer.c: Likewise.
7863 * lib/csharpcomp.c: Likewise.
7864 * lib/csharpcomp.h: Likewise.
7865 * lib/csharpexec.c: Likewise.
7866 * lib/csharpexec.h: Likewise.
7867 * lib/cycle-check.c: Likewise.
7868 * lib/cycle-check.h: Likewise.
7869 * lib/diacrit.c: Likewise.
7870 * lib/diacrit.h: Likewise.
7871 * lib/diffseq.h: Likewise.
7872 * lib/dirchownmod.c: Likewise.
7873 * lib/dirent.in.h: Likewise.
7874 * lib/dirfd.c: Likewise.
7875 * lib/dirfd.h: Likewise.
7876 * lib/dirname.c: Likewise.
7877 * lib/dirname.h: Likewise.
7878 * lib/dummy.c: Likewise.
7879 * lib/dup-safer.c: Likewise.
7880 * lib/dup2.c: Likewise.
7881 * lib/eealloc.h: Likewise.
7882 * lib/error.c: Likewise.
7883 * lib/error.h: Likewise.
7884 * lib/euidaccess.c: Likewise.
7885 * lib/exclude.c: Likewise.
7886 * lib/exclude.h: Likewise.
7887 * lib/execute.c: Likewise.
7888 * lib/execute.h: Likewise.
7889 * lib/exitfail.c: Likewise.
7890 * lib/exitfail.h: Likewise.
7891 * lib/expl.c: Likewise.
7892 * lib/fatal-signal.c: Likewise.
7893 * lib/fatal-signal.h: Likewise.
7894 * lib/fbufmode.c: Likewise.
7895 * lib/fbufmode.h: Likewise.
7896 * lib/fchdir.c: Likewise.
7897 * lib/fchmodat.c: Likewise.
7898 * lib/fchownat.c: Likewise.
7899 * lib/fcntl--.h: Likewise.
7900 * lib/fcntl-safer.h: Likewise.
7901 * lib/fcntl.in.h: Likewise.
7902 * lib/fd-safer.c: Likewise.
7903 * lib/fflush.c: Likewise.
7904 * lib/file-has-acl.c: Likewise.
7905 * lib/file-set.c: Likewise.
7906 * lib/file-type.c: Likewise.
7907 * lib/file-type.h: Likewise.
7908 * lib/fileblocks.c: Likewise.
7909 * lib/filemode.c: Likewise.
7910 * lib/filemode.h: Likewise.
7911 * lib/filename.h: Likewise.
7912 * lib/filenamecat.c: Likewise.
7913 * lib/filenamecat.h: Likewise.
7914 * lib/findprog.c: Likewise.
7915 * lib/findprog.h: Likewise.
7916 * lib/float.in.h: Likewise.
7917 * lib/floor.c: Likewise.
7918 * lib/floorf.c: Likewise.
7919 * lib/floorl.c: Likewise.
7920 * lib/fopen-safer.c: Likewise.
7921 * lib/fopen.c: Likewise.
7922 * lib/fpending.c: Likewise.
7923 * lib/fpending.h: Likewise.
7924 * lib/fprintf.c: Likewise.
7925 * lib/fprintftime.h: Likewise.
7926 * lib/fpucw.h: Likewise.
7927 * lib/fpurge.c: Likewise.
7928 * lib/fpurge.h: Likewise.
7929 * lib/freadable.c: Likewise.
7930 * lib/freadable.h: Likewise.
7931 * lib/freadahead.c: Likewise.
7932 * lib/freadahead.h: Likewise.
7933 * lib/freading.c: Likewise.
7934 * lib/freading.h: Likewise.
7935 * lib/free.c: Likewise.
7936 * lib/freopen.c: Likewise.
7937 * lib/frexp.c: Likewise.
7938 * lib/frexpl.c: Likewise.
7939 * lib/fseek.c: Likewise.
7940 * lib/fseterr.c: Likewise.
7941 * lib/fseterr.h: Likewise.
7942 * lib/fstatat.c: Likewise.
7943 * lib/fstrcmp.c: Likewise.
7944 * lib/fstrcmp.h: Likewise.
7945 * lib/fsusage.c: Likewise.
7946 * lib/fsusage.h: Likewise.
7947 * lib/ftell.c: Likewise.
7948 * lib/ftello.c: Likewise.
7949 * lib/fts-cycle.c: Likewise.
7950 * lib/fts.c: Likewise.
7951 * lib/fts_.h: Likewise.
7952 * lib/full-read.c: Likewise.
7953 * lib/full-read.h: Likewise.
7954 * lib/full-write.c: Likewise.
7955 * lib/full-write.h: Likewise.
7956 * lib/fwritable.c: Likewise.
7957 * lib/fwritable.h: Likewise.
7958 * lib/fwriteerror.c: Likewise.
7959 * lib/fwriteerror.h: Likewise.
7960 * lib/fwriting.c: Likewise.
7961 * lib/fwriting.h: Likewise.
7962 * lib/gcd.c: Likewise.
7963 * lib/gcd.h: Likewise.
7964 * lib/getcwd.c: Likewise.
7965 * lib/getdate.h: Likewise.
7966 * lib/getdate.y: Likewise.
7967 * lib/getdomainname.c: Likewise.
7968 * lib/getdomainname.h: Likewise.
7969 * lib/getgroups.c: Likewise.
7970 * lib/gethostname.c: Likewise.
7971 * lib/gethrxtime.c: Likewise.
7972 * lib/gethrxtime.h: Likewise.
7973 * lib/getloadavg.c: Likewise.
7974 * lib/getndelim2.c: Likewise.
7975 * lib/getndelim2.h: Likewise.
7976 * lib/getnline.c: Likewise.
7977 * lib/getnline.h: Likewise.
7978 * lib/getopt.c: Likewise.
7979 * lib/getopt.in.h: Likewise.
7980 * lib/getopt1.c: Likewise.
7981 * lib/getopt_int.h: Likewise.
7982 * lib/getpagesize.h: Likewise.
7983 * lib/getsubopt.c: Likewise.
7984 * lib/gettime.c: Likewise.
7985 * lib/getugroups.c: Likewise.
7986 * lib/getugroups.h: Likewise.
7987 * lib/getusershell.c: Likewise.
7988 * lib/gl_anyavltree_list1.h: Likewise.
7989 * lib/gl_anyavltree_list2.h: Likewise.
7990 * lib/gl_anyhash_list1.h: Likewise.
7991 * lib/gl_anyhash_list2.h: Likewise.
7992 * lib/gl_anylinked_list1.h: Likewise.
7993 * lib/gl_anylinked_list2.h: Likewise.
7994 * lib/gl_anyrbtree_list1.h: Likewise.
7995 * lib/gl_anyrbtree_list2.h: Likewise.
7996 * lib/gl_anytree_list1.h: Likewise.
7997 * lib/gl_anytree_list2.h: Likewise.
7998 * lib/gl_anytree_oset.h: Likewise.
7999 * lib/gl_anytreehash_list1.h: Likewise.
8000 * lib/gl_anytreehash_list2.h: Likewise.
8001 * lib/gl_array_list.c: Likewise.
8002 * lib/gl_array_list.h: Likewise.
8003 * lib/gl_array_oset.c: Likewise.
8004 * lib/gl_array_oset.h: Likewise.
8005 * lib/gl_avltree_list.c: Likewise.
8006 * lib/gl_avltree_list.h: Likewise.
8007 * lib/gl_avltree_oset.c: Likewise.
8008 * lib/gl_avltree_oset.h: Likewise.
8009 * lib/gl_avltreehash_list.c: Likewise.
8010 * lib/gl_avltreehash_list.h: Likewise.
8011 * lib/gl_carray_list.c: Likewise.
8012 * lib/gl_carray_list.h: Likewise.
8013 * lib/gl_linked_list.c: Likewise.
8014 * lib/gl_linked_list.h: Likewise.
8015 * lib/gl_linkedhash_list.c: Likewise.
8016 * lib/gl_linkedhash_list.h: Likewise.
8017 * lib/gl_list.c: Likewise.
8018 * lib/gl_list.h: Likewise.
8019 * lib/gl_oset.c: Likewise.
8020 * lib/gl_oset.h: Likewise.
8021 * lib/gl_rbtree_list.c: Likewise.
8022 * lib/gl_rbtree_list.h: Likewise.
8023 * lib/gl_rbtree_oset.c: Likewise.
8024 * lib/gl_rbtree_oset.h: Likewise.
8025 * lib/gl_rbtreehash_list.c: Likewise.
8026 * lib/gl_rbtreehash_list.h: Likewise.
8027 * lib/gl_sublist.c: Likewise.
8028 * lib/gl_sublist.h: Likewise.
8029 * lib/group-member.c: Likewise.
8030 * lib/group-member.h: Likewise.
8031 * lib/hard-locale.c: Likewise.
8032 * lib/hard-locale.h: Likewise.
8033 * lib/hash-pjw.c: Likewise.
8034 * lib/hash-pjw.h: Likewise.
8035 * lib/hash-triple.c: Likewise.
8036 * lib/hash.c: Likewise.
8037 * lib/hash.h: Likewise.
8038 * lib/human.c: Likewise.
8039 * lib/human.h: Likewise.
8040 * lib/i-ring.c: Likewise.
8041 * lib/i-ring.h: Likewise.
8042 * lib/idcache.c: Likewise.
8043 * lib/imaxabs.c: Likewise.
8044 * lib/imaxdiv.c: Likewise.
8045 * lib/inet_pton.c: Likewise.
8046 * lib/inet_pton.h: Likewise.
8047 * lib/intprops.h: Likewise.
8048 * lib/inttostr.c: Likewise.
8049 * lib/inttostr.h: Likewise.
8050 * lib/inttypes.in.h: Likewise.
8051 * lib/isapipe.c: Likewise.
8052 * lib/isdir.c: Likewise.
8053 * lib/isnan.c: Likewise.
8054 * lib/isnan.h: Likewise.
8055 * lib/isnanf.c: Likewise.
8056 * lib/isnanf.h: Likewise.
8057 * lib/isnanl-nolibm.h: Likewise.
8058 * lib/isnanl.c: Likewise.
8059 * lib/isnanl.h: Likewise.
8060 * lib/javacomp.c: Likewise.
8061 * lib/javacomp.h: Likewise.
8062 * lib/javaexec.c: Likewise.
8063 * lib/javaexec.h: Likewise.
8064 * lib/javaversion.c: Likewise.
8065 * lib/javaversion.h: Likewise.
8066 * lib/javaversion.java: Likewise.
8067 * lib/lbrkprop.h: Likewise.
8068 * lib/lchmod.h: Likewise.
8069 * lib/lchown.c: Likewise.
8070 * lib/ldexpl.c: Likewise.
8071 * lib/linebreak.c: Likewise.
8072 * lib/linebreak.h: Likewise.
8073 * lib/linebuffer.c: Likewise.
8074 * lib/linebuffer.h: Likewise.
8075 * lib/locale.in.h: Likewise.
8076 * lib/logl.c: Likewise.
8077 * lib/long-options.c: Likewise.
8078 * lib/long-options.h: Likewise.
8079 * lib/lstat.c: Likewise.
8080 * lib/lstat.h: Likewise.
8081 * lib/math.in.h: Likewise.
8082 * lib/mbchar.c: Likewise.
8083 * lib/mbchar.h: Likewise.
8084 * lib/mbfile.h: Likewise.
8085 * lib/mbiter.h: Likewise.
8086 * lib/mbscasecmp.c: Likewise.
8087 * lib/mbscasestr.c: Likewise.
8088 * lib/mbschr.c: Likewise.
8089 * lib/mbscspn.c: Likewise.
8090 * lib/mbslen.c: Likewise.
8091 * lib/mbsncasecmp.c: Likewise.
8092 * lib/mbsnlen.c: Likewise.
8093 * lib/mbspbrk.c: Likewise.
8094 * lib/mbspcasecmp.c: Likewise.
8095 * lib/mbsrchr.c: Likewise.
8096 * lib/mbssep.c: Likewise.
8097 * lib/mbsspn.c: Likewise.
8098 * lib/mbsstr.c: Likewise.
8099 * lib/mbstok_r.c: Likewise.
8100 * lib/mbswidth.c: Likewise.
8101 * lib/mbswidth.h: Likewise.
8102 * lib/mbuiter.h: Likewise.
8103 * lib/memcasecmp.c: Likewise.
8104 * lib/memcasecmp.h: Likewise.
8105 * lib/memchr.c: Likewise.
8106 * lib/memcmp.c: Likewise.
8107 * lib/memcoll.c: Likewise.
8108 * lib/memcoll.h: Likewise.
8109 * lib/memcpy.c: Likewise.
8110 * lib/memrchr.c: Likewise.
8111 * lib/mkancesdirs.c: Likewise.
8112 * lib/mkdir-p.c: Likewise.
8113 * lib/mkdir-p.h: Likewise.
8114 * lib/mkdir.c: Likewise.
8115 * lib/mkdirat.c: Likewise.
8116 * lib/mkdtemp.c: Likewise.
8117 * lib/mkstemp-safer.c: Likewise.
8118 * lib/mkstemp.c: Likewise.
8119 * lib/modechange.c: Likewise.
8120 * lib/modechange.h: Likewise.
8121 * lib/mountlist.c: Likewise.
8122 * lib/mountlist.h: Likewise.
8123 * lib/mpsort.c: Likewise.
8124 * lib/nanosleep.c: Likewise.
8125 * lib/obstack.c: Likewise.
8126 * lib/obstack.h: Likewise.
8127 * lib/open-safer.c: Likewise.
8128 * lib/open.c: Likewise.
8129 * lib/openat-die.c: Likewise.
8130 * lib/openat-priv.h: Likewise.
8131 * lib/openat-proc.c: Likewise.
8132 * lib/openat.c: Likewise.
8133 * lib/openat.h: Likewise.
8134 * lib/pagealign_alloc.c: Likewise.
8135 * lib/pagealign_alloc.h: Likewise.
8136 * lib/physmem.c: Likewise.
8137 * lib/physmem.h: Likewise.
8138 * lib/pipe-safer.c: Likewise.
8139 * lib/pipe.c: Likewise.
8140 * lib/pipe.h: Likewise.
8141 * lib/posixtm.c: Likewise.
8142 * lib/posixtm.h: Likewise.
8143 * lib/posixver.c: Likewise.
8144 * lib/printf-frexp.c: Likewise.
8145 * lib/printf-frexp.h: Likewise.
8146 * lib/printf-frexpl.c: Likewise.
8147 * lib/printf-frexpl.h: Likewise.
8148 * lib/printf.c: Likewise.
8149 * lib/progname.c: Likewise.
8150 * lib/progname.h: Likewise.
8151 * lib/progreloc.c: Likewise.
8152 * lib/putenv.c: Likewise.
8153 * lib/quote.c: Likewise.
8154 * lib/quote.h: Likewise.
8155 * lib/quotearg.c: Likewise.
8156 * lib/quotearg.h: Likewise.
8157 * lib/raise.c: Likewise.
8158 * lib/readline.c: Likewise.
8159 * lib/readline.h: Likewise.
8160 * lib/readlink.c: Likewise.
8161 * lib/readtokens.c: Likewise.
8162 * lib/readtokens.h: Likewise.
8163 * lib/readtokens0.c: Likewise.
8164 * lib/readtokens0.h: Likewise.
8165 * lib/readutmp.c: Likewise.
8166 * lib/readutmp.h: Likewise.
8167 * lib/realloc.c: Likewise.
8168 * lib/relocwrapper.c: Likewise.
8169 * lib/rename-dest-slash.c: Likewise.
8170 * lib/rename.c: Likewise.
8171 * lib/rmdir.c: Likewise.
8172 * lib/rpmatch.c: Likewise.
8173 * lib/safe-read.c: Likewise.
8174 * lib/safe-read.h: Likewise.
8175 * lib/safe-write.c: Likewise.
8176 * lib/safe-write.h: Likewise.
8177 * lib/same-inode.h: Likewise.
8178 * lib/same.c: Likewise.
8179 * lib/same.h: Likewise.
8180 * lib/save-cwd.c: Likewise.
8181 * lib/save-cwd.h: Likewise.
8182 * lib/savedir.c: Likewise.
8183 * lib/savedir.h: Likewise.
8184 * lib/savewd.c: Likewise.
8185 * lib/savewd.h: Likewise.
8186 * lib/search.in.h: Likewise.
8187 * lib/setenv.c: Likewise.
8188 * lib/setenv.h: Likewise.
8189 * lib/settime.c: Likewise.
8190 * lib/sh-quote.c: Likewise.
8191 * lib/sh-quote.h: Likewise.
8192 * lib/sig2str.c: Likewise.
8193 * lib/sig2str.h: Likewise.
8194 * lib/signal.in.h: Likewise.
8195 * lib/signbitd.c: Likewise.
8196 * lib/signbitf.c: Likewise.
8197 * lib/signbitl.c: Likewise.
8198 * lib/sigprocmask.c: Likewise.
8199 * lib/sincosl.c: Likewise.
8200 * lib/sleep.c: Likewise.
8201 * lib/sprintf.c: Likewise.
8202 * lib/sqrtl.c: Likewise.
8203 * lib/stat-time.h: Likewise.
8204 * lib/stdio--.h: Likewise.
8205 * lib/stdio-safer.h: Likewise.
8206 * lib/stdlib--.h: Likewise.
8207 * lib/stdlib-safer.h: Likewise.
8208 * lib/stdlib.in.h: Likewise.
8209 * lib/stpcpy.c: Likewise.
8210 * lib/stpncpy.c: Likewise.
8211 * lib/strchrnul.c: Likewise.
8212 * lib/strcspn.c: Likewise.
8213 * lib/strerror.c: Likewise.
8214 * lib/strftime.c: Likewise.
8215 * lib/strftime.h: Likewise.
8216 * lib/striconveh.c: Likewise.
8217 * lib/striconveh.h: Likewise.
8218 * lib/striconveha.c: Likewise.
8219 * lib/striconveha.h: Likewise.
8220 * lib/stripslash.c: Likewise.
8221 * lib/strnlen1.c: Likewise.
8222 * lib/strnlen1.h: Likewise.
8223 * lib/strtod.c: Likewise.
8224 * lib/strtoimax.c: Likewise.
8225 * lib/strtok_r.c: Likewise.
8226 * lib/strtol.c: Likewise.
8227 * lib/strtoll.c: Likewise.
8228 * lib/strtoul.c: Likewise.
8229 * lib/strtoull.c: Likewise.
8230 * lib/sysexits.in.h: Likewise.
8231 * lib/tempname.c: Likewise.
8232 * lib/tempname.h: Likewise.
8233 * lib/timespec.h: Likewise.
8234 * lib/tls.c: Likewise.
8235 * lib/tls.h: Likewise.
8236 * lib/tmpdir.c: Likewise.
8237 * lib/tmpdir.h: Likewise.
8238 * lib/tmpfile-safer.c: Likewise.
8239 * lib/tmpfile.c: Likewise.
8240 * lib/trigl.c: Likewise.
8241 * lib/trigl.h: Likewise.
8242 * lib/trim.c: Likewise.
8243 * lib/trim.h: Likewise.
8244 * lib/trunc.c: Likewise.
8245 * lib/truncf.c: Likewise.
8246 * lib/truncl.c: Likewise.
8247 * lib/tsearch.c: Likewise.
8248 * lib/unicodeio.c: Likewise.
8249 * lib/unicodeio.h: Likewise.
8250 * lib/unistd--.h: Likewise.
8251 * lib/unistd-safer.h: Likewise.
8252 * lib/unistdio/ulc-fprintf.c: Likewise.
8253 * lib/unistdio/ulc-vfprintf.c: Likewise.
8254 * lib/unlinkdir.c: Likewise.
8255 * lib/unlinkdir.h: Likewise.
8256 * lib/unlocked-io.h: Likewise.
8257 * lib/unsetenv.c: Likewise.
8258 * lib/userspec.c: Likewise.
8259 * lib/utime.c: Likewise.
8260 * lib/utimecmp.c: Likewise.
8261 * lib/utimecmp.h: Likewise.
8262 * lib/utimens.c: Likewise.
8263 * lib/verify.h: Likewise.
8264 * lib/verror.c: Likewise.
8265 * lib/verror.h: Likewise.
8266 * lib/version-etc-fsf.c: Likewise.
8267 * lib/version-etc.c: Likewise.
8268 * lib/version-etc.h: Likewise.
8269 * lib/vfprintf.c: Likewise.
8270 * lib/vprintf.c: Likewise.
8271 * lib/vsprintf.c: Likewise.
8272 * lib/w32spawn.h: Likewise.
8273 * lib/wait-process.c: Likewise.
8274 * lib/wait-process.h: Likewise.
8275 * lib/wcwidth.c: Likewise.
8276 * lib/write-any-file.c: Likewise.
8277 * lib/xalloc-die.c: Likewise.
8278 * lib/xalloc.h: Likewise.
8279 * lib/xasprintf.c: Likewise.
8280 * lib/xgetcwd.c: Likewise.
8281 * lib/xgetcwd.h: Likewise.
8282 * lib/xgetdomainname.c: Likewise.
8283 * lib/xgetdomainname.h: Likewise.
8284 * lib/xgethostname.c: Likewise.
8285 * lib/xmalloc.c: Likewise.
8286 * lib/xmalloca.c: Likewise.
8287 * lib/xmalloca.h: Likewise.
8288 * lib/xmemcoll.c: Likewise.
8289 * lib/xnanosleep.c: Likewise.
8290 * lib/xreadlink.c: Likewise.
8291 * lib/xreadlink.h: Likewise.
8292 * lib/xsetenv.c: Likewise.
8293 * lib/xsetenv.h: Likewise.
8294 * lib/xstriconv.c: Likewise.
8295 * lib/xstriconv.h: Likewise.
8296 * lib/xstrndup.c: Likewise.
8297 * lib/xstrndup.h: Likewise.
8298 * lib/xstrtod.c: Likewise.
8299 * lib/xstrtod.h: Likewise.
8300 * lib/xstrtol-error.c: Likewise.
8301 * lib/xstrtol.c: Likewise.
8302 * lib/xstrtol.h: Likewise.
8303 * lib/xtime.h: Likewise.
8304 * lib/xvasprintf.c: Likewise.
8305 * lib/xvasprintf.h: Likewise.
8306 * lib/yesno.c: Likewise.
8307 * lib/yesno.h: Likewise.
8308 * posix-modules: Likewise.
8309 * tests/test-alloca-opt.c: Likewise.
8310 * tests/test-arcfour.c: Likewise.
8311 * tests/test-arctwo.c: Likewise.
8312 * tests/test-argmatch.c: Likewise.
8313 * tests/test-argp-2.sh: Likewise.
8314 * tests/test-argp.c: Likewise.
8315 * tests/test-arpa_inet.c: Likewise.
8316 * tests/test-array_list.c: Likewise.
8317 * tests/test-array_oset.c: Likewise.
8318 * tests/test-atexit.c: Likewise.
8319 * tests/test-avltree_list.c: Likewise.
8320 * tests/test-avltree_oset.c: Likewise.
8321 * tests/test-avltreehash_list.c: Likewise.
8322 * tests/test-base64.c: Likewise.
8323 * tests/test-binary-io.c: Likewise.
8324 * tests/test-byteswap.c: Likewise.
8325 * tests/test-c-ctype.c: Likewise.
8326 * tests/test-c-strcasecmp.c: Likewise.
8327 * tests/test-c-strcasestr.c: Likewise.
8328 * tests/test-c-strncasecmp.c: Likewise.
8329 * tests/test-c-strstr.c: Likewise.
8330 * tests/test-canonicalize-lgpl.c: Likewise.
8331 * tests/test-canonicalize.c: Likewise.
8332 * tests/test-carray_list.c: Likewise.
8333 * tests/test-ceilf.c: Likewise.
8334 * tests/test-ceill.c: Likewise.
8335 * tests/test-count-one-bits.c: Likewise.
8336 * tests/test-crc.c: Likewise.
8337 * tests/test-dirname.c: Likewise.
8338 * tests/test-fbufmode.c: Likewise.
8339 * tests/test-fcntl.c: Likewise.
8340 * tests/test-fflush.c: Likewise.
8341 * tests/test-floorf.c: Likewise.
8342 * tests/test-floorl.c: Likewise.
8343 * tests/test-fopen.c: Likewise.
8344 * tests/test-fprintf-posix.c: Likewise.
8345 * tests/test-fprintf-posix.h: Likewise.
8346 * tests/test-fpurge.c: Likewise.
8347 * tests/test-freadable.c: Likewise.
8348 * tests/test-freadahead.c: Likewise.
8349 * tests/test-freading.c: Likewise.
8350 * tests/test-freopen.c: Likewise.
8351 * tests/test-frexp.c: Likewise.
8352 * tests/test-frexpl.c: Likewise.
8353 * tests/test-fseek.c: Likewise.
8354 * tests/test-fseeko.c: Likewise.
8355 * tests/test-fseterr.c: Likewise.
8356 * tests/test-fstrcmp.c: Likewise.
8357 * tests/test-ftell.c: Likewise.
8358 * tests/test-ftello.c: Likewise.
8359 * tests/test-fwritable.c: Likewise.
8360 * tests/test-fwriting.c: Likewise.
8361 * tests/test-getaddrinfo.c: Likewise.
8362 * tests/test-getpass.c: Likewise.
8363 * tests/test-gettimeofday.c: Likewise.
8364 * tests/test-hmac-md5.c: Likewise.
8365 * tests/test-hmac-sha1.c: Likewise.
8366 * tests/test-iconv.c: Likewise.
8367 * tests/test-iconvme.c: Likewise.
8368 * tests/test-inttypes.c: Likewise.
8369 * tests/test-isnan.c: Likewise.
8370 * tests/test-isnanf.c: Likewise.
8371 * tests/test-isnanl-nolibm.c: Likewise.
8372 * tests/test-isnanl.c: Likewise.
8373 * tests/test-isnanl.h: Likewise.
8374 * tests/test-ldexpl.c: Likewise.
8375 * tests/test-linked_list.c: Likewise.
8376 * tests/test-linkedhash_list.c: Likewise.
8377 * tests/test-locale.c: Likewise.
8378 * tests/test-localename.c: Likewise.
8379 * tests/test-lock.c: Likewise.
8380 * tests/test-lseek.c: Likewise.
8381 * tests/test-malloca.c: Likewise.
8382 * tests/test-math.c: Likewise.
8383 * tests/test-mbscasecmp.c: Likewise.
8384 * tests/test-mbscasestr1.c: Likewise.
8385 * tests/test-mbscasestr2.c: Likewise.
8386 * tests/test-mbscasestr3.c: Likewise.
8387 * tests/test-mbscasestr4.c: Likewise.
8388 * tests/test-mbschr.c: Likewise.
8389 * tests/test-mbscspn.c: Likewise.
8390 * tests/test-mbsncasecmp.c: Likewise.
8391 * tests/test-mbspbrk.c: Likewise.
8392 * tests/test-mbspcasecmp.c: Likewise.
8393 * tests/test-mbsrchr.c: Likewise.
8394 * tests/test-mbsspn.c: Likewise.
8395 * tests/test-mbsstr1.c: Likewise.
8396 * tests/test-mbsstr2.c: Likewise.
8397 * tests/test-mbsstr3.c: Likewise.
8398 * tests/test-md5.c: Likewise.
8399 * tests/test-memmem.c: Likewise.
8400 * tests/test-netinet_in.c: Likewise.
8401 * tests/test-open.c: Likewise.
8402 * tests/test-printf-frexp.c: Likewise.
8403 * tests/test-printf-frexpl.c: Likewise.
8404 * tests/test-printf-posix.c: Likewise.
8405 * tests/test-printf-posix.h: Likewise.
8406 * tests/test-rbtree_list.c: Likewise.
8407 * tests/test-rbtree_oset.c: Likewise.
8408 * tests/test-rbtreehash_list.c: Likewise.
8409 * tests/test-read-file.c: Likewise.
8410 * tests/test-rijndael.c: Likewise.
8411 * tests/test-search.c: Likewise.
8412 * tests/test-signbit.c: Likewise.
8413 * tests/test-sleep.c: Likewise.
8414 * tests/test-snprintf-posix.c: Likewise.
8415 * tests/test-snprintf-posix.h: Likewise.
8416 * tests/test-snprintf.c: Likewise.
8417 * tests/test-sprintf-posix.c: Likewise.
8418 * tests/test-sprintf-posix.h: Likewise.
8419 * tests/test-stat-time.c: Likewise.
8420 * tests/test-stdbool.c: Likewise.
8421 * tests/test-stdint.c: Likewise.
8422 * tests/test-stdio.c: Likewise.
8423 * tests/test-stdlib.c: Likewise.
8424 * tests/test-stpncpy.c: Likewise.
8425 * tests/test-strcasestr.c: Likewise.
8426 * tests/test-striconv.c: Likewise.
8427 * tests/test-striconveh.c: Likewise.
8428 * tests/test-striconveha.c: Likewise.
8429 * tests/test-string.c: Likewise.
8430 * tests/test-sys_select.c: Likewise.
8431 * tests/test-sys_socket.c: Likewise.
8432 * tests/test-sys_stat.c: Likewise.
8433 * tests/test-sys_time.c: Likewise.
8434 * tests/test-sysexits.c: Likewise.
8435 * tests/test-time.c: Likewise.
8436 * tests/test-tls.c: Likewise.
8437 * tests/test-trunc.c: Likewise.
8438 * tests/test-truncf.c: Likewise.
8439 * tests/test-truncl.c: Likewise.
8440 * tests/test-unistd.c: Likewise.
8441 * tests/test-vasnprintf-posix.c: Likewise.
8442 * tests/test-vasnprintf-posix2.c: Likewise.
8443 * tests/test-vasnprintf.c: Likewise.
8444 * tests/test-vasprintf-posix.c: Likewise.
8445 * tests/test-vasprintf.c: Likewise.
8446 * tests/test-verify.c: Likewise.
8447 * tests/test-vfprintf-posix.c: Likewise.
8448 * tests/test-vprintf-posix.c: Likewise.
8449 * tests/test-vsnprintf-posix.c: Likewise.
8450 * tests/test-vsnprintf.c: Likewise.
8451 * tests/test-vsprintf-posix.c: Likewise.
8452 * tests/test-wchar.c: Likewise.
8453 * tests/test-wctype.c: Likewise.
8454 * tests/test-wcwidth.c: Likewise.
8455 * tests/test-xstrtol.c: Likewise.
8456 * tests/test-xvasprintf.c: Likewise.
8457 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8458 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8459 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8460 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8461 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8462 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8463 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8464 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8465 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8466 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8467 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8468 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8469 * tests/uniname/test-uninames.c: Likewise.
8470 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8471 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
8472 * tests/unistdio/test-u16-printf1.h: Likewise.
8473 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8474 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8475 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8476 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8477 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8478 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8479 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8480 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
8481 * tests/unistdio/test-u32-printf1.h: Likewise.
8482 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8483 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8484 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8485 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8486 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8487 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8488 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8489 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
8490 * tests/unistdio/test-u8-printf1.h: Likewise.
8491 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8492 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8493 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8494 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8495 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8496 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8497 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8498 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
8499 * tests/unistdio/test-ulc-printf1.h: Likewise.
8500 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8501 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8502 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8503 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8504 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8505 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8506 * tests/uniwidth/test-u16-strwidth.c: Likewise.
8507 * tests/uniwidth/test-u16-width.c: Likewise.
8508 * tests/uniwidth/test-u32-strwidth.c: Likewise.
8509 * tests/uniwidth/test-u32-width.c: Likewise.
8510 * tests/uniwidth/test-u8-strwidth.c: Likewise.
8511 * tests/uniwidth/test-u8-width.c: Likewise.
8512 * tests/uniwidth/test-uc_width.c: Likewise.
8513 * config/srclist-update: Likewise.
8514 (fixlicense): Update to GPLv3+.
8516 Change copyright notice from LGPLv2.1+ to LGPLv3+.
8517 * tests/test-tsearch.c: Change copyright notice.
8519 Change copyright notice from LGPLv2.0+ to LGPLv3+.
8520 * lib/c-strcaseeq.h: Change copyright notice.
8521 * lib/streq.h: Likewise.
8522 * lib/uniconv.h: Likewise.
8523 * lib/uniconv/u-conv-from-enc.h: Likewise.
8524 * lib/uniconv/u-conv-to-enc.h: Likewise.
8525 * lib/uniconv/u-strconv-from-enc.h: Likewise.
8526 * lib/uniconv/u-strconv-to-enc.h: Likewise.
8527 * lib/uniconv/u16-conv-from-enc.c: Likewise.
8528 * lib/uniconv/u16-conv-to-enc.c: Likewise.
8529 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
8530 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
8531 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
8532 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
8533 * lib/uniconv/u32-conv-from-enc.c: Likewise.
8534 * lib/uniconv/u32-conv-to-enc.c: Likewise.
8535 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
8536 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
8537 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
8538 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
8539 * lib/uniconv/u8-conv-from-enc.c: Likewise.
8540 * lib/uniconv/u8-conv-to-enc.c: Likewise.
8541 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
8542 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
8543 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
8544 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
8545 * lib/uniname.h: Likewise.
8546 * lib/uniname/uniname.c: Likewise.
8547 * lib/unistdio.h: Likewise.
8548 * lib/unistdio/u-asnprintf.h: Likewise.
8549 * lib/unistdio/u-asprintf.h: Likewise.
8550 * lib/unistdio/u-printf-args.c: Likewise.
8551 * lib/unistdio/u-printf-args.h: Likewise.
8552 * lib/unistdio/u-printf-parse.h: Likewise.
8553 * lib/unistdio/u-snprintf.h: Likewise.
8554 * lib/unistdio/u-sprintf.h: Likewise.
8555 * lib/unistdio/u-vasprintf.h: Likewise.
8556 * lib/unistdio/u-vsnprintf.h: Likewise.
8557 * lib/unistdio/u-vsprintf.h: Likewise.
8558 * lib/unistdio/u16-asnprintf.c: Likewise.
8559 * lib/unistdio/u16-asprintf.c: Likewise.
8560 * lib/unistdio/u16-printf-parse.c: Likewise.
8561 * lib/unistdio/u16-snprintf.c: Likewise.
8562 * lib/unistdio/u16-sprintf.c: Likewise.
8563 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
8564 * lib/unistdio/u16-u16-asprintf.c: Likewise.
8565 * lib/unistdio/u16-u16-snprintf.c: Likewise.
8566 * lib/unistdio/u16-u16-sprintf.c: Likewise.
8567 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
8568 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
8569 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
8570 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
8571 * lib/unistdio/u16-vasnprintf.c: Likewise.
8572 * lib/unistdio/u16-vasprintf.c: Likewise.
8573 * lib/unistdio/u16-vsnprintf.c: Likewise.
8574 * lib/unistdio/u16-vsprintf.c: Likewise.
8575 * lib/unistdio/u32-asnprintf.c: Likewise.
8576 * lib/unistdio/u32-asprintf.c: Likewise.
8577 * lib/unistdio/u32-printf-parse.c: Likewise.
8578 * lib/unistdio/u32-snprintf.c: Likewise.
8579 * lib/unistdio/u32-sprintf.c: Likewise.
8580 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
8581 * lib/unistdio/u32-u32-asprintf.c: Likewise.
8582 * lib/unistdio/u32-u32-snprintf.c: Likewise.
8583 * lib/unistdio/u32-u32-sprintf.c: Likewise.
8584 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
8585 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
8586 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
8587 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
8588 * lib/unistdio/u32-vasnprintf.c: Likewise.
8589 * lib/unistdio/u32-vasprintf.c: Likewise.
8590 * lib/unistdio/u32-vsnprintf.c: Likewise.
8591 * lib/unistdio/u32-vsprintf.c: Likewise.
8592 * lib/unistdio/u8-asnprintf.c: Likewise.
8593 * lib/unistdio/u8-asprintf.c: Likewise.
8594 * lib/unistdio/u8-printf-parse.c: Likewise.
8595 * lib/unistdio/u8-snprintf.c: Likewise.
8596 * lib/unistdio/u8-sprintf.c: Likewise.
8597 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
8598 * lib/unistdio/u8-u8-asprintf.c: Likewise.
8599 * lib/unistdio/u8-u8-snprintf.c: Likewise.
8600 * lib/unistdio/u8-u8-sprintf.c: Likewise.
8601 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
8602 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
8603 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
8604 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
8605 * lib/unistdio/u8-vasnprintf.c: Likewise.
8606 * lib/unistdio/u8-vasprintf.c: Likewise.
8607 * lib/unistdio/u8-vsnprintf.c: Likewise.
8608 * lib/unistdio/u8-vsprintf.c: Likewise.
8609 * lib/unistdio/ulc-asnprintf.c: Likewise.
8610 * lib/unistdio/ulc-asprintf.c: Likewise.
8611 * lib/unistdio/ulc-printf-parse.c: Likewise.
8612 * lib/unistdio/ulc-snprintf.c: Likewise.
8613 * lib/unistdio/ulc-sprintf.c: Likewise.
8614 * lib/unistdio/ulc-vasnprintf.c: Likewise.
8615 * lib/unistdio/ulc-vasprintf.c: Likewise.
8616 * lib/unistdio/ulc-vsnprintf.c: Likewise.
8617 * lib/unistdio/ulc-vsprintf.c: Likewise.
8618 * lib/unistr.h: Likewise.
8619 * lib/unistr/u-cpy-alloc.h: Likewise.
8620 * lib/unistr/u-cpy.h: Likewise.
8621 * lib/unistr/u-endswith.h: Likewise.
8622 * lib/unistr/u-move.h: Likewise.
8623 * lib/unistr/u-set.h: Likewise.
8624 * lib/unistr/u-startswith.h: Likewise.
8625 * lib/unistr/u-stpcpy.h: Likewise.
8626 * lib/unistr/u-stpncpy.h: Likewise.
8627 * lib/unistr/u-strcat.h: Likewise.
8628 * lib/unistr/u-strcpy.h: Likewise.
8629 * lib/unistr/u-strcspn.h: Likewise.
8630 * lib/unistr/u-strdup.h: Likewise.
8631 * lib/unistr/u-strlen.h: Likewise.
8632 * lib/unistr/u-strncat.h: Likewise.
8633 * lib/unistr/u-strncpy.h: Likewise.
8634 * lib/unistr/u-strnlen.h: Likewise.
8635 * lib/unistr/u-strpbrk.h: Likewise.
8636 * lib/unistr/u-strspn.h: Likewise.
8637 * lib/unistr/u-strstr.h: Likewise.
8638 * lib/unistr/u-strtok.h: Likewise.
8639 * lib/unistr/u16-check.c: Likewise.
8640 * lib/unistr/u16-chr.c: Likewise.
8641 * lib/unistr/u16-cmp.c: Likewise.
8642 * lib/unistr/u16-cpy-alloc.c: Likewise.
8643 * lib/unistr/u16-cpy.c: Likewise.
8644 * lib/unistr/u16-endswith.c: Likewise.
8645 * lib/unistr/u16-mblen.c: Likewise.
8646 * lib/unistr/u16-mbsnlen.c: Likewise.
8647 * lib/unistr/u16-mbtouc-aux.c: Likewise.
8648 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
8649 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
8650 * lib/unistr/u16-mbtouc.c: Likewise.
8651 * lib/unistr/u16-mbtoucr.c: Likewise.
8652 * lib/unistr/u16-move.c: Likewise.
8653 * lib/unistr/u16-next.c: Likewise.
8654 * lib/unistr/u16-prev.c: Likewise.
8655 * lib/unistr/u16-set.c: Likewise.
8656 * lib/unistr/u16-startswith.c: Likewise.
8657 * lib/unistr/u16-stpcpy.c: Likewise.
8658 * lib/unistr/u16-stpncpy.c: Likewise.
8659 * lib/unistr/u16-strcat.c: Likewise.
8660 * lib/unistr/u16-strchr.c: Likewise.
8661 * lib/unistr/u16-strcmp.c: Likewise.
8662 * lib/unistr/u16-strcpy.c: Likewise.
8663 * lib/unistr/u16-strcspn.c: Likewise.
8664 * lib/unistr/u16-strdup.c: Likewise.
8665 * lib/unistr/u16-strlen.c: Likewise.
8666 * lib/unistr/u16-strmblen.c: Likewise.
8667 * lib/unistr/u16-strmbtouc.c: Likewise.
8668 * lib/unistr/u16-strncat.c: Likewise.
8669 * lib/unistr/u16-strncmp.c: Likewise.
8670 * lib/unistr/u16-strncpy.c: Likewise.
8671 * lib/unistr/u16-strnlen.c: Likewise.
8672 * lib/unistr/u16-strpbrk.c: Likewise.
8673 * lib/unistr/u16-strrchr.c: Likewise.
8674 * lib/unistr/u16-strspn.c: Likewise.
8675 * lib/unistr/u16-strstr.c: Likewise.
8676 * lib/unistr/u16-strtok.c: Likewise.
8677 * lib/unistr/u16-to-u32.c: Likewise.
8678 * lib/unistr/u16-to-u8.c: Likewise.
8679 * lib/unistr/u16-uctomb-aux.c: Likewise.
8680 * lib/unistr/u16-uctomb.c: Likewise.
8681 * lib/unistr/u32-check.c: Likewise.
8682 * lib/unistr/u32-chr.c: Likewise.
8683 * lib/unistr/u32-cmp.c: Likewise.
8684 * lib/unistr/u32-cpy-alloc.c: Likewise.
8685 * lib/unistr/u32-cpy.c: Likewise.
8686 * lib/unistr/u32-endswith.c: Likewise.
8687 * lib/unistr/u32-mblen.c: Likewise.
8688 * lib/unistr/u32-mbsnlen.c: Likewise.
8689 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
8690 * lib/unistr/u32-mbtouc.c: Likewise.
8691 * lib/unistr/u32-mbtoucr.c: Likewise.
8692 * lib/unistr/u32-move.c: Likewise.
8693 * lib/unistr/u32-next.c: Likewise.
8694 * lib/unistr/u32-prev.c: Likewise.
8695 * lib/unistr/u32-set.c: Likewise.
8696 * lib/unistr/u32-startswith.c: Likewise.
8697 * lib/unistr/u32-stpcpy.c: Likewise.
8698 * lib/unistr/u32-stpncpy.c: Likewise.
8699 * lib/unistr/u32-strcat.c: Likewise.
8700 * lib/unistr/u32-strchr.c: Likewise.
8701 * lib/unistr/u32-strcmp.c: Likewise.
8702 * lib/unistr/u32-strcpy.c: Likewise.
8703 * lib/unistr/u32-strcspn.c: Likewise.
8704 * lib/unistr/u32-strdup.c: Likewise.
8705 * lib/unistr/u32-strlen.c: Likewise.
8706 * lib/unistr/u32-strmblen.c: Likewise.
8707 * lib/unistr/u32-strmbtouc.c: Likewise.
8708 * lib/unistr/u32-strncat.c: Likewise.
8709 * lib/unistr/u32-strncmp.c: Likewise.
8710 * lib/unistr/u32-strncpy.c: Likewise.
8711 * lib/unistr/u32-strnlen.c: Likewise.
8712 * lib/unistr/u32-strpbrk.c: Likewise.
8713 * lib/unistr/u32-strrchr.c: Likewise.
8714 * lib/unistr/u32-strspn.c: Likewise.
8715 * lib/unistr/u32-strstr.c: Likewise.
8716 * lib/unistr/u32-strtok.c: Likewise.
8717 * lib/unistr/u32-to-u16.c: Likewise.
8718 * lib/unistr/u32-to-u8.c: Likewise.
8719 * lib/unistr/u32-uctomb.c: Likewise.
8720 * lib/unistr/u8-check.c: Likewise.
8721 * lib/unistr/u8-chr.c: Likewise.
8722 * lib/unistr/u8-cmp.c: Likewise.
8723 * lib/unistr/u8-cpy-alloc.c: Likewise.
8724 * lib/unistr/u8-cpy.c: Likewise.
8725 * lib/unistr/u8-endswith.c: Likewise.
8726 * lib/unistr/u8-mblen.c: Likewise.
8727 * lib/unistr/u8-mbsnlen.c: Likewise.
8728 * lib/unistr/u8-mbtouc-aux.c: Likewise.
8729 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
8730 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
8731 * lib/unistr/u8-mbtouc.c: Likewise.
8732 * lib/unistr/u8-mbtoucr.c: Likewise.
8733 * lib/unistr/u8-move.c: Likewise.
8734 * lib/unistr/u8-next.c: Likewise.
8735 * lib/unistr/u8-prev.c: Likewise.
8736 * lib/unistr/u8-set.c: Likewise.
8737 * lib/unistr/u8-startswith.c: Likewise.
8738 * lib/unistr/u8-stpcpy.c: Likewise.
8739 * lib/unistr/u8-stpncpy.c: Likewise.
8740 * lib/unistr/u8-strcat.c: Likewise.
8741 * lib/unistr/u8-strchr.c: Likewise.
8742 * lib/unistr/u8-strcmp.c: Likewise.
8743 * lib/unistr/u8-strcpy.c: Likewise.
8744 * lib/unistr/u8-strcspn.c: Likewise.
8745 * lib/unistr/u8-strdup.c: Likewise.
8746 * lib/unistr/u8-strlen.c: Likewise.
8747 * lib/unistr/u8-strmblen.c: Likewise.
8748 * lib/unistr/u8-strmbtouc.c: Likewise.
8749 * lib/unistr/u8-strncat.c: Likewise.
8750 * lib/unistr/u8-strncmp.c: Likewise.
8751 * lib/unistr/u8-strncpy.c: Likewise.
8752 * lib/unistr/u8-strnlen.c: Likewise.
8753 * lib/unistr/u8-strpbrk.c: Likewise.
8754 * lib/unistr/u8-strrchr.c: Likewise.
8755 * lib/unistr/u8-strspn.c: Likewise.
8756 * lib/unistr/u8-strstr.c: Likewise.
8757 * lib/unistr/u8-strtok.c: Likewise.
8758 * lib/unistr/u8-to-u16.c: Likewise.
8759 * lib/unistr/u8-to-u32.c: Likewise.
8760 * lib/unistr/u8-uctomb-aux.c: Likewise.
8761 * lib/unistr/u8-uctomb.c: Likewise.
8762 * lib/unitypes.h: Likewise.
8763 * lib/uniwidth.h: Likewise.
8764 * lib/uniwidth/cjk.h: Likewise.
8765 * lib/uniwidth/u16-strwidth.c: Likewise.
8766 * lib/uniwidth/u16-width.c: Likewise.
8767 * lib/uniwidth/u32-strwidth.c: Likewise.
8768 * lib/uniwidth/u32-width.c: Likewise.
8769 * lib/uniwidth/u8-strwidth.c: Likewise.
8770 * lib/uniwidth/u8-width.c: Likewise.
8771 * lib/uniwidth/width.c: Likewise.
8773 2007-10-07 Bruno Haible <bruno@clisp.org>
8775 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
8776 The file is still under LGPL (see modules/inttypes).
8778 2007-10-06 Bruno Haible <bruno@clisp.org>
8780 * modules/trunc (Dependencies): Add 'extensions'.
8781 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
8782 Reported by Ben Pfaff <blp@gnu.org>.
8784 2007-10-06 Bruno Haible <bruno@clisp.org>
8786 * modules/freopen-tests: New file.
8787 * tests/test-freopen.c: New file.
8789 * modules/fopen-tests: New file.
8790 * tests/test-fopen.c: New file.
8792 * modules/fopen: New file.
8793 * lib/fopen.c: New file.
8794 * m4/fopen.m4: New file.
8795 * modules/freopen: New file.
8796 * lib/freopen.c: New file.
8797 * m4/freopen.m4: New file.
8798 * lib/stdio.in.h (fopen, freopen): New declarations.
8799 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
8800 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
8801 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
8802 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
8803 * doc/functions/fopen.texi: Mention the 'fopen' module.
8804 * doc/functions/freopen.texi: Mention the 'freopen' module.
8806 2007-10-06 Bruno Haible <bruno@clisp.org>
8808 * modules/open-tests: New file.
8809 * tests/test-open.c: New file.
8811 * modules/open: New file.
8812 * lib/open.c: New file.
8813 * m4/open.m4: New file.
8814 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
8816 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
8817 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
8819 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
8820 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
8822 * doc/functions/open.texi: Mention the 'open' module.
8824 2007-10-04 Bruno Haible <bruno@clisp.org>
8826 * modules/ceill-tests: New file.
8827 * tests/test-ceill.c: New file.
8829 * modules/ceill: New file.
8830 * lib/ceill.c: Replace entire file.
8831 * m4/ceill.m4: New file.
8832 * lib/math.in.h (ceill): Replace declaration.
8833 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
8834 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
8835 * doc/functions/ceill.texi: Mention the 'ceill' module.
8836 * modules/mathl (Files): Remove lib/ceill.c.
8837 (Depends-on): Add ceill.
8839 2007-10-04 Bruno Haible <bruno@clisp.org>
8841 * modules/ceilf-tests: New file.
8842 * tests/test-ceilf.c: New file.
8844 * modules/ceilf: New file.
8845 * lib/ceil.c: New file.
8846 * lib/ceilf.c: New file.
8847 * m4/ceilf.m4: New file.
8848 * lib/math.in.h (ceilf): New declaration.
8849 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
8851 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
8853 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
8855 2007-10-04 Bruno Haible <bruno@clisp.org>
8857 * modules/floorl-tests: New file.
8858 * tests/test-floorl.c: New file.
8860 * modules/floorl: New file.
8861 * lib/floorl.c: Replace entire file.
8862 * m4/floorl.m4: New file.
8863 * lib/math.in.h (floorl): Replace declaration.
8864 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
8865 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
8866 * doc/functions/floorl.texi: Mention the 'floorl' module.
8867 * modules/mathl (Files): Remove lib/floorl.c.
8868 (Depends-on): Add floorl.
8870 2007-10-04 Bruno Haible <bruno@clisp.org>
8872 * modules/floorf-tests: New file.
8873 * tests/test-floorf.c: New file.
8875 * modules/floorf: New file.
8876 * lib/floor.c: New file.
8877 * lib/floorf.c: New file.
8878 * m4/floorf.m4: New file.
8879 * lib/math.in.h (floorf): New declaration.
8880 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
8882 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
8884 * doc/functions/floorf.texi: Mention the 'floorf' module.
8886 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
8887 Bruno Haible <bruno@clisp.org>
8889 Advertise for the Git server instead of the CVS server.
8890 * doc/gnulib-intro.texi (Steady Development): Mention the Git
8891 repository instead of the CVS one.
8892 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
8893 about all VCS systems generically.
8894 * doc/gnulib.texi (Introduction): Capitalize `Git'.
8896 2007-10-04 Bruno Haible <bruno@clisp.org>
8898 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
8900 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
8902 2007-10-04 Bruno Haible <bruno@clisp.org>
8904 * modules/truncl-tests: New file.
8905 * tests/test-truncl.c: New file.
8907 * modules/truncl: New file.
8908 * lib/truncl.c: New file.
8909 * m4/truncl.m4: New file.
8910 * lib/math.in.h (truncl): New declaration.
8911 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
8913 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
8915 * doc/functions/truncl.texi: Mention the 'truncl' module.
8917 2007-10-04 Bruno Haible <bruno@clisp.org>
8919 * modules/truncf-tests: New file.
8920 * tests/test-truncf.c: New file.
8922 * modules/truncf: New file.
8923 * lib/trunc.c: Make paramerizable through USE_* macros.
8924 * lib/truncf.c: New file.
8925 * m4/truncf.m4: New file.
8926 * lib/math.in.h (truncf): New declaration.
8927 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
8929 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
8931 * doc/functions/truncf.texi: Mention the 'truncf' module.
8933 2007-10-03 Bruno Haible <bruno@clisp.org>
8935 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
8936 augmentation also for tests modules.
8937 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
8938 * modules/atexit-tests (Makefile.am): Likewise.
8939 * modules/binary-io-tests (Makefile.am): Likewise.
8940 * modules/c-strcase-tests (Makefile.am): Likewise.
8941 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
8942 * modules/canonicalize-tests (Makefile.am): Likewise.
8943 * modules/closein-tests (Makefile.am): Likewise.
8944 * modules/fprintf-posix-tests (Makefile.am): Likewise.
8945 * modules/freadahead-tests (Makefile.am): Likewise.
8946 * modules/fseek-tests (Makefile.am): Likewise.
8947 * modules/fseeko-tests (Makefile.am): Likewise.
8948 * modules/ftell-tests (Makefile.am): Likewise.
8949 * modules/ftello-tests (Makefile.am): Likewise.
8950 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
8951 * modules/isnanl-tests (Makefile.am): Likewise.
8952 * modules/lseek-tests (Makefile.am): Likewise.
8953 * modules/mbscasecmp-tests (Makefile.am): Likewise.
8954 * modules/mbscasestr-tests (Makefile.am): Likewise.
8955 * modules/mbschr-tests (Makefile.am): Likewise.
8956 * modules/mbscspn-tests (Makefile.am): Likewise.
8957 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8958 * modules/mbspbrk-tests (Makefile.am): Likewise.
8959 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8960 * modules/mbsrchr-tests (Makefile.am): Likewise.
8961 * modules/mbsspn-tests (Makefile.am): Likewise.
8962 * modules/mbsstr-tests (Makefile.am): Likewise.
8963 * modules/printf-posix-tests (Makefile.am): Likewise.
8964 * modules/snprintf-posix-tests (Makefile.am): Likewise.
8965 * modules/sprintf-posix-tests (Makefile.am): Likewise.
8966 * modules/tsearch-tests (Makefile.am): Likewise.
8967 * modules/uniname/uniname-tests (Makefile.am): Likewise.
8968 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8969 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8970 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8971 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8972 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8973 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
8974 * modules/vprintf-posix-tests (Makefile.am): Likewise.
8975 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
8976 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
8977 * modules/xstrtoimax-tests (Makefile.am): Likewise.
8978 * modules/xstrtol-tests (Makefile.am): Likewise.
8979 * modules/xstrtoumax-tests (Makefile.am): Likewise.
8980 * modules/yesno-tests (Makefile.am): Likewise.
8982 2007-10-03 Bruno Haible <bruno@clisp.org>
8984 * modules/trunc-tests: New file.
8985 * tests/test-trunc.c: New file.
8987 * modules/trunc: New file.
8988 * lib/trunc.c: New file.
8989 * m4/trunc.m4: New file.
8990 * lib/math.in.h (trunc): New declaration.
8991 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
8993 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
8995 * doc/functions/trunc.texi: Mention the 'trunc' module.
8997 2007-10-03 Bruno Haible <bruno@clisp.org>
8999 * tests/test-fpending.c: New file, mostly copied
9000 from coreutils/lib/t-fpending.c.
9001 * modules/fpending-tests: New file.
9003 2007-10-03 Bruno Haible <bruno@clisp.org>
9005 Port the stdio extensions to QNX (untested).
9006 * lib/fseterr.c (fseterr): Add support for QNX.
9007 * lib/fbufmode.c (fbufmode): Likewise.
9008 * lib/freadable.c (freadable): Likewise.
9009 * lib/fwritable.c (fwritable): Likewise.
9010 * lib/freading.c (freading): Likewise.
9011 * lib/fwriting.c (fwriting): Likewise.
9012 * lib/freadahead.c (freadahed): Likewise.
9013 * lib/fpurge.c (fpurge): Likewise.
9014 * lib/fseeko.c (rpl_fseeko): Likewise.
9016 2007-10-03 Bruno Haible <bruno@clisp.org>
9017 Jim Meyering <jim@meyering.net>
9018 Eric Blake <ebb9@byu.net>
9020 * doc/relocatable.texi: Use @command instead of @program.
9022 2007-10-02 Jim Meyering <jim@meyering.net>
9024 Perform one more "_.h" -> ".in.h" substitution.
9025 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9026 instead of unistd_.h here, too.
9028 2007-10-01 Bruno Haible <bruno@clisp.org>
9030 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9031 Needed for the alloca-opt module.
9033 2007-09-30 Bruno Haible <bruno@clisp.org>
9035 * lib/alloca.in.h: Renamed from lib/alloca_.h.
9036 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9038 * lib/argz.in.h: Renamed from lib/argz_.h.
9039 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9040 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9041 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9043 * lib/dirent.in.h: Renamed from lib/dirent_.h.
9044 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9046 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9047 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9049 * lib/float.in.h: Renamed from lib/float_.h.
9050 * modules/float (Files, Makefile.am): Use float.in.h instead of
9052 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9053 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9055 * lib/getopt.in.h: Renamed from lib/getopt_.h.
9056 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9058 * lib/glob.in.h: Renamed from lib/glob_.h.
9059 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9060 * lib/iconv.in.h: Renamed from lib/iconv_.h.
9061 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9063 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9064 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9066 * lib/locale.in.h: Renamed from lib/locale_.h.
9067 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9069 * lib/math.in.h: Renamed from lib/math_.h.
9070 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9071 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9072 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9073 of netinet_in_.h. Add dependency.
9074 * lib/poll.in.h: Renamed from lib/poll_.h.
9075 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9076 * lib/search.in.h: Renamed from lib/search_.h.
9077 * modules/search (Files, Makefile.am): Use search.in.h instead of
9079 * lib/signal.in.h: Renamed from lib/signal_.h.
9080 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9082 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9083 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9085 * lib/stdint.in.h: Renamed from lib/stdint_.h.
9086 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9088 * lib/stdio.in.h: Renamed from lib/stdio_.h.
9089 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9091 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9092 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9094 * lib/string.in.h: Renamed from lib/string_.h.
9095 * modules/string (Files, Makefile.am): Use string.in.h instead of
9097 * doc/gnulib-tool.texi (Initial import): Update.
9098 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
9099 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
9100 of sys_select_.h. Add dependency.
9101 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
9102 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
9104 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
9105 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
9107 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
9108 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
9110 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
9111 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
9113 * lib/time.in.h: Renamed from lib/time_.h.
9114 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
9115 * lib/unistd.in.h: Renamed from lib/unistd_.h.
9116 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
9118 * lib/wchar.in.h: Renamed from lib/wchar_.h.
9119 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
9121 * lib/wctype.in.h: Renamed from lib/wctype_.h.
9122 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
9124 * build-aux/bootstrap (slurp): Update.
9125 * lib/.cppi-disable: Update.
9127 2007-09-30 Bruno Haible <bruno@clisp.org>
9129 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
9132 2007-09-30 Bruno Haible <bruno@clisp.org>
9134 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
9136 2007-09-29 Bruno Haible <bruno@clisp.org>
9138 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
9140 2007-09-29 Bruno Haible <bruno@clisp.org>
9142 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
9143 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
9144 * build-aux/install-reloc: Compile also areadlink.c.
9145 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
9147 2007-09-29 Bruno Haible <bruno@clisp.org>
9149 * gnulib-tool (func_emit_initmacro_done): Indentation.
9151 2007-09-29 Bruno Haible <bruno@clisp.org>
9153 * README: Add CVS checkout update instructions.
9154 Info from Bob Proulx <bob@proulx.com>.
9156 2007-09-28 Eric Blake <ebb9@byu.net>
9158 Provide move-if-change.
9159 * build-aux/move-if-change: New file, based on best practice
9160 rather than any canonical upstream location.
9162 2007-09-28 Jim Meyering <jim@meyering.net>
9164 Fix canonicalize loop-detection corner case.
9165 Do not attempt to stat the symlink values stored via seen_triple.
9166 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
9167 on linux-2.6.18, (but not 2.6.22).
9168 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
9169 triple_compare. The former compares dev,ino,filename, while the latter
9170 would actually stat dirname(filename) when dev and ino were equal.
9171 * lib/hash-triple.c: Install <string.h>.
9173 (triple_compare_ino_str): New function.
9174 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
9176 2007-09-28 Eric Blake <ebb9@byu.net>
9178 Enforce that AC_REPLACE_FUNCS files exist.
9179 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
9180 override check for typos.
9182 Fix test-closein on Solaris 10.
9183 * tests/test-closein.c (main): Don't assume stdin can be inherited
9184 closed on all systems.
9185 * tests/test-closein.sh: Likewise.
9186 Reported by Piotr Tarnowski.
9188 2007-09-28 Jim Meyering <jim@meyering.net>
9190 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
9192 2007-09-27 Jim Meyering <jim@meyering.net>
9194 canonicalize: Avoid a false-positive cycle failure.
9195 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
9196 Sort. Remove cycle-check.
9197 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
9199 (seen_triple): New function.
9200 (canonicalize_filename_mode): Use it instead of cycle-check.
9201 * tests/test-canonicalize.c: Add a test for this bug.
9202 * tests/test-canonicalize.sh: Set up and run the test.
9204 New module, file-set, from coreutils.
9205 * modules/file-set: Define it.
9206 * lib/file-set.c, lib/file-set.h: Implement.
9208 New module, hash-triple, from coreutils.
9209 * modules/hash-triple: Define it.
9210 * lib/hash-triple.c, lib/hash-triple.h: Implement.
9212 2007-09-25 Eric Blake <ebb9@byu.net>
9214 Fix strerror on Interix.
9215 * lib/string_.h (strerror): Declare replacement.
9216 * doc/functions/strerror.texi (strerror): Document the Interix
9218 * modules/string (Makefile.am): Support new hooks.
9219 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
9220 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
9221 gl_FUNC_STRERROR_SEPARATE.
9222 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
9223 * lib/strerror.c (rpl_strerror): Provide replacement.
9224 * modules/strerror (Depends-on): Add string.
9225 (configure.ac): Detect use of module.
9226 * tests/test-strerror.c: New file.
9227 * modules/strerror-tests: New test module.
9228 * modules/argp (Depends-on): Add strerror.
9229 * modules/error (Depends-on): Likewise.
9230 Reported by Martin Koeppe.
9232 2007-09-24 Bruno Haible <bruno@clisp.org>
9234 * README: Update git instructions.
9236 2007-09-24 Eric Blake <ebb9@byu.net>
9238 Revert fpending breakage from 2007-09-08.
9239 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
9242 2007-09-24 Jim Meyering <jim@meyering.net>
9244 filenamecat.c: Add a test.
9245 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
9246 showing how the function works when DIR is the empty string.
9248 2007-09-21 Simon Josefsson <simon@josefsson.org>
9250 * tests/test-canonicalize.sh: Turn on executable bit.
9252 2007-09-19 Eric Blake <ebb9@byu.net>
9254 * README: Update CVS instructions.
9256 2007-09-18 Bruno Haible <bruno@clisp.org>
9258 * modules/areadlink: New file.
9259 * lib/areadlink.h (areadlink): New declaration.
9260 * lib/areadlink.c: New file, based on lib/xreadlink.c.
9262 2007-09-17 Jim Meyering <jim@meyering.net>
9264 * lib/savewd.c (ESTALE) [!defined]: Define.
9265 Reported to be required on Interix by Martin Koeppe.
9267 2007-09-17 Bruno Haible <bruno@clisp.org>
9269 * gnulib-tool (func_version): Use $version.
9271 2007-09-16 Bruno Haible <bruno@clisp.org>
9273 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
9274 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
9275 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
9276 Reported by Greg Schafer <gschafer@zip.com.au>.
9278 2007-09-15 Bruno Haible <bruno@clisp.org>
9280 * gnulib-tool (sed): Try a little harder to make bash understand the
9282 Reported by Bruce Korb <bruce.korb@gmail.com>.
9284 2007-09-13 Eric Blake <ebb9@byu.net>
9286 * ChangeLog: Remove conflict markers.
9288 2007-09-13 Simon Josefsson <simon@josefsson.org>
9290 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
9291 Reported by Bruno Haible <bruno@clisp.org>.
9293 2007-09-12 Bruno Haible <bruno@clisp.org>
9295 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
9296 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
9299 2007-09-12 Eric Blake <ebb9@byu.net>
9301 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
9302 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
9303 Autoconf definition.
9304 * modules/euidaccess (Depends-on): Add extensions, for
9305 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
9306 * modules/fnmatch (Depends-on): Likewise.
9307 * modules/getaddrinfo (Depends-on): Likewise.
9308 * modules/getdelim (Depends-on): Likewise.
9309 * modules/getline (Depends-on): Likewise.
9310 * modules/getsubopt (Depends-on): Likewise.
9311 * modules/gettext (Depends-on): Likewise.
9312 * modules/group-member (Depends-on): Likewise.
9313 * modules/mbchar (Depends-on): Likewise.
9314 * modules/memmem (Depends-on): Likewise.
9315 * modules/mempcpy (Depends-on): Likewise.
9316 * modules/memrchr (Depends-on): Likewise.
9317 * modules/pagealign_alloc (Depends-on): Likewise.
9318 * modules/readutmp (Depends-on): Likewise.
9319 * modules/stpcpy (Depends-on): Likewise.
9320 * modules/stpncpy (Depends-on): Likewise.
9321 * modules/strchrnul (Depends-on): Likewise.
9322 * modules/strndup (Depends-on): Likewise.
9323 * modules/strsep (Depends-on): Likewise.
9324 * modules/strverscmp (Depends-on): Likewise.
9325 * modules/vasprintf (Depends-on): Likewise.
9326 * modules/wcwidth (Depends-on): Likewise.
9327 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
9328 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
9329 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
9330 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
9331 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9332 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9333 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
9334 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9335 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
9336 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9337 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9338 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
9339 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
9340 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9341 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
9342 * m4/readutmp.m4 (gl_READUTMP): Likewise.
9343 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9344 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
9345 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9346 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
9347 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
9348 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
9349 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
9350 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
9351 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
9352 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9353 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
9354 so that lock.m4 can be used in gettext without extensions module.
9356 2007-09-11 Bruno Haible <bruno@clisp.org>
9358 * m4/isc-posix.m4: Remove file.
9359 Suggested by Eric Blake.
9361 2007-09-11 Eric Blake <ebb9@byu.net>
9363 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
9365 2007-09-10 Bruno Haible <bruno@clisp.org>
9367 * posix-modules: Fix typo in error message.
9368 Reported by Matt <mkraai@beckman.com>.
9370 2007-09-09 Bruno Haible <bruno@clisp.org>
9372 * doc/functions/getdelim.texi: Update list of platforms lacking the
9374 * doc/functions/getline.texi: Likewise.
9376 2007-09-09 Jim Meyering <jim@meyering.net>
9378 * lib/hash.c (hash_initialize): Detect calloc failure.
9379 Reported by Bruno Haible.
9381 2007-09-09 Bruno Haible <bruno@clisp.org>
9383 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
9384 malloc or realloc fails.
9386 2007-09-09 Bruno Haible <bruno@clisp.org>
9388 * modules/getcwd (Depends-on): Add malloc-posix.
9389 * modules/glob (Depends-on): Likewise.
9390 * modules/putenv (Depends-on): Likewise.
9391 * modules/strdup (Depends-on): Likewise.
9392 * modules/getdelim (Depends-on): Add realloc-posix.
9393 * modules/read-file (Depends-on): Likewise.
9395 2007-09-09 Bruno Haible <bruno@clisp.org>
9397 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
9398 (gl_FUNC_MALLOC_POSIX): Require it.
9399 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
9400 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
9401 * modules/realloc (Files): Add m4/malloc.m4.
9402 * modules/calloc (Files): Likewise.
9404 2007-09-09 Bruno Haible <bruno@clisp.org>
9406 * modules/malloc-posix: New file.
9407 * modules/malloc (Depends-on): Add malloc-posix.
9408 * lib/malloc.c: Include errno.h.
9409 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
9410 and a POSIX-compatible malloc into a single function. Set ENOMEM
9411 when returning NULL.
9412 * m4/malloc.m4: New file.
9413 * doc/functions/malloc.texi: Mention the malloc-posix module.
9414 * lib/stdlib_.h (malloc): New declaration.
9415 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9416 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
9417 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
9418 and HAVE_MALLOC_POSIX.
9420 2007-09-09 Bruno Haible <bruno@clisp.org>
9422 * modules/realloc-posix: New file.
9423 * modules/realloc (Depends-on): Add realloc-posix.
9424 * lib/realloc.c: Include errno.h.
9425 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
9426 and a POSIX-compatible realloc into a single function. Set ENOMEM
9427 when returning NULL.
9428 * m4/realloc.m4: New file.
9429 * doc/functions/realloc.texi: Mention the realloc-posix module.
9430 * lib/stdlib_.h (realloc): New declaration.
9431 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9432 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
9433 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
9434 and HAVE_REALLOC_POSIX.
9436 2007-09-09 Bruno Haible <bruno@clisp.org>
9438 * modules/calloc-posix: New file.
9439 * modules/calloc (Depends-on): Add calloc-posix.
9440 * lib/calloc.c: Include errno.h.
9441 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
9442 and a POSIX-compatible calloc into a single function. Set ENOMEM
9443 when returning NULL.
9444 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
9445 * doc/functions/calloc.texi: Mention the calloc-posix module.
9446 * lib/stdlib_.h (calloc): New declaration.
9447 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9448 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
9449 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
9450 and HAVE_CALLOC_POSIX.
9452 2007-09-09 Bruno Haible <bruno@clisp.org>
9454 Allow for modules to show an arbitrary notice.
9455 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
9456 * gnulib-tool: New option --extract-notice.
9457 (func_usage): Document it.
9458 (sed_extract_prog): Update.
9459 (func_get_notice): New function.
9460 (func_modules_notice): New function.
9461 (func_import, func_create_testdir): Invoke it.
9462 Suggested by Jim Meyering.
9464 2007-09-09 Bruno Haible <bruno@clisp.org>
9466 * gnulib-tool: New options --verbose, --quiet.
9467 (func_usage): Document them.
9468 (verbose): New variable.
9469 (func_execute_command): New function.
9470 (func_import): Don't show the module list and the file list if
9472 (func_create_testdir): Likewise. Use func_execute_command.
9473 (func_create_megatestdir): Use func_execute_command.
9475 2007-09-08 Bruno Haible <bruno@clisp.org>
9477 * gnulib-tool (func_import): Prefer rsync over wget when available,
9478 for fetching the PO files.
9480 2007-09-08 Bruno Haible <bruno@clisp.org>
9482 * posix-modules: New file. Portions copied from gnulib-tool.
9483 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
9485 2007-09-08 Jim Meyering <jim@meyering.net>
9487 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
9488 * lib/fpending.h: Rename from __fpending.h.
9489 * lib/fpending.c: Rename from __fpending.c.
9490 Include "fpending.h", not "__fpending.h".
9491 * lib/__fpending.h, lib/__fpending.c: Remove files.
9492 * modules/fpending (Files): Reflect new file names.
9493 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
9495 2007-09-08 Bruno Haible <bruno@clisp.org>
9497 * m4/inttypes-h.m4: Remove stub file.
9499 2007-09-07 Simon Josefsson <simon@josefsson.org>
9501 * doc/headers/stdint.texi: Discuss #include_next issue.
9503 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
9505 * build-aux/bootstrap: Remove obsolete comment about wget --help.
9507 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9509 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
9512 2007-09-03 Jim Meyering <jim@meyering.net>
9514 New module: git-version-gen.
9515 * modules/git-version-gen: New file.
9517 Import changes from coreutils for bootstrap script.
9519 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
9521 bootstrap: uses rsync to download the .po files
9522 * build-aux/bootstrap (po_download_command_format): New global.
9523 (download_po_files): Use rsync.
9524 (update_po_files): Don't remove .po files after download,
9525 so future rsync runs can take advantage of the copies.
9527 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
9529 Solve the unnecessary-.po-file-regeneration problem once and for all.
9530 * build-aux/bootstrap (download_po_files): New function, renamed from
9531 get_translations. Now, downloads, but doesn't update LINGUAS.
9532 (update_po_files): New function.
9534 bootstrap: Ignore more.
9535 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
9536 uniwidth to e.g., lib/.gitignore.
9537 (slurp): Handle the sys_stat_.h -> sys mapping, too.
9539 * build-aux/bootstrap: New setting: vc_ignore.
9540 (insert_sorted_if_absent): Create $file if absent.
9541 Adapt to new, possibly empty, list: $vc_ignore.
9543 bootstrap: generate more ignorable names
9544 * build-aux/bootstrap (slurp): When generating ignorable names,
9545 also map .sin to .sed, .gperf to .c, and .y to .c.
9547 2007-09-03 Jim Meyering <jim@meyering.net>
9549 * build-aux/git-version-gen: New file, from coreutils. For details, see
9550 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
9552 2007-09-02 Bruno Haible <bruno@clisp.org>
9554 Fix mis-recognition of 'mcs' on QNX 6.
9555 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
9556 output contains the string "Mono".
9557 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
9558 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
9560 2007-09-01 Bruno Haible <bruno@clisp.org>
9562 Fix collision between uniwidth/* and linebreak modules.
9563 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
9564 u32_width): Remove declarations.
9565 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
9566 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
9567 streq3, streq2, streq1, streq0): Remove functions.
9568 (STREQ): Remove macro.
9569 (is_cjk_encoding): Remove function.
9570 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
9571 (uc_width, u8_width, u16_width, u32_width): Remove functions.
9572 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
9573 * NEWS: Document the change.
9575 2007-09-01 Bruno Haible <bruno@clisp.org>
9577 * lib/streq.h: Add double-inclusion guard.
9579 2007-09-01 Karl Berry <karl@gnu.org>
9581 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
9583 2007-08-28 Jim Meyering <jim@meyering.net>
9585 Rename mreadlink_with_size to areadlink_with_size.
9586 * NEWS: Document the change.
9587 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
9588 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
9589 * lib/mreadlink.h: Rename this to...
9590 * lib/areadlink.h: ...this.
9591 * modules/mreadlink-with-size: Rename this to...
9592 * modules/areadlink-with-size: ...this.
9593 * lib/canonicalize.c: Reflect the renaming.
9594 * modules/canonicalize: Likewise.
9596 2007-08-26 Bruno Haible <bruno@clisp.org>
9598 * gnulib-tool (func_import): When deciding which files to remove,
9599 consider also dangling symbolic links.
9600 Reported by Eric Blake.
9602 2007-08-26 Bruno Haible <bruno@clisp.org>
9604 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
9606 2007-08-23 Simon Josefsson <simon@josefsson.org>
9608 * lib/readline.c: Don't include getline.h, the prototype is now
9611 2007-08-23 Jim Meyering <jim@meyering.net>
9614 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
9615 around the funlockfile call, since funlockfile never sets errno.
9616 Don't set errno upon failed realloc.
9618 2007-08-22 Eric Blake <ebb9@byu.net>
9621 * lib/getdelim.c (getdelim): Revert regression that required *n to
9622 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
9623 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
9624 getdelim, rather than whether implementation is missing.
9625 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
9626 * lib/stdio_.h (getline): Also declare if replacement is
9628 * doc/functions/getdelim.texi: New file.
9629 * doc/functions/getline.texi: Likewise.
9630 * doc/gnulib.texi (Function Substitutes): Add new files.
9631 Reported by Bruno Haible.
9633 2007-08-22 Ludovic Courtès <ludo@gnu.org>
9635 * users.txt: Add Guile.
9637 2007-08-22 Eric Blake <ebb9@byu.net>
9639 * tests/test-getdelim.c (main): Use remove, not unlink.
9640 * tests/test-getline.c (main): Likewise.
9642 Move getline and getdelim into stdio.h, per POSIX 200x.
9643 * modules/getline (Files): Remove getline.h.
9644 (Depends-on): Add stdio.
9645 (configure.ac): Add module indicator.
9646 * modules/getdelim (Files): Remove getdelim.h.
9647 (Depends-on): Add stdio.
9648 (configure.ac): Add module indicator.
9649 * modules/stdio (Makefile.am): Work with new indicators.
9650 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9651 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
9652 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9653 * lib/getdelim.h: Delete.
9654 * lib/getline.h: Delete.
9655 * lib/stdio_.h (getdelim, getline): Declare.
9656 * modules/getdelim-tests: New module.
9657 * modules/getline-tests: Likewise.
9658 * tests/test-getdelim.c: New file.
9659 * tests/test-getline.c: Likewise.
9660 * NEWS: Document the change.
9661 * lib/getline.c: Update choice of header.
9662 * lib/csharpcomp.c: Likewise.
9663 * lib/getpass.c: Likewise.
9664 * lib/javacomp.c: Likewise.
9665 * lib/javaversion.c: Likewise.
9666 * lib/yesno.c: Likewise.
9667 * lib/getdelim.c: Likewise.
9668 (getdelim): Set errno on failure, and avoid memory leak.
9670 2007-08-19 Bruno Haible <bruno@clisp.org>
9672 * modules/closein (Depends-on): Add freadahead.
9673 * lib/closein.c: Include freadahead.h.
9674 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
9677 2007-08-19 Bruno Haible <bruno@clisp.org>
9679 * modules/freadahead-tests: New file.
9680 * tests/test-freadahead.sh: New file.
9681 * tests/test-freadahead.c: New file.
9683 * modules/freadahead: New file.
9684 * lib/freadahead.h: New file.
9685 * lib/freadahead.c: New file.
9686 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
9687 fbufmode, fpurge, freadable, fwritable.
9689 2007-08-19 Eric Blake <ebb9@byu.net>
9691 Test yesno in combination with closein.
9692 * lib/yesno.c (yesno): Document use of stdin.
9693 * modules/yesno-tests (Files): New module.
9694 * tests/test-yesno.c (main): New file.
9695 * tests/test-yesno.sh: Likewise.
9697 2007-08-19 Bruno Haible <bruno@clisp.org>
9699 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
9700 * lib/fseeko.c (rpl_fseeko): Likewise.
9701 * lib/fseterr.c (fseterr): Likewise.
9703 2007-08-19 Bruno Haible <bruno@clisp.org>
9705 * tests/test-lseek.c (main): Disable a test for BeOS.
9706 * doc/functions/lseek.texi: Document the BeOS bug.
9708 2007-08-19 Bruno Haible <bruno@clisp.org>
9709 Eric Blake <ebb9@byu.net>
9711 * lib/lseek.c: Include <sys/stat.h>.
9712 (rpl_lseek): Add workaround code also for Unix platforms.
9714 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
9715 * doc/functions/lseek.texi: Document BeOS definiency.
9717 2007-08-18 Bruno Haible <bruno@clisp.org>
9719 * modules/fstrcmp-tests: New file.
9720 * tests/test-fstrcmp.c: New file.
9722 2007-08-18 Bruno Haible <bruno@clisp.org>
9724 * modules/fstrcmp: New file, from GNU gettext with modifications.
9725 * lib/fstrcmp.h: New file, from GNU gettext.
9726 * lib/fstrcmp.c: New file, from GNU gettext.
9727 * MODULES.html.sh (String handling): Add fstrcmp.
9729 2007-08-18 Bruno Haible <bruno@clisp.org>
9731 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
9733 (diag, compareseq): Remove const from the ctxt argument.
9734 (USE_HEURISTIC): Undefine at the end.
9736 2007-08-18 Jim Meyering <jim@meyering.net>
9738 New file: lib/idcache.h
9739 * NEWS: Mention the addition.
9740 * modules/idcache (Files): Add lib/idcache.h
9741 * lib/idcache.c: Include "idcache.h".
9742 Don't include <sys/types.h>.
9743 Add a FIXME comment.
9744 Move file-scoped "static" declarations to the top.
9745 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
9747 2007-08-17 Bruno Haible <bruno@clisp.org>
9748 and Paul Eggert <eggert@cs.ucla.edu>
9750 * MODULES.html.sh: Add diffseq.
9751 * modules/diffseq: New file.
9752 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
9753 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
9755 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
9757 Import changes from coreutils for bootstrap script.
9759 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
9761 * build-aux/bootstrap (slurp): Work even in environments where
9762 "ls" defaults to "ls -A". Put in a FIXME, though, since the
9763 current code does not slurp files whose names start with ".", and
9764 this looks like it might be a troublesome area.
9766 2007-07-11 Jim Meyering <jim@meyering.net>
9768 If there's a GPL vN copyright comment, require that N == 3.
9770 2007-07-08 Jim Meyering <jim@meyering.net>
9772 Run the coreutils-specific code only if tests/Makefile.am.in exists.
9773 * build-aux/bootstrap (mam_template): Move definition out of loop.
9775 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
9777 * build-aux/bootstrap (symlink_to_dir): Rename function from
9778 symlink_to_gnulib. Add a directory parameter. Update all
9780 (cp_mark_as_generated): Also check for -- and link to -- files in
9783 2007-07-08 Jim Meyering <jim@meyering.net>
9785 Adapt to deeper hierarchy in gnulib.
9786 * build-aux/bootstrap (symlink_to_dir): If the destination
9787 directory doesn't exist, create it. This is required at least for
9788 "lib/uniwidth/cjk.h".
9790 2007-05-15 Jim Meyering <jim@meyering.net>
9792 * build-aux/bootstrap: Now that generated Makefile.am files
9793 are no longer under version control, they must be created at
9796 2007-08-14 Ben Pfaff <blp@gnu.org>
9798 * lib/count-one-bits.h: Add comments. From Bruno Haible.
9800 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
9802 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
9803 given the changes below.
9804 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
9805 even on hosts that have padding bits beyond the supported 64.
9807 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
9809 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
9810 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
9811 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
9813 (xstrtol_error): Remove.
9814 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
9815 but with a different signature.
9816 (ATTRIBUTE_NORETURN, __attribute__): New macros.
9817 * lib/xstrtol-error.c: Include exitfail.h.
9818 (xstrtol_fatal): New function, with a different signature from the
9819 old xstrtol_error, so that the caller need not worry about passing
9820 in an exit status, or about storage management of the option argument.
9821 (xstrtol_error): Now a static function. Redo signature to
9822 implement xstrtol_fatal. Output the correct number of hyphens in
9823 front of the option so that the caller need not worry about
9826 (_): Remove; not used now.
9827 * modules/xstrtol: Depend on getopt.
9828 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
9829 of old STRTOL_FATAL_ERROR macro.
9830 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
9832 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
9833 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
9835 2007-08-08 Eric Blake <ebb9@byu.net>
9837 * lib/xstrtol-error.c: Add missing include.
9839 Move xstrtol messages into gnulib domain, when --pobase is used.
9840 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
9841 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
9842 * modules/xstrtol (Files): Distribute new file.
9843 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
9844 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
9845 * tests/test-xstrtol.c: ...into new file.
9846 * tests/test-xstrtoul.c: Also test xstrtoul.
9847 * tests/test-xstrtoimax.c: Also test xstrtoimax.
9848 * tests/test-xstrtoumax.c: Also test xstrtoumax.
9849 * tests/test-xstrtol.sh: Drive the tests.
9850 * tests/test-xstrtoimax.sh: Likewise.
9851 * tests/test-xstrtoumax.sh: Likewise.
9852 * modules/xstrtol-tests: New module.
9853 * modules/xstrtoimax-tests: Likewise.
9854 * modules/xstrtoumax-tests: Likewise.
9856 2007-08-08 Jim Meyering <jim@meyering.net>
9858 New function: mfile_name_concat.
9859 * lib/filenamecat.c (mfile_name_concat): New function, just like
9860 file_name_concat, but return NULL upon failure rather than exiting
9862 * lib/filenamecat.h: Declare it.
9864 2007-08-07 Bruno Haible <bruno@clisp.org>
9866 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
9867 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
9869 Reported by Eric Blake.
9871 2007-08-07 Simon Josefsson <simon@josefsson.org>
9873 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
9874 * modules/crypto/arcfour (License): Likewise.
9875 * modules/crypto/des-tests (License): Likewise.
9876 * modules/crypto/gc-arctwo-tests (License): Likewise.
9877 * modules/crypto/gc-des-tests (License): Likewise.
9878 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
9879 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
9880 * modules/crypto/gc-md2-tests (License): Likewise.
9881 * modules/crypto/gc-md4-tests (License): Likewise.
9882 * modules/crypto/gc-md5-tests (License): Likewise.
9883 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
9884 * modules/crypto/gc-rijndael-tests (License): Likewise.
9885 * modules/crypto/gc-sha1-tests (License): Likewise.
9886 * modules/crypto/gc-tests (License): Likewise.
9887 * modules/crypto/hmac-md5 (License): Likewise.
9888 * modules/crypto/hmac-sha1 (License): Likewise.
9889 * modules/crypto/md2-tests (License): Likewise.
9890 * modules/crypto/md4-tests (License): Likewise.
9891 * modules/crypto/md5 (License): Likewise.
9892 * modules/crypto/rijndael (License): Likewise.
9893 * modules/crypto/sha1 (License): Likewise.
9894 * modules/memxor (License): Likewise.
9896 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
9897 and Bruno Haible <bruno@clisp.org>
9899 * NEWS: Describe interface changes to human, xstrtol.
9900 * lib/human.h: Include <xstrtol.h>.
9901 (human_options): Return enum strtol_error, not int. Remove
9902 bool arg; take int * instead.
9903 * lib/human.c: Don't include "gettext.h".
9904 (_): Remove; no longer used.
9905 Don't include <xstrtol.h>, since human.h does it.
9906 (human_options): Adjust to abovementioned interface changes.
9907 Do not report error to stderr; that's now the caller's
9909 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
9911 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
9912 Str, Argument_type_string. All uses changed. Put " argument"
9913 in diagnostics to make them clearer. Change wording of suffix
9914 message for clarity.
9915 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
9916 Argument_type_string.
9917 (STRTOL_FATAL_WARN): Remove; no longer used.
9918 * modules/human (Depends-on): Remove gettext-h.
9920 2007-08-06 Simon Josefsson <simon@josefsson.org>
9922 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
9924 2007-07-31 Bruno Haible <bruno@clisp.org>
9926 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
9927 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
9928 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
9930 2007-07-31 Bruno Haible <bruno@clisp.org>
9932 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
9933 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
9935 2007-07-30 Bruno Haible <bruno@clisp.org>
9937 * modules/base64 (License): Use the synonymous term "LGPLv2+".
9938 * modules/c-ctype (License): Likewise.
9939 * modules/c-strcase (License): Likewise.
9940 * modules/check-version (License): Likewise.
9941 * modules/iconv (License): Likewise.
9942 * modules/iconv_open (License): Likewise.
9943 * modules/read-file (License): Likewise.
9944 * modules/striconv (License): Likewise.
9945 * modules/strverscmp (License): Likewise.
9946 * modules/vasprintf (License): Likewise.
9947 * modules/crypto/des (License): Likewise.
9948 * modules/crypto/gc (License): Likewise.
9949 * modules/crypto/gc-arcfour (License): Likewise.
9950 * modules/crypto/gc-arctwo (License): Likewise.
9951 * modules/crypto/gc-des (License): Likewise.
9952 * modules/crypto/gc-hmac-md5 (License): Likewise.
9953 * modules/crypto/gc-hmac-sha1 (License): Likewise.
9954 * modules/crypto/gc-md2 (License): Likewise.
9955 * modules/crypto/gc-md4 (License): Likewise.
9956 * modules/crypto/gc-md5 (License): Likewise.
9957 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
9958 * modules/crypto/gc-random (License): Likewise.
9959 * modules/crypto/gc-rijndael (License): Likewise.
9960 * modules/crypto/gc-sha1 (License): Likewise.
9961 * modules/crypto/md2 (License): Likewise.
9962 * modules/crypto/md4 (License): Likewise.
9964 2007-07-30 Jim Meyering <jim@meyering.net>
9966 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
9967 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
9968 it has valid stat data. This bug would cause du not to count the
9969 sizes of inaccessible directories.
9970 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
9971 in <http://bugzilla.redhat.com/250077>.
9973 2007-07-25 Peter O'Gorman <peter@pogma.com>
9974 Bruno Haible <bruno@clisp.org>
9976 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
9977 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
9978 #include_next, gives a diagnostic about it, but reports no error in
9980 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
9982 2007-07-24 Ben Pfaff <blp@gnu.org>
9984 Improve name: "count-one-bits" is better than "popcount".
9985 * MODULES.html.sh: Update name.
9986 * lib/popcount.h: Renamed lib/count-one-bits.h.
9987 (popcount): Renamed count_one_bits.
9988 (popcountl): Renamed count_one_bits_l.
9989 (popcountll): Renamed count_one_bits_ll.
9990 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
9991 * modules/popcount: Renamed module/count-one-bits.
9992 * modules/popcount-tests: Renamed module/count-one-bits-tests.
9993 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
9995 2007-07-23 Ben Pfaff <blp@gnu.org>
9997 * lib/popcount.h (popcount32): Reduce size of constants, to allow
9998 better code generation, and add U to large constants to avoid
9999 warnings, in non-GCC case.
10000 Suggested by Bruno Haible.
10002 2007-07-23 Ben Pfaff <blp@gnu.org>
10004 * lib/popcount.h: Use verify_true instead of if...abort.
10005 * modules/popcount: Depend on verify module.
10006 Suggested by Jim Meyering.
10008 2007-07-23 Bruno Haible <bruno@clisp.org>
10010 * gnulib-tool (func_import): Create a .cvsignore file also when the
10011 directory is not yet in CVS but the toplevel directory is. When
10012 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10013 Reported by Karl Berry.
10015 2007-07-22 Ben Pfaff <blp@gnu.org>
10017 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10019 Suggested by Eric Blake.
10021 2007-07-22 Ben Pfaff <blp@gnu.org>
10023 New module: popcount.
10024 * MODULES.html.sh: Add popcount.
10025 * modules/popcount: New file.
10026 * modules/popcount-tests: New file.
10027 * tests/test-popcount.c: New file.
10028 * lib/popcount.h: New file.
10029 * m4/popcount.m4: New file.
10031 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
10033 * build-aux/announce-gen: Update to GPLv3.
10035 * build-aux/config.guess: Update from config.
10037 2007-07-21 Bruno Haible <bruno@clisp.org>
10039 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10040 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10042 2007-07-20 Jim Meyering <jim@meyering.net>
10044 * check-module: Diagnose a self-dependency.
10046 2007-07-19 Bruno Haible <bruno@clisp.org>
10048 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10050 Reported by Eric Blake.
10052 2007-07-18 Bruno Haible <bruno@clisp.org>
10054 * gnulib-tool: New options --po-base, --po-domain.
10055 (func_usage): Document them.
10056 (pobase, po_domain): New variables.
10057 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10058 DEFAULT_TEXT_DOMAIN.
10059 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10060 (func_import): Consider pobase and po_domain. Create a po/ directory.
10061 (func_create_testdir): Set pobase and po_domain to empty.
10062 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10063 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10065 2007-07-18 Bruno Haible <bruno@clisp.org>
10067 * gnulib-tool (func_get_automake_snippet): Synthesize also an
10068 EXTRA_DIST augmentation for files in build-aux/.
10070 2007-07-16 Bruno Haible <bruno@clisp.org>
10072 * modules/lseek (License): Use the synonymous term "LGPLv2+".
10073 * modules/getdelim (License): Likewise.
10075 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10077 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10078 * modules/d-type (License): Likewise.
10079 * modules/extensions (License): Likewise.
10080 * modules/fnmatch (License): Likewise.
10081 * modules/fseeko (License): Likewise.
10082 * modules/getaddrinfo (License): Likewise.
10083 * modules/getline (License): Likewise.
10084 * modules/getlogin_r (License): Likewise.
10085 * modules/getpass (License): Likewise.
10086 * modules/gettimeofday (License): Likewise.
10087 * modules/glob (License): Likewise.
10088 * modules/inet_ntop (License): Likewise.
10089 * modules/malloc (License): Likewise.
10090 * modules/malloca (License): Likewise.
10091 * modules/memmem (License): Likewise.
10092 * modules/mempcpy (License): Likewise.
10093 * modules/memset (License): Likewise.
10094 * modules/minmax (License): Likewise.
10095 * modules/mktime (License): Likewise.
10096 * modules/netinet_in (License): Likewise.
10097 * modules/pathmax (License): Likewise.
10098 * modules/poll (License): Likewise.
10099 * modules/regex (License): Likewise.
10100 * modules/snprintf (License): Likewise.
10101 * modules/stdbool (License): Likewise.
10102 * modules/stdint (License): Likewise.
10103 * modules/stdio (License): Likewise.
10104 * modules/strcase (License): Likewise.
10105 * modules/strcasestr (License): Likewise.
10106 * modules/strdup (License): Likewise.
10107 * modules/string (License): Likewise.
10108 * modules/strndup (License): Likewise.
10109 * modules/strnlen (License): Likewise.
10110 * modules/strpbrk (License): Likewise.
10111 * modules/strptime (License): Likewise.
10112 * modules/strsep (License): Likewise.
10113 * modules/sys_select (License): Likewise.
10114 * modules/sys_socket (License): Likewise.
10115 * modules/sys_stat (License): Likewise.
10116 * modules/sys_time (License): Likewise.
10117 * modules/time (License): Likewise.
10118 * modules/time_r (License): Likewise.
10119 * modules/timegm (License): Likewise.
10120 * modules/unistd (License): Likewise.
10121 * modules/vsnprintf (License): Likewise.
10122 * modules/wctype (License): Likewise.
10124 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10126 * modules/argz (License): LGPLv2+.
10128 2007-07-15 Karl Berry <karl@gnu.org>
10130 * doc/gnulib.texi: revise node structure per new fdl.texi.
10132 2007-07-14 Bruno Haible <bruno@clisp.org>
10134 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
10136 * lib/uniname/uninames.h: Regenerated.
10138 2007-07-14 Karl Berry <karl@gnu.org>
10140 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
10141 omitting sectioning and index commands.
10143 2007-07-13 Bruno Haible <bruno@clisp.org>
10145 New gnulib-tool option --more-symlinks.
10146 * gnulib-tool (func_usage): Document --more-symlinks.
10147 (do_copyrights): New variable.
10148 Recognize option --more-symlinks.
10149 (func_import): Don't add a copyright notice transform to
10150 sed_transform_lib_file if do_copyrights is empty.
10152 2007-07-13 Bruno Haible <bruno@clisp.org>
10154 * lib/vasnprintf.c (decimal_point_char): Define also if
10155 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
10156 && !NEED_PRINTF_DIRECTIVE_A.
10157 Reported by Clemens Koller <clemens.koller@anagramm.de> via
10158 Gary V. Vaughan <gary@gnu.org>.
10160 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
10162 * lib/inttypes_.h: Undo previous change, since it was fixed
10163 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
10165 2007-07-13 Bruno Haible <bruno@clisp.org>
10167 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
10168 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
10170 2007-07-13 Jim Meyering <jim@meyering.net>
10172 df: Don't fail for Tru64's "file-on-file mount".
10173 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
10174 so we fall through and use statfs instead. Details here:
10175 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
10176 Reported by Albert Chin.
10178 2007-07-13 Bruno Haible <bruno@clisp.org>
10180 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
10181 * modules/configmake (License): Likewise.
10182 * modules/gettext (License): Likewise.
10183 * modules/gettext-h (License): Likewise.
10184 * modules/include_next (License): Likewise.
10185 * modules/link-warning (License): Likewise.
10186 * modules/localcharset (License): Likewise.
10187 * modules/localename (License): Likewise.
10188 * modules/lock (License): Likewise.
10189 * modules/relocatable-lib-lgpl (License): Likewise.
10190 * modules/size_max (License): Likewise.
10191 * modules/vasnprintf (License): Likewise.
10192 * modules/wchar (License): Likewise.
10193 * modules/xsize (License): Likewise.
10195 2007-07-13 Bruno Haible <bruno@clisp.org>
10197 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
10198 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
10200 2007-07-12 Bruno Haible <bruno@clisp.org>
10202 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
10203 in the modules files.
10205 2007-07-11 Karl Berry <karl@gnu.org>
10207 * MODULES.html.sh (func_module): use
10208 sed -e '\|^'"${includefile}"'$|d'
10209 instead of /.../d, to avoid errors on $includefile's containing /.
10211 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
10213 * gnulib-tool (func_import): Avoid duplication of --avoid
10215 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
10216 names to `_' in variable names.
10218 2007-07-10 Eric Blake <ebb9@byu.net>
10220 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
10221 * NEWS: Document this change.
10223 2007-07-08 Bruno Haible <bruno@clisp.org>
10225 Update to Unicode 5.0.
10226 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
10227 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
10228 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
10229 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
10230 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
10231 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
10232 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
10233 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
10234 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
10235 U+10A3F, U+1D242..U+1D244.
10236 (nonspacing_table_ind): Update.
10237 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
10238 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
10240 2007-07-08 Bruno Haible <bruno@clisp.org>
10242 Update to Unicode 5.0.
10243 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
10244 code transform. Extend the name index field of unicode_name_to_code and
10245 unicode_code_to_name from 16 to 24 bits.
10246 * lib/uniname/uniname.c (unicode_character_name,
10247 unicode_name_character): Add the range 0x12xxx to the code transform.
10248 * lib/uniname/uninames.h: Regenerated.
10249 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
10251 2007-07-07 Bruno Haible <bruno@clisp.org>
10253 * modules/wcwidth-tests: New file.
10254 * tests/test-wcwidth.c: New file.
10256 Work around MacOS X wcwidth() bug.
10257 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
10258 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
10259 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
10260 original wcwidth in non-UTF-8 locales.
10261 * modules/wcwidth (Depends-on): Add localcharset, streq,
10263 * doc/functions/wcwidth.texi: Update.
10265 2007-07-07 Bruno Haible <bruno@clisp.org>
10267 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
10268 (wcwidth): New declaration.
10269 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
10271 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
10272 here. Prepare for creating <wchar.h> unconditionally.
10273 * modules/wchar (Depends-on): Add link-warning.
10274 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
10275 REPLACE_WCWIDTH, and GL_LINK_WARNING.
10276 * lib/wcwidth.h: Remove file.
10277 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
10278 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
10279 * modules/wcwidth (Files): Remove lib/wcwidth.h.
10280 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
10281 (Include): Replace wcwidth.h with <wchar.h>.
10282 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
10283 * lib/mbchar.h: Don't include wcwidth.h.
10284 * lib/mbswidth.c: Likewise.
10285 * NEWS: Mention the change.
10287 2007-07-07 Bruno Haible <bruno@clisp.org>
10289 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
10290 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
10291 definition with an external declaration.
10292 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
10293 defined as a function. Remove AC_C_INLINE requirement.
10294 * modules/wcwidth (Files): Add lib/wcwidth.c.
10295 (Makefile.am): Remove redundant statement.
10297 2007-07-07 Bruno Haible <bruno@clisp.org>
10299 * MODULES.html.sh (Unicode string functions): Add the new modules.
10301 * tests/uniwidth/test-u32-strwidth.c: New file.
10302 * modules/uniwidth/u32-strwidth-tests: New file.
10304 * lib/uniwidth/u32-strwidth.c: New file.
10305 * modules/uniwidth/u32-strwidth: New file.
10307 * tests/uniwidth/test-u16-strwidth.c: New file.
10308 * modules/uniwidth/u16-strwidth-tests: New file.
10310 * lib/uniwidth/u16-strwidth.c: New file.
10311 * modules/uniwidth/u16-strwidth: New file.
10313 * tests/uniwidth/test-u8-strwidth.c: New file.
10314 * modules/uniwidth/u8-strwidth-tests: New file.
10316 * lib/uniwidth/u8-strwidth.c: New file.
10317 * modules/uniwidth/u8-strwidth: New file.
10319 * tests/uniwidth/test-u32-width.c: New file.
10320 * modules/uniwidth/u32-width-tests: New file.
10322 * lib/uniwidth/u32-width.c: New file.
10323 * modules/uniwidth/u32-width: New file.
10325 * tests/uniwidth/test-u16-width.c: New file.
10326 * modules/uniwidth/u16-width-tests: New file.
10328 * lib/uniwidth/u16-width.c: New file.
10329 * modules/uniwidth/u16-width: New file.
10331 * tests/uniwidth/test-u8-width.c: New file.
10332 * modules/uniwidth/u8-width-tests: New file.
10334 * lib/uniwidth/u8-width.c: New file.
10335 * modules/uniwidth/u8-width: New file.
10337 * tests/uniwidth/test-uc_width.c: New file.
10338 * modules/uniwidth/width-tests: New file.
10340 * lib/uniwidth/width.c: New file, from GNU libiconv.
10341 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
10342 * modules/uniwidth/width: New file.
10344 * lib/uniwidth.h: New file, from GNU libiconv.
10345 * modules/uniwidth/base: New file.
10347 2007-07-07 Bruno Haible <bruno@clisp.org>
10349 * lib/uniname.h: New file, from GNU gettext.
10350 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
10351 * lib/uniname/uninames.h: New file, from GNU gettext.
10352 * lib/uniname/uniname.c: New file, from GNU gettext.
10353 * tests/uniname/test-uninames.sh: New file.
10354 * tests/uniname/test-uninames.c: New file, from GNU gettext.
10355 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
10356 * modules/uniname/base: New file.
10357 * modules/uniname/uniname: New file.
10358 * modules/uniname/uniname-tests: New file.
10359 * MODULES.html.sh (Unicode string functions): Add the new modules.
10361 2007-07-06 Bruno Haible <bruno@clisp.org>
10363 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
10365 2007-07-06 Bruno Haible <bruno@clisp.org>
10367 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
10368 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
10369 includes <cygwin/sys_time.h> which includes <sys/select.h> which
10370 include <sys/time.h>.
10371 Reported by Eric Blake.
10373 2007-07-06 Eric Blake <ebb9@byu.net>
10375 Fix testing canonicalize on cygwin.
10376 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10377 Revert patch from 2007-06-19.
10378 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
10379 canonicalize module is also in use.
10380 * tests/test-canonicalize.c: New file.
10381 * tests/test-canonicalize.sh: Likewise.
10382 * modules/canonicalize-tests: Likewise.
10384 2007-07-06 Jim Meyering <jim@meyering.net>
10386 * lib/getugroups.c (getugroups): Detect getgrent failure.
10387 Adjust comment to reflect reality: this function may return -1.
10389 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
10391 * build-aux/bootstrap (TP_URL,get_translations): Update to use
10392 the new TP address.
10394 (gnulib_mk): New variable.
10396 2007-07-05 Jim Meyering <jim@meyering.net>
10398 Don't let endgrent clobber errno, no matter how improbable.
10399 * lib/getugroups.c (getugroups): Save and restore errno around
10402 Close the group DB even when failing with 2^31 or more members.
10403 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
10405 2007-07-04 Jim Meyering <jim@meyering.net>
10407 * lib/getugroups.h: New file.
10408 * lib/getugroups.c: Include "getugroups.h".
10409 Remove uses of "register" keyword.
10410 Move local variable, "cp", down into scope where used.
10411 Give "username" parameter the "const" attribute.
10412 * modules/getugroups (Files): Add lib/getugroups.h
10414 2007-07-04 Karl Berry <karl@gnu.org>
10416 * MODULES.html.sh (func_all_modules): Complete rename of
10417 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
10419 2007-07-02 Bruno Haible <bruno@clisp.org>
10421 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
10422 mode, when inttypes.h comes from gnulib.
10423 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10425 2007-07-02 Simon Josefsson <simon@josefsson.org>
10427 * NEWS: Mention lgpl module name change.
10429 * modules/lgpl-2.1: Renamed from lgpl.
10431 * NEWS: Mention gpl module name change.
10433 * modules/gpl-3.0: New file, based on gpl-2.0.
10435 * modules/gpl-2.0: Renamed from gpl.
10437 * modules/gpl: Fix filename, doc/gpl.texi is now found at
10440 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
10442 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
10443 #define __STDC_LIMIT_MACROS temporarily while including
10444 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
10445 Problem reported by Joel E. Denny in
10446 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
10448 2007-07-01 Bruno Haible <bruno@clisp.org>
10450 * lib/unistdio.h: New file.
10451 * lib/unistdio/u-asnprintf.h: New file.
10452 * lib/unistdio/u-asprintf.h: New file.
10453 * lib/unistdio/u-printf-args.c: New file.
10454 * lib/unistdio/u-printf-args.h: New file.
10455 * lib/unistdio/u-printf-parse.h: New file.
10456 * lib/unistdio/u-snprintf.h: New file.
10457 * lib/unistdio/u-sprintf.h: New file.
10458 * lib/unistdio/u-vasprintf.h: New file.
10459 * lib/unistdio/u-vsnprintf.h: New file.
10460 * lib/unistdio/u-vsprintf.h: New file.
10461 * lib/unistdio/ulc-asnprintf.c: New file.
10462 * lib/unistdio/ulc-asprintf.c: New file.
10463 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
10464 * lib/unistdio/ulc-printf-parse.c: New file.
10465 * lib/unistdio/ulc-snprintf.c: New file.
10466 * lib/unistdio/ulc-sprintf.c: New file.
10467 * lib/unistdio/ulc-vasnprintf.c: New file.
10468 * lib/unistdio/ulc-vasprintf.c: New file.
10469 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
10470 * lib/unistdio/ulc-vsnprintf.c: New file.
10471 * lib/unistdio/ulc-vsprintf.c: New file.
10472 * lib/unistdio/u8-asnprintf.c: New file.
10473 * lib/unistdio/u8-asprintf.c: New file.
10474 * lib/unistdio/u8-printf-parse.c: New file.
10475 * lib/unistdio/u8-snprintf.c: New file.
10476 * lib/unistdio/u8-sprintf.c: New file.
10477 * lib/unistdio/u8-vasnprintf.c: New file.
10478 * lib/unistdio/u8-vasprintf.c: New file.
10479 * lib/unistdio/u8-vsnprintf.c: New file.
10480 * lib/unistdio/u8-vsprintf.c: New file.
10481 * lib/unistdio/u8-u8-asnprintf.c: New file.
10482 * lib/unistdio/u8-u8-asprintf.c: New file.
10483 * lib/unistdio/u8-u8-snprintf.c: New file.
10484 * lib/unistdio/u8-u8-sprintf.c: New file.
10485 * lib/unistdio/u8-u8-vasnprintf.c: New file.
10486 * lib/unistdio/u8-u8-vasprintf.c: New file.
10487 * lib/unistdio/u8-u8-vsnprintf.c: New file.
10488 * lib/unistdio/u8-u8-vsprintf.c: New file.
10489 * lib/unistdio/u16-asnprintf.c: New file.
10490 * lib/unistdio/u16-asprintf.c: New file.
10491 * lib/unistdio/u16-printf-parse.c: New file.
10492 * lib/unistdio/u16-snprintf.c: New file.
10493 * lib/unistdio/u16-sprintf.c: New file.
10494 * lib/unistdio/u16-vasnprintf.c: New file.
10495 * lib/unistdio/u16-vasprintf.c: New file.
10496 * lib/unistdio/u16-vsnprintf.c: New file.
10497 * lib/unistdio/u16-vsprintf.c: New file.
10498 * lib/unistdio/u16-u16-asnprintf.c: New file.
10499 * lib/unistdio/u16-u16-asprintf.c: New file.
10500 * lib/unistdio/u16-u16-snprintf.c: New file.
10501 * lib/unistdio/u16-u16-sprintf.c: New file.
10502 * lib/unistdio/u16-u16-vasnprintf.c: New file.
10503 * lib/unistdio/u16-u16-vasprintf.c: New file.
10504 * lib/unistdio/u16-u16-vsnprintf.c: New file.
10505 * lib/unistdio/u16-u16-vsprintf.c: New file.
10506 * lib/unistdio/u32-asnprintf.c: New file.
10507 * lib/unistdio/u32-asprintf.c: New file.
10508 * lib/unistdio/u32-printf-parse.c: New file.
10509 * lib/unistdio/u32-snprintf.c: New file.
10510 * lib/unistdio/u32-sprintf.c: New file.
10511 * lib/unistdio/u32-vasnprintf.c: New file.
10512 * lib/unistdio/u32-vasprintf.c: New file.
10513 * lib/unistdio/u32-vsnprintf.c: New file.
10514 * lib/unistdio/u32-vsprintf.c: New file.
10515 * lib/unistdio/u32-u32-asnprintf.c: New file.
10516 * lib/unistdio/u32-u32-asprintf.c: New file.
10517 * lib/unistdio/u32-u32-snprintf.c: New file.
10518 * lib/unistdio/u32-u32-sprintf.c: New file.
10519 * lib/unistdio/u32-u32-vasnprintf.c: New file.
10520 * lib/unistdio/u32-u32-vasprintf.c: New file.
10521 * lib/unistdio/u32-u32-vsnprintf.c: New file.
10522 * lib/unistdio/u32-u32-vsprintf.c: New file.
10523 * tests/unistdio/test-ulc-asnprintf1.c: New file.
10524 * tests/unistdio/test-ulc-asnprintf1.h: New file.
10525 * tests/unistdio/test-ulc-printf1.h: New file.
10526 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
10527 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
10528 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
10529 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
10530 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
10531 * tests/unistdio/test-ulc-vasprintf1.c: New file.
10532 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
10533 * tests/unistdio/test-ulc-vsprintf1.c: New file.
10534 * tests/unistdio/test-u8-asnprintf1.c: New file.
10535 * tests/unistdio/test-u8-asnprintf1.h: New file.
10536 * tests/unistdio/test-u8-printf1.h: New file.
10537 * tests/unistdio/test-u8-vasnprintf1.c: New file.
10538 * tests/unistdio/test-u8-vasnprintf2.c: New file.
10539 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
10540 * tests/unistdio/test-u8-vasnprintf3.c: New file.
10541 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
10542 * tests/unistdio/test-u8-vasprintf1.c: New file.
10543 * tests/unistdio/test-u8-vsnprintf1.c: New file.
10544 * tests/unistdio/test-u8-vsprintf1.c: New file.
10545 * tests/unistdio/test-u16-asnprintf1.c: New file.
10546 * tests/unistdio/test-u16-asnprintf1.h: New file.
10547 * tests/unistdio/test-u16-printf1.h: New file.
10548 * tests/unistdio/test-u16-vasnprintf1.c: New file.
10549 * tests/unistdio/test-u16-vasnprintf2.c: New file.
10550 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
10551 * tests/unistdio/test-u16-vasnprintf3.c: New file.
10552 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
10553 * tests/unistdio/test-u16-vasprintf1.c: New file.
10554 * tests/unistdio/test-u16-vsnprintf1.c: New file.
10555 * tests/unistdio/test-u16-vsprintf1.c: New file.
10556 * tests/unistdio/test-u32-asnprintf1.c: New file.
10557 * tests/unistdio/test-u32-asnprintf1.h: New file.
10558 * tests/unistdio/test-u32-printf1.h: New file.
10559 * tests/unistdio/test-u32-vasnprintf1.c: New file.
10560 * tests/unistdio/test-u32-vasnprintf2.c: New file.
10561 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
10562 * tests/unistdio/test-u32-vasnprintf3.c: New file.
10563 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
10564 * tests/unistdio/test-u32-vasprintf1.c: New file.
10565 * tests/unistdio/test-u32-vsnprintf1.c: New file.
10566 * tests/unistdio/test-u32-vsprintf1.c: New file.
10567 * modules/unistdio/base: New file.
10568 * modules/unistdio/u-printf-args: New file.
10569 * modules/unistdio/ulc-asnprintf: New file.
10570 * modules/unistdio/ulc-asprintf: New file.
10571 * modules/unistdio/ulc-fprintf: New file.
10572 * modules/unistdio/ulc-printf-parse: New file.
10573 * modules/unistdio/ulc-snprintf: New file.
10574 * modules/unistdio/ulc-sprintf: New file.
10575 * modules/unistdio/ulc-vasnprintf: New file.
10576 * modules/unistdio/ulc-vasprintf: New file.
10577 * modules/unistdio/ulc-vfprintf: New file.
10578 * modules/unistdio/ulc-vsnprintf: New file.
10579 * modules/unistdio/ulc-vsprintf: New file.
10580 * modules/unistdio/u8-asnprintf: New file.
10581 * modules/unistdio/u8-asprintf: New file.
10582 * modules/unistdio/u8-printf-parse: New file.
10583 * modules/unistdio/u8-snprintf: New file.
10584 * modules/unistdio/u8-sprintf: New file.
10585 * modules/unistdio/u8-vasnprintf: New file.
10586 * modules/unistdio/u8-vasprintf: New file.
10587 * modules/unistdio/u8-vsnprintf: New file.
10588 * modules/unistdio/u8-vsprintf: New file.
10589 * modules/unistdio/u8-u8-asnprintf: New file.
10590 * modules/unistdio/u8-u8-asprintf: New file.
10591 * modules/unistdio/u8-u8-snprintf: New file.
10592 * modules/unistdio/u8-u8-sprintf: New file.
10593 * modules/unistdio/u8-u8-vasnprintf: New file.
10594 * modules/unistdio/u8-u8-vasprintf: New file.
10595 * modules/unistdio/u8-u8-vsnprintf: New file.
10596 * modules/unistdio/u8-u8-vsprintf: New file.
10597 * modules/unistdio/u16-asnprintf: New file.
10598 * modules/unistdio/u16-asprintf: New file.
10599 * modules/unistdio/u16-printf-parse: New file.
10600 * modules/unistdio/u16-snprintf: New file.
10601 * modules/unistdio/u16-sprintf: New file.
10602 * modules/unistdio/u16-vasnprintf: New file.
10603 * modules/unistdio/u16-vasprintf: New file.
10604 * modules/unistdio/u16-vsnprintf: New file.
10605 * modules/unistdio/u16-vsprintf: New file.
10606 * modules/unistdio/u16-u16-asnprintf: New file.
10607 * modules/unistdio/u16-u16-asprintf: New file.
10608 * modules/unistdio/u16-u16-snprintf: New file.
10609 * modules/unistdio/u16-u16-sprintf: New file.
10610 * modules/unistdio/u16-u16-vasnprintf: New file.
10611 * modules/unistdio/u16-u16-vasprintf: New file.
10612 * modules/unistdio/u16-u16-vsnprintf: New file.
10613 * modules/unistdio/u16-u16-vsprintf: New file.
10614 * modules/unistdio/u32-asnprintf: New file.
10615 * modules/unistdio/u32-asprintf: New file.
10616 * modules/unistdio/u32-printf-parse: New file.
10617 * modules/unistdio/u32-snprintf: New file.
10618 * modules/unistdio/u32-sprintf: New file.
10619 * modules/unistdio/u32-vasnprintf: New file.
10620 * modules/unistdio/u32-vasprintf: New file.
10621 * modules/unistdio/u32-vsnprintf: New file.
10622 * modules/unistdio/u32-vsprintf: New file.
10623 * modules/unistdio/u32-u32-asnprintf: New file.
10624 * modules/unistdio/u32-u32-asprintf: New file.
10625 * modules/unistdio/u32-u32-snprintf: New file.
10626 * modules/unistdio/u32-u32-sprintf: New file.
10627 * modules/unistdio/u32-u32-vasnprintf: New file.
10628 * modules/unistdio/u32-u32-vasprintf: New file.
10629 * modules/unistdio/u32-u32-vsnprintf: New file.
10630 * modules/unistdio/u32-u32-vsprintf: New file.
10631 * modules/unistdio/ulc-asnprintf-tests: New file.
10632 * modules/unistdio/ulc-vasnprintf-tests: New file.
10633 * modules/unistdio/ulc-vasprintf-tests: New file.
10634 * modules/unistdio/ulc-vsnprintf-tests: New file.
10635 * modules/unistdio/ulc-vsprintf-tests: New file.
10636 * modules/unistdio/u8-asnprintf-tests: New file.
10637 * modules/unistdio/u8-vasnprintf-tests: New file.
10638 * modules/unistdio/u8-vasprintf-tests: New file.
10639 * modules/unistdio/u8-vsnprintf-tests: New file.
10640 * modules/unistdio/u8-vsprintf-tests: New file.
10641 * modules/unistdio/u16-asnprintf-tests: New file.
10642 * modules/unistdio/u16-vasnprintf-tests: New file.
10643 * modules/unistdio/u16-vasprintf-tests: New file.
10644 * modules/unistdio/u16-vsnprintf-tests: New file.
10645 * modules/unistdio/u16-vsprintf-tests: New file.
10646 * modules/unistdio/u32-asnprintf-tests: New file.
10647 * modules/unistdio/u32-vasnprintf-tests: New file.
10648 * modules/unistdio/u32-vasprintf-tests: New file.
10649 * modules/unistdio/u32-vsnprintf-tests: New file.
10650 * modules/unistdio/u32-vsprintf-tests: New file.
10651 * MODULES.html.sh (Unicode string functions): Add the new modules.
10653 2007-07-01 Bruno Haible <bruno@clisp.org>
10655 * lib/sprintf.c (sprintf): Limit the available length estimation,
10656 to avoid address wraparound.
10657 * lib/vsprintf.c (vsprintf): Likewise.
10658 * modules/sprintf-posix (Dependencies): Add stdint.
10659 * modules/vsprintf-posix (Dependencies): Likewise.
10661 2007-07-01 Bruno Haible <bruno@clisp.org>
10663 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
10664 Windows PATH as well. Conservative double-quoting. Comments.
10666 2007-07-01 Bruno Haible <bruno@clisp.org>
10667 Eric Blake <ebb9@byu.net>
10668 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10670 * gnulib-tool (self_abspathname): Fix algorithm to cope with
10671 empty components in $PATH, denoting '.'.
10673 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10675 * gnulib-tool: Fix indentation.
10676 (func_create_megatestdir): Likewise.
10677 Report by Bruno Haible.
10679 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10681 Sync from Automake.
10682 * build-aux/gnupload: Fix shell portability issues with for loops.
10683 Report by Karl Berry.
10685 2007-06-29 Simon Josefsson <simon@josefsson.org>
10687 * build-aux/maint.mk (POURL): Use translationproject.org.
10689 2007-06-27 Simon Josefsson <simon@josefsson.org>
10690 Bruno Haible <bruno@clisp.org>
10692 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
10693 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
10694 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
10695 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
10696 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
10698 2007-06-27 Bruno Haible <bruno@clisp.org>
10700 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
10701 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
10703 2007-06-26 Karl Berry <karl@gnu.org>
10705 * MODULES.html.sh: remove xreadlink-with-size.
10707 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
10709 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
10710 method that I hope also handles the double-include problem noted
10712 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
10714 2007-06-23 Bruno Haible <bruno@clisp.org>
10716 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10717 Don't let the 'mostlyclean' target fail if the last subdirectory could
10719 Reported by Karl Berry.
10721 2007-06-23 Bruno Haible <bruno@clisp.org>
10723 * gnulib-tool (echo): Add a speedier workaround for ksh.
10724 * tests/test-echo.sh: Likewise.
10726 2007-06-23 Bruno Haible <bruno@clisp.org>
10728 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
10729 * tests/test-echo.sh: Likewise.
10731 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10733 * gnulib-tool (IFS): Initialize early, so we don't set it to
10735 (self_abspathname): Rewrite algorithm to set it, reindent.
10736 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
10737 (func_create_megatestdir): Merge some sed scripts.
10739 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
10741 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
10742 exposed by Sun Studio 11 cc on Solaris 8.
10744 2007-06-22 Bruno Haible <bruno@clisp.org>
10746 * gnulib-tool (echo): Ensure the echo primitive does not interpret
10748 * tests/test-echo.sh: New file.
10750 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10752 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
10753 simplify `sed_replace_build_aux' scripts, they are portable but
10754 echoing them with `echo' is not.
10755 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
10757 2007-06-21 Karl Berry <karl@gnu.org>
10759 * config/srclist.txt: guess we can't handle the licenses via
10760 srclist at the moment.
10762 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
10764 * MODULES.html.sh: Add include_next.
10765 * modules/include_next: New file.
10767 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
10769 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
10771 (gl_CHECK_NEXT_HEADERS): New macro.
10772 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
10773 the obsolescent gl_ABSOLUTE_HEADER.
10774 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
10775 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
10776 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
10777 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10778 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10779 * m4/math_h.m4 (gl_MATH_H): Likewise.
10780 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10781 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10782 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10783 * m4/stdint.m4 (gl_STDINT_H): Likewise.
10784 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10785 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10786 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10787 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10788 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10789 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10790 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10791 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10792 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10793 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10794 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10795 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10796 * m4/inttypes.m4 (gl_INTTYPES_H): Define
10797 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
10798 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
10799 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
10800 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
10801 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
10802 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
10803 * lib/float_.h: Likewise.
10804 * lib/inttypes_.h: Likewise.
10805 * lib/math_.h: Likewise.
10806 * lib/search_.h: Likewise.
10807 * lib/signal_.h: Likewise.
10808 * lib/stdint_.h: Likewise.
10809 * lib/stdio_.h: Likewise.
10810 * lib/stdlib_.h: Likewise.
10811 * lib/string_.h: Likewise.
10812 * lib/sys_stat_.h: Likewise.
10813 * lib/sys_time_.h: Likewise.
10814 * lib/time_.h: Likewise.
10815 * lib/unistd_.h: Likewise.
10816 * lib/wchar_.h: Likewise.
10817 * lib/wctype_.h: Likewise.
10818 * lib/dirent_.h: Likewise.
10819 * lib/iconv_.h: Likewise.
10820 * lib/locale_.h: Likewise.
10821 * lib/netinet_in_.h: Likewise.
10822 * lib/sys_select_.h: Likewise.
10823 * lib/sys_socket_.h: Likewise.
10824 * lib/sysexits_.h: Likewise.
10825 * modules/fcntl (Depends-on): Depend on include_next, not
10827 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
10828 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
10829 * modules/fchdir: Likewise.
10830 * modules/float: Likewise.
10831 * modules/iconv_open: Likewise.
10832 * modules/inttypes: Likewise.
10833 * modules/locale: Likewise.
10834 * modules/math: Likewise.
10835 * modules/netinet_in: Likewise.
10836 * modules/search: Likewise.
10837 * modules/signal: Likewise.
10838 * modules/stdint: Likewise.
10839 * modules/stdio: Likewise.
10840 * modules/stdlib: Likewise.
10841 * modules/string: Likewise.
10842 * modules/sys_select: Likewise.
10843 * modules/sys_socket: Likewise.
10844 * modules/sys_stat: Likewise.
10845 * modules/sys_time: Likewise.
10846 * modules/sysexits: Likewise.
10847 * modules/time: Likewise.
10848 * modules/unistd: Likewise.
10849 * modules/wchar: Likewise.
10850 * modules/wctype: Likewise.
10851 * modules/sys_stat: Change maintainer to "all".
10852 * modules/unistd: Likewise.
10854 2007-06-20 Karl Berry <karl@gnu.org>
10856 * config/srclist.txt: track www changes in license files.
10858 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
10860 * build-aux/bootstrap: Remove stray dot.
10861 Make sure build_aux settings are honored when linking
10862 gnulib_extra_files.
10864 2007-06-19 Eric Blake <ebb9@byu.net>
10866 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10867 Allow compilation on cygwin.
10869 2007-06-19 Jim Meyering <jim@meyering.net>
10871 xreadlink-with-size: Remove module. No longer used.
10872 Ex-callers now use xreadlink or mreadlink-with-size.
10873 * modules/xreadlink-with-size: Remove module.
10874 * lib/xreadlink-with-size.c: Remove file.
10875 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
10876 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
10877 just before the function definition *is* accurate.
10879 Eliminate one way canonicalize_filename_mode could exit.
10880 * lib/canonicalize.c (canonicalize_filename_mode):
10881 Use mreadlink_with_size, not xreadlink_with_size.
10883 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
10885 Detect porting problems to FreeBSD/arm, which has time_t wider than
10886 long int. Original problem reported for GNU diff by Xin Li in
10887 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
10888 * modules/getdate (Depends-on): Add intprops, verify.
10889 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
10890 is an integer type no wider than long int.
10892 2007-06-18 Jim Meyering <jim@meyering.net>
10894 New module: mreadlink-with-size.
10895 * MODULES.html.sh: Add mreadlink-with-size.
10896 * modules/mreadlink-with-size: New module
10897 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
10898 not xreadlink-with-size.
10899 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
10901 2007-06-16 Bruno Haible <bruno@clisp.org>
10903 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
10904 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
10905 Reported by Gary V. Vaughan <gary@gnu.org>.
10907 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
10909 Revamp lchown so that it lives in unistd.h where it belongs.
10910 * lib/lchown.h: Remove.
10911 * lib/dirchownmod.c: Don't include lib/lchown.h.
10912 * lib/fchownat.c: Likewise.
10913 * lib/openat.c: Likewise.
10914 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
10915 does not follow symlinks.
10916 (EOPNOTSUPP): Define if not defined.
10917 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
10919 (lchown): New decl.
10920 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
10921 Do not check for lchown decl.
10922 Set REPLACE_LCHOWN.
10923 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
10925 * modules/chown: Make it clear it follows symlinks.
10926 * modules/lchown: Make it clear it doesn't follow symlinks.
10927 (Files): Remove lib/lchown.h
10928 (Depends-on): Add unistd.
10929 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
10930 (Include): Include <unistd.h>, not "lchown.h".
10931 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
10934 2007-06-15 Jim Meyering <jim@meyering.net>
10936 Change license (GPL to LGPL) of fsusage and dependents.
10937 * modules/fsusage (License): Change to LGPL.
10938 * modules/full-read (License): Likewise.
10939 * modules/full-write (License): Likewise.
10940 * modules/safe-read (License): Likewise.
10941 * modules/safe-write (License): Likewise.
10943 2007-06-14 Ben Pfaff <blp@gnu.org>
10945 Missing part of allocsa -> malloca transition.
10946 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
10949 2007-06-12 Bruno Haible <bruno@clisp.org>
10951 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
10952 to ia64, x86_64, i386.
10953 Reported by Eric Blake.
10955 2007-06-12 Bruno Haible <bruno@clisp.org>
10957 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
10958 cross-compiling to x86_64.
10960 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
10962 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
10963 glitch reported by Ralf Wildenhues in
10964 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
10966 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
10969 2007-06-11 Bruno Haible <bruno@clisp.org>
10971 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
10972 replacement string.
10973 Reported by Eric Blake.
10975 2007-06-10 Bruno Haible <bruno@clisp.org>
10977 Prepare vasnprintf code for use with Unicode strings.
10978 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
10979 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
10981 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
10982 a_u32_string variants.
10983 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
10984 * lib/printf-args.c: Don't include config.h and the specification
10985 header if PRINTF_FETCHARGS is already defined.
10986 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
10987 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
10988 TYPE_U16_STRING, TYPE_U32_STRING.
10989 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
10990 u16_directive, u16_directives, u32_directive, u32_directives): New
10992 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
10994 * lib/printf-parse.c: Don't include config.h and the specification
10995 header if PRINTF_PARSE is already defined. Eliminate the set of
10996 parameters for WIDE_CHAR_VERSION; the user of this file must provide
10997 them now. Include c-ctype.h.
10998 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
10999 directive and CHAR_T_ONLY_ASCII.
11000 * lib/vasnprintf.c: Don't include config.h and the specification header
11001 if VASNPRINTF is already defined.
11002 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11003 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11004 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11005 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11006 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11007 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11009 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11010 pad_ourselves also in this case, with the 'c' and 's' directives, and
11011 with a different notion of "width".
11012 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11014 2007-06-10 Bruno Haible <bruno@clisp.org>
11016 * modules/unistr/u32-mbsnlen: New file.
11017 * lib/unistr/u32-mbsnlen.c: New file.
11019 * modules/unistr/u16-mbsnlen: New file.
11020 * lib/unistr/u16-mbsnlen.c: New file.
11022 * modules/unistr/u8-mbsnlen: New file.
11023 * lib/unistr/u8-mbsnlen.c: New file.
11025 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11028 2007-06-10 Bruno Haible <bruno@clisp.org>
11030 * lib/string_.h (mbsnlen): New declaration.
11031 * lib/mbsnlen.c: New file.
11032 * m4/mbsnlen.m4: New file.
11033 * modules/mbsnlen: New file.
11034 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11035 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11036 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11038 2007-06-10 Bruno Haible <bruno@clisp.org>
11040 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11042 2007-06-10 Bruno Haible <bruno@clisp.org>
11044 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11045 * lib/mbuiter.h: Likewise.
11047 2007-06-10 Bruno Haible <bruno@clisp.org>
11049 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11052 2007-06-10 Karl Berry <karl@gnu.org>
11054 * config/srclist.txt: remove gettext entries, Bruno prefers
11055 to update individually.
11057 2007-06-10 Bruno Haible <bruno@clisp.org>
11059 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11060 'maxlen'. Ensure only length + width bytes are allocated, not
11061 length + 1 + width.
11063 2007-06-09 Bruno Haible <bruno@clisp.org>
11065 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11066 (CHAR_T): Remove macro.
11067 (VASNPRINTF): Update.
11069 2007-06-09 Bruno Haible <bruno@clisp.org>
11071 * MODULES.html.sh (Unicode string functions): Add the new modules.
11073 * modules/uniconv/u32-conv-to-enc: New file.
11074 * lib/uniconv/u32-conv-to-enc.c: New file.
11075 * modules/uniconv/u32-conv-to-enc-tests: New file.
11076 * tests/uniconv/test-u32-conv-to-enc.c: New file.
11078 * modules/uniconv/u16-conv-to-enc: New file.
11079 * lib/uniconv/u16-conv-to-enc.c: New file.
11080 * lib/uniconv/u-conv-to-enc.h: New file.
11081 * modules/uniconv/u16-conv-to-enc-tests: New file.
11082 * tests/uniconv/test-u16-conv-to-enc.c: New file.
11084 * modules/uniconv/u8-conv-to-enc: New file.
11085 * lib/uniconv/u8-conv-to-enc.c: New file.
11086 * modules/uniconv/u8-conv-to-enc-tests: New file.
11087 * tests/uniconv/test-u8-conv-to-enc.c: New file.
11089 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11090 u32_conv_to_encoding): New declarations.
11092 2007-06-09 Bruno Haible <bruno@clisp.org>
11094 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11096 2007-06-09 Bruno Haible <bruno@clisp.org>
11098 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
11099 * modules/malloca: Renamed from modules/allocsa, updated.
11100 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
11101 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
11102 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
11103 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
11104 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
11105 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
11106 * modules/xmalloca: Renamed from modules/xallocsa, updated.
11107 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
11108 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
11109 * modules/c-strcasestr (Depends-on): Update.
11110 * lib/c-strcasestr.c: Update.
11111 * modules/c-strstr (Depends-on): Update.
11112 * lib/c-strstr.c: Update.
11113 * modules/canonicalize-lgpl (Depends-on): Update.
11114 * lib/canonicalize-lgpl.c: Update.
11115 * modules/clean-temp (Depends-on): Update.
11116 * lib/clean-temp.c: Update.
11117 * modules/csharpcomp (Depends-on): Update.
11118 * lib/csharpcomp.c: Update.
11119 * modules/csharpexec (Depends-on): Update.
11120 * lib/csharpexec.c: Update.
11121 * modules/javacomp (Depends-on): Update.
11122 * lib/javacomp.c: Update.
11123 * modules/javaexec (Depends-on): Update.
11124 * lib/javaexec.c: Update.
11125 * modules/mbscasestr (Depends-on): Update.
11126 * lib/mbscasestr.c: Update.
11127 * modules/mbsstr (Depends-on): Update.
11128 * lib/mbsstr.c: Update.
11129 * modules/setenv (Depends-on): Update.
11130 * lib/setenv.c: Update.
11131 * modules/strcasestr (Depends-on): Update.
11132 * lib/strcasestr.c: Update.
11133 * modules/striconveha (Depends-on): Update.
11134 * lib/striconveha.c: Update.
11135 * modules/relocatable-prog-wrapper (Files): Update.
11136 * lib/relocwrapper.c: Update.
11137 * build-aux/install-reloc: Update.
11138 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
11140 2007-06-08 Bruno Haible <bruno@clisp.org>
11143 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
11144 * lib/fpurge.c (fpurge): Likewise.
11145 * lib/freading.c (freading): Likewise.
11146 * lib/fseeko.c (rpl_fseeko): Likewise.
11147 * lib/fseterr.c (fseterr): Likewise.
11148 * lib/fwriting.c (fwriting): Likewise.
11149 * tests/test-fflush.c (main): Avoid a failure on uClibc.
11151 2007-06-08 Bruno Haible <bruno@clisp.org>
11153 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
11154 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
11155 * modules/gettext (Files): Add m4/intlmacosx.m4.
11157 2007-06-07 Bruno Haible <bruno@clisp.org>
11159 * modules/localename-tests: New file.
11160 * tests/test-localename.c: New file.
11162 New module 'localename'.
11163 * lib/localename.h: New file.
11164 * lib/localename.c: New file, from GNU gettext.
11165 * m4/localename.m4: New file.
11166 * modules/localename: New file.
11168 2007-06-07 Bruno Haible <bruno@clisp.org>
11170 Work around the lack of <wchar.h> on some builds of uClibc.
11171 * doc/headers/wchar.texi: Update.
11172 * lib/wchar_.h: Include <wchar.h> only if it exists.
11173 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
11174 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
11175 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
11177 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
11178 * modules/mbfile (Depends-on): Add wchar.
11179 * modules/mbiter (Depends-on): Likewise.
11180 * modules/mbuiter (Depends-on): Likewise.
11181 Reported by Simon Josefsson.
11183 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
11185 Work around problem reported by Steven M. Schweda in
11186 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
11187 Tru64 5.1B with the Compaq compiler environment installed declares
11188 an 'isblank' function but does not define it in the C library.
11189 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
11190 * lib/regex_internal.h (isblank): Likewise.
11191 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
11192 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11194 2007-06-05 Bruno Haible <bruno@clisp.org>
11196 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
11198 * modules/printf-safe: New file.
11199 * modules/fprintf-posix (Depends-on): Add printf-safe.
11200 * modules/printf-posix (Depends-on): Likewise.
11201 * modules/snprintf-posix (Depends-on): Likewise.
11202 * modules/sprintf-posix (Depends-on): Likewise.
11203 * modules/vasnprintf-posix (Depends-on): Likewise.
11204 * modules/vasprintf-posix (Depends-on): Likewise.
11205 * modules/vfprintf-posix (Depends-on): Likewise.
11206 * modules/vprintf-posix (Depends-on): Likewise.
11207 * modules/vsnprintf-posix (Depends-on): Likewise.
11208 * modules/vsprintf-posix (Depends-on): Likewise.
11209 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11210 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
11211 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
11212 "no" on i386, x86_64, ia64.
11213 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
11214 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11215 on i386, x86_64, ia64.
11216 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
11217 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11218 on i386, x86_64, ia64.
11219 * tests/test-vasnprintf-posix.c: Include float.h.
11220 (LDBL80_WORDS): New macro.
11221 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11222 on i386, x86_64, ia64.
11223 * tests/test-vasprintf-posix.c: Include float.h.
11224 (LDBL80_WORDS): New macro.
11225 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11226 on i386, x86_64, ia64.
11227 * tests/test-snprintf-posix.c: Include float.h.
11228 * tests/test-sprintf-posix.c: Likewise.
11229 * tests/test-vsnprintf-posix.c: Likewise.
11230 * tests/test-vsprintf-posix.c: Likewise.
11232 2007-06-05 Bruno Haible <bruno@clisp.org>
11234 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
11235 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
11236 non-IEEE numbers on i386, x86_64, ia64.
11237 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
11238 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
11239 * tests/test-isnanl.h: Include float.h.
11240 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
11242 2007-06-05 Bruno Haible <bruno@clisp.org>
11244 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
11245 also the %a / %A. Handle the %a / %A code before this extra handling.
11247 2007-06-05 Bruno Haible <bruno@clisp.org>
11249 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
11250 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
11252 2007-06-05 Bruno Haible <bruno@clisp.org>
11254 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
11255 typo in variable name.
11257 2007-06-05 Eric Blake <ebb9@byu.net>
11259 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
11260 Reported by Simon Josefsson.
11262 2007-06-04 Bruno Haible <bruno@clisp.org>
11264 Avoid test failures on some PowerPC platforms.
11265 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
11266 Define differently for PowerPC.
11267 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
11268 Reported by Gary V. Vaughan <gary@gnu.org>.
11270 2007-06-02 Bruno Haible <bruno@clisp.org>
11272 Fix test-stdint failure on FreeBSD/ia64.
11273 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
11274 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
11275 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
11276 * doc/headers/stdint.texi: Update.
11278 2007-06-01 Bruno Haible <bruno@clisp.org>
11280 * tests/test-binary-io.c (main): Pass a third argument to open().
11281 Reported by Gary V. Vaughan <gary@gnu.org>.
11283 2007-06-01 Bruno Haible <bruno@clisp.org>
11285 * doc/functions/frexpl.texi: Update for mingw.
11287 2007-06-01 Bruno Haible <bruno@clisp.org>
11289 * tests/test-lseek.c (main): Disable test of errno for invalid third
11291 * doc/functions/lseek.texi: Update.
11292 Reported by Gary V. Vaughan <gary@gnu.org>.
11294 2007-05-28 Bruno Haible <bruno@clisp.org>
11296 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
11298 2007-05-31 Eric Blake <ebb9@byu.net>
11300 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
11303 2007-05-30 Eric Blake <ebb9@byu.net>
11304 and Bruno Haible <bruno@clisp.org>
11306 Work around mingw test failures exposed by m4-1.4.9b.
11307 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
11308 * tests/test-unistd.c: Disable uid_t and git_t tests for the
11311 2007-05-30 Bruno Haible <bruno@clisp.org>
11313 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
11314 assuming that they are closed. Needed on HP-UX 11.
11316 2007-05-29 Bruno Haible <bruno@clisp.org>
11318 Fix a problem with #include_next.
11319 * lib/dirent_.h: Split the double-inclusion guard.
11320 * lib/fcntl_.h: Likewise.
11321 * lib/float_.h: Likewise.
11322 * lib/iconv_.h: Likewise.
11323 * lib/inttypes_.h: Likewise.
11324 * lib/locale_.h: Likewise.
11325 * lib/math_.h: Likewise.
11326 * lib/netinet_in_.h: Likewise.
11327 * lib/search_.h: Likewise.
11328 * lib/signal_.h: Likewise.
11329 * lib/stdint_.h: Likewise.
11330 * lib/stdio_.h: Likewise.
11331 * lib/stdlib_.h: Likewise.
11332 * lib/string_.h: Likewise.
11333 * lib/sys_select_.h: Likewise.
11334 * lib/sys_socket_.h: Likewise.
11335 * lib/sys_stat_.h: Likewise.
11336 * lib/sys_time_.h: Likewise.
11337 * lib/sysexits_.h: Likewise.
11338 * lib/time_.h: Likewise.
11339 * lib/unistd_.h: Likewise.
11340 * lib/wchar_.h: Likewise.
11341 * lib/wctype_.h: Likewise.
11343 2007-05-29 Bruno Haible <bruno@clisp.org>
11345 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
11348 2007-05-29 Bruno Haible <bruno@clisp.org>
11350 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
11352 Reported by Eric Blake.
11354 2007-05-29 Bruno Haible <bruno@clisp.org>
11356 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
11359 2007-05-29 Eric Blake <ebb9@byu.net>
11360 Bruno Haible <bruno@clisp.org>
11362 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
11365 2007-05-28 Eric Blake <ebb9@byu.net>
11367 * modules/closein-tests (test_closein_LDADD): Support test on
11368 cygwin with libtool.
11370 2007-05-28 Bruno Haible <bruno@clisp.org>
11372 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
11373 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11374 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11375 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11376 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11377 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11378 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11379 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11380 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11382 2007-05-28 Eric Blake <ebb9@byu.net>
11384 Unconditionally include <config.h> in unit tests.
11385 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
11386 * tests/test-allocsa.c, tests/test-arcfour.c,
11387 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
11388 tests/test-array_list.c, tests/test-array_oset.c,
11389 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
11390 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
11391 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
11392 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
11393 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
11394 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
11395 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
11396 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
11397 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
11398 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
11399 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
11400 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
11401 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
11402 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
11403 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
11404 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
11405 test-md5.c, test-memmem.c, test-printf-posix.c,
11406 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
11407 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
11408 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
11409 test-strcasestr.c, test-striconv.c, test-striconveh.c,
11410 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
11411 test-vasnprintf-posix2.c, test-vasnprintf.c,
11412 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
11413 test-vfprintf-posix.c, test-vprintf-posix.c,
11414 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
11415 test-xvasprintf.c: Likewise.
11417 2007-05-28 Bruno Haible <bruno@clisp.org>
11419 * gnulib-tool (func_import): Remember the --with-tests command-line
11420 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
11421 Reported by Eric Blake.
11423 2007-05-28 Bruno Haible <bruno@clisp.org>
11425 * modules/ftell-tests: New file.
11426 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
11427 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
11429 * lib/ftell.c: New file.
11430 * modules/ftell: New file.
11431 * m4/ftell.m4: New file.
11432 * doc/functions/ftell.texi: Update.
11433 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
11435 * lib/stdio_.h (rpl_ftell): New declaration.
11436 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
11439 2007-05-28 Eric Blake <ebb9@byu.net>
11441 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
11443 2007-05-28 Bruno Haible <bruno@clisp.org>
11445 * modules/fseek-tests: New file.
11446 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
11447 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
11449 * lib/fseek.c: New file.
11450 * modules/fseek: New file.
11451 * m4/fseek.m4: New file.
11452 * doc/functions/fseek.texi: Update.
11453 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
11455 * lib/stdio_.h (rpl_fseek): New declaration.
11456 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
11459 2007-05-28 Bruno Haible <bruno@clisp.org>
11461 * lib/stdio_.h (fflush): More comments.
11463 2007-05-28 Bruno Haible <bruno@clisp.org>
11465 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
11468 2007-05-28 Eric Blake <ebb9@byu.net>
11470 Improve lseek module.
11471 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
11472 * lib/unistd_.h (lseek): Scale back link warning message.
11473 * tests/test-lseek.c: Beef up test.
11474 * tests/test-lseek.sh: Exercise more facets of lseek.
11475 Reported by Bruno Haible.
11477 2007-05-28 Bruno Haible <bruno@clisp.org>
11479 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
11482 2007-05-27 Bruno Haible <bruno@clisp.org>
11484 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
11486 2007-05-27 Bruno Haible <bruno@clisp.org>
11488 * modules/openmp: New file.
11489 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
11492 2007-05-26 Bruno Haible <bruno@clisp.org>
11494 * modules/chdir-long (Depends-on): Add fchdir.
11495 * modules/chdir-safer (Depends-on): Likewise.
11496 * modules/fts (Depends-on): Likewise.
11497 * modules/fts-lgpl (Depends-on): Likewise.
11498 * modules/openat (Depends-on): Likewise.
11499 * modules/savewd (Depends-on): Likewise.
11501 2007-05-24 Eric Blake <ebb9@byu.net>
11503 Fix lseek on mingw.
11504 * modules/lseek: New module.
11505 * m4/lseek.m4: New file.
11506 * lib/lseek.c: New file.
11507 * modules/lseek-tests: New file.
11508 * tests/test-lseek.c: New file.
11509 * tests/test-lseek.sh: New file.
11510 * MODULES.html.sh: Document lseek module.
11511 * modules/fflush (Depends-on): Add lseek, fseeko.
11512 * modules/fseeko (Depends-on): Likewise.
11513 * modules/ftello (Depends-on): Likewise.
11514 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
11516 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
11518 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
11519 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
11520 * lib/ftello.c (rpl_ftello): Likewise.
11521 * tests/test-fseeko.c (main): Test this.
11522 * tests/test-fseeko.sh: Likewise.
11523 * tests/test-ftello.c (main): Likewise.
11524 * tests/test-ftello.sh: Likewise.
11525 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
11526 implies replacing fseek.
11527 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
11529 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
11530 * modules/unistd (Makefile.am): Likewise.
11531 * lib/unistd_.h (lseek): Declare a replacement.
11532 * doc/functions/lseek.texi (lseek): Document this fix.
11533 * doc/functions/fseek.texi (fseek): Likewise.
11534 * doc/functions/ftell.texi (ftell): Likewise.
11536 2007-05-24 Bruno Haible <bruno@clisp.org>
11538 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
11539 in the printed representation of a NaN.
11540 * tests/test-vasprintf-posix.c (test_function): Likewise.
11541 * tests/test-snprintf-posix.h (test_function): Likewise.
11542 * tests/test-sprintf-posix.h (test_function): Likewise.
11543 Reported by Eric Blake.
11545 2007-05-23 Eric Blake <ebb9@byu.net>
11547 Fix fseeko/ftello on cygwin 1.5.24.
11548 * doc/functions/fseeko.texi (fseeko): Document the fix.
11549 * doc/functions/ftello.texi (ftello): Document the fix.
11550 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
11551 * doc/functions/stdout.text (stdout): New file.
11552 * doc/functions/stderr.text (stderr): New file.
11553 * doc/gnulib.texi (Function Substitutes): Use new files.
11554 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
11556 * tests/test-ftello.c (main): Likewise for ftello.
11557 * tests/test-fseeko.sh: New file.
11558 * tests/test-ftello.sh: New file.
11559 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
11560 with seekable stdin.
11561 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
11562 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
11563 (gl_REPLACE_FSEEKO): New macro.
11564 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
11565 * modules/fseeko (Files): Distribute fseeko.c.
11566 * modules/ftello (Files): Distribute ftello.c.
11567 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
11569 * lib/ftello.c (rpl_ftello): New file.
11570 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
11572 (gl_STDIN_LARGE_OFFSET): New macro.
11573 * modules/stdio (Makefile.am): Perform the replacement.
11574 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
11576 2007-05-23 Bruno Haible <bruno@clisp.org>
11578 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
11579 GNULIB_POSIXCHECK is defined.
11581 2007-05-21 Bruno Haible <bruno@clisp.org>
11583 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
11584 Check also the output for NaN arguments. When cross-compiling, guess
11586 * lib/vasnprintf.c: Update comments.
11587 * tests/test-vasnprintf-posix.c (strisnan): New function.
11588 (test_function): Use it.
11589 * tests/test-vasprintf-posix.c (strisnan): New function.
11590 (test_function): Use it.
11591 * tests/test-snprintf-posix.h (strisnan): New function.
11592 (test_function): Use it.
11593 * tests/test-sprintf-posix.h (strisnan): New function.
11594 (test_function): Use it.
11595 Reported by Eric Blake.
11597 2007-05-20 Bruno Haible <bruno@clisp.org>
11599 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
11600 numbers that fails on BeOS.
11601 * doc/functions/frexpl.texi: Update.
11603 2007-05-20 Jim Meyering <jim@meyering.net>
11605 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
11606 forced upon us by glibc-2.6.
11608 2007-05-20 Bruno Haible <bruno@clisp.org>
11610 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
11611 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
11612 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
11613 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
11614 NEED_PRINTF_INFINITE.
11615 (is_infinitel): New function.
11616 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
11617 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
11618 gl_PREREQ_VASNPRINTF_INFINITE.
11619 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
11620 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11621 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
11622 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
11623 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
11624 gl_PREREQ_VASNPRINTF_INFINITE.
11625 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11626 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11627 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11628 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11629 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11630 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11631 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11632 * doc/functions/fprintf.texi: Update.
11633 * doc/functions/printf.texi: Update.
11634 * doc/functions/snprintf.texi: Update.
11635 * doc/functions/sprintf.texi: Update.
11636 * doc/functions/vfprintf.texi: Update.
11637 * doc/functions/vprintf.texi: Update.
11638 * doc/functions/vsnprintf.texi: Update.
11639 * doc/functions/vsprintf.texi: Update.
11641 2007-05-20 Bruno Haible <bruno@clisp.org>
11643 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
11644 was not found in libc.
11645 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11647 2007-05-20 Bruno Haible <bruno@clisp.org>
11649 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
11650 printed as "-nan" instead of "nan".
11651 * tests/test-vasprintf-posix.c (test_function): Likewise.
11652 * tests/test-snprintf-posix.h (test_function): Likewise.
11653 * tests/test-sprintf-posix.h (test_function): Likewise.
11654 Needed for HP-UX 11.
11656 2007-05-20 Jim Meyering <jim@meyering.net>
11658 Fix buggy test for the fchownat-deref bug.
11659 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
11660 symlink required for the run-test. Without it, this test would
11661 always declare that fchownat doesn't work, and client code would
11662 unnecessarily use the replacement function with fixed libc.
11663 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
11664 Reported by Greg Schafer.
11666 2007-05-19 Bruno Haible <bruno@clisp.org>
11668 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
11669 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
11670 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
11671 Needed for IRIX 6.5 and Solaris 2.5.1.
11673 2007-05-19 Bruno Haible <bruno@clisp.org>
11675 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
11676 (test_function): Skip tests involving -0.0 on platforms where
11678 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
11679 (test_function): Skip tests involving -0.0 on platforms where
11681 * tests/test-snprintf-posix.h (have_minus_zero): New function.
11682 (test_function): Skip tests involving -0.0 on platforms where
11684 * tests/test-sprintf-posix.h (have_minus_zero): New function.
11685 (test_function): Skip tests involving -0.0 on platforms where
11687 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
11689 * tests/test-printf-posix.h (test_function): Likewise.
11690 * tests/test-printf-posix.output: Remove all -0.0 related results.
11691 Needed for IRIX 6.5.
11693 2007-05-19 Bruno Haible <bruno@clisp.org>
11695 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
11696 printed as "nan0x7fffffff" instead of "nan".
11697 * tests/test-vasprintf-posix.c (test_function): Likewise.
11698 * tests/test-snprintf-posix.h (test_function): Likewise.
11699 * tests/test-sprintf-posix.h (test_function): Likewise.
11700 * tests/test-fprintf-posix.h (NaN): Remove macro.
11701 (test_function): Remove all NaN related tests.
11702 * tests/test-printf-posix.h (NaN): Remove macro.
11703 (test_function): Remove all NaN related tests.
11704 * tests/test-printf-posix.output: Remove all NaN related results.
11705 Needed for IRIX 6.5.
11707 2007-05-19 Bruno Haible <bruno@clisp.org>
11709 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
11710 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11712 2007-05-19 Bruno Haible <bruno@clisp.org>
11714 * lib/float_.h: New file.
11715 * m4/float_h.m4: New file.
11716 * modules/float: New file.
11717 * modules/isnanl (Dependencies): Add float.
11718 * modules/isnanl-nolibm (Dependencies): Likewise.
11719 * modules/mathl (Dependencies): Likewise.
11720 * modules/printf-frexpl (Dependencies): Likewise.
11721 * modules/signbit (Dependencies): Likewise.
11722 * modules/vasnprintf (Dependencies): Likewise.
11723 * doc/headers/float.texi: Update.
11725 2007-05-19 Jim Meyering <jim@meyering.net>
11727 * lib/utimens.c (gl_futimens): Rename from futimens,
11728 now that glibc-2.6 declares futimens.
11729 * lib/utimens.h: Likewise.
11731 2007-05-19 Bruno Haible <bruno@clisp.org>
11733 Avoid test failures on mingw.
11734 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
11735 * tests/test-printf-posix.sh: Likewise.
11736 * tests/test-vfprintf-posix.sh: Likewise.
11737 * tests/test-vprintf-posix.sh: Likewise.
11739 2007-05-19 Bruno Haible <bruno@clisp.org>
11741 Fix *printf result for NaN, Inf, -0.0 on mingw.
11742 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
11743 * lib/vasnprintf.c: Include math.h and isnan.h.
11744 (is_infinite_or_zero): New function.
11745 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
11746 values in the %f, %F, %e, %E, %g, %G directives.
11747 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
11748 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11749 gl_PRINTF_INFINITE and test its result. Invoke
11750 gl_PREREQ_VASNPRINTF_INFINITE.
11751 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11752 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11753 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11754 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11755 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11756 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11757 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11758 * doc/functions/fprintf.texi: Update.
11759 * doc/functions/printf.texi: Update.
11760 * doc/functions/snprintf.texi: Update.
11761 * doc/functions/sprintf.texi: Update.
11762 * doc/functions/vfprintf.texi: Update.
11763 * doc/functions/vprintf.texi: Update.
11764 * doc/functions/vsnprintf.texi: Update.
11765 * doc/functions/vsprintf.texi: Update.
11767 2007-05-19 Bruno Haible <bruno@clisp.org>
11769 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
11770 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
11771 Instead of multiplying with 10^k, set extra_zeroes to k.
11772 (scale10_round_long_double): Remove function.
11774 2007-05-18 Bruno Haible <bruno@clisp.org>
11776 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
11777 introduced on 2007-05-06.
11779 2007-05-18 Bruno Haible <bruno@clisp.org>
11781 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
11783 * tests/test-vasprintf-posix.c (test_function): Likewise.
11784 * tests/test-snprintf-posix.h (test_function): Likewise.
11785 * tests/test-sprintf-posix.h (test_function): Likewise.
11787 2007-05-18 Bruno Haible <bruno@clisp.org>
11789 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
11790 (strmatch): New function.
11791 (test_function): Test the %f directive on numbers of various exponents.
11792 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
11793 (strmatch): New function.
11794 (test_function): Test the %f directive on numbers of various exponents.
11795 * tests/test-snprintf-posix.h (strmatch): New function.
11796 (test_function): Test the %f directive on numbers of various exponents.
11797 * tests/test-sprintf-posix.h (strmatch): New function.
11798 (test_function): Test the %f directive on numbers of various exponents.
11799 * tests/test-snprintf-posix.c (SIZEOF): New macro.
11800 * tests/test-sprintf-posix.c (SIZEOF): New macro.
11801 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
11802 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
11804 2007-05-18 Bruno Haible <bruno@clisp.org>
11806 Add support for 'long double' number output.
11807 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
11808 * lib/vasnprintf.c: Include math.h and float+.h.
11809 (mp_limb_t): New type.
11810 (GMP_LIMB_BITS): New macro.
11811 (mp_twolimb_t): New type.
11812 (GMP_TWOLIMB_BITS): New macro.
11814 (multiply, divide, convert_to_decimal, decode_long_double,
11815 scale10_round_long_double, scale10_round_decimal_long_double,
11816 floorlog10l): New functions.
11817 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
11818 for the %f, %F, %e, %E, %g, %G directives.
11819 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
11820 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11821 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
11822 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
11823 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11824 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11825 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11826 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11827 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11828 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11829 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11830 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
11831 * modules/snprintf-posix (Depends-on): Likewise.
11832 * modules/sprintf-posix (Depends-on): Likewise.
11833 * modules/vasnprintf-posix (Depends-on): Likewise.
11834 * modules/vasprintf-posix (Depends-on): Likewise.
11835 * modules/vfprintf-posix (Depends-on): Likewise.
11836 * modules/vsnprintf-posix (Depends-on): Likewise.
11837 * modules/vsprintf-posix (Depends-on): Likewise.
11838 * modules/vasnprintf (Files): Add lib/float+.h.
11839 * doc/functions/fprintf.texi: Update.
11840 * doc/functions/printf.texi: Update.
11841 * doc/functions/snprintf.texi: Update.
11842 * doc/functions/sprintf.texi: Update.
11843 * doc/functions/vfprintf.texi: Update.
11844 * doc/functions/vprintf.texi: Update.
11845 * doc/functions/vsnprintf.texi: Update.
11846 * doc/functions/vsprintf.texi: Update.
11848 2007-05-18 Bruno Haible <bruno@clisp.org>
11850 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
11852 2007-05-18 Bruno Haible <bruno@clisp.org>
11854 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
11855 for printing 64-bit integers. Needed for mingw.
11857 2007-05-18 Bruno Haible <bruno@clisp.org>
11859 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
11860 gl_FUNC_FREXPL_WORKS.
11861 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
11863 2007-05-18 Bruno Haible <bruno@clisp.org>
11865 * modules/frexpl-nolibm-tests: New file.
11867 * modules/frexpl-nolibm: New file.
11868 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
11870 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
11872 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
11873 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
11874 GCC 4.2, which otherwise issues a lot of warnings.
11875 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
11876 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
11878 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
11879 * modules/iconv_open (iconv.h): Likewise.
11880 * modules/locale (locale.h): Likewise.
11881 * modules/netinet_in (netinet/in.h): Likewise.
11882 * modules/sys_select (sys_select.h): Likewise.
11883 * modules/sys_socket (sys/socket.h): Likewise.
11884 * modules/sys_stat (sys/stat.h): Likewise.
11885 * modules/sysexits (sysexits.h): Likewise.
11886 * modules/unistd (unistd.h): Likewise.
11888 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11890 * modules/closein-tests (Makefile.am): Distribute
11893 2007-05-17 Bruno Haible <bruno@clisp.org>
11895 * tests/test-printf-posix.output: Renamed from
11896 tests/test-fprintf-posix.out.
11897 * modules/fprintf-posix-tests: Update.
11898 * modules/printf-posix-tests: Update.
11899 * modules/vfprintf-posix-tests: Update.
11900 * modules/vprintf-posix-tests: Update.
11901 * tests/test-fprintf-posix.sh: Update.
11902 * tests/test-printf-posix.sh: Update.
11903 * tests/test-vfprintf-posix.sh: Update.
11904 * tests/test-vprintf-posix.sh: Update.
11905 Reported by Ralf Wildenhues.
11907 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
11909 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
11910 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
11911 GCC 4.2, which otherwise issues a lot of warnings.
11912 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
11913 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
11914 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
11915 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
11916 it should no longer be needed.
11917 * lib/string_.h: Likewise.
11918 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
11919 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
11920 * modules/inttypes (inttypes.h): Likewise.
11921 * modules/math (math.h): Likewise.
11922 * modules/search (search.h): Likewise.
11923 * modules/signal (signal.h): Likewise.
11924 * modules/stdint (stdint.h): Likewise.
11925 * modules/stdio (stdio.h): Likewise.
11926 * modules/stdlib (stdlib.h): Likewise.
11927 * modules/string (string.h): Likewise.
11928 * modules/sys_time (sys/time.h): Likewise.
11929 * modules/time (time.h): Likewise.
11930 * modules/wchar (wchar.h): Likewise.
11931 * modules/wctype (wtype.h): Likewise.
11933 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
11935 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
11937 2007-05-13 Bruno Haible <bruno@clisp.org>
11939 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
11940 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11941 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
11942 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11943 (gl_PREREQ_STRTOK_R): Don't require it here.
11945 2007-05-13 Bruno Haible <bruno@clisp.org>
11947 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
11948 when used in C++ mode.
11950 2007-05-12 Bruno Haible <bruno@clisp.org>
11952 * lib/linebuffer.h: Tweak doc.
11953 * lib/linebuffer.c: Likewise.
11955 2007-05-12 James Youngman <jay@gnu.org>
11957 * lib/linebuffer.c (readlinebuffer_delim): New function,
11958 like readlinebuffer, but use a caller-specified delimiter.
11959 (readlinebuffer): Just call readlinebuffer_delim with '\n'
11961 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
11963 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
11965 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
11966 * modules/openat (Files): Remove openat-die.c.
11967 (Depends-on): Add openat-die.
11968 * modules/openat-die: New module.
11970 2007-05-06 Bruno Haible <bruno@clisp.org>
11972 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
11973 Update with info about Cygwin.
11974 * doc/functions/fprintf.texi: Update.
11975 * doc/functions/printf.texi: Update.
11976 * doc/functions/snprintf.texi: Update.
11977 * doc/functions/sprintf.texi: Update.
11978 * doc/functions/vfprintf.texi: Update.
11979 * doc/functions/vprintf.texi: Update.
11980 * doc/functions/vsnprintf.texi: Update.
11981 * doc/functions/vsprintf.texi: Update.
11982 Reported by Eric Blake.
11984 2007-05-06 Bruno Haible <bruno@clisp.org>
11986 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
11987 padding ourselves for the floating-point directives.
11988 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
11989 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
11990 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11991 gl_PRINTF_FLAG_ZERO and test its result. Invoke
11992 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
11993 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11994 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
11995 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11996 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11997 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11998 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11999 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12000 * tests/test-snprintf-posix.h (test_function): Also check the width
12001 and some flags in the %f directive.
12002 * tests/test-sprintf-posix.h (test_function): Likewise.
12003 * tests/test-vasnprintf-posix.c (test_function): Likewise.
12004 * tests/test-vasprintf-posix.c (test_function): Likewise.
12005 * doc/functions/fprintf.texi: Update.
12006 * doc/functions/printf.texi: Update.
12007 * doc/functions/snprintf.texi: Update.
12008 * doc/functions/sprintf.texi: Update.
12009 * doc/functions/vfprintf.texi: Update.
12010 * doc/functions/vprintf.texi: Update.
12011 * doc/functions/vsnprintf.texi: Update.
12012 * doc/functions/vsprintf.texi: Update.
12014 2007-05-06 Bruno Haible <bruno@clisp.org>
12016 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12017 pass the ' flag character to sprintf or snprintf.
12018 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12019 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12020 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12021 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12022 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12023 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12024 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12025 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12026 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12027 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12028 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12029 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12030 * tests/test-snprintf-posix.h (test_function): Also check the grouping
12032 * tests/test-sprintf-posix.h (test_function): Likewise.
12033 * tests/test-vasnprintf-posix.c (test_function): Likewise.
12034 * tests/test-vasprintf-posix.c (test_function): Likewise.
12035 * doc/functions/fprintf.texi: Update.
12036 * doc/functions/printf.texi: Update.
12037 * doc/functions/snprintf.texi: Update.
12038 * doc/functions/sprintf.texi: Update.
12039 * doc/functions/vfprintf.texi: Update.
12040 * doc/functions/vprintf.texi: Update.
12041 * doc/functions/vsnprintf.texi: Update.
12042 * doc/functions/vsprintf.texi: Update.
12044 2007-05-01 Bruno Haible <bruno@clisp.org>
12046 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12048 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
12050 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12051 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
12053 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
12055 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12056 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
12057 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12059 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
12061 * lib/argp-help.c (struct hol_entry): New member `ord'.
12062 (HOL_ENTRY_PTRCMP): Use ord for comparison
12063 (hol_sort): Initialize ord.
12065 2007-05-01 Bruno Haible <bruno@clisp.org>
12067 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12068 Reported by Eric Blake.
12069 * doc/gnulib.texi (Function Substitutes): Update.
12071 2007-05-01 Bruno Haible <bruno@clisp.org>
12073 * doc/functions.texi: Remove file, now redundant through
12074 doc/functions/*.texi.
12076 2007-05-01 Bruno Haible <bruno@clisp.org>
12078 * modules/argp (Depends-on): Add sleep.
12080 2007-05-01 Bruno Haible <bruno@clisp.org>
12082 * modules/sleep-tests: New file.
12083 * tests/test-sleep.c: New file.
12085 * modules/sleep: New file.
12086 * lib/sleep.c: New file.
12087 * m4/sleep.m4: New file.
12088 * lib/unistd_.h (sleep): New declaration.
12089 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12091 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12092 * doc/functions/sleep.texi: Document the sleep module.
12094 2007-05-01 Bruno Haible <bruno@clisp.org>
12096 * lib/sigprocmask.h: Remove file.
12097 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
12098 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
12099 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
12100 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
12101 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12102 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
12103 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
12104 HAVE_SIGSET_T as a shell variable.
12105 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
12106 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
12107 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
12108 (Depends-on): Add signal. Remove verify.
12109 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
12110 (Include): Mention <signal.h> instead of sigprocmask.h.
12111 * NEWS: Mention the change.
12112 * lib/fatal-signal.c: Don't include sigprocmask.h.
12114 2007-05-01 Bruno Haible <bruno@clisp.org>
12116 * modules/signal: New file.
12117 * lib/signal_.h: New file.
12118 * m4/signal_h.m4: New file.
12120 2007-05-01 Bruno Haible <bruno@clisp.org>
12122 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
12123 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
12124 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
12125 HAVE_WCTYPE_CTMP_BUG into wctype.h.
12127 2007-05-01 Bruno Haible <bruno@clisp.org>
12129 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
12131 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
12132 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
12133 * modules/sys_stat (Makefile.am): Substitute their values into
12136 2007-05-01 Bruno Haible <bruno@clisp.org>
12138 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
12139 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
12140 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
12142 2007-05-01 Bruno Haible <bruno@clisp.org>
12144 * doc/header/assert.texi: Undo last change: don't mention the gnulib
12145 'assert' module here.
12147 2007-05-01 Bruno Haible <bruno@clisp.org>
12149 * doc/functions/*.texi: New files.
12150 * doc/functions/google-ranking.txt: New file.
12151 * doc/gnulib.texi (Function Substitutes): New chapter.
12152 (ctime, inet_ntoa): Remove sections.
12153 * doc/ctime.texi: Remove file.
12154 * doc/inet_ntoa.texi: Remove file.
12155 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
12157 (%.info): New rule, specifying a --reference-limit.
12159 2007-05-01 Bruno Haible <bruno@clisp.org>
12161 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
12163 2007-05-01 Bruno Haible <bruno@clisp.org>
12165 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
12166 the portability of 'mkdir' to mingw systems.
12168 2007-05-01 Bruno Haible <bruno@clisp.org>
12170 * doc/headers/google-ranking.txt: New file.
12172 2007-04-30 Eric Blake <ebb9@byu.net>
12174 Prefer fseeko to fseek.
12175 * modules/getpass (Depends-on): Add fseeko.
12176 * lib/getpass.c (getpass): Use fseeko, not fseek.
12178 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
12180 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
12181 assumes the sorting is stable, while most qsort implementations
12182 are not. Use argument addresses to ensure they never compare as
12185 * tests/test-argp-2.sh (usage-indent test): Fix output
12186 (func_compare): Restore diff options
12187 * tests/test-argp.c: Restore #include "progname.h"
12189 2007-04-29 Bruno Haible <bruno@clisp.org>
12191 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
12192 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12193 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
12194 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12195 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
12196 (configure.ac): Define CHECK_SNPRINTF_POSIX.
12197 (TESTS, check_PROGRAMS): Add test-snprintf.
12198 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
12199 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
12200 (TESTS, check_PROGRAMS): Add test-vsnprintf.
12201 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
12202 assertions that fail on HP-UX, OSF/1, or IRIX.
12203 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
12205 2007-04-29 Bruno Haible <bruno@clisp.org>
12207 * MODULES.html.sh (posix_functions): Remove 'contents'.
12209 2007-04-29 Karl Berry <karl@gnu.org>
12211 * config/srclist.txt (gendocs_template_min): new entry.
12213 2007-04-29 Bruno Haible <bruno@clisp.org>
12215 Work around fpurge bug on BSD systems.
12216 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
12217 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
12218 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
12219 fpurge to rpl_fpurge if the system already has this function.
12220 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
12221 the case where the system already has this function. Correct invariants
12223 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
12226 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
12228 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
12229 proposed by Sven Verdoolaege.
12231 * tests/test-argp.c: Fix option ordering. Test deeply clustered
12233 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
12234 (usage and help tests): Update
12236 2007-04-29 Bruno Haible <bruno@clisp.org>
12238 * tests/test-fflush.c (main): Use a file of size 17, not 10.
12239 Print more information in case of failure. Disable a test on BeOS.
12241 2007-04-29 Bruno Haible <bruno@clisp.org>
12243 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
12244 This helps debugging on systems on which no gdb is available.
12246 2007-04-29 Bruno Haible <bruno@clisp.org>
12248 * lib/freading.h: Improve comments.
12249 * lib/fwriting.h: Likewise.
12250 * tests/test-freading.c (main): Don't check freading immediately after
12251 repositioning. Needed for glibc.
12253 2007-04-29 Bruno Haible <bruno@clisp.org>
12255 * lib/freading.c (freading): Trivial simplification.
12257 2007-04-28 Bruno Haible <bruno@clisp.org>
12259 * tests/test-fwriting.c (main): Also test the interaction between
12260 fflush and fwriting.
12261 * modules/fwriting-tests (Depends-on): Add fflush.
12263 * tests/test-freading.c (main): Also test the interaction between
12264 fflush and freading.
12265 * modules/freading-tests (Depends-on): Add fflush.
12267 2007-04-28 Bruno Haible <bruno@clisp.org>
12269 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
12271 Suggested by Eric Blake.
12273 2007-04-28 Jim Meyering <jim@meyering.net>
12275 Avoid false-negative in gl_STDINT_H's C99 conformance test.
12276 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
12277 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
12279 2007-04-27 Eric Blake <ebb9@byu.net>
12281 * doc/headers/assert.texi (assert.h): Document assert module use.
12283 2007-04-27 Bruno Haible <bruno@clisp.org>
12285 * doc/headers/*.texi: New files.
12286 * doc/gnulib.texi (Header File Substitutes): New chapter.
12287 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
12289 (standards.info ,standards.html, standards.dvi): Update dependencies.
12290 (mostlyclean, clean): New targets.
12292 2007-04-27 Bruno Haible <bruno@clisp.org>
12294 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
12295 * modules/sysexits (Files, Makefile.am): Update.
12297 * lib/sys_socket_.h: Renamed from lib/socket_.h.
12298 * modules/sys_socket (Files, Makefile.am): Update.
12300 * lib/sys_stat_.h: Renamed from lib/stat_.h.
12301 * modules/sys_stat (Files, Makefile.am): Update.
12303 2007-04-27 Eric Blake <ebb9@byu.net>
12305 * lib/freading.h: Improve comments.
12306 * lib/fwriting.h: Likewise.
12307 * lib/fflush.c: Likewise.
12309 Fix closein for mingw.
12310 * modules/closein-tests: Add tests for closein.
12311 * tests/test-closein.c: New file.
12312 * tests/test-closein.sh: Likewise.
12313 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
12314 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
12316 2007-04-27 Bruno Haible <bruno@clisp.org>
12318 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
12320 * lib/math_.h [__DECC]: Likewise.
12321 * lib/stdio_.h [__DECC]: Likewise.
12322 * lib/stdlib_.h [__DECC]: Likewise.
12323 * lib/string_.h [__DECC]: Likewise.
12324 * lib/time_.h [__DECC]: Likewise.
12325 * lib/wchar_.h [__DECC]: Likewise.
12326 * lib/wctype_.h [__DECC]: Likewise.
12328 2007-04-27 Bruno Haible <bruno@clisp.org>
12330 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
12332 2007-04-27 Bruno Haible <bruno@clisp.org>
12334 * lib/fflush.c: Add comments.
12335 * modules/fpurge-tests (Depends-on): Add fflush.
12336 * modules/freadable-tests (Depends-on): Likewise.
12337 * modules/fwritable-tests (Depends-on): Likewise.
12339 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
12341 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
12342 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
12343 Report by Bruno Haible <bruno@clisp.org>.
12345 2007-04-26 Eric Blake <ebb9@byu.net>
12347 Fix fflush on mingw.
12348 * modules/fflush (Depends-on): Add freading.
12349 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
12352 2007-04-26 Eric Blake <ebb9@byu.net>
12353 and Bruno Haible <bruno@clisp.org>
12355 Implement freading and fwriting.
12356 * lib/freading.c: New file.
12357 * lib/freading.h: Likewise.
12358 * m4/freading.m4: Likewise.
12359 * modules/freading: Likewise.
12360 * modules/freading-tests: Likewise.
12361 * tests/test-freading.c: Likewise.
12362 * lib/fwriting.c: New file.
12363 * lib/fwriting.h: Likewise.
12364 * m4/fwriting.m4: Likewise.
12365 * modules/fwriting: Likewise.
12366 * modules/fwriting-tests: Likewise.
12367 * tests/test-fwriting.c: Likewise.
12368 * MODULES.html.sh (File stream based Input/Output): Mention them.
12370 2007-04-26 Bruno Haible <bruno@clisp.org>
12372 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
12373 'long' when we assume it.
12374 Suggested by Eric Blake.
12376 2007-04-26 Bruno Haible <bruno@clisp.org>
12378 Ensure fseeko, ftello are declared on glibc systems.
12379 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
12380 * modules/fseeko (configure.ac-early): Likewise.
12381 * modules/ftello (configure.ac-early): Likewise.
12382 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
12383 AC_FUNC_FSEEKO for this.
12384 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
12385 (gl_CHECK_FSEEKO): Remove macro.
12387 2007-04-26 Bruno Haible <bruno@clisp.org>
12389 * tests/test-fflush.c (main): Also check the ftell result after
12390 fflush and fseek/fseeko.
12391 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
12392 file descriptor position cache in the stream.
12393 * lib/fseeko.c (rpl_fseeko): Likewise.
12395 2007-04-26 Bruno Haible <bruno@clisp.org>
12397 * modules/fflush-tests (Depends-on): Add fseeko.
12399 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
12400 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12402 * lib/argz_.h: ensure error_t definition is obtained in same
12403 mechanism system argz.h would have.
12404 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
12405 argz facilities are known bad. Err on the side of caution if
12408 2007-04-25 Eric Blake <ebb9@byu.net>
12410 * lib/fpurge.c (includes): Use stdlib.h for free.
12411 * tests/test-fflush.c (main): Also test fflush-fseeko.
12413 2007-04-25 Bruno Haible <bruno@clisp.org>
12415 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
12416 * lib/fseeko.c: New file.
12417 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
12418 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
12419 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
12421 (gl_FUNC_FSEEKO): Invoke it.
12422 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
12423 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
12424 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
12426 2007-04-25 Bruno Haible <bruno@clisp.org>
12428 * modules/fflush (Depends-on): Add ftello.
12430 2007-04-25 Bruno Haible <bruno@clisp.org>
12432 * modules/ftello-tests: New file.
12433 * tests/test-ftello.c: New file.
12435 * modules/ftello: New file.
12436 * m4/ftello.m4: New file.
12437 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
12439 * lib/stdio_.h (ftello): New declaration.
12440 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
12443 2007-04-25 Bruno Haible <bruno@clisp.org>
12445 * modules/fseeko-tests: New file.
12446 * tests/test-fseeko.c: New file.
12448 * modules/fseeko: New file.
12449 * m4/fseeko.m4: New file.
12450 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
12452 * lib/stdio_.h (fseeko): New declaration.
12453 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
12456 2007-04-25 Bruno Haible <bruno@clisp.org>
12458 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
12460 2007-04-25 Bruno Haible <bruno@clisp.org>
12462 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
12463 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
12464 * tests/test-unistd.c: Likewise.
12465 * tests/test-fcntl.c: Likewise.
12467 2007-04-23 Eric Blake <ebb9@byu.net>
12469 * lib/fflush.c: Fix missing include.
12470 Reported by Bruno Haible.
12472 2007-04-23 Bruno Haible <bruno@clisp.org>
12474 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
12475 Reported by Eric Blake.
12477 2007-04-23 Bruno Haible <bruno@clisp.org>
12479 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
12481 2007-04-23 Bruno Haible <bruno@clisp.org>
12483 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
12485 2007-04-23 Bruno Haible <bruno@clisp.org>
12487 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
12488 Needed on HP-UX 11.
12490 2007-04-16 Eric Blake <ebb9@byu.net>
12492 Make fflush rely on fpurge.
12493 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
12494 open coding all variants.
12495 * modules/fflush (Depends-on): Add fpurge and unistd.
12496 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
12497 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
12499 Fix --with-tests compilation on cygwin.
12500 * modules/argmatch-tests (Makefile.am): List gnulib library first
12502 * modules/argp-tests (Makefile.am): Likewise.
12503 * modules/array-list-tests (Makefile.am): Likewise.
12504 * modules/array-oset-tests (Makefile.am): Likewise.
12505 * modules/avltree-list-tests (Makefile.am): Likewise.
12506 * modules/avltree-oset-tests (Makefile.am): Likewise.
12507 * modules/avltreehash-list-tests (Makefile.am): Likewise.
12508 * modules/carray-list-tests (Makefile.am): Likewise.
12509 * modules/dirname-tests (Makefile.am): Likewise.
12510 * modules/frexp-tests (Makefile.am): Likewise.
12511 * modules/isnanl-tests (Makefile.am): Likewise.
12512 * modules/linked-list-tests (Makefile.am): Likewise.
12513 * modules/linkedhash-list-tests (Makefile.am): Likewise.
12514 * modules/lock-tests (Makefile.am): Likewise.
12515 * modules/rbtree-list-tests (Makefile.am): Likewise.
12516 * modules/rbtree-oset-tests (Makefile.am): Likewise.
12517 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12518 * modules/tls-tests (Makefile.am): Likewise.
12519 * modules/tsearch-tests (Makefile.am): Likewise.
12520 * modules/xvasprintf-tests (Makefile.am): Likewise.
12522 Fix fpurge for cygwin.
12523 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
12525 * modules/fpurge-tests (Depends-on): Clean up trash.
12527 2007-04-16 Simon Josefsson <simon@josefsson.org>
12529 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
12531 * m4/autobuild.m4: Re-indent.
12533 2007-04-13 Bruno Haible <bruno@clisp.org>
12535 * modules/fpurge-tests: New file.
12536 * tests/test-fpurge.c: New file.
12538 * modules/fpurge: New file.
12539 * lib/fpurge.h: New file.
12540 * lib/fpurge.c: New file.
12541 * m4/fpurge.m4: New file.
12543 2007-04-13 Bruno Haible <bruno@clisp.org>
12545 * modules/fbufmode-tests: New file.
12546 * tests/test-fbufmode.c: New file.
12548 * modules/fbufmode: New file.
12549 * lib/fbufmode.h: New file.
12550 * lib/fbufmode.c: New file.
12551 * m4/fbufmode.m4: New file.
12553 2007-04-13 Bruno Haible <bruno@clisp.org>
12555 * modules/fwritable-tests: New file.
12556 * tests/test-fwritable.c: New file.
12558 * modules/fwritable: New file.
12559 * lib/fwritable.h: New file.
12560 * lib/fwritable.c: New file.
12561 * m4/fwritable.m4: New file.
12563 2007-04-13 Bruno Haible <bruno@clisp.org>
12565 * modules/freadable-tests: New file.
12566 * tests/test-freadable.c: New file.
12568 * modules/freadable: New file.
12569 * lib/freadable.h: New file.
12570 * lib/freadable.c: New file.
12571 * m4/freadable.m4: New file.
12573 2007-04-13 Bruno Haible <bruno@clisp.org>
12575 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
12578 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
12580 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
12581 gzip bootstrap.conf to avoid dragging in i18n machinery.
12582 (gnulib_tool_option): Use it.
12584 2007-04-13 Bruno Haible <bruno@clisp.org>
12586 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
12588 * tests/test-vasprintf-posix.c (test_function): Likewise.
12589 * tests/test-snprintf-posix.h (test_function): Likewise.
12590 * tests/test-sprintf-posix.h (test_function): Likewise.
12591 * tests/test-fprintf-posix.h (test_function): Likewise.
12592 * tests/test-printf-posix.h (test_function): Likewise.
12593 * tests/test-fprintf-posix.out: Likewise.
12595 2007-04-13 Bruno Haible <bruno@clisp.org>
12597 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
12598 * modules/tls-tests (configure.ac): Likewise.
12599 Reported by Arto C. Nirkko <anirkko@insel.ch>.
12601 2007-04-13 Bruno Haible <bruno@clisp.org>
12603 * lib/tls.c (glthread_tls_get): Fix return type.
12604 Patch by Arto C. Nirkko <anirkko@insel.ch>.
12606 2007-04-12 Eric Blake <ebb9@byu.net>
12608 * modules/gettime (Depends-on): Remove gettime.
12609 Reported by Dmitry V. Levin.
12611 2007-04-12 Bruno Haible <bruno@clisp.org>
12613 * modules/fflush (Include): Mention <stdio.h>.
12614 * modules/strtoimax (Include): Mention <inttypes.h>.
12615 * modules/strtoumax (Include): Likewise.
12617 2007-04-12 Eric Blake <ebb9@byu.net>
12619 * .cvsignore: New file.
12620 * .gitignore: Likewise.
12622 2007-04-12 Bruno Haible <bruno@clisp.org>
12624 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
12625 not before, since $(LDADD) often contains libgnu.a.
12626 * modules/striconv-tests (test_striconv_LDADD): Likewise.
12627 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
12628 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
12631 2007-04-12 Eric Blake <ebb9@byu.net>
12633 Work around glibc's failure to flush stdin on fclose.
12634 * lib/closein.c (close_stdin): Flush stdin before closing.
12636 Work around glibc's failure to reset seekable stdin on exit.
12637 * modules/closein: New module.
12638 * lib/closein.c: New file.
12639 * lib/closein.h: Likewise.
12640 * m4/closein.m4: Likewise.
12641 * MODULES.html.sh (File stream based Input/Output): Document it.
12643 2007-04-12 Simon Josefsson <simon@josefsson.org>
12645 * gnulib-tool: Rename generated 'autobuild' script to
12646 'do-autobuild' in --create-megatestdir output.
12648 * doc/gnulib.texi (Build robot for gnulib): Fix.
12650 2007-04-12 Simon Josefsson <simon@josefsson.org>
12652 * modules/sysexits (Depends-on): Add absolute-header.
12654 2007-04-12 Eric Blake <ebb9@byu.net>
12656 No need to preserve errno on success.
12657 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
12658 Reported by Bruno Haible.
12660 2007-04-12 Simon Josefsson <simon@josefsson.org>
12662 * MODULES.html.sh (Support for maintaining and releasing
12663 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
12665 2007-04-12 Simon Josefsson <simon@josefsson.org>
12667 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
12669 2007-04-12 Simon Josefsson <simon@josefsson.org>
12671 * modules/autobuild: New module.
12673 * m4/autobuild.m4: New file.
12675 2007-04-11 Bruno Haible <bruno@clisp.org>
12677 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
12678 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
12679 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
12680 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
12681 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12682 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12683 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12684 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12685 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12686 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12687 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
12688 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12689 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12690 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
12691 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12692 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12693 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
12694 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12695 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12696 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
12697 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12698 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12699 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
12700 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12701 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12702 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
12703 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
12704 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
12705 Reported by Eric Blake.
12707 2007-04-11 Bruno Haible <bruno@clisp.org>
12709 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
12711 2007-04-10 Bruno Haible <bruno@clisp.org>
12713 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
12714 for NaN and Infinity. Needed on FreeBSD 6.1.
12715 * tests/test-vasnprintf-posix.c (test_function): Undo last change
12716 regarding results for "%010a" of Infinity and NaN.
12717 * tests/test-vasprintf-posix.c (test_function): Likewise.
12718 * tests/test-snprintf-posix.h (test_function): Likewise.
12719 * tests/test-sprintf-posix.h (test_function): Likewise.
12720 * tests/test-fprintf-posix.h (test_function): Likewise.
12721 * tests/test-printf-posix.h (test_function): Likewise.
12722 * tests/test-fprintf-posix.out: Likewise.
12724 2007-04-10 Bruno Haible <bruno@clisp.org>
12726 * modules/locale-tests: New file.
12727 * tests/test-locale.c: New file.
12729 * modules/locale: New file.
12730 * lib/locale_.h: New file.
12731 * m4/locale_h.m4: New file.
12733 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
12734 Bruno Haible <bruno@clisp.org>
12736 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
12737 be determined, test for availability of the copysignf, copysign,
12738 copysignl functions.
12739 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
12740 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
12741 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
12743 2007-04-09 Eric Blake <ebb9@byu.net>
12745 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
12746 * modules/stdio (Makefile.am): Support fflush.
12747 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12748 * modules/fflush: New file.
12749 * lib/fflush.c: Likewise.
12750 * m4/fflush.m4: Likewise.
12751 * modules/fflush-tests: New test.
12752 * tests/test-fflush.c: Likewise.
12753 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
12755 2007-04-06 Bruno Haible <bruno@clisp.org>
12757 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
12758 (VASNPRINTF): Use signbit for faster determination whether to print a
12760 * modules/vasnprintf (Files): Remove lib/float+.h.
12761 * modules/fprintf-posix (Depends-on): Add signbit.
12762 * modules/snprintf-posix (Depends-on): Likewise.
12763 * modules/sprintf-posix (Depends-on): Likewise.
12764 * modules/vasnprintf-posix (Depends-on): Likewise.
12765 * modules/vasprintf-posix (Depends-on): Likewise.
12766 * modules/vfprintf-posix (Depends-on): Likewise.
12767 * modules/vsnprintf-posix (Depends-on): Likewise.
12768 * modules/vsprintf-posix (Depends-on): Likewise.
12770 2007-04-06 Bruno Haible <bruno@clisp.org>
12772 * tests/test-frexp.c (main): Test also the sign bit of zero results.
12773 * tests/test-frexpl.c (main): Likewise.
12774 * tests/test-ldexpl.c (main): Likewise.
12775 * modules/frexp-tests (Depends-on): Add signbit.
12776 * modules/frexpl-tests (Depdends-on): Likewise.
12777 * modules/ldexpl-tests (Depdends-on): Likewise.
12779 2007-04-06 Bruno Haible <bruno@clisp.org>
12781 * modules/signbit-tests: New file.
12782 * tests/test-signbit.c: New file.
12784 * modules/signbit: New file.
12785 * lib/signbitf.c: New file.
12786 * lib/signbitd.c: New file.
12787 * lib/signbitl.c: New file.
12788 * m4/signbit.m4: New file.
12789 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
12790 (signbit): New macro.
12791 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
12793 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
12794 REPLACE_FREXPL into math.h.
12796 2007-04-06 Bruno Haible <bruno@clisp.org>
12798 * modules/isnanf-nolibm-tests: New file.
12799 * tests/test-isnanf.c: New file.
12801 * modules/isnanf-nolibm: New file.
12802 * lib/isnanf.h: New file.
12803 * lib/isnanf.c: New file.
12804 * lib/isnan.c: Consider the USE_FLOAT macro.
12805 * m4/isnanf.m4: New file.
12807 2007-04-06 Bruno Haible <bruno@clisp.org>
12809 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
12810 (Link): New section.
12812 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
12814 2007-04-06 Bruno Haible <bruno@clisp.org>
12816 Assume the 'long double' type.
12817 * m4/longdouble.m4: Remove file.
12818 * config/srclist.txt: Don't mention longdouble.m4.
12819 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
12820 * lib/float+.h: Likewise.
12821 * lib/frexp.c: Likewise.
12822 * lib/printf-args.h: Likewise.
12823 * lib/printf-args.c: Likewise.
12824 * lib/printf-frexp.c: Likewise.
12825 * lib/printf-parse.c: Likewise.
12826 * lib/vasnprintf.c: Likewise.
12827 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
12828 * m4/intl.m4: Likewise.
12829 * m4/isnanl.m4: Likewise.
12830 * m4/printf.m4: Likewise.
12831 * m4/printf-frexpl.m4: Likewise.
12832 * m4/vasnprintf.m4: Likewise.
12833 * modules/allocsa (Files): Remove m4/longdouble.m4.
12834 * modules/gettext (Files): Likewise.
12835 * modules/relocatable-prog-wrapper (Files): Likewise.
12836 * modules/vasnprintf (Files): Likewise.
12837 * modules/isnanl (Files): Likewise.
12838 (Include): Simplify.
12839 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
12840 (Include): Simplify.
12841 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
12842 (Include): Simplify.
12843 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
12844 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12845 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
12846 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12847 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
12848 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12849 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
12850 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12851 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
12852 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12853 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
12854 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
12855 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
12856 * tests/test-isnanl.c: Likewise.
12857 * tests/test-snprintf-posix.h: Likewise.
12858 * tests/test-sprintf-posix.h: Likewise.
12859 * tests/test-vasnprintf-posix.c: Likewise.
12860 * tests/test-vasnprintf-posix2.c: Likewise.
12861 * tests/test-vasprintf-posix.c: Likewise.
12863 2007-04-06 Bruno Haible <bruno@clisp.org>
12865 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
12866 * lib/math_.h [__DECC]: Include the overridden include file through
12867 #include_next, outside the double-inclusion guard.
12868 * lib/stdio_.h [__DECC]: Likewise.
12869 * lib/stdlib_.h [__DECC]: Likewise.
12870 * lib/string_.h [__DECC]: Likewise.
12871 * lib/time_.h [__DECC]: Likewise.
12872 * lib/wchar_.h [__DECC]: Likewise.
12873 * lib/wctype_.h [__DECC]: Likewise.
12874 * lib/inttypes_.h [__DECC]: Likewise.
12875 Reported by Albert Chin <china@thewrittenword.com> in
12876 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
12878 2007-04-04 Eric Blake <ebb9@byu.net>
12880 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
12883 2007-04-04 Bruno Haible <bruno@clisp.org>
12885 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
12886 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
12888 2007-04-04 Bruno Haible <bruno@clisp.org>
12890 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
12891 results for "%010a" of Infinity and NaN.
12892 * tests/test-vasprintf-posix.c (test_function): Likewise.
12893 * tests/test-snprintf-posix.h (test_function): Likewise.
12894 * tests/test-sprintf-posix.h (test_function): Likewise.
12895 * tests/test-fprintf-posix.h (test_function): Remove these tests.
12896 * tests/test-printf-posix.h (test_function): Likewise.
12897 * tests/test-fprintf-posix.out: Update.
12898 Needed for FreeBSD 6.1.
12900 2007-04-04 Bruno Haible <bruno@clisp.org>
12902 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
12903 directly used by the gnulib modules nor by gnulib-tool.
12905 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
12907 * DEPENDENCIES: Give overall description of version dependency
12908 desirability. Use more-typical names for apps.
12909 Add shell, coreutils, diffutils, grep, tar, gzip.
12911 2007-04-04 Simon Josefsson <simon@josefsson.org>
12913 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
12915 2007-04-04 Karl Berry <karl@gnu.org>
12917 * MODULES.html.sh (func_module): missing '.
12919 2007-04-03 Bruno Haible <bruno@clisp.org>
12921 * modules/argmatch-tests (Makefile.am): New variable
12922 test_argmatch_LDADD.
12923 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
12924 * modules/array-list-tests (Makefile.am): New variable
12925 test_array_list_LDADD.
12926 * modules/array-oset-tests (Makefile.am): New variable
12927 test_array_oset_LDADD.
12928 * modules/avltree-list-tests (Makefile.am): New variable
12929 test_avltree_list_LDADD.
12930 * modules/avltree-oset-tests (Makefile.am): New variable
12931 test_avltree_oset_LDADD.
12932 * modules/avltreehash-list-tests (Makefile.am): New variable
12933 test_avltreehash_list_LDADD.
12934 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
12935 test_canonicalize_lgpl_LDADD.
12936 * modules/carray-list-tests (Makefile.am): New variable
12937 test_carray_list_LDADD.
12938 * modules/dirname-tests (Makefile.am): New variable
12939 test_dirname_LDADD.
12940 * modules/linked-list-tests (Makefile.am): New variable
12941 test_linked_list_LDADD.
12942 * modules/linkedhash-list-tests (Makefile.am): New variable
12943 test_linkedhash_list_LDADD.
12944 * modules/rbtree-list-tests (Makefile.am): New variable
12945 test_rbtree_list_LDADD.
12946 * modules/rbtree-oset-tests (Makefile.am): New variable
12947 test_rbtree_oset_LDADD.
12948 * modules/rbtreehash-list-tests (Makefile.am): New variable
12949 test_rbtreehash_list_LDADD.
12950 * modules/xvasprintf-tests (Makefile.am): New variable
12951 test_xvasprintf_LDADD.
12952 Reported by Eric Blake.
12954 2007-04-03 Eric Blake <ebb9@byu.net>
12956 * DEPENDENCIES: Weaken m4 requirements.
12958 2007-04-03 Bruno Haible <bruno@clisp.org>
12960 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
12961 * modules/isnanl-tests (configure.ac): Likewise.
12963 2007-04-03 Ben Pfaff <blp@gnu.org>
12965 * modules/iconv_open: Add $(srcdir)/ to source directory
12966 references in Makefile fragments that call gperf, to fix VPATH
12969 2007-04-03 Bruno Haible <bruno@clisp.org>
12971 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
12972 * lib/ldexpl.c: Undo last change.
12974 2007-04-03 Bruno Haible <bruno@clisp.org>
12976 * modules/printf-frexpl (Depends-on): Undo last change.
12977 (Files): Add m4/ldexpl.m4.
12979 2007-04-03 Bruno Haible <bruno@clisp.org>
12981 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
12982 * modules/isnanl (Link): New section.
12984 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
12985 * modules/frexp (Link): New section.
12987 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
12988 * modules/frexpl (Link): New section.
12990 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
12991 * modules/ldexpl (Link): New section.
12993 2007-04-03 Bruno Haible <bruno@clisp.org>
12995 * modules/TEMPLATE-EXTENDED: New file.
12996 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
12998 2007-04-03 Bruno Haible <bruno@clisp.org>
13000 * DEPENDENCIES: New file.
13001 Suggested by Simon Josefsson.
13003 2007-04-03 Bruno Haible <bruno@clisp.org>
13005 * doc/gnulib.texi: Escape @.
13007 2007-04-03 James Youngman <jay@gnu.org>
13008 and Paul Eggert <eggert@cs.ucla.edu>
13010 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13011 birthtime on all systems that have birthtime, not just those which
13012 use st_birthtimensec rather than st_birthtim. Putting zero in
13013 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13014 that the birth time is not available for files on an NFS mount.
13016 2007-04-03 Simon Josefsson <simon@josefsson.org>
13018 * modules/memxor: Move back from crypto/, suggested by Bruno.
13019 * modules/crypto/hmac-sha1: Fix memxor dependency.
13021 * modules/crypto/gc: Moved from ../.
13023 2007-04-02 Eric Blake <ebb9@byu.net>
13025 * lib/ldexpl.c (includes): Avoid libm.
13027 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13029 2007-04-02 Bruno Haible <bruno@clisp.org>
13031 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13034 2007-04-02 Bruno Haible <bruno@clisp.org>
13036 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13037 x86 or x86_64 platforms running MacOS X.
13038 Reported by Ryan Schmidt <@ryandesign.com>.
13040 2007-04-02 Bruno Haible <bruno@clisp.org>
13042 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13045 2007-04-01 Simon Josefsson <simon@josefsson.org>
13047 * modules/crypto/arcfour: Moved from ../.
13048 * modules/crypto/arcfour-tests: Moved from ../.
13049 * modules/crypto/arctwo: Moved from ../.
13050 * modules/crypto/arctwo-tests: Moved from ../.
13051 * modules/crypto/des: Moved from ../.
13052 * modules/crypto/des-tests: Moved from ../.
13053 * modules/crypto/gc-arcfour: Moved from ../.
13054 * modules/crypto/gc-arcfour-tests: Moved from ../.
13055 * modules/crypto/gc-arctwo: Moved from ../.
13056 * modules/crypto/gc-arctwo-tests: Moved from ../.
13057 * modules/crypto/gc-des: Moved from ../.
13058 * modules/crypto/gc-des-tests: Moved from ../.
13059 * modules/crypto/gc-hmac-md5: Moved from ../.
13060 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13061 * modules/crypto/gc-hmac-sha1: Moved from ../.
13062 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13063 * modules/crypto/gc-md2: Moved from ../.
13064 * modules/crypto/gc-md2-tests: Moved from ../.
13065 * modules/crypto/gc-md4: Moved from ../.
13066 * modules/crypto/gc-md4-tests: Moved from ../.
13067 * modules/crypto/gc-md5: Moved from ../.
13068 * modules/crypto/gc-md5-tests: Moved from ../.
13069 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13070 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13071 * modules/crypto/gc-random: Moved from ../.
13072 * modules/crypto/gc-rijndael: Moved from ../.
13073 * modules/crypto/gc-rijndael-tests: Moved from ../.
13074 * modules/crypto/gc-sha1: Moved from ../.
13075 * modules/crypto/gc-sha1-tests: Moved from ../.
13076 * modules/crypto/gc-tests: Moved from ../.
13077 * modules/crypto/hmac-md5: Moved from ../.
13078 * modules/crypto/hmac-md5-tests: Moved from ../.
13079 * modules/crypto/hmac-sha1: Moved from ../.
13080 * modules/crypto/hmac-sha1-tests: Moved from ../.
13081 * modules/crypto/md2: Moved from ../.
13082 * modules/crypto/md2-tests: Moved from ../.
13083 * modules/crypto/md4: Moved from ../.
13084 * modules/crypto/md4-tests: Moved from ../.
13085 * modules/crypto/md5: Moved from ../.
13086 * modules/crypto/md5-tests: Moved from ../.
13087 * modules/crypto/memxor: Moved from ../.
13088 * modules/crypto/rijndael: Moved from ../.
13089 * modules/crypto/rijndael-tests: Moved from ../.
13090 * modules/crypto/sha1: Moved from ../.
13092 2007-03-30 James Youngman <jay@gnu.org>
13094 * tests/test-stat-time.c (prepare_test): use chmod() rather than
13095 rename() to change the ctime of a file (because ctime is unaffected
13096 by rename on jfs2 on AIX 5.1).
13097 (main): Start by doing cleanup, in case a previous run failed leaving
13100 2007-03-31 Bruno Haible <bruno@clisp.org>
13102 Support old proprietary implementations of iconv.
13103 * modules/iconv_open: New file.
13104 * lib/iconv_.h: New file.
13105 * m4/iconv_h.m4: New file.
13106 * lib/iconv_open.c: New file.
13107 * lib/iconv_open-aix.gperf: New file.
13108 * lib/iconv_open-hpux.gperf: New file.
13109 * lib/iconv_open-irix.gperf: New file.
13110 * lib/iconv_open-osf.gperf: New file.
13111 * m4/iconv_open.m4: New file.
13112 * modules/linebreak (Depends-on): Add iconv_open.
13113 * modules/striconv (Depends-on): Likewise.
13114 * modules/striconveh (Depends-on): Likewise.
13115 * modules/unicodeio (Depends-on): Likewise.
13116 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
13118 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
13119 conversion if cd is (iconv_t)(-1).
13120 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
13123 2007-03-31 Bruno Haible <bruno@clisp.org>
13125 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13126 work on Solaris either. Protect also second use of "autodetect_jp".
13128 2007-03-31 Bruno Haible <bruno@clisp.org>
13130 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
13131 the function is not present.
13133 2007-03-31 Bruno Haible <bruno@clisp.org>
13135 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
13136 the function is not present.
13138 2007-03-31 Bruno Haible <bruno@clisp.org>
13140 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
13141 a bug in HP-UX iconv_open().
13143 2007-03-31 Bruno Haible <bruno@clisp.org>
13145 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
13146 (Mathematics <math.h>): New section, add fpieee.
13147 (Input/output <stdio.h>): Add fseterr.
13148 (Mathematics <math.h>): New section, add printf-frexp.
13149 (Container data structures): Add sublist.
13150 (Core language properties): Add fpucw, inline.
13151 (Functions for greatest-width integer types <inttypes.h>): Add
13152 imaxabs, imaxdiv, inttypes.
13153 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
13154 isnanl-nolibm, ldexp.
13155 (Mathematics <math.h>): New section, add printf-frexpl.
13156 (Support for systems lacking POSIX:2001): Add fprintf-posix,
13157 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
13158 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
13159 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
13160 (Unicode string functions): Add unistr/u*-mbtoucr.
13161 (Java): Add javacomp-script, javaexec-script.
13162 (C#): Add csharpcomp-script, csharpexec-script.
13163 (Support for building libraries and executables): Add havelib,
13165 (Support for maintaining and releasing projects): Renamed from
13166 'Support for maintaining and release projects'. Add announce-gen.
13168 2007-03-31 Bruno Haible <bruno@clisp.org>
13170 * README: Talk primarily about git.
13171 (git and CVS): Renamed from CVS.
13172 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
13173 gnulib is available through git.
13174 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
13176 2007-03-30 Bruno Haible <bruno@clisp.org>
13178 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
13179 * lib/poll_.h: Likewise.
13180 * lib/stat_.h: Likewise.
13181 * lib/sys_time_.h: Likewise.
13182 * lib/sysexit_.h: Likewise.
13183 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
13184 * lib/stdbool_.h: Likewise.
13185 * lib/byteswap_.h: Add double-inclusion guard.
13187 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
13189 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
13191 2007-03-30 Karl Berry <karl@gnu.org>
13193 * config/srclist-update: double space after USA in the license
13194 substitution, since that's how it's usually (?) written.
13196 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
13198 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
13199 reported by Bruno Haible.
13201 2007-03-29 Bruno Haible <bruno@clisp.org>
13203 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
13204 a bug in AIX iconv().
13206 2007-03-29 Bruno Haible <bruno@clisp.org>
13208 * modules/ldexpl-tests: New file.
13209 * tests/test-ldexpl.c: New file.
13211 2007-03-29 Bruno Haible <bruno@clisp.org>
13213 * lib/ldexpl.c: Include fpucw.h.
13214 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
13216 * modules/ldexpl (Depends-on): Add fpucw.
13218 2007-03-29 Bruno Haible <bruno@clisp.org>
13220 * modules/ldexpl: New file.
13221 * m4/ldexpl.m4: New file.
13222 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
13224 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
13226 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
13228 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13229 gl_FUNC_LDEXPL_WORKS.
13230 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
13231 * modules/mathl (Files): Remove lib/ldexpl.c.
13232 (Depends-on): Add ldexpl.
13234 2007-03-29 Bruno Haible <bruno@clisp.org>
13236 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
13238 2007-03-29 Bruno Haible <bruno@clisp.org>
13240 * tests/test-striconveh.c (main): Don't assume that a direct conversion
13241 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
13242 and possibly also HP-UX.
13243 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13244 work on AIX, IRIX, HP-UX, OSF/1.
13245 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13246 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13247 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13248 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13249 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13250 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13252 2007-03-29 Bruno Haible <bruno@clisp.org>
13254 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
13256 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
13258 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
13259 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
13261 2007-03-29 Eric Blake <ebb9@byu.net>
13263 * lib/acl-internal.h: Remove redundant include.
13264 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
13265 Cygwin when a file is locked.
13267 2007-03-29 Bruno Haible <bruno@clisp.org>
13269 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
13271 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
13273 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
13275 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
13276 try to remove a parent directory if the child couldn't be removed
13277 (except for the first rmdir, which could fail because the child
13278 doesn't exist). Problem reported by Jeff Blaine in
13279 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
13281 2007-03-28 Bruno Haible <bruno@clisp.org>
13283 * lib/striconveh.c (utf8conv_carefully): New function.
13284 (mem_cd_iconveh_internal): Invoke it.
13286 2007-03-28 Bruno Haible <bruno@clisp.org>
13288 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
13289 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
13291 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
13292 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
13295 2007-03-28 Bruno Haible <bruno@clisp.org>
13297 * modules/unistr/u8-mbtoucr: New file.
13298 * lib/unistr/u8-mbtoucr.c: New file.
13299 * modules/unistr/u16-mbtoucr: New file.
13300 * lib/unistr/u16-mbtoucr.c: New file.
13301 * modules/unistr/u16-mbtoucr: New file.
13302 * lib/unistr/u16-mbtoucr.c: New file.
13303 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
13305 2007-03-27 Simon Josefsson <simon@josefsson.org>
13306 Bruno Haible <bruno@clisp.org>
13308 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
13309 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
13310 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
13312 * m4/stdio_h.m4: Add stubs for vasprintf too.
13314 * modules/stdio: Support vasprintf in sed command.
13316 * modules/vasprintf: Depend on stdio for prototypes. Remove
13317 vasprintf.h. Add stdio module indicator.
13319 * lib/stdio_.h: Declare asprintf and vasprintf, based on
13322 * lib/vasprintf.h: File removed.
13324 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
13325 * lib/vasprintf.c: Ditto.
13326 * lib/xvasprintf.c: Ditto.
13327 * tests/test-vasprintf-posix.c: Ditto.
13328 * tests/test-vasprintf.c: Ditto.
13330 2007-03-27 Bruno Haible <bruno@clisp.org>
13332 Make vasnprintf multithread-safe.
13333 * lib/vasnprintf.c (decimal_point_char): New function.
13334 (VASNPRINTF): Use it.
13335 Suggested by Simon Josefsson.
13337 2007-03-27 Eric Blake <ebb9@byu.net>
13339 Support sub-second birthtime on cygwin.
13340 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
13341 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
13342 (get_stat_birthtime): Also work with st_birthtim.
13344 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
13346 * lib/stat-time.h (USE_BIRTHTIME): Remove.
13347 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
13348 (get_stat_birthtime_ns): Do not try to use "spare" fields.
13349 (get_stat_birthtime_ns): Simplify compile-time tests.
13350 (get_stat_birthtime): Change the API to look like
13351 get_stat_mtime etc., except return a negative tv_nsec on error.
13352 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
13353 Don't check for "spare" fields.
13354 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
13355 or for struct stat.st_birthtime, as these tests aren't used.
13356 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
13358 2007-03-27 Bruno Haible <bruno@clisp.org>
13360 * lib/stat-time.h: Include <sys/stat.h>.
13362 2007-03-27 James Youngman <jay@gnu.org>
13364 * lib/stat-time.h (get_stat_birthtime): New function for
13365 retrieving st_birthtime as provided by UFS2 (hence *BSD).
13366 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
13368 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
13369 * modules/stat-time-test: New file.
13370 * tests/test-stat-time.c: New test, devised by Bruno Haible.
13372 2007-03-26 Bruno Haible <bruno@clisp.org>
13374 Better support of signalling NaNs.
13375 * lib/atanl.c: Include isnanl.h.
13376 (atanl): Perform test for NaN at the beginning of the function and
13377 through a call to isnanl.
13378 * lib/cosl.c: Include isnanl.h.
13379 (cosl): Perform test for NaN at the beginning of the function and
13380 through a call to isnanl.
13381 * lib/ldexpl.c: Include isnanl.h.
13382 (ldexpl): Perform test for NaN through a call to isnanl.
13383 * lib/logl.c: Include isnanl.h.
13384 (logl): Perform test for NaN at the beginning of the function and
13385 through a call to isnanl.
13386 * lib/sinl.c: Include isnanl.h.
13387 (sinl): Perform test for NaN at the beginning of the function and
13388 through a call to isnanl.
13389 * lib/sqrtl.c: Include isnanl.h.
13390 (sqrtl): Perform test for NaN at the beginning of the function and
13391 through a call to isnanl.
13392 * lib/tanl.c: Include isnanl.h.
13393 (tanl): Perform test for NaN at the beginning of the function and
13394 through a call to isnanl.
13395 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
13396 * modules/mathl (Depends-on): Add isnanl.
13398 2007-03-26 Eric Blake <ebb9@byu.net>
13400 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
13401 regression in logic sense of previous patch.
13403 2007-03-26 Bruno Haible <bruno@clisp.org>
13405 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
13406 unportable shell command "if ! ...".
13407 Reported by Ralf Wildenhues.
13409 2007-03-25 Bruno Haible <bruno@clisp.org>
13411 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
13412 <sysexits.h> file, and only add EX_CONFIG.
13413 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
13414 absolute file name and whether it is sufficient. Substitute also
13415 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
13416 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
13417 ABSOLUTE_SYSEXITS_H into sysexits.h.
13419 2007-03-25 Bruno Haible <bruno@clisp.org>
13421 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
13424 2007-03-25 Bruno Haible <bruno@clisp.org>
13426 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
13427 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
13429 2007-03-25 Bruno Haible <bruno@clisp.org>
13431 * lib/vasnprintf.c: Include langinfo.h.
13432 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
13434 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
13435 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
13436 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13437 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13438 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13439 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13440 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13441 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
13442 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13443 Reported by Simon Josefsson.
13445 2007-03-25 Bruno Haible <bruno@clisp.org>
13447 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
13448 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
13449 * modules/vasnprintf (Depends-on): Add stdint.
13451 2007-03-25 Bruno Haible <bruno@clisp.org>
13453 * modules/fpieee: New file.
13454 * m4/fpieee.m4: New file.
13455 * modules/isnan-nolibm (Depends-on): Add fpieee.
13456 * modules/isnanl-nolibm (Depends-on): Add fpieee.
13457 * modules/isnanl (Depends-on): Add fpieee.
13459 2007-03-25 Bruno Haible <bruno@clisp.org>
13461 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
13463 2007-03-25 Bruno Haible <bruno@clisp.org>
13465 Avoid test failures on IRIX 6.5.
13466 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
13468 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
13472 2007-03-25 Bruno Haible <bruno@clisp.org>
13474 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
13475 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
13476 exists but doesn't work.
13477 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
13478 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
13479 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
13480 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
13482 2007-03-25 Bruno Haible <bruno@clisp.org>
13484 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
13485 returns inf. Needed on IRIX 6.5.
13487 2007-03-25 Bruno Haible <bruno@clisp.org>
13489 * tests/test-frexpl.c: Include isnanl-nolibm.h.
13490 (main): Use isnanl instead of x != x idiom.
13491 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
13493 * tests/test-frexp.c: Include isnan.h.
13494 (main): Use isnan instead of x != x idiom.
13495 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
13497 2007-03-25 Bruno Haible <bruno@clisp.org>
13499 * tests/test-frexp.c (NaN): New function/macro.
13500 (main): Use it instead of 0.0 / 0.0.
13501 * tests/test-isnan.c (NaN): New function/macro.
13502 (main): Use it instead of 0.0 / 0.0.
13503 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
13504 (test_function): Use it instead of 0.0 / 0.0.
13505 * tests/test-vasprintf-posix.c (NaN): New function/macro.
13506 (test_function): Use it instead of 0.0 / 0.0.
13507 * tests/test-snprintf-posix.h (NaN): New function/macro.
13508 (test_function): Use it instead of 0.0 / 0.0.
13509 * tests/test-sprintf-posix.h (NaN): New function/macro.
13510 (test_function): Use it instead of 0.0 / 0.0.
13511 * tests/test-fprintf-posix.h (NaN): New function/macro.
13512 (test_function): Use it instead of 0.0 / 0.0.
13513 * tests/test-printf-posix.h (NaN): New function/macro.
13514 (test_function): Use it instead of 0.0 / 0.0.
13516 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
13518 2007-03-25 Bruno Haible <bruno@clisp.org>
13520 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
13522 2007-03-25 Bruno Haible <bruno@clisp.org>
13524 * lib/regexec.c (merge_state_with_log): Make static.
13526 2007-03-25 Bruno Haible <bruno@clisp.org>
13528 * lib/trigl.c (kernel_rem_pio2): Make static.
13530 2007-03-25 Bruno Haible <bruno@clisp.org>
13532 * lib/sincosl.c (sincosl_table): Make static.
13534 2007-03-25 Bruno Haible <bruno@clisp.org>
13536 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
13537 if the compiler does not support C99.
13539 2007-03-25 Bruno Haible <bruno@clisp.org>
13541 * modules/time (Makefile.am): Ensure all rule action lines start with a
13544 2007-03-24 Bruno Haible <bruno@clisp.org>
13546 * modules/tsearch-tests: New file.
13547 * tests/test-tsearch.sh: New file.
13548 * tests/test-tsearch.c: New file, mostly copied from glibc.
13550 * modules/search-tests: New file.
13551 * tests/test-search.c: New file.
13553 * modules/search: New file.
13554 * lib/search_.h: New file, incorporating lib/tsearch.h.
13555 * m4/search_h.m4: New file.
13556 * lib/tsearch.h: Remove file.
13557 * lib/tsearch.c: Include search.h instead of tsearch.h.
13558 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
13560 * modules/tsearch (Files): Remove lib/tsearch.h.
13561 (Depends-on): Add search.
13562 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
13563 (Include): Change tsearch.h into search.h.
13565 2007-03-24 Bruno Haible <bruno@clisp.org>
13567 * modules/fpucw: New file.
13568 * lib/fpucw.h: New file.
13569 * lib/frexp.c: Include fpucw.h.
13570 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
13572 * lib/printf-frexp.c: Include fpucw.h.
13573 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
13575 * lib/vasnprintf.c: Include fpucw.h.
13576 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
13577 'long double' calculations.
13578 * tests/test-frexpl.c: Include fpucw.h.
13579 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
13580 * tests/test-printf-frexpl.c: Include fpucw.h.
13581 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
13582 * modules/frexpl (Depends-on): Add fpucw.
13583 * modules/printf-frexpl (Depends-on): Likewise.
13584 * modules/fprintf-posix (Depends-on): Likewise.
13585 * modules/snprintf-posix (Depends-on): Likewise.
13586 * modules/sprintf-posix (Depends-on): Likewise.
13587 * modules/vasnprintf-posix (Depends-on): Likewise.
13588 * modules/vasprintf-posix (Depends-on): Likewise.
13589 * modules/vfprintf-posix (Depends-on): Likewise.
13590 * modules/vsnprintf-posix (Depends-on): Likewise.
13591 * modules/vsprintf-posix (Depends-on): Likewise.
13592 * modules/frexpl-tests (Depends-on): Likewise.
13593 * modules/printf-frexpl-tests (Depends-on): Likewise.
13595 2007-03-24 Bruno Haible <bruno@clisp.org>
13597 * lib/float+.h: New file.
13598 * lib/isnan.c: Include float+.h.
13600 (FUNC): Compare only SIZE bytes of the value.
13601 * lib/vasnprintf.c: Include float+.h.
13602 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
13603 SIZEOF_LDBL or SIZEOF_DBL bytes.
13604 * modules/isnan-nolibm (Files): Add lib/float+.h.
13605 * modules/isnanl-nolibm (Files): Add lib/float+.h.
13606 * modules/isnanl (Files): Add lib/float+.h.
13607 * modules/vasnprintf (Files): Add lib/float+.h.
13609 2007-03-24 Bruno Haible <bruno@clisp.org>
13611 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
13612 include isnanl-nolibm.h.
13614 2007-03-24 Bruno Haible <bruno@clisp.org>
13616 * tests/test-read-file.c (main): Don't produce spurious output for
13617 expected situations. Make the test fail if it encountered unexpected
13620 2007-03-24 Bruno Haible <bruno@clisp.org>
13622 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
13623 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
13625 2007-03-24 Bruno Haible <bruno@clisp.org>
13627 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
13629 2007-03-24 Bruno Haible <bruno@clisp.org>
13631 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
13632 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
13634 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
13635 * modules/utf8-ucs4: Turn into a symbolic link to module
13638 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
13640 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
13641 unistr/u8-mbtouc-unsafe.
13643 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
13644 * modules/utf16-ucs4: Turn into a symbolic link to module
13647 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
13649 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
13650 unistr/u16-mbtouc-unsafe.
13652 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
13653 * modules/ucs4-utf8: Turn into a symbolic link to module
13656 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
13657 * modules/ucs4-utf16: Turn into a symbolic link to module
13660 2007-03-24 Bruno Haible <bruno@clisp.org>
13662 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
13663 Enable the function only if HAVE_INLINE.
13664 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
13665 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
13666 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
13667 Enable the function only if HAVE_INLINE.
13668 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
13669 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
13670 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
13671 Enable the function only if HAVE_INLINE.
13672 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
13673 Enable the function only if HAVE_INLINE.
13674 * modules/utf8-ucs4: Update.
13675 * modules/utf8-ucs4-unsafe: Update.
13676 * modules/utf16-ucs4: Update.
13677 * modules/utf16-ucs4-unsafe: Update.
13678 * modules/ucs4-utf8: Update.
13679 * modules/ucs4-utf16: Update.
13681 2007-03-24 Bruno Haible <bruno@clisp.org>
13683 * lib/utf8-ucs4.h: Remove file.
13684 * lib/utf8-ucs4-unsafe.h: Remove file.
13685 * lib/utf16-ucs4.h: Remove file.
13686 * lib/utf16-ucs4-unsafe.h: Remove file.
13687 * lib/ucs4-utf8.h: Remove file.
13688 * lib/ucs4-utf16.h: Remove file.
13689 * lib/unistr.h: Include their previous contents.
13690 * m4/utf-ucs4.m4: Remove file.
13691 * m4/ucs4-utf.m4: Remove file.
13692 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
13693 (Depends-on): Add unistr/base.
13694 (configure.ac): Remove gl_UTF_UCS4.
13695 (Makefile.am): Update.
13696 (Include): Change to unistr.h.
13697 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
13698 (Depends-on): Add unistr/base.
13699 (configure.ac): Remove gl_UTF_UCS4.
13700 (Makefile.am): Update.
13701 (Include): Change to unistr.h.
13702 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
13703 (Depends-on): Add unistr/base.
13704 (configure.ac): Remove gl_UTF_UCS4.
13705 (Makefile.am): Update.
13706 (Include): Change to unistr.h.
13707 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
13708 (Depends-on): Add unistr/base.
13709 (configure.ac): Remove gl_UTF_UCS4.
13710 (Makefile.am): Update.
13711 (Include): Change to unistr.h.
13712 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
13713 (Depends-on): Add unistr/base.
13714 (configure.ac): Remove gl_UCS4_UTF.
13715 (Makefile.am): Update.
13716 (Include): Change to unistr.h.
13717 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
13718 (Depends-on): Add unistr/base.
13719 (configure.ac): Remove gl_UCS4_UTF.
13720 (Makefile.am): Update.
13721 (Include): Change to unistr.h.
13722 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
13723 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
13724 utf8-ucs4-unsafe.h.
13725 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
13726 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
13727 utf16-ucs4-unsafe.h.
13728 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
13729 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
13730 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
13731 * lib/unistr/u8-strchr.c: Likewise.
13732 * lib/unistr/u8-strrchr.c: Likewise.
13733 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
13734 * lib/unistr/u16-strchr.c: Likewise.
13735 * lib/unistr/u16-strrchr.c: Likewise.
13736 * lib/striconveh.c: Update.
13737 * lib/linebreak.c: Update.
13739 2007-03-24 Bruno Haible <bruno@clisp.org>
13741 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
13742 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
13744 2007-03-22 Bruno Haible <bruno@clisp.org>
13746 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
13748 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
13750 * MODULES.html.sh (File system functions): New module write-any-file.
13751 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
13752 * m4/write-any-file.m4: New files.
13754 2007-03-23 Eric Blake <ebb9@byu.net>
13756 * gnulib-tool: Rearrange space-tab sequences, since some editors
13759 2007-03-23 Eric Blake <ebb9@byu.net>
13761 * lib/version-etc.c (version_etc_va): Update license wording to
13762 be more concise. Recommended by Richard Stallman.
13764 2007-03-22 Bruno Haible <bruno@clisp.org>
13766 * lib/poll.c (MSG_PEEK): New fallback definition.
13768 2007-03-22 Bruno Haible <bruno@clisp.org>
13770 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
13771 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
13773 Fixes a compilation error on BeOS.
13775 2007-03-22 Bruno Haible <bruno@clisp.org>
13777 * modules/frexpl-tests: New file.
13778 * tests/test-frexpl.c: New file.
13780 * modules/frexpl: New file.
13781 * m4/frexpl.m4: New file.
13782 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
13783 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
13784 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
13785 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
13786 (Depends-on): Add frexpl. Remove isnanl-nolibm.
13787 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
13789 2007-03-22 Bruno Haible <bruno@clisp.org>
13791 * lib/frexpl.c: Share code with lib/frexp.c.
13792 * modules/mathl (Files): Add lib/frexp.c.
13793 (Depends-on): Add isnanl-nolibm.
13795 2007-03-22 Bruno Haible <bruno@clisp.org>
13797 * modules/printf-frexp (Files): Add m4/frexp.m4.
13798 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
13799 only if the found frexp function actually works.
13801 2007-03-22 Bruno Haible <bruno@clisp.org>
13803 * lib/frexp.c: Remove older implementation that uses divisions.
13805 2007-03-21 Bruno Haible <bruno@clisp.org>
13807 * modules/frexp-tests: New file.
13808 * tests/test-frexp.c: New file.
13810 * modules/frexp: New file.
13811 * lib/frexp.c: New file.
13812 * m4/frexp.m4: New file.
13813 * lib/math_.h (frexp): New declaration.
13814 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
13816 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
13818 2007-03-21 Bruno Haible <bruno@clisp.org>
13820 * modules/isnanl-tests: New file.
13821 * tests/test-isnanl.c: New file.
13823 * modules/isnanl: New file.
13824 * lib/isnanl.h: New file.
13825 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
13826 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
13827 gl_FUNC_ISNANL_WORKS.
13828 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
13831 2007-03-21 Bruno Haible <bruno@clisp.org>
13833 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
13836 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
13837 * lib/vasnprintf.c: Update.
13838 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
13839 tests/test-isnanl.h, remove tests/test-isnanl.c.
13840 (Makefile.am): Update.
13841 * tests/test-isnanl-nolibm.c: New file.
13842 * tests/test-isnanl.h: New file.
13843 * tests/test-isnanl.c: Remove file.
13845 2007-03-21 Jim Meyering <jim@meyering.net>
13847 When trying to open ".", treat ESTALE like EACCES.
13848 * lib/savewd.c (savewd_save): Resort to forking not just upon
13849 failure with EACCES, but also when errno is ESTALE.
13851 2007-03-20 Bruno Haible <bruno@clisp.org>
13853 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
13854 Needed on AIX 5.1. Reported by Matthew Woehlke.
13856 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
13858 Suggestions by Bruno Haible:
13859 * lib/acl-internal.h: Include "gettext.h" rather than rolling
13861 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
13862 * modules/acl (Depends-on): Add gettext.
13864 2007-03-19 Bruno Haible <bruno@clisp.org>
13866 * modules/iconvme: Remove file.
13867 * lib/iconvme.h: Remove file.
13868 * lib/iconvme.c: Remove file.
13869 * m4/iconvme.m4: Remove file.
13871 2007-03-19 Bruno Haible <bruno@clisp.org>
13873 * doc/relocatable-maint.texi: Break long shell script line.
13874 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
13876 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
13878 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
13879 handle file_has_acl.
13880 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
13881 * lib/acl.c: Move header inclusions and related macro defns into
13882 lib/acl-internal.h.
13883 (S_ISLNK): Remove defn, since that's now done for us.
13884 (file_has_acl): Move to lib/file-has-acl.c.
13885 Call acl_trivial if available. This is the crucial part of the fix.
13886 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
13887 shared within the library. Rewrite a bit, partly to make it compatible
13888 with the GNU coding style.
13889 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
13890 Remove unnecessary double-quotes.
13891 Don't test for acl_to_text; the build will catch that.
13892 Replace acl_entries if it doesn't exist and it is needed.
13893 Check for -lsec and acl_trivial (as used on Solaris 10).
13894 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
13895 lib/file-has-acl.c.
13896 (Depends-on): Add sys_stat, for S_ISLNK.
13898 2007-03-19 Ben Pfaff <blp@gnu.org>
13900 * doc/gnulib.texi: Fix typos.
13901 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
13903 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
13905 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
13906 If size is zero here, buf must be zero.
13908 2007-03-19 Simon Josefsson <simon@josefsson.org>
13910 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
13913 2007-03-18 Bruno Haible <bruno@clisp.org>
13915 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
13916 Suggested by Eric Blake.
13918 2007-03-18 Ben Pfaff <blp@gnu.org>
13920 * doc/relocatable.texi: Recommend using as prefix a directory
13921 that does not exist and will never be created. Based on
13922 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
13925 2007-03-17 Bruno Haible <bruno@clisp.org>
13927 * lib/fchownat.c: Include lchown.h.
13929 2007-03-17 Bruno Haible <bruno@clisp.org>
13931 Fix endless loop when the given allocated size was > INT_MAX.
13932 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
13933 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
13934 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
13935 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
13936 * lib/sprintf.c (sprintf): Likewise.
13938 2007-03-17 Bruno Haible <bruno@clisp.org>
13940 * tests/test-argp-2.sh (func_compare): Output a context diff.
13942 2007-03-17 Bruno Haible <bruno@clisp.org>
13944 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
13945 locale's decimal-point character.
13947 2007-03-17 Bruno Haible <bruno@clisp.org>
13949 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
13950 before comparing it. Needed because on some platforms (e.g. x86) a
13951 'long double' occupies less bytes than sizeof (long double).
13953 2007-03-17 Bruno Haible <bruno@clisp.org>
13955 * tests/test-crc.c (main): Make printf statements 64-bit clean.
13956 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
13957 * tests/test-getaddrinfo.c (simple): Likewise.
13958 * tests/test-read-file.c (main): Likewise.
13960 2007-03-17 Bruno Haible <bruno@clisp.org>
13962 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
13964 2007-03-17 Bruno Haible <bruno@clisp.org>
13966 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
13969 2007-03-17 Bruno Haible <bruno@clisp.org>
13971 * tests/test-c-strcasecmp.c: Include c-strcase.h.
13972 * tests/test-c-strncasecmp.c: Likewise.
13974 2007-03-17 Bruno Haible <bruno@clisp.org>
13976 * modules/stdlib (Depends-on): Add unistd.
13977 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
13978 Needed for MacOS X 10.3.
13980 2007-03-17 Bruno Haible <bruno@clisp.org>
13982 * lib/unistr/u-strdup.h: Include <stdlib.h>.
13984 2007-03-17 Bruno Haible <bruno@clisp.org>
13986 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
13988 2007-03-17 Bruno Haible <bruno@clisp.org>
13990 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
13991 to reflect files copied from gnulib (with or without modifications).
13992 Suggested by Jim Meyering.
13994 2007-03-17 Eric Blake <ebb9@byu.net>
13996 * NEWS: Document stdlib change from 2007-02-18.
13998 2007-03-17 Jim Meyering <jim@meyering.net>
14000 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14001 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14002 someone uses a name containing shell meta-characters.
14003 Reported by Alfred M. Szmidt.
14005 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
14007 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
14009 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
14010 and copy gettext configuration files only if configure.ac contains
14011 a use of AM_GNU_GETTEXT_VERSION.
14013 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
14015 * build-aux/bootstrap (gnulib_name): New variable.
14016 (gnulib_tool_options): Use it.
14018 2007-03-13 Simon Josefsson <simon@josefsson.org>
14020 * tests/test-des.c: Use new namespace.
14022 2007-03-15 Bruno Haible <bruno@clisp.org>
14024 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14025 Reported by James Youngman <jay@gnu.org>.
14027 2007-03-15 Bruno Haible <bruno@clisp.org>
14029 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14030 declared prototype. Needed with cc on OSF/1 5.1.
14032 2007-03-15 Bruno Haible <bruno@clisp.org>
14034 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14035 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14036 (struct gl_list_implementation): Add dispose_fn argument to the
14037 'create_empty', 'create' methods.
14038 (struct gl_list_impl_base): Add field 'dispose_fn'.
14039 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14041 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14042 dispose_fn argument.
14043 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14044 dispose_fn on the dropped values.
14045 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14046 dispose_fn argument.
14047 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14049 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14050 (gl_tree_remove_node): Call dispose_fn on the dropped value.
14051 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14052 (gl_tree_remove_node): Call dispose_fn on the dropped value.
14053 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14055 (gl_tree_list_free): Call dispose_fn on the dropped values.
14056 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14057 the dropped values.
14058 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14059 Add dispose_fn argument.
14060 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14061 Call dispose_fn on the dropped values.
14062 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14063 Add dispose_fn argument.
14064 (gl_sublist_create): Initialize the 'dispose_fn' field.
14065 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14066 * tests/test-array_list.c (main): Update.
14067 * tests/test-carray_list.c (main): Update.
14068 * tests/test-avltree_list.c (main): Update.
14069 * tests/test-rbtree_list.c (main): Update.
14070 * tests/test-avltreehash_list.c (main): Update.
14071 * tests/test-rbtreehash_list.c (main): Update.
14072 * tests/test-linked_list.c (main): Update.
14073 * tests/test-linkedhash_list.c (main): Update.
14074 * tests/test-array_oset.c (main): Update.
14076 2007-03-15 Bruno Haible <bruno@clisp.org>
14078 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14079 (gl_oset_create_empty): Add dispose_fn argument.
14080 (struct gl_oset_implementation): Add dispose_fn argument to
14081 'create_empty' method.
14082 (struct gl_oset_impl_base): Add dispose_fn field.
14083 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14084 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14085 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14087 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14088 (gl_tree_oset_free): Call dispose_fn on the dropped values.
14089 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14091 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14093 * tests/test-array_oset.c (main): Update.
14094 * tests/test-avltree_oset.c (main): Update.
14095 * tests/test-rbtree_oset.c (main): Update.
14096 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
14098 2007-03-13 Bruno Haible <bruno@clisp.org>
14100 * tests/test-stdbool.c (i): Update after last patch.
14102 2007-03-12 Bruno Haible <bruno@clisp.org>
14104 * lib/quotearg.c: Include <wctype.h> early, before the definition of
14105 the iswprint macro. Needed on Solaris 2.5.1.
14107 2007-03-12 Bruno Haible <bruno@clisp.org>
14109 * tests/test-printf-frexp.c (main): Declare x as volatile.
14111 2007-03-12 Simon Josefsson <simon@josefsson.org>
14113 * doc/gnulib.texi (Build robot for gnulib): New section.
14115 2007-03-12 Jim Meyering <jim@meyering.net>
14117 * build-aux/bootstrap: New file.
14118 * build-aux/bootstrap.conf: New file, from coreutils.
14120 2007-03-11 Bruno Haible <bruno@clisp.org>
14122 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
14124 2007-03-12 Simon Josefsson <simon@josefsson.org>
14126 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
14127 avoid collisions with 'des_setkey'. Reported by Bruno Haible
14128 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
14130 2007-03-11 Bruno Haible <bruno@clisp.org>
14132 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
14133 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
14135 2007-03-11 Bruno Haible <bruno@clisp.org>
14137 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
14138 formula. Needed for SunPRO C 5.0.
14140 2007-03-11 Bruno Haible <bruno@clisp.org>
14142 * modules/long-options (Depends-on): Add getopt.
14144 2007-03-11 Bruno Haible <bruno@clisp.org>
14146 * modules/modechange (Depends-on): Add stdbool.
14148 2007-03-11 Bruno Haible <bruno@clisp.org>
14150 * modules/i-ring (Depends-on): Add stdbool.
14152 2007-03-11 Bruno Haible <bruno@clisp.org>
14154 * modules/gc-des (Depends-on): Add stdbool.
14156 2007-03-11 Bruno Haible <bruno@clisp.org>
14158 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
14160 2007-03-11 Bruno Haible <bruno@clisp.org>
14162 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
14164 2007-03-11 Bruno Haible <bruno@clisp.org>
14166 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
14168 2007-03-11 Bruno Haible <bruno@clisp.org>
14170 * lib/vasnprintf.c (sprintf): Undefine.
14172 2007-03-11 Bruno Haible <bruno@clisp.org>
14174 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
14175 initializers in SunPRO C and Compaq C compilers.
14177 2007-03-11 Bruno Haible <bruno@clisp.org>
14179 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
14180 decrementing code ANSI C compliant.
14182 2007-03-11 Bruno Haible <bruno@clisp.org>
14184 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
14185 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
14187 2007-03-11 Bruno Haible <bruno@clisp.org>
14189 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
14190 <stdbool.h> substitute doesn't pass.
14192 2007-03-11 Bruno Haible <bruno@clisp.org>
14194 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
14196 2007-03-11 Bruno Haible <bruno@clisp.org>
14198 * gnulib-tool (func_create_megatestdir): Create also an autobuild
14199 script, for submission to autobuild.josefsson.org.
14201 2007-03-10 Bruno Haible <bruno@clisp.org>
14203 * modules/canonicalize-lgpl-tests: New file.
14204 * tests/test-canonicalize-lgpl.sh: New file.
14205 * tests/test-canonicalize-lgpl.c: New file.
14207 * modules/c-strcase-tests: New file.
14208 * tests/test-c-strcase.sh: New file.
14209 * tests/test-c-strcasecmp.c: New file.
14210 * tests/test-c-strncasecmp.c: New file.
14212 * modules/atexit-tests: New file.
14213 * tests/test-atexit.sh: New file.
14214 * tests/test-atexit.c: New file.
14216 2007-03-10 Bruno Haible <bruno@clisp.org>
14218 * tests/test-binary-io.sh: Use temporary filenames that are not so
14219 likely to clash with those of other tests (in a parallel make).
14220 * tests/test-binary-io.c: Likewise.
14222 2007-03-10 Bruno Haible <bruno@clisp.org>
14224 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
14225 fallback; use #error instead.
14226 Suggested by Simon Josefsson.
14228 2007-03-10 Bruno Haible <bruno@clisp.org>
14230 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
14231 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
14232 first and the last.
14234 2007-03-10 Bruno Haible <bruno@clisp.org>
14236 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
14238 2007-03-10 Bruno Haible <bruno@clisp.org>
14240 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
14242 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
14243 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
14244 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
14246 2007-03-10 Bruno Haible <bruno@clisp.org>
14248 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
14250 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
14253 2007-03-09 Eric Blake <ebb9@byu.net>
14254 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
14256 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
14257 types are not being provided by gnulib.
14258 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
14259 types are supported.
14261 2007-03-10 Bruno Haible <bruno@clisp.org>
14263 * lib/stdio_.h (__attribute__): New macro.
14264 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
14265 vsprintf): Specify __attribute__ __format__ for GCC.
14266 Suggested by Eric Blake.
14268 2007-03-09 Bruno Haible <bruno@clisp.org>
14270 * modules/printf-posix-tests: New file.
14271 * tests/test-printf-posix.sh: New file.
14272 * tests/test-printf-posix.c: New file.
14274 * modules/printf-posix: New file.
14275 * lib/printf.c: New file.
14276 * m4/printf-posix-rpl.m4: New file.
14277 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
14279 * lib/stdio_.h (printf): New declaration.
14280 (format, __format__, ____printf____, ____scanf____, ____strftime____,
14281 ____strfmon____): New macros.
14282 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
14285 2007-03-09 Bruno Haible <bruno@clisp.org>
14287 * tests/test-vasnprintf-posix2.sh: New file.
14288 * tests/test-vasnprintf-posix2.c: New file.
14289 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
14290 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14291 (Makefile.am): Activate test-vasnprintf-posix2.sh.
14293 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
14294 a locale dependent decimal point, rather than always '.'.
14296 2007-03-09 Eric Blake <ebb9@byu.net>
14298 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
14299 spite of platforms like Tandem/NSK that define it to -1.
14301 2007-03-08 Bruno Haible <bruno@clisp.org>
14303 * modules/vprintf-posix-tests: New file.
14304 * tests/test-vprintf-posix.sh: New file.
14305 * tests/test-vprintf-posix.c: New file.
14306 * tests/test-printf-posix.h: New file.
14308 * modules/vprintf-posix: New file.
14309 * lib/vprintf.c: New file.
14310 * m4/vprintf-posix.m4: New file.
14311 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
14313 * lib/stdio_.h (vprintf): New declaration.
14314 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
14317 2007-03-08 Bruno Haible <bruno@clisp.org>
14319 * modules/fprintf-posix-tests: New file.
14320 * tests/test-fprintf-posix.sh: New file.
14321 * tests/test-fprintf-posix.c: New file.
14323 * modules/fprintf-posix: New file.
14324 * lib/fprintf.c: New file.
14325 * m4/fprintf-posix.m4: New file.
14326 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
14328 * lib/stdio_.h (fprintf): New declaration.
14329 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
14332 2007-03-08 Bruno Haible <bruno@clisp.org>
14334 * modules/vfprintf-posix-tests: New file.
14335 * tests/test-vfprintf-posix.sh: New file.
14336 * tests/test-vfprintf-posix.c: New file.
14337 * tests/test-fprintf-posix.h: New file.
14338 * tests/test-fprintf-posix.out: New file.
14340 * modules/vfprintf-posix: New file.
14341 * lib/vfprintf.c: New file.
14342 * m4/vfprintf-posix.m4: New file.
14343 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
14345 * lib/stdio_.h (vfprintf): New declaration.
14346 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
14349 2007-03-08 Bruno Haible <bruno@clisp.org>
14351 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
14353 2007-03-08 Bruno Haible <bruno@clisp.org>
14355 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
14356 instead of 'expr' invocations.
14357 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14358 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14359 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14360 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14361 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14362 Suggested by Paul Eggert.
14364 2007-03-08 Bruno Haible <bruno@clisp.org>
14366 * modules/fseterr-tests: New file.
14367 * tests/test-fseterr.c: New file.
14369 * modules/fseterr: New file.
14370 * lib/fseterr.h: New file.
14371 * lib/fseterr.c: New file.
14373 2007-03-08 Bruno Haible <bruno@clisp.org>
14375 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
14376 * lib/getopt_.h: Likewise.
14377 * lib/mbswidth.h: Likewise.
14378 * lib/setenv.h: Likewise.
14379 * lib/vasnprintf.h: Likewise.
14380 * lib/vasprintf.h: Likewise.
14381 * lib/verror.h: Likewise.
14382 * lib/xsetenv.h: Likewise.
14383 * lib/xvasprintf.h: Likewise.
14385 2007-03-08 Jim Meyering <jim@meyering.net>
14387 * users.txt: Add parted.
14389 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
14391 2007-03-07 Bruno Haible <bruno@clisp.org>
14393 * m4/printf.m4: Make the shell script snippets copy&pastable.
14395 2007-03-02 Bruno Haible <bruno@clisp.org>
14397 * lib/netinet_in_.h: New file.
14398 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
14399 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
14400 * modules/netinet_in (Files): Add lib/netinet_in_.h.
14401 (Depends-on): Add absolute-header.
14402 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
14405 2007-03-03 Bruno Haible <bruno@clisp.org>
14407 * lib/sys_select_.h: New file.
14408 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
14409 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
14410 * modules/sys_select (Files): Add lib/sys_select_.h.
14411 (Depends-on): Add absolute-header.
14412 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
14415 2007-03-02 Bruno Haible <bruno@clisp.org>
14417 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
14418 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
14420 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
14421 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
14422 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
14423 * modules/sys_socket (Depends-on): Add absolute-header.
14424 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
14425 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
14426 (Include): Remove requirement of inclusion of <sys/types.h>.
14428 2007-03-02 Bruno Haible <bruno@clisp.org>
14430 * lib/byteswap_.h (bswap_32): Fix formula.
14432 2007-03-06 Bruno Haible <bruno@clisp.org>
14434 * modules/sprintf-posix-tests: New file.
14435 * tests/test-sprintf-posix.c: New file.
14437 * modules/sprintf-posix: New file.
14438 * lib/sprintf.c: New file.
14439 * m4/sprintf-posix.m4: New file.
14440 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
14442 * lib/stdio_.h (sprintf): New declaration.
14443 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
14446 2007-03-06 Bruno Haible <bruno@clisp.org>
14448 * modules/vsprintf-posix-tests: New file.
14449 * tests/test-vsprintf-posix.c: New file.
14450 * tests/test-sprintf-posix.h: New file.
14452 * modules/vsprintf-posix: New file.
14453 * lib/vsprintf.c: New file.
14454 * m4/vsprintf-posix.m4: New file.
14455 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
14457 * lib/stdio_.h (vsprintf): New declaration.
14458 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
14461 2007-03-06 Bruno Haible <bruno@clisp.org>
14463 * modules/vsnprintf (Depend-on): Remove minmax.
14465 2007-03-06 Bruno Haible <bruno@clisp.org>
14467 * modules/snprintf-posix-tests: New file.
14468 * tests/test-snprintf-posix.c: New file.
14470 * modules/snprintf-posix: New file.
14471 * m4/snprintf-posix.m4: New file.
14472 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
14474 (gl_FUNC_SNPRINTF): Invoke it.
14475 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
14476 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
14478 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
14480 2007-03-06 Bruno Haible <bruno@clisp.org>
14482 * modules/vsnprintf-posix-tests: New file.
14483 * tests/test-vsnprintf-posix.c: New file.
14484 * tests/test-snprintf-posix.h: New file.
14486 * modules/vsnprintf-posix: New file.
14487 * m4/vsnprintf-posix.m4: New file.
14488 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
14490 (gl_FUNC_VSNPRINTF): Invoke it.
14491 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
14492 * lib/stdio_.h (vsnprintf): Define as a replacement if
14493 REPLACE_VSNPRINTF is set.
14494 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
14496 2007-03-06 Bruno Haible <bruno@clisp.org>
14498 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
14499 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
14501 2007-03-06 Bruno Haible <bruno@clisp.org>
14503 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
14504 (asinl): Declare also if HAVE_DECL_ASINL is set.
14505 (atanl): Declare also if HAVE_DECL_ATANL is set.
14506 (ceill): Declare also if HAVE_DECL_CEILL is set.
14507 (cosl): Declare also if HAVE_DECL_COSL is set.
14508 (expl): Declare also if HAVE_DECL_EXPL is set.
14509 (floorl): Declare also if HAVE_DECL_FLOORL is set.
14510 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
14511 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
14512 (logl): Declare also if HAVE_DECL_LOGL is set.
14513 (sinl): Declare also if HAVE_DECL_SINL is set.
14514 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
14515 (tanl): Declare also if HAVE_DECL_TANL is set.
14516 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
14517 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
14518 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
14519 declaration of frexpl, ldexpl.
14520 * modules/printf-frexpl (Depends-on): Add math.
14521 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
14523 2007-03-05 Bruno Haible <bruno@clisp.org>
14525 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
14526 frexpl and ldexpl are declared.
14527 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
14529 2007-03-05 Bruno Haible <bruno@clisp.org>
14531 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
14532 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
14534 2007-03-05 Bruno Haible <bruno@clisp.org>
14536 * lib/stdio_.h: Include <stddef.h>.
14538 2007-03-05 Bruno Haible <bruno@clisp.org>
14540 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
14542 2007-03-05 Bruno Haible <bruno@clisp.org>
14544 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
14545 NetBSD 4, from Ralf Wildenhues.
14547 2007-03-04 Bruno Haible <bruno@clisp.org>
14549 * lib/vasprintf.h: Update #if logic for the case when the functions
14550 exist but are overridden.
14552 2007-03-04 Bruno Haible <bruno@clisp.org>
14554 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
14555 implementations: glibc-2.4 and MacOS X 10.3.
14556 * tests/test-vasnprintf-posix.c (test_function): Test also the case
14557 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
14558 * tests/test-vasprintf-posix.c (test_function): Likewise.
14560 2007-03-04 Bruno Haible <bruno@clisp.org>
14562 * modules/vasprintf-posix-tests: New file.
14563 * tests/test-vasprintf-posix.c: New file.
14565 * modules/vasprintf-posix: New file.
14566 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
14568 * m4/vasprintf-posix.m4: New file.
14569 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
14571 (gl_FUNC_VASPRINTF): Invoke it.
14572 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
14574 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
14576 2007-03-04 Bruno Haible <bruno@clisp.org>
14578 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
14579 REPLACE_GETTIMEOFDAY.
14580 * modules/sys_time (Makefile.am): Likewise.
14581 * m4/sys_time_h.m4: Likewise.
14582 * m4/gettimeofday.m4: Likewise.
14584 2007-03-04 Bruno Haible <bruno@clisp.org>
14586 * modules/vasnprintf-posix-tests: New file.
14587 * tests/test-vasnprintf-posix.c: New file.
14589 * modules/vasnprintf-posix: New file.
14590 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
14592 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
14593 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
14594 REPLACE_VASNPRINTF is defined.
14595 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
14596 gl_FUNC_VASNPRINTF.
14597 (gl_FUNC_VASNPRINTF): Invoke it.
14598 * m4/vasnprintf-posix.m4: New file.
14599 * m4/printf.m4: New file.
14601 2007-03-04 Bruno Haible <bruno@clisp.org>
14603 Compile progreloc.c only if --enable-relocatable is specified.
14604 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
14605 if --enable-relocatable was specified.
14606 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
14609 2007-03-04 Jim Meyering <jim@meyering.net>
14611 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
14612 Use it consistently, rather than enumerating errno constants.
14614 2007-03-04 Bruno Haible <bruno@clisp.org>
14616 * modules/xvasprintf-tests: New file.
14617 * tests/test-xvasprintf.c: New file.
14619 * modules/vasprintf-tests: New file.
14620 * tests/test-vasprintf.c: New file.
14622 * modules/vasnprintf-tests: New file.
14623 * tests/test-vasnprintf.c: New file.
14625 * modules/vsnprintf-tests: New file.
14626 * tests/test-vsnprintf.c: New file.
14628 * modules/snprintf-tests: New file.
14629 * tests/test-snprintf.c: New file.
14631 2007-03-04 Bruno Haible <bruno@clisp.org>
14633 Compile relocatable.c only if --enable-relocatable is specified.
14634 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
14635 gl_RELOCATABLE_LIBRARY.
14636 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
14637 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
14638 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
14639 gl_RELOCATABLE_LIBRARY.
14640 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
14641 (Makefile.am): Remove lib_SOURCES.
14642 * modules/relocatable-lib-lgpl (configure.ac): Invoke
14643 gl_RELOCATABLE_LIBRARY.
14644 (Makefile.am): Remove lib_SOURCES.
14645 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
14647 * modules/relocatable-prog-wrapper (configure.ac): Invoke
14648 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
14650 2007-03-04 Bruno Haible <bruno@clisp.org>
14652 * modules/argmatch-tests: New file.
14653 * tests/test-argmatch.c: New file.
14655 * tests/test-allocsa.c (main): Halve the number of loop runs.
14657 * modules/alloca-opt-tests: New file.
14658 * tests/test-alloca-opt.c: New file.
14660 2007-03-04 Jim Meyering <jim@meyering.net>
14662 Work around difference between Linux ACLs and Solaris 10 ZFS.
14663 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
14666 2007-03-03 Bruno Haible <bruno@clisp.org>
14668 * modules/relocatable-prog (Depends-on): Add back progreloc's
14669 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
14671 2007-03-03 Bruno Haible <bruno@clisp.org>
14673 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
14674 * modules/relocatable-lib: New file.
14676 2007-03-03 Bruno Haible <bruno@clisp.org>
14678 * modules/relocatable-prog: Renamed from modules/relocatable.
14679 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
14681 2007-03-03 Bruno Haible <bruno@clisp.org>
14683 * modules/relocatable-script (Files): Add doc/relocatable.texi,
14684 m4/relocatable-lib.m4.
14685 (Depends-on): Remove 'relocatable'.
14686 (configure.ac): Add gl_RELOCATABLE_NOP.
14688 2007-03-03 Bruno Haible <bruno@clisp.org>
14690 * modules/relocatable-prog-wrapper: New file.
14691 * modules/relocatable (Depends-on): Add it. Remove all other
14692 dependencies except progname.
14693 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
14695 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
14696 (gl_FUNC_STRERROR): Nop.
14697 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
14699 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
14700 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
14702 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
14703 (gl_FUNC_READLINK): Update.
14705 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
14707 2007-03-03 Bruno Haible <bruno@clisp.org>
14709 * lib/xreadlink.c: Include <unistd.h> unconditionally.
14710 * modules/xreadlink (Depends-on): Add unistd.
14711 * modules/xreadlink-with-size (Depends-on): Likewise.
14713 2007-03-03 Bruno Haible <bruno@clisp.org>
14715 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
14716 extracted from gt_FUNC_SETENV.
14717 (gt_FUNC_SETENV): Remove macro.
14718 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
14719 remove gt_FUNC_SETENV.
14721 2007-03-03 Bruno Haible <bruno@clisp.org>
14723 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
14724 ENABLE_RELOCATABLE here.
14725 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
14727 2007-03-03 Bruno Haible <bruno@clisp.org>
14729 * modules/rbtreehash-list-tests (Depends-on): Add progname.
14730 * tests/test-rbtreehash_list.c: Include progname.h.
14731 (main): Call set_program_name.
14733 * modules/rbtree-oset-tests (Depends-on): Add progname.
14734 * tests/test-rbtree_oset.c: Include progname.h.
14735 (main): Call set_program_name.
14737 * modules/rbtree-list-tests (Depends-on): Add progname.
14738 * tests/test-rbtree_list.c: Include progname.h.
14739 (main): Call set_program_name.
14741 * modules/linked-list-tests (Depends-on): Add progname.
14742 * tests/test-linked_list.c: Include progname.h.
14743 (main): Call set_program_name.
14745 2007-03-03 Bruno Haible <bruno@clisp.org>
14747 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
14748 All uses of __restrict changed to _Restrict_.
14749 * lib/glob_.h (__restrict): Remove macro.
14751 2007-03-02 Bruno Haible <bruno@clisp.org>
14753 * modules/gettext (configure.ac): Require gettext infrastructure
14754 from version 0.16.1.
14756 2007-03-02 Bruno Haible <bruno@clisp.org>
14758 * modules/linkedhash-list-tests (Depends-on): Add progname.
14759 * tests/test-linkedhash_list.c: Include progname.h.
14760 (main): Call set_program_name.
14762 * modules/carray-list-tests (Depends-on): Add progname.
14763 * tests/test-carray_list.c: Include progname.h.
14764 (main): Call set_program_name.
14766 * modules/avltreehash-list-tests (Depends-on): Add progname.
14767 * tests/test-avltreehash_list.c: Include progname.h.
14768 (main): Call set_program_name.
14770 * modules/avltree-oset-tests (Depends-on): Add progname.
14771 * tests/test-avltree_oset.c: Include progname.h.
14772 (main): Call set_program_name.
14774 * modules/avltree-list-tests (Depends-on): Add progname.
14775 * tests/test-avltree_list.c: Include progname.h.
14776 (main): Call set_program_name.
14778 * modules/array-oset-tests (Depends-on): Add progname.
14779 * tests/test-array_oset.c: Include progname.h.
14780 (main): Call set_program_name.
14782 * modules/array-list-tests (Depends-on): Add progname.
14783 * tests/test-array_list.c: Include progname.h.
14784 (main): Call set_program_name.
14786 * modules/argp-tests (Depends-on): Add progname.
14787 * tests/test-argp.c: Include argp.h first. Include progname.h.
14788 (main): Call set_program_name.
14790 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
14792 * doc/gnulib-tool.texi (Initial import): Reword description of
14793 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
14794 limited effect even if defined after the first system include.
14796 2007-03-01 Bruno Haible <bruno@clisp.org>
14798 * build-aux/config.libpath: Update to libtool-1.5.22.
14799 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14801 2007-03-01 Bruno Haible <bruno@clisp.org>
14803 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
14805 Reported by Ralf Wildenhues.
14807 2007-03-01 Bruno Haible <bruno@clisp.org>
14809 * build-aux/install-reloc: Remove object files left over by some
14811 Reported by Ralf Wildenhues.
14813 2007-03-01 Bruno Haible <bruno@clisp.org>
14815 * build-aux/install-reloc: Break long lines.
14817 2007-03-01 Bruno Haible <bruno@clisp.org>
14819 * doc/relocatable.texi: Document that it may not work on OpenBSD.
14820 Reported by Ralf Wildenhues.
14822 2007-03-01 Bruno Haible <bruno@clisp.org>
14824 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
14825 include ordering constraints.
14827 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
14829 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
14830 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
14831 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
14832 as another example.
14833 * lib/time_.h: Fix misspelling.
14834 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
14835 Require gl_HEADER_TIME_H_DEFAULTS.
14836 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
14837 * m4/time_r.m4 (gl_TIME_R): Likewise.
14838 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
14840 2007-03-01 Bruno Haible <bruno@clisp.org>
14842 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
14843 * m4/utimens.m4 (gl_UTIMENS): Likewise.
14845 2007-03-01 Jim Meyering <jim@meyering.net>
14847 * modules/xreadlink (Maintainer): Add my name.
14848 * modules/xreadlink-with-size (Depends-on): Alphabetize.
14850 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
14851 Bruno Haible <bruno@clisp.org>
14853 * build-aux/install-reloc: Compile also c-ctype.c.
14854 * build-aux/relocatable.sh.in: New file.
14855 * doc/relocatable.texi: New file.
14856 * doc/relocatable-maint.texi: New file.
14857 * doc/gnulib.texi: Include relocatable-maint.texi.
14858 * lib/progreloc.c: Include unistd.h unconditionally.
14859 * lib/relocwrapper.c: Include unistd.h unconditionally.
14861 (add_dotbin): Use c_tolower.
14862 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
14863 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
14864 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
14865 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
14866 to m4/relocatable-lib.m4.
14867 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
14868 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
14869 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
14870 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
14871 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
14872 * modules/relocatable: New file.
14873 * modules/relocatable-lib: New file.
14874 * modules/relocatable-script: New file.
14876 2007-02-28 Bruno Haible <bruno@clisp.org>
14878 Import --enable-relocatable infrastructure.
14879 * build-aux/config.libpath: New file, from GNU gettext.
14880 * build-aux/install-reloc: New file, from GNU gettext.
14881 * build-aux/reloc-ldflags: New file, from GNU gettext.
14882 * lib/relocatable.h: New file, from GNU gettext.
14883 * lib/relocatable.c: New file, from GNU gettext.
14884 * lib/relocwrapper.c: New file, from GNU gettext.
14885 * m4/relocatable.m4: New file, from GNU gettext.
14887 2007-02-28 Bruno Haible <bruno@clisp.org>
14889 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
14891 * modules/xreadlink: New file, from GNU gettext with modifications.
14892 * lib/xreadlink.c: New file, from GNU gettext.
14893 * lib/xreadlink.h: Add comments.
14894 (xreadlink): New declaration.
14896 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
14897 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
14898 lib/xreadlink-with-size.c.
14899 (configure.ac): Remove gl_XREADLINK invocation.
14900 (Makefile.am): Augment lib_SOURCES.
14901 * m4/xreadlink.m4: Remove file.
14902 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
14903 (xreadlink_with_size): Renamed from xreadink.
14904 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
14905 * modules/canonicalize (Depends-on): Replace xreadlink with
14906 xreadlink-with-size.
14907 * lib/canonicalize.c (canonicalize_filename_mode): Update.
14909 2007-02-25 Jim Meyering <jim@meyering.net>
14911 * build-aux/announce-gen: When complaining about excess arguments,
14914 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
14916 * README: Document signed integer overflow situation more
14919 2007-02-25 Bruno Haible <bruno@clisp.org>
14921 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
14922 'a' or 'A' conversion.
14924 2007-02-25 Bruno Haible <bruno@clisp.org>
14926 * modules/filename: Renamed from modules/pathname.
14927 (Files): Replace lib/pathname.h with lib/filename.h. Replace
14928 lib/concatpath.c with lib/concat-filename.c.
14929 (Makefile.am): Update.
14930 (Include): Replace pathname.h with filename.h.
14931 * lib/filename.h: Renamed from lib/pathname.h.
14932 (concatenated_filename): Renamed from concatenated_pathname.
14933 * lib/concat-filename.c: Renamed from lib/concatpath.c.
14934 (concatenated_filename): Renamed from concatenated_pathname.
14935 * lib/findprog.c: Include filename.h instead of pathname.h.
14936 (find_in_path): Update.
14937 * lib/javacomp.c: Include filename.h instead of pathname.h.
14938 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
14939 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
14940 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
14941 is_oldgcj_14_13_usable, is_javac_usable): Update.
14942 * lib/javaexec.c: Include filename.h instead of pathname.h.
14943 (execute_java_class): Update.
14944 * modules/findprog: Update.
14945 * modules/javacomp: Update.
14946 * modules/javaexec: Update.
14947 * MODULES.html.sh (File system functions): Add 'filename', remove
14950 2007-02-25 Bruno Haible <bruno@clisp.org>
14952 * modules/printf-frexpl-tests: New file.
14953 * tests/test-printf-frexpl.c: New file.
14955 * modules/printf-frexpl: New file.
14956 * lib/printf-frexpl.h: New file.
14957 * lib/printf-frexpl.c: New file.
14958 * m4/printf-frexpl.m4: New file.
14960 2007-02-25 Bruno Haible <bruno@clisp.org>
14962 * modules/printf-frexp-tests: New file.
14963 * tests/test-printf-frexp.c: New file.
14965 * modules/printf-frexp: New file.
14966 * lib/printf-frexp.h: New file.
14967 * lib/printf-frexp.c: New file.
14968 * m4/printf-frexp.m4: New file.
14970 2007-02-25 Bruno Haible <bruno@clisp.org>
14972 Assume automake >= 1.10 for the tests.
14973 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
14974 * modules/arctwo-tests: Likewise.
14975 * modules/argp-tests: Likewise.
14976 * modules/avltree-list-tests: Likewise.
14977 * modules/avltree-oset-tests: Likewise.
14978 * modules/avltreehash-list-tests: Likewise.
14979 * modules/carray-list-tests: Likewise.
14980 * modules/crc-tests: Likewise.
14981 * modules/des-tests: Likewise.
14982 * modules/gc-arcfour-tests: Likewise.
14983 * modules/gc-arctwo-tests: Likewise.
14984 * modules/gc-des-tests: Likewise.
14985 * modules/gc-hmac-md5-tests: Likewise.
14986 * modules/gc-hmac-sha1-tests: Likewise.
14987 * modules/gc-md2-tests: Likewise.
14988 * modules/gc-md4-tests: Likewise.
14989 * modules/gc-md5-tests: Likewise.
14990 * modules/gc-pbkdf2-sha1-tests: Likewise.
14991 * modules/gc-rijndael-tests: Likewise.
14992 * modules/gc-sha1-tests: Likewise.
14993 * modules/gc-tests: Likewise.
14994 * modules/getaddrinfo-tests: Likewise.
14995 * modules/hmac-md5-tests: Likewise.
14996 * modules/hmac-sha1-tests: Likewise.
14997 * modules/linked-list-tests: Likewise.
14998 * modules/linkedhash-list-tests: Likewise.
14999 * modules/lock-tests: Likewise.
15000 * modules/md2-tests: Likewise.
15001 * modules/md4-tests: Likewise.
15002 * modules/md5-tests: Likewise.
15003 * modules/rbtree-list-tests: Likewise.
15004 * modules/rbtree-oset-tests: Likewise.
15005 * modules/rbtreehash-list-tests: Likewise.
15006 * modules/read-file-tests: Likewise.
15007 * modules/rijndael-tests: Likewise.
15008 * modules/stdint-tests: Likewise.
15009 * modules/tls-tests: Likewise.
15011 2007-02-24 Bruno Haible <bruno@clisp.org>
15013 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15014 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15015 function; instead check whether isnan with a double argument links.
15016 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15017 function; instead check whether isnan with a 'long double' argument
15019 Reported by Eric Blake <ebb9@byu.net>.
15021 2007-02-24 Bruno Haible <bruno@clisp.org>
15023 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15025 * lib/isnanl.c: Remove all code. Just include isnan.c.
15026 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15028 2007-02-25 Jim Meyering <jim@meyering.net>
15030 Avoid conflicting types for 'unsetenv' on FreeBSD.
15031 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15032 conflicting with FreeBSD's (5.0 and 6.1) function declaration
15035 2007-02-24 Bruno Haible <bruno@clisp.org>
15037 * modules/isnanl-nolibm-tests: New file.
15038 * tests/test-isnanl.c: New file.
15040 * modules/isnanl-nolibm: New file.
15041 * lib/isnanl.h: New file.
15042 * lib/isnanl.c: New file.
15043 * m4/isnanl.m4: New file.
15045 2007-02-24 Bruno Haible <bruno@clisp.org>
15047 * modules/isnan-nolibm-tests: New file.
15048 * tests/test-isnan.c: New file.
15050 * modules/isnan-nolibm: New file.
15051 * lib/isnan.h: New file.
15052 * lib/isnan.c: New file.
15053 * m4/isnan.m4: New file.
15055 2007-02-24 Bruno Haible <bruno@clisp.org>
15057 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15058 assume that an exponent fits in 20 bits.
15060 2007-02-24 Jim Meyering <jim@meyering.net>
15062 * m4/regex.m4: Update the description of the configure-time option,
15063 --without-included-regex, to state accurately what the defaults are,
15064 and perhaps to give people an idea why using this option is risky.
15066 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
15068 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15069 loops on small arguments. This attempts to avoid the problem
15070 Bruno Haible reported for AIX 4.3.2 in
15071 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15073 2007-02-23 Bruno Haible <bruno@clisp.org>
15075 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15076 Needed for help2man.
15078 2007-02-23 Karl Berry <karl@gnu.org>
15080 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15081 exists, foo.h should be cvs-ignored, not committed.
15083 2007-02-23 Eric Blake <ebb9@byu.net>
15085 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
15086 * lib/stat-time.h (includes): Likewise.
15087 * lib/utimecmp.c (includes): Likewise.
15088 * lib/utimens.h (includes): Likewise.
15089 * lib/getdate.y (includes): Also include "timespec.h" for use
15090 internal to the module.
15091 * modules/utimens (Depends-on): Revert yesterday's patch.
15092 * modules/nanosleep (Depends-on): Add missing dependency.
15094 2007-02-22 Bruno Haible <bruno@clisp.org>
15096 * lib/glob.c: Don't include getlogin_r.h.
15098 2007-02-22 Jim Meyering <jim@meyering.net>
15100 * modules/utimens (Depends-on): Add timespec, required for
15101 utimens.h's inclusion of timespec.h.
15103 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
15105 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
15106 long unreadable paths in GNU/Linux. Problem reported by Andreas
15108 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
15109 I'll try to think of a better way to fix the Solaris problem.
15111 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
15112 like glibc; on Solaris 10, it fails with errno == EINVAL.
15113 POSIX says the behavior is unspecified if the first argument is NULL,
15114 so play it safe and never pass NULL to the system getcwd.
15116 2007-02-21 Jim Meyering <jim@meyering.net>
15118 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
15119 of gettimeofday. It would conflict with the one now always
15120 provided via sys_time_.h. Reported by Matthew Woehlke, as
15121 an IRIX 6.5 build failure.
15123 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
15125 Minor fixups to port to Solaris 10 with Sun C 5.8.
15126 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
15127 * modules/getcwd (Depends-on): Add dirfd.
15128 * lib/putenv.c (putenv): #undef it.
15129 (rpl_putenv): New decl.
15130 (malloc, free): Include <stdlib.h> rather than prototyping separately.
15132 2007-02-20 Bruno Haible <bruno@clisp.org>
15134 * modules/stdio-tests: New file.
15135 * tests/test-stdio.c: New file.
15137 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
15138 (Depends-on): Add stdio.
15139 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15140 (Include): Use <stdio.h> instead of vsnprintf.h.
15141 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15142 HAVE_DECL_VSNPRINTF.
15143 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
15145 * modules/snprintf (Files): Remove lib/snprintf.h.
15146 (Depends-on): Add stdio.
15147 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15148 (Include): Use <stdio.h> instead of snprintf.h.
15149 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15150 HAVE_DECL_SNPRINTF.
15151 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
15152 * lib/getaddrinfo.c: Likewise.
15154 * modules/stdio: New file.
15155 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
15156 * lib/snprintf.h: Remove file.
15157 * lib/vsnprintf.h: Remove file.
15158 * lib/.cppi-disable: Remove snprintf.h.
15159 * m4/stdio_h.m4: New file.
15160 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
15162 2007-02-20 Jim Meyering <jim@meyering.net>
15164 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
15165 used by e.g., mingw. From Bruno Haible.
15167 2007-02-19 Bruno Haible <bruno@clisp.org>
15169 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
15171 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15173 2007-02-19 Bruno Haible <bruno@clisp.org>
15175 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
15178 2007-02-19 Bruno Haible <bruno@clisp.org>
15180 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
15182 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
15184 2007-02-19 Jim Meyering <jim@meyering.net>
15186 Don't use FD after a successful "fdopendir (fd)".
15187 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
15188 Reset it by calling dirfd on the just-obtained DIR*.
15190 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
15191 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
15193 2007-02-18 Bruno Haible <bruno@clisp.org>
15195 * lib/readlink.c: Include <unistd.h>.
15196 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
15198 * modules/readlink (Depends-on): Add unistd.
15199 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15200 (Include): Add <unistd.h>.
15202 * lib/getlogin_r.h: Remove file.
15203 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
15204 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
15205 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
15206 HAVE_DECL_GETLOGIN_R.
15207 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
15208 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15209 (Include): Use <unistd.h> instead of getlogin_r.h.
15211 * lib/getcwd.h: Remove file.
15212 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
15213 * lib/xgetcwd.c: Likewise.
15214 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
15215 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
15216 * modules/getcwd (Files): Remove lib/getcwd.h.
15217 (Depends-on): Add unistd.
15218 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15219 (Include): Use <unistd.h> instad of getcwd.h.
15221 * lib/ftruncate.c: Include <unistd.h> first.
15222 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
15223 Set HAVE_FTRUNCATE.
15224 * modules/ftruncate (Depends-on): Add unistd.
15225 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15227 * lib/fchdir.c: Include <unistd.h> first.
15228 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
15229 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
15230 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
15231 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15232 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
15234 * lib/dup2.c: Include <unistd.h> first.
15235 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
15237 * modules/dup2 (Depends-on): Add unistd.
15238 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15240 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
15241 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
15242 REPLACE_CHOWN. Don't define chown as a macro here.
15243 * modules/chown (Depends-on): Add unistd.
15244 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15246 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
15247 Add definition for GL_LINK_WARNING.
15248 (chown, dup2): New declarations.
15249 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
15251 (ftruncate): New declaration.
15252 (getcwd): New declaration, taken from old getcwd.h.
15253 (getlogin_r): New declaration, taken from old getlogin_r.h.
15254 (readlink): New declaration.
15255 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
15256 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
15257 (gl_PREREQ_UNISTD): Remove macro.
15258 (gl_UNISTD_MODULE_INDICATOR): New macro.
15259 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
15260 many new variables. Don't set UNISTD_H.
15261 * modules/unistd (Description): Change.
15262 (Depends-on): Add link-warning.
15263 (configure.ac): Update.
15264 (Makefile.am): Create unistd.h always. Substitute many new variables
15267 2007-02-18 Bruno Haible <bruno@clisp.org>
15269 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
15270 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
15272 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
15273 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
15274 * lib/getsubopt.h: Remove file.
15275 * modules/getsubopt (Files): Remove lib/getsubopt.h.
15276 (Depends-on): Add stdlib.
15277 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15278 (Includes): Use <stdlib.h> instead of getsubopt.h.
15279 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
15280 Set HAVE_GETSUBOPT.
15281 * lib/getsubopt.c: Don't include getsubopt.h.
15283 2007-02-18 Bruno Haible <bruno@clisp.org>
15285 * modules/fchdir (Depends-on): Add dup2.
15287 2007-02-18 Bruno Haible <bruno@clisp.org>
15289 * lib/stdlib_.h: Handle glibc's special invocation convention
15292 2007-02-18 Bruno Haible <bruno@clisp.org>
15294 * modules/stdlib-tests: New file.
15295 * tests/test-stdlib.c: New file.
15297 * modules/mkstemp (Files): Remove lib/mkstemp.h.
15298 (Depends-on): Add stdlib.
15299 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15300 (Includes): Use <stdlib.h> instead of mkstemp.h.
15301 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15302 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
15303 * lib/mkstemp.c: Don't include mkstemp.h.
15304 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
15305 * lib/stdlib--.h: Don't include mkstemp.h.
15307 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
15308 (Depends-on): Add stdlib.
15309 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15310 (Includes): Use <stdlib.h> instead of mkdtemp.h.
15311 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15313 * lib/mkdtemp.c: Don't include mkdtemp.h.
15314 * lib/clean-temp.c: Don't include mkdtemp.h.
15316 * modules/exit (Files): Remove lib/exit.h.
15317 (Depends-on): Add stdlib.
15318 (Makefile.am): Remove lib_SOURCES.
15319 (Include): Use <stdlib.h> instead of exit.h.
15320 * lib/argmatch.c: Don't include exit.h.
15321 * lib/execute.c: Likewise.
15322 * lib/pagealign_alloc.c: Likewise.
15323 * lib/pipe.c: Likewise.
15324 * lib/wait-process.c: Likewise.
15325 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
15326 * lib/exitfail.c: Likewise.
15327 * lib/savewd.c: Likewise.
15328 * lib/xsetenv.c: Likewise.
15330 * modules/stdlib: New file.
15331 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
15332 and extra comments about mkstemp().
15333 * lib/exit.h: Remove file.
15334 * lib/mkdtemp.h: Remove file.
15335 * lib/mkstemp.h: Remove file.
15336 * m4/stdlib_h.m4: New file.
15337 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
15339 2007-02-18 Bruno Haible <bruno@clisp.org>
15341 * modules/math-tests: New file.
15342 * tests/test-math.c: New file.
15344 * modules/math: New file.
15345 * modules/mathl (Files): Remove lib/mathl.h.
15346 (Depends-on): Add math.
15347 (Makefile.am): Don't mention mathl.h.
15348 (Include): Use <math.h> instead of mathl.h.
15349 * lib/math_.h: New file.
15350 * lib/mathl.h: Remove file.
15351 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
15353 * lib/asinl.c: Likewise.
15354 * lib/atanl.c: Likewise.
15355 * lib/ceill.c: Likewise.
15356 * lib/cosl.c: Likewise.
15357 * lib/expl.c: Likewise.
15358 * lib/floorl.c: Likewise.
15359 * lib/frexpl.c: Likewise.
15360 * lib/ldexpl.c: Likewise.
15361 * lib/logl.c: Likewise.
15362 * lib/sincosl.c: Likewise.
15363 * lib/sinl.c: Likewise.
15364 * lib/sqrtl.c: Likewise.
15365 * lib/tanl.c: Likewise.
15366 * lib/trigl.c: Likewise.
15367 * m4/math_h.m4: New file.
15368 * MODULES.html.sh (Mathematics): Add math.
15370 2007-02-17 Bruno Haible <bruno@clisp.org>
15372 * modules/wctype-tests: New file.
15373 * tests/test-wctype.c: New file.
15375 * modules/wchar-tests: New file.
15376 * tests/test-wchar.c: New file.
15378 * modules/unistd-tests: New file.
15379 * tests/test-unistd.c: New file.
15381 * modules/time-tests: New file.
15382 * tests/test-time.c: New file.
15384 * modules/sysexits-tests: New file.
15385 * tests/test-sysexits.c: New file.
15387 * modules/sys_time-tests: New file.
15388 * tests/test-sys_time.c: New file.
15390 * modules/sys_stat-tests: New file.
15391 * tests/test-sys_stat.c: New file.
15393 * modules/sys_socket-tests: New file.
15394 * tests/test-sys_socket.c: New file.
15396 * modules/sys_select-tests: New file.
15397 * tests/test-sys_select.c: New file.
15399 * modules/string-tests: New file.
15400 * tests/test-string.c: New file.
15402 * modules/stdbool-tests: New file.
15403 * tests/test-stdbool.c: New file.
15405 * modules/netinet_in-tests: New file.
15406 * tests/test-netinet_in.c: New file.
15408 * modules/inttypes-tests: New file.
15409 * tests/test-inttypes.c: New file.
15411 * modules/fcntl-tests: New file.
15412 * tests/test-fcntl.c: New file.
15414 * modules/byteswap-tests: New file.
15415 * tests/test-byteswap.c: New file.
15417 * modules/arpa_inet-tests: New file.
15418 * tests/test-arpa_inet.c: New file.
15420 2007-02-17 Bruno Haible <bruno@clisp.org>
15422 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
15423 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
15424 if the corresponding module is not enabled. Emit link warnings if
15425 the function is used nevertheless.
15426 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
15427 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
15428 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
15429 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
15430 * modules/inttypes (Depends-on): Add link-warning.
15431 (Makefile.am): Copy the contents of build-aux/link-warning.h into
15432 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
15433 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
15434 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
15435 * modules/imaxdiv (configure.ac): Likewise.
15436 * modules/strtoimax (configure.ac): Likewise.
15437 * modules/strtoumax (configure.ac): Likewise.
15439 2007-02-17 Bruno Haible <bruno@clisp.org>
15441 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
15442 gl_STRING_MODULE_INDICATOR_DEFAULTS.
15443 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
15444 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
15446 2007-02-17 Bruno Haible <bruno@clisp.org>
15448 * modules/link-warning: New file.
15449 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
15450 * lib/string_.h (GL_LINK_WARNING): Remove definition.
15451 * modules/string (Depends-on): Add link-warning.
15452 (Makefile.am): Copy the contents of build-aux/link-warning.h into
15454 * MODULES.html.sh (Support for building libraries and executables): Add
15457 2007-02-17 Bruno Haible <bruno@clisp.org>
15459 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
15460 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
15461 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
15464 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
15465 Bruno Haible <bruno@clisp.org>
15467 * modules/tmpfile: New file.
15468 * lib/tmpfile.c: New file.
15469 * m4/tmpfile.m4: New file.
15470 * MODULES.html.sh (func_all_modules): New section "Input/output".
15472 2007-02-15 Bruno Haible <bruno@clisp.org>
15474 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
15475 (supports_delete_on_close): New function.
15476 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
15478 2007-02-14 Bruno Haible <bruno@clisp.org>
15480 * modules/mbspcasecmp-tests: New file.
15481 * tests/test-mbspcasecmp.sh: New file.
15482 * tests/test-mbspcasecmp.c: New file.
15484 New module mbspcasecmp.
15485 * modules/mbspcasecmp: New file.
15486 * lib/mbspcasecmp.c: New file.
15487 * lib/string_.h (strncasecmp): Change warning message.
15488 (mbspcasecmp): New declaration.
15489 * m4/mbspcasecmp.m4: New file.
15490 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15491 GNULIB_MBSPCASECMP.
15492 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
15493 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
15495 2007-02-14 Bruno Haible <bruno@clisp.org>
15497 * modules/mbsncasecmp-tests: New file.
15498 * tests/test-mbsncasecmp.sh: New file.
15499 * tests/test-mbsncasecmp.c: New file.
15501 New module mbsncasecmp.
15502 * modules/mbsncasecmp: New file.
15503 * lib/mbsncasecmp.c: New file.
15504 * lib/string_.h (mbsncasecmp): New declaration.
15505 * m4/mbsncasecmp.m4: New file.
15506 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15507 GNULIB_MBSNCASECMP.
15508 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
15509 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
15511 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
15513 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
15514 Verify that it doesn't overlap with our flags.
15515 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
15516 do not have the desired effect in multibyte locales; instead, use
15518 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
15519 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
15520 we don't require GNU fnmatch ourselves (if our users require it, they
15521 should do so explicitly).
15523 Fix regex code so it doesn't rely on strcasecmp.
15524 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
15525 Otherwise, include gnulib's langinfo.h.
15526 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
15527 undesirable behavior in non-C locales. Instead, rely on localecharset.
15528 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
15529 * modules/regex (FILES): Remove m4/codeset.m4.
15530 (Depends-on): Add localcharset. Remove strcase.
15532 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15534 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
15535 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15537 2007-02-13 Bruno Haible <bruno@clisp.org>
15539 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
15540 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15542 2007-02-12 Bruno Haible <bruno@clisp.org>
15544 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
15545 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
15546 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
15547 time warning rather than a link error.
15549 2007-02-12 Bruno Haible <bruno@clisp.org>
15551 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
15552 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15553 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15555 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
15557 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
15560 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
15562 New module 'time', so that apps can include <time.h> as per
15563 POSIX and GNU instead of separate include files like time_r.h
15564 and timegm.h. This implementation tries out a simpler approach
15565 for replacing decls in standard include files (as compared to
15566 the string module), somewhat as an experiment.
15568 * config/srclist.txt: Comment out mktime.c for now.
15569 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
15570 since it doesn't apply any more. Use generic wording instead.
15571 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
15573 * lib/time_.h, m4/time_h.m4, modules/time: New files.
15574 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
15575 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
15576 Don't include <sys/types.h>; no longer needed since we assume C89.
15577 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
15578 * lib/strftime.c: Likewise.
15579 * lib/time_r.c: Likewise.
15580 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
15581 * lib/nanosleep.c: Include <time.h> first, to check interface.
15582 * lib/strptime.c: Likewise.
15583 * lib/time_r.c: Likewise.
15584 * lib/timegm.c: Likewise.
15585 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
15587 * lib/timegm.c: Don't include timegm.h; no longer needed.
15588 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
15589 time.h now handles any problems in that area.
15590 (struct timespec, nanosleep): Remove; time.h now arranges for these.
15591 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
15592 that time.h defines struct timespec.
15593 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
15594 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
15596 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
15597 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
15598 needed. Set REPLACE_LOCALTIME.
15599 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
15600 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
15601 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
15602 nanosleep; time_h.m4 now does that. Don't require
15603 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
15604 module handles this now.
15605 * modules/getdate (Depends-on): Remove timespec. Add time.
15606 * modules/nanosleep (Depends-on): Likewise.
15607 * modules/stat-time (Depends-on): Likewise.
15608 * modules/nanosleep (Include): Include time.h, not timespec.h.
15609 * modules/strptime (Files): Remove lib/strptime.h.
15610 (Depends-on): Add extensions, time.
15611 (Include): Include time.h, not strptime.h.
15612 * modules/time_r (Files): Remove lib/time_r.h.
15613 (Depends-on): Add time.
15614 (Include): Include time.h, not time_r.h.
15615 * modules/timegm: Likewise.
15616 * modules/timespec (Description): Now does timespec-related decls
15617 of our own, instead of struct timespec itself.
15618 (Depends-on): Add time; remove extensions.
15619 (Maintainer): Add self.
15620 * modules/utimecmp (Depends-on): Add time; remove timespec.
15621 * modules/utimens (Depends-on): Likewise.
15622 * modules/xnanosleep (Depends-on): Likewise.
15624 2007-02-11 Bruno Haible <bruno@clisp.org>
15626 * lib/c-strstr.c: Include allocsa.h.
15627 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15628 * lib/c-strcasestr.c: Include allocsa.h.
15629 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15630 * lib/strcasestr.c: Include allocsa.h.
15631 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
15632 * lib/mbsstr.c: Include allocsa.h.
15633 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
15634 allocsa/freesa instead of malloc/free.
15635 * lib/mbscasestr.c: Include allocsa.h.
15636 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
15637 allocsa/freesa instead of malloc/free.
15638 * modules/c-strstr (Depends-on): Add allocsa.
15639 * modules/c-strcasestr (Depends-on): Likewise.
15640 * modules/strcasestr (Depends-on): Likewise.
15641 * modules/mbsstr (Depends-on): Likewise.
15642 * modules/mbscasestr (Depends-on): Likewise.
15644 2007-02-11 Bruno Haible <bruno@clisp.org>
15646 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
15648 * modules/mbsspn-tests: New file.
15649 * tests/test-mbsspn.sh: New file.
15650 * tests/test-mbsspn.c: New file.
15652 2007-02-11 Bruno Haible <bruno@clisp.org>
15654 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
15656 * modules/mbspbrk-tests: New file.
15657 * tests/test-mbspbrk.sh: New file.
15658 * tests/test-mbspbrk.c: New file.
15660 2007-02-11 Bruno Haible <bruno@clisp.org>
15662 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
15665 * modules/mbscspn-tests: New file.
15666 * tests/test-mbscspn.sh: New file.
15667 * tests/test-mbscspn.c: New file.
15669 2007-02-11 Bruno Haible <bruno@clisp.org>
15671 * modules/mbscasecmp-tests: New file.
15672 * tests/test-mbscasecmp.sh: New file.
15673 * tests/test-mbscasecmp.c: New file.
15675 2007-02-11 Bruno Haible <bruno@clisp.org>
15677 Ensure O(n) worst-case complexity of mbscasestr.
15678 * lib/mbscasestr.c: Include stdbool.h.
15679 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
15681 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
15682 the bookkeeping indicates that it's worth it.
15683 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
15685 * modules/mbscasestr-tests: New file.
15686 * tests/test-mbscasestr1.c: New file.
15687 * tests/test-mbscasestr2.sh: New file.
15688 * tests/test-mbscasestr2.c: New file.
15689 * tests/test-mbscasestr3.sh: New file.
15690 * tests/test-mbscasestr3.c: New file.
15691 * tests/test-mbscasestr4.sh: New file.
15692 * tests/test-mbscasestr4.c: New file.
15693 * m4/locale-tr.m4: New file.
15695 2007-02-11 Bruno Haible <bruno@clisp.org>
15697 Ensure O(n) worst-case complexity of mbsstr.
15698 * lib/mbsstr.c: Include stdbool.h.
15699 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
15701 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
15702 bookkeeping indicates that it's worth it.
15703 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
15705 * modules/mbsstr-tests: New file.
15706 * tests/test-mbsstr1.c: New file.
15707 * tests/test-mbsstr2.sh: New file.
15708 * tests/test-mbsstr2.c: New file.
15709 * tests/test-mbsstr3.sh: New file.
15710 * tests/test-mbsstr3.c: New file.
15711 * m4/locale-fr.m4: New file.
15713 2007-02-11 Bruno Haible <bruno@clisp.org>
15715 * lib/mbsrchr.c (mbsrchr): Fix bug.
15717 * modules/mbsrchr-tests: New file.
15718 * tests/test-mbsrchr.sh: New file.
15719 * tests/test-mbsrchr.c: New file.
15721 2007-02-11 Bruno Haible <bruno@clisp.org>
15723 * lib/mbschr.c (mbschr): Fix bug.
15725 * modules/mbschr-tests: New file.
15726 * tests/test-mbschr.sh: New file.
15727 * tests/test-mbschr.c: New file.
15728 * m4/locale-zh.m4: New file.
15730 2007-02-11 Bruno Haible <bruno@clisp.org>
15732 Support for copying multibyte string iterators.
15733 * lib/mbiter.h: Include <string.h>.
15734 (mbiter_multi_copy): New function.
15735 (mbi_copy): New macro.
15736 * lib/mbuiter.h: Include <string.h>.
15737 (mbuiter_multi_copy): New function.
15738 (mbui_copy): New macro.
15740 2007-02-11 Bruno Haible <bruno@clisp.org>
15743 * modules/mbslen: New file.
15744 * lib/mbslen.c: New file.
15745 * lib/string_.h (mbslen): New declaration.
15746 * m4/mbslen.m4: New file.
15747 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15749 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
15750 * MODULES.html.sh (Internationalization functions): Add mbslen.
15752 2007-02-11 Bruno Haible <bruno@clisp.org>
15754 Ensure O(n) worst-case complexity of strcasestr substitute.
15755 * lib/strcasestr.c: Include stdbool.h.
15756 (knuth_morris_pratt): New function.
15757 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
15758 bookkeeping indicates that it's worth it.
15759 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
15761 * modules/strcasestr-tests: New file.
15762 * tests/test-strcasestr.c: New file.
15764 2007-02-11 Bruno Haible <bruno@clisp.org>
15766 Ensure O(n) worst-case complexity of c_strcasestr.
15767 * lib/c-strcasestr.c: Include stdbool.h, string.h.
15768 (knuth_morris_pratt): New function.
15769 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
15770 the bookkeeping indicates that it's worth it.
15771 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
15773 * modules/c-strcasestr-tests: New file.
15774 * tests/test-c-strcasestr.c: New file.
15776 2007-02-11 Bruno Haible <bruno@clisp.org>
15778 Ensure O(n) worst-case complexity of c_strstr.
15779 * lib/c-strstr.c: Include stdbool.h, string.h.
15780 (knuth_morris_pratt): New function.
15781 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
15782 bookkeeping indicates that it's worth it.
15783 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
15785 * lib/c-strstr.c: Complete rewrite for maintainability.
15787 * modules/c-strstr-tests: New file.
15788 * tests/test-c-strstr.c: New file.
15790 2007-02-11 Bruno Haible <bruno@clisp.org>
15792 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
15793 5.2.1 and earlier, whereby \055 was treated just like the range
15795 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
15797 2007-02-08 Bruno Haible <bruno@clisp.org>
15799 * modules/regex (Depends-on): Add stdbool.
15800 Reported by Dalibor Topic <robilad@kaffe.org>.
15802 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
15804 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
15805 Prefer returning from main to exiting from it.
15806 Remove unnecessary parens after sizeof.
15808 2007-02-05 Bruno Haible <bruno@clisp.org>
15811 * modules/mbssep: New file.
15812 * lib/mbssep.c: New file.
15813 * lib/string_.h (strsep): Add a conditional link warning.
15814 (mbssep): New declaration.
15815 * m4/mbssep.m4: New file.
15816 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15818 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
15819 * MODULES.html.sh (Internationalization functions): Add mbssep.
15821 2007-02-05 Bruno Haible <bruno@clisp.org>
15823 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
15824 Optimize search in case of 1 delimiter.
15826 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
15828 * lib/acl.h: Include sys/types.h before sys/acl.h.
15830 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
15832 Merge upstream fix for glibc bugzilla #3957:
15834 2007-02-05 Jakub Jelinek <jakub@redhat.com>
15836 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
15837 bit for RE_HAT_LISTS_NOT_NEWLINE.
15838 (build_charclass_op): Remove bogus comment.
15840 2007-02-05 Simon Josefsson <simon@josefsson.org>
15842 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
15844 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
15846 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
15847 * lib/memmem.c [!defined _LIBC]: Include config.h.
15849 2007-02-04 Bruno Haible <bruno@clisp.org>
15851 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
15854 2007-02-04 Bruno Haible <bruno@clisp.org>
15856 New module mbstok_r.
15857 * modules/mbstok_r: New file.
15858 * lib/mbstok_r.c: New file.
15859 * lib/string_.h (strtok_r): Change argument names to match the
15860 comments. Add a conditional link warning.
15861 (mbstok_r): New declaration.
15862 * m4/mbstok_r.m4: New file.
15863 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15865 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
15866 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
15868 2007-02-04 Bruno Haible <bruno@clisp.org>
15871 * modules/mbsspn: New file.
15872 * lib/mbsspn.c: New file.
15873 * lib/string_.h (strspn): Add a conditional link warning.
15874 (mbsspn): New declaration.
15875 * m4/mbsspn.m4: New file.
15876 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15878 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
15879 * MODULES.html.sh (Internationalization functions): Add mbsspn.
15881 2007-02-04 Bruno Haible <bruno@clisp.org>
15883 New module mbspbrk.
15884 * modules/mbspbrk: New file.
15885 * lib/mbspbrk.c: New file.
15886 * lib/string_.h (strpbrk): Add a conditional link warning.
15887 (mbspbrk): New declaration.
15888 * m4/mbspbrk.m4: New file.
15889 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15891 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
15892 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
15894 2007-02-04 Bruno Haible <bruno@clisp.org>
15896 New module mbscspn.
15897 * modules/mbscspn: New file.
15898 * lib/mbscspn.c: New file.
15899 * lib/string_.h (strcspn): Add a conditional link warning.
15900 (mbscspn): New declaration.
15901 * m4/mbscspn.m4: New file.
15902 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15904 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
15905 * MODULES.html.sh (Internationalization functions): Add mbscspn.
15907 2007-02-04 Bruno Haible <bruno@clisp.org>
15909 New module mbscasestr, reduced goal of strcasestr.
15910 * modules/mbscasestr: New file.
15911 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
15912 (mbscasestr): Renamed from strcasestr.
15913 * lib/strcasestr.c: Don't include mbuiter.h.
15914 (strcasestr): Remove support for multibyte locales.
15915 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
15916 Change the conditional link warning.
15917 (mbscasestr): New declaration.
15918 * m4/mbscasestr.m4: New file.
15919 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
15920 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
15921 REPLACE_STRCASESTR.
15922 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
15923 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15924 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
15925 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
15926 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
15927 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
15928 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
15929 (Depends-on): Remove mbuiter.
15930 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
15932 2007-02-04 Bruno Haible <bruno@clisp.org>
15934 Simplify handling of strncasecmp.
15935 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
15936 the conditional link warning.
15937 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15938 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
15939 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
15940 * modules/strcase (configure.ac): Don't invoke
15941 gl_STRING_MODULE_INDICATOR.
15942 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
15944 2007-02-04 Bruno Haible <bruno@clisp.org>
15946 New module mbscasecmp, reduced goal of strcasecmp.
15947 * modules/mbscasecmp: New file.
15948 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
15949 (mbscasecmp): Renamed from strcasecmp.
15950 * lib/strcasecmp.c: Don't include mbuiter.h.
15951 (strcasecmp): Remove support for multibyte locales.
15952 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
15953 Change the conditional link warning.
15954 (mbscasecmp): New declaration.
15955 * m4/mbscasecmp.m4: New file.
15956 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
15957 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
15958 REPLACE_STRCASECMP.
15959 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
15960 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15962 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
15963 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
15964 * modules/strcase (Files): Remove m4/mbrtowc.m4.
15965 (Depends-on): Remove mbuiter.
15966 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
15968 2007-02-04 Bruno Haible <bruno@clisp.org>
15970 New module mbsstr. Remove module strstr.
15971 * modules/mbsstr: New file.
15972 * modules/strstr: Remove file.
15973 * lib/mbsstr.c: Renamed from lib/strstr.c.
15974 (mbsstr): Renamed from strstr.
15975 * lib/string_.h (strstr): Remove declaration. Change the conditional
15977 (mbsstr): New declaration.
15978 * m4/mbsstr.m4: New file.
15979 * m4/strstr.m4: Remove file.
15980 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15982 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
15983 Don't initialize GNULIB_STRSTR.
15984 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
15985 substitute GNULIB_STRSTR and REPLACE_STRSTR.
15986 * MODULES.html.sh (Internationalization functions): Add mbsstr.
15987 (Support for systems lacking ANSI C 89): Remove strstr.
15989 2007-02-04 Bruno Haible <bruno@clisp.org>
15991 New module mbsrchr.
15992 * modules/mbsrchr: New file.
15993 * lib/mbsrchr.c: New file.
15994 * lib/string_.h (strrchr): Add a conditional link warning.
15995 (mbsrchr): New declaration.
15996 * m4/mbsrchr.m4: New file.
15997 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15999 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16000 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16002 2007-02-04 Bruno Haible <bruno@clisp.org>
16005 * modules/mbschr: New file.
16006 * lib/mbschr.c: New file.
16007 * lib/string_.h (strchr): Add a conditional link warning.
16008 (mbschr): New declaration.
16009 * m4/mbschr.m4: New file.
16010 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16012 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16013 * MODULES.html.sh (Internationalization functions): Add mbschr.
16015 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
16017 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16019 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16021 2007-02-04 Bruno Haible <bruno@clisp.org>
16023 New module description section 'configure.ac-early'.
16024 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16025 (func_get_autoconf_early_snippet): New function.
16026 (func_import, func_create_testdir): Use it. Remove special cases for
16027 modules 'extensions' and 'lock'.
16028 * modules/extensions (configure.ac-early): Require
16029 gl_USE_SYSTEM_EXTENSIONS.
16030 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16032 2007-02-04 Bruno Haible <bruno@clisp.org>
16034 Make use of gcj-4.3's -fsource and -ftarget option.
16035 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16036 and if so try the options -fsource and -ftarget.
16037 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16038 source_version, ftarget_option, target_version arguments.
16039 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16040 (is_envjavac_oldgcj_14_14_usable): Renamed from
16041 is_envjavac_gcj_14_14_usable.
16042 (is_envjavac_oldgcj_14_13_usable): Renamed from
16043 is_envjavac_gcj_14_13_usable.
16044 (is_gcj_present): Update.
16045 (is_gcj_43, is_gcj43_usable): New functions.
16046 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16047 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16048 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16049 try the options -fsource and -ftarget.
16051 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
16053 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16054 checking code. Set N = ceil (1.5 * N) rather than to a slightly
16057 2007-02-03 Jim Meyering <jim@meyering.net>
16059 Give tools a better chance to allocate space for very large buffers.
16060 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16062 Make pwd and readlink work also when run with an unreadable parent dir
16063 on systems with openat support.
16064 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16065 provided getcwd function, even when we have openat support.
16066 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16068 2007-02-02 Bruno Haible <bruno@clisp.org>
16070 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16071 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16072 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16073 portability problems if one of these functions is only used on specific
16075 Reported by Paul Eggert.
16077 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
16079 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16080 is causing more trouble than it's curing.
16081 * lib/regex_internal.h (__mempcpy): Remove.
16082 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16083 (and make the code a tad smaller to boot).
16084 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16086 2007-02-02 Jim Meyering <jim@meyering.net>
16088 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16089 section, not in the Makefile.am: one.
16091 2007-02-02 Eric Blake <ebb9@byu.net>
16093 * lib/strchrnul.c: Always include config.h first.
16095 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16096 gnulib strstr is not necessary here.
16098 2007-02-02 Simon Josefsson <simon@josefsson.org>
16100 * m4/socklen.m4: Fix typo.
16102 2007-02-02 Eric Blake <ebb9@byu.net>
16104 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
16105 * modules/netinet_in (Makefile.am): Likewise.
16107 2007-02-01 Bruno Haible <bruno@clisp.org>
16109 * lib/string_.h (GL_LINK_WARNING): New macro.
16110 (strcasecmp, strstr, strcasestr): If provided by the system,
16111 conditionally define as a macro that leads to a warning instead of to
16113 (strncasecmp): Conditionally define as a macro that leads to a warning.
16115 2007-02-01 Karl Berry <karl@gnu.org>
16117 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
16119 2007-02-01 Bruno Haible <bruno@clisp.org>
16121 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
16124 2007-02-01 Eric Blake <ebb9@byu.net>
16126 * modules/regex (Depends-on): Revert dependence on mempcpy.
16127 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
16128 module's definition of mempcpy.
16129 Reported by Paul Eggert.
16131 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
16133 * lib/string_.h: If the gnulib module XYZ is not present, undefine
16134 the symbol XYZ before redefining it. This fixes a problem with
16135 programs that don't use XYZ, when compiled on systems that define
16136 XYZ to something else.
16138 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
16140 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
16141 occurs when "mkdir -m foo" creates a setgid directory that is (1)
16142 writeable to group or other and (2) is intended to have a special
16143 mode bit that is set or cleared. In such a case, the directory
16144 should be neither group- nor other-writeable until the special
16145 mode bits are right.
16147 2007-01-31 Eric Blake <ebb9@byu.net>
16149 * modules/mountlist (Depends-on): Add strstr.
16151 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
16153 * modules/string (Makefile.am): Remove redundant replacement.
16154 * modules/regex (Depends-on): Add mempcpy.
16156 2007-01-31 Bruno Haible <bruno@clisp.org>
16158 New module description field 'Link'.
16159 * gnulib-tool (func_usage): Document --extract-link-directive.
16160 (sed_extract_prog): Recognize 'Link' directive.
16161 (func_get_link_directive): New function.
16162 (func_import): Show summary of link directives.
16163 Handle --extract-link-directive option.
16164 * modules/acl (Link): New section.
16165 * modules/clock-time (Link): New section.
16166 * modules/euidaccess (Link): New section.
16167 * modules/gettext (Link): New section.
16168 * modules/iconv (Link): New section.
16169 * modules/lock (Link): New section.
16170 * modules/nanosleep (Link): New section.
16171 * modules/readline (Link): New section.
16173 2007-01-27 Bruno Haible <bruno@clisp.org>
16175 Enforce the use of gnulib modules for unportable <string.h> functions.
16176 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
16177 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
16178 (gl_HEADER_STRING_H_BODY): Require it.
16179 * lib/string_.h: If the gnulib module XYZ is not present, redefine
16180 the symbol XYZ to one that gives a link error.
16181 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
16182 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
16183 * modules/mempcpy (configure.ac): Likewise.
16184 * modules/memrchr (configure.ac): Likewise.
16185 * modules/stpcpy (configure.ac): Likewise.
16186 * modules/stpncpy (configure.ac): Likewise.
16187 * modules/strcase (configure.ac): Likewise.
16188 * modules/strcasestr (configure.ac): Likewise.
16189 * modules/strchrnul (configure.ac): Likewise.
16190 * modules/strdup (configure.ac): Likewise.
16191 * modules/strndup (configure.ac): Likewise.
16192 * modules/strnlen (configure.ac): Likewise.
16193 * modules/strpbrk (configure.ac): Likewise.
16194 * modules/strsep (configure.ac): Likewise.
16195 * modules/strstr (configure.ac): Likewise.
16196 * modules/strtok_r (configure.ac): Likewise.
16198 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
16200 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
16202 2007-01-30 Jim Meyering <jim@meyering.net>
16204 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
16206 2007-01-29 Bruno Haible <bruno@clisp.org>
16208 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
16209 * lib/execute.c: Likewise.
16210 * lib/pipe.c: Likewise.
16211 * lib/printf-args.h: Likewise.
16212 * lib/printf-args.c: Likewise.
16213 * lib/printf-parse.c: Likewise.
16214 * lib/vasnprintf.c: Likewise.
16216 2007-01-29 Eric Blake <ebb9@byu.net>
16218 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
16221 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
16223 * lib/strptime.h (strptime): Use 'restrict' for args where
16224 POSIX requires this.
16225 * lib/strptime.c (strptime): Likewise.
16226 Change license notice from LGPL to GPL, since gnulib-tool will
16227 change this as needed.
16228 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
16230 Include "strptime.h" first, to check interface.
16231 Do not #undef _LIBC and _NL_CURRENT.
16232 Do not include <stdlib.h>; no longer needed.
16233 Include "time_r.h" and declare ptime_locale_status
16234 only if _LIBC is not defined.
16235 (__P): Remove unused macro.
16236 (match_string): Bring back glibc version, but use it only if _LIBC
16238 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
16239 Remove unnecessary assertion and abort() call.
16240 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
16241 * m4/strptime.m4: Fix serial number comment.
16242 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
16243 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
16244 (Depends-on): Add time_r.
16246 2007-01-29 Bruno Haible <bruno@clisp.org>
16248 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16250 * modules/strptime (Depends-on): Add stdbool.
16251 * lib/strptime.h: Include <time.h> always. Add comments.
16253 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
16255 * modules/strptime: New file.
16256 * lib/strptime.h: New file.
16257 * lib/strptime.c: New file.
16258 * m4/strptime.m4: New file.
16260 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
16262 * MODULES.html.sh: New module mpsort.
16263 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
16265 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
16266 a circularity problem with HP-UX ia64 reported by Bob Proulx in
16267 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
16269 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
16271 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
16273 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
16274 the parameter matches the prototype.
16276 2007-01-28 Jim Meyering <jim@meyering.net>
16278 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
16279 sys/time.h here, reverting that part of the previous patch:
16280 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
16282 2007-01-28 Bruno Haible <bruno@clisp.org>
16284 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
16285 value of $(SYS_TIME_H).
16286 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
16287 remove it conditionally, too. [added by Jim Meyering]
16288 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
16289 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
16290 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
16291 GETTIMEOFDAY_REPLACEMENT to 1.
16293 2007-01-28 Bruno Haible <bruno@clisp.org>
16295 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
16296 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
16297 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
16298 Set UNISTD_H instead of UNISTD_H2.
16299 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
16301 2007-01-28 Bruno Haible <bruno@clisp.org>
16303 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
16304 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
16306 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16308 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
16309 (func_create_testdir): Ensure C locale for `grep' and `tr'
16311 (func_create_megatestdir): Avoid one `grep'. Fix bug in
16312 ACLOCAL_AMFLAGS parsing state machine.
16314 2007-01-27 Bruno Haible <bruno@clisp.org>
16316 * modules/unistr/base: Update.
16318 2007-01-27 Bruno Haible <bruno@clisp.org>
16320 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
16321 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
16322 * modules/unistr/u32-mbtouc-unsafe: Renamed from
16323 modules/unistr/u32-mbtouc.
16324 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
16325 * lib/unistr.h: Update.
16326 * lib/linebreak.c: Update.
16327 * modules/unistr/u32-mbtouc: Renamed from
16328 modules/unistr/u32-mbtouc-safe.
16329 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
16330 * lib/unistr.h: Update.
16331 * lib/unistr/u32-to-u8.c: Update.
16332 * lib/unistr/u32-to-u16.c: Update.
16334 2007-01-27 Bruno Haible <bruno@clisp.org>
16336 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
16337 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
16338 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
16339 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
16340 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
16341 * modules/unistr/u16-mbtouc-unsafe: Renamed from
16342 modules/unistr/u16-mbtouc.
16343 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
16344 * lib/unistr.h: Update.
16345 * lib/linebreak.c: Update.
16346 * modules/linebreak: Update.
16347 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
16348 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
16349 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
16350 * modules/unistr/u16-mbtouc: Renamed from
16351 modules/unistr/u16-mbtouc-safe.
16352 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
16353 * lib/unistr.h: Update.
16354 * lib/unistr/u16-to-u8.c: Update.
16355 * modules/unistr/u16-to-u8: Update.
16356 * lib/unistr/u16-to-u32.c: Update.
16357 * modules/unistr/u16-to-u32: Update.
16359 2007-01-27 Bruno Haible <bruno@clisp.org>
16361 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
16362 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
16363 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
16364 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
16365 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
16366 * modules/unistr/u8-mbtouc-unsafe: Renamed from
16367 modules/unistr/u8-mbtouc.
16368 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
16369 * lib/unistr.h: Update.
16370 * lib/striconveh.c: Update.
16371 * modules/striconveh: Update.
16372 * lib/linebreak.c: Update.
16373 * modules/linebreak: Update.
16374 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
16375 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
16376 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
16377 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
16378 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
16379 * lib/unistr.h: Update.
16380 * lib/striconveh.c: Update.
16381 * modules/striconveh: Update.
16382 * lib/unistr/u8-to-u16.c: Update.
16383 * modules/unistr/u8-to-u16: Update.
16384 * lib/unistr/u8-to-u32.c: Update.
16385 * modules/unistr/u8-to-u32: Update.
16387 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16390 * lib/argz.c: Do not include strings.h nor memory.h, include
16391 string.h unconditionally. Patch by Simon Josefsson.
16393 2007-01-27 Bruno Haible <bruno@clisp.org>
16395 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
16396 from gl_HEADER_STRING_H_BODY.
16397 (gl_HEADER_STRING_H_BODY): Require it.
16398 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
16399 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
16400 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
16401 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
16402 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16403 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
16404 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16405 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
16406 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
16407 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16408 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
16409 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
16410 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
16411 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16412 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16414 2007-01-27 Bruno Haible <bruno@clisp.org>
16416 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
16417 check_PROGRAMS into noinst_PROGRAMS.
16418 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
16419 check_PROGRAMS in this case.
16420 (func_import): Set for_test to false.
16421 (func_create_testdir): Set for_test to true.
16423 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16424 Bruno Haible <bruno@clisp.org>
16426 * modules/strcasestr (Files): Remove lib/strcasestr.h.
16427 (Depends-on): Add string.
16428 (Includes): Use <string.h> instead of strcasestr.h.
16429 * modules/string (Makefile.am): Also substitute the value of
16430 REPLACE_STRCASESTR.
16431 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
16432 assume strcasestr is declared in <string.h> not <strings.h>. Also
16433 set REPLACE_STRCASESTR.
16434 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
16435 REPLACE_STRCASESTR.
16436 * lib/strcasestr.h: Remove file.
16437 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
16438 * lib/string_.h (strcasestr): New declaration.
16440 2007-01-27 Bruno Haible <bruno@clisp.org>
16442 * lib/string_.h: Use 'extern'.
16444 2007-01-27 Jim Meyering <jim@meyering.net>
16446 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
16447 of set-but-not-used local, "q".
16449 * lib/mempcpy.c: Include <config.h> before <string.h>.
16450 This fixes a compilation error on HP-UX, due to the system's
16451 "restrict"-using mempcpy prototype.
16453 2007-01-26 Bruno Haible <bruno@clisp.org>
16455 Small optimization.
16456 * lib/javacomp.c: Include c-strstr.h.
16457 (is_envjavac_gcj): Use c_strstr instead of strstr.
16458 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
16460 2007-01-26 Bruno Haible <bruno@clisp.org>
16462 * MODULES.html.sh (Unicode string functions): Add the new modules.
16464 * modules/uniconv/u32-strconv-to-locale: New file.
16465 * lib/uniconv/u32-strconv-to-locale.c: New file.
16467 * modules/uniconv/u16-strconv-to-locale: New file.
16468 * lib/uniconv/u16-strconv-to-locale.c: New file.
16470 * modules/uniconv/u8-strconv-to-locale: New file.
16471 * lib/uniconv/u8-strconv-to-locale.c: New file.
16473 * modules/uniconv/u32-strconv-from-locale: New file.
16474 * lib/uniconv/u32-strconv-from-locale.c: New file.
16476 * modules/uniconv/u16-strconv-from-locale: New file.
16477 * lib/uniconv/u16-strconv-from-locale.c: New file.
16479 * modules/uniconv/u8-strconv-from-locale: New file.
16480 * lib/uniconv/u8-strconv-from-locale.c: New file.
16482 * modules/uniconv/u32-strconv-to-enc: New file.
16483 * lib/uniconv/u32-strconv-to-enc.c: New file.
16484 * modules/uniconv/u32-strconv-to-enc-tests: New file.
16485 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
16487 * modules/uniconv/u16-strconv-to-enc: New file.
16488 * lib/uniconv/u16-strconv-to-enc.c: New file.
16489 * lib/uniconv/u-strconv-to-enc.h: New file.
16490 * modules/uniconv/u16-strconv-to-enc-tests: New file.
16491 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
16493 * modules/uniconv/u8-strconv-to-enc: New file.
16494 * lib/uniconv/u8-strconv-to-enc.c: New file.
16495 * modules/uniconv/u8-strconv-to-enc-tests: New file.
16496 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
16498 * modules/uniconv/u32-strconv-from-enc: New file.
16499 * lib/uniconv/u32-strconv-from-enc.c: New file.
16500 * modules/uniconv/u32-strconv-from-enc-tests: New file.
16501 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
16503 * modules/uniconv/u16-strconv-from-enc: New file.
16504 * lib/uniconv/u16-strconv-from-enc.c: New file.
16505 * modules/uniconv/u16-strconv-from-enc-tests: New file.
16506 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
16508 * modules/uniconv/u8-strconv-from-enc: New file.
16509 * lib/uniconv/u8-strconv-from-enc.c: New file.
16510 * lib/uniconv/u-strconv-from-enc.h: New file.
16511 * modules/uniconv/u8-strconv-from-enc-tests: New file.
16512 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
16514 * modules/uniconv/u32-conv-from-enc: New file.
16515 * lib/uniconv/u32-conv-from-enc.c: New file.
16516 * modules/uniconv/u32-conv-from-enc-tests: New file.
16517 * tests/uniconv/test-u32-conv-from-enc.c: New file.
16519 * modules/uniconv/u16-conv-from-enc: New file.
16520 * lib/uniconv/u16-conv-from-enc.c: New file.
16521 * lib/uniconv/u-conv-from-enc.h: New file.
16522 * modules/uniconv/u16-conv-from-enc-tests: New file.
16523 * tests/uniconv/test-u16-conv-from-enc.c: New file.
16525 * modules/uniconv/u8-conv-from-enc: New file.
16526 * lib/uniconv/u8-conv-from-enc.c: New file.
16527 * modules/uniconv/u8-conv-from-enc-tests: New file.
16528 * tests/uniconv/test-u8-conv-from-enc.c: New file.
16530 * modules/uniconv/base: New file.
16531 * lib/uniconv.h: New file.
16533 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
16535 * doc/gnulib-tool.texi (Initial import): Update to match current
16536 behavior with strdup module.
16537 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
16538 * lib/memmem.h: Remove; all uses removed. This is now done
16540 * lib/mempcpy.h: Likewise.
16541 * lib/memrchr.h: Likewise.
16542 * lib/stpcpy.h: Likewise.
16543 * lib/stpncpy.h: Likewise.
16544 * lib/strcase.h: Likewise.
16545 * lib/strchrnul.h: Likewise.
16546 * lib/strdup.h: Likewise.
16547 * lib/strndup.h: Likewise.
16548 * lib/strnlen.h: Likewise.
16549 * lib/strpbrk.h: Likewise.
16550 * lib/strsep.h: Likewise.
16551 * lib/strstr.h: Likewise.
16552 * lib/strtok_r.h: Likewise.
16553 * lib/string_.h: New file.
16554 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
16555 Rely on <string.h> instead.
16556 * lib/canon-host.c: Likewise.
16557 * lib/chdir-long.c: Likewise.
16558 * lib/concatpath.c: Likewise.
16559 * lib/exclude.c: Likewise.
16560 * lib/fchdir.c: Likewise.
16561 * lib/getaddrinfo.c: Likewise.
16562 * lib/getcwd.c: Likewise.
16563 * lib/getsubopt.c: Likewise.
16564 * lib/glob.c: Likewise.
16565 * lib/hard-locale.c: Likewise.
16566 * lib/iconvme.c: Likewise.
16567 * lib/javacomp.c: Likewise.
16568 * lib/mempcpy.c: Likewise.
16569 * lib/memrchr.c: Likewise.
16570 * lib/regex_internal.h: Likewise.
16571 * lib/stpncpy.c: Likewise.
16572 * lib/strcasecmp.c: Likewise.
16573 * lib/strchrnul.c: Likewise.
16574 * lib/strdup.c: Likewise.
16575 * lib/striconv.c: Likewise.
16576 * lib/striconveh.c: Likewise.
16577 * lib/striconveha.c: Likewise.
16578 * lib/strncasecmp.c: Likewise.
16579 * lib/strndup.c: Likewise.
16580 * lib/strnlen.c: Likewise.
16581 * lib/strsep.c: Likewise.
16582 * lib/strstr.c: Likewise.
16583 * lib/strtok_r.c: Likewise.
16584 * lib/userspec.c: Likewise.
16585 * lib/w32spawn.h: Likewise.
16586 * lib/xstrndup.c: Likewise.
16587 * lib/mountlist.c (strstr): Remove decl.
16588 * m4/string_h.m4: New file.
16589 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
16590 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
16591 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
16592 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
16593 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
16594 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
16595 Set REPLACE_STRCASECMP if necessary.
16596 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
16597 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
16598 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
16599 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
16600 HAVE_DECL_STRDUP if necessary.
16601 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
16602 since gl_FUNC_STRNDUP does that now.
16603 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
16604 Check for decl here...
16605 (gl_PREREQ_STRNLEN): ... not here.
16606 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
16607 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
16608 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
16609 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
16611 * modules/string: New file.
16612 * modules/memmem (Files): Remove special-purpose include file.
16613 (Depends-on): Add string.
16614 (Include): Include <string.h>, not the removed file.
16615 * modules/mempcpy: Likewise.
16616 * modules/memrchr: Likewise.
16617 * modules/stpcpy: Likewise.
16618 * modules/stpncpy: Likewise.
16619 * modules/strcase: Likewise.
16620 * modules/strchrnul: Likewise.
16621 * modules/strdup: Likewise.
16622 * modules/strndup: Likewise.
16623 * modules/strnlen: Likewise.
16624 * modules/strpbrk: Likewise.
16625 * modules/strsep: Likewise.
16626 * modules/strstr: Likewise.
16627 * modules/strtok_r: Likewise.
16628 * tests/test-dirname.c: Don't include "strdup.h", since
16629 <string.h> now suffices.
16630 * tests/test-memmem.c: Don't include "memmem.h", since
16631 <string.h> now suffices.
16633 2007-01-25 Bruno Haible <bruno@clisp.org>
16635 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
16638 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
16639 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
16640 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
16641 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
16643 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
16644 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
16645 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
16646 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
16647 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
16648 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
16650 2007-01-24 Bruno Haible <bruno@clisp.org>
16652 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
16653 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
16654 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
16655 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
16657 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
16658 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
16659 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16660 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
16661 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
16662 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
16664 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
16666 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
16667 Reported by Ralf Wildenhues.
16669 2007-01-24 Bruno Haible <bruno@clisp.org>
16671 Drop AC_REQUIRE calls that are redundant with the module dependencies.
16672 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
16674 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
16675 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
16676 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
16678 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
16680 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
16681 Don't use 'exit'; just return from 'main'.
16682 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
16684 * lib/fnmatch_.h: Readjust white space and comments to match
16685 glibc, to avoid spurious diffs.
16687 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
16689 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
16690 2004-12-01 change by Jakub Jelinek, since this code won't compile
16691 if !LIBC. Problem reported by Bob Proulx.
16693 2007-01-23 Bruno Haible <bruno@clisp.org>
16695 * lib/striconveh.c: Include c-strcaseeq.h.
16696 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
16697 * modules/striconveh (Depends-on): Add c-strcaseeq.
16699 2007-01-23 Bruno Haible <bruno@clisp.org>
16701 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
16703 * modules/c-strcaseeq: New file.
16704 * lib/c-strcaseeq.h: New file.
16706 * modules/streq: New file.
16707 * lib/streq.h: New file.
16709 2007-01-23 Bruno Haible <bruno@clisp.org>
16711 * modules/striconveha-tests: New file.
16712 * tests/test-striconveha.c: New file.
16714 * lib/striconveha.h: Include <stdbool.h>.
16715 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
16716 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
16717 (mem_iconveha_notranslit): Renamed from mem_iconveha.
16718 (mem_iconveha): New function.
16719 (str_iconveha_notranslit): Renamed from str_iconveha.
16720 (str_iconveha): New function.
16721 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
16724 2007-01-23 Bruno Haible <bruno@clisp.org>
16726 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
16727 encodings without forgiving before trying any encoding with handler.
16728 (str_iconveha): Try all encodings without forgiving before trying any
16729 encoding with handler.
16731 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
16733 Import the following changes from libc.
16735 2005-10-14 Ulrich Drepper <drepper@redhat.com>
16737 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
16739 2004-12-01 Jakub Jelinek <jakub@redhat.com>
16741 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
16742 normal_bracket label.
16744 2004-09-01 Jakub Jelinek <jakub@redhat.com>
16747 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
16748 to normal_bracket after fetching the next character.
16750 2007-01-22 Bruno Haible <bruno@clisp.org>
16752 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
16754 * lib/striconveh.c (iconv_carefully_1): New function.
16755 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
16757 (str_cd_iconveh): Update.
16758 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
16759 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
16760 * tests/test-striconveh.c (MAGIC): New macro.
16761 (new_offsets): New function.
16762 (main): Test call with and without offsets.
16764 2007-01-22 Bruno Haible <bruno@clisp.org>
16766 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
16767 * modules/sys_select (Makefile.am): Likewise.
16768 * modules/sys_socket (Makefile.am): Likewise.
16769 * modules/sys_time (Makefile.am): Likewise.
16771 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
16773 * modules/gettimeofday (License): Change from GPL to LGPL, since
16774 gettimeofday is a library function.
16776 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16778 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
16780 2007-01-21 Bruno Haible <bruno@clisp.org>
16782 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
16784 2007-01-21 Bruno Haible <bruno@clisp.org>
16786 * modules/striconveha: New file.
16787 * lib/striconveha.h: New file.
16788 * lib/striconveha.c: New file.
16789 * MODULES.html.sh (Internationalization functions): Add striconveha.
16790 * lib/striconv.c (str_iconv): Optimize the case of an empty input
16792 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
16794 2007-01-21 Bruno Haible <bruno@clisp.org>
16796 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
16797 * lib/striconveh.c (str_iconveh): Likewise.
16799 2007-01-21 Bruno Haible <bruno@clisp.org>
16801 * lib/striconveh.h (mem_iconveh): New declaration.
16802 * lib/striconveh.c (mem_iconveh): New function.
16803 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
16805 2007-01-21 Bruno Haible <bruno@clisp.org>
16807 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
16809 * lib/striconveh.h (mem_cd_iconveh): Change specification.
16810 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
16811 original result buffer.
16812 (str_cd_iconveh): Update.
16813 * tests/test-striconveh.c (main): Update.
16815 * lib/striconv.h (mem_cd_iconv): Change specification.
16816 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
16818 (str_cd_iconv): Update.
16819 * tests/test-striconv.c (main): Update.
16821 2007-01-21 Bruno Haible <bruno@clisp.org>
16823 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
16825 2007-01-20 Jim Meyering <jim@meyering.net>
16827 * lib/userspec.c (parse_with_separator): If a user or group string
16828 starts with "+", skip the corresponding name-to-ID look-up, since
16829 such a look-up must fail: user and group names may not include "+".
16831 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
16833 * lib/poll.c: Include sys/time.h and time.h unconditionally,
16834 since we now assume the sys_time module.
16835 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
16836 check for sys/time.h; no longer needed.
16837 * modules/poll (Depends-on): Depend on sys_time.
16839 2007-01-18 Bruno Haible <bruno@clisp.org>
16841 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
16842 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
16844 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
16847 * tests/test-gettimeofday.c: Include <time.h>.
16848 (dummy): Remove variable.
16850 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
16851 gl_HEADER_SYS_TIME_H.
16852 (gl_HEADER_SYS_TIME_H): New macro.
16854 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
16855 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16856 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16857 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
16858 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16859 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
16860 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
16861 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16862 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
16863 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
16864 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16866 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
16867 last change; it caused a compilation error when cross-compiling to
16870 2007-01-18 Jim Meyering <jim@meyering.net>
16872 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
16873 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
16874 than the race-prone "test -d sys || mkdir sys".
16875 (configure.ac): Use AC_PROG_MKDIR_P.
16876 * modules/sys_select: Likewise.
16877 * modules/sys_socket: Likewise.
16878 * modules/sys_time: Likewise.
16880 2007-01-18 Eric Blake <ebb9@byu.net>
16882 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
16883 replace gettimeofday.
16884 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
16885 name, to avoid infinite recursion.
16887 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
16889 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
16891 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
16892 assume timespec.h defines struct timeval.
16893 * lib/settime.c: Likewise.
16894 * lib/utimens.c: Likewise.
16895 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
16896 since we now assume the gettimeofday module.
16897 * lib/tempname.c (__gen_tempname): Likewise.
16898 * lib/gettimeofday.h: Remove.
16899 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
16900 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
16901 Include <time.h>, for 'time()'.
16902 (localtime_buffer_addr): Also use this workaround if
16903 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
16904 to simplify the uses. All uses changed.
16905 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
16906 that #undef is inside {}, and 'const' follows type name consistently.
16907 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
16908 (gettimeofday): Do not use the maximum possible value for
16909 tv->tv_usec, since that might break usages other than ls.c.
16910 Instead, we'll leave ls.c alone. This undoes today's patch
16911 by Bruno. Add a compile-time warning for 1s-clock resolution;
16912 we've never observed the problem but might as well keep the
16914 * lib/nanosleep.c: Include timespec.h first, for interface check.
16915 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
16916 now assume the sys_time module.
16917 * lib/tempname.c: Likewise.
16918 * lib/timespec.h: Likewise.
16919 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
16921 * lib/strftime.c: Likewise.
16922 * lib/timespec.h: Likewise.
16923 * lib/posixtm.c: Include posixtm.h first, for interface check.
16924 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
16925 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
16926 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
16927 * lib/sys_time_.h: New file.
16928 * lib/timespec.h (struct timespec): Use long int, not long.
16929 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
16930 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
16931 Remove obsolescent call to AC_HEADER_TIME.
16932 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16933 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16934 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
16935 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
16937 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
16938 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
16939 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
16940 into the sys_time module. Check for gettimeofday just once.
16941 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
16942 for gettimeofday signature to just check the signature. Merely
16943 compile it, since linking doesn't test signature. Improve test for
16944 whether gettimeofday.o is actually needed.
16945 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
16946 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
16947 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
16948 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16949 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
16950 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
16951 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
16952 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
16953 than worrying about sys/time.h.
16954 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16955 Don't bother worrying about TIME_WITH_SYS_TIME.
16956 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16957 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
16958 * m4/sys_time_h.m4: New file.
16959 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
16960 Don't include sys/time.h. Return from main rather than exiting.
16961 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
16963 * modules/gethrxtime (Depends-on): Add sys_time.
16964 * modules/gettime (Depends-on): Likewise.
16965 * modules/gettimeofday (Depends-on): Likewise.
16966 * modules/nanosleep (Depends-on): Likewise.
16967 * modules/settime (Depends-on): Likewise.
16968 * modules/tempname (Depends-on): Likewise.
16969 * modules/utimens (Depends-on): Likewise.
16970 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
16971 (Include:) Change back to <sys/time.h>.
16972 (Maintainer:) Add self.
16973 * modules/sys_time: New file.
16974 * modules/tempname (Depends-on): Add gettimeofday.
16975 * tests/test-gettimeofday.c: Include <sys/time.h>
16976 rather than gettimeofday.h.
16978 2007-01-17 Bruno Haible <bruno@clisp.org>
16980 * gnulib-tool (func_get_license): Revert last patch. Instead, let
16981 the license default to GPL.
16982 (func_create_testdir): Don't complain if a module is LGPL and its
16983 tests module depends on GPLed modules.
16985 2007-01-17 Bruno Haible <bruno@clisp.org>
16987 * lib/gettimeofday.c (gettimeofday): Add code for the case
16988 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
16989 maximum possible value for tv->tv_usec, rather than the minimum one.
16991 2005-10-08 Martin Lambers <marlam@marlam.de>
16992 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
16993 2007-01-16 Bruno Haible <bruno@clisp.org>
16995 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
16996 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
16997 gl_FUNC_GETTIMEOFDAY.
16998 (Include): Add gettimeofday.h.
16999 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17000 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17001 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17002 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17003 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17004 * lib/gettimeofday.h: New file.
17005 * lib/gettimeofday.c: Include <sys/timeb.h>.
17006 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17007 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17008 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17009 fall back on time().
17011 * tests/test-gettimeofday.c: New file.
17012 * modules/gettimeofday-tests: New file.
17014 2007-01-16 Eric Blake <ebb9@byu.net>
17016 * modules/fnmatch (Depends-on): Depend on wchar.
17017 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17018 * m4/fnmatch.m4: Likewise.
17019 * modules/mbchar (Makefile.am): Assume <wchar.h>.
17020 * m4/mbchar.m4: Likewise.
17021 * modules/mbswidth (Depends-on): Depend on wchar.
17022 * lib/mbswidth.c: Assume <wchar.h>.
17023 * m4/mbswidth.m4: Likewise.
17024 * modules/quotearg (Depends-on): Depend on wchar.
17025 * lib/quotearg.c: Assume <wchar.h>.
17026 * m4/quotearg.m4: Likewise.
17027 * modules/regex (Depends-on): Depend on wchar.
17028 * lib/regex_internal.h: Assume <wchar.h>.
17029 * m4/regex.m4: Likewise.
17030 * modules/stdint (Depends-on): Depend on wchar.
17031 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17032 * m4/stdint.m4: Likewise.
17033 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17034 * modules/strftime (Depends-on): Depend on wchar.
17035 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17036 * modules/strtol (Depends-on): Depend on wchar.
17037 * lib/strtol.c: Assume <wchar.h>.
17038 * modules/wcwidth (Depends-on): Depend on wchar.
17039 * lib/wcwidth.h: Assume <wchar.h>.
17040 * m4/wcwidth.m4: Likewise.
17042 2007-01-16 Bruno Haible <bruno@clisp.org>
17044 * modules/csharpexec-script: New, created from...
17045 * modules/csharpexec: ... this.
17047 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
17049 * modules/javaexec-script: New, created from...
17050 * modules/javaexec: ... this.
17052 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17054 * modules/poll (Dependencies): Add sys_select.
17056 2007-01-15 Jim Meyering <jim@meyering.net>
17058 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17059 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17060 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
17061 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17063 2007-01-15 Bruno Haible <bruno@clisp.org>
17065 * modules/striconveh: New file.
17066 * lib/striconveh.h: New file.
17067 * lib/striconveh.c: New file.
17068 * MODULES.html.sh (Internationalization functions): Add striconveh.
17070 * modules/striconveh-tests: New file.
17071 * tests/test-striconveh.c: New file.
17073 2007-01-15 Bruno Haible <bruno@clisp.org>
17075 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17076 not from GNU libiconv or GNU libc.
17078 2007-01-15 Bruno Haible <bruno@clisp.org>
17080 * doc/gnulib-intro.texi (Copyright): Explain the different license
17081 terms for module descriptions, autoconf macros, tests, documentation.
17083 2007-01-14 Bruno Haible <bruno@clisp.org>
17085 * modules/striconv-tests: New file.
17086 * tests/test-striconv.c: New file.
17088 2007-01-14 Bruno Haible <bruno@clisp.org>
17090 * modules/iconv-tests: New file.
17091 * tests/test-iconv.c: New file.
17093 2007-01-14 Bruno Haible <bruno@clisp.org>
17095 * gnulib-tool (func_get_license): For test modules, use the license of
17098 2007-01-14 Bruno Haible <bruno@clisp.org>
17100 * modules/iconv (Include): Clarify that <iconv.h> can only be included
17101 if iconv is found to exist.
17103 2007-01-14 Bruno Haible <bruno@clisp.org>
17105 * modules/c-ctype-tests: New file.
17106 * tests/test-c-ctype.c: New file.
17108 2007-01-14 Bruno Haible <bruno@clisp.org>
17110 * modules/binary-io-tests: New file.
17111 * tests/test-binary-io.sh: New file.
17112 * tests/test-binary-io.c: New file.
17114 2007-01-14 Bruno Haible <bruno@clisp.org>
17116 * modules/array-oset-tests: New file.
17117 * tests/test-array_oset.c: New file.
17119 2007-01-14 Bruno Haible <bruno@clisp.org>
17121 * modules/array-list-tests: New file.
17122 * tests/test-array_list.c: New file.
17124 2007-01-14 Bruno Haible <bruno@clisp.org>
17126 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
17128 Reported by Simon Josefsson in
17129 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
17131 2007-01-14 Bruno Haible <bruno@clisp.org>
17133 * modules/allocsa-tests: New file.
17134 * tests/test-allocsa.c: New file.
17136 2007-01-14 Bruno Haible <bruno@clisp.org>
17138 * modules/fchdir (Depends-on): Add absolute-header.
17139 * modules/unistd (Depends-on): Likewise.
17141 2006-12-30 Bruno Haible <bruno@clisp.org>
17143 * modules/fchdir: New file.
17144 * modules/unistd (Files): Add lib/unistd_.h.
17145 (Makefile.am): Generate unistd.h from unistd_.h.
17146 * lib/fchdir.c: New file.
17147 * lib/dirent_.h: New file.
17148 * lib/unistd_.h: New file.
17149 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
17150 * m4/fchdir.m4: New file.
17151 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
17152 (gl_HEADER_UNISTD): Invoke it.
17153 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
17155 * lib/backupfile.c (opendir, closedir): Undefine.
17156 * lib/chown.c (open, close): Undefine.
17157 * lib/clean-temp.c (open, close): Undefine.
17158 * lib/copy-file.c (open, close): Undefine.
17159 * lib/execute.c (open, close): Undefine.
17160 * lib/fsusage.c (open, close): Undefine.
17161 * lib/gc-gnulib.c (open, close): Undefine.
17162 * lib/getcwd.c (opendir, closedir): Undefine.
17163 * lib/glob.c (opendir, closedir): Undefine.
17164 * lib/javacomp.c (open, close): Undefine.
17165 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
17166 * lib/openat-proc.c (open, close): Undefine.
17167 * lib/pagealign_alloc.c (open, close): Undefine.
17168 * lib/pipe.c (open, close): Undefine.
17169 * lib/progreloc.c (open, close): Undefine.
17170 * lib/savedir.c (opendir, closedir): Undefine.
17171 * lib/utime.c (open, close): Undefine.
17172 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
17174 2007-01-10 Bruno Haible <bruno@clisp.org>
17176 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
17178 2007-01-12 Eric Blake <ebb9@byu.net>
17180 Provide a robust <wchar.h>. Further simplifications are now
17181 possible in other modules, but not included here.
17182 * modules/wchar: New module.
17183 * m4/wchar.m4: New file.
17184 * lib/wchar_.h: Likewise.
17185 * modules/mbchar (Depends-on): Depend on wchar, as the first use
17187 * MODULES.html.sh (Extended multibyte and wide character utilities):
17190 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
17192 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
17193 to a reasonable default for memory allocation.
17194 (xreadlink): Don't allocate a huge buffer, to work around a buggy
17195 file system that reports garbage st_size values for symlinks.
17196 Problem reported by Liyang Hu.
17198 2007-01-11 Simon Josefsson <simon@josefsson.org>
17200 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
17201 Emacs .#* auto-save files).
17203 2007-01-11 Bruno Haible <bruno@clisp.org>
17205 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
17208 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
17210 Use @...@ consistently in lib/wctype_.h.
17211 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
17212 on it being set to 1 or 0.
17213 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
17214 go back to AC_SUBSTing it.
17215 * modules/wctype (Makefile.am): Undo previous change.
17217 2007-01-10 Eric Blake <ebb9@byu.net>
17219 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
17220 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
17221 * modules/wctype (Makefile.am): Likewise.
17222 Reported by Chris McGuire.
17224 2007-01-10 Jim Meyering <jim@meyering.net>
17226 fts.c: a small readability/maintainability improvement
17227 * lib/fts.c (fts_read): Make this code slightly more readable and
17228 maintainable by hoisting the "sp->fts_cur = p" assignments to
17229 immediately follow the statements that set P. Derived from
17230 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
17232 2007-01-10 Eric Blake <ebb9@byu.net>
17234 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
17235 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
17236 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17237 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17238 Reported by Chris McGuire.
17240 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17242 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
17245 2007-01-09 Bruno Haible <bruno@clisp.org>
17247 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
17248 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
17250 (func_module): Use them.
17252 2007-01-09 Bruno Haible <bruno@clisp.org>
17254 * modules/unistr/base: New file.
17255 * lib/unistr.h: New file.
17257 * modules/unistr/u8-to-u16: New file.
17258 * lib/unistr/u8-to-u16.c: New file.
17260 * modules/unistr/u8-to-u32: New file.
17261 * lib/unistr/u8-to-u32.c: New file.
17263 * modules/unistr/u16-to-u8: New file.
17264 * lib/unistr/u16-to-u8.c: New file.
17266 * modules/unistr/u16-to-u32: New file.
17267 * lib/unistr/u16-to-u32.c: New file.
17269 * modules/unistr/u32-to-u8: New file.
17270 * lib/unistr/u32-to-u8.c: New file.
17272 * modules/unistr/u32-to-u16: New file.
17273 * lib/unistr/u32-to-u16.c: New file.
17275 * modules/unistr/u8-check: New file.
17276 * modules/unistr/u16-check: New file.
17277 * modules/unistr/u32-check: New file.
17278 * lib/unistr/u8-check.c: New file.
17279 * lib/unistr/u16-check.c: New file.
17280 * lib/unistr/u32-check.c: New file.
17282 * modules/unistr/u8-chr: New file.
17283 * modules/unistr/u16-chr: New file.
17284 * modules/unistr/u32-chr: New file.
17285 * lib/unistr/u8-chr.c: New file.
17286 * lib/unistr/u16-chr.c: New file.
17287 * lib/unistr/u32-chr.c: New file.
17289 * modules/unistr/u8-cmp: New file.
17290 * modules/unistr/u16-cmp: New file.
17291 * modules/unistr/u32-cmp: New file.
17292 * lib/unistr/u8-cmp.c: New file.
17293 * lib/unistr/u16-cmp.c: New file.
17294 * lib/unistr/u32-cmp.c: New file.
17296 * modules/unistr/u8-cpy: New file.
17297 * modules/unistr/u16-cpy: New file.
17298 * modules/unistr/u32-cpy: New file.
17299 * lib/unistr/u8-cpy.c: New file.
17300 * lib/unistr/u16-cpy.c: New file.
17301 * lib/unistr/u32-cpy.c: New file.
17302 * lib/unistr/u-cpy.h: New file.
17304 * modules/unistr/u8-cpy-alloc: New file.
17305 * modules/unistr/u16-cpy-alloc: New file.
17306 * modules/unistr/u32-cpy-alloc: New file.
17307 * lib/unistr/u8-cpy-alloc.c: New file.
17308 * lib/unistr/u16-cpy-alloc.c: New file.
17309 * lib/unistr/u32-cpy-alloc.c: New file.
17310 * lib/unistr/u-cpy-alloc.h: New file.
17312 * modules/unistr/u8-endswith: New file.
17313 * modules/unistr/u16-endswith: New file.
17314 * modules/unistr/u32-endswith: New file.
17315 * lib/unistr/u8-endswith.c: New file.
17316 * lib/unistr/u16-endswith.c: New file.
17317 * lib/unistr/u32-endswith.c: New file.
17318 * lib/unistr/u-endswith.h: New file.
17320 * modules/unistr/u8-mblen: New file.
17321 * modules/unistr/u16-mblen: New file.
17322 * modules/unistr/u32-mblen: New file.
17323 * lib/unistr/u8-mblen.c: New file.
17324 * lib/unistr/u16-mblen.c: New file.
17325 * lib/unistr/u32-mblen.c: New file.
17327 * modules/unistr/u8-mbtouc: New file.
17328 * modules/unistr/u16-mbtouc: New file.
17329 * modules/unistr/u32-mbtouc: New file.
17330 * lib/unistr/u8-mbtouc.c: New file.
17331 * lib/unistr/u16-mbtouc.c: New file.
17332 * lib/unistr/u32-mbtouc.c: New file.
17334 * modules/unistr/u8-mbtouc-safe: New file.
17335 * modules/unistr/u16-mbtouc-safe: New file.
17336 * modules/unistr/u32-mbtouc-safe: New file.
17337 * lib/unistr/u8-mbtouc-safe.c: New file.
17338 * lib/unistr/u16-mbtouc-safe.c: New file.
17339 * lib/unistr/u32-mbtouc-safe.c: New file.
17341 * modules/unistr/u8-move: New file.
17342 * modules/unistr/u16-move: New file.
17343 * modules/unistr/u32-move: New file.
17344 * lib/unistr/u8-move.c: New file.
17345 * lib/unistr/u16-move.c: New file.
17346 * lib/unistr/u32-move.c: New file.
17347 * lib/unistr/u-move.h: New file.
17349 * modules/unistr/u8-next: New file.
17350 * modules/unistr/u16-next: New file.
17351 * modules/unistr/u32-next: New file.
17352 * lib/unistr/u8-next.c: New file.
17353 * lib/unistr/u16-next.c: New file.
17354 * lib/unistr/u32-next.c: New file.
17356 * modules/unistr/u8-prev: New file.
17357 * modules/unistr/u16-prev: New file.
17358 * modules/unistr/u32-prev: New file.
17359 * lib/unistr/u8-prev.c: New file.
17360 * lib/unistr/u16-prev.c: New file.
17361 * lib/unistr/u32-prev.c: New file.
17363 * modules/unistr/u8-set: New file.
17364 * modules/unistr/u16-set: New file.
17365 * modules/unistr/u32-set: New file.
17366 * lib/unistr/u8-set.c: New file.
17367 * lib/unistr/u16-set.c: New file.
17368 * lib/unistr/u32-set.c: New file.
17369 * lib/unistr/u-set.h: New file.
17371 * modules/unistr/u8-startswith: New file.
17372 * modules/unistr/u16-startswith: New file.
17373 * modules/unistr/u32-startswith: New file.
17374 * lib/unistr/u8-startswith.c: New file.
17375 * lib/unistr/u16-startswith.c: New file.
17376 * lib/unistr/u32-startswith.c: New file.
17377 * lib/unistr/u-startswith.h: New file.
17379 * modules/unistr/u8-stpcpy: New file.
17380 * modules/unistr/u16-stpcpy: New file.
17381 * modules/unistr/u32-stpcpy: New file.
17382 * lib/unistr/u8-stpcpy.c: New file.
17383 * lib/unistr/u16-stpcpy.c: New file.
17384 * lib/unistr/u32-stpcpy.c: New file.
17385 * lib/unistr/u-stpcpy.h: New file.
17387 * modules/unistr/u8-stpncpy: New file.
17388 * modules/unistr/u16-stpncpy: New file.
17389 * modules/unistr/u32-stpncpy: New file.
17390 * lib/unistr/u8-stpncpy.c: New file.
17391 * lib/unistr/u16-stpncpy.c: New file.
17392 * lib/unistr/u32-stpncpy.c: New file.
17393 * lib/unistr/u-stpncpy.h: New file.
17395 * modules/unistr/u8-strcat: New file.
17396 * modules/unistr/u16-strcat: New file.
17397 * modules/unistr/u32-strcat: New file.
17398 * lib/unistr/u8-strcat.c: New file.
17399 * lib/unistr/u16-strcat.c: New file.
17400 * lib/unistr/u32-strcat.c: New file.
17401 * lib/unistr/u-strcat.h: New file.
17403 * modules/unistr/u8-strchr: New file.
17404 * modules/unistr/u16-strchr: New file.
17405 * modules/unistr/u32-strchr: New file.
17406 * lib/unistr/u8-strchr.c: New file.
17407 * lib/unistr/u16-strchr.c: New file.
17408 * lib/unistr/u32-strchr.c: New file.
17410 * modules/unistr/u8-strcmp: New file.
17411 * modules/unistr/u16-strcmp: New file.
17412 * modules/unistr/u32-strcmp: New file.
17413 * lib/unistr/u8-strcmp.c: New file.
17414 * lib/unistr/u16-strcmp.c: New file.
17415 * lib/unistr/u32-strcmp.c: New file.
17417 * modules/unistr/u8-strcpy: New file.
17418 * modules/unistr/u16-strcpy: New file.
17419 * modules/unistr/u32-strcpy: New file.
17420 * lib/unistr/u8-strcpy.c: New file.
17421 * lib/unistr/u16-strcpy.c: New file.
17422 * lib/unistr/u32-strcpy.c: New file.
17423 * lib/unistr/u-strcpy.h: New file.
17425 * modules/unistr/u8-strcspn: New file.
17426 * modules/unistr/u16-strcspn: New file.
17427 * modules/unistr/u32-strcspn: New file.
17428 * lib/unistr/u8-strcspn.c: New file.
17429 * lib/unistr/u16-strcspn.c: New file.
17430 * lib/unistr/u32-strcspn.c: New file.
17431 * lib/unistr/u-strcspn.h: New file.
17433 * modules/unistr/u8-strdup: New file.
17434 * modules/unistr/u16-strdup: New file.
17435 * modules/unistr/u32-strdup: New file.
17436 * lib/unistr/u8-strdup.c: New file.
17437 * lib/unistr/u16-strdup.c: New file.
17438 * lib/unistr/u32-strdup.c: New file.
17439 * lib/unistr/u-strdup.h: New file.
17441 * modules/unistr/u8-strlen: New file.
17442 * modules/unistr/u16-strlen: New file.
17443 * modules/unistr/u32-strlen: New file.
17444 * lib/unistr/u8-strlen.c: New file.
17445 * lib/unistr/u16-strlen.c: New file.
17446 * lib/unistr/u32-strlen.c: New file.
17447 * lib/unistr/u-strlen.h: New file.
17449 * modules/unistr/u8-strmblen: New file.
17450 * modules/unistr/u16-strmblen: New file.
17451 * modules/unistr/u32-strmblen: New file.
17452 * lib/unistr/u8-strmblen.c: New file.
17453 * lib/unistr/u16-strmblen.c: New file.
17454 * lib/unistr/u32-strmblen.c: New file.
17456 * modules/unistr/u8-strmbtouc: New file.
17457 * modules/unistr/u16-strmbtouc: New file.
17458 * modules/unistr/u32-strmbtouc: New file.
17459 * lib/unistr/u8-strmbtouc.c: New file.
17460 * lib/unistr/u16-strmbtouc.c: New file.
17461 * lib/unistr/u32-strmbtouc.c: New file.
17463 * modules/unistr/u8-strncat: New file.
17464 * modules/unistr/u16-strncat: New file.
17465 * modules/unistr/u32-strncat: New file.
17466 * lib/unistr/u8-strncat.c: New file.
17467 * lib/unistr/u16-strncat.c: New file.
17468 * lib/unistr/u32-strncat.c: New file.
17469 * lib/unistr/u-strncat.h: New file.
17471 * modules/unistr/u8-strncmp: New file.
17472 * modules/unistr/u16-strncmp: New file.
17473 * modules/unistr/u32-strncmp: New file.
17474 * lib/unistr/u8-strncmp.c: New file.
17475 * lib/unistr/u16-strncmp.c: New file.
17476 * lib/unistr/u32-strncmp.c: New file.
17478 * modules/unistr/u8-strncpy: New file.
17479 * modules/unistr/u16-strncpy: New file.
17480 * modules/unistr/u32-strncpy: New file.
17481 * lib/unistr/u8-strncpy.c: New file.
17482 * lib/unistr/u16-strncpy.c: New file.
17483 * lib/unistr/u32-strncpy.c: New file.
17484 * lib/unistr/u-strncpy.h: New file.
17486 * modules/unistr/u8-strnlen: New file.
17487 * modules/unistr/u16-strnlen: New file.
17488 * modules/unistr/u32-strnlen: New file.
17489 * lib/unistr/u8-strnlen.c: New file.
17490 * lib/unistr/u16-strnlen.c: New file.
17491 * lib/unistr/u32-strnlen.c: New file.
17492 * lib/unistr/u-strnlen.h: New file.
17494 * modules/unistr/u8-strpbrk: New file.
17495 * modules/unistr/u16-strpbrk: New file.
17496 * modules/unistr/u32-strpbrk: New file.
17497 * lib/unistr/u8-strpbrk.c: New file.
17498 * lib/unistr/u16-strpbrk.c: New file.
17499 * lib/unistr/u32-strpbrk.c: New file.
17500 * lib/unistr/u-strpbrk.h: New file.
17502 * modules/unistr/u8-strrchr: New file.
17503 * modules/unistr/u16-strrchr: New file.
17504 * modules/unistr/u32-strrchr: New file.
17505 * lib/unistr/u8-strrchr.c: New file.
17506 * lib/unistr/u16-strrchr.c: New file.
17507 * lib/unistr/u32-strrchr.c: New file.
17509 * modules/unistr/u8-strspn: New file.
17510 * modules/unistr/u16-strspn: New file.
17511 * modules/unistr/u32-strspn: New file.
17512 * lib/unistr/u8-strspn.c: New file.
17513 * lib/unistr/u16-strspn.c: New file.
17514 * lib/unistr/u32-strspn.c: New file.
17515 * lib/unistr/u-strspn.h: New file.
17517 * modules/unistr/u8-strstr: New file.
17518 * modules/unistr/u16-strstr: New file.
17519 * modules/unistr/u32-strstr: New file.
17520 * lib/unistr/u8-strstr.c: New file.
17521 * lib/unistr/u16-strstr.c: New file.
17522 * lib/unistr/u32-strstr.c: New file.
17523 * lib/unistr/u-strstr.h: New file.
17525 * modules/unistr/u8-strtok: New file.
17526 * modules/unistr/u16-strtok: New file.
17527 * modules/unistr/u32-strtok: New file.
17528 * lib/unistr/u8-strtok.c: New file.
17529 * lib/unistr/u16-strtok.c: New file.
17530 * lib/unistr/u32-strtok.c: New file.
17531 * lib/unistr/u-strtok.h: New file.
17533 * modules/unistr/u8-uctomb: New file.
17534 * modules/unistr/u16-uctomb: New file.
17535 * modules/unistr/u32-uctomb: New file.
17536 * lib/unistr/u8-uctomb.c: New file.
17537 * lib/unistr/u16-uctomb.c: New file.
17538 * lib/unistr/u32-uctomb.c: New file.
17540 * MODULES.html.sh (Unicode string functions): Add the new modules.
17542 2007-01-08 Bruno Haible <bruno@clisp.org>
17544 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
17545 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
17548 2007-01-08 Karl Berry <karl@gnu.org>
17550 * doc/error.texi: mention that main() fns must set program_name
17551 when progname is used.
17553 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
17555 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
17556 WCTYPE_H is empty, for the benefit of builds from non-distclean
17557 directories. Problem reported by Eric Blake in
17558 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
17560 2007-01-08 Bruno Haible <bruno@clisp.org>
17562 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
17563 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
17564 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
17565 PROVIDE_CANONICALIZE_FILENAME_MODE.
17566 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
17568 2007-01-08 Bruno Haible <bruno@clisp.org>
17570 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
17571 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
17572 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
17573 * lib/fts.c: Likewise.
17574 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
17576 2006-12-25 Bruno Haible <bruno@clisp.org>
17578 * modules/utf8-ucs4-safe: New file.
17579 * lib/utf8-ucs4-safe.h: New file.
17580 * lib/unistr/utf8-ucs4-safe.c: New file.
17582 * modules/utf16-ucs4-safe: New file.
17583 * lib/utf16-ucs4-safe.h: New file.
17584 * lib/unistr/utf16-ucs4-safe.c: New file.
17586 * MODULES.html.sh (Unicode string functions): Add the new modules.
17588 2007-01-08 Bruno Haible <bruno@clisp.org>
17590 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
17591 (Depends-on): Add unitypes.
17592 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
17593 (u8_mbtouc_aux): Move out to separate file.
17594 (u8_mbtouc): Use ucs4_t, uint8_t types.
17595 * lib/unistr/utf8-ucs4.c: New file.
17597 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
17598 (Depends-on): Add unitypes.
17599 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
17600 (u16_mbtouc_aux): Move out to separate file.
17601 (u16_mbtouc): Use ucs4_t, uint16_t types.
17602 * lib/unistr/utf16-ucs4.c: New file.
17604 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
17605 (Depends-on): Add unitypes.
17606 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
17607 (u8_uctomb_aux): Move out to separate file.
17608 (u8_uctomb): Use ucs4_t, uint8_t types.
17609 * lib/unistr/ucs4-utf8.c: New file.
17611 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
17612 (Depends-on): Add unitypes.
17613 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
17614 (u16_uctomb_aux): Move out to separate file.
17615 (u16_uctomb): Use ucs4_t, uint16_t types.
17616 * lib/unistr/ucs4-utf16.c: New file.
17618 2006-12-25 Bruno Haible <bruno@clisp.org>
17620 * modules/unitypes: New file.
17621 * lib/unitypes.h: New file.
17622 * MODULES.html.sh (func_all_modules): New section "Unicode string
17623 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
17624 this section. Add unitypes.
17626 2007-01-08 Bruno Haible <bruno@clisp.org>
17628 Avoid variable names that conflict with those from libtool.
17629 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
17630 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
17631 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
17632 library_names_spec to acl_library_names_spec, hardcode_* to
17634 Reported by Ralf Wildenhues.
17636 2007-01-08 Bruno Haible <bruno@clisp.org>
17638 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
17640 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
17642 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
17643 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
17645 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
17647 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
17648 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
17649 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
17650 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
17652 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
17654 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
17655 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
17656 GC_USE_<algorithm>.
17657 * lib/gc-libgcrypt.c: Likewise.
17658 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
17659 * modules/gc-arctwo (configure.ac): Likewise.
17660 * modules/gc-des (configure.ac): Likewise.
17661 * modules/gc-hmac-md5 (configure.ac): Likewise.
17662 * modules/gc-hmac-sha1 (configure.ac): Likewise.
17663 * modules/gc-md2 (configure.ac): Likewise.
17664 * modules/gc-md4 (configure.ac): Likewise.
17665 * modules/gc-md5 (configure.ac): Likewise.
17666 * modules/gc-random (configure.ac): Likewise.
17667 * modules/gc-rijndael (configure.ac): Likewise.
17668 * modules/gc-sha1 (configure.ac): Likewise.
17670 2007-01-08 Bruno Haible <bruno@clisp.org>
17672 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
17674 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
17676 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
17678 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
17679 * modules/fcntl-safer (configure.ac): Likewise.
17680 * modules/fopen-safer (configure.ac): Likewise.
17681 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
17682 GNULIB_FWRITEERROR macro definition.
17684 2007-01-08 Bruno Haible <bruno@clisp.org>
17686 * m4/gnulib-common.m4: New file.
17687 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
17688 (func_get_filelist): Add m4/gnulib-common.m4.
17690 2007-01-08 Bruno Haible <bruno@clisp.org>
17692 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
17695 2007-01-08 Jim Meyering <jim@meyering.net>
17697 Use a more robust test for a "can't happen" condition.
17698 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
17699 narrowed the st_size value. Presuming the "can't happen" condition
17700 is true, that narrowing could conceivably convert an invalid st_size
17701 value into a valid one. Instead, use a change based on Matthew
17702 Woehlke's original patch.
17704 Slight readability improvement: use an assert-like macro
17705 in place of literal "abort ()" uses.
17706 * lib/fts.c (fts_assert): Define.
17707 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
17708 Use this macro instead of a bare 'abort'.
17710 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
17712 Don't worry about using IRIX 5.3's wctype.h broken definitions;
17713 simply work around them.
17714 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
17715 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
17716 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
17718 Don't bother to define as macros, since the standard doesn't require it.
17719 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
17720 longer worry about IRIX 5.3.
17721 (HAVE_WCTYPE_CTMP_BUG): Remove.
17723 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
17725 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
17726 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
17727 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17728 Problems reported by Georg Schwarz for IRIX 5.3.
17730 * gnulib-tool (autoconf_minversion): Take the maximum version number
17731 found, not the minimum. Problem reported by James Youngman.
17733 2007-01-03 Karl Berry <karl@gnu.org>
17735 * doc/error.texi: new file, explaining interaction with progname.
17736 * doc/gnulib.texi: include it. Update copyright.
17738 2007-01-03 Simon Josefsson <simon@josefsson.org>
17740 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
17741 AC_CANONICAL_HOST, to improve autobuild outputs.
17743 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
17744 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17746 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
17747 sockets, server sockets, and other file descriptors. Count errors
17748 to compute the return value. Reorder the code a bit to be easier
17749 to follow. Don't set event bits that were not requested (except
17750 POLLERR and POLLHUP).
17752 2007-01-01 Bruno Haible <bruno@clisp.org>
17754 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
17756 2007-01-03 Jim Meyering <jim@meyering.net>
17758 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
17760 2007-01-02 Bruno Haible <bruno@clisp.org>
17762 * modules/settime (Include): Require timespec.h.
17763 * modules/nanosleep (Include): Likewise.
17765 2007-01-01 Bruno Haible <bruno@clisp.org>
17767 * gnulib-tool (func_emit_copyright_notice): Bump year.
17768 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
17770 2007-01-01 Bruno Haible <bruno@clisp.org>
17772 Improve support for OpenBSD.
17773 * build-aux/config.rpath (libname_spec): Export.
17774 (library_names_spec): New variable. Export.
17775 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
17776 library_names_spec from the config.rpath output. Locate shared library
17777 through the name pattern in library_names_spec.
17779 2007-01-01 Eric Blake <ebb9@byu.net>
17781 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
17783 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
17785 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
17786 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
17787 assume the C locale, and avoid an "eval" that could cause trouble.
17788 Problem with SORT reported by Bob Proulx.
17790 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
17791 Define. Trivial patch from Henning Nielsen Lund, originally
17792 sent to bug-grep@gnu.org today.
17794 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
17796 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
17797 struct stat. Problem reported by Henning Nielsen Lund.
17798 * lib/acl.c: Include acl.h first, to check interface. Don't
17799 bother to include sys/types.h and sys/stat.h again.
17801 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
17803 Import the following change from libc; problem reported by
17806 2005-10-13 Ulrich Drepper <drepper@redhat.com>
17809 * lib/argp.h: Remove __NTH for __argp_usage inline function.
17811 2006-12-28 Jim Meyering <jim@meyering.net>
17813 * build-aux/announce-gen: Do not assume that the package
17814 builds any of tar.gz, tar.bz2, and .xdelta files.
17815 Suggestion from Simon Josefsson.
17817 2006-12-28 Simon Josefsson <simon@josefsson.org>
17819 * modules/announce-gen: New file.
17821 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
17823 * lib/mbchar.h: Just include <wctype.h>; the wctype module
17824 handles its gotchas now.
17825 * lib/mbswidth.c: Likewise.
17826 * lib/wcwidth.h: Likewise.
17827 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
17828 and iswcntrl; the wctype module does this stuff now.
17829 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17830 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17831 * modules/mbchar (Depends-on): Add wctype.
17832 * modules/mbswidth (Depends-on): Likewise.
17833 * modules/wcwidth (Depends-on): Likewise.
17835 2006-12-27 Eric Blake <ebb9@byu.net>
17837 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
17838 module uses more than what <wctype.h> is required to provide.
17840 2006-12-26 Eric Blake <ebb9@byu.net>
17842 * gnulib-tool (sed_extract_prog): Avoid space-tab.
17844 2006-12-26 Eric Blake <ebb9@byu.net>
17846 * modules/absolute-header: New module.
17847 * modules/fcntl (Depends-on): Depend on it.
17848 * modules/inttypes (Depends-on): Likewise.
17849 * modules/stdint (Depends-on): Likewise.
17850 * modules/sys_stat (Depends-on): Likewise.
17851 * modules/wctype (Depends-on): Likewise.
17852 * MODULES.html.sh (Support for building libraries and
17853 executables): Document it.
17855 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
17857 * gnulib-tool (SED): Remove, undoing previous change.
17858 The problem was that it broke coreutils on Solaris, because
17859 "sed --posix" leaked into a makefile.
17860 (sed): New alias, if 'alias' and GNU sed.
17862 2006-12-24 Jim Meyering <jim@meyering.net>
17864 Work around an fchownat bug in glibc-2.4:
17865 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
17866 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
17867 in spite of the -P option.
17868 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
17870 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
17871 * modules/openat (Files): Add lib/fchownat.c.
17872 * lib/openat.c (fchownat): Don't define here. Move to...
17873 * lib/fchownat.c: ...this new file.
17875 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
17877 Fix bug reported by Bruno Haible in
17878 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
17879 where quotearg.c didn't compile on Mac OS X 10.2 because it
17880 lacks <wchar.h> and wint_t.
17881 * lib/wctype_.h (__wctype_wint_t): New type.
17882 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
17883 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
17884 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
17885 Arg is now of type __wctype_wint_t, not wint_t.
17886 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
17887 substitute HAVE_WINT_T.
17888 * modules/wctype (Files): Add m4/wint_t.m4.
17889 (wctype.h): Substitute HAVE_WINT_T.
17891 2006-12-23 Bruno Haible <bruno@clisp.org>
17893 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
17895 2006-12-23 Bruno Haible <bruno@clisp.org>
17897 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
17899 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
17902 2006-12-22 Bruno Haible <bruno@clisp.org>
17904 * lib/copy-file.c: Include acl.h.
17905 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
17906 Close the file descriptors only after being done with copy_acl.
17907 * modules/copy-file (Depends-on): Add acl.
17909 2006-12-22 Bruno Haible <bruno@clisp.org>
17911 * gnulib-tool (SED): New variable.
17912 Use $SED instead of sed everywhere.
17914 2006-12-22 Bruno Haible <bruno@clisp.org>
17916 * modules/no-c++: New file.
17917 * m4/no-c++.m4: New file.
17918 * MODULES.html.sh (Support for building libraries and executables):
17921 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
17923 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
17924 Include <limits.h>, and use its INT_MAX to rewrite the
17925 j loop so that it does not overflow 'int'. Problem reported by
17927 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
17928 Play it safe by shifting left by 1 rather than multiplying by 2,
17929 as GCC is less likely to optimize this away when the value
17930 is signed (when it assumes overflow leads to undefined behavior).
17931 Also, don't assume time_t uses two's complement.
17933 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
17935 * MODULES.html.sh: New module wctype.
17936 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
17937 * lib/fnmatch.c: Don't bother to include <wchar.h> before
17938 <wctype.h>, since the new wctype module should fix this.
17939 * lib/quotearg.c: Include <wctype.h> unconditionally, since
17940 the wctype module should arrange for it.
17941 * lib/regex_internal.h: Likewise.
17942 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
17943 since the wctype module should handle this now.
17944 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
17945 * modules/fnmatch (Depends-on): Add wctype.
17946 * modules/quotearg (Depends-on): Likewise.
17947 * modules/regex (Depends-on): Likewise.
17949 2006-12-19 Bruno Haible <bruno@clisp.org>
17951 * lib/strdup.h [C++]: Wrap definitions in extern "C".
17952 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
17954 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17956 * modules/savewd (Depends-on): Fix dependency on fcntl.
17958 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
17960 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
17961 conforms to C99, rather than relying on the user's environment
17962 setting of STDINT_H.
17964 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
17965 and Eric Blake <ebb9@byu.net>
17967 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
17968 This is more consistent with the other defines here.
17969 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
17970 Port to z/OS. Problem reported by Paul Gilmartin.
17971 Change local vars to use gl_ prefix rather than ac_.
17972 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
17973 with other defines.
17974 * modules/double-slash-root: New module.
17975 * modules/dirname (Files): Remove m4/double-slash-root.m4.
17976 (Depends-on): Add double-slash-root.
17977 * MODULES.html.sh (File system functions): Mention new module.
17979 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
17981 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
17982 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
17983 This is for the benefit of gzip, which doesn't do i18n.
17985 2006-12-12 Jim Meyering <jim@meyering.net>
17987 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
17988 Reported by Andreas Schwab <schwab@suse.de>.
17990 2006-12-12 Bruno Haible <bruno@clisp.org>
17992 Merge these changes.
17993 2006-09-05 Bruno Haible <bruno@clisp.org>
17994 * lib/iconvme.c (iconv_string): No need to save and restore errno when
17995 iconv_alloc succeeded.
17996 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
17997 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
17998 test for " && dest " at the end - dest is always != NULL there. Call
17999 iconv with 4xNULL arguments initially, to reset the state. Call iconv
18000 with 2xNULL arguments, also to flush the state storage. Handle the
18001 IRIX iconv behaviour. Realloc the final result, to throw away unused
18004 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
18006 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18007 and fchmodat unconditionally, since glibc 2.4 has them.
18008 Problem reported by Arkadiusz Miskiewicz.
18010 2006-12-10 Bruno Haible <bruno@clisp.org>
18012 * gnulib-tool (func_import): Show the include files only for those
18013 modules that are copied and specified.
18014 Reported by Karl Berry.
18016 2006-12-08 Jim Meyering <jim@meyering.net>
18018 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18019 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
18021 * build-aux/announce-gen: Add two new options, both optional:
18022 --bootstrap-tools=TOOL_LIST
18023 a comma-separated list of tools, e.g.,
18024 autoconf,automake,bison,gnulib
18025 --gnulib-snapshot-date=DATE
18026 if gnulib is in the bootstrap tool list,
18027 then report this as the snapshot date.
18028 If not specified, use the current date/time.
18029 If you specify a date here, be sure it's UTC.
18031 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18033 * tests/test-argp-2.sh: Fix test to match actual output.
18034 (func_compare): Fix sed script to be portable.
18036 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
18038 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18039 workaround for this case. It is not autoconfigured now; offhand
18040 it's hard to see how to autoconfigure it.
18042 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
18044 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18045 a directory that is about to be chowned. Such a directory's
18046 initial file permissions should permit the owner only and this
18047 should not be changed until after the chown, since the group and
18048 other bits would be incorrect if they granted permission before
18051 Fix porting problem for iswctype reported by Georg Schwarz in:
18052 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18053 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18054 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18055 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18056 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18058 2006-12-03 Jim Meyering <jim@meyering.net>
18060 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18061 p->fts_statp may not yet be defined.
18062 (fts_read): Instead, set it in the caller, once p->fts_statp is
18063 sure to be defined, and corresponds to a top-level directory.
18064 This bug made du -x fail. Here's the coreutils test case:
18065 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18066 Reported by Mike Frysinger.
18068 2006-12-01 Jim Meyering <jim@meyering.net>
18070 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18071 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18072 Reported by Simon Josefsson.
18074 2006-11-30 Jim Meyering <jim@meyering.net>
18076 * m4/warning.m4: Use the all-permissive copyright notice
18077 recommended by RMS (rather than LGPL).
18078 * m4/vararrays.m4: Likewise.
18079 * m4/flexmember.m4: Likewise.
18081 2006-11-29 Bruno Haible <bruno@clisp.org>
18083 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18084 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18086 Reported by Simon Josefsson <simon@josefsson.org>.
18088 2006-11-28 James Youngman <jay@gnu.org>
18090 * README: Advise users that they might find the bug-gnulib@gnu.org
18091 and autotools-announce@gnu.org mailing lists useful.
18093 2006-11-28 Bruno Haible <bruno@clisp.org>
18095 * m4/ptrdiff_max.m4: Remove file.
18097 2006-11-21 Bruno Haible <bruno@clisp.org>
18099 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
18101 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18102 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
18104 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18105 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
18107 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18109 2006-11-28 Jim Meyering <jim@meyering.net>
18111 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
18112 warning from "gcc -Wshadow" about shadowing the builtin.
18114 2006-11-27 Bruno Haible <bruno@clisp.org>
18116 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
18118 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18120 2006-11-27 Bruno Haible <bruno@clisp.org>
18121 Paul Eggert <eggert@cs.ucla.edu>
18123 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
18125 2006-11-26 Bruno Haible <bruno@clisp.org>
18127 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18128 noinst_LTLIBRARIES.
18130 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
18131 Bruno Haible <bruno@clisp.org>
18133 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
18134 if compiling with "gcc -ansi".
18136 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
18138 Fix some incompatibilities with gcc -ansi -pedantic.
18139 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
18140 if compiling pedantically with GCC, unless it's C99 or later.
18141 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
18142 it mishandles gcc -ansi -pedantic as well.
18143 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
18145 * lib/regexec.c (check_node_accept_bytes): Don't use auto
18146 initializers for struct if -pedantic, unless it's C99 or later.
18148 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
18150 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
18151 Don't close an fd more than once. Identical atimes indicate
18152 success, not failure.
18154 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
18156 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
18158 2006-11-23 Jim Meyering <jim@meyering.net>
18160 * build-aux/announce-gen: New file. From coreutils.
18162 2006-11-22 Jim Meyering <jim@meyering.net>
18164 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
18165 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
18166 (fts_read): Use a temporary to narrow the overused st_size member
18167 before using it in a switch statement. Reported by Matthew Woehlke.
18169 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
18170 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18172 2006-11-20 Bruno Haible <bruno@clisp.org>
18174 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
18175 changequote instead of pairs of brackets.
18176 Reported by Andreas Schwab <schwab@suse.de>.
18178 2006-11-21 Jim Meyering <jim@meyering.net>
18180 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
18181 so as to remain compatible with older compilers.
18182 Patch from Michael Deutschmann.
18184 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
18186 * MODULES.html.sh (File system functions): Add openat.
18188 * lib/openat.h (rpl_fstatat): New macro, if
18189 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
18190 (fstatat): Define to rpl_fstatat under the same conditions,
18191 unless COMPILING_FSTATAT.
18192 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
18193 seems to have the bug.
18194 * lib/fstatat.c: New file.
18195 * modules/openat (Files): Add it.
18197 2006-11-20 Bruno Haible <bruno@clisp.org>
18199 * Makefile: New file.
18201 2006-11-20 Jim Meyering <jim@meyering.net>
18203 The beginnings of syntax-related checks for gnulib.
18204 * lib/Makefile: New file.
18205 * lib/t-idcache: New script. Ensure that the two halves of
18206 idcache.c stay in sync.
18208 * lib/idcache.c: Adjust comments in user- and group- portions to
18209 be more accurate, and to be consistent with one another.
18211 2006-11-20 Jim Meyering <jim@meyering.net>
18213 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
18214 continue using the flexible array member (thus, this module performs
18215 half as many malloc calls), with the addition that...
18216 (getgroup, getuser): Consistently record a non-match via an empty
18217 "name" string, and map an empty string match to a NULL return value.
18218 * modules/idcache (Depends-on): Re-add flexmember.
18220 * lib/idcache.c (getuser): Remove all uses of the register keyword.
18221 (getuidbyname, getgroup, getgidbyname): Likewise.
18223 Use cleaner syntax: NULL rather than 0.
18224 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
18226 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
18228 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
18229 It mishandled the case where the group was missing.
18230 Problem reported by Greg Schafer.
18231 * modules/idcache: Likewise.
18233 2006-11-18 Jim Meyering <jim@meyering.net>
18235 * check-module (%exempt_header): Add exception for some
18236 conditionally-included headers.
18238 * modules/i-ring (Depends-on): Add verify.
18239 (License): Change to LGPL.
18241 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
18243 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
18244 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
18245 and inttostr.h. Use snprintf rather than uinttostr, so that
18246 LGPLed code doesn't depend on GPLed.
18248 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
18250 * modules/inline (License): Change from GPL to LGPL.
18252 2006-11-17 Jim Meyering <jim@meyering.net>
18254 * modules/d-type (License): Switch to LGPL.
18256 2006-11-15 Bruno Haible <bruno@clisp.org>
18258 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
18260 2006-11-15 Eric Blake <ebb9@byu.net>
18262 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
18263 the module dependency.
18265 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18266 Bruno Haible <bruno@clisp.org>
18268 * gnulib-tool (func_create_testdir): Add license consistency check.
18270 2006-11-15 Eric Blake <ebb9@byu.net>
18272 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
18273 random "(cached)" in configure output.
18275 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18277 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
18278 test for conforming inttypes.h is both announced and cached.
18280 * MODULES.html.sh (seen_modules, seen_files): New variables.
18281 (func_module): Rewrite to use a few less gnulib-tool and sed
18282 invocations. Avoid a couple of quadratic algorithms for ...
18283 (missed_modules, missed_files): ... these, with ...
18284 (func_append, func_tmpdir): ... these new functions, from
18285 gnulib-tool. Analogously, install traps for cleanup.
18287 * tests/test-gc.c (main): Remove unused variables.
18288 * tests/test-read-file.c: Include stdlib.h, for 'free'.
18290 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
18292 * modules/inttostr (License): Change to LGPL.
18294 2006-11-14 Eric Blake <ebb9@byu.net>
18296 * modules/tempname (License): Change to LGPL.
18298 2006-11-14 Eric Blake <ebb9@byu.net>
18300 * doc/functions.texi (Function Portability): *printf functions on
18301 Cygwin now understand all POSIX size specifiers.
18303 2006-11-14 Bruno Haible <bruno@clisp.org>
18305 * modules/c-ctype (License): Change to LGPL.
18307 2006-11-12 Bruno Haible <bruno@clisp.org>
18309 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18310 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
18311 for GNOME libraries, for which the include files are installed in
18312 subdirectories of $prefix/include.
18314 2006-11-12 Bruno Haible <bruno@clisp.org>
18316 * m4/lib-link.m4: Require at least autoconf-2.54.
18317 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
18318 name to underscores for the --with option.
18320 2006-11-13 Bruno Haible <bruno@clisp.org>
18322 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
18323 the tests directory.
18324 Reported by Ralf Wildenhues.
18326 2006-11-13 Bruno Haible <bruno@clisp.org>
18328 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
18329 (func_emit_initmacro_end): Undo the override here.
18330 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
18331 Works around the famous automake error in coreutils.
18333 2006-11-13 Eric Blake <ebb9@byu.net>
18335 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
18336 element, not its node.
18338 2006-11-12 Bruno Haible <bruno@clisp.org>
18340 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
18341 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
18343 2006-11-12 Bruno Haible <bruno@clisp.org>
18345 * gnulib-tool: New option --local-symlink.
18346 (func_usage): Document it.
18347 (lsymbolic): New variable.
18348 (func_import, func_create_testdir): If --symlink was not specified,
18349 test whether --local-symlink was specified and the file comes from
18350 the local_gnulib_dir.
18352 2006-11-12 Bruno Haible <bruno@clisp.org>
18354 * gnulib-tool (func_ln): New function.
18355 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
18357 2006-11-12 Bruno Haible <bruno@clisp.org>
18359 Finish support for source files in subdirectories.
18360 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
18361 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
18363 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
18365 2006-11-12 Bruno Haible <bruno@clisp.org>
18367 * gnulib-tool (func_get_automake_snippet): Synthesize also an
18368 EXTRA_lib_SOURCES augmentation.
18369 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
18371 2006-11-12 Jim Meyering <jim@meyering.net>
18373 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
18374 file descriptors. This also averts a failure on systems with
18375 native openat support when a traversed directory lacks "x" access.
18376 * lib/fts_.h: Include "i-ring.h"
18377 (struct FTS) [fts_fd_ring]: New member.
18378 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
18379 (FCHDIR): Add parentheses.
18380 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
18381 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
18382 When descending, rather than simply closing the previous
18383 fts_cwd_fd value, push that file descriptor onto the ring.
18384 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
18385 (fts_open): Initialize the new fd_ring member.
18386 (fts_close): Clear the ring.
18387 (fts_safe_changedir): When possible, use our new fd_ring to skip
18388 the diropen and fstat and dev/ino comparison that would normally
18389 accompany a virtual `chdir ("..")'.
18391 * modules/fts (Depends-on): Add i-ring.
18392 * modules/i-ring: New module.
18393 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
18394 * m4/i-ring.m4: New file.
18396 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18398 * gnulib-tool (func_create_testdir): Fix replacement of
18399 `build-aux' in configure.ac. Run autotools in gltests
18401 (func_create_testdir, func_create_megatestdir, test): There is
18402 no need for '--force' in most autotool invocations in a new
18403 tree. Actually fail the whole test if any of the tools, or the
18404 configure or make stages fail.
18406 Sync from Automake.
18407 * build-aux/gnupload: Revert last change. Add pointer to upload
18408 instructions of the GNU Maintenance Instructions.
18409 Suggestion by Karl Berry.
18411 2006-11-10 Jim Meyering <jim@meyering.net>
18413 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
18415 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
18417 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
18418 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
18419 (bind_textdomain_codeset) [! ENABLE_NLS]:
18420 Evaluate all the arguments. That way, callers get compatible behavior
18421 if the arguments have side effects. Also, it avoids some GCC
18422 diagnostics in some cases; Joel E. Denny reported problems when Bison
18423 was configured with --enable-gcc-warnigs.
18425 2006-11-10 Jim Meyering <jim@meyering.net>
18427 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
18428 relevant options in CFLAGS (like -O, -fno-inline) are taken into
18431 2006-11-10 Jim Meyering <jim@meyering.net>
18433 * modules/inline: New file/module.
18434 * modules/xalloc (Files): Remove m4/inline.m4.
18435 (Depends-on): Add inline, instead.
18436 * modules/oset: Likewise.
18437 * modules/list: Likewise.
18439 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
18441 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
18442 Problem reported by Matthew Woehlke.
18444 2006-11-09 Bruno Haible <bruno@clisp.org>
18446 * lib/tempname.c (gen_tempname): Remove variant that invokes
18448 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
18451 2006-11-08 Bruno Haible <bruno@clisp.org>
18453 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
18454 to 'yes' instead of 'cross-compiling'.
18456 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
18458 * lib/quotearg.h (quotearg_free): New decl.
18459 * lib/quotearg.c (quotearg_free): New function.
18460 (slot0, nslots, slotvec0, slotvec):
18461 Now file-scope so that quotearg_free can get at them.
18463 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18465 Sync from Automake.
18466 * build-aux/gnupload: Add missing 'gnu' to example URL.
18467 Report by Karl Berry.
18469 2006-11-08 Bruno Haible <bruno@clisp.org>
18471 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
18472 Suggested by Paul Eggert.
18474 2006-11-08 Jim Meyering <jim@meyering.net>
18476 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
18477 It's already included if !_LIBC.
18478 (fts_safe_changedir): Add a comment.
18480 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
18482 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
18483 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
18486 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
18487 definitions up, to avoid colliding with change below.
18488 (static_inline) [HAVE_INLINE]: New macro.
18489 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18490 Provide extern decls when !HAVE_INLINE. Do not define unless
18491 static_inline is defined, either by us or by xmalloc.c. Use
18492 static_inline rather than static inline.
18493 (XCALLOC): Optimize sizeof(T) = 1 case.
18494 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
18496 2006-11-07 Bruno Haible <bruno@clisp.org>
18498 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
18499 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
18501 * modules/xalloc (Files): Add m4/inline.m4.
18503 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18505 * README: Fix typo.
18506 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
18507 (Miscellanous Notes): ...from this.
18509 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
18511 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
18512 Mention that offsetof should be used instead of sizeof.
18515 2006-11-07 Bruno Haible <bruno@clisp.org>
18517 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
18519 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
18521 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
18522 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
18523 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
18524 (gl_tree_add_before, gl_tree_add_after):
18525 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
18526 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
18527 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
18528 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
18529 (gl_linked_add_after, gl_linked_add_at): Likewise.
18530 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
18531 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
18532 (gl_tree_add_before, gl_tree_add_after): Likewise.
18533 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
18534 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
18535 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
18537 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18539 * lib/gl_oset.h: Use C comment style, not C++ comment style.
18541 2006-11-06 Bruno Haible <bruno@clisp.org>
18543 * m4/inline.m4: New file.
18544 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
18545 * modules/list (Files): Add m4/inline.m4.
18546 * modules/oset (Files): Likewise.
18548 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
18550 * lib/idcache.c: Include <stddef.h>, for offsetof.
18551 (struct userid.name): Change from char * to a flexible array member.
18553 * modules/idcache (Depends-on): Add flexmember.
18555 * MODULES.html.sh (Core language properties): New module flexmember.
18556 * modules/flexmember, m4/flexmember.m4: New files.
18558 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
18559 inline functions that are identical with the old xnmalloc_inline,
18560 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
18561 that we can avoid some unnecessary integer multiplications and
18562 divisions in the common case where the element size is known at
18564 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
18566 (xnboundedmalloc): Remove.
18567 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
18568 arguments, for consistency with rest of this header.
18569 (xcharalloc): Rewrite using XNMALLOC.
18570 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
18571 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
18572 versions have been moved to lib/xalloc.h and renamed to be the
18573 non-*_inline versions.
18574 (xmalloc, xrealloc): Implement without reference to the xnmalloc
18575 and xnrealloc functions, since those functions are now inline and
18577 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
18578 renaming described above.
18579 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
18580 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
18581 captures the dependency in AC_C_INLINE.
18583 New module canonicalize-lgpl, proposed by Charles Wilson in
18584 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
18585 with a few small changes afterwards.
18586 * MODULES.html.sh (File system functions): New module
18588 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
18589 and canonicalize_file_name.
18590 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
18591 * modules/canonicalize-lgpl: New files.
18593 2006-11-05 Bruno Haible <bruno@clisp.org>
18595 * gnulib-tool (func_import, func_create_testdir): Create directories
18596 also for files in subdirectories of lib/.
18598 2006-11-05 Bruno Haible <bruno@clisp.org>
18600 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
18603 2006-11-03 Bruno Haible <bruno@clisp.org>
18605 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
18606 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
18607 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
18608 (xnboundedmalloc): New inline function.
18609 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
18610 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
18612 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
18614 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
18615 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
18616 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
18618 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
18619 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
18621 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
18622 gl_tree_add_after): Use XMALLOC instead of xmalloc.
18623 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
18625 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
18626 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
18627 gl_tree_add_after): Use XMALLOC instead of xmalloc.
18628 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
18629 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
18630 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
18631 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
18633 2006-11-03 Bruno Haible <bruno@clisp.org>
18635 * lib/c-ctype.h [C++]: Define functions without name mangling.
18636 * lib/fwriteerror.h [C++]: Likewise.
18637 * lib/gcd.h [C++]: Likewise.
18638 * lib/linebreak.h [C++]: Likewise.
18640 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
18642 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
18643 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
18644 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
18645 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18646 Check for functions and headers just once.
18647 Check for declaration of canonicalize_file_name.
18648 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
18650 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
18652 * gnulib-tool (func_import): Fix typo in actioncmd.
18654 2006-11-02 Bruno Haible <bruno@clisp.org>
18656 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
18657 newline sequence in the Makefile.am snippet as a space, like "make"
18659 Reported by Roger Persson <perrog@gmail.com>.
18661 2006-11-01 Bruno Haible <bruno@clisp.org>
18663 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
18664 already declared in <string.h>.
18665 * lib/strcase.h (strncasecmp): Don't declare it if yes.
18667 2006-11-01 Bruno Haible <bruno@clisp.org>
18669 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
18670 * lib/strcase.h: Include <string.h>.
18671 (strcasecmp): Define to rpl_strcasecmp here.
18673 2006-11-01 Bruno Haible <bruno@clisp.org>
18675 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
18677 2006-11-01 Eric Blake <ebb9@byu.net>
18679 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
18681 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
18683 2006-10-29 Bruno Haible <bruno@clisp.org>
18685 Make it compile in C++ mode.
18686 * lib/full-write.c (full_rw): Add a cast.
18688 2006-11-01 Bruno Haible <bruno@clisp.org>
18690 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
18691 be POSIX compliant.
18692 Reported by Roger Persson <perrog@gmail.com>.
18694 2006-11-01 Eric Blake <ebb9@byu.net>
18696 * lib/getopt_.h: Fix comments.
18698 2006-10-31 Eric Blake <ebb9@byu.net>
18700 * modules/tmpdir (Depends-on): Add sys_stat.
18701 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
18702 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
18703 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
18704 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
18707 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
18709 Avoid some C++ diagnostics reported by Bruno Haible.
18710 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
18712 (quotearg_alloc): Use xcharalloc rather than xmalloc.
18713 (struct slotvec): Move to top level.
18714 (quotearg_n_options): Rewrite to avoid xmalloc.
18715 * lib/xalloc.h (xcharalloc): New function.
18716 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
18717 [defined __cplusplus]: Add function template that provides result
18718 type propagation. This part of the change is from Bruno Haible.
18720 2006-10-29 Bruno Haible <bruno@clisp.org>
18722 Make it compile in C++ mode.
18723 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
18724 * lib/strnlen1.c (strnlen1): Cast memchr result.
18725 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
18726 * lib/clean-temp.c (string_equals, string_hash): Add casts.
18727 (create_temp_dir): Rename local variable 'template'.
18728 (compile_csharp_using_sscli): Add cast.
18729 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
18730 * lib/findprog.c (find_in_path): Likewise.
18731 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
18732 * lib/wait-process.c (register_slave_subprocess): Likewise.
18734 2006-10-22 Bruno Haible <bruno@clisp.org>
18736 * modules/tsearch: New file.
18737 * lib/tsearch.h: New file.
18738 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
18739 * m4/tsearch.m4: New file.
18740 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
18742 2006-10-29 Eric Blake <ebb9@byu.net>
18744 * lib/arcfour.c: Assume config.h.
18745 * lib/arctwo.c: Likewise.
18746 * lib/base64.c: Likewise.
18747 * lib/check-version.c: Likewise.
18748 * lib/crc.c: Likewise.
18749 * lib/des.c: Likewise.
18750 * lib/gc-gnulib.c: Likewise.
18751 * lib/gc-libgcrypt.c: Likewise.
18752 * lib/gc-pbkdf2-sha1.c: Likewise.
18753 * lib/getaddrinfo.c: Likewise.
18754 * lib/getdelim.c: Likewise.
18755 * lib/getline.c: Likewise.
18756 * lib/hmac-md5.c: Likewise.
18757 * lib/hmac-sha1.c: Likewise.
18758 * lib/iconvme.c: Likewise.
18759 * lib/md2.c: Likewise.
18760 * lib/md4.c: Likewise.
18761 * lib/memxor.c: Likewise.
18762 * lib/read-file.c: Likewise.
18763 * lib/readline.c: Likewise.
18764 * lib/rijndael-alg-fst.c: Likewise.
18765 * lib/rijndael-api-fst.c: Likewise.
18766 * lib/xgetdomainname.c: Likewise.
18768 2006-10-28 Eric Blake <ebb9@byu.net>
18770 * lib/xstrndup.c: Assume config.h.
18772 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
18774 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
18775 stat-macros.h is now for our own macros, whereas stat_h is for
18776 macros in the <sys/stat.h> name space.
18777 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
18778 (STAT_MACROS_H): Remove.
18779 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
18780 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
18781 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
18782 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
18783 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
18784 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
18785 Move these macros to ...
18786 * lib/stat_.h: here. Don't include stat-macros.h.
18787 * lib/canonicalize.c: Don't include stat-macros.h.
18788 * lib/chown.c: Likewise.
18789 * lib/euidaccess.c: Likewise.
18790 * lib/file-type.c: Likewise.
18791 * lib/filemode.c: Likewise.
18792 * lib/glob.c: Likewise.
18793 * lib/isapipe.c: Likewise.
18794 * lib/lchown.c: Likewise.
18795 * lib/lstat.c: Likewise.
18796 * lib/mkdir-p.c: Likewise.
18797 * lib/rmdir.c: Likewise.
18798 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
18799 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
18800 unless mkdir isn't declared, to speed up 'configure'.
18801 Always create sys/stat.h, since it's unlikely any real sys/stat.h
18802 would define all the S_* symbols.
18803 * modules/canonicalize (Depends-on):
18804 Depend on sys_stat, not stat-macros.
18805 * modules/chown: Likewise.
18806 * modules/euidaccess: Likewise.
18807 * modules/filemode: Likewise.
18808 * modules/file-type: Likewise.
18809 * modules/glob: Likewise.
18810 * modules/isapipe: Likewise.
18811 * modules/lchown: Likewise.
18812 * modules/lstat: Likewise.
18813 * modules/mkancesdirs: Likewise.
18814 * modules/rmdir: Likewise.
18815 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
18816 * modules/modechange: Likewise.
18817 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
18818 (configure.ac): Remove gl_STAT_MACROS.
18819 * modules/sys_stat (Depends-on): Remove stat-macros.
18821 2006-10-27 Bruno Haible <bruno@clisp.org>
18823 * m4/signed.m4: Remove file.
18824 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
18826 * modules/vasnprintf (Files): Remove m4/signed.m4.
18828 2006-10-27 Bruno Haible <bruno@clisp.org>
18830 Update to GNU gettext 0.16.
18831 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
18832 m4/inttypes-h.m4, m4/signed.m4.
18833 * m4/gettext.m4: Update to GNU gettext 0.16.
18834 * m4/intl.m4: New file, from GNU gettext.
18835 * m4/intldir.m4: New file, from GNU gettext.
18836 * config/srclist.txt: Update
18838 2006-10-27 Eric Blake <ebb9@byu.net>
18840 * MODULES.html.sh: Document tempname.
18841 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
18843 (Files): Move lib/tempname.c...
18844 * modules/tempname: ...to this new module.
18845 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
18846 (gl_PREREQ_TEMPNAME): Move...
18847 * m4/tempname.m4: ...to this new file.
18848 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
18849 * modules/sys_stat (Depends-on): Add stat-macros.
18850 * lib/stat_.h (includes): Pick up stat macros.
18851 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
18852 if stat macros are broken.
18853 * lib/tempname.c (includes): No need to include "stat-macros.h".
18854 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
18855 (direxists, __path_search) [!_LIBC]: Don't compile these in
18856 gnulib; the tmpdir module covers that.
18857 * lib/tempname.h: New file.
18859 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
18861 * COPYING: Explain how gnulib-tool converts licence headers.
18862 Almost all wording by Eric Blake.
18864 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
18866 * lib/mbchar.h (is_basic_table): Make read-only.
18867 * lib/mbchar.c (is_basic_table): Likewise.
18868 Reported by John Darrington.
18870 2006-10-25 Bruno Haible <bruno@clisp.org>
18872 * lib/progname.h (set_program_name): Undefine before defining.
18874 2006-10-25 Bruno Haible <bruno@clisp.org>
18876 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
18877 false for non-gcc C++ compilers.
18878 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18880 2006-10-24 Bruno Haible <bruno@clisp.org>
18882 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
18883 iconv implementations like Irix iconv.
18885 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
18887 * modules/vararrays: New file.
18888 * m4/vararrays.m4: New file, taken from diffutils.
18889 * MODULES.html.sh: New module vararrays.
18891 2006-10-24 Karl Berry <karl@gnu.org>
18893 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
18894 Don't call GNU Unix.
18896 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18898 * users.txt: Add Libtool.
18902 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
18904 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
18905 to gnulib's policy of including config.h unconditionally.
18907 2006-10-24 Bruno Haible <bruno@clisp.org>
18909 * modules/wcwidth (Files): Add m4/wint_t.m4.
18910 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
18911 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
18913 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
18915 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
18916 to pacify GCC with some -W flags enabled. Problem reported by
18919 2006-10-24 Jim Meyering <jim@meyering.net>
18921 * MODULES.html.sh: Remove uinttostr. It's not a module.
18922 Reported by Karl Berry.
18924 2006-10-23 Bruno Haible <bruno@clisp.org>
18926 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
18928 2006-10-24 Bruno Haible <bruno@clisp.org>
18930 * lib/gl_list.h: Use C comment style, not C++ comment style.
18932 2006-10-23 Eric Blake <ebb9@byu.net>
18934 * lib/getaddrinfo.c (includes): Add missing include.
18936 2006-10-23 Bruno Haible <bruno@clisp.org>
18937 Paul Eggert <eggert@cs.ucla.edu>
18939 Ability to rename obstack_free.
18940 * lib/obstack.h (__obstack_free): New macro. Declare instead of
18942 (obstack_free): Invoke the __obstack_free macro.
18943 * lib/obstack.c (obstack_free): Use __obstack_free macro.
18945 2006-10-23 Bruno Haible <bruno@clisp.org>
18946 Paul Eggert <eggert@cs.ucla.edu>
18948 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
18949 __argc, __argv from the declaration. (They are defined as macros on
18952 2006-10-22 Bruno Haible <bruno@clisp.org>
18954 * doc/gnulib-intro.texi: New file.
18955 * doc/gnulib.texi: Include it.
18957 2006-10-21 Bruno Haible <bruno@clisp.org>
18959 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
18960 "Introduction", "Miscellanous Notes", "Particular Modules".
18962 2006-10-21 Bruno Haible <bruno@clisp.org>
18964 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18965 Change mostlyclean-local rule to avoid sh syntax error from bash
18966 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
18968 2006-10-23 Jim Meyering <jim@meyering.net>
18970 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
18971 in place of snprintf.
18973 * modules/inttostr (Files): Add lib/uinttostr.c.
18974 * lib/uinttostr.c (inttostr): New file/function.
18975 * lib/inttostr.h (uinttostr): Declare.
18976 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
18977 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
18979 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
18981 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
18983 * lib/canonicalize.c (ELOOP): Define if not already defined.
18984 Problem reported by Bruno Haible in
18985 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
18987 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
18989 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
18990 Problem reported by Perry Smith and Ville Laurikari.
18992 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
18995 2006-10-19 Bruno Haible <bruno@clisp.org>
18997 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19000 2006-10-19 Bruno Haible <bruno@clisp.org>
19002 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19005 2006-10-19 Bruno Haible <bruno@clisp.org>
19007 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19009 2006-10-19 Bruno Haible <bruno@clisp.org>
19011 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19014 2006-10-19 Bruno Haible <bruno@clisp.org>
19016 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19019 2006-10-19 Bruno Haible <bruno@clisp.org>
19021 * gnulib-tool (func_create_testdir): Don't include ftruncate and
19022 mountlist by default.
19024 2006-10-16 Bruno Haible <bruno@clisp.org>
19026 * lib/c-strstr.c: Include c-strstr.h.
19028 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
19030 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19033 2006-10-18 Bruno Haible <bruno@clisp.org>
19035 * lib/lock.h [C++]: Wrap definitions in extern "C".
19037 2006-10-18 Bruno Haible <bruno@clisp.org>
19039 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19042 2006-10-18 Bruno Haible <bruno@clisp.org>
19044 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19046 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
19048 * lib/xstrtol.h: Include gettext.h.
19049 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19050 Problem reported by Eric Blake.
19051 * modules/xstrtol (Depends-on): Add gettext-h.
19053 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
19055 * lib/strftime.c (advance): New macro.
19056 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
19057 incomplete type, so you can't add 0 to it. Problem and patch
19058 reported by Eelco Dolstra for dietlibc.
19060 2006-10-18 Jim Meyering <jim@meyering.net>
19062 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19063 type for a local, and rename it: s/up/user_proc/.
19065 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
19067 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19068 READ_UTMP_USER_PROCESS.
19069 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19071 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
19073 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19074 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19076 2006-10-17 Eric Blake <ebb9@byu.net>
19078 * lib/sigprocmask.c (sigprocmask): Fix typo.
19080 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19082 * modules/clean-temp (Makefile.am): Don't add to make output...
19083 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19086 2006-10-17 Bruno Haible <bruno@clisp.org>
19088 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19089 differently if DEFAULT_TEXT_DOMAIN is set.
19091 2006-10-16 Bruno Haible <bruno@clisp.org>
19093 * lib/clean-temp.c: Include fwriteerror.h.
19095 2006-10-16 Bruno Haible <bruno@clisp.org>
19097 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
19099 2006-10-16 Bruno Haible <bruno@clisp.org>
19101 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
19102 * lib/sigprocmask.h: Include <sys/types.h>.
19103 (sigset_t): Use the system's definition if present.
19105 2006-10-17 Eric Blake <ebb9@byu.net>
19107 * lib/xvasprintf.c (includes): Assume config.h.
19108 * lib/xasprintf.c (includes): Likewise.
19110 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
19112 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
19113 at least as wide as intmax_t.
19115 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
19117 (Imported from Automake.)
19118 * build-aux/gnupload: Update to version 1.1 of directive file.
19120 2006-10-16 Eric Blake <ebb9@byu.net>
19122 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
19123 match Automake 1.10a.
19125 2006-10-14 Bruno Haible <bruno@clisp.org>
19127 * modules/sigprocmask: New file.
19128 * lib/sigprocmask.h: New file.
19129 * lib/sigprocmask.c: New file.
19130 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
19131 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
19132 request sigprocmask.o.
19133 (gl_PREREQ_SIGPROCMASK): New macro.
19134 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
19135 (Depends-on): Add sigprocmask.
19136 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
19137 gt_SIGNALBLOCKING. Test for 'raise' only once.
19138 * lib/fatal-signal.c: Include sigprocmask.h.
19139 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
19140 unblock_fatal_signals): Define always.
19141 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19144 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
19146 Sync from Automake.
19147 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
19148 which incorrectly sets the mode of an existing destination
19149 directory. In some cases the unpatched install-sh could do the
19150 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
19151 system. We hope this is rare in practice, but it's clearly worth
19152 fixing. Problem reported by Alex Unleashed in
19153 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
19154 Also, don't bother to check for -m bugs unless we're using -m;
19155 suggested by Stepan Kasal.
19157 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19159 Sync from Automake.
19160 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
19161 `-c' flag, so they appear at the same position as in %FASTDEP%
19162 mode in depend2.am. Fixes build failure for FreeBSD's c89,
19163 which ignores unknown options only after the first non-option.
19164 Bug report against M4 by Nelson H. F. Beebe.
19166 2006-10-13 Jim Meyering <jim@meyering.net>
19168 Fix a bug in yesterday's change.
19169 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
19170 p->fts_statp->st_dev would be used uninitialized.
19171 Ensures that we always call fts_stat on the very first entry.
19172 Miklos Szeredi reported that find -xdev stopped working.
19174 2006-10-12 Bruno Haible <bruno@clisp.org>
19176 * gnulib-tool (func_get_automake_snippet): Append an automatically
19177 computed EXTRA_DIST augmentation.
19178 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
19179 * modules/alloca-opt (Makefile.am): Likewise.
19180 * modules/allocsa (Makefile.am): Likewise.
19181 * modules/arcfour (Makefile.am): Likewise.
19182 * modules/arctwo (Makefile.am): Likewise.
19183 * modules/argmatch (Makefile.am): Likewise.
19184 * modules/argz (Makefile.am): Likewise.
19185 * modules/atexit (Makefile.am): Likewise.
19186 * modules/backupfile (Makefile.am): Likewise.
19187 * modules/byteswap (Makefile.am): Likewise.
19188 * modules/c-strtod (Makefile.am): Likewise.
19189 * modules/c-strtold (Makefile.am): Likewise.
19190 * modules/calloc (Makefile.am): Likewise.
19191 * modules/canon-host (Makefile.am): Likewise.
19192 * modules/canonicalize (Makefile.am): Likewise.
19193 * modules/chdir-long (Makefile.am): Likewise.
19194 * modules/chdir-safer (Makefile.am): Likewise.
19195 * modules/check-version (Makefile.am): Likewise.
19196 * modules/chown (Makefile.am): Likewise.
19197 * modules/cloexec (Makefile.am): Likewise.
19198 * modules/close-stream (Makefile.am): Likewise.
19199 * modules/closeout (Makefile.am): Likewise.
19200 * modules/crc (Makefile.am): Likewise.
19201 * modules/csharpexec (Makefile.am): Likewise.
19202 * modules/cycle-check (Makefile.am): Likewise.
19203 * modules/des (Makefile.am): Likewise.
19204 * modules/dev-ino (Makefile.am): Likewise.
19205 * modules/dirfd (Makefile.am): Likewise.
19206 * modules/dirname (Makefile.am): Likewise.
19207 * modules/dup2 (Makefile.am): Likewise.
19208 * modules/eealloc (Makefile.am): Likewise.
19209 * modules/error (Makefile.am): Likewise.
19210 * modules/euidaccess (Makefile.am): Likewise.
19211 * modules/exclude (Makefile.am): Likewise.
19212 * modules/exitfail (Makefile.am): Likewise.
19213 * modules/fcntl-safer (Makefile.am): Likewise.
19214 * modules/fcntl (Makefile.am): Likewise.
19215 * modules/file-type (Makefile.am): Likewise.
19216 * modules/fileblocks (Makefile.am): Likewise.
19217 * modules/filemode (Makefile.am): Likewise.
19218 * modules/filenamecat (Makefile.am): Likewise.
19219 * modules/fnmatch (Makefile.am): Likewise.
19220 * modules/fopen-safer (Makefile.am): Likewise.
19221 * modules/fpending (Makefile.am): Likewise.
19222 * modules/fprintftime (Makefile.am): Likewise.
19223 * modules/free (Makefile.am): Likewise.
19224 * modules/fsusage (Makefile.am): Likewise.
19225 * modules/ftruncate (Makefile.am): Likewise.
19226 * modules/fts (Makefile.am): Likewise.
19227 * modules/gc-arcfour (Makefile.am): Likewise.
19228 * modules/gc-des (Makefile.am): Likewise.
19229 * modules/gc-hmac-md5 (Makefile.am): Likewise.
19230 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
19231 * modules/gc-md4 (Makefile.am): Likewise.
19232 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19233 * modules/gc-sha1 (Makefile.am): Likewise.
19234 * modules/gc (Makefile.am): Likewise.
19235 * modules/getaddrinfo (Makefile.am): Likewise.
19236 * modules/getcwd (Makefile.am): Likewise.
19237 * modules/getdelim (Makefile.am): Likewise.
19238 * modules/getdomainname (Makefile.am): Likewise.
19239 * modules/getgroups (Makefile.am): Likewise.
19240 * modules/gethostname (Makefile.am): Likewise.
19241 * modules/gethrxtime (Makefile.am): Likewise.
19242 * modules/getline (Makefile.am): Likewise.
19243 * modules/getloadavg (Makefile.am): Likewise.
19244 * modules/getlogin_r (Makefile.am): Likewise.
19245 * modules/getndelim2 (Makefile.am): Likewise.
19246 * modules/getopt (Makefile.am): Likewise.
19247 * modules/getpagesize (Makefile.am): Likewise.
19248 * modules/getpass-gnu (Makefile.am): Likewise.
19249 * modules/getpass (Makefile.am): Likewise.
19250 * modules/getsubopt (Makefile.am): Likewise.
19251 * modules/gettime (Makefile.am): Likewise.
19252 * modules/gettimeofday (Makefile.am): Likewise.
19253 * modules/getugroups (Makefile.am): Likewise.
19254 * modules/getusershell (Makefile.am): Likewise.
19255 * modules/glob (Makefile.am): Likewise.
19256 * modules/group-member (Makefile.am): Likewise.
19257 * modules/hard-locale (Makefile.am): Likewise.
19258 * modules/hash (Makefile.am): Likewise.
19259 * modules/hmac-md5 (Makefile.am): Likewise.
19260 * modules/hmac-sha1 (Makefile.am): Likewise.
19261 * modules/human (Makefile.am): Likewise.
19262 * modules/idcache (Makefile.am): Likewise.
19263 * modules/imaxabs (Makefile.am): Likewise.
19264 * modules/imaxdiv (Makefile.am): Likewise.
19265 * modules/inet_ntop (Makefile.am): Likewise.
19266 * modules/inet_pton (Makefile.am): Likewise.
19267 * modules/intprops (Makefile.am): Likewise.
19268 * modules/inttostr (Makefile.am): Likewise.
19269 * modules/inttypes (Makefile.am): Likewise.
19270 * modules/isapipe (Makefile.am): Likewise.
19271 * modules/javaversion (Makefile.am): Likewise.
19272 * modules/lchmod (Makefile.am): Likewise.
19273 * modules/lchown (Makefile.am): Likewise.
19274 * modules/localcharset (Makefile.am): Likewise.
19275 * modules/long-options (Makefile.am): Likewise.
19276 * modules/lstat (Makefile.am): Likewise.
19277 * modules/malloc (Makefile.am): Likewise.
19278 * modules/mathl (Makefile.am): Likewise.
19279 * modules/mbchar (Makefile.am): Likewise.
19280 * modules/md2 (Makefile.am): Likewise.
19281 * modules/md4 (Makefile.am): Likewise.
19282 * modules/md5 (Makefile.am): Likewise.
19283 * modules/memcasecmp (Makefile.am): Likewise.
19284 * modules/memchr (Makefile.am): Likewise.
19285 * modules/memcmp (Makefile.am): Likewise.
19286 * modules/memcoll (Makefile.am): Likewise.
19287 * modules/memcpy (Makefile.am): Likewise.
19288 * modules/memmem (Makefile.am): Likewise.
19289 * modules/memmove (Makefile.am): Likewise.
19290 * modules/mempcpy (Makefile.am): Likewise.
19291 * modules/memrchr (Makefile.am): Likewise.
19292 * modules/memset (Makefile.am): Likewise.
19293 * modules/memxor (Makefile.am): Likewise.
19294 * modules/mkancesdirs (Makefile.am): Likewise.
19295 * modules/mkdir-p (Makefile.am): Likewise.
19296 * modules/mkdir (Makefile.am): Likewise.
19297 * modules/mkdtemp (Makefile.am): Likewise.
19298 * modules/mkstemp (Makefile.am): Likewise.
19299 * modules/mktime (Makefile.am): Likewise.
19300 * modules/modechange (Makefile.am): Likewise.
19301 * modules/mountlist (Makefile.am): Likewise.
19302 * modules/nanosleep (Makefile.am): Likewise.
19303 * modules/obstack (Makefile.am): Likewise.
19304 * modules/openat (Makefile.am): Likewise.
19305 * modules/pagealign_alloc (Makefile.am): Likewise.
19306 * modules/pathmax (Makefile.am): Likewise.
19307 * modules/physmem (Makefile.am): Likewise.
19308 * modules/poll (Makefile.am): Likewise.
19309 * modules/posixtm (Makefile.am): Likewise.
19310 * modules/posixver (Makefile.am): Likewise.
19311 * modules/putenv (Makefile.am): Likewise.
19312 * modules/quote (Makefile.am): Likewise.
19313 * modules/quotearg (Makefile.am): Likewise.
19314 * modules/raise (Makefile.am): Likewise.
19315 * modules/read-file (Makefile.am): Likewise.
19316 * modules/readline (Makefile.am): Likewise.
19317 * modules/readlink (Makefile.am): Likewise.
19318 * modules/readtokens (Makefile.am): Likewise.
19319 * modules/readutmp (Makefile.am): Likewise.
19320 * modules/realloc (Makefile.am): Likewise.
19321 * modules/regex (Makefile.am): Likewise.
19322 * modules/rename-dest-slash (Makefile.am): Likewise.
19323 * modules/rename (Makefile.am): Likewise.
19324 * modules/rijndael (Makefile.am): Likewise.
19325 * modules/rmdir (Makefile.am): Likewise.
19326 * modules/rpmatch (Makefile.am): Likewise.
19327 * modules/safe-read (Makefile.am): Likewise.
19328 * modules/safe-write (Makefile.am): Likewise.
19329 * modules/same-inode (Makefile.am): Likewise.
19330 * modules/same (Makefile.am): Likewise.
19331 * modules/save-cwd (Makefile.am): Likewise.
19332 * modules/savedir (Makefile.am): Likewise.
19333 * modules/setenv (Makefile.am): Likewise.
19334 * modules/settime (Makefile.am): Likewise.
19335 * modules/sha1 (Makefile.am): Likewise.
19336 * modules/sig2str (Makefile.am): Likewise.
19337 * modules/snprintf (Makefile.am): Likewise.
19338 * modules/stat-macros (Makefile.am): Likewise.
19339 * modules/stat-time (Makefile.am): Likewise.
19340 * modules/stdbool (Makefile.am): Likewise.
19341 * modules/stdint (Makefile.am): Likewise.
19342 * modules/stdlib-safer (Makefile.am): Likewise.
19343 * modules/stpcpy (Makefile.am): Likewise.
19344 * modules/stpncpy (Makefile.am): Likewise.
19345 * modules/strcase (Makefile.am): Likewise.
19346 * modules/strcasestr (Makefile.am): Likewise.
19347 * modules/strchrnul (Makefile.am): Likewise.
19348 * modules/strcspn (Makefile.am): Likewise.
19349 * modules/strdup (Makefile.am): Likewise.
19350 * modules/strerror (Makefile.am): Likewise.
19351 * modules/strftime (Makefile.am): Likewise.
19352 * modules/strndup (Makefile.am): Likewise.
19353 * modules/strnlen (Makefile.am): Likewise.
19354 * modules/strpbrk (Makefile.am): Likewise.
19355 * modules/strsep (Makefile.am): Likewise.
19356 * modules/strstr (Makefile.am): Likewise.
19357 * modules/strtod (Makefile.am): Likewise.
19358 * modules/strtoimax (Makefile.am): Likewise.
19359 * modules/strtok_r (Makefile.am): Likewise.
19360 * modules/strtol (Makefile.am): Likewise.
19361 * modules/strtoll (Makefile.am): Likewise.
19362 * modules/strtoul (Makefile.am): Likewise.
19363 * modules/strtoull (Makefile.am): Likewise.
19364 * modules/strtoumax (Makefile.am): Likewise.
19365 * modules/strverscmp (Makefile.am): Likewise.
19366 * modules/sys_socket (Makefile.am): Likewise.
19367 * modules/sys_stat (Makefile.am): Likewise.
19368 * modules/sysexits (Makefile.am): Likewise.
19369 * modules/time_r (Makefile.am): Likewise.
19370 * modules/timegm (Makefile.am): Likewise.
19371 * modules/timespec (Makefile.am): Likewise.
19372 * modules/tmpfile-safer (Makefile.am): Likewise.
19373 * modules/trim (Makefile.am): Likewise.
19374 * modules/unistd-safer (Makefile.am): Likewise.
19375 * modules/unlinkdir (Makefile.am): Likewise.
19376 * modules/unlocked-io (Makefile.am): Likewise.
19377 * modules/userspec (Makefile.am): Likewise.
19378 * modules/utime (Makefile.am): Likewise.
19379 * modules/utimecmp (Makefile.am): Likewise.
19380 * modules/utimens (Makefile.am): Likewise.
19381 * modules/vasnprintf (Makefile.am): Likewise.
19382 * modules/vasprintf (Makefile.am): Likewise.
19383 * modules/vsnprintf (Makefile.am): Likewise.
19384 * modules/xalloc (Makefile.am): Likewise.
19385 * modules/xgetcwd (Makefile.am): Likewise.
19386 * modules/xnanosleep (Makefile.am): Likewise.
19387 * modules/xreadlink (Makefile.am): Likewise.
19388 * modules/xstrtod (Makefile.am): Likewise.
19389 * modules/xstrtol (Makefile.am): Likewise.
19390 * modules/xstrtold (Makefile.am): Likewise.
19391 * modules/yesno (Makefile.am): Likewise.
19392 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
19394 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
19396 * modules/error (Makefile.am): Distribute files through
19397 EXTRA_DIST, not lib_SOURCES.
19399 2006-10-12 Eric Blake <ebb9@byu.net>
19401 * modules/error (Makefile.am): Distribute files in /lib.
19402 * modules/obstack (Makefile.am): Likewise.
19404 2006-10-12 Bruno Haible <bruno@clisp.org>
19406 * modules/acl (Makefile.am): Distribute all files in lib/ through
19408 * modules/arcfour (Makefile.am): Likewise.
19409 * modules/arctwo (Makefile.am): Likewise.
19410 * modules/argmatch (Makefile.am): Likewise.
19411 * modules/argz (Makefile.am): Likewise.
19412 * modules/atexit (Makefile.am): Likewise.
19413 * modules/backupfile (Makefile.am): Likewise.
19414 * modules/c-strtod (Makefile.am): Likewise.
19415 * modules/c-strtold (Makefile.am): Likewise.
19416 * modules/calloc (Makefile.am): Likewise.
19417 * modules/canon-host (Makefile.am): Likewise.
19418 * modules/canonicalize (Makefile.am): Likewise.
19419 * modules/chdir-long (Makefile.am): Likewise.
19420 * modules/chdir-safer (Makefile.am): Likewise.
19421 * modules/check-version (Makefile.am): Likewise.
19422 * modules/chown (Makefile.am): Likewise.
19423 * modules/cloexec (Makefile.am): Likewise.
19424 * modules/close-stream (Makefile.am): Likewise.
19425 * modules/closeout (Makefile.am): Likewise.
19426 * modules/crc (Makefile.am): Likewise.
19427 * modules/cycle-check (Makefile.am): Likewise.
19428 * modules/des (Makefile.am): Likewise.
19429 * modules/dirfd (Makefile.am): Likewise.
19430 * modules/dirname (Makefile.am): Likewise.
19431 * modules/dup2 (Makefile.am): Likewise.
19432 * modules/euidaccess (Makefile.am): Likewise.
19433 * modules/exclude (Makefile.am): Likewise.
19434 * modules/exitfail (Makefile.am): Likewise.
19435 * modules/fcntl-safer (Makefile.am): Likewise.
19436 * modules/file-type (Makefile.am): Likewise.
19437 * modules/fileblocks (Makefile.am): Likewise.
19438 * modules/filemode (Makefile.am): Likewise.
19439 * modules/filenamecat (Makefile.am): Likewise.
19440 * modules/fnmatch (Makefile.am): Likewise.
19441 * modules/fopen-safer (Makefile.am): Likewise.
19442 * modules/fpending (Makefile.am): Likewise.
19443 * modules/fprintftime (Makefile.am): Likewise.
19444 * modules/free (Makefile.am): Likewise.
19445 * modules/fsusage (Makefile.am): Likewise.
19446 * modules/ftruncate (Makefile.am): Likewise.
19447 * modules/fts (Makefile.am): Likewise.
19448 * modules/gc (Makefile.am): Likewise.
19449 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19450 * modules/getaddrinfo (Makefile.am): Likewise.
19451 * modules/getcwd (Makefile.am): Likewise.
19452 * modules/getdelim (Makefile.am): Likewise.
19453 * modules/getdomainname (Makefile.am): Likewise.
19454 * modules/getgroups (Makefile.am): Likewise.
19455 * modules/gethostname (Makefile.am): Likewise.
19456 * modules/gethrxtime (Makefile.am): Likewise.
19457 * modules/getline (Makefile.am): Likewise.
19458 * modules/getloadavg (Makefile.am): Likewise.
19459 * modules/getlogin_r (Makefile.am): Likewise.
19460 * modules/getopt (Makefile.am): Likewise.
19461 * modules/getpass (Makefile.am): Likewise.
19462 * modules/getpass-gnu (Makefile.am): Likewise.
19463 * modules/getsubopt (Makefile.am): Likewise.
19464 * modules/gettime (Makefile.am): Likewise.
19465 * modules/gettimeofday (Makefile.am): Likewise.
19466 * modules/getugroups (Makefile.am): Likewise.
19467 * modules/getusershell (Makefile.am): Likewise.
19468 * modules/glob (Makefile.am): Likewise.
19469 * modules/group-member (Makefile.am): Likewise.
19470 * modules/hard-locale (Makefile.am): Likewise.
19471 * modules/hash (Makefile.am): Likewise.
19472 * modules/hmac-md5 (Makefile.am): Likewise.
19473 * modules/hmac-sha1 (Makefile.am): Likewise.
19474 * modules/human (Makefile.am): Likewise.
19475 * modules/idcache (Makefile.am): Likewise.
19476 * modules/imaxabs (Makefile.am): Likewise.
19477 * modules/imaxdiv (Makefile.am): Likewise.
19478 * modules/inet_ntop (Makefile.am): Likewise.
19479 * modules/inet_pton (Makefile.am): Likewise.
19480 * modules/inttostr (Makefile.am): Likewise.
19481 * modules/isapipe (Makefile.am): Likewise.
19482 * modules/lchown (Makefile.am): Likewise.
19483 * modules/long-options (Makefile.am): Likewise.
19484 * modules/lstat (Makefile.am): Likewise.
19485 * modules/malloc (Makefile.am): Likewise.
19486 * modules/mathl (Makefile.am): Likewise.
19487 * modules/mbchar (Makefile.am): Likewise.
19488 * modules/md2 (Makefile.am): Likewise.
19489 * modules/md4 (Makefile.am): Likewise.
19490 * modules/md5 (Makefile.am): Likewise.
19491 * modules/memcasecmp (Makefile.am): Likewise.
19492 * modules/memchr (Makefile.am): Likewise.
19493 * modules/memcmp (Makefile.am): Likewise.
19494 * modules/memcoll (Makefile.am): Likewise.
19495 * modules/memcpy (Makefile.am): Likewise.
19496 * modules/memmem (Makefile.am): Likewise.
19497 * modules/memmove (Makefile.am): Likewise.
19498 * modules/mempcpy (Makefile.am): Likewise.
19499 * modules/memrchr (Makefile.am): Likewise.
19500 * modules/memset (Makefile.am): Likewise.
19501 * modules/memxor (Makefile.am): Likewise.
19502 * modules/mkancesdirs (Makefile.am): Likewise.
19503 * modules/mkdir (Makefile.am): Likewise.
19504 * modules/mkdir-p (Makefile.am): Likewise.
19505 * modules/mkdtemp (Makefile.am): Likewise.
19506 * modules/mkstemp (Makefile.am): Likewise.
19507 * modules/mktime (Makefile.am): Likewise.
19508 * modules/modechange (Makefile.am): Likewise.
19509 * modules/mountlist (Makefile.am): Likewise.
19510 * modules/nanosleep (Makefile.am): Likewise.
19511 * modules/openat (Makefile.am): Likewise.
19512 * modules/pagealign_alloc (Makefile.am): Likewise.
19513 * modules/physmem (Makefile.am): Likewise.
19514 * modules/poll (Makefile.am): Likewise.
19515 * modules/posixtm (Makefile.am): Likewise.
19516 * modules/posixver (Makefile.am): Likewise.
19517 * modules/putenv (Makefile.am): Likewise.
19518 * modules/quote (Makefile.am): Likewise.
19519 * modules/quotearg (Makefile.am): Likewise.
19520 * modules/raise (Makefile.am): Likewise.
19521 * modules/read-file (Makefile.am): Likewise.
19522 * modules/readline (Makefile.am): Likewise.
19523 * modules/readlink (Makefile.am): Likewise.
19524 * modules/readtokens (Makefile.am): Likewise.
19525 * modules/readutmp (Makefile.am): Likewise.
19526 * modules/realloc (Makefile.am): Likewise.
19527 * modules/regex (Makefile.am): Likewise.
19528 * modules/rename (Makefile.am): Likewise.
19529 * modules/rename-dest-slash (Makefile.am): Likewise.
19530 * modules/rijndael (Makefile.am): Likewise.
19531 * modules/rmdir (Makefile.am): Likewise.
19532 * modules/rpmatch (Makefile.am): Likewise.
19533 * modules/safe-read (Makefile.am): Likewise.
19534 * modules/safe-write (Makefile.am): Likewise.
19535 * modules/same (Makefile.am): Likewise.
19536 * modules/save-cwd (Makefile.am): Likewise.
19537 * modules/savedir (Makefile.am): Likewise.
19538 * modules/setenv (Makefile.am): Likewise.
19539 * modules/settime (Makefile.am): Likewise.
19540 * modules/sha1 (Makefile.am): Likewise.
19541 * modules/sig2str (Makefile.am): Likewise.
19542 * modules/snprintf (Makefile.am): Likewise.
19543 * modules/stdlib-safer (Makefile.am): Likewise.
19544 * modules/stpcpy (Makefile.am): Likewise.
19545 * modules/stpncpy (Makefile.am): Likewise.
19546 * modules/strcase (Makefile.am): Likewise.
19547 * modules/strcasestr (Makefile.am): Likewise.
19548 * modules/strchrnul (Makefile.am): Likewise.
19549 * modules/strcspn (Makefile.am): Likewise.
19550 * modules/strdup (Makefile.am): Likewise.
19551 * modules/strerror (Makefile.am): Likewise.
19552 * modules/strftime (Makefile.am): Likewise.
19553 * modules/strndup (Makefile.am): Likewise.
19554 * modules/strnlen (Makefile.am): Likewise.
19555 * modules/strpbrk (Makefile.am): Likewise.
19556 * modules/strsep (Makefile.am): Likewise.
19557 * modules/strstr (Makefile.am): Likewise.
19558 * modules/strtod (Makefile.am): Likewise.
19559 * modules/strtoimax (Makefile.am): Likewise.
19560 * modules/strtok_r (Makefile.am): Likewise.
19561 * modules/strtol (Makefile.am): Likewise.
19562 * modules/strtoll (Makefile.am): Likewise.
19563 * modules/strtoul (Makefile.am): Likewise.
19564 * modules/strtoull (Makefile.am): Likewise.
19565 * modules/strtoumax (Makefile.am): Likewise.
19566 * modules/strverscmp (Makefile.am): Likewise.
19567 * modules/time_r (Makefile.am): Likewise.
19568 * modules/timegm (Makefile.am): Likewise.
19569 * modules/tmpfile-safer (Makefile.am): Likewise.
19570 * modules/unistd-safer (Makefile.am): Likewise.
19571 * modules/unlinkdir (Makefile.am): Likewise.
19572 * modules/userspec (Makefile.am): Likewise.
19573 * modules/utime (Makefile.am): Likewise.
19574 * modules/utimecmp (Makefile.am): Likewise.
19575 * modules/utimens (Makefile.am): Likewise.
19576 * modules/vasnprintf (Makefile.am): Likewise.
19577 * modules/vasprintf (Makefile.am): Likewise.
19578 * modules/vsnprintf (Makefile.am): Likewise.
19579 * modules/xalloc (Makefile.am): Likewise.
19580 * modules/xgetcwd (Makefile.am): Likewise.
19581 * modules/xnanosleep (Makefile.am): Likewise.
19582 * modules/xreadlink (Makefile.am): Likewise.
19583 * modules/xstrtod (Makefile.am): Likewise.
19584 * modules/xstrtol (Makefile.am): Likewise.
19585 * modules/xstrtold (Makefile.am): Likewise.
19586 * modules/yesno (Makefile.am): Likewise.
19588 2006-10-12 Jim Meyering <jim@meyering.net>
19590 * m4/getloadavg.m4: Revert the change below.
19592 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
19593 lib/getloadavg.c using "ls -L", not "test -f". The latter would
19594 fail with a symlink, which is what coreutils' ./bootstrap now
19595 creates by default.
19597 2006-10-12 Bruno Haible <bruno@clisp.org>
19599 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
19601 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
19602 MSVC and mingw explicitly.
19604 2006-10-11 Simon Josefsson <jas@extundo.com>
19605 Bruno Haible <bruno@clisp.org>
19607 Add support for multiple gnulib-tool invocations in the scope of a
19608 single configure.ac file.
19609 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
19610 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
19611 with the same contents as the _LIBADD variable.
19612 (func_emit_initmacro_start, func_emit_initmacro_end,
19613 func_emit_initmacro_done): New functions.
19614 (func_import, func_create_testdir): Invoke them. Allow the identifiers
19615 gl_LIBOBJS and gl_LTLIBOBJS.
19617 2006-10-11 Bruno Haible <bruno@clisp.org>
19619 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
19620 (func_create_testdir): Don't create po/Makefile.am, don't invoke
19621 autoreconf. Instead, invoke autopoint explicitly but move back the
19622 *.m4 files from gnulib.
19624 2006-10-11 Bruno Haible <bruno@clisp.org>
19626 * gnulib-tool (func_usage): Make module names after --create-testdir
19628 (func_create_testdir): If no module was specified, use nearly all
19631 2006-10-12 Jim Meyering <jim@meyering.net>
19633 Big performance improvement for fts-based tools that use FTS_NOSTAT.
19634 Avoid spurious inode-mismatch problems on non-POSIX file systems.
19635 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
19636 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
19637 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
19638 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
19639 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
19640 (fts_set_stat_required): New function.
19641 (fts_open): Defer the calls to fts_stat, if possible or requested.
19642 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
19643 into fts_stat itself.
19644 (fts_read): Perform any required (deferred) fts_stat call.
19645 (fts_build): Likewise, for the directory we're about to open and read.
19646 In the readdir loop, carefully decide whether each entry will require
19647 an eventual call to fts_stat, using dirent.d_type info if available.
19648 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
19649 a command line argument into this function. Update all callers.
19650 Map a return value of FTS_DOT to FTS_D for a command line argument.
19651 * modules/fts (Depends-on): Add d-type. Alphabetize.
19652 Thanks to Miklos Szeredi for his tenacity and for the initial
19653 bug report about "find" failing on a FUSE-based file system.
19655 * lib/fts.c (fts_open): Use consistent indentation.
19657 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
19659 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
19660 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
19661 reported by Jim Meyering. All uses of cache variables renamed
19662 to match Autoconf's.
19663 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
19666 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
19667 Fix misspelling in diagnostic.
19669 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
19671 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
19672 defined. Problem reported by Matthew Woehlke.
19674 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
19675 Add support for Tandem NonStop R series.
19676 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
19679 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
19680 (has_trailing_slash): Omit size arg; all callers changed.
19681 Omit 'inline', since it doesn't help performance and we'd
19682 need to configure it.
19683 Don't count //, ///, etc. as having a trailing slash.
19684 As a side effect, this removes a C99ism reported by Matthew Woehlke.
19685 (rpl_rename_dest_slash): On failure, use rename's errno rather
19686 than (in some cases) an incorrect or junk errno.
19687 Simplify code by removing need to compute length; this does
19688 cause it to make two passes instead of one over the file name,
19691 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
19692 change, since Autoconf's version may no longer be appropriate now
19693 that we are using CVS Autoconf's version. Add support for Tandem.
19695 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
19696 Bruno Haible <bruno@clisp.org>
19698 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
19699 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
19700 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
19701 gl_AC_TYPE_LONG_LONG.
19703 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
19704 instead of HAVE_LONG_LONG.
19705 * lib/printf-args.c (printf_fetchargs): Likewise.
19706 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19707 * lib/vasnprintf.c (VASNPRINTF): Likewise.
19708 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
19709 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
19710 gl_AC_TYPE_LONG_LONG.
19712 2006-10-11 Bruno Haible <bruno@clisp.org>
19714 * m4/longlong.m4: Add comments.
19715 * m4/ulonglong.m4: Likewise.
19717 2006-10-10 Bruno Haible <bruno@clisp.org>
19719 Make it possible to #define stpcpy, strdup to aliases.
19720 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
19721 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
19723 2006-10-10 Bruno Haible <bruno@clisp.org>
19725 Make it possible to #define gcd to an alias.
19726 * lib/gcd.c: Include config.h.
19728 2006-10-10 Bruno Haible <bruno@clisp.org>
19730 Make it possible to #define c_isascii to an alias.
19731 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
19732 defined. Undefine the macros before defining them, to avoid gcc
19734 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
19735 define NO_C_CTYPE_MACROS early.
19737 2006-10-10 Bruno Haible <bruno@clisp.org>
19739 Make it possible to #define set_program_name to an alias.
19740 * lib/progname.c: Don't undefine set_program_name; instead, undefine
19741 ENABLE_RELOCATABLE early.
19743 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
19745 Port to Tandem NSK OSS, which has 64-bit signed int but at most
19746 32-bit unsigned int. Problem reported by Matthew Woehlke in:
19747 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
19748 More generally, don't assume that 64-bit signed int is available
19749 if unsigned int is, and vice versa.
19750 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
19751 unsigned symbols, not on their signed counterparts.
19752 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
19753 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
19754 (UINT64_C, UINTMAX_C):
19756 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
19757 unsigned counterparts.
19758 (Have_long_long, Unsigned): New macros.
19759 (Int): Renamed from INT.
19760 (strtoimax): Use the new macros.
19761 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
19762 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
19763 * modules/inttypes (inttypes.h): Substitute
19764 HAVE_UNSIGNED_LONG_LONG_INT.
19765 * modules/stdint (stdint.h): Likewise.
19766 (Files): Add m4/ulonglong.m4.
19768 2006-10-10 Bruno Haible <bruno@clisp.org>
19770 Fix a gcc -Wshadow warning.
19771 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
19773 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
19774 gl_linked_indexof_from_to): Likewise.
19775 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
19777 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
19779 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
19780 Reported by Eric Blake.
19782 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
19784 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
19785 for NetBSD. Problem reported by Bruno Haible.
19787 2006-10-09 Jim Meyering <jim@meyering.net>
19789 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
19790 Patch from Bruno Haible.
19792 2006-10-09 Jim Meyering <jim@meyering.net>
19794 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
19795 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
19796 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
19798 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
19800 Don't include <config.h> twice; this doesn't work in some cases,
19801 e.g., when config.h has "#define intmax_t long long int" and
19802 we include <config.h>, <inttypes.h>, <config.h> in that order.
19803 Problem reported by Matthew Woehlke in:
19804 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
19805 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
19806 * lib/fts-cycle.c: Don't include config.h.
19807 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
19808 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
19809 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
19810 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
19812 * lib/xstrtoumax.c: Likewise.
19813 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
19814 __strtol and the like, so that this module is more like its siblings.
19815 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
19816 Remove; no longer needed now that we assume gnulib inttypes.h.
19818 2006-10-08 Bruno Haible <bruno@clisp.org>
19820 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
19823 2006-10-07 Jim Meyering <jim@meyering.net>
19825 * modules/inttypes (inttypes.h): Revert what seems to have been
19826 an inadvertent part of today's change: use "|", not "/" in the
19827 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
19829 2006-10-07 Bruno Haible <bruno@clisp.org>
19831 * modules/sublist: New file.
19833 2006-10-07 Bruno Haible <bruno@clisp.org>
19835 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
19836 * modules/argz (argz.h): Likewise.
19837 * modules/arpa_inet (arpa/inet.h): Likewise.
19838 * modules/byteswap (byteswap.h): Likewise.
19839 * modules/configmake (configmake.h): Likewise.
19840 * modules/fcntl (fcntl.h): Likewise.
19841 * modules/fnmatch (fnmatch.h): Likewise.
19842 * modules/getopt (getopt.h): Likewise.
19843 * modules/glob (glob.h): Likewise.
19844 * modules/inttypes (inttypes.h): Likewise.
19845 * modules/netinet_in (netinet/in.h): Likewise.
19846 * modules/poll (poll.h): Likewise.
19847 * modules/stdbool (stdbool.h): Likewise.
19848 * modules/stdint (stdint.h): Likewise.
19849 * modules/sys_select (sys/select.h): Likewise.
19850 * modules/sys_socket (sys/socket.h): Likewise.
19851 * modules/sys_stat (sys/stat.h): Likewise.
19852 * modules/sysexits (sysexits.h): Likewise.
19853 * modules/unistd (unistd.h): Likewise.
19854 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19855 Add a "DO NOT EDIT" comment to the generated file.
19856 (func_import): Likewise for gnulib-comp.m4.
19858 2006-10-07 Bruno Haible <bruno@clisp.org>
19860 * lib/gl_sublist.h: New file.
19861 * lib/gl_sublist.c: New file.
19863 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
19865 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
19866 name (relative to the original working directory) and the file
19867 name component (relative to the temporary working directory). All
19869 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
19870 * lib/mkdir-p.c (make_dir_parents): Likewise.
19871 * lib/mkdir-p.h (make_dir_parents): Likewise.
19873 2006-10-06 Eric Blake <ebb9@byu.net>
19875 Define several macros for use by the clean-temp module.
19876 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
19877 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
19878 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
19880 * lib/clean-temp.h (close_stream_temp): New declaration.
19881 * lib/clean-temp.c (includes): Pull in headers according to what
19882 other modules are in use.
19883 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
19885 2006-10-06 Bruno Haible <bruno@clisp.org>
19887 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
19888 instead of fopen, fwriteerror.
19890 2006-10-06 Bruno Haible <bruno@clisp.org>
19892 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
19893 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
19895 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
19896 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
19897 Return an error indicator.
19898 Suggested by Eric Blake.
19900 2006-10-06 Bruno Haible <bruno@clisp.org>
19902 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
19903 Reported by Eric Blake.
19905 2006-10-06 Bruno Haible <bruno@clisp.org>
19907 * modules/closeout (Description): Mention stderr too.
19909 2006-10-06 Bruno Haible <bruno@clisp.org>
19910 and Paul Eggert <eggert@cs.ucla.edu>
19912 * lib/closeout.c (close_stdout): Also close stderr.
19913 * lib/closeout.h: Update comment.
19915 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
19917 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
19918 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
19919 * lib/dirchownmod.c: Include lchown.h.
19920 * lib/lchown.c: Don't include files that lchown.h now includes.
19921 Don't declare chown, since lchown.h now does that.
19922 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
19923 (lchown): Define to rpl_chown if lchown is declared but
19924 does not exist. Declare using a prototype if lchown is not
19925 declared. Add a copyright notice.
19926 * lib/mkstemp.h: Include <unistd.h>.
19927 * lib/openat.c: Include lchown.h.
19929 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
19930 we now test for that separately.
19931 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
19932 rather than O_NOFOLLOW, when testing whether it's possible to
19933 avoid a race condition reliably.
19934 * lib/savewd.c (savewd_chdir): Likewise.
19936 Remove macros that are no longer needed now that stdint.h is
19938 * lib/fsusage.c (UINTMAX_MAX): Remove.
19939 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
19940 * lib/utimecmp.c (SIZE_MAX): Remove.
19942 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
19944 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
19945 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
19948 2006-10-05 Bruno Haible <bruno@clisp.org>
19950 * lib/gl_list.h (gl_sortedlist_search_from_to,
19951 gl_sortedlist_indexof_from_to): New declarations.
19952 (gl_list_implementation): New fields sortedlist_search_from_to,
19953 sortedlist_indexof_from_to.
19954 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
19956 * lib/gl_list.c (gl_sortedlist_search_from_to,
19957 gl_sortedlist_indexof_from_to): New functions.
19958 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
19960 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
19961 (gl_array_sortedlist_search_from_to): New function.
19962 (gl_array_list_implementation): Update.
19963 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
19965 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
19966 (gl_carray_sortedlist_search_from_to): New function.
19967 (gl_carray_list_implementation): Update.
19968 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
19969 gl_linked_sortedlist_indexof_from_to): New functions.
19970 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
19971 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
19972 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
19973 gl_tree_sortedlist_indexof_from_to): New functions.
19974 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
19975 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
19977 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
19978 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
19981 2006-10-05 Bruno Haible <bruno@clisp.org>
19983 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
19984 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
19985 (struct gl_list_implementation): Add fields search_from_to,
19986 indexof_from_to. Remove fields search, indexof.
19987 (gl_list_search): Use the search_from_to method.
19988 (gl_list_search_from, gl_list_search_from_to): New functions.
19989 (gl_list_indexof): Use the indexof_from_to method.
19990 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
19991 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
19992 (gl_list_search_from, gl_list_search_from_to): New functions.
19993 (gl_list_indexof): Use the indexof_from_to method.
19994 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
19995 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
19996 gl_array_indexof. Add start_index, end_index arguments.
19997 (gl_array_search_from_to): Renamed from gl_array_search. Add
19998 start_index, end_index arguments.
19999 (gl_array_remove, gl_array_list_implementation): Update.
20000 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20001 gl_carray_indexof. Add start_index, end_index arguments.
20002 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20003 start_index, end_index arguments.
20004 (gl_carray_remove, gl_carray_list_implementation): Update.
20005 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20006 gl_linked_search. Add start_index, end_index arguments.
20007 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20008 start_index, end_index arguments.
20009 (gl_linked_remove): Update.
20010 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20011 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20012 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20014 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20015 gl_tree_search. Add start_index, end_index arguments.
20016 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20017 start_index, end_index arguments.
20018 (gl_tree_remove): Update.
20019 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20020 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20021 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20023 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20024 gl_tree_search. Add start_index, end_index arguments.
20025 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20026 start_index, end_index arguments.
20027 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20029 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20031 2006-10-05 Bruno Haible <bruno@clisp.org>
20033 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20035 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20036 fwriteerror_temp): New declarations.
20037 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20038 (descriptors): New variable.
20039 (cleanup): First, close the descriptors.
20040 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20041 fclose_temp, fwriteerror_temp): New functions.
20043 2006-10-04 Jim Meyering <jim@meyering.net>
20045 * lib/fts.c (fts_open): Tiny comment change.
20047 2006-10-04 Bruno Haible <bruno@clisp.org>
20049 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20050 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20052 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20053 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20054 gl_LOCK_EARLY_BODY.
20055 (gl_LOCK): Require gl_LOCK_BODY.
20057 2006-10-04 Bruno Haible <bruno@clisp.org>
20059 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20060 (gl_oset_search_atleast): New declaration.
20061 (struct gl_oset_implementation): Add field 'search_atleast'.
20062 (gl_oset_search_atleast): New inline function.
20063 * lib/gl_oset.c (gl_oset_search_atleast): New function.
20064 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20065 (gl_array_oset_implementation): Update.
20066 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20067 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20068 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20070 2006-10-04 Bruno Haible <bruno@clisp.org>
20072 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20074 2006-10-03 Bruno Haible <bruno@clisp.org>
20076 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20077 from gl_avltreehash_list_implementation.
20079 2006-10-03 Bruno Haible <bruno@clisp.org>
20081 * lib/gl_oset.c (gl_oset_add): Fix return type.
20083 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
20085 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20087 2006-10-02 Eric Blake <ebb9@byu.net>
20089 * modules/strnlen (Depends-on): Add extensions.
20091 2006-10-02 Eric Blake <ebb9@byu.net>
20093 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20094 definition in 2.60+.
20096 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
20098 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
20101 2006-10-02 Bruno Haible <bruno@clisp.org>
20103 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
20104 to the AUTOMAKE_OPTIONS.
20105 Reported by Jim Meyering.
20107 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
20109 Work around bug in Solaris 10 /proc file system:
20110 /proc/self/fd/NNN/.. isn't the parent directory of
20111 the directory whose file descriptor is NNN. This needs to
20112 be worked around at run time, not compile time, since a
20113 program might be built on Solaris 8, where things work, and
20115 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
20116 to use the following interface instead:
20117 (OPENAT_BUFFER_SIZE): New macro.
20118 (openat_proc_name): New function.
20119 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
20120 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
20122 * lib/openat-proc.c: New file.
20123 * modules/openat (Files): Add lib/openat-proc.c.
20124 (Depends-on): Add same-inode, stdbool.
20125 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
20127 2006-09-29 Bruno Haible <bruno@clisp.org>
20129 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
20130 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
20131 argument. Set stdout_closed before testing for ferror, not after.
20132 (fwriteerror, fwriteerror_no_ebadf): New functions.
20134 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20136 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
20138 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
20140 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
20141 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
20143 2006-09-28 Jim Meyering <jim@meyering.net>
20145 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
20146 Include <unistd.h>.
20148 2006-09-28 Bruno Haible <bruno@clisp.org>
20150 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
20151 * modules/linkedhash-list (Depends-on): Likewise.
20152 * modules/rbtreehash-list (Depends-on): Likewise.
20154 2006-09-28 Bruno Haible <bruno@clisp.org>
20156 * lib/strndup.h: Simplify the redefinition of strndup.
20157 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
20158 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
20160 2006-09-28 Bruno Haible <bruno@clisp.org>
20162 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
20163 * lib/gl_linkedhash_list.c: Likewise.
20164 * lib/gl_rbtreehash_list.c: Likewise.
20166 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
20168 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
20171 * lib/__fpending.h: Don't include <stdio_ext.h> unless
20172 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
20173 it causes <stdio_ext.h> to cause a compile-time error.
20174 Problem reported by Nelson H. F. Beebe.
20175 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
20176 of HAVE_DECL___PENDING.
20178 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
20179 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
20182 2006-09-27 Jim Meyering <jim@meyering.net>
20184 This file could end up with a definition for a function
20185 named __strndup, rather than rpl_strndup on a system with
20186 incomplete weak_alias support.
20187 * lib/strndup.c (strndup): Rename from __strndup.
20188 Remove #defines that used to map __strndup to strndup.
20189 Don't use K&R prototypes.
20190 Remove LIBC-related code, since this file is not sync'd with glibc.
20191 * lib/strndup.h: Revamp, accordingly.
20192 * m4/strndup.m4: Modernize.
20194 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
20196 * modules/savewd (Depends-on): Add 'raise'.
20197 * lib/savewd.c: Include <signal.h>, for 'raise'.
20199 2006-09-26 Jim Meyering <jim@meyering.net>
20201 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
20202 when we detect Darwin 8.7.0's acl_get_file bug.
20203 Rearrange to perform the new (below) run-test while $LIBS
20204 contains any acl-related library. Set USE_ACL at the end.
20205 (gl_ACL_GET_FILE): New function.
20207 2006-09-26 Eric Blake <ebb9@byu.net>
20209 * lib/verror.c: Include <config.h> unconditionally.
20211 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
20213 * modules/clock-time (Maintainer): Add self.
20214 * modules/getlogin_r (Depends-on): Add extensions.
20216 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20218 * modules/clock-time: New module.
20219 * modules/nanosleep (Depends-on): Add clock-time.
20220 * modules/gethrxtime (Depends-on): Likewise.
20221 * modules/gettime (Depends-on): Likewise.
20222 * modules/settime (Depends-on): Likewise.
20224 * modules/fts-lgpl: Depend on openat.
20225 * modules/mkancesdirs: Depend on savewd.
20226 * modules/mkdir-p: Likewise.
20228 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20230 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
20232 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
20233 `gl_have_arbitrary_file_name_length_limit' to
20234 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
20235 actually works between configure runs.
20237 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20238 Bruno Haible <bruno@clisp.org>
20240 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
20242 2006-09-25 Jim Meyering <jim@meyering.net>
20244 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
20245 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
20247 2006-09-25 Eric Blake <ebb9@byu.net>
20249 * gnulib-tool (func_import, func_create_testdir): Fix typos in
20250 exec's in 2006-09-18 patch when shuffling fds.
20252 2006-09-25 Bruno Haible <bruno@clisp.org>
20254 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
20255 Reported by Jim Meyering.
20257 2006-09-24 Jim Meyering <jim@meyering.net>
20259 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
20260 compare a pointer against a literal "0". That caused failures with
20261 at least HP-UX's hpcc.
20263 2006-09-22 Simon Josefsson <jas@extundo.com>
20267 * modules/gc-hmac-sha1:
20268 * modules/gc-hmac-md5:
20270 * modules/gc-arcfour: Distribute more files.
20272 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20274 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
20275 (gl_linked_iterator_from_to): Initialize struct completely.
20276 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
20277 (gl_tree_iterator_from_to): Likewise
20278 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
20279 * lib/gl_array_list.c [lint] (gl_array_iterator)
20280 (gl_array_iterator_from_to): Likewise.
20281 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
20282 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
20283 (gl_carray_iterator_from_to): Likewise.
20285 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
20286 * lib/md4.c (md4_process_block): Remove unused variable.
20287 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
20288 parentheses for clarity.
20290 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20292 * modules/bison-i18n (Depends-on): Add gettext.
20294 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20296 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
20297 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20298 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
20299 also add missing comma that caused broken test.
20300 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
20301 stdlib.h, for `abort'.
20302 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
20304 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
20305 include unistd.h if present, for `rmdir'.
20306 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
20308 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
20309 in the process include standard headers for prototypes.
20310 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
20311 gets declared on GNU/Linux.
20312 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
20313 unistd.h, for `rmdir'.
20314 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
20316 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
20318 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
20320 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
20322 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20324 * gnulib-tool (func_version): Create output all at once. This
20325 may help avoid triggering unnecessary SIGPIPEs, and at any
20326 rate it doesn't hurt.
20328 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20329 Bruno Haible <bruno@clisp.org>
20331 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
20332 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20333 * m4/signed.m4 (bh_C_SIGNED): Likewise.
20335 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
20336 (gl_FUNC_VASPRINTF): Invoke it.
20338 2006-09-22 Bruno Haible <bruno@clisp.org>
20340 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
20341 getloadavg.c as first argument.
20343 2006-09-22 Bruno Haible <bruno@clisp.org>
20345 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
20346 at the beginning of the gl_INIT macro.
20347 * modules/getloadavg (configure.ac): Pass $gl_source_base to
20350 2006-09-22 Bruno Haible <bruno@clisp.org>
20352 * gnulib-tool (func_create_megatestdir): Don't include the config-h
20354 Suggested by Ralf Wildenhues.
20356 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
20358 Import this patch from libc:
20360 2006-09-06 Jakub Jelinek <jakub@redhat.com>
20362 * lib/regex_internal.c (re_string_reconstruct): Handle
20363 offset < pstr->valid_raw_len && pstr->offsets_needed case.
20364 Ensure no bytes read before raw_mbs array. Pass a saved copy of
20365 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
20366 re_string_context_at.
20368 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
20370 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
20371 gl_REGEX now does it for us.
20372 (gl_REGEX): Add test taken from
20373 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
20375 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
20376 Check that large offsets work. Modernize Autoconf usages.
20377 Prefer "yes" to mean a good thing rather than a bad.
20378 Don't put "#define mkstemp" in config.h, as this might interfere
20379 with standard system headers that "#define mkstemp mkstemp64".
20381 * modules/mkstemp (Depends-on): Add extensions, so that
20382 mkstemp is visible on some platforms.
20383 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
20384 (Include): Change to "mkstemp.h" from <stdlib.h>.
20385 (Files): Add mkstemp.h.
20387 * lib/mkstemp.h: New file, since some standard headers
20389 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
20390 Include "mkstemp.h".
20391 Make the _LIBC code resemble glibc original more,
20392 e.g., use K&R style.
20393 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
20394 (mkstemp): Remove, since mkstemp.h does this for us.
20395 * lib/stdlib--.h: Include mkstemp.h.
20397 Import this patch from libc:
20399 2006-04-07 Ulrich Drepper <drepper@redhat.com>
20401 * lib/tempname.c (__gen_tempname): Change attempts_min
20402 into a macro. Use preprocessor to decide how to initialize
20403 attempts [Coverity CID 67].
20405 2006-09-20 Bruno Haible <bruno@clisp.org>
20407 * lib/mkdtemp.c: Import from libc.
20408 2006-04-07 Ulrich Drepper <drepper@redhat.com>
20409 * sysdeps/posix/tempname.c (__gen_tempname): Change
20410 attempts_min into a macro. Use preprocessor to decide how to
20411 initialize attempts [Coverity CID 67].
20412 2001-11-27 Paul Eggert <eggert@twinsun.com>
20413 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
20414 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
20416 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20418 * gnulib-tool (func_exit): New function, to allow to pass the
20419 exit status portably through the trap. Use everywhere.
20420 (--help, --version): Signal a write error.
20421 (trap): catch SIGPIPE, for write errors.
20422 Exit at the end of the trap, with the correct exit status.
20424 2006-09-19 Karl Berry <karl@gnu.org>
20426 * doc/gnulib.texi: note about the license texinfo files.
20428 2006-09-19 Eric Blake <ebb9@byu.net>
20430 * gnulib-tool: Avoid space-tab.
20432 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
20434 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
20435 that prevented coreutils 6.1 from building. Problem reported
20436 by Petter Reinholdtsen.
20438 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
20440 * gnulib-tool (avoidlist): Fix typo that broke options like
20441 --avoid=lock that are used by coreutils bootstrap.
20443 2006-09-18 Mark D. Baushke <mdb@gnu.org>
20445 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
20446 more systematically.
20448 2006-09-18 Jim Meyering <jim@meyering.net>
20450 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
20452 2006-09-18 Bruno Haible <bruno@clisp.org>
20454 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
20456 2006-09-18 Bruno Haible <bruno@clisp.org>
20458 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
20459 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
20460 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
20461 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
20462 * m4/gettext.m4: Require autoconf >= 2.52.
20463 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
20464 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
20465 of gl_cv_header_inttypes_h.
20467 2006-09-18 Bruno Haible <bruno@clisp.org>
20469 * lib/javaversion.c: Include configmake.h.
20471 2006-09-18 Bruno Haible <bruno@clisp.org>
20473 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
20474 avoid that the while loops be executed in a subshell.
20476 2006-09-18 Bruno Haible <bruno@clisp.org>
20478 * MODULES.html.sh (func_module): Break long lines.
20479 Suggested by Bruce Korb <bkorb@gnu.org>.
20481 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20483 Speed up by a factor of 1.12.
20484 * gnulib-tool (nl): New variable.
20485 (func_import): Rewrite include directive extraction to only read each
20488 2006-09-17 Bruno Haible <bruno@clisp.org>
20490 * modules/javaversion (Makefile.am): Remove DEFS setting.
20491 (Depends-on): Add configmake, for PKGDATADIR definition.
20493 2006-09-17 Bruno Haible <bruno@clisp.org>
20495 * gnulib-tool (func_create_testdir): Rewrite all files at once.
20497 2006-09-17 Bruno Haible <bruno@clisp.org>
20499 * gnulib-tool (func_append): New function, stolen from libtool.m4.
20500 (func_modules_transitive_closure, func_modules_add_dummy,
20501 func_modules_to_filelist, func_import, func_create_testdir,
20502 func_create_megatestdir, ...): Use it wherever possible.
20503 Suggested by Ralf Wildenhues.
20505 2006-09-16 Karl Berry <karl@gnu.org>
20507 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
20508 to avoid sectioning errors.
20509 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
20510 [ifinfo]: blank line after @center-ed titles.
20511 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
20512 Spell FSF address consistently with others.
20513 (These changes approved by rms.)
20515 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20517 Speed up by a factor of 1.61.
20518 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
20519 already checked module names again.
20521 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20523 Speed up by a factor of 1.13.
20524 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
20525 for new_files, and the input to func_add_or_update.
20527 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20529 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
20530 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
20532 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
20534 * modules/mkancesdirs (Depends-on): Add fcntl.
20535 * modules/savewd: New file.
20536 * MODULES.html.sh (File system functions): Add savewd.
20538 * modules/configmake (Makefile.am): Add support for the
20539 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
20541 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
20543 * m4/savewd.m4: New file.
20545 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
20547 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
20548 (dirchownmod): New arg FD. All callers changed.
20549 Use FD rather than opening the directory ourself, as opening is
20550 now the caller's responsibility.
20551 * lib/dirchownmod.h: Likewise.
20552 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
20553 hosts that require <sys/types.h> before <sys/stat.h>. Include
20554 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
20555 (test_dir): Remove.
20556 (mkancesdirs): Return length of prefix of FILE that has already
20557 been made, or -2 if there is a child doing the work. Redo
20558 algorithm so that it is O(N) rather than O(N**2). Optimize away
20559 ".", and treat ".." specially since it might stray back into
20560 already-created areas. Use a subprocess if necessary. New arg
20561 WD; all users changed. MAKE_DIR function should now return 1
20562 if it creates a directory that is not readable. Return -2 if
20563 a child process is spun off.
20564 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
20565 Adjust signature to match code.
20566 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
20567 (make_dir_parents): Use a subprocess if necessary. New arg WD;
20569 * lib/savewd.c, lib/savewd.h: New files.
20571 2006-09-15 Jim Meyering <jim@meyering.net>
20573 * modules/rename-dest-slash: New module.
20574 * MODULES.html.sh (posix_compat): Add it here.
20576 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
20578 2006-09-15 Jim Meyering <jim@meyering.net>
20580 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
20583 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
20585 2006-09-15 Jim Meyering <jim@meyering.net>
20587 * lib/rename-dest-slash.c (has_trailing_slash): Use
20588 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
20589 (rpl_rename_dest_slash): Perform the cheaper trailing slash
20590 test before testing whether SRC is a directory.
20591 Suggestions from Bruno Haible.
20593 Avoid a warning about an unused variable.
20594 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
20595 into the #ifdef block where it's used.
20597 * lib/rename-dest-slash.c: New file.
20599 2006-09-14 Bruno Haible <bruno@clisp.org>
20601 * lib/allocsa.c: Include <config.h> unconditionally.
20602 * lib/asnprintf.c: Likewise.
20603 * lib/asprintf.c: Likewise.
20604 * lib/c-strcasecmp.c: Likewise.
20605 * lib/c-strcasestr.c: Likewise.
20606 * lib/c-strncasecmp.c: Likewise.
20607 * lib/c-strstr.c: Likewise.
20608 * lib/classpath.c: Likewise.
20609 * lib/clean-temp.c: Likewise.
20610 * lib/concatpath.c: Likewise.
20611 * lib/copy-file.c: Likewise.
20612 * lib/csharpcomp.c: Likewise.
20613 * lib/csharpexec.c: Likewise.
20614 * lib/execute.c: Likewise.
20615 * lib/fatal-signal.c: Likewise.
20616 * lib/findprog.c: Likewise.
20617 * lib/fwriteerror.c: Likewise.
20618 * lib/gl_array_list.c: Likewise.
20619 * lib/gl_array_oset.c: Likewise.
20620 * lib/gl_avltree_list.c: Likewise.
20621 * lib/gl_avltree_oset.c: Likewise.
20622 * lib/gl_avltreehash_list.c: Likewise.
20623 * lib/gl_carray_list.c: Likewise.
20624 * lib/gl_linked_list.c: Likewise.
20625 * lib/gl_linkedhash_list.c: Likewise.
20626 * lib/gl_list.c: Likewise.
20627 * lib/gl_oset.c: Likewise.
20628 * lib/gl_rbtree_list.c: Likewise.
20629 * lib/gl_rbtree_oset.c: Likewise.
20630 * lib/gl_rbtreehash_list.c: Likewise.
20631 * lib/imaxabs.c: Likewise.
20632 * lib/imaxdiv.c: Likewise.
20633 * lib/javacomp.c: Likewise.
20634 * lib/javaexec.c: Likewise.
20635 * lib/javaversion.c: Likewise.
20636 * lib/linebreak.c: Likewise.
20637 * lib/localcharset.c: Likewise.
20638 * lib/lock.c: Likewise.
20639 * lib/mbchar.c: Likewise.
20640 * lib/mbswidth.c: Likewise.
20641 * lib/mkdtemp.c: Likewise.
20642 * lib/pipe.c: Likewise.
20643 * lib/printf-args.c: Likewise.
20644 * lib/printf-parse.c: Likewise.
20645 * lib/progname.c: Likewise.
20646 * lib/progreloc.c: Likewise.
20647 * lib/readlink.c: Likewise.
20648 * lib/sh-quote.c: Likewise.
20649 * lib/stpcpy.c: Likewise.
20650 * lib/stpncpy.c: Likewise.
20651 * lib/strcasecmp.c: Likewise.
20652 * lib/strcasestr.c: Likewise.
20653 * lib/strcspn.c: Likewise.
20654 * lib/striconv.c: Likewise.
20655 * lib/strncasecmp.c: Likewise.
20656 * lib/strnlen1.c: Likewise.
20657 * lib/strstr.c: Likewise.
20658 * lib/strtok_r.c: Likewise.
20659 * lib/tls.c: Likewise.
20660 * lib/tmpdir.c: Likewise.
20661 * lib/unicodeio.c: Likewise.
20662 * lib/unsetenv.c: Likewise.
20663 * lib/vasnprintf.c: Likewise.
20664 * lib/vasprintf.c: Likewise.
20665 * lib/wait-process.c: Likewise.
20666 * lib/xallocsa.c: Likewise.
20667 * lib/xsetenv.c: Likewise.
20668 * lib/xstriconv.c: Likewise.
20670 2006-09-13 Simon Josefsson <jas@extundo.com>
20672 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
20673 that internally, suggested by Ralf Wildenhues
20674 <Ralf.Wildenhues@gmx.de>.
20676 2006-09-13 Simon Josefsson <jas@extundo.com>
20678 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
20680 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20682 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
20684 * lib/_fpending.c: Include <config.h> unconditionally, since we no
20685 longer worry about uses that don't define HAVE_CONFIG_H.
20686 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
20687 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
20688 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
20689 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
20690 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
20691 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
20692 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
20693 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
20694 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
20695 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
20696 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
20697 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
20698 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
20699 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
20700 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
20701 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
20702 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
20703 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
20704 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
20705 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
20706 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
20707 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
20708 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
20709 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
20710 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
20711 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
20712 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
20713 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
20714 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
20715 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
20716 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
20717 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
20718 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
20719 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
20720 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
20721 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
20722 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
20723 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
20724 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
20725 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
20726 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
20729 2006-09-13 Eric Blake <ebb9@byu.net>
20731 * lib/getopt.c: Fix typo in last commit.
20733 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
20735 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
20738 2006-09-12 Jim Meyering <jim@meyering.net>
20740 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
20741 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
20742 Reported by Nelson H. F. Beebe.
20744 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
20746 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
20747 program_invocation_name and program_invocation_short_name are
20749 * lib/argp-namefrob.h: Move declarations of program_invocation_name
20750 and program_invocation_short_name to argp.h, so they are visible
20752 * lib/argp.h: Likewise
20754 2006-09-10 Bruno Haible <bruno@clisp.org>
20756 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20757 m4/inttypes_h.m4, m4/uintmax_t.m4.
20759 2006-09-10 Bruno Haible <bruno@clisp.org>
20761 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
20762 gl_AC_TYPE_UINTMAX_T.
20764 2006-09-10 Bruno Haible <bruno@clisp.org>
20766 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
20768 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
20770 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
20771 convention. Text proposed by Bruno Haible.
20772 (struct argp_option): Document the use of N_() wrappers.
20774 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
20775 '\v', and translate the two parts separately, instead of feeding
20776 the whole string to gettext. This allows to exclude
20777 '\v' from the strings visible to the translator by writing doc
20778 strings as N_("..") "\v" N_("..").
20780 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
20782 * config/srclist.txt: Undo latest change; the bug was fixed.
20784 2006-09-09 Bruno Haible <bruno@clisp.org>
20786 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
20787 assignments if building a library without libtool.
20788 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
20789 in func_emit_lib_Makefile_am.
20790 (func_import): When building a static library libfoo.a, arrange to
20791 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
20792 (func_create_testdir): Likewise.
20793 * modules/gc (configure.ac, Makefile.am): If building statically,
20794 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
20795 * modules/iconvme (configure.ac, Makefile.am): Likewise.
20796 * modules/striconv (configure.ac, Makefile.am): Likewise.
20797 Based on a suggestion by Ralf Wildenhues.
20799 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
20801 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
20802 Check for unistd.h too, since Autoconf doesn't assume POSIX.
20805 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
20806 Add year_2050_test to catch glibc bug 2821
20807 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
20809 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
20810 Prefer #ifdef to #if.
20812 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
20813 Return from 'main' instead of calling 'exit'.
20815 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
20817 * lib/mktime.c (guess_time_tm): Fix bug where mktime
20818 returned the maximum time_t value rather than (time_t) -1.
20819 Problem originally reported by William Bardwell
20820 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
20822 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
20824 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
20827 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
20829 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
20832 2006-09-08 Jim Meyering <jim@meyering.net>
20834 Don't make generated files read-only. That would bother too many
20835 people. However, do retain the ability to work when targets are
20836 read-only: remove the destination and temporary files before writing
20837 them (when generated via sed or echo), or by using the -f option for
20838 both cp and mv commands. Suggestion to use -f from Paul Eggert.
20839 * modules/alloca-opt, modules/argz, modules/arpa_inet:
20840 * modules/byteswap, modules/configmake, modules/fcntl:
20841 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
20842 * modules/localcharset, modules/netinet_in, modules/poll:
20843 * modules/stdbool, modules/stdint, modules/sys_select:
20844 * modules/sys_socket, modules/sys_stat, modules/sysexits:
20846 2006-09-08 Jim Meyering <jim@meyering.net>
20848 Avoid new build failure on FreeBSD 6.0.
20849 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
20850 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
20851 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
20853 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20855 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
20857 2006-09-07 Jim Meyering <jim@meyering.net>
20859 Fix global typo in last change: use chmod u-w, not chmod u-x.
20860 Spotted by Paul Eggert and Bruce Korb.
20861 * modules/alloca-opt, modules/argz, modules/arpa_inet:
20862 * modules/byteswap, modules/configmake, modules/fcntl:
20863 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
20864 * modules/localcharset, modules/netinet_in, modules/poll:
20865 * modules/stdbool, modules/stdint, modules/sys_select:
20866 * modules/sys_socket, modules/sys_stat, modules/sysexits:
20868 2006-09-06 Jim Meyering <jim@meyering.net>
20870 Make generated files be read-only.
20871 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
20872 Ensure that each generated file is now read-only.
20873 * modules/argz: Likewise.
20874 * modules/arpa_inet: Likewise.
20875 * modules/byteswap: Likewise.
20876 * modules/configmake: Likewise.
20877 * modules/fcntl: Likewise.
20878 * modules/fnmatch: Likewise.
20879 * modules/getopt: Likewise.
20880 * modules/glob: Likewise.
20881 * modules/inttypes: Likewise.
20882 * modules/netinet_in: Likewise.
20883 * modules/poll: Likewise.
20884 * modules/stdbool: Likewise.
20885 * modules/stdint: Likewise.
20886 * modules/sys_select: Likewise.
20887 * modules/sys_socket: Likewise.
20888 * modules/sys_stat: Likewise.
20889 * modules/sysexits: Likewise.
20890 * modules/localcharset: Same as above, but continue using temporary
20891 file named "t-$@" (why different?) rather than the "$@-t" used
20894 * modules/sysexits (Makefile.am): Replace literal occurrences
20895 of "sysexit.h" more readable, and more consistent, "$@".
20897 2006-09-06 Bruno Haible <bruno@clisp.org>
20899 * modules/striconv: New file.
20900 * modules/xstriconv: New file.
20901 * MODULES.html.sh (Internationalization functions): Add striconv,
20904 2006-09-06 Bruno Haible <bruno@clisp.org>
20906 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
20907 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
20908 not using libtool correctly.
20910 2006-09-06 Bruno Haible <bruno@clisp.org>
20912 * lib/striconv.h: New file.
20913 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
20915 * lib/xstriconv.h: New file.
20916 * lib/xstriconv.c: New file.
20918 2006-09-06 Bruno Haible <bruno@clisp.org>
20920 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20923 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20925 * lib/argz_.h: Sync from Libtool.
20927 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
20928 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20930 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
20932 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
20934 * modules/trim: New file.
20936 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
20938 * lib/trim.h: New file.
20939 * lib/trim.c: New file.
20941 2006-09-05 Bruno Haible <bruno@clisp.org>
20943 * MODULES.html.sh (String handling): Add trim.
20945 2006-09-04 Karl Berry <karl@gnu.org>
20947 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
20948 until next release.
20950 2006-09-03 Bruno Haible <bruno@clisp.org>
20952 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
20955 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
20957 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
20958 not gl_GETLOADAVG. Omit unneeded semicolons.
20959 Problems reported by Ralf Wildenhues in
20960 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
20961 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
20962 at the end, which is the usual gnulib style.
20964 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
20965 of doing all the work ourselves.
20966 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
20967 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
20969 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
20971 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
20972 Problem reported by Ralf Wildenhues in
20973 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
20975 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
20976 HAVE_STRUCT_STATFS_F_FSTYPENAME.
20978 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
20980 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
20981 yesterday's patch by changing test -n to test -z.
20983 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
20985 * modules/getloadavg (Files): Add m4/getloadavg.m4.
20986 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
20987 the former is now obsolescent.
20989 * modules/chdir-long (Depends-on): Add fcntl.
20991 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
20993 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
20994 obsolescent, and programs should use gnulib instead.
20995 * m4/getloadavg.m4: New file, with contents taken from Autoconf
20996 but with prefixes changed.
20998 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
21000 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21001 or stdbool.h, because they might not exist while configuring.
21003 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21004 Don't include unistd.h or limits.h; not needed, since chdir-long.h
21006 (O_DIRECTORY): Remove.
21008 2006-08-31 Eric Blake <ebb9@byu.net>
21010 * gnulib-tool: Don't let emacs change spaces to TAB.
21012 2006-08-31 Bruno Haible <bruno@clisp.org>
21014 * gnulib-tool: When calling func_import more than once, do it in a
21016 Reported by Eric Blake <ebb9@byu.net>.
21018 2006-08-31 Bruno Haible <bruno@clisp.org>
21020 * gnulib-tool (nl): Remove variable.
21021 (sed_transform_lib_file): Use more robust test for config-h module.
21022 (func_import): Fix typo in 2006-08-25 patch.
21024 2006-08-31 Bruno Haible <bruno@clisp.org>
21026 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21027 specified, augment Makefile.am variables instead of assigning them.
21029 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
21031 Work around a bug in both the Linux and SunOS 64-bit kernels:
21032 nanosleep mishandles sleeps for longer than 2**31 seconds.
21033 Problem reported by Frank v Waveren in
21034 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21035 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21036 Check for nanosleep bug.
21037 (LIB_NANOSLEEP): Append clock_gettime library if needed.
21039 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
21041 Work around a bug in both the Linux and SunOS 64-bit kernels:
21042 nanosleep mishandles sleeps for longer than 2**31 seconds.
21043 Problem reported by Frank v Waveren in
21044 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21045 * lib/nanosleep.c (BILLION): New constant.
21046 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21047 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21050 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
21052 * modules/nanosleep (Depends-on): Add gettime.
21054 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
21055 and Simon Josefsson <jas@extundo.com>
21056 and Oskar Liljeblad <oskar@osk.mine.nu>
21058 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21059 * gnulib-tool (func_import): New license type 'unmodifiable license
21061 * modules/fdl: Use it. Longer description.
21062 * module/gpl, module/lgpl: New files.
21064 2006-08-30 Jim Meyering <jim@meyering.net>
21066 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21067 shadowing the parameter.
21069 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21073 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21075 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21076 sharing with gnulib. Report by Eric Blake.
21078 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
21080 * modules/isapipe: New file.
21081 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21083 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
21085 * modules/configmake (Makefile.am): Add a comment, and omit
21086 the CONFIGMAKE_ prefix from generated macro names. Suggested
21089 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
21091 * m4/isapipe.m4: New file.
21093 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
21095 * lib/isapipe.c, lib/isapipe.h: New files.
21097 2006-08-29 Jim Meyering <jim@meyering.net>
21099 * modules/configmake (Makefile.am): Make configmake.h depend on
21100 Makefile. Otherwise, a stale configmake.h could hang around.
21102 2006-08-29 Eric Blake <ebb9@byu.net>
21104 * lib/error.c (error_at_line, print_errno_message): Match libc, after
21105 resolution of upstream bug 3044.
21107 2006-08-29 Bruno Haible <bruno@clisp.org>
21109 * modules/localcharset (Depends-on): Add configmake.
21110 (Makefile.am): Remove setting of LIBDIR through DEFS.
21112 2006-08-29 Bruno Haible <bruno@clisp.org>
21114 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
21117 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
21119 * modules/fcntl: New file.
21120 * modules/chdir-safer (Depends-on): Add fcntl.
21121 * modules/fts: Likewise.
21122 * modules/mkdir-p: Likewise.
21124 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
21125 This undoes the most recent change, since we're now addressing the
21126 problem in a different way.
21128 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
21129 into output, since the output might be called Makefile.am even
21130 if $makefile_name is something different.
21131 (func_import): Use $makefile_am rather than
21132 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
21135 * modules/inttypes (Files): Add m4/inttypes-h.m4.
21137 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
21139 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
21140 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
21141 recent change to stdint.m4, since we're now addressing the problem in a
21144 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
21146 * m4/fcntl_h.m4: New file.
21148 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
21150 * lib/fcntl_.h: New file.
21151 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
21153 * lib/dirchownmod.c: Likewise.
21154 * lib/fts.c: Likewise.
21156 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
21157 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
21158 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
21159 just before including <inttypes.h>, to avoid circular inclusion.
21161 2006-08-28 Jim Meyering <jim@meyering.net>
21163 * doc/visibility.texi: Actually read and correct the grammar of the
21164 sentence affected by yesterday's change.
21166 2006-08-28 Eric Blake <ebb9@byu.net>
21168 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
21171 2006-08-28 Eric Blake <ebb9@byu.net>
21173 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
21175 2006-08-28 Eric Blake <ebb9@byu.net>
21177 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
21179 2006-08-28 Bruno Haible <bruno@clisp.org>
21181 * modules/c-strstr: New file, from GNU gettext.
21182 * MODULES.html.sh (String handling): Add c-strstr.
21184 2006-08-28 Bruno Haible <bruno@clisp.org>
21186 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
21188 Reported by Eric Blake.
21190 2006-08-28 Bruno Haible <bruno@clisp.org>
21192 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
21193 (VASNPRINTF): Return a string of length > INT_MAX without failing.
21194 * lib/vasprintf.c: Include errno.h, limits.h.
21195 (EOVERFLOW): New fallback definition.
21196 (vasprintf): Test here whether the string length is > INT_MAX.
21197 * lib/vsnprintf.c: Include errno.h, limits.h.
21198 (EOVERFLOW): New fallback definition.
21199 (vsnprintf): Fix bug when generated string was too long for the buffer.
21200 Test here whether the string length is > INT_MAX.
21202 2006-08-28 Bruno Haible <bruno@clisp.org>
21204 * lib/inttypes_.h (SCNX*): Remove definitions.
21205 Reported by Eric Blake.
21207 2006-08-28 Bruno Haible <bruno@clisp.org>
21209 * lib/c-strstr.h: New file, from GNU gettext.
21210 * lib/c-strstr.c: New file, from GNU gettext.
21212 2006-08-28 Bruno Haible <bruno@clisp.org>
21214 * gnulib-tool: Reorder some statements.
21216 2006-08-28 Bruno Haible <bruno@clisp.org>
21218 * gnulib-tool: New option --makefile-name.
21219 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
21221 (func_import): Write $makefile_name to the cache file, and read it from
21222 there unless explicitly specified. Use $makefile_name as file name
21223 instead of Makefile.am. Adjust the recommendations accordingly.
21225 2006-08-28 Bruno Haible <bruno@clisp.org>
21227 * gnulib-tool (func_verify_module): Check against misapplying patch.
21229 2006-08-28 Bruno Haible <bruno@clisp.org>
21231 * gnulib-tool (func_relativize, func_relconcat): New functions.
21232 Give an error if --local-dir is given with --update.
21233 Remove trailing slashes from $local_gnulib_dir.
21234 (func_import): Store the relativized $local_gnulib_dir in
21235 gnulib-cache.m4, and read it from there if not specified explicitly.
21237 2006-08-28 Bruno Haible <bruno@clisp.org>
21239 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
21240 is the current directory. Respect also $local_gnulib_dir.
21242 2006-08-28 Bruno Haible <bruno@clisp.org>
21243 Simon Josefsson <jas@extundo.com>
21246 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
21248 2006-08-27 Jim Meyering <jim@meyering.net>
21250 * doc/visibility.texi: Remove duplicate word: "pointer".
21252 2006-08-26 Bruno Haible <bruno@clisp.org>
21254 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
21255 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
21256 (Makefile.am): Create inttypes.h from inttypes_.h.
21257 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
21259 * modules/imaxabs: New file.
21261 * modules/imaxdiv: New file.
21263 2006-08-26 Bruno Haible <bruno@clisp.org>
21265 * m4/inttypes.m4: New file.
21266 * m4/_inttypes_h.m4: Remove file.
21267 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
21269 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
21271 * m4/imaxabs.m4: New file.
21273 * m4/imaxdiv.m4: New file.
21275 2006-08-26 Bruno Haible <bruno@clisp.org>
21277 * lib/inttypes_.h: New file.
21278 * lib/inttypes.h: Remove file.
21279 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
21281 * lib/imaxabs.c: New file.
21283 * lib/imaxdiv.c: New file.
21285 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
21287 New config-h module, so that "make" output needn't be cluttered
21288 by -DHAVE_CONFIG_H.
21289 * MODULES.html.sh (Support for building libraries and executables):
21291 * modules/config-h: New file.
21292 * gnulib-tool (nl, sed_transform_lib_file): New vars.
21293 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
21294 the config-h module is used.
21296 New configmake module, so that "make" output needn't be cluttered
21297 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
21298 * MODULES.html.sh (Support for building libraries and executables):
21300 * modules/configmake: New file.
21302 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
21304 * m4/config-h.m4: New file.
21306 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
21308 * config/srclist.txt: Add elisp-comp.
21310 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
21312 * MODULES.html.sh (Support for building libraries and executables):
21314 * build-aux/elisp-comp: New file.
21315 * modules/elisp-comp: New file.
21317 2006-08-24 Bruno Haible <bruno@clisp.org>
21319 * gnulib-tool (func_create_testdir): Use non-default values of
21320 sourcebase and m4base.
21322 2006-08-24 Bruno Haible <bruno@clisp.org>
21324 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
21327 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
21329 * modules/openat (Depends-on): Add lchown.
21331 2006-08-23 Bruno Haible <bruno@clisp.org>
21333 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
21334 of gl_LOCK_EARLY instead of gl_LOCK.
21336 2006-08-23 Bruno Haible <bruno@clisp.org>
21338 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
21340 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
21342 2006-08-23 Bruno Haible <bruno@clisp.org>
21344 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
21347 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
21348 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
21349 (gl_LOCK): New macro.
21351 2006-08-22 Simon Josefsson <jas@extundo.com>
21353 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
21356 2006-08-22 Simon Josefsson <jas@extundo.com>
21358 * MODULES.html.sh: Add "Support for maintaining and release
21361 * build-aux/gnupload: New file, from coreutils.
21363 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
21365 Avoid the need for AC_LIBSOURCES in m4 macros.
21366 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
21367 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
21368 * modules/check-version (EXTRA_DIST): Add check-version.h.
21369 * modules/crc (EXTRA_DIST): Add crc.h.
21370 * modules/des (EXTRA_DIST): Add des.h.
21371 * modules/gc (EXTRA_DIST): Add gc.h.
21372 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
21373 * modules/getline (EXTRA_DIST): Add getline.h.
21374 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
21375 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
21376 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
21377 * modules/md2 (EXTRA_DIST): Add md2.h.
21378 * modules/md4 (EXTRA_DIST): Add md4.h.
21379 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
21380 * modules/read-file (EXTRA_DIST): Add read-file.h.
21381 * modules/readline (EXTRA_DIST): Add readline.h.
21382 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
21383 rijndael-api-fst.h.
21385 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
21387 * m4/rijndael.m4 (gl_ARCFOUR):
21388 * m4/arctwo.m4 (gl_ARCTWO):
21389 * m4/check-version.m4 (gl_CHECK_VERSION):
21390 * m4/crc.m4 (gl_CRC):
21391 * m4/des.m4 (gl_DES):
21392 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
21393 * m4/gc.m4 (gl_GC):
21394 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
21395 * m4/getline.m4 (gl_FUNC_GETLINE):
21396 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
21397 * m4/hmac-md5.m4 (gl_HMAC_MD5):
21398 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
21399 * m4/md2.m4 (gl_MD2):
21400 * m4/md4.m4 (gl_MD4):
21401 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
21402 * m4/read-file.m4 (gl_FUNC_READ_FILE):
21403 * m4/readline.m4 (gl_FUNC_READLINE):
21404 * m4/rijndael.m4 (gl_RIJNDAEL):
21405 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
21406 to get the necessary .h files and whatnot.
21408 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
21410 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
21411 gnulib rather than the other way around.
21412 * config/srclistvars.sh (COREUTILS): Remove.
21414 2006-08-22 Jim Meyering <jim@meyering.net>
21416 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
21418 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
21420 2006-08-22 Eric Blake <ebb9@byu.net>
21422 * modules/regexprops-generic: New file.
21423 * MODULES.html.sh (Support for building documentation): List it.
21425 2006-08-22 Eric Blake <ebb9@byu.net>
21427 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
21428 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21429 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
21430 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21432 2006-08-22 Bruno Haible <bruno@clisp.org>
21434 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
21435 and lib_LTLIBRARIES like the other lib_* variables.
21437 2006-08-22 Bruno Haible <bruno@clisp.org>
21439 * build-aux/x-to-1.in: New file, from GNU gettext.
21441 2006-08-22 Bruno Haible <bruno@clisp.org>
21443 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
21446 2006-08-22 Bruno Haible <bruno@clisp.org>
21448 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
21451 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
21454 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
21456 Problem reported by Bruno Haible.
21458 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
21460 Avoid the need for AC_LIBSOURCES in m4 macros.
21461 * modules/acl (EXTRA_DIST): Add acl.h.
21462 * modules/argmatch (Files): Add m4/argmatch.m4.
21463 (configure.ac): Add gl_ARGMATCH.
21464 (EXTRA_DIST): Renamed from lib_SOURCES, for
21465 consistency with the other modules. Remove argmatch.c.
21466 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
21467 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
21468 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
21469 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
21470 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
21471 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
21472 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
21473 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
21474 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
21475 * modules/closeout (EXTRA_DIST): Add closeout.h.
21476 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
21477 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
21478 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
21479 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
21480 dirname.h; remove basename.c and stripslash.c.
21481 * modules/exclude (EXTRA_DIST): Add exclude.h.
21482 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
21483 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
21484 * modules/file-type (EXTRA_DIST): Add file-type.h.
21485 * modules/filemode (EXTRA_DIST): Add filemode.h.
21486 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
21487 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
21488 * modules/fpending (EXTRA_DIST): Add __fpending.h.
21489 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
21490 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
21491 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
21492 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
21493 * modules/getdate (EXTRA_DIST): Add getdate.c.
21494 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
21495 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
21496 * modules/getpass (EXTRA_DIST): Add getpass.h.
21497 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
21498 * modules/group-member (EXTRA_DIST): Add group-member.h.
21499 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
21500 * modules/hash (EXTRA_DIST): Add hash.h.
21501 * modules/human (EXTRA_DIST): Add human.h.
21502 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
21503 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
21504 * modules/lchown (EXTRA_DIST): Add lchown.h.
21505 * modules/long-options (EXTRA_DIST): Add long-options.h.
21506 * modules/lstat (EXTRA_DIST): Add lstat.h.
21507 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
21508 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
21509 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
21510 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
21511 * modules/memxor (EXTRA_DIST): Add memxor.h.
21512 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
21513 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
21514 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
21515 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
21516 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
21517 * modules/physmem (EXTRA_DIST): Add physmem.h.
21518 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
21519 * modules/posixver (EXTRA_DIST): Add posixver.h.
21520 * modules/quote (EXTRA_DIST): Add quote.h.
21521 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
21522 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
21523 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
21524 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
21525 regex_internal.h regexec.c.
21526 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
21527 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
21528 * modules/same (EXTRA_DIST): Add same.h.
21529 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
21530 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
21531 * modules/savedir (EXTRA_DIST): Add savedir.h.
21532 * modules/sha1 (EXTRA_DIST): Add sha1.h.
21533 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
21534 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
21535 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
21536 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
21537 * modules/strdup (EXTRA_DIST): Add strdup.h.
21538 * modules/strftime (EXTRA_DIST): Add strftime.h.
21539 * modules/strndup (EXTRA_DIST): Add strndup.h.
21540 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
21541 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
21542 * modules/time_r (EXTRA_DIST): Add time_r.h.
21543 * modules/timespec (EXTRA_DIST): Add timespec.h.
21544 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
21545 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
21546 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
21547 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
21548 * modules/userspec (EXTRA_DIST): Add userspec.h.
21549 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
21550 * modules/utimens (EXTRA_DIST): Add utimens.h.
21551 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
21552 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
21553 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
21554 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
21555 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
21556 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
21557 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
21558 * modules/yesno (EXTRA_DIST): Add yesno.h.
21560 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
21562 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
21564 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
21565 * m4/dev-ino.m4, same-inode.m4: Remove.
21567 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
21568 * m4/acl.m4 (AC_FUNC_ACL):
21569 * m4/backupfile.m4 (gl_BACKUPFILE):
21570 * m4/c-strtod.m4 (gl_C99_STRTOLD):
21571 * m4/canon-host.m4 (gl_CANON_HOST):
21572 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
21573 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
21574 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
21575 * m4/cloexec.m4 (gl_CLOEXEC):
21576 * m4/close-stream.m4 (gl_CLOSE_STREAM):
21577 * m4/closeout.m4 (gl_CLOSEOUT):
21578 * m4/dirfd.m4 (gl_FUNC_DIRFD):
21579 * m4/dirname.m4 (gl_DIRNAME):
21580 * m4/exclude.m4 (gl_EXCLUDE):
21581 * m4/exitfail.m4 (gl_EXITFAIL):
21582 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
21583 * m4/file-type.m4 (gl_FILE_TYPE):
21584 * m4/filemode.m4 (gl_FILEMODE):
21585 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
21586 * m4/fpending.m4 (gl_FUNC_FPENDING):
21587 * m4/fprintftime.m4 (gl_FPRINTFTIME):
21588 * m4/fts.m4 (gl_FUNC_FTS):
21589 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
21590 * m4/getdate.m4 (gl_GETDATE):
21591 * m4/gethrxtime.m4 (gl_GETHRXTIME):
21592 * m4/getpagesize.m4 (gl_GETPAGESIZE):
21593 * m4/getpass.m4 (gl_FUNC_GETPASS):
21594 * m4/gettime.m4 (gl_GETTIME):
21595 * m4/getugroups.m4 (gl_GETUGROUPS):
21596 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
21597 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
21598 * m4/hard-locale.m4 (gl_HARD_LOCALE):
21599 * m4/hash.m4 (gl_HASH):
21600 * m4/idcache.m4 (gl_IDCACHE):
21601 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
21602 * m4/lchown.m4 (gl_FUNC_LCHOWN):
21603 * m4/long-options.m4 (gl_LONG_OPTIONS):
21604 * m4/lstat.m4 (gl_FUNC_LSTAT):
21605 * m4/md5.m4 (gl_MD5):
21606 * m4/memcasecmp.m4 (gl_MEMCASECMP):
21607 * m4/memcoll.m4 (gl_MEMCOLL):
21608 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
21609 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
21610 * m4/memxor.m4 (gl_MEMXOR):
21611 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
21612 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
21613 * m4/modechange.m4 (gl_MODECHANGE):
21614 * m4/mountlist.m4 (gl_MOUNTLIST):
21615 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
21616 * m4/openat.m4 (gl_FUNC_OPENAT):
21617 * m4/pathmax.m4 (gl_PATHMAX):
21618 * m4/physmem.m4 (gl_PHYSMEM):
21619 * m4/posixtm.m4 (gl_POSIXTM):
21620 * m4/posixver.m4 (gl_POSIXVER):
21621 * m4/quote.m4 (gl_QUOTE):
21622 * m4/quotearg.m4 (gl_QUOTEARG):
21623 * m4/readtokens.m4 (gl_READTOKENS):
21624 * m4/readutmp.m4 (gl_READUTMP):
21625 * m4/regex.m4 (gl_REGEX):
21626 * m4/safe-read.m4 (gl_SAFE_READ):
21627 * m4/safe-write.m4 (gl_SAFE_WRITE):
21628 * m4/same.m4 (gl_SAME):
21629 * m4/save-cwd.m4 (gl_SAVE_CWD):
21630 * m4/savedir.m4 (gl_SAVEDIR):
21631 * m4/settime.m4 (gl_SETTIME):
21632 * m4/sha1.m4 (gl_SHA1):
21633 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
21634 * m4/stat-macros.m4 (gl_STAT_MACROS):
21635 * m4/stat-time.m4 (gl_STAT_TIME):
21636 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
21637 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
21638 * m4/strdup.m4 (gl_FUNC_STRDUP):
21639 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
21640 * m4/strndup.m4 (gl_FUNC_STRNDUP):
21641 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
21642 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
21643 * m4/time_r.m4 (gl_TIME_R):
21644 * m4/timespec.m4 (gl_TIMESPEC):
21645 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
21646 * m4/unlinkdir.m4 (gl_UNLINKDIR):
21647 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
21648 * m4/userspec.m4 (gl_USERSPEC):
21649 * m4/utimecmp.m4 (gl_UTIMECMP):
21650 * m4/utimens.m4 (gl_UTIMENS):
21651 * m4/xalloc.m4 (gl_XALLOC):
21652 * m4/xgetcwd.m4 (gl_XGETCWD):
21653 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
21654 * m4/xreadlink.m4 (gl_XREADLINK):
21655 * m4/xstrtod.m4 (gl_XSTRTOD):
21656 * m4/yesno.m4 (gl_YESNO):
21657 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
21658 to get the necessary .h files and whatnot.
21660 2006-08-21 Mark D. Baushke <mdb@gnu.org>
21661 Bruno Haible <bruno@clisp.org>
21663 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
21664 /bin/sh understanding of '!' conditional negation.
21666 2006-08-21 Jim Meyering <jim@meyering.net>
21668 * modules/openat (Depends-on): Really alphabetize.
21670 * modules/acl (Depends-on): Add error and quote.
21672 * check-module (find_included_lib_files): Add at-func.c to the
21673 ok-to-include-more-than-once white list.
21675 * modules/openat (Depends-on): Add lstat. Alphabetize.
21677 2006-08-21 Bruno Haible <bruno@clisp.org>
21679 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21680 Emit a pkgdata_DATA variable only if some snippets add contents to it.
21681 Reported by Martin Lambers <marlam@marlam.de>.
21683 2006-08-21 Bruno Haible <bruno@clisp.org>
21685 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
21686 specify an installation location, don't emit a noinst_LIBRARIES or
21687 noinst_LTLIBRARIES assignment.
21689 2006-08-21 Bruno Haible <bruno@clisp.org>
21692 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
21693 BeOS has mbrtowc() but no <wctype.h>.
21695 2006-08-21 Bruno Haible <bruno@clisp.org>
21698 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
21701 2006-08-21 Bruno Haible <bruno@clisp.org>
21704 * lib/mbchar.h: Include <wctype.h> only if it exists.
21706 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
21708 Remove files that are no longer needed by their respective modules.
21709 * m4/obstack.m4: Remove.
21710 * m4/strerror_r.m4: Remove.
21711 * m4/uint32_t.m4: Remove.
21712 * m4/uintptr_t.m4: Remove.
21713 * m4/ullong_max.m4: Remove.
21714 * m4/xstrtoimax.m4: Remove.
21715 * m4/xstrtoumax.m4: Remove.
21717 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
21718 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
21719 dependencies now capture this.
21721 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
21722 Do not use AC_LIBSOURCES, since gnulib modules now do this.
21723 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
21724 * m4/human.m4 (gl_HUMAN): Likewise.
21725 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
21726 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
21728 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
21730 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
21731 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
21733 * m4/human.m4 (gl_HUMAN): Likewise.
21734 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
21735 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
21736 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
21737 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
21738 * m4/xstrtol (gl_XSTRTOL): Likewise.
21740 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
21741 AC_TYPE_LONG_LONG_INT.
21742 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
21743 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
21744 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
21745 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
21747 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
21750 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
21751 (gl_PREREQ_XSTRTOUL): Remove.
21753 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
21755 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
21758 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
21760 Add and change modules to make it easier for coreutils to use
21762 * modules/backupfile (Files): Remove m4/d-ino.m4.
21763 (Depends-on): Add d-ino.
21764 * modules/cycle-check (Depends-on): Add stdint.
21765 (lib_SOURCES): Add cycle-check.h.
21766 * modules/d-ino: New module.
21767 * modules/d-type: New module.
21768 * modules/error (Files): Remove m4/strerror_r.m4.
21769 * modules/filemode (Files): Add m4/st_dm_mode.m4.
21770 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21771 m4/inttypes_h.m4, m4/uintmax_t.m4.
21772 (Depends-on): Add stdint.
21773 (lib_SOURCES): Add fsusage.h.
21774 * modules/getcwd (Files): Remove d-ino.m4.
21775 (Depends-on): Add d-ino.
21776 * modules/getndelim2 (Depends-on): Add stdint.
21777 * modules/glob (Files): Remove m4/d-type.m4.
21778 (Depends-on): Add d-type.
21779 * modules/host-os: New module.
21780 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21781 m4/inttypes_h.m4, m4/uintmax_t.m4.
21782 * Depends-on: Add stdint.
21783 (lib_SOURCES): Add human.h.
21784 * modules/inttostr (Files): Remove m4/intmax_t.m4,
21785 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
21786 m4/uintmax_t.m4, m4/ulonglong.m4.
21787 (Depends-on): Add stdint.
21788 (EXTRA_DIST): Add inttostr.h.
21789 * modules/lchmod: New module.
21790 * modules/link-follow: New module.
21791 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
21792 (Depends-on): Add lchmod.
21793 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
21794 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
21795 (Depends-on): Add stdint.
21796 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
21797 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
21798 (Depends-on): Add stdint.
21799 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
21800 * modules/perl: New module.
21801 * modules/regex (Depends-on): Add stdint.
21802 * modules/rmdir-errno: New module.
21803 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
21805 (Depends-on): Add stdint.
21806 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
21808 (Depends-on): Add stdint.
21809 * modules/unlink-busy: New module.
21810 * modules/utimecmp (Depends-on): Add stdint.
21811 * modules/uptime: New module.
21812 * modules/winsz-ioctl: New module.
21813 * modules/winsz-termios: New module.
21814 * modules/xnanosleep (Depends-on): Add nanosleep.
21815 * modules/ullong_max: Remove.
21816 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
21817 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
21818 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
21819 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
21820 (Depends-on): Add inttypes.
21821 (lib_SOURCES): Add xstrtol.h.
21822 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
21823 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
21824 * MODULES.html.sh: Move 'assert' into the assert section.
21825 Move 'dummy' into the linking section.
21827 Add section for compatibility checks for POSIX:2001 functions,
21828 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
21829 winsz-ioctl, and winsz-termios into it.
21831 Add top-level Misc section and put host-os, perl, and uptime
21834 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
21836 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
21837 now assume the stdint module. Do not include inttypes.h.
21838 * lib/fsusage.h: Likewise.
21839 * lib/getndelim2.c: Likewise.
21840 * lib/human.h: Likewise.
21841 * lib/inttostr.h: Likewise.
21842 * lib/obstack.c: Likewise.
21843 * lib/regex_internal.h: Likewise.
21844 * lib/tempname.c: Likewise.
21845 * lib/utimecmp.c: Likewise.
21846 * lib/xstrtol.h: Likewise.
21848 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
21850 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
21851 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
21852 * lib/xtime.h: Likewise.
21854 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
21856 * modules/openat (Files): Add lib/fchmodat.c.
21857 Fixes problem reported by Jay Youngman.
21859 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
21861 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
21862 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
21864 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
21865 Bruno Haible <bruno@clisp.org>
21867 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
21868 and is a script that invokes bison. Tighten the code. Add comments.
21870 2006-08-18 Jim Meyering <jim@meyering.net>
21872 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
21873 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
21874 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
21875 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
21877 2006-08-18 Bruno Haible <bruno@clisp.org>
21879 * modules/bison-i18n: New file.
21880 * MODULES.html.sh (Internationalization functions): Add it.
21882 2006-08-18 Bruno Haible <bruno@clisp.org>
21884 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
21885 sys/statvfs.h. When getmntinfo was found, check its declaration and
21886 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
21888 2006-08-18 Bruno Haible <bruno@clisp.org>
21890 * m4/bison-i18n.m4: New file, from bison.
21892 2006-08-18 Bruno Haible <bruno@clisp.org>
21894 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
21895 (ME_DUMMY): Treat "kernfs" as a dummy.
21896 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
21898 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
21900 Update from coreutils.
21902 2006-08-15 Jim Meyering <jim@meyering.net>
21904 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
21906 2006-01-17 Jim Meyering <jim@meyering.net>
21908 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
21910 2006-01-11 Jim Meyering <jim@meyering.net>
21912 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
21913 Check for the lchmod function.
21915 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
21917 Update from coreutils.
21919 * lib/__fpending.h: Add copyright notice.
21920 * lib/fprintftime.h: Likewise.
21921 * lib/savedir.c: Use (C) in copyright notice.
21922 * lib/savedir.h: Likewise.
21924 2006-08-15 Jim Meyering <jim@meyering.net>
21926 * lib/at-func.c: New file, with the logic of all emulated at-functions.
21927 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
21928 in support of the EXPECTED_ERRNO macro.
21929 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
21930 definitions. Instead, define the appropriate symbols and include
21932 * lib/mkdirat.c (mkdirat): Likewise.
21933 * lib/fchmodat.c (fchmodat): Likewise.
21934 (ENOSYS): Remove definition.
21935 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
21936 it. Don't include "unistd--.h" -- it wasn't ever used.
21938 2006-01-17 Jim Meyering <jim@meyering.net>
21940 Rewrite fts.c not to change the current working directory,
21941 by using openat, fstatat, fdopendir, etc..
21943 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
21944 (HAVE_OPENAT_SUPPORT): Define.
21945 [_LIBC] (fchdir): Don't undef or define; no longer used.
21946 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
21947 Now, this `function' always succeeds, and consumes its file descriptor
21948 parameter -- so callers must not close such FDs. Update callers.
21949 (diropen_fd, opendirat, cwd_advance_fd): New functions.
21950 (diropen): Add parameter, SP. Adjust all callers.
21951 Implement using diropen_fd, rather than open.
21952 (fts_open): Initialize new member, fts_cwd_fd.
21953 Remove fts_rft-setting code.
21954 (fts_close): Close fts_cwd_fd, if necessary.
21955 (__opendir2): Define in terms of opendir or opendirat,
21956 depending on whether the FST_NOCHDIR flag is set.
21957 (fts_build): Since fts_safe_changedir consumes its FD, and since
21958 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
21959 and close the dup'd file descriptor upon failure.
21960 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
21961 (fts_safe_changedir): Tweak semantics to reflect that this function
21962 now calls cwd_advance_fd and hence consumes its FD argument.
21963 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
21964 [struct FTS] (fts_rft): Remove now-unused member.
21965 [struct FTS] (fts_cycle.state): Improve comment.
21967 * lib/openat.c (openat_needs_fchdir): New function.
21968 * lib/openat.h (openat_needs_fchdir): Declare it.
21970 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
21972 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
21973 Problem and fix reported by Pádraig Brady in
21974 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
21976 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
21978 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
21980 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
21982 * lib/memcoll.c (memcoll): Optimize for the common case where the
21983 arguments are bytewise equal.
21985 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
21987 * doc/regexprops-generic.texi: Add a copyright notice.
21989 2006-08-15 Bruno Haible <bruno@clisp.org>
21991 * modules/tmpdir (License): Change to LGPL.
21993 2006-08-15 Bruno Haible <bruno@clisp.org>
21995 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
21998 2006-08-14 Simon Josefsson <jas@extundo.com>
22000 * config/srclist.txt: Add gnupload.
22002 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
22004 Change copyright notice from LGPL 2 to GPL 2, since that's the
22005 standard form used in the gnulib repository.
22006 * tests/test-lock.c: Likewise.
22007 * tests/test-stdint.c: Likewise.
22008 * tests/test-tls.c: Likewise.
22010 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22011 prelude-manager. User shorter URLs for GNU projects, without '?'.
22012 Add copyright notice.
22014 * check-module: Add copyright notice. Output a copyright
22015 notice if "--version" is specified.
22016 * modules/COPYING: New file.
22017 * tests/test-getaddrinfo.c: Add copyright notice.
22018 * tests/test-verify.c: Likewise.
22020 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
22022 Change copyright notice from LGPL 2 to GPL 2, since that's the
22023 standard form used in the gnulib repository.
22024 * lib/lock.c: LGPL -> GPL.
22025 * lib/lock.h: Likewise.
22026 * lib/strnlen1.c: Likewise.
22027 * lib/strnlen1.h: Likewise.
22028 * lib/tls.c: Likewise.
22029 * lib/tls.h: Likewise.
22030 * lib/tmpdir.c: Likewise.
22032 * lib/TODO: Remove; this belongs only in coreutils.
22034 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
22036 Add copyright notices to long-enough files that lack them, since
22037 otherwise the files aren't clearly free. Use the same notice that
22038 getdate.texi already uses.
22039 * doc/alloca-opt.texi: Add copyright notice.
22040 * doc/alloca.texi: Likewise.
22041 * doc/ctime.texi: Likewise.
22042 * doc/functions.texi: Likewise.
22043 * doc/gcd.texi: Likewise.
22044 * doc/gnulib-tool.texi: Likewise.
22045 * doc/inet_ntoa.texi: Likewise.
22046 * doc/visibility.texi: Likewise.
22048 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22049 * doc/quote.texi: Add copyright notice.
22051 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22052 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
22053 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
22054 Mention SunOS 5.11. Mention that everything before SunOS 5.7
22055 is now obsolete, and give a pointer to the Sun list.
22056 Add copyright notice.
22058 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
22060 * config/srclistvars.sh: Add copyright notice.
22062 2006-08-14 Eric Blake <ebb9@byu.net>
22064 Import the following change from libc:
22066 2006-08-12 Ulrich Drepper <drepper@redhat.com>
22069 * lib/misc/error.c: Add space between program name and message if file
22072 2006-08-12 Karl Berry <karl@gnu.org>
22074 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22075 remove, these originate in gnulib now.
22077 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22079 * doc/Makefile (standards.info standards.html standards.dvi):
22080 Also depend on make-stds.texi.
22082 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
22084 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22085 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
22087 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22088 in wchar_t. Problem reported by Eric Blake.
22090 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22091 LEN is smaller than SIZE. Suggested by Bruno Haible.
22092 Also, help the compiler to keep LEN in a register.
22094 2006-08-11 Eric Blake <ebb9@byu.net>
22096 * users.txt: Sort. Add tar.
22098 2006-08-11 Bruno Haible <bruno@clisp.org>
22100 * users.txt: New file.
22102 2006-08-11 Bruno Haible <bruno@clisp.org>
22104 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
22105 before <wchar.h>. Needed for OSF/1 and BSD/OS.
22107 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
22109 * modules/snprintf (Depends-on): Remove minmax.
22110 (Maintainer): Add self and Bruno.
22112 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
22114 * lib/.cppi-disable: Add snprintf.h, socket_.h.
22115 * lib/snprintf.c: Include <errno.h> and <limits.h>.
22116 (EOVERFLOW): Define if the system does not.
22117 Do not include "minmax.h"; it wasn't used.
22118 (snprintf): Don't assume size_t promotes to an unsigned type.
22119 Fix bug when generated string was too long for the buffer: the
22120 buffer's contents are supposed to be the initial prefix of the
22121 output. Don't assume vasnprintf returns EOVERFLOW if the size
22122 exceeds INT_MAX; do the check ourselves.
22124 Import the following changes from libc:
22126 2006-06-02 Jakub Jelinek <jakub@redhat.com>
22128 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
22129 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
22130 set wc to the byte which couldn't be converted.
22131 (re_string_reconstruct): Don't clear valid_raw_len before calling
22132 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
22133 tip_context using re_string_context_at.
22135 2006-05-02 Ulrich Drepper <drepper@redhat.com>
22137 * lib/posix/regex.h: g++ still cannot handled [restrict].
22139 2006-04-21 Ulrich Drepper <drepper@redhat.com>
22141 * lib/posix/regex.h: Remove special handling for VMS.
22143 2006-08-10 Jim Meyering <jim@meyering.net>
22145 * modules/same-inode: New module.
22146 * modules/dev-ino: New module.
22147 * modules/cycle-check: Depend on these modules, rather than simply
22148 including their .h files.
22149 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
22150 required via m4/cycle-check.m4.
22151 * modules/same: Depend on new same-inode module, rather than
22152 including same-inode.h.
22153 * modules/chdir-safer: New file.
22155 * modules/chown (Depends-on): Add stat-macros.
22157 2006-08-10 Jim Meyering <jim@meyering.net>
22159 * m4/cycle-check.m4: New file.
22160 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
22161 * m4/dev-ino.m4, m4/same-inode.m4: New files.
22163 2006-08-10 Eric Blake <ebb9@byu.net>
22165 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
22166 in from original proposal.
22168 2006-08-10 Eric Blake <ebb9@byu.net>
22169 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22171 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
22174 2006-08-10 Bruno Haible <bruno@clisp.org>
22176 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
22179 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
22181 Sync from coreutils.
22183 2006-07-19 Mike Frysinger <vapier@gentoo.org>
22185 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
22186 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
22188 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
22190 * modules/restrict: Remove; no longer needed now that we assume
22191 Autoconf 2.59 or later.
22192 * MODULES.html.sh: Remove 'restrict'.
22193 * modules/argp (Depends-on): Remove 'restrict'.
22194 * modules/base64 (Depends-on): Likewise.
22195 * modules/gc (Depends-on): Likewise.
22196 * modules/getaddrinfo (Depends-on): Likewise.
22197 * modules/glob (Depends-on): Likewise.
22198 * modules/inet_ntop (Depends-on): Likewise.
22199 * modules/inet_pton (Depends-on): Likewise.
22200 * modules/memxor (Depends-on): Likewise.
22201 * modules/regex (Depends-on): Likewise.
22202 * modules/strtok_r (Depends-on): Likewise.
22203 * modules/time_r (Depends-on): Likewise.
22205 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
22207 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
22208 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
22209 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22210 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
22211 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22212 * m4/memxor.m4 (gl_MEMXOR): Likewise.
22213 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
22214 gl_C_RESTRICT replaced by AC_C_RESTRICT.
22216 Merge from coreutils.
22217 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
22218 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
22219 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22220 * m4/time_r.m4 (gl_TIME_R): Likewise.
22222 2006-08-09 Karl Berry <karl@gnu.org>
22224 * config/srclist.txt: no more gettext-tools, per Bruno.
22226 2006-08-08 Eric Blake <ebb9@byu.net>
22228 * modules/verror: New module.
22229 * MODULES.html.sh: Document it.
22231 2006-08-08 Eric Blake <ebb9@byu.net>
22233 * lib/verror.h, lib/verror.c: New files.
22235 2006-08-08 Eric Blake <ebb9@byu.net>
22237 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
22238 verror_at_line output complies with GNU Coding Standards even when
22241 2006-08-07 Bruno Haible <bruno@clisp.org>
22243 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
22245 Reported by Ralf Wildenhues.
22247 2006-08-07 Bruno Haible <bruno@clisp.org>
22249 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
22250 in an AC_DEFUN. Needed so that the autoconf snippets can use
22253 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22255 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22256 Initialize pkgdata_DATA.
22257 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
22260 2006-08-06 Eric Blake <ebb9@byu.net>
22262 * lib/error.h: Fold in some upstream changes from glibc.
22263 * lib/error.c: Likewise.
22265 2006-08-04 Bruno Haible <bruno@clisp.org>
22267 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22268 Make the mostlyclean-local rule depend on mostlyclean-generic.
22269 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
22271 2006-07-31 Bruno Haible <bruno@clisp.org>
22273 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
22274 <stdlib.h>, <string.h>.
22276 2006-07-30 Bruno Haible <bruno@clisp.org>
22278 * modules/readlink (License): Change to LGPL.
22280 2006-07-30 Bruno Haible <bruno@clisp.org>
22282 * modules/javaversion (Makefile.am): Distribute javaversion.java and
22283 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
22284 set PKGDATADIR to point to it.
22286 2006-07-30 Bruno Haible <bruno@clisp.org>
22288 * modules/csharpexec (configure.ac): Comment out macro invocation.
22289 * modules/javaexec (configure.ac): Likewise.
22290 * modules/javacomp-script (configure.ac): Likewise.
22292 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
22294 2006-07-30 Bruno Haible <bruno@clisp.org>
22296 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
22299 2006-07-30 Bruno Haible <bruno@clisp.org>
22301 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
22303 2006-07-30 Bruno Haible <bruno@clisp.org>
22305 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22306 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
22309 2006-07-29 Bruno Haible <bruno@clisp.org>
22311 Make it possible for gnulib-tool to work with locally modified or
22312 augmented gnulib repositories.
22313 * gnulib-tool (func_usage): Document --local-dir option.
22314 (local_gnulib_dir): New variable.
22315 Handle --local-dir option.
22316 (func_lookup_file): New function.
22317 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
22318 (func_get_description, func_get_filelist, func_get_description,
22319 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
22320 func_get_automake_snippet, func_get_include_directive,
22321 func_get_license, func_get_maintainer): Use func_lookup_file.
22322 (func_import, func_create_testdir): Use func_lookup_file.
22324 2006-07-29 Bruno Haible <bruno@clisp.org>
22326 * modules/setenv (Depends-on): Add unistd.
22328 2006-07-29 Bruno Haible <bruno@clisp.org>
22330 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
22332 2006-07-29 Bruno Haible <bruno@clisp.org>
22334 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
22336 2006-07-29 Bruno Haible <bruno@clisp.org>
22338 * gnulib-tool (import, update): If there is no Makefile.am, look at
22339 aclocal.m4, instead of bailing out.
22341 2006-07-29 Bruno Haible <bruno@clisp.org>
22343 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
22344 Categorize the options by when they are useful.
22346 2006-07-29 Bruno Haible <bruno@clisp.org>
22348 * gnulib-tool (func_usage): Document option --no-libtool.
22349 Handle option --no-libtool.
22350 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
22351 for changed semantics of $libtool variable.
22352 (func_import): Likewise. If libtool is not used, show this through
22353 an option --no-libtool.
22354 (func_create_testdir): Update.
22356 2006-07-29 Bruno Haible <bruno@clisp.org>
22358 * gnulib-tool (func_import): Extend error message about missing
22361 2006-07-29 Bruno Haible <bruno@clisp.org>
22363 * gnulib-tool (func_import): Don't create the $docbase directory if
22364 there is no file to store there.
22366 2006-07-29 Bruno Haible <bruno@clisp.org>
22368 * gnulib-tool (autoconf_minversion): If a --dir option is given and
22369 relevant, look for configure.ac there, not in the current directory.
22370 Also use a simple search for AC_PREREQ, not "autoconf --trace".
22372 2006-07-29 Bruno Haible <bruno@clisp.org>
22374 * gnulib-tool (SORT): New variable.
22375 (func_usage): Undocument --assume-autoconf option.
22376 Remove --assume-autoconf option handling.
22377 (autoconf_minversion): Determine from the contents of configure.ac.
22378 (func_import): Remove autoconf_minversion handling.
22379 Suggested by Eric Blake.
22381 2006-07-29 Bruno Haible <bruno@clisp.org>
22383 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
22385 2006-07-29 Bruno Haible <bruno@clisp.org>
22387 * config/srclist.txt (*setenv.[ch]): Remove rules.
22389 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22391 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
22393 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22395 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
22398 2006-07-28 Simon Josefsson <jas@extundo.com>
22400 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
22401 * modules/inet_pton (Depends-on): Likewise.
22403 2006-07-28 Simon Josefsson <jas@extundo.com>
22405 * m4/netinet_in_h.m4: New file.
22407 2006-07-28 Simon Josefsson <jas@extundo.com>
22409 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
22412 2006-07-28 Simon Josefsson <jas@extundo.com>
22414 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
22417 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
22419 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
22420 setgid on directories only if they set these bits.
22421 * lib/modechange.h: Remove obsolete comment about masks.
22423 2006-07-28 Eric Blake <ebb9@byu.net>
22425 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
22428 2006-07-28 Bruno Haible <bruno@clisp.org>
22430 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
22432 2006-07-28 Bruno Haible <bruno@clisp.org>
22434 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
22436 2006-07-28 Bruno Haible <bruno@clisp.org>
22438 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22439 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
22441 Avoids link error on FreeBSD 4.x.
22442 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22444 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
22446 * lib/mbswidth.c (iswcntrl): Likewise.
22448 2006-07-27 Bruno Haible <bruno@clisp.org>
22450 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
22453 2006-07-27 Bruno Haible <bruno@clisp.org>
22455 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
22456 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
22459 2006-07-26 Eric Blake <ebb9@byu.net>
22461 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
22463 2006-07-26 Eric Blake <ebb9@byu.net>
22465 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
22466 like mingw that lack mkstemp.
22467 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
22468 avoid compilation warning on mingw.
22470 2006-07-26 Bruno Haible <bruno@clisp.org>
22472 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
22473 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
22474 INT_FAST*_MIN, INTPTR_MIN.
22476 2006-07-25 Bruno Haible <bruno@clisp.org>
22478 * modules/version-etc (Depends-on): Add stdarg.
22480 2006-07-25 Bruno Haible <bruno@clisp.org>
22482 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
22485 2006-07-25 Bruno Haible <bruno@clisp.org>
22487 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
22488 defined in <stdarg.h> or config.h.
22490 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
22492 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
22493 (gl_STDIO_SAFER): Remove.
22495 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
22497 * MODULES.html.sh (File stream based Input/Output):
22498 Add fopen-safer, tmpfile-safer; remove stdio-safer.
22499 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
22500 * modules/fopen-safer, modules/tmpfile-safer: New files.
22501 * modules/stdio-safer: Remove.
22503 2006-07-24 Bruno Haible <bruno@clisp.org>
22505 * modules/tmpdir: New file.
22506 * MODULES.html.sh (File system functions): Add it.
22508 2006-07-24 Bruno Haible <bruno@clisp.org>
22510 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
22511 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
22513 2006-07-24 Bruno Haible <bruno@clisp.org>
22515 * modules/clean-temp: New file.
22517 2006-07-24 Bruno Haible <bruno@clisp.org>
22519 * m4/tmpdir.m4: New file, from GNU gettext.
22521 2006-07-24 Bruno Haible <bruno@clisp.org>
22523 * lib/tmpdir.h: New file, from GNU gettext.
22524 * lib/tmpdir.c: New file, from GNU gettext.
22526 2006-07-24 Bruno Haible <bruno@clisp.org>
22528 * lib/clean-temp.h: New file, from GNU gettext.
22529 * lib/clean-temp.c: New file, from GNU gettext.
22531 2006-07-23 Eric Blake <ebb9@byu.net>
22533 * modules/stdio-safer (Files): Add tmpfile-safer.c.
22534 (Depends-on): Add binary-io.
22536 2006-07-23 Eric Blake <ebb9@byu.net>
22538 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
22540 2006-07-23 Eric Blake <ebb9@byu.net>
22542 * lib/tmpfile-safer.c: New file.
22543 * lib/stdio-safer.h (fopen_safer): Add prototype.
22544 * lib/stdio--.h (tmpfile): Make safer.
22546 2006-07-23 Bruno Haible <bruno@clisp.org>
22548 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
22549 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
22550 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
22551 gl_linked_remove_at): Use it.
22553 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22554 and Simon Josefsson <jas@extundo.com>
22556 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
22558 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
22560 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
22562 * modules/close-stream: New file.
22563 * modules/closeout (Description): Make it clear that it exits
22564 with a diagnostic on error.
22565 (Depends-on): Add close-stream. Remove fpending, stdbool.
22566 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
22568 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
22570 * m4/close-stream.m4: New file.
22572 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
22574 * lib/close-stream.c, lib/close-stream.h: New files.
22576 2006-07-22 Bruno Haible <bruno@clisp.org>
22578 Merge from GNU gettext 0.15.
22580 2006-05-01 Bruno Haible <bruno@clisp.org>
22582 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
22584 2006-07-22 Bruno Haible <bruno@clisp.org>
22586 * modules/javaversion: New file.
22587 * MODULES.html.sh (Java): Add javaversion.
22589 2006-03-12 Bruno Haible <bruno@clisp.org>
22591 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
22593 2005-12-04 Bruno Haible <bruno@clisp.org>
22595 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
22598 2006-06-21 Bruno Haible <bruno@clisp.org>
22600 Avoid warnings from recent versions of mcs.
22601 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
22602 -o, -L, -r any more. Use options documented since mcs-1.0
22603 instead. Similarly for -g.
22605 2005-12-04 Bruno Haible <bruno@clisp.org>
22607 * build-aux/csharpcomp.sh.in: Suffix for resources is
22608 .resources, not .resource.
22610 2005-07-09 Bruno Haible <bruno@clisp.org>
22612 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
22614 Reported by Mark Junker <mjscod@gmx.de>.
22616 2006-07-22 Bruno Haible <bruno@clisp.org>
22618 * modules/gettext: Upgrade to gettext-0.15.
22619 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
22621 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
22623 2006-07-22 Bruno Haible <bruno@clisp.org>
22625 Merge from GNU gettext 0.15.
22627 2006-03-25 Bruno Haible <bruno@clisp.org>
22629 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
22631 2006-07-21 Bruno Haible <bruno@clisp.org>
22633 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
22636 2006-05-09 Bruno Haible <bruno@clisp.org>
22638 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
22639 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
22640 for the conftestver execution.
22642 2006-05-01 Bruno Haible <bruno@clisp.org>
22644 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
22645 optional target-version argument. Verify that the compiler
22646 groks source of the specified source-version, or add -source
22647 option as necessary. Verify that the compiler produces
22648 bytecode in the specified target-version, or add -target and
22649 -source options as necessary. Make the result of the test
22650 available as variable CONF_JAVAC. Also log error output in
22653 2006-03-11 Bruno Haible <bruno@clisp.org>
22655 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
22657 2006-05-09 Bruno Haible <bruno@clisp.org>
22659 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
22660 CLASSPATH_SEPARATOR to a semicolon.
22662 2006-03-12 Bruno Haible <bruno@clisp.org>
22664 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
22665 available as variable CONF_JAVA, for subsequent autoconf
22666 tests. Also log error output in config.log.
22668 2006-07-19 Bruno Haible <bruno@clisp.org>
22670 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
22671 that getline works on glibc2 systems. Needed to avoid trouble
22673 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
22675 2005-12-04 Bruno Haible <bruno@clisp.org>
22677 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
22678 launcher (untested).
22680 2005-12-04 Bruno Haible <bruno@clisp.org>
22682 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
22684 2006-07-22 Bruno Haible <bruno@clisp.org>
22686 * gettext.m4: Update from GNU gettext-0.15.
22687 * nls.m4: Likewise.
22689 * inttypes-pri.m4: Likewise.
22690 * inttypes-h.m4: Renamed from inttypes.m4.
22691 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
22693 2006-07-22 Bruno Haible <bruno@clisp.org>
22695 Merge from GNU gettext 0.15.
22697 2005-07-05 Bruno Haible <bruno@clisp.org>
22699 * printf-args.c (printf_fetchargs): Work around broken
22700 definition of wint_t on mingw.
22702 2005-02-12 Bruno Haible <bruno@clisp.org>
22704 * xallocsa.h: Add extern "C" for C++.
22706 2006-05-17 Bruno Haible <bruno@clisp.org>
22708 Cygwin portability.
22709 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
22711 2006-04-30 Bruno Haible <bruno@clisp.org>
22713 * progreloc.c: Include <mach-o/dyld.h> if available.
22714 (find_executable): Use _NSGetExecutablePath when possible.
22716 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
22718 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
22721 2005-12-29 Bruno Haible <bruno@clisp.org>
22723 * progreloc.c (set_program_name_and_installdir): Fix
22726 2005-12-04 Bruno Haible <bruno@clisp.org>
22728 Cygwin portability.
22729 * progreloc.c: Include <windows.h> also on Cygwin.
22730 (find_executable): Add support for Cygwin.
22731 (set_program_name_and_installdir): Handle also platforms with
22734 2006-07-11 Bruno Haible <bruno@clisp.org>
22736 * javacomp.c: Fix a comment.
22737 Reported by Jim Meyering.
22739 2006-04-30 Bruno Haible <bruno@clisp.org>
22741 * javacomp.h (compile_java_class): Add source_version,
22742 target_version arguments.
22743 * javacomp.c: Rewritten to choose only a compiler that
22744 respects the specified source_version and target_version.
22746 2006-06-27 Bruno Haible <bruno@clisp.org>
22748 Assume correct S_ISDIR macro.
22749 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
22751 2006-07-22 Bruno Haible <bruno@clisp.org>
22753 * javaversion.h: New file, from GNU gettext.
22754 * javaversion.c: New file, from GNU gettext.
22755 * javaversion.java: New file, from GNU gettext.
22756 * javaversion.class: New file, from GNU gettext.
22758 2006-05-17 Bruno Haible <bruno@clisp.org>
22760 Cygwin portability.
22761 * javaexec.c (execute_java_class): Test for jview program
22764 2006-04-09 Bruno Haible <bruno@clisp.org>
22766 * fatal-signal.c: Don't include string.h.
22767 (at_fatal_signal): Use a copying loop instead of memcpy.
22769 2005-12-04 Bruno Haible <bruno@clisp.org>
22771 * csharpexec.c: Add support for 'clix' launcher (untested).
22772 (execute_csharp_using_sscli): New function.
22773 (execute_csharp_program): Call it.
22775 2006-06-21 Bruno Haible <bruno@clisp.org>
22777 Avoid warnings from recent versions of mcs.
22778 * csharpcomp.c (compile_csharp_using_mono): Don't use options
22779 -o, -L, -r any more. Use options documented since mcs-1.0
22780 instead. Similarly for -g.
22782 2005-07-09 Bruno Haible <bruno@clisp.org>
22784 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
22786 Reported by Mark Junker <mjscod@gmx.de>.
22788 2006-06-17 Bruno Haible <bruno@clisp.org>
22790 * config.charset: Update for NetBSD 3.0.
22792 2006-05-17 Bruno Haible <bruno@clisp.org>
22794 Cygwin portability.
22795 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
22797 2006-05-16 Bruno Haible <bruno@clisp.org>
22799 * localcharset.c [CYGWIN]: Include <windows.h>.
22800 (get_charset_aliases): For Cygwin, return the same CPxxx
22801 aliases list as under WIN32.
22802 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
22803 the environment variables. Fall back to GetACP().
22805 2006-04-05 Bruno Haible <bruno@clisp.org>
22807 * config.charset: Update Juan Manuel Guerrero's address.
22809 2005-02-12 Bruno Haible <bruno@clisp.org>
22811 * allocsa.h: Add extern "C" for C++.
22813 2005-02-10 Bruno Haible <bruno@clisp.org>
22815 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
22816 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
22818 2006-07-22 Bruno Haible <bruno@clisp.org>
22820 * gettext.h: Update to GNU gettext-0.15.
22822 2006-07-22 Bruno Haible <bruno@clisp.org>
22824 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
22825 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
22826 lib-prefix.m4, longdouble.m4, ssize_t.m4.
22828 2006-07-21 Eric Blake <ebb9@byu.net>
22830 * modules/stdlib-safer: New file.
22831 * MODULES.html.sh (File stream based Input/Output): Add
22834 2006-07-21 Eric Blake <ebb9@byu.net>
22836 * lib/stdlib-safer.h: New file from coreutils, required by
22839 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
22841 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
22843 2006-07-20 Bruno Haible <bruno@clisp.org>
22845 * gnulib-tool: Recognize new option --assume-autoconf.
22846 (autoconf_minversion): New variable.
22847 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
22849 2006-07-20 Bruno Haible <bruno@clisp.org>
22851 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
22853 2006-07-19 Derek R. Price <derek@ximbiot.com>
22855 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
22856 Reindent and repaginate.
22858 2006-07-19 Derek Price <derek@ximbiot.com>
22860 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
22863 2006-07-17 Bruno Haible <bruno@clisp.org>
22865 * modules/list: New file.
22866 * modules/array-list: New file.
22867 * modules/carray-list, modules/carray-list-tests: New files.
22868 * modules/linked-list, modules/linked-list-tests: New files.
22869 * modules/avltree-list, modules/avltree-list-tests: New files.
22870 * modules/rbtree-list, modules/rbtree-list-tests: New files.
22871 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
22872 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
22873 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
22874 * modules/oset: New file.
22875 * modules/array-oset: New file.
22876 * modules/avltree-oset, modules/avltree-oset-tests: New files.
22877 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
22878 * tests/test-carray_list.c: New file.
22879 * tests/test-linked_list.c: New file.
22880 * tests/test-avltree_list.c: New file.
22881 * tests/test-rbtree_list.c: New file.
22882 * tests/test-linkedhash_list.c: New file.
22883 * tests/test-avltreehash_list.c: New file.
22884 * tests/test-rbtreehash_list.c: New file.
22885 * tests/test-avltree_oset.c: New file.
22886 * tests/test-rbtree_oset.c: New file.
22887 * MODULES.html.sh (Container data structures): New section.
22889 2006-07-17 Bruno Haible <bruno@clisp.org>
22891 * m4/gl_list.m4: New file.
22893 2006-07-17 Bruno Haible <bruno@clisp.org>
22895 * lib/gl_list.h: New file.
22896 * lib/gl_list.c: New file.
22897 * lib/gl_array_list.h: New file.
22898 * lib/gl_array_list.c: New file.
22899 * lib/gl_carray_list.h: New file.
22900 * lib/gl_carray_list.c: New file.
22901 * lib/gl_linked_list.h: New file.
22902 * lib/gl_linked_list.c: New file.
22903 * lib/gl_anylinked_list1.h: New file.
22904 * lib/gl_anylinked_list2.h: New file.
22905 * lib/gl_avltree_list.h: New file.
22906 * lib/gl_avltree_list.c: New file.
22907 * lib/gl_anyavltree_list1.h: New file.
22908 * lib/gl_anyavltree_list2.h: New file.
22909 * lib/gl_rbtree_list.h: New file.
22910 * lib/gl_rbtree_list.c: New file.
22911 * lib/gl_anyrbtree_list1.h: New file.
22912 * lib/gl_anyrbtree_list2.h: New file.
22913 * lib/gl_anytree_list1.h: New file.
22914 * lib/gl_anytree_list2.h: New file.
22915 * lib/gl_linkedhash_list.h: New file.
22916 * lib/gl_linkedhash_list.c: New file.
22917 * lib/gl_anyhash_list1.h: New file.
22918 * lib/gl_anyhash_list2.h: New file.
22919 * lib/gl_avltreehash_list.h: New file.
22920 * lib/gl_avltreehash_list.c: New file.
22921 * lib/gl_rbtreehash_list.h: New file.
22922 * lib/gl_rbtreehash_list.c: New file.
22923 * lib/gl_anytreehash_list1.h: New file.
22924 * lib/gl_anytreehash_list2.h: New file.
22926 * lib/gl_oset.h: New file.
22927 * lib/gl_oset.c: New file.
22928 * lib/gl_array_oset.h: New file.
22929 * lib/gl_array_oset.c: New file.
22930 * lib/gl_avltree_oset.h: New file.
22931 * lib/gl_avltree_oset.c: New file.
22932 * lib/gl_rbtree_oset.h: New file.
22933 * lib/gl_rbtree_oset.c: New file.
22934 * lib/gl_anytree_oset.h: New file.
22936 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
22938 * m4/mkancesdirs.m4: New file.
22939 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
22940 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
22941 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
22944 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
22946 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
22947 * lib/mkancesdirs.h: New files.
22948 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
22949 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
22950 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
22951 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
22952 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
22953 callers changed. Revamp internals significantly, by not
22954 attempting to create directories that are temporarily more
22955 permissive than the final results. Do not attempt to use
22956 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
22957 This removes some race conditions, fixes some bugs, and simplifies
22958 things. Use new dirchownmod function to do owner and mode changes.
22959 * lib/mkdir-p.h: Likewise.
22960 * lib/modechange.c (octal_to_mode): New function.
22961 (struct mode_change): New member mentioned.
22962 (make_node_op_equals): New arg mentioned. All callers changed.
22963 (mode_compile): Keep track of which mode bits the user has explicitly
22965 (mode_adjust): New arg DIR, so that we implement the X op correctly.
22966 New arg PMODE_BITS, to keep track of which mode bits the user
22967 mentioned; it treats S_ISUID and S_ISGID speciall.
22968 All callers changed.
22969 * lib/modechange.h: Likewise.
22971 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
22973 * MODULES.html.sh: Add mkancestors.
22974 * modules/mkancesdirs: New module.
22975 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
22976 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
22977 The chdir-safer and afs files are now orphans; I'll remove them
22978 unless someone speaks up.
22979 Add lib/dirchownmod.c, lib/dirchownmod.h.
22980 (Depends-on): Remove alloca, chown, save-cwd, dirname.
22981 Add lchown, mkancesdirs.
22982 (Maintainer): Add self.
22984 2006-07-15 Karl Berry <karl@gnu.org>
22986 * gnulib-tool: help message wording/arrangement.
22988 2006-07-14 Simon Josefsson <jas@extundo.com>
22990 * doc/gnulib.texi (Libtool and Windows): New section.
22992 2006-07-12 Simon Josefsson <jas@extundo.com>
22994 * modules/gendocs (License): Fix license, approved by Karl.
22996 2006-07-12 Eric Blake <ebb9@byu.net>
22998 * MODULES.html.sh: Add gendocs.
23000 2006-07-11 Eric Blake <ebb9@byu.net>
23002 * modules/fdl: New module, to install doc/fdl.texi.
23003 * MODULES.html.sh: Add new section for documentation modules.
23004 * gnulib-tool: Avoid space-tab.
23005 (--doc-base): New option, to manage files from doc.
23007 2006-07-11 Eric Blake <ebb9@byu.net>
23009 * m4/absolute-header.m4: Fix comments to match recent change.
23011 2006-07-11 Eric Blake <ebb9@byu.net>
23013 * gnulib-tool: List --doc-base before --tests-base.
23015 2006-07-11 Derek R. Price <derek@ximbiot.com>
23017 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23019 2006-07-11 Bruno Haible <bruno@clisp.org>
23021 * README: Mention where to put documentation.
23023 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23025 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23027 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
23029 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23032 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
23034 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23035 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
23036 "no/such/file/stdint.h" when there is no such file, so that
23037 the resulting C code can be parsed by dodgy compilers.
23038 Problems reported by Bob Proulx.
23040 2006-07-10 Derek R. Price <derek@ximbiot.com>
23042 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23043 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
23044 macros into the GNU _D_EXACT_NAMLEN.
23045 * lib/savedir.c: Likewise.
23046 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23048 2006-07-10 Derek R. Price <derek@ximbiot.com>
23049 and Paul Eggert <eggert@cs.ucla.edu>
23051 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23053 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
23054 macros into the GNU _D_EXACT_NAMLEN.
23056 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
23058 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23059 around the absolute name, to work around a problem with the HP-UX
23060 11.23 native C compiler, reported by Bob Proulx.
23062 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
23064 * doc/maintain.texi, make-stds.texi: Sync from
23065 <http://savannah.gnu.org/projects/gnustandards>.
23067 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
23069 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23071 2006-07-09 Jim Meyering <jim@meyering.net>
23073 * m4/glob.m4: Remove a doubled word in a comment.
23075 2006-07-09 Jim Meyering <jim@meyering.net>
23077 * lib/argp-pv.c: Remove a doubled word in a comment.
23078 * lib/check-version.c (check_version): Likewise.
23079 * lib/javacomp.c (compile_java_class): Likewise.
23081 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
23083 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23084 for the benefit of people using Autoconf 2.60. If you want to
23085 support older Autoconf versions you can copy m4/onceonly_2_57.m4
23086 (or m4/onceonly.m4, if pre-2.57) manually.
23088 2006-07-08 Jim Meyering <jim@meyering.net>
23090 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23092 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23093 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23096 2006-07-08 Jim Meyering <jim@meyering.net>
23098 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
23100 2006-07-07 Simon Josefsson <jas@extundo.com>
23102 * tests/test-crc.c: Change expected crc value, the test vector
23103 were probably computed using the old broken crc.c?
23105 2006-07-06 Simon Josefsson <jas@extundo.com>
23107 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
23108 now the canonical place for the M4 file).
23110 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
23111 from the sys_socket dependency now.
23113 * modules/inet_pton (Files): Ditto.
23115 * modules/inet_ntop (Files): Ditto.
23117 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
23119 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
23120 not gl_PREREQ_GETUSERSHELL.
23122 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23124 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
23125 with only one argument, for Autoconf 2.60.
23126 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
23127 expand to nothing, so add a shell command to avoid syntax error.
23128 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23130 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23132 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
23134 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
23136 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
23137 no longer needed. Check for isblank decl.
23138 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
23139 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
23142 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
23144 * lib/getloadavg.c: Use __VMS, not VMS.
23145 * lib/getopt.c: Likewise.
23146 * lib/getpagesize.h: Likewise.
23147 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
23148 and probably does not work.
23150 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
23152 * lib/.cppi-disable: Add wcwidth.
23153 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
23154 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
23155 (ISGRAPH): Remove. All uses changed to isgraph.
23156 (FOLD) [!defined _LIBC]: Remove special case.
23157 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
23158 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
23160 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
23163 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
23165 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
23166 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
23167 brackets. Other minor changes to suppress some compiler
23170 2006-07-06 Derek R. Price <derek@ximbiot.com>
23171 and Paul Eggert <eggert@cs.ucla.edu>
23173 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
23174 of invoking obsolescent AC_HEADER_DIRENT macro.
23175 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23176 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23177 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23178 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23179 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
23180 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23181 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
23182 * m4/readdir.m4: Remove; no longer needed.
23184 2006-07-06 Derek R. Price <derek@ximbiot.com>
23185 and Paul Eggert <eggert@cs.ucla.edu>
23187 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
23188 Don't worry about this obsolete case any more.
23189 (HAVE_DIR): Remove. All uses removed; we now assume you can read
23191 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
23192 worry about this obsolete case any more.
23193 * lib/fts.c: Likewise.
23194 * lib/getcwd.c: Likewise.
23195 * lib/glob.h: Likewise.
23196 * lib/savedir.c: Likewise.
23198 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
23200 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
23201 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
23202 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
23205 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23206 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23207 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
23209 * m4/getdate.m4 (gl_GETDATE): Likewise.
23210 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23211 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23212 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23213 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23214 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23215 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23216 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
23219 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
23221 * lib/memcasecmp.c: Include <limits.h>.
23222 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
23223 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
23224 Don't assume isdigit succeeds only on '0' through '9'.
23226 2006-07-05 Eric Blake <ebb9@byu.net>
23228 * modules/getaddrinfo (Depends-on): Add snprintf.
23230 2006-07-05 Eric Blake <ebb9@byu.net>
23232 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
23233 to avoid 'header present but could not be compiled' on cygwin.
23235 2006-07-05 Eric Blake <ebb9@byu.net>
23237 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
23238 missing from netdb.h.
23239 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
23241 2006-07-05 Derek R. Price <derek@ximbiot.com>
23243 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
23245 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
23246 * m4/getdate.m4 (gl_GETDATE): Likewise.
23247 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23248 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23249 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23250 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23251 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23253 2006-07-05 Derek R. Price <derek@ximbiot.com>
23255 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
23256 All uses of is_space replaced by isspace.
23257 * lib/exit.h: Don't talk about STDC_HEADERS.
23258 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
23259 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
23260 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
23261 replaced by isprint etc.
23262 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
23263 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23264 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
23265 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
23266 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
23267 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23269 2006-07-05 Bruno Haible <bruno@clisp.org>
23271 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
23272 the function exists, before testing against AIX.
23273 Reported by Martin Lambers <marlam@marlam.de>.
23275 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
23277 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
23278 From Mark D. Baushke.
23280 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
23282 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
23283 to the absolute name, not just one, to bypass Sun C 5.8's
23284 "warning: #include of /usr/include/... may be non-portable".
23286 2006-07-04 Eric Blake <ebb9@byu.net>
23288 * modules/dirname-tests: New test module.
23289 * tests/test-dirname.c: New file, replacing dirname.c
23290 TEST_DIRNAME section that was recently deleted.
23292 2006-07-04 Bruno Haible <bruno@clisp.org>
23294 Assume ANSI C header files and <ctype.h> functions.
23295 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
23296 (mbsnwidth): Use isprint, iscntrl instead.
23298 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
23300 Merge from coreutils.
23301 * MODULES.html.sh: Add xstrtold.
23302 * modules/xstrtold: New file.
23303 * modules/cycle-check (Files): Add lib/same-inode.h.
23304 * modules/dirname (Files): Add m4/double-slash-root.m4.
23305 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
23306 * modules/mkdir-p (Files): Add lib/same-inode.h.
23307 * modules/same (Files): Add lib/same-inode.h.
23309 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
23311 * m4/absolute-header.m4: Renamed from full-header-path.m4.
23312 This is to keep the terminology clean; POSIX talks about
23313 "absolute pathnames", not "full pathnames", but the GNU
23314 Coding Standards say to use "path" for something else;
23315 so use "absolute" to keep both sides happy.
23316 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
23317 Set gl_absolute_header, not gl_full_header_path.
23318 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
23319 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
23322 Merge from coreutils.
23324 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
23326 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
23327 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
23328 want to require the building of c-strtod.o.
23329 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
23330 needs -lm directly.
23331 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
23333 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
23335 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
23336 --as-needed option if available. Problem reported by Albert Chin in
23337 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
23338 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
23339 cc merely issues a bunch of annoying warnings for --as-needed
23340 (this problem was reported by Bob Proulx). Also, try linking with
23341 -lm to detect a bug in binutils 2.16 (this problem was reported
23342 by Ralf Wildenhues).
23344 2006-06-18 Jim Meyering <jim@meyering.net>
23346 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
23347 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
23349 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
23350 also check for glibc-2.4's abort-inducing bug.
23352 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
23353 Low-probability clean-up should be to use rmdir to get rid of
23354 the just-created directory, not unlink.
23356 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
23357 configure fail, and request a bug report to inform us about it.
23358 Add a comment that, barring reports to the contrary, in 2007 we'll
23359 assume ftruncate is universally available.
23361 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
23363 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
23365 2006-03-12 Jim Meyering <jim@meyering.net>
23367 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
23368 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
23369 * m4/same.m4 (gl_SAME): Likewise.
23370 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
23372 2006-03-11 Eric Blake <ebb9@byu.net>
23374 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
23375 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
23376 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
23377 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
23379 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
23381 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
23382 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
23383 reported by Mark D. Baushke, one in
23384 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
23386 Merge from coreutils.
23388 * lib/.cppi-disable: Add stdint_.h.
23389 * lib/.cvsignore: Add stdint.h.
23391 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
23393 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
23394 both double and long double versions.
23395 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
23396 * lib/xstrtold.c: New file.
23397 * lib/xstrtod.h (xstrtold): New decl.
23399 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
23401 * lib/filemode.c (setst): Remove.
23402 (strmode): Rewrite to avoid setst. This makes the code shorter,
23403 (arguably) clearer, and the generated code is a bit smaller on my
23404 Debian GNU/Linux stable x86 host.
23406 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
23408 * lib/filemode.c: Include "filemode.h" first, to test the interface.
23409 Assume that filemode.h includes sys/types.h and sys/stat.h.
23410 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
23411 (ftypelet): Reorder to put common cases first, for efficiency.
23412 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
23414 (strmode): Renamed from mode_string, and now stores 12 bytes instead
23415 of 10, for compatibility with FreeBSD. All callers changed.
23416 (filemodestring): Now stores 12 bytes instead of 10, and sets file
23417 types that can't be deduced solely from st_mode. First arg is now a
23419 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
23420 (strmode): Renamed from mode_string.
23421 (filemodestring): New decl.
23422 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
23423 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
23425 (S_ISPORT, S_ISWHT): New macros, if not already defined.
23427 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
23429 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
23430 fsusage.h now does that. Include fsusage.h first, to test interface.
23431 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
23432 at most one method (the old code could have generated decls that
23433 didn't conform to C89, not that this was ever exercised).
23434 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
23436 2006-03-19 Jim Meyering <jim@meyering.net>
23438 Work even in a chroot where d_ino values for entries in "/"
23439 don't match the stat.st_ino values for the same names.
23440 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
23441 number, iterate through all entries again, using lstat instead.
23442 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
23443 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
23445 * lib/getcwd.c (__getcwd): Clarify a comment.
23446 Use memcpy in place of a call to strcpy.
23448 2006-03-12 Jim Meyering <jim@meyering.net>
23450 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
23451 matches that of the current directory (which we're about to chdir ".."
23452 out of), then save the dev-ino of the parent, instead.
23454 * lib/same-inode.h (SAME_INODE): New file/macro.
23455 * lib/chdir-safer.c (SAME_INODE): Remove definition.
23456 Include "same-inode.h", instead.
23457 * lib/same.c: Likewise.
23458 * lib/cycle-check.h: Include "same-inode.h".
23459 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
23460 * lib/cycle-check.c (SAME_INODE): Remove definition.
23461 * lib/root-dev-ino.h: Include "same-inode.h".
23463 2006-03-11 Eric Blake <ebb9@byu.net>
23465 * lib/same.c (same_name): s/base_name/last_component/
23466 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
23467 * lib/filenamecat.c (file_name_concat): Likewise.
23469 2006-03-11 Eric Blake <ebb9@byu.net>,
23470 Paul Eggert <eggert@cs.ucla.edu>
23472 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
23473 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
23475 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
23476 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
23477 (last_component): New method.
23478 * lib/dirname.c (dir_len): Determine when drive letters need a
23479 subsequent slash. Preserve // when it is special.
23480 (dir_name): Don't append dot when drive letter is absolute.
23481 [TEST_DIRNAME]: Move into a full-blown gnulib test.
23482 * lib/basename.c (base_name): New semantics - malloc the result.
23483 Preserve // when it is special. Preserve relative files that look
23484 like drive letters.
23485 (base_len): Preserve // when it is special.
23486 (last_component): New method, similar to old base_name semantics.
23487 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
23488 base_name. Strip redundant slashes from ///.
23490 2006-07-03 Jim Meyering <jim@meyering.net>
23492 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
23493 macro is used before the first cycle_check call.
23495 2006-07-03 Eric Blake <ebb9@byu.net>
23497 * modules/dirname (Depends-on): Add xstrndup.
23499 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
23501 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
23502 test cases, so that config.log is a bit easier to follow.
23504 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
23506 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
23507 both are 64 bits, since this seems to be the tradition, and this
23508 prevents gcc -Wformat from warning about usages with PRIuMAX. If
23509 we ever run into a host that prefers long long to long in this
23510 case, we'll need another configure-time test. Problem reported by
23513 2006-07-02 Eric Blake <ebb9@byu.net>
23515 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
23517 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
23519 * modules/inttypes (Depends-on): No longer depends on stdint.
23520 * modules/stdint (Description): Say more about assumptions.
23521 Say that the fast types might differ. Say macros are used.
23522 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
23523 (Makefile.am): Revise list of substituted symbols to match
23525 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
23526 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
23527 * tests/test-stdint.c (verify_same_types)
23528 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
23529 the code conforms to C99/C89.
23530 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
23531 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
23533 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
23535 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
23536 but fix a bug, by requiring at least 64 bits.
23537 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
23538 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
23539 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
23540 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
23542 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
23543 changes. Make 2.59 a prerequisite. Check and substitute for
23544 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
23545 inttypes.h. Do not use special include files; just use the
23546 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
23547 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
23548 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
23549 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
23550 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
23551 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
23552 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
23553 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
23554 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
23555 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
23556 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
23557 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
23558 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
23559 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
23560 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
23561 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
23562 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
23563 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
23564 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
23565 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
23566 WINT_MAX. Check for C99 conformance more strictly, by detecting
23567 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
23568 not check for things that C99 does not require, e.g., int8_t. If
23569 a test isn't needed unless <stdint.h> isn't working, and is
23570 unlikely to be needed for any other reason, then don't do it
23571 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
23572 size_t, since we assume C89 freestanding at least. Do not check
23573 for sig_atomic_t, wchar_t, or wint_t, since the code now does
23574 the right thing even if the types are not defined. Instead use:
23575 (gl_STDINT_TYPE_PROPERTIES): New macro.
23576 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
23577 testing whether <sys/types.h> clashes, as Autoconf does this for
23578 us now. All uses removed.
23579 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
23580 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
23581 (gl_CHECK_TYPE_SAME):
23582 Remove; no longer needed.
23583 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
23584 exists, since we'll return 0 anyway in that case.
23585 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
23587 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
23589 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
23590 possible collision with system files.
23591 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
23592 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
23593 WCHAR_MIN and WCHAR_MAX in this case.
23594 (<stddef.h>): Do not include; no longer needed.
23595 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
23596 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
23597 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
23598 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
23599 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
23600 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
23601 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
23602 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
23603 !defined(__c99))]: Include in this case too, since it's harmless
23605 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
23606 dangerous to do so.
23607 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
23608 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
23609 (_STDINT_MIN, _STDINT_MAX): New macros.
23610 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
23611 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
23612 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
23613 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
23614 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
23615 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
23616 macros, not typedefs; this simplifies things quite a bit.
23617 Use long int for all types narrower than int64_t.
23618 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
23619 Define in terms of long long int or int64_t or long int,
23620 not int64_t or int32_t. This saves some compile-time testing.
23621 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
23622 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
23623 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
23624 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
23625 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
23626 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
23627 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
23628 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23629 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
23630 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
23631 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
23632 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
23633 undef any previous version and define our own version, for
23634 simplicity and consistency with the new macros for types.
23635 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
23636 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
23637 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
23638 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
23639 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
23640 @WINT_T_SUFFIX@ to keep things simple here.
23641 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
23642 Simplify by assuming typical 8/16/32/64 host, since we're
23643 already doing that elsewhere anyway.
23644 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
23645 and assume long long int is 64 bits if available. This
23646 speeds up 'configure'.
23648 2006-07-01 Eric Blake <ebb9@byu.net>
23650 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
23651 Reported by Andreas Buening.
23653 2006-07-01 Eric Blake <ebb9@byu.net>
23655 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
23657 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
23659 * lib/getaddrinfo.c: fixed typo
23661 2006-06-29 Jim Meyering <jim@meyering.net>
23663 * modules/strftime (Maintainer): Add my name, since with the
23664 FPRINTFTIME changes strftime.c has forked from glibc.
23666 2006-06-29 Eric Blake <ebb9@byu.net>
23668 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
23670 2006-06-29 Eric Blake <ebb9@byu.net>
23672 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
23674 2006-06-29 Eric Blake <ebb9@byu.net>
23676 * lib/stat_.h: New file.
23678 2006-06-29 Eric Blake <ebb9@byu.net>
23680 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
23681 unused static function.
23683 2006-06-29 Eric Blake <ebb9@byu.net>
23685 * doc/functions.texi (Function Portability): Document missing lstat
23688 2006-06-29 Eric Blake <ebb9@byu.net>
23690 * MODULES.html.sh: Add sys_stat.
23691 * modules/sys_stat: New module.
23692 * modules/mkstemp (Depends-on): Add sys_stat.
23694 2006-06-29 Derek R. Price <derek@ximbiot.com>
23696 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
23698 2006-06-29 Derek R. Price <derek@ximbiot.com>
23700 * m4/c-bs-a.m4: Removed.
23702 2006-06-29 Derek R. Price <derek@ximbiot.com>
23704 * lib/strftime.c: Assume strftime() exists.
23706 2006-06-29 Derek Price <derek@ximbiot.com>
23708 * modules/c-bs-a: Removed - \a is C89.
23709 * MODULES.html.sh: Remove c-bs-a.
23711 2006-06-29 Bruno Haible <bruno@clisp.org>
23713 * modules/wcwidth (License): Change to LGPL.
23715 2006-06-28 Simon Josefsson <jas@extundo.com>
23717 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
23720 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
23723 2006-06-28 Simon Josefsson <jas@extundo.com>
23725 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
23727 2006-06-28 Simon Josefsson <jas@extundo.com>
23729 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
23730 functions there. It will succeed on Windows XP, but on Windows
23731 2000 and (presumably) earlier, it will fail, and use the internal
23733 (use_win32_p): New function.
23734 (getaddrinfo): Use strtoul on servname, to support numeric ports.
23735 Support AI_NUMERICSERV to disable getservbyname.
23736 (getnameinfo): New function, only supports
23737 NI_NUMERICHOST|NI_NUMERICSERV for now.
23739 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
23740 only have some of them. Add AI_NUMERICSERV. Add prototype for
23743 2006-06-28 Eric Blake <ebb9@byu.net>
23745 * modules/wcwidth: New file.
23746 * modules/mbchar (Depends-on): Add wcwidth.
23747 * modules/mbswidth (Depends-on): Add wcwidth.
23748 * MODULES.html.sh: Add wcwidth.
23750 2006-06-28 Eric Blake <ebb9@byu.net>
23752 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
23753 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
23755 2006-06-28 Eric Blake <ebb9@byu.net>
23757 * lib/xvasprintf.h: Fix comments.
23759 2006-06-28 Eric Blake <ebb9@byu.net>
23761 * lib/mbchar.h (wcwidth): Include wcwidth.h.
23762 * lib/mbswidth.c (wcwidth): Move from here...
23763 * lib/wcwidth.h: ...to this new file.
23765 2006-06-28 Derek R. Price <derek@ximbiot.com>
23767 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
23769 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
23771 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
23773 2006-06-28 Derek R. Price <derek@ximbiot.com>
23775 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
23776 Autoconf 2.60 says this stuff was obsolete.
23778 2006-06-28 Bruno Haible <bruno@clisp.org>
23780 * modules/wcwidth (Files): Add m4/wchar_t.m4.
23782 2006-06-28 Bruno Haible <bruno@clisp.org>
23784 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
23787 2006-06-28 Bruno Haible <bruno@clisp.org>
23789 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
23790 declaration for wcwidth.
23791 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
23793 2006-06-28 Bruno Haible <bruno@clisp.org>
23795 * lib/mkdtemp.c [MINGW]: Include <io.h>.
23796 (mkdir): Define using _mkdir.
23798 2006-06-28 Bruno Haible <bruno@clisp.org>
23800 * lib/getaddrinfo.h: Fix POSIX URL.
23801 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
23803 (use_win32_p): Make static.
23804 (getaddrinfo): Reject service name if it is empty or does not consist
23805 solely of decimal digits, or if its value is > 65535.
23806 (getnameinfo): Remove useless casts.
23808 2006-06-27 Simon Josefsson <jas@extundo.com>
23810 * modules/sys_select: New file, suggested by Bruno Haible, Paul
23811 Eggert and Martin Lambers.
23813 2006-06-27 Simon Josefsson <jas@extundo.com>
23815 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
23816 Eggert and Martin Lambers.
23818 2006-06-27 Bruno Haible <bruno@clisp.org>
23820 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
23821 result to 0, not to empty.
23822 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
23824 2006-06-27 Bruno Haible <bruno@clisp.org>
23826 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
23828 2006-06-26 Simon Josefsson <jas@extundo.com>
23830 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
23833 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
23835 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
23836 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
23837 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
23839 2006-06-26 Mark D. Baushke <mdb@gnu.org>
23841 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
23843 2006-06-26 Bruno Haible <bruno@clisp.org>
23845 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
23847 2006-06-26 Bruno Haible <bruno@clisp.org>
23849 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
23851 2006-06-26 Bruno Haible <bruno@clisp.org>
23853 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
23854 SGI C compiler in pre-C99 mode.
23855 Suggested by Mark D. Baushke and Larry Jones.
23857 2006-06-26 Bruno Haible <bruno@clisp.org>
23859 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
23861 Reported by Mark D. Baushke and Larry Jones.
23863 2006-06-26 Bruno Haible <bruno@clisp.org>
23865 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
23867 Suggested by Mark D. Baushke and Larry Jones.
23869 2006-06-23 Simon Josefsson <jas@extundo.com>
23870 Bruno Haible <bruno@clisp.org>
23872 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
23873 Emit mostlyclean-local rule.
23874 (func_emit_tests_Makefile_am): Likewise.
23875 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
23877 2006-06-23 Mark D. Baushke <mdb@gnu.org>
23879 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
23881 2006-06-23 Bruno Haible <bruno@clisp.org>
23883 * tests/test-stdint.c: Update to match ISO C 99 Technical
23886 2006-06-23 Bruno Haible <bruno@clisp.org>
23888 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
23890 2006-06-23 Bruno Haible <bruno@clisp.org>
23892 * lib/stdint_.h: Treat IRIX like OpenBSD.
23894 2006-06-23 Bruno Haible <bruno@clisp.org>
23896 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
23897 ISO C 99 Technical Corrigendum 1.
23899 2006-06-22 Simon Josefsson <jas@extundo.com>
23901 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
23904 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
23906 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
23907 needed. Some compiler complained about some of them. Problem reported
23909 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
23911 2006-06-21 Simon Josefsson <jas@extundo.com>
23913 * tests/test-getaddrinfo.c: New file.
23915 * modules/getaddrinfo-tests: New file.
23917 * MODULES.html.sh: Add inet_pton.
23919 * modules/inet_pton: New file.
23921 2006-06-21 Simon Josefsson <jas@extundo.com>
23923 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
23924 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
23925 of using the (limited) gnulib implementation on Windows XP.
23927 * m4/inet_pton.m4: New file.
23929 2006-06-21 Simon Josefsson <jas@extundo.com>
23931 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
23934 * lib/socket_.h: Don't define WINVER.
23936 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
23937 slightly modified to work in gnulib.
23939 2006-06-21 Simon Josefsson <jas@extundo.com>
23941 * doc/gnulib.texi (Windows sockets): Add.
23943 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
23945 * lib/read-file.c (fread_file): Start with buffer allocation of
23946 0 bytes rather than 1 byte; this simplifies the code.
23947 Don't invoke feof; it's not needed. Refactor to avoid duplicate
23948 code to free buffer and save/restore errno.
23949 (internal_read_file): Remove unused local.
23951 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
23953 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
23954 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
23955 Problem reported by Denis Excoffier in
23956 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
23958 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
23960 * modules/sys_socket, modules/socklen: Include sys/types since
23961 FreeBSD 4.x's sys/socket.h needs it.
23963 2006-06-19 Simon Josefsson <jas@extundo.com>
23965 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
23967 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
23969 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
23971 2006-06-19 Bruno Haible <bruno@clisp.org>
23973 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
23974 and FULL_PATH_INTTYPES_H in angle brackets.
23975 Reported by Mark D. Baushke <mdb@gnu.org>.
23977 2006-06-17 Eric Blake <ebb9@byu.net>
23979 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
23982 2006-06-17 Bruno Haible <bruno@clisp.org>
23984 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
23987 2006-06-17 Bruno Haible <bruno@clisp.org>
23989 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
23990 whether errno is declared. Assume <errno.h> declares errno.
23992 2006-06-17 Bruno Haible <bruno@clisp.org>
23994 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
23996 2006-06-17 Bruno Haible <bruno@clisp.org>
23998 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
23999 problem on Solaris 2.5.1.
24001 2006-06-16 Eric Blake <ebb9@byu.net>
24003 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24004 * lib/unicodeio.c [!defined errno]: Likewise.
24005 * lib/strtol.c [!defined errno]: Likewise.
24006 * lib/strtod.c [!defined errno]: Likewise.
24008 2006-06-15 Eric Blake <ebb9@byu.net>
24010 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24012 2006-06-15 Eric Blake <ebb9@byu.net>
24014 * config/srclist.txt (ssize_t.m4): Lose sync.
24016 2006-06-15 Bruno Haible <bruno@clisp.org>
24018 * modules/stdint (Files): Include m4/full-header-path.m4,
24019 m4/size_max.m4, m4/wchar_t.m4.
24020 (Makefile.am): Many more substitutions.
24021 * modules/stdint-tests: New file.
24022 * tests/test-stdint.c: New file.
24024 2006-06-15 Bruno Haible <bruno@clisp.org>
24026 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24027 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24028 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24029 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24030 gl_CHECK_TYPE_SAME): New macros.
24032 2006-06-15 Bruno Haible <bruno@clisp.org>
24034 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24036 2006-06-15 Bruno Haible <bruno@clisp.org>
24038 * lib/stdint_.h: Rewritten to be fully auto-configured.
24039 Fixes bug on HP-UX/IA64.
24041 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
24043 * lib/getdate.y (__attribute__): Don't define if already defined.
24044 Problem reported by Larry Jones.
24045 * lib/utimens.c (__attribute__): Likewise.
24047 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
24049 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24050 reported by Andreas Schwab.
24052 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24053 Bruno Haible <bruno@clisp.org>
24055 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24056 check for the declaration of strnlen and a run test that exposes the
24057 AIX 5.1 strnlen bug. In the failure case, #define strndup to
24060 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24061 Bruno Haible <bruno@clisp.org>
24063 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24065 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24067 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24068 compile test, for Tru64 4.0D.
24070 2006-05-28 Karl Berry <karl@gnu.org>
24072 * config/srclist.txt (printf-args.c): lose sync.
24074 2006-05-26 Martin Lambers <marlam@marlam.de>
24076 * lib/getpass.c: Updates the test for the native W32 API, and adds
24077 missing includes, thus fixing compilation warnings.
24079 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
24081 * lib/exclude.c (exclude_fnmatch): New function.
24082 (excluded_file_name): Call exclude_fnmatch.
24083 * lib/exclude.h (excluded_file_name): New prototype
24085 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
24087 * lib/tempname.c (small_open, large_open): New macros.
24088 (__open, __open64) [!_LIBC]: Remove.
24089 (__gen_tempname): Use small_open and large_open instead of __open
24090 and __open64. This fixes a portability bug on HP-UX 11.11i
24091 reported by Simon Wing-Tang in
24092 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24094 2006-05-24 Bruno Haible <bruno@clisp.org>
24096 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
24097 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
24098 Reported by Thorsten Maerz <torte@netztorte.de> via
24099 Aaron Stone <aaron@serendipity.cx>.
24101 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
24103 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
24104 gl_ rather than jm_. Link, don't run, so that cross-compiles are
24105 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
24106 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
24107 not really conditional on the cache.
24108 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
24110 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
24112 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
24113 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
24114 (my_usleep): Don't mishandle maximum value.
24116 2006-05-19 Jim Meyering <jim@meyering.net>
24118 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
24120 2006-05-17 Bruno Haible <bruno@clisp.org>
24122 Cygwin portability.
24123 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
24125 2006-05-17 Bruno Haible <bruno@clisp.org>
24127 * lib/stdint_.h: Fix recognition of Cygwin.
24129 2006-05-15 Bruno Haible <bruno@clisp.org>
24131 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
24132 on libtool patch by Ralf Wildenhues.
24134 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
24136 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
24137 test for C99 conformance; (bool) 0.5 is an integer constant
24138 expression, but (bool) -0.5 is not. Problem reported by Fedor
24139 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
24141 2006-05-11 Simon Josefsson <jas@extundo.com>
24143 * m4/xvasprintf.m4: Fix obvious typo.
24145 2006-05-11 Jim Meyering <jim@meyering.net>
24147 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
24150 2006-05-10 Simon Josefsson <jas@extundo.com>
24152 * lib/md4.c: Typo fix, update copyright years.
24153 (K1, K2): Don't use L because it turn computations into 64-bit on
24156 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
24158 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
24159 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
24160 unwanted sign propagation, e.g., on hosts with 64-bit int.
24161 There still are some problems with reeelly weird theoretical hosts
24162 (e.g., 33-bit int) but it's not worth worrying about now.
24163 * lib/sha1.c (rol): Likewise.
24164 (K1, K2, K3, K4): Remove unnecessary L suffix.
24166 2006-05-10 Bruno Haible <bruno@clisp.org>
24168 * lib/des.c: Cast to avoid warnings.
24170 2006-05-09 Bruno Haible <bruno@clisp.org>
24172 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
24173 (Depends-on): Depend also on xsize, stdarg.
24174 (configure.ac): Add gl_XVASPRINTF.
24176 2006-05-09 Bruno Haible <bruno@clisp.org>
24178 * m4/xvasprintf.m4: New file.
24180 2006-05-09 Bruno Haible <bruno@clisp.org>
24182 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
24183 (EOVERFLOW): Define fallback value.
24184 (xstrcat): New function.
24185 (xvasprintf): Recognize the special case of a string concatenation.
24187 2006-05-08 Eric Blake <ebb9@byu.net>
24189 * gnulib-tool (func_version): Base copyright year on CVS date.
24190 (func_emit_copyright_notice): New function.
24191 (func_emit_lib_Makefile_am): Use it.
24192 (func_emit_tests_Makefile_am): Likewise.
24193 (func_import): Likewise.
24195 2006-05-08 Bruno Haible <bruno@clisp.org>
24197 * modules/stdarg: New file.
24198 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
24200 2006-05-08 Bruno Haible <bruno@clisp.org>
24202 * m4/stdarg.m4: New file, from GNU gettext.
24204 2006-05-08 Bruno Haible <bruno@clisp.org>
24206 * config/srclist.txt (build-aux/config.rpath): different from latest
24209 2006-05-08 Bruno Haible <bruno@clisp.org>
24211 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
24213 2006-05-05 Jim Meyering <jim@meyering.net>
24215 * m4/warning.m4: New file, derived from bison's file by the same name.
24217 2006-05-03 Bruno Haible <bruno@clisp.org>
24219 * lib/stdint_.h: Shorter URL.
24220 * lib/inttypes.h: Likewise.
24222 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
24224 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
24226 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
24228 * lib/verify.h: Document the internals better. Most of this change
24229 was written by Bruno Haible.
24231 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
24233 * doc/verify.texi: New file, partly based on a proposal by
24236 2006-05-02 Bruno Haible <bruno@clisp.org>
24238 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
24240 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
24242 2006-04-29 Bruno Haible <bruno@clisp.org>
24244 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
24245 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
24247 2006-04-29 Bruno Haible <bruno@clisp.org>
24249 * gnulib-tool: Make --update option actually work.
24251 2006-04-29 Bruno Haible <bruno@clisp.org>
24253 * doc/gcd.texi: New file.
24254 * doc/gnulib.texi: Include it.
24256 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
24258 * lib/getdate.y (get_date): When adding relative date, start with the
24259 initial time, not with the result of the first mktime call.
24261 2006-04-25 Bruno Haible <bruno@clisp.org>
24263 * gnulib-tool (func_import): Output the include directives in three
24264 blocks, sorted separately.
24265 Reported by Ben Pfaff <blp@cs.stanford.edu>.
24267 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
24269 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
24270 to define main with arguments, for C++. Reported by Eric Blake.
24271 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
24272 Prefer 'int main ()' to 'int main (void)', for C++.
24273 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24274 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
24275 for 'main', for C99 and C++.
24277 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
24279 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
24280 Don't assume that exit status -1 is valid.
24281 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24282 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24283 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24284 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
24285 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
24286 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
24287 not AC_TRY_RUN. Use return, not exit. Don't assume that
24288 functions can be used without declaring them, or that you can
24289 exit with status -1.
24290 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24292 2006-04-24 Karl Berry <karl@gnu.org>
24294 * config/srclist.txt (longdouble.m4): sync lost.
24296 2006-04-24 Eric Blake <ebb9@byu.net>
24298 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
24300 2006-04-24 Bruno Haible <bruno@clisp.org>
24302 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
24303 poll() implementation in AIX.
24304 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24306 2006-04-24 Bruno Haible <bruno@clisp.org>
24308 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
24309 assigned exactly once.
24311 2006-04-23 Claudio Fontana <claudio@gnu.org>
24312 Bruno Haible <bruno@clisp.org>
24314 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
24315 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
24318 2006-04-23 Bruno Haible <bruno@clisp.org>
24320 * modules/copy-file: Depend on unistd.
24321 * modules/execute: Likewise.
24322 * modules/fatal-signal: Likewise.
24323 * modules/findprog: Likewise.
24324 * modules/mkdtemp : Likewise.
24325 * modules/pipe: Likewise.
24326 * modules/wait-process: Likewise.
24328 2006-04-23 Bruno Haible <bruno@clisp.org>
24330 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
24331 condition was already detected.
24332 Reported by Ben Pfaff <blp@cs.stanford.edu>.
24334 2006-04-23 Bruno Haible <bruno@clisp.org>
24336 * lib/copy-file.c: Include <unistd.h> unconditionally.
24337 * lib/execute.c: Likewise.
24338 * lib/fatal-signal.c: Likewise.
24339 * lib/findprog.c: Likewise.
24340 * lib/mkdtemp.c: Likewise.
24341 * lib/pipe.h: Likewise.
24342 * lib/pipe.c: Likewise.
24343 * lib/wait-process.h: Likewise.
24345 2006-04-23 Bruno Haible <bruno@clisp.org>
24347 * gnulib-tool (func_usage): Fix --import description. Document
24349 (func_import): Create temporary file in a temporary directory, if
24350 --dry-run is specified. Silence errors from 'grep' when there are no
24351 m4 files in $m4dir.
24352 (func_create_testdir): Silence errors from 'grep' when there are no
24353 m4 files in $m4dir.
24354 Reported by Karl Berry <karl@freefriends.org>.
24356 2006-04-20 Bruno Haible <bruno@clisp.org>
24358 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
24359 one argument, so that the code will be portable to Autoconf 2.60.
24360 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
24361 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24362 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
24364 2006-04-19 Derek Price <derek@ximbiot.com>
24365 Eric Blake <ebb9@byu.net>
24367 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
24368 rather than "/full/path.h". Update comment to match. Shorten &
24369 generalize m4_translit call via AS_TR_CPP.
24371 2006-04-19 Derek Price <derek@ximbiot.com>
24372 Eric Blake <ebb9@byu.net>
24374 * lib/inttypes.h: Correct grammar in comment.
24376 2006-04-18 Derek Price <derek@ximbiot.com>
24377 Paul Eggert <eggert@cs.ucla.edu>
24379 * modules/inttypes: New file.
24380 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
24382 2006-04-18 Derek Price <derek@ximbiot.com>
24383 Paul Eggert <eggert@cs.ucla.edu>
24385 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
24388 2006-04-18 Derek Price <derek@ximbiot.com>
24389 Paul Eggert <eggert@cs.ucla.edu>
24391 * lib/inttypes.h: New file.
24392 * lib/strtoimax.c: Assume <inttypes.h>.
24394 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
24396 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
24397 isn't mounted. Problem reported by Kir Kolyshkin.
24399 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
24401 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
24402 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
24404 * lib/regex.h (RE_DUP_MAX): Update comment to match current
24407 2006-04-12 Eric Blake <ebb9@byu.net>
24409 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
24410 is now done automatically by the corresponding Autoconf macro.
24412 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
24414 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
24417 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
24419 Merge regex changes from libc, removing some of our
24420 POSIX-conformance changes that were rejected and redoing them in a
24421 less-intrusive way.
24423 * lib/regcomp.c (re_compile_internal, init_dfa):
24424 Length arg is now size_t, not Idx. All uses changed.
24425 (peek_token): Forward decl now says internal_function.
24426 (__re_error_msgid, __re_error_msgid_idx):
24427 Now static rather than extern with attribute_hidden.
24428 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
24429 For some reason libc prefers K&R style defns for external functions.
24430 (regerror) [!defined _LIBC]: Likewise.
24431 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
24432 (seek_collating_symbol_entry, lookup_collation_sequence_value):
24433 (build_range_exp, build_collating_symbol):
24434 Use K&R-style defn.
24435 (re_compile_fastmap): Use '\0' to memset, not 0.
24436 (utf8_sb_map): Make the calculations more obvious.
24437 (init_dfa, parse_bracket_exp, build_charclass_op):
24438 Call calloc and cast result, as glibc does.
24439 (init_word_char, fetch_token, peek_token, peek_token_bracket):
24440 (build_range_exp, build_collating_symbol):
24441 Now internal functions.
24443 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
24445 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
24446 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
24447 Don't depend on VMS; depend on __VMS instead, for POSIX
24448 namespace cleanness.
24449 (regoff_t): Define to ssize_t, not long int.
24451 Remove the REG_ macros named below. Instead, make the old names
24452 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
24454 (REG_BACKSLASH_ESCAPE_IN_LISTS):
24455 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
24456 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
24457 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
24458 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
24459 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
24460 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
24461 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
24462 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
24463 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
24464 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
24465 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
24466 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
24467 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
24468 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
24469 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
24470 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
24472 Remove. All uses replaced by the old RE_* names.
24473 (RE_BACKSLASH_ESCAPE_IN_LISTS):
24474 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
24475 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
24476 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
24477 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
24478 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
24479 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
24480 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
24481 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
24482 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
24483 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
24484 Don't bother having these macros be independent of each others'
24485 values, since they no longer exist in the POSIX name space.
24487 Rename the following member names back to their old names,
24488 unless !__USE_GNU_REGEX. All uses changed back.
24489 (buffer): Renamed from re_buffer.
24490 (allocated): Renamed from re_allocated.
24491 (used): Renamed from re_used.
24492 (syntax): Renamed from re_syntax.
24493 (fastmap): Renamed from re_fastmap.
24494 (translate): Renamed from re_translate.
24495 (can_be_null): Renamed from re_can_be_null.
24496 (regs_allocated): Renamed from re_regs_allocated.
24497 (fastmap_accurate): Renamed from re_fastmap_accurate.
24498 (no_sub): Renamed from re_no_sub.
24499 (not_bol): Renamed from re_not_bol.
24500 (not_eol): Renamed from re_not_eol.
24501 (newline_anchor): Renamed from re_newline_anchor.
24502 (num_regs): Renamed from rm_num_regs.
24503 (start): Renamed from rm_start.
24504 (end): Renamed from rm_end.
24506 (free_state): Move up a bit.
24508 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
24509 #define to be empty.
24510 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
24511 when that is what is intended.
24512 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
24513 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
24515 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
24516 All uses changed back to re_malloc, etc. It's now the caller's
24517 responsibility to check for overflow; all callers changed.
24518 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
24519 (re_x2nrealloc): Remove.
24520 (free_state): Remove decl.
24522 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
24523 (re_set_registers, re_exec):
24524 Use K&R-style defn.
24526 2006-01-31 Roland McGrath <roland@redhat.com>
24528 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
24529 Reported by Mike Frysinger <vapier@gentoo.org>.
24531 2006-01-15 Andreas Jaeger <aj@suse.de>
24534 * lib/regex_internal.c (re_string_reconstruct): Adjust for
24535 build_wcs_upper_buffer change.
24536 (build_wcs_upper_buffer): Change return type.
24538 2005-12-10 Ulrich Drepper <drepper@redhat.com>
24540 * lib/regex_internal.h: Include <stdint.h> if available.
24542 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
24544 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
24546 2005-10-14 Ulrich Drepper <drepper@redhat.com>
24548 * lib/regcomp.c: Adjust for changed secondary hash function.
24550 2005-09-30 Ulrich Drepper <drepper@redhat.com>
24552 * lib/regex.h: Pretty printing.
24553 Clean up namespace a bit.
24555 2005-09-30 Jakub Jelinek <jakub@redhat.com>
24557 * lib/regexec.c (update_cur_sifted_state, check_arrival,
24558 check_arrival_add_next_nodes): Avoid using uninitialized variable.
24560 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
24561 Ulrich Drepper <drepper@redhat.com>
24564 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
24566 (bitset_word_t): Renamed from bitset_word. All uses changed.
24568 2005-09-22 Ulrich Drepper <drepper@redhat.com>
24571 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
24572 * lib/regcomp.c: Remove unnecessary uses of
24573 unsigned RE_TRANSLATE_TYPE.
24574 * lib/regex_internal.h: Likewise.
24575 * lib/regex_internal.c: Likewise.
24576 * lib/regexec.c: Likewise.
24577 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
24579 2005-09-07 Ulrich Drepper <drepper@redhat.com>
24581 * lib/regexec.c (find_recover_state): Remove unnecessary
24583 (transit_state_bkref): Make DFA a const pointer.
24584 (get_subexp): Likewise.
24585 (check_arrival): Likewise.
24586 (update_cur_sifted_state): Likewise.
24587 (re_search_internal): Likewise.
24588 (prune_impossible_nodes): Likewise.
24589 (acquire_init_state_context): Likewise.
24590 (proceed_next_node): Likewise.
24591 (set_regs): Likewise.
24592 (free_fail_stack_return): Likewise.
24593 (check_arrival_expand_ecl): Mark DFA parameter as const.
24594 (check_arrival_expand_ecl_sub): Likewise.
24595 (check_subexp_limits): Likewise.
24596 (sub_epsilon_src_nodes): Likewise.
24597 (add_epsilon_src_nodes): Likewise.
24598 (merge_state_array): Likewise.
24599 (update_regs): Likewise.
24600 (build_trtable): Likewise.
24601 (sift_states_backward): Mark MCTX parameter as const.
24602 (build_sifted_states): Likewise.
24603 (update_cur_sifted_state): Likewise.
24604 (sift_states_mkref): Likewise.
24605 (check_arrival_expand_ecl): Mark eclosure as const.
24606 (check_dst_limits_calc_pos_1): Likewise.
24607 * lib/regex_internal.h (re_match_context_t): Make dfa a const
24610 2005-09-06 Ulrich Drepper <drepper@redhat.com>
24612 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
24613 (transit_state_sb): Likewise.
24614 (transit_state_mb): Likewise.
24615 (sift_states_iter_mb): Likewise.
24616 (check_arrival_add_next_nodes): Likewise.
24617 (check_node_accept_bytes): Change first parameter to pointer-to-const.
24618 [_LIBC] (re_search_2_stub): Use mempcpy.
24620 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
24621 mbrtowc for very simple UTF-8 case.
24623 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
24624 a pointer-to-const.
24625 (re_acquire_state_context): Likewise.
24626 * lib/regex_internal.h: Adjust prototypes.
24628 * lib/regex.c: Prevent using C++ compilers.
24630 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
24631 (re_acquire_state_context): Likewise.
24633 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
24635 * modules/regex (Depends-on): Add ssize_t.
24637 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
24639 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
24642 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
24644 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
24646 2006-03-29 Mark D. Baushke <mdb@gnu.org>
24647 Bruno Haible <bruno@clisp.org>
24649 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
24650 <sys/types.h> and <inttypes.h>.
24652 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24654 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
24655 `__error_t_defined', so argp.h will not typedef the former.
24657 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
24659 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
24660 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
24661 glibc names. Even if glibc is changed to conform to POSIX, the
24662 traditional names will be available anyway, since regex depends on
24663 the extensions module. Also, fix a longstanding typo in the
24664 implementation of Spencer ERE test #75 from grep 2.3. Problems
24665 reported by Emanuele Giaquinta. Also, change sense of cached
24666 variable, so that the message makes sense.
24668 2006-03-24 Simon Josefsson <jas@extundo.com>
24670 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
24671 including some doc fixes.
24672 (base64_encode_alloc): Fix +1 bug on allocation failures.
24674 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24676 * lib/base64.c (base64_encode): Do not read past end of array with
24677 unsanitized input on systems with CHAR_BIT > 8.
24679 2006-03-24 Eric Blake <ebb9@byu.net>
24681 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
24683 2006-03-22 Karl Berry <karl@gnu.org>
24685 * config/srclist.txt (*setenv.[ch]): get from coreutils.
24686 * config/srclistvars.sh (COREUTILS): new var.
24688 2006-03-17 Jim Meyering <jim@meyering.net>
24690 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
24691 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
24693 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
24695 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
24696 no longer needs it. Instead, check that regoff_t is as least
24697 as wide as ptrdiff_t.
24699 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
24700 so that our regex.h stays compatible with the installed regex.
24701 This is helpful for installers who configure --without-included-regex.
24702 Problem reported by Emanuele Giaquinta.
24704 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
24706 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
24707 Typedef to long int, not to off_, as POSIX will likely change
24710 2006-03-15 Eric Blake <ebb9@byu.net>
24712 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
24714 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
24716 * lib/argp-help.c (validate_uparams): Fix typo
24717 * lib/argp-parse.c (argp_default_options): Consistently begin help
24718 messages with a lowercase letter.
24720 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
24722 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
24723 overrun buffers and shouldn't be used (much as gets shouldn't be
24725 * lib/time_r.c (asctime_r, ctime_r): Likewise.
24727 2006-03-08 Simon Josefsson <jas@extundo.com>
24729 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
24730 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24732 2006-03-08 Simon Josefsson <jas@extundo.com>
24734 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
24735 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24737 2006-03-08 Simon Josefsson <jas@extundo.com>
24739 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
24740 signal that configure disabled the device.
24742 2006-03-08 Simon Josefsson <jas@extundo.com>
24744 * build-aux/maint.mk: Fix refresh-po, to handle no translated
24747 2006-03-07 Simon Josefsson <jas@extundo.com>
24749 * modules/getopt (Depends-on): Add unistd.
24751 * modules/unistd: New file.
24753 2006-03-07 Simon Josefsson <jas@extundo.com>
24755 * modules/gc-random: New file.
24757 2006-03-07 Simon Josefsson <jas@extundo.com>
24759 * m4/unistd_h.m4: New file.
24761 2006-03-07 Simon Josefsson <jas@extundo.com>
24763 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
24764 test to be side-effect free by storing the result in the cache
24765 variable gl_cv_lib_readline, and moving the assignment of
24766 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
24767 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24769 2006-03-07 Simon Josefsson <jas@extundo.com>
24771 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
24772 error on missing devices (the functions will return an error).
24774 * m4/gc.m4: Move random stuff to gc-random.m4
24776 2006-03-07 Simon Josefsson <jas@extundo.com>
24778 * lib/unistd_.h: New file.
24780 2006-03-07 Simon Josefsson <jas@extundo.com>
24782 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
24784 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
24786 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
24787 Problem reported by Juan Manuel Guerrero.
24789 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
24791 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
24793 * lib/getlogin_r.c: Likewise.
24794 * lib/getlogin_r.h: Likewise.
24795 * lib/glob.c: Likewise.
24796 * lib/pagealign_alloc.c: Likewise.
24797 * lib/unistd_.h: Remove; no longer needed.
24799 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
24801 * MODULES.html.sh (Support for systems lacking POSIX:2001):
24803 * modules/c-stack (Depends-on): Add unistd.
24804 * modules/getlogin_r: Likewise.
24805 * modules/glob: Likewise.
24806 * modules/pagealign_alloc: Likewise.
24807 * modules/unistd (Files): Remove lib/unistd_.h.
24808 (EXTRA_DIST): Remove.
24809 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
24811 (MOSTLYCLEANFILES): Remove unistd.h-t.
24813 2006-03-03 Simon Josefsson <jas@extundo.com>
24815 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
24817 2006-03-03 Simon Josefsson <jas@extundo.com>
24819 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
24822 2006-03-03 Simon Josefsson <jas@extundo.com>
24824 * build-aux/maint.mk: Add indent target.
24826 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
24828 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
24829 our replacement poll.h in any case, to avoid a differing
24830 declaration from a system header. Seen on AIX.
24832 2006-03-01 Simon Josefsson <jas@extundo.com>
24834 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
24837 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
24839 * modules/gettime (Depends-on): Add extensions module.
24840 * modules/nanosleep (Depends-on): Likewise.
24841 * modules/settime (Depends-on): Likewise.
24843 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
24845 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
24846 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
24848 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24849 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
24851 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
24852 not "==". Reported by Ralf Wildenhues.
24854 2006-03-01 Karl Berry <karl@gnu.org>
24856 * doc/Copyright/request-*: new files, synced from gnuorg.
24858 2006-03-01 Karl Berry <karl@gnu.org>
24860 * config/srclist.txt (Copyright/*): new entries.
24862 2006-02-28 Simon Josefsson <jas@extundo.com>
24864 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
24866 2006-02-27 Simon Josefsson <jas@extundo.com>
24868 * lib/base64.h: Indent #define's. From Jim Meyering
24869 <jim@meyering.net>.
24871 2006-02-27 Jim Meyering <jim@meyering.net>
24873 Revert the change of 2006-02-24, so these files can continue
24874 to be sync'd from gettext.
24875 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
24878 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
24880 * modules/intprops: New file.
24881 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
24883 * modules/getloadavg (Files): Remove lib/intprops.h.
24884 (Depends-on): Add intprops.
24885 * modules/human: Likewise.
24886 * modules/inttostr: Likewise.
24887 * modules/openat: Likewise.
24888 * modules/sig2str: Likewise.
24889 * modules/userspec: Likewise.
24890 * modules/utimecmp: Likewise.
24891 * modules/xnanosleep: Likewise.
24892 * modules/xstrtol: Likewise.
24894 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
24896 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
24897 * modules/lock-tests (TESTS): Use $(EXEEXT).
24898 * modules/tls-tests: Likewise.
24899 * modules/argp-tests: Likewise.
24900 (check_PROGRAMS): New var, replacing...
24901 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
24903 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24905 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
24908 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
24910 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
24912 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24914 Sync from coreutils.
24915 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
24918 2006-02-22 Jim Meyering <jim@meyering.net>
24920 Sync from coreutils.
24921 * m4/chdir-safer.m4: New file.
24923 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
24925 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
24926 AT_FDCWD exceeds INT_MAX.
24927 * lib/openat.h (AT_FDCWD): Likewise.
24929 2006-02-17 Eric Blake <address@hidden>
24931 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
24933 2006-02-16 Simon Josefsson <jas@extundo.com>
24935 * modules/getaddrinfo (Depends-on): Add sys_socket.
24937 2006-02-15 Simon Josefsson <jas@extundo.com>
24939 * build-aux/maint.mk: Add dsyntax-check rule.
24941 2006-02-15 Eric Blake <ebb9@byu.net>
24943 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
24944 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
24945 'present but cannot compile' warnings on cygwin.
24946 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
24947 use ws2tcpip.h if sys/socket.h works.
24948 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
24949 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
24951 2006-02-14 Simon Josefsson <jas@extundo.com>
24953 * modules/maintainer-makefile (Files): Rename.
24955 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
24956 and (the local) Makefile.cfg to maint-cfg.mk.
24958 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
24961 * modules/maintainer-makefile: New module.
24963 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
24964 severaly stripped to make it possible to build it up from scratch
24965 with reliable tests.
24967 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
24968 fixes to permit overriding the default actions when configure and
24969 makefile are not available.
24971 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
24973 Sync from coreutils.
24974 * modules/lstat (Depends-on): Don't depend on xalloc.
24975 (License): Change from GPL to LGPL, since this is now simply a
24976 replacement for a libc function.
24978 2006-02-14 Jim Meyering <jim@meyering.net>
24980 Sync from coreutils.
24982 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
24983 failure on deficient systems, and simplify gnulib lgpl dependencies.
24984 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
24985 xmalloc/lstat combination. Based on a patch from Bruno Haible.
24987 * lib/xalloc-die.c: Remove unused definition of N_.
24989 2006-02-14 Jim Meyering <jim@meyering.net>
24991 Sync from coreutils.
24992 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
24993 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
24994 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
24995 double-quote uses of that variable, to accommodate the rare case in
24996 which getmntent is available in none of the libraries checked. This
24997 happens at least on FreeBSD 5.0.
24999 2006-02-13 Simon Josefsson <jas@extundo.com>
25001 * gnulib-tool (Usage): Fix --import, from
25002 karl@freefriends.org (Karl Berry).
25004 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
25006 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25008 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
25010 * lib/argp-namefrob.h: Restore changes accidentally lost during the
25011 "autoupdate" on 2005-12-12.
25013 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
25015 * modules/closeout (Depends-on): Remove atexit.
25017 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
25019 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25020 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25022 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
25024 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25025 __EXTENSIONS__ if this causes compilation to fail. Problem
25026 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25027 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25029 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
25031 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25032 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25033 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25036 2006-01-26 Simon Josefsson <jas@extundo.com>
25038 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25039 prototype is visible on mingw32.
25041 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25044 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25047 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
25049 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
25050 attempt to open for write; this always fails, at least on POSIX
25051 hosts. This reinstates the 2006-01-09 change, which was
25052 inadvertently removed.
25054 2006-01-26 Bruno Haible <bruno@clisp.org>
25056 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25057 Reported by Paul Eggert.
25059 2006-01-26 Bruno Haible <bruno@clisp.org>
25060 Paul Eggert <eggert@cs.ucla.edu>
25062 * lib/stdbool_.h (_Bool)
25063 [(! (defined __cplusplus || defined __BEOS__)
25064 && !defined __GNUC__
25065 && !(defined __HP_cc || defined __xlc__
25066 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25067 || defined __sgi))]:
25068 #define to signed char in these cases too; this simplifies
25069 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25070 etc., separately) and makes it more conservative.
25072 2006-01-25 Simon Josefsson <jas@extundo.com>
25074 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25075 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
25076 ws2tcpip.h with WINVER=0x0501. All for mingw32.
25078 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
25080 * lib/argp-namefrob.h: Bugfix. Remove stray #
25082 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
25084 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25085 so that we test the test.
25086 Check for yet another HP-UX cc bug involving *bool |= bool.
25088 2006-01-25 Karl Berry <karl@gnu.org>
25090 * config/srclist.txt (vasnprintf.c): sync lost.
25092 2006-01-25 Jim Meyering <jim@meyering.net>
25094 Sync from the stable (b5) branch of coreutils:
25096 * lib/fts.c (fts_children): Don't let close() clobber errno from
25099 * lib/fts.c (fts_stat): When following a symlink-to-directory,
25100 don't necessarily interpret stat-fails+lstat-succeeds as indicating
25101 a dangling symlink. That can also happen at least for ELOOP.
25102 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
25103 FYI, this bug predates the inclusion of fts.c in coreutils.
25105 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
25106 in their own block, so pre-c99 compilers don't object.
25108 Avoid the double-free (first in fts_read, second in fts_close) that
25109 would occur when an `active' directory is made inaccessible (e.g.,
25110 via chmod a-x) during a traversal.
25111 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25112 before returning. Reproduce this failure by
25113 mkdir -p a/b; cd a; chmod a-x . b
25114 Reported by Stavros Passas.
25116 2006-01-25 Jim Meyering <jim@meyering.net>
25118 * lib/fileblocks.c: Remove more useless parentheses.
25119 * lib/readutmp.h: Likewise.
25121 2006-01-25 Bruno Haible <bruno@clisp.org>
25123 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
25125 Reported by Paul Eggert.
25127 2006-01-25 Bruno Haible <bruno@clisp.org>
25129 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
25130 rid of a trap command. For Solaris sh.
25131 Reported by Mark D. Baushke <mdb@gnu.org>.
25133 2006-01-24 Simon Josefsson <jas@extundo.com>
25135 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
25138 2006-01-24 Karl Berry <karl@gnu.org>
25140 * config/srclist.txt (argp-namefrob.h): sync lost.
25142 2006-01-24 Jim Meyering <jim@meyering.net>
25144 * modules/openat (Files): Add lib/intprops.h.
25145 From Mark D. Baushke.
25147 2006-01-24 Jim Meyering <jim@meyering.net>
25149 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
25150 Reported by Mark D. Baushke.
25152 2006-01-24 Jim Meyering <jim@meyering.net>
25154 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
25156 2006-01-24 Bruno Haible <bruno@clisp.org>
25158 * modules/strnlen (Maintainer): Change from glibc to all.
25160 2006-01-24 Bruno Haible <bruno@clisp.org>
25162 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
25163 Patch by Paul Eggert.
25165 2006-01-24 Bruno Haible <bruno@clisp.org>
25167 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
25169 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
25172 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
25173 'signed char' to avoid problems with the built-in _Bool type.
25174 Reported by Paul Eggert on 2005-11-26.
25176 2006-01-24 Bruno Haible <bruno@clisp.org>
25178 * gnulib-tool (func_import): Avoid constructing complicated sed
25179 expressions inside backquote.
25180 Report and solution by Mark D. Baushke <mdb@gnu.org>.
25182 2006-01-23 Ulrich Drepper <drepper@redhat.com>
25184 These changes imported from libc.
25185 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
25186 test and two separate function calls.
25187 * lib/strndup.c (__strndup): Add libc_hidden_def.
25189 2006-01-23 Simon Josefsson <jas@extundo.com>
25191 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
25192 Remove the test_*_SOURCES variable: automake infers it by default.
25193 * modules/tls-tests: Likewise.
25195 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
25197 Work around porting bugs reported by Dieter in
25198 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
25199 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
25200 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
25201 Include "getopt.h" first, to check interface.
25202 (getenv): Declare only if defined HAVE_DECL_GETENV &&
25204 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
25205 (__strndup): Revert to K&R-style function dfns, the glibc style.
25206 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
25207 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
25208 Include strnlen.h first, to get prototype properly.
25209 (strnlen): Renamed from __strnlen.
25212 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
25214 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
25216 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
25218 * config/srclist.txt: Adjust to reflect glibc reorganization.
25219 This affects only comments.
25221 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25223 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
25224 Reported by Bruce Korb <bkorb@gnu.org>.
25226 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
25228 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
25229 to pacify gcc -Wswitch-default.
25231 2006-01-22 Bruno Haible <bruno@clisp.org>
25233 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
25234 temporary buffer for sprintf, take into account the precision also
25235 for 'd', 'i', 'u', 'o', 'x', 'X'.
25237 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
25239 * modules/argp-tests: New module
25240 * tests/test-argp.c: New file
25241 * tests/test-argp-2.sh: New file
25243 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
25245 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
25246 (__argp_base_name): Removed
25247 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
25249 (__argp_base_name): Provide macro definition or extern declaration
25250 depending on the configuration
25252 2006-01-20 Simon Josefsson <jas@extundo.com>
25254 * modules/inet_ntop (Depends-on): Depend on sys_socket.
25256 2006-01-20 Simon Josefsson <jas@extundo.com>
25258 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
25260 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
25262 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
25263 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
25264 Suggested by Bruno Haible.
25266 2006-01-20 Karl Berry <karl@gnu.org>
25268 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
25269 until changes propagate, I guess.
25271 2006-01-19 Simon Josefsson <jas@extundo.com>
25273 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
25275 2006-01-19 Simon Josefsson <jas@extundo.com>
25277 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
25279 2006-01-19 Simon Josefsson <jas@extundo.com>
25281 * gnulib-tool: Set check_PROGRAMS.
25283 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25284 modules/des-tests, modules/gc-arcfour-tests,
25285 modules/gc-arctwo-tests, modules/gc-des-tests,
25286 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25287 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25288 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25289 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25290 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25291 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
25292 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
25295 2006-01-18 Simon Josefsson <jas@extundo.com>
25297 * modules/socklen (Depends-on): Depend on sys_socket.
25299 2006-01-18 Simon Josefsson <jas@extundo.com>
25301 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25302 modules/des-tests, modules/gc-arcfour-tests,
25303 modules/gc-arctwo-tests, modules/gc-des-tests,
25304 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25305 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25306 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25307 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25308 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25309 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
25310 $(EXEEXT) to automake TESTS variable, for mingw32.
25312 2006-01-17 Simon Josefsson <jas@extundo.com>
25314 * modules/socklen (Include): Need sys/socket.h.
25316 2006-01-17 Bruno Haible <bruno@clisp.org>
25318 * modules/ssize_t (Include): Add <sys/types.h>.
25320 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
25322 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
25323 it's not portable and it doesn't work with cross-compiles.
25324 Problem reported by Bruno Haible. Fix missing-$ typo in
25325 'test "gl_cv_ignore_unused_libraries" ...' that prevented
25326 -zignore from being used with Sun's C compiler.
25328 2006-01-12 Simon Josefsson <jas@extundo.com>
25330 * lib/base64.c: Fix warning, reported by Bruno Haible
25331 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
25333 2006-01-12 Bruno Haible <bruno@clisp.org>
25335 * modules/ldd: New file.
25336 * build-aux/ldd.sh.in: New file.
25337 * MODULES.html.sh (Support for building libraries and executables): Add
25340 2006-01-12 Bruno Haible <bruno@clisp.org>
25342 * m4/ldd.m4: New file.
25344 2006-01-12 Bruno Haible <bruno@clisp.org>
25346 * gnulib-tool (func_import, func_create_testdir): Don't go into an
25347 endless loop while replacing $auxdir with build-aux.
25349 2006-01-11 Simon Josefsson <jas@extundo.com>
25351 * lib/stdint_.h (SIZE_MAX): Add missing (.
25353 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
25355 Sync from coreutils.
25356 * lib/md5.c: Fix commentary typos.
25357 (alignof, UNALIGNED_P): No need for a GCC-specific version.
25358 * lib/md5.h (__attribute__): Remove; unused.
25359 * lib/sha1.c: Fix commentary to match md5 better.
25360 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
25361 so that we don't need to worry about alignment. All uses changed.
25362 This merges the 2005-10-28 md5 change into sha1.
25364 2006-01-11 Jim Meyering <jim@meyering.net>
25366 Sync from coreutils.
25367 * lib/md5.c (OP): Fix spacing.
25369 2006-01-11 Bruno Haible <bruno@clisp.org>
25371 Ensure automatic ordering between gl_LOCK and gl_ARGP.
25372 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
25373 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
25375 2006-01-11 Bruno Haible <bruno@clisp.org>
25377 Ensure automatic ordering between gl_LOCK and gl_ARGP.
25378 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
25379 the "early" section as well.
25381 2006-01-11 Bruno Haible <bruno@clisp.org>
25383 Avoid "ar: no archive members specified" error on MacOS X.
25384 * gnulib-tool (func_modules_add_dummy): New function.
25385 (func_import, func_create_testdir): Invoke it.
25387 2006-01-11 Bruno Haible <bruno@clisp.org>
25389 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
25390 with $auxdir in AC_CONFIG_FILES statements.
25392 2006-01-11 Bruno Haible <bruno@clisp.org>
25394 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25395 Initialize also noinst_HEADERS to empty.
25397 2006-01-11 Bruno Haible <bruno@clisp.org>
25399 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
25401 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
25404 2006-01-11 Bruno Haible <bruno@clisp.org>
25406 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
25407 overridable by the user.
25408 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25410 2006-01-10 Simon Josefsson <jas@extundo.com>
25412 * modules/sys_socket: New file.
25414 2006-01-10 Simon Josefsson <jas@extundo.com>
25416 * m4/sys_socket_h.m4: New file.
25418 2006-01-10 Simon Josefsson <jas@extundo.com>
25420 * lib/socket_.h: New file.
25422 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
25424 * modules/readutmp (Maintainer): Add myself.
25426 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
25428 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
25429 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
25430 People who are still concerned with buggy memcmp implementations
25431 can invoke gl_FUNC_MEMCMP themselves.
25433 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
25435 * lib/regex_internal.h (BITSET_WORD_BITS):
25436 Work around a bug in 64-bit PGC (before version 6.1-2), where the
25437 preprocessor mishandles large unsigned values as if they were signed.
25438 Problem reported by Claudio Fontana in
25439 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
25441 2006-01-10 Jim Meyering <jim@meyering.net>
25443 Avoid the double-free (first in fts_read, second in fts_close) that
25444 would occur when an `active' directory is made inaccessible (e.g.,
25445 via chmod a-x) during a traversal.
25446 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25447 before returning. Reproduce this failure by
25448 mkdir -p a/b; cd a; chmod a-x . b
25449 Reported by Stavros Passas.
25451 Sync from coreutils.
25452 * lib/sha1.c: Tweak grammar in a comment.
25454 2006-01-10 Jim Meyering <jim@meyering.net>
25456 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
25457 Patch by Joerg Sonnenberger.
25459 2006-01-10 Bruno Haible <bruno@clisp.org>
25461 * modules/readutmp: Depend on module free.
25462 * modules/strtok_r: Depend on module restrict.
25464 2006-01-10 Bruno Haible <bruno@clisp.org>
25466 * modules/gettext (configure.ac): Add an invocation of
25467 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
25469 2006-01-10 Bruno Haible <bruno@clisp.org>
25471 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
25472 Reported by Werner Lemberg <wl@gnu.org>.
25474 2006-01-10 Bruno Haible <bruno@clisp.org>
25476 * lib/localcharset.c: Update from GNU gettext.
25478 2006-01-10 Bruno Haible <bruno@clisp.org>
25480 * lib/argp.h (__const): Remove macro. Use const instead.
25481 * lib/argp-fmtstream.h (__const): Likewise.
25482 * lib/glob_.h (__const): Remove macro.
25483 * lib/glob-libc.h: Use const instead of __const.
25485 2006-01-10 Bruno Haible <bruno@clisp.org>
25487 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
25489 Needed to avoid an automake error regarding the 'gettext' module.
25491 2006-01-09 Simon Josefsson <jas@extundo.com>
25493 * modules/inet_ntop (Depends-on): Add restrict.
25495 2006-01-09 Simon Josefsson <jas@extundo.com>
25497 * modules/gc-rijndael-tests (License): Put under LGPL.
25499 * modules/gc-des-tests (License): Likewise.
25501 * modules/gc-arcfour-tests (License): Likewise.
25503 * modules/gc-arctwo-tests (License): Likewise.
25505 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
25507 * modules/gc-hmac-sha1-tests (Files): Likewise.
25509 * modules/gc-hmac-md5-tests (License): Likewise.
25511 * modules/gc-sha1-tests (License): Likewise.
25513 * modules/gc-md5-tests (License): Likewise.
25515 * modules/gc-md4-tests (License): Likewise.
25517 * modules/gc-md2-tests (License): Likewise.
25519 * modules/gc-tests (License): Likewise.
25521 * modules/des-tests (License): Likewise.
25523 * modules/md4-tests (License): Likewise.
25525 * modules/md2-tests (License): Likewise.
25527 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
25529 Sync from coreutils:
25531 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
25532 * modules/lib-ignore: New file.
25533 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
25534 chdir-safer.m4, lchmod.m4.
25535 * modules/openat: Add mkdirat.c, openat-priv.h.
25537 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
25539 Sync from coreutils.
25540 * m4/lib-ignore.m4: New file.
25541 * m4/lchmod.m4: New file.
25543 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
25545 Sync from coreutils.
25546 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
25547 for write access: POSIX says that must fail.
25548 * lib/fts.c (diropen): Likewise.
25549 * lib/save-cwd.c (save_cwd): Likewise.
25550 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
25551 well, for minor improvements on hosts that lack O_DIRECTORY.
25552 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
25553 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
25554 Fall back on chown if open failed with EACCES.
25556 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
25557 Report an error at compile-time if only a 1-second nominal clock
25558 resolution is found.
25560 * lib/lchmod.h: New file.
25561 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
25562 (make_dir_parents): Use lchown rather than chown, and
25563 lchmod rather than chmod.
25565 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
25566 dummies too. Problem with "none" reported by Bob Proulx. Problem with
25567 "proc" reported by n0dalus.
25569 * lib/mountlist.c: Include <limits.h>.
25570 (dev_from_mount_options)
25571 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
25572 New function. It no longer assumes "dev=" has the System V meaning
25573 on Linux (since it doesn't). It also parses "dev=" more carefully.
25574 (read_file_system_list)
25575 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
25576 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
25579 * lib/posixtm.h (PDS_PRE_2000): New macro.
25580 * lib/posixtm.c (year): Arg is now syntax_bits rather than
25581 allow_century. All usages changed. Reject dates outside the range
25582 1969-1999 if PDS_PRE_2000 is used.
25584 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
25586 Sync from coreutils.
25587 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
25588 (Time of day items): Mention the possibility of leap seconds.
25589 Problem reported by Dr. David Alan Gilbert.
25591 2006-01-09 Jim Meyering <jim@meyering.net>
25593 Sync from coreutils.
25595 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
25597 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
25599 * lib/modechange.c (mode_compile): Reject an invalid mode string
25600 that starts with an octal digit. From Andreas Gruenbacher.
25602 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
25603 and dup to open_safer and dup_safer, respectively.
25604 (openat_permissive): Fix typo in comment.
25606 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
25607 "gettext.h"; either no longer needed or are guaranteed by openat.h.
25608 (_): Remove; no longer needed.
25609 (openat): Renamed from rpl_openat; no need for rpl_openat
25610 since openat.h renames openat for us.
25611 Replace most of the body with a call to openat_permissive,
25612 to avoid duplicate code.
25613 Port to (probably hypothetical) environments were mode_t is
25615 (openat_permissive): Require mode arg, so that we can check
25616 types better. Put it just after flags. Change cwd failure
25617 indicator from pointer-to-bool to pointer-to-errno-value.
25618 All callers changed.
25619 Invoke openat_save_fail and/or openat_restore_fail if
25620 cwd_errno is null, so that openat can call us.
25621 (openat_permissive, fdopendir, fstatat, unlinkat):
25622 Simplify errno handling to avoid some duplicate code,
25623 as it's OK to set errno on success.
25624 * lib/openat.h: Revamp code so that function macros depend on
25625 __OPENAT_PREFIX only, not also on AT_FDCWD.
25626 (openat_ro): Remove. Caller changed to use openat_permissive.
25627 (openat_permissive): Now a macro, if not a function.
25628 (openat_restore_fail, openat_save_fail): Now always functions,
25629 since mkdirat needs them even if __OPENAT_PREFIX is defined.
25631 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
25633 * lib/mkdirat.c: Include openat-priv.h.
25634 Remove definitions of macros defined therein.
25635 * lib/openat.c: Likewise.
25637 * lib/mkdirat.c (mkdirat): New file and function.
25638 * lib/openat.h (mkdirat): Declare.
25640 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
25642 * lib/openat.h (openat_permissive): Declare.
25643 (openat_ro): Define.
25645 * lib/openat.c (EXPECTED_ERRNO): New macro.
25646 (openat_permissive): New function -- used in remove.c rewrite.
25647 (all functions): Set errno just before returning, only if there
25648 was an actual failure.
25649 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
25651 Emulate openat-family functions using Linux's procfs, if possible.
25652 Idea and some code based on Ulrich Drepper's glibc changes.
25654 * lib/openat.c: (BUILD_PROC_NAME): New macro.
25655 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
25656 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
25657 before falling back on save_cwd and restore_cwd.
25658 (fdopendir, fstatat, unlinkat): Likewise.
25660 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
25661 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
25663 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
25664 as second argument to va_arg. Otherwise, some versions of gcc
25665 warn that `if this code is reached, the program will abort'.
25667 2006-01-09 Jim Meyering <jim@meyering.net>
25669 Sync from coreutils.
25670 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
25671 Require openat-priv.h.
25673 2006-01-09 Bruno Haible <bruno@clisp.org>
25675 * modules/strnlen (Include): Use strnlen.h.
25677 2006-01-09 Bruno Haible <bruno@clisp.org>
25679 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
25681 2006-01-09 Bruno Haible <bruno@clisp.org>
25683 * lib/sysexit_.h (EX_OK): New macro.
25684 Suggested by Martin Lambers <marlam@marlam.de>.
25686 2006-01-09 Bruno Haible <bruno@clisp.org>
25688 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
25689 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
25691 2006-01-09 Bruno Haible <bruno@clisp.org>
25693 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
25696 2006-01-09 Bruno Haible <bruno@clisp.org>
25698 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
25699 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
25700 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
25701 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
25703 2006-01-09 Bruno Haible <bruno@clisp.org>
25705 * build-aux/javacomp.sh.in: New file, moved from lib/.
25706 * modules/javacomp-script (Files): Update.
25707 (configure.ac): Add AC_CONFIG_FILES invocation.
25708 (EXTRA_DIST): Remove variable.
25710 * build-aux/javaexec.sh.in: New file, moved from lib/.
25711 * modules/javaexec (Files): Update.
25712 (configure.ac): Add AC_CONFIG_FILES invocation.
25713 (EXTRA_DIST): Remove javaexec.sh.in.
25715 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
25716 * modules/csharpcomp-script (Files): Update.
25717 (configure.ac): Add AC_CONFIG_FILES invocation.
25718 (EXTRA_DIST): Remove variable.
25720 * build-aux/csharpexec.sh.in: New file, moved from lib/.
25721 * modules/csharpexec (Files): Update.
25722 (configure.ac): Add AC_CONFIG_FILES invocation.
25723 (EXTRA_DIST): Remove csharpexec.sh.in.
25725 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
25727 Sync from coreutils.
25729 Add POSIX ACL support
25730 * lib/acl.h (copy_acl, set_acl): Add declarations.
25731 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
25732 systems other than Linux.
25733 (chmod_or_fchmod): New function: use fchmod when possible,
25734 and chmod otherwise.
25735 (file_has_acl): Add a POSIX ACL implementation, with a
25736 Linux-specific subcase.
25737 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
25738 S_ISVTX from one file to another. Fall back to fchmod/chmod when
25739 acls are unsupported.
25740 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
25741 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
25744 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
25746 Sync from coreutils.
25747 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
25749 2006-01-07 Bruno Haible <bruno@clisp.org>
25751 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
25754 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
25756 * lib/strftime.c (tzname): Don't declare if it is already #defined.
25757 Problem reported for Mingw by Mark Junker.
25759 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
25761 * README: Gnulib normally doesn't generate a tarball.
25763 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
25765 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
25766 long int, not int, for nanosecond counts, so that people who are
25767 used to POSIX struct timespec won't be surprised. Reported by Jim
25770 2005-12-28 Bruno Haible <bruno@clisp.org>
25772 * build-aux/config.rpath: Update from GNU gettext.
25774 2005-12-16 Jim Meyering <jim@meyering.net>
25776 * modules/fprintftime: New module.
25777 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
25779 2005-12-16 Jim Meyering <jim@meyering.net>
25781 * m4/fprintftime.m4: New file.
25783 2005-12-16 Jim Meyering <jim@meyering.net>
25785 * lib/fprintftime.c, lib/fprintftime.h: New files.
25787 2005-12-15 Simon Josefsson <jas@extundo.com>
25789 * modules/socklen (configure.ac): Fix M4 macro name, to align with
25792 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
25794 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
25795 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
25797 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
25799 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
25800 * lib/argp-help.c (fill_in_uparams): Check if the constructed
25801 struct uparams is valid. Fall back to the default values if it is
25804 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
25806 * modules/argp (Files): Add argp-pin.c
25807 (Depends-on): dirname
25808 (lib_SOURCES): Add argp-pin.c
25810 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
25812 * m4/argp.m4: Check if program_invocation_name and
25813 program_invocation_short_name are declared and define appropriate
25814 macros if they are not.
25816 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
25818 * lib/argp-help.c (__argp_base_name): New function
25819 (__argp_short_program_name): Rewrite using __argp_base_name
25820 * lib/argp-namefrob.h: Define program_invocation_name and
25821 program_invocation_short_name if requested
25822 (__argp_base_name): Add prototype
25823 * lib/argp-parse.c (argp_def): Use gettext wrappers
25824 (argp_default_parser): Use __argp_base_name
25825 * lib/argp-pin.c: New file. Defines program_invocation_name and
25826 program_invocation_short_name on systems that lack them.
25828 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
25830 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
25831 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
25832 porting problem reported by Georg Schwarz in
25833 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
25835 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
25837 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
25838 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
25839 porting problem reported by Georg Schwarz in
25840 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
25842 2005-12-05 Bruno Haible <bruno@clisp.org>
25844 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
25845 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
25846 Reported by Mark Junker <mjscod@gmx.de>.
25848 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
25850 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
25851 Use implementation from Albert Chin, with some
25852 comments/corrections by Stepan Kasal and myself.
25854 2005-12-02 Bruno Haible <bruno@clisp.org>
25856 * gnulib-tool (func_import): Accept GPLed build tool modules when
25858 * modules/csharpcomp-script: New file.
25859 * modules/csharpcomp: Depend on it.
25860 * modules/javacomp-script: New file.
25861 * modules/javacomp: Depend on it.
25862 Suggested by Simon Josefsson.
25864 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
25866 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
25867 statement, to work around an HP-UX 10.20 compiler bug reported by
25870 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
25872 * modules/savedir (Depends-on): Add openat.
25874 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
25876 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
25877 (uintmax_t) [defined uintmax_t]: Do not declare.
25878 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
25879 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
25880 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
25881 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
25882 sake of portability to weird hosts that C allows (though we don't
25883 know of any practical examples).
25885 * lib/savedir.h (fdsavedir): New decl.
25886 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
25887 contains most of the former guts of savedir.
25888 (savedir): Use savedirstream.
25889 Include "openat.h".
25891 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
25893 * modules/obstack (Files): Add m4/ulonglong.m4.
25894 Problem reported by Davide Angelocola.
25896 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
25898 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
25899 coreutils no longer futzes with rounding modes.
25901 2005-11-14 Jim Meyering <jim@meyering.net>
25903 * lib/mkstemp-safer.c: Include <config.h>, required for possible
25904 replacement of mkstemp.
25906 2005-11-10 Simon Josefsson <jas@extundo.com>
25908 * lib/readline.c: Remove EOL.
25910 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
25912 * modules/gethrxtime (Depends-on): Add gettime.
25914 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
25916 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
25917 or gettimeofday; no longer needed.
25919 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
25921 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
25923 (gethrxtime) [! (HAVE_NANOUPTIME
25924 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
25925 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
25926 our own approximation.
25928 2005-11-08 Eric Blake <ebb9@byu.net>
25930 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
25932 2005-11-08 Eric Blake <ebb9@byu.net>
25934 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
25936 2005-11-04 Bruno Haible <bruno@clisp.org>
25938 * gnulib-tool: Implement --update mode.
25940 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
25942 Fix porting problem reported by Theodoros V. Kalamatianos.
25943 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
25944 Don't assume that futimes failing means we must fail.
25946 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
25948 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
25949 variables to suggest the intended function of the PATH_MAX check.
25951 2005-10-30 Kean Johnston <jkj@sco.com>
25953 Trivial changes to support SCO systems.
25954 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
25956 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
25957 where __ptr is null when no I/O is pending.
25959 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
25961 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
25962 leave errno alone. Problem reported by Dmitry V. Levin.
25964 2005-10-28 Simon Josefsson <jas@extundo.com>
25966 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
25969 * tests/test-gc-md2.c, tests/test-md2.c: New files.
25971 * modules/md2, modules/md2-tests: New files.
25973 2005-10-28 Simon Josefsson <jas@extundo.com>
25975 * m4/inet_ntop.m4: More tests.
25977 * m4/gc-md2.m4, md2.m4: New file.
25979 2005-10-28 Simon Josefsson <jas@extundo.com>
25981 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
25982 "restrict" keywords, as per POSIX. Protect the function
25983 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
25984 Don't use K&R prototypes. Check the sprintf return values.
25985 Re-define EAFNOSUPPORT if not present. Indent.
25987 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
25988 suggested by Bruno Haible <bruno@clisp.org>.
25990 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
25992 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
25994 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
25997 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
25999 * lib/md2.h, lib/md2.c: New files.
26001 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
26003 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26004 errno alone. Problem reported by Frederic Jolliton.
26006 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
26008 * modules/verify (License): Change from GPL to LGPL. This is a
26009 tiny module and there are apparently near-equivalents that are
26010 under the BSD license.
26012 2005-10-24 Simon Josefsson <jas@extundo.com>
26014 * modules/sha1: Relicense to LGPL.
26016 2005-10-24 Simon Josefsson <jas@extundo.com>
26018 * lib/md4.h: Shrink buffer size, now that we changed the type.
26020 2005-10-23 Simon Josefsson <jas@extundo.com>
26022 * gnulib-tool (func_import): Fix --tests-base.
26024 2005-10-22 Simon Josefsson <jas@extundo.com>
26026 * modules/arcfour (Depends-on): Need stdint.
26028 2005-10-22 Simon Josefsson <jas@extundo.com>
26030 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26031 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
26033 2005-10-22 Simon Josefsson <jas@extundo.com>
26035 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26036 suggested by Bruno Haible <bruno@clisp.org>.
26038 2005-10-22 Simon Josefsson <jas@extundo.com>
26040 * lib/crc.h: Include stddef.h, for size_t.
26042 2005-10-22 Simon Josefsson <jas@extundo.com>
26044 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26045 arcfour_context struct (simplify test vector testing in GNU
26048 2005-10-21 Simon Josefsson <jas@extundo.com>
26050 * modules/des, modules/des-tests: New files.
26052 * modules/gc-des, modules/gc-des-tests: New files.
26054 * tests/test-des.c, tests/test-gc-des.c: New file.
26056 2005-10-21 Simon Josefsson <jas@extundo.com>
26058 * modules/arctwo, modules/arctwo-tests: New files.
26060 * tests/test-arctwo.c: New file.
26062 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26064 * tests/test-gc-arctwo.c: New file.
26066 2005-10-21 Simon Josefsson <jas@extundo.com>
26068 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26069 Bruno Haible <bruno@clisp.org>.
26071 * m4/gc-des.m4: New file.
26073 2005-10-21 Simon Josefsson <jas@extundo.com>
26075 * m4/arctwo.m4: New file.
26077 * m4/gc-arctwo.m4: New file.
26079 2005-10-21 Simon Josefsson <jas@extundo.com>
26081 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26084 2005-10-21 Simon Josefsson <jas@extundo.com>
26086 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26089 * lib/hmac-sha1.c (hmac_sha1): Likewise.
26091 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26092 Bruno Haible <bruno@clisp.org>.
26094 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26097 2005-10-21 Simon Josefsson <jas@extundo.com>
26099 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
26101 2005-10-21 Simon Josefsson <jas@extundo.com>
26103 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
26105 2005-10-21 Simon Josefsson <jas@extundo.com>
26107 * lib/des.h, lib/des.c: New files.
26109 * lib/gc-gnulib.c: Support DES.c
26111 2005-10-21 Simon Josefsson <jas@extundo.com>
26113 * lib/arctwo.h, lib/arctwo.c: New files.
26115 * lib/gc-gnulib.c: Support ARCTWO.
26117 2005-10-21 Simon Josefsson <jas@extundo.com>
26119 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
26120 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26122 2005-10-21 Simon Josefsson <jas@extundo.com>
26124 * gnulib-tool (func_import, func_create_testdir): Define automake
26125 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
26126 Makefile.am snippet),
26127 suggested by Bruno Haible <bruno@clisp.org>.
26129 * modules/gc (Makefile.am): Use it.
26131 2005-10-21 Bruno Haible <bruno@clisp.org>
26133 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
26136 2005-10-19 Simon Josefsson <jas@extundo.com>
26138 * tests/test-gc-rijndael.c: New file.
26140 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
26142 2005-10-19 Simon Josefsson <jas@extundo.com>
26144 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
26147 2005-10-19 Simon Josefsson <jas@extundo.com>
26149 * tests/test-gc-arcfour.c: New file.
26151 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
26153 2005-10-19 Simon Josefsson <jas@extundo.com>
26155 * modules/gc-md4, modules/gc-md4-tests: New file.
26157 * tests/test-gc-md4.c: New file.
26159 2005-10-19 Simon Josefsson <jas@extundo.com>
26161 * m4/gc-md4.m4: New file.
26163 2005-10-19 Simon Josefsson <jas@extundo.com>
26165 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
26166 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
26169 2005-10-19 Simon Josefsson <jas@extundo.com>
26171 * m4/gc-arcfour.m4: New file.
26173 * m4/gc-rijndael.m4: New file.
26175 2005-10-19 Simon Josefsson <jas@extundo.com>
26177 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
26179 2005-10-19 Simon Josefsson <jas@extundo.com>
26181 * lib/gc-gnulib.c: Support ARCFOUR.
26183 2005-10-19 Simon Josefsson <jas@extundo.com>
26185 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
26188 * lib/gc.h: Add ECB enum type.
26190 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
26192 2005-10-18 Simon Josefsson <jas@extundo.com>
26194 * tests/test-md5.c: New file.
26196 * modules/md5-tests: New file.
26198 2005-10-18 Simon Josefsson <jas@extundo.com>
26200 * tests/test-md4.c: New file.
26202 * modules/md4, modules/md4-tests: New files.
26204 2005-10-18 Simon Josefsson <jas@extundo.com>
26206 * m4/md4.m4: New file.
26208 2005-10-18 Simon Josefsson <jas@extundo.com>
26210 * lib/md4.h, lib/md4.c: New files, based on md5.?.
26212 2005-10-17 Stepan Kasal <kasal@ucw.cz>
26214 * gnulib-tool (func_create_testdir): Omit the second check whether
26215 BUILT_SOURCES in nonempty.
26217 2005-10-17 Simon Josefsson <jas@extundo.com>
26219 * tests/test-rijndael.c: New file.
26221 2005-10-17 Simon Josefsson <jas@extundo.com>
26223 * modules/sha1: Depend on stdint instead of md5.
26225 * modules/md5: Depend on stdint, remove uint32_t.
26227 2005-10-17 Simon Josefsson <jas@extundo.com>
26229 * modules/gc-sha1-tests: New file.
26231 * tests/test-gc-sha1.c: New file.
26233 2005-10-17 Simon Josefsson <jas@extundo.com>
26235 * m4/md5.m4: Remove call to uint32_t.m4.
26237 2005-10-17 Simon Josefsson <jas@extundo.com>
26239 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
26241 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
26244 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
26246 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
26248 2005-10-17 Simon Josefsson <jas@extundo.com>
26250 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
26252 2005-10-17 Simon Josefsson <jas@extundo.com>
26254 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
26256 2005-10-17 Simon Josefsson <jas@extundo.com>
26258 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
26260 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
26262 2005-10-17 Bruno Haible <bruno@clisp.org>
26264 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
26265 that it can also be used in a test.
26267 2005-10-16 Bruno Haible <bruno@clisp.org>
26269 * gnulib-tool (func_emit_tests_Makefile_am): Also define
26270 TESTS_ENVIRONMENT, so that individual tests can augment it.
26272 * gnulib-tool (func_create_testdir): Use an intermediate target for
26273 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
26274 macros, like $(ALLOCA_H), which cannot be passed through the command
26277 2005-10-15 Simon Josefsson <jas@extundo.com>
26279 * modules/rijndael-tests: New file.
26281 * modules/rijndael: New file.
26283 2005-10-15 Simon Josefsson <jas@extundo.com>
26285 * m4/rijndael.m4: New file.
26287 2005-10-15 Simon Josefsson <jas@extundo.com>
26289 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
26291 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
26293 2005-10-14 Simon Josefsson <jas@extundo.com>
26295 * tests/test-arcfour.c: New file.
26297 * modules/arcfour, modules/arcfour-tests: New files.
26299 2005-10-14 Simon Josefsson <jas@extundo.com>
26301 * m4/arcfour.m4: New file.
26303 2005-10-14 Simon Josefsson <jas@extundo.com>
26305 * lib/arcfour.h, lib/arcfour.c: New files.
26307 2005-10-14 Roland McGrath <roland@redhat.com>
26309 Import from libc. [BZ #1331]
26310 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
26312 Reported by Matej Vela <vela@debian.org>.
26314 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
26316 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
26317 include <wchar.h>; no longer needed.
26319 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
26321 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
26323 2005-10-14 Jakub Jelinek <jakub@redhat.com>
26324 and Ulrich Drepper <drepper@redhat.com>
26327 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
26328 instead of inline stream orientation test and two separate
26329 function calls. Pay no attention to USE_IN_LIBIO.
26331 2005-10-13 Simon Josefsson <jas@extundo.com>
26333 * modules/gc-hmac-md5-tests: New file.
26335 * tests/test-gc-hmac-sha1.c: New file.
26337 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
26339 * modules/gc-hmac-md5-tests: New file.
26341 * tests/test-gc-md5.c: New file.
26343 * modules/gc-md5-tests: New file.
26345 2005-10-13 Simon Josefsson <jas@extundo.com>
26347 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
26348 Move memory allocation outside of loop.
26350 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
26352 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
26353 intermediate directory is in a read-only file system. Problem
26354 reported by Eric Blake.
26356 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
26358 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
26360 2005-10-12 Simon Josefsson <jas@extundo.com>
26362 * tests/test-hmac-sha1.c: New file.
26364 * modules/hmac-sha1-tests: New file.
26366 * modules/hmac-sha1: New file.
26368 2005-10-12 Simon Josefsson <jas@extundo.com>
26370 * modules/gc-sha1: New file.
26372 2005-10-12 Simon Josefsson <jas@extundo.com>
26374 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
26376 * tests/test-gc-pbkdf2-sha1.c: New file.
26378 2005-10-12 Simon Josefsson <jas@extundo.com>
26380 * modules/gc-md5, modules/gc-hmac-md5: New files.
26382 * modules/gc (Files): Remove md5, memxor and hmac files.
26384 2005-10-12 Simon Josefsson <jas@extundo.com>
26386 * m4/gc-pbkdf2-sha1.m4: New file.
26388 * m4/gc-hmac-sha1.m4: New file.
26390 * m4/gc-sha1: New file.
26392 * m4/hmac-sha1.m4: New file.
26394 2005-10-12 Simon Josefsson <jas@extundo.com>
26396 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
26398 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
26400 2005-10-12 Simon Josefsson <jas@extundo.com>
26402 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
26403 suggested by Bruno Haible <bruno@clisp.org>.
26405 2005-10-12 Simon Josefsson <jas@extundo.com>
26407 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
26409 2005-10-12 Simon Josefsson <jas@extundo.com>
26411 * lib/gc-pbkdf2-sha1.c: New file.
26413 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
26415 2005-10-12 Simon Josefsson <jas@extundo.com>
26417 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
26419 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
26421 2005-10-12 Simon Josefsson <jas@extundo.com>
26423 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
26424 GC_USE_HMAC_MD5, respectively.
26426 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
26427 (gc_md5): Fix typo.
26429 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
26431 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
26433 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
26435 2005-10-12 Bruno Haible <bruno@clisp.org>
26437 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
26438 Reported by Stepan Kasal <kasal@ucw.cz>.
26440 2005-10-11 Simon Josefsson <jas@extundo.com>
26442 * tests/test-crc.c: New file.
26444 * modules/crc, modules/crc-tests: New files.
26446 2005-10-11 Simon Josefsson <jas@extundo.com>
26448 * m4/crc.m4: New file.
26450 2005-10-11 Simon Josefsson <jas@extundo.com>
26452 * lib/gc.h: Add gc_hash and gc_hash_buffer.
26454 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
26456 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
26458 2005-10-11 Simon Josefsson <jas@extundo.com>
26460 * lib/crc.h, lib/crc.c: New files.
26462 * lib/gc.h (gc_hash_buffer): Add doc.
26464 2005-10-11 Bruno Haible <bruno@clisp.org>
26466 * modules/c-strcasestr: New file.
26467 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
26469 2005-10-11 Bruno Haible <bruno@clisp.org>
26471 * modules/c-strcase: New file.
26472 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
26474 2005-10-11 Bruno Haible <bruno@clisp.org>
26476 * lib/strcasecmp.c: Include limits.h.
26477 (strcasecmp): Avoid integer overflow on exotic platforms.
26478 * lib/strncasecmp.c: Include limits.h.
26479 (strncasecmp): Avoid integer overflow on exotic platforms.
26480 Reported by Paul Eggert.
26482 2005-10-11 Bruno Haible <bruno@clisp.org>
26484 * lib/c-strcasestr.h: New file, from GNU gettext.
26485 * lib/c-strcasestr.c: New file, from GNU gettext.
26487 2005-10-11 Bruno Haible <bruno@clisp.org>
26489 * lib/c-strcase.h: New file, from GNU gettext.
26490 * lib/c-strcasecmp.c: New file, from GNU gettext.
26491 * lib/c-strncasecmp.c: New file, from GNU gettext.
26493 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
26495 * modules/mempcpy (License): GPL -> LGPL.
26496 * modules/strchrnul (License): Likewise.
26497 * modules/sysexits (License): Likewise.
26499 2005-10-08 Simon Josefsson <jas@extundo.com>
26501 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
26503 2005-10-07 Simon Josefsson <jas@extundo.com>
26505 * m4/memxor.m4: Remove gl_C_RESTRICT call.
26507 2005-10-06 Simon Josefsson <jas@extundo.com>
26509 * tests/test-hmac-md5.c: New file.
26511 * modules/hmac-md5-tests: New file.
26513 * modules/hmac-md5: New file.
26515 2005-10-06 Simon Josefsson <jas@extundo.com>
26517 * m4/hmac-md5.m4: New file.
26519 * m4/memxor.m4: Require gl_C_RESTRICT.
26521 2005-10-06 Simon Josefsson <jas@extundo.com>
26523 * lib/memxor.c (memxor): Avoid casts and warnings.
26525 2005-10-06 Simon Josefsson <jas@extundo.com>
26527 * lib/hmac-md5.c: New file.
26529 * lib/hmac.h: New file.
26531 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
26533 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
26534 promotes to int, not unsigned int, to catch the AIX 5.3
26537 2005-10-05 Simon Josefsson <jas@extundo.com>
26539 * modules/memxor: New file.
26541 * modules/iconv (Files): Move config.rpath to havelib, it is used
26544 * modules/havelib (Files): Add config.rpath.
26546 2005-10-05 Simon Josefsson <jas@extundo.com>
26548 * m4/memxor.m4: New file.
26550 2005-10-05 Simon Josefsson <jas@extundo.com>
26552 * lib/memxor.c (memxor): Fix compiler error.
26554 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
26555 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
26557 * lib/memxor.h, lib/memxor.c: New files.
26559 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
26560 we assume all systems have it, suggested by Jim Meyering
26561 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
26562 any systems lack sys/socket.h; mingw32 is known to lack it, but we
26563 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
26566 2005-10-05 Simon Josefsson <jas@extundo.com>
26568 * config/srclist.txt: Add glibc bug 1423 for md5.h.
26570 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
26572 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
26573 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
26574 needed, since the source code now assumes these .h files.
26576 2005-10-05 Derek Price <derek@ximbiot.com>
26578 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
26580 2005-10-05 Bruno Haible <bruno@clisp.org>
26582 * modules/stdint (License): Change to LGPL.
26584 2005-10-04 Simon Josefsson <jas@extundo.com>
26586 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
26587 D. Baushke" <mdb@gnu.org>.
26589 2005-10-04 Bruno Haible <bruno@clisp.org>
26591 * lib/verify.h (verify_true): Provide alternative definition for C++.
26593 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
26595 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
26596 (SSIZE_MAX): New macro, if not already defined.
26597 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
26600 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
26602 Sync from coreutils.
26603 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
26604 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
26605 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
26606 ULLONG_MAX doesn't work with 2.7.2.1.
26608 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
26610 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
26613 * modules/exclude (Depends-on): Depend on verify.
26614 * modules/strtoimax (Depends-on): Likewise.
26615 * modules/utimecmp (Depends-on): Likewise.
26617 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
26619 * lib/exclude.c: Include verify.h.
26620 (verify): Remove. All callers changed to use verify.h's version.
26621 * lib/strtoimax.c: Likewise.
26622 * lib/utimecmp.c: Likewis.e
26624 Sync from coreutils.
26625 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
26626 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
26627 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
26628 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
26629 bother returning ENOSYS if settimeofday or stime fails; just let
26630 them return whatever errno they want to return.
26631 * lib/utimens.c: Include unistd.h, for dup2.
26632 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
26633 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
26635 2005-10-02 Jim Meyering <jim@meyering.net>
26637 Sync from coreutils.
26638 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
26639 from glibc-2.2.5 that fails for read-only files.
26641 2005-10-02 Jim Meyering <jim@meyering.net>
26643 Sync from coreutils.
26644 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
26645 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
26646 `#if HAVE_CONFIG_H'.
26647 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
26648 Remove AT_FDCWD test.
26649 Do not consume the fd unless successful.
26650 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
26651 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
26652 block, so that we don't even try to compile it if settimeofday is
26653 available. This works around a compilation failure on OSF1 V5.1,
26654 due to stime requiring a `long int*' while tv_sec is `int'.
26656 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
26658 Sync from coreutils.
26659 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
26660 against `yes', rather than just testing for nonempty.
26662 2005-10-01 Simon Josefsson <jas@extundo.com>
26664 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
26667 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
26668 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
26669 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
26670 freeaddrinfo and gai_strerror are declared by the POSIX headers.
26671 Check if struct addrinfo is declared.
26673 2005-10-01 Simon Josefsson <jas@extundo.com>
26675 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
26676 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
26677 AI_* and EAI_* definitions. Protect function declarations.
26679 2005-10-01 Jim Meyering <jim@meyering.net>
26681 Sync from coreutils.
26683 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
26684 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
26685 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
26686 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
26687 in the inet and nsl libraries. Required on Solaris 5.7.
26689 2005-10-01 Jim Meyering <jim@meyering.net>
26691 Sync from coreutils.
26692 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
26693 in the inet and nsl libraries. Required on Solaris 5.7.
26695 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
26697 * lib/getdelim.c (getdelim): Remove unused variables.
26699 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
26701 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
26702 so that the code works even with ancient cpp. Portability problem
26703 with GCC 2.7.2.1 reported by Thomas M.Ott.
26705 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
26707 * modules/regex (Depends-on): Add strcase.
26709 * modules/gethostname (Licence): Change from GPL to LGPL, since
26710 gethostname.c is a trivial implementation of a standard library
26712 * modules/poll (License): Change from GPL to LGPL, since it's
26713 derived from LGPL code.
26715 2005-09-27 Jim Meyering <jim@meyering.net>
26717 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
26720 * lib/intprops.h (signed_type_or_expr__): Define.
26721 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
26722 for unsigned types.
26724 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
26726 * lib/verify.h (verify_expr): Remove, replacing with:
26727 (verify_true): New macro that returns true instead of void.
26728 (verify_type__): Remove.
26729 (verify): Use verify_true rather than verify_type__.
26731 2005-09-26 Bruno Haible <bruno@clisp.org>
26733 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
26735 (lib_SOURCES): Remove mbchar.c.
26736 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
26737 (Files): Add m4/mbrtowc.m4.
26738 * modules/mbiter: Likewise.
26739 * modules/mbuiter: Likewise.
26741 2005-09-26 Bruno Haible <bruno@clisp.org>
26743 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
26744 compile mbchar.c if they are not both present.
26745 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
26746 * m4/mbiter.m4 (gl_MBITER): Likewise.
26747 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
26748 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
26749 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
26751 2005-09-25 Jim Meyering <jim@meyering.net>
26753 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
26754 also uses socklen_t.
26756 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
26758 * lib/utimens.c (ENOSYS): Define if not already defined.
26759 (futimens): Support having a null PATH if the file descriptor
26762 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
26764 (__attribute): Define to empty unless GCC 3.1 or later.
26765 This works around a core dump on OpenBSD 3.4, which has GCC
26766 2.95.3, which dumps core when given __attribute__(()). It also
26767 simplifies other tests, since we really don't want to bother with
26768 worrying about which ancient version of GCC supported what.
26769 Original problem reported by Yoann Vandoorselaere, with part of
26770 the fix suggested by Derek Price.
26772 2005-09-24 Jim Meyering <jim@meyering.net>
26774 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
26775 so we can once again use a positive bitfield width of 1 -- now we
26776 don't have to explain why we were using a bitfield width of 2.
26778 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
26780 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
26781 and similarly for the other external symbols. Problem reported
26784 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
26785 bug reported by Jim Meyering.
26787 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
26788 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
26789 not needed, since socklen is a prerequisite module.
26791 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
26793 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
26794 Problem reported by Eric Blake.
26795 (getaddrinfo): Initialize se so that it's not garbage.
26796 Redo internal storage allocation so that it doesn't make unportable
26797 assumptions about alignment.
26800 * lib/utimens.c (futimens): Use futimesat if available.
26801 Prefer it to futimes since it doesn't have the futimes bug.
26803 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
26804 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
26805 Instead, declare a function that returns a pointer to an array,
26806 and use verify_type__ to declare the size of the array.
26807 Problem and germ of a solution reported by Bruno Haible.
26808 (verify_type__): Use 2, not 1, for bitfield size, to avoid
26809 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
26811 2005-09-23 Jim Meyering <jim@meyering.net>
26813 Sync from coreutils.
26814 Correct build failure (socklen_t not defined) on at least
26815 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
26816 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
26818 2005-09-23 Jim Meyering <jim@meyering.net>
26820 * modules/getaddrinfo (Depends-on): Add socklen.
26822 2005-09-23 Bruno Haible <bruno@clisp.org>
26824 * tests/test-verify.c: New file.
26826 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
26828 Sync from coreutils.
26830 * modules/argmatch (Depends-on): Add verify.
26831 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
26833 * modules/save-cwd (Depends-on): Likewise.
26835 * modules/openat (Files): Add lib/openat-die.c.
26836 (Depends-on): Remove error, exitfail.
26839 * modules/verify: New file.
26840 * MODULES.html.sh (Diagnostics <assert.h>): New section,
26841 with "verify" module.
26843 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
26845 Sync from coreutils.
26847 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
26848 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
26849 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
26850 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
26851 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
26852 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
26853 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
26854 Don't bother checking for string.h, stdlib.h, unistd.h.
26855 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
26856 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
26858 * m4/jm-macros.m4 (gl_MACROS): Likewise.
26859 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
26861 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
26862 (gl_GETDATE): Use it.
26864 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
26866 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
26868 Sync from coreutils.
26870 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
26872 * lib/argmatch.h: Include verify.h
26873 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
26874 (ARGMATCH_ASSERT): Remove; unused.
26875 * lib/canonicalize.c: Assume STDC_HEADERS.
26876 * lib/exclude.c: Include "strcase.h".
26877 * lib/regex_internal.h [!defined _LIBC]: Likewise.
26878 * lib/getusershell.c: Include stdio--.h rather than stdio.h
26880 (getusershell): Call fopen, not fopen_safer.
26881 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
26882 Do not include unistd-safer.h.
26883 (save_cwd): Don't call fd_safer; no longer needed
26884 now that we include fcntl--.h.
26886 * lib/getdate.y (relative_time): New type.
26887 (RELATIVE_TIME_0): New constant.
26888 (parser_control): Use relative_time instead of doing it ourselves.
26889 (%union): Add new relative_time rel member.
26890 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
26892 (relunit, relunit_snumber): Now of type rel.
26893 (zone, rel, relunit, get_date): Adjust to above changes.
26895 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
26896 Do not include unistd-safer.h.
26897 (getloadavg): Don't call fd_safer; no longer needed
26898 now that we include fcntl--.h.
26900 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
26901 (make_dir_parents): Treat ENOSYS like EEXIST.
26903 Improve quality of diagnostics on restore_cwd failure.
26904 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
26905 (make_dir_parents): Last arg is now int * (for errno), not bool *.
26906 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
26907 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
26908 each time through the loop. Do not diagnose restore_cwd failure;
26909 that is the caller's job (and perhaps the caller does not care).
26911 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
26912 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
26913 If the file already exists but is not a directory, don't bother
26914 to try to make its parents.
26915 Close potential file descriptor leak if we can't chdir("/") (!).
26916 Don't always return true if chdir($PWD) fails; return true only
26917 if the requested action was done successfully (except for the
26919 Don't log final directory unless we actually made it.
26920 Refactor to avoid duplicate code to fix up permissions.
26921 Don't attempt to fix up parent permissions if chdir($PWD) fails.
26923 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
26924 to make it a bit faster and (I hope) clearer.
26925 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
26926 Fix bug in formats like %2N.
26928 * lib/verify.h: New file.
26930 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
26932 Sync from coreutils.
26933 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
26935 2005-09-22 Jim Meyering <jim@meyering.net>
26937 Sync from coreutils.
26939 * m4/lstat.m4 (gl_FUNC_LSTAT):
26940 Use AC_LIBSOURCES to require lstat.c and lstat.h.
26941 Remove obsolete comment.
26942 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
26943 * m4/xstrtod.m4: Likewise.
26945 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
26947 2005-09-22 Jim Meyering <jim@meyering.net>
26949 Sync from coreutils.
26951 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
26953 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
26954 the .tm_year member, since otherwise gcc-4.0 would now warn about
26955 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
26957 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
26958 order to avoid an unsuppressible warning from gcc on 64-bit systems.
26960 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
26961 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
26962 when run in a time zone for which daylight savings time is in effect
26963 for the starting date.
26965 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
26966 stop us from restricting permissions of just-created absolute-named
26968 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
26969 to restore initial working directory.
26970 * lib/mkdir-p.c (make_dir_parents): New parameter:
26971 different_working_dir, to tell caller if/when we change the working
26972 directory and are unable to return to the initial one.
26973 * lib/mkdir-p.h (make_dir_parents): Update prototype.
26974 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
26975 `return false'. This fixes a bug introduced on 2004-07-30.
26977 * lib/openat.c (fdopendir): Be sure to close the supplied
26978 file descriptor before returning. This makes our replacement
26979 implementation a little closer to Solaris's, where fdopendir
26980 ties the file descriptor to the returned DIR* pointer.
26981 * lib/openat.c (unlinkat): New function.
26982 * lib/openat.h (unlinkat): Add prototype.
26983 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
26984 (openat_restore_fail): Rename from openat_restore_die.
26985 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
26987 Provide an alternative to exiting immediately upon save_cwd or
26988 restore_cwd failure. Now, an application can arrange e.g.,
26989 to perform a longjump in that case.
26990 * lib/openat.c: Include dirname.h.
26991 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
26992 (rpl_openat, fdopendir, fstatat): Call openat_save_die
26993 and openat_restore_die rather than calling error directly.
26994 Don't include "error.h" or "exitfail.h"; they're no longer needed.
26996 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
26997 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27000 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27001 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27002 int utc, int nanoseconds);
27004 date should not have to allocate a megabyte of virtual memory to
27005 handle a format argument like +%1048575T. When implemented with
27006 strftime, it must allocate such a buffer, use strftime to fill it
27007 in, print it, then free it.
27008 With fprintftime, it simply prints everything and exits.
27009 With no need for memory allocation, that's one fewer way to fail.
27010 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27011 optional field width, not before, so we accept %9:z, not %:9z.
27012 (my_strftime): Be sure to use L_('x') for literals.
27014 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27015 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27016 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27017 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27018 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27019 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27020 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27021 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27022 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27023 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27024 * lib/xgethostname.c, lib/xreadlink.c:
27025 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27027 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27028 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27029 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27030 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27031 and don't include <sys/file.h>).
27033 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
27035 Sync from coreutils.
27037 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27038 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27039 [!LDAV_DONE]: Avoid unused variable warning.
27041 2005-09-21 Bruno Haible <bruno@clisp.org>
27043 * lib/unicodeio.h (unicode_to_mb): New declaration.
27045 2005-09-20 Derek Price <derek@ximbiot.com>
27047 * lib/getaddrinfo.c: Don't include <netdb.h> included from
27050 2005-09-20 Bruno Haible <bruno@clisp.org>
27052 * gnulib-tool: Remove trailing slashes from the values specified for
27053 --source-base, --m4-base, --tests-base, --aux-dir.
27054 Suggested by Simon Josefsson <jas@extundo.com>.
27056 2005-09-20 Bruno Haible <bruno@clisp.org>
27058 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27059 func_modules_to_filelist, func_import, func_create_testdir): Make all
27060 sorting results locale-independent, so that gnulib-cache.m4 doesn't
27061 change when gnulib-tool is invoked in a different locale.
27063 2005-09-19 Simon Josefsson <jas@extundo.com>
27065 * m4/socklen.m4: Fix typo.
27067 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27069 Use a consistent style for including <config.h>.
27070 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27071 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27072 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27073 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27074 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27075 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27076 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27077 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27078 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27079 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27080 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27081 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27082 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27083 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27084 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27085 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27086 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27087 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27088 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27089 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27090 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27091 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27092 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27093 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27094 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27095 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27096 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
27097 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
27098 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
27099 lib/xstrtoumax.c, lib/yesno.c:
27100 Standardize inclusion of config.h.
27101 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
27102 lib/inttostr.h: Removed inclusion of config.h from header files.
27103 * lib/inttostr.c: Adjusted in-tree users.
27104 * lib/timespec.h: Remove superfluous warning to include config.h.
27105 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
27106 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
27107 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
27108 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
27109 config.h with HAVE_CONFIG_H.
27111 2005-09-19 Jim Meyering <jim@meyering.net>
27113 * modules/pathmax (License): Change to LGPL.
27115 2005-09-19 Derek Price <derek@ximbiot.com>
27117 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
27119 2005-09-19 Bruno Haible <bruno@clisp.org>
27121 * gnulib-tool (import): Provide default for --tests-base.
27123 2005-09-19 Bruno Haible <bruno@clisp.org>
27125 * doc/quote.texi: New file, extracted from gnulib.texi.
27126 * doc/ctime.texi: New file, extracted from gnulib.texi.
27127 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
27128 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
27129 * doc/gnulib.texi: Include them.
27131 2005-09-18 Bruno Haible <bruno@clisp.org>
27134 * gnulib-tool (func_readlink): New function.
27135 (func_ln_if_changed): Use it.
27137 2005-09-18 Bruno Haible <bruno@clisp.org>
27139 * gnulib-tool: Support --with-tests also with --import.
27140 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
27141 (func_import): Use variables $testsbase and $inctests. Emit a
27142 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
27143 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
27144 SUBDIRS += $testsdir.
27145 (func_create_testdir): Update.
27147 2005-09-18 Bruno Haible <bruno@clisp.org>
27149 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
27150 instead of $dry_run.
27151 (func_cp_if_changed, func_mv_if_changed): Remove functions.
27152 (func_ln_if_changed): Don't handle dry-run here.
27153 (func_import): In dry-run mode, detect more precisely which actions
27154 would be performed, and don't use "...ing" verbs.
27156 2005-09-18 Bruno Haible <bruno@clisp.org>
27158 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
27159 (func_import): Use join on two temporary files instead of three nested
27160 loops, in order to determine which files are new or old.
27162 2005-09-18 Bruno Haible <bruno@clisp.org>
27164 * gnulib-tool (func_import): Comment out code that spits out the
27165 new files with --dry-run.
27167 2005-09-18 Bruno Haible <bruno@clisp.org>
27169 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
27171 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
27173 * lib/stat-time.h: New file.
27174 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
27175 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
27176 in a different way.
27177 (timespec_cmp): New function.
27178 * lib/utimecmp.c: Include stat-time.h.
27179 (SYSCALL_RESOLUTION): Depend on whether various struct stat
27180 members exist, not on the obsolescent ST_MTIM_NSEC.
27181 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
27183 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
27185 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
27187 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
27189 * MODULES.html.sh (File system functions): Add stat-time.
27190 * modules/stat-time: New file.
27191 * modules/timespec (Files): Remove m4/st_mtim.m4; this
27192 is now done in a different way, by the stat-time module.
27193 * modules/utimecmp (Depends-on): Add stat-time.
27195 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
27197 * m4/st_mtim.m4: Remove. Superseded by...
27198 * m4/stat-time.m4: New file.
27199 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
27200 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
27202 2005-09-15 Derek Price <derek@ximbiot.com>
27204 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
27206 2005-09-15 Derek Price <derek@ximbiot.com>
27208 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
27209 * lib/regex_internal.c: Ditto, using this...
27210 (__GNUC_PREREQ): ...new macro.
27211 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
27213 (__GNUC_PREREQ): ...this new macro.
27215 * lib/strstr.h: Include string.h. Define strstr as a macro here.
27217 2005-09-15 Derek Price <derek@ximbiot.com>
27218 Paul Eggert <eggert@cs.ucla.edu>
27220 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
27221 changes, consolidating in...
27222 * lib/regex_internal.h: ...this file.
27224 2005-09-13 Jim Meyering <jim@meyering.net>
27226 * lib/canon-host.c: Filter through gnu indent and reword comments
27228 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
27230 2005-09-13 Derek Price <derek@ximbiot.com>
27232 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
27234 Reported by Jim Meyering <jim@meyering.net>.
27236 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27238 * lib/base64.c: Typo.
27239 (base64_encode): Put b64str in initialized data section.
27241 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
27243 Merge glibc and coreutils changes into gnulib, plus a few
27245 * lib/md5.c: Use #error rather than a string.
27246 (CYCLIC): New macro, from glibc source. Use it instead of rol.
27247 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
27248 (__attribute__): Define to empty for non recent-GCC.
27249 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
27250 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
27251 Renamed from their non-__ counterparts, with new macros replacing
27252 them if not _LIBC. Add __THROW attribute.
27254 (struct md5_ctx): Align buffer if using GCC.
27255 * lib/sha1.h (struct sha1_ctx): Likewise.
27256 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
27257 The old name was backwards.
27258 (NOTSWAP): Remove; not used.
27259 (rol): New macro, moved here from md5.h.
27260 (sha1_process_block): Remove a FIXME that doesn't make sense.
27262 2005-09-12 Derek Price <derek@ximbiot.com>
27264 Return usable errors from canon-host.
27265 * lib/canon-host.h: New file.
27266 * lib/canon-host.c (canon_host): Wrap...
27267 (canon_host_r): ...this new function, which now relies exclusively on
27269 (ch_strerror): New function.
27270 (last_cherror): New global.
27271 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
27273 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
27275 (freeaddrinfo): Free ai->ai_canonname when set.
27277 2005-09-12 Derek Price <derek@ximbiot.com>
27279 Make canon-host require getaddrinfo.
27280 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
27281 AC_LIBSOURCE canon-host.h. Call...
27282 (gl_PREREQ_CANON_HOST): ...this new function, which requires
27284 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
27286 2005-09-12 Derek Price <derek@ximbiot.com>
27288 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
27290 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
27292 2005-09-12 Derek Price <derek@ximbiot.com>
27294 * lib/gai_strerror.c: Include config.h when available. Include
27295 getaddrinfo.h before other headers to test interface.
27296 Reported by Larry Jones <lawrence.jones@ugs.com>.
27298 2005-09-12 Derek Price <derek@ximbiot.com>
27299 Paul Eggert <eggert@cs.ucla.edu>
27301 * modules/glob (Files): Add glob-libc.h.
27303 2005-09-12 Derek Price <derek@ximbiot.com>
27304 Paul Eggert <eggert@cs.ucla.edu>
27306 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
27307 glob_.h, glob-libc.h.
27308 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
27310 2005-09-12 Derek Price <derek@ximbiot.com>
27311 Paul Eggert <eggert@cs.ucla.edu>
27313 * lib/glob-libc.h: Renamed from glob_.h. The new version is
27314 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
27315 protecting things that should be done only in gnulib contexts.
27316 * lib/glob_.h: New file, containing only the glob things needed for
27318 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
27319 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
27320 (glob, globfree, glob_pattern_p): Now defined simply in terms of
27321 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
27322 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
27323 and to respect the namespace rules better.
27325 2005-09-08 Simon Josefsson <jas@extundo.com>
27327 * modules/socklen: New file.
27329 2005-09-08 Simon Josefsson <jas@extundo.com>
27331 * m4/socklen.m4: New file.
27333 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
27335 * modules/utimens (Files): Add m4/utimbuf.m4, since
27336 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
27337 Reported by Sergey Poznyakoff.
27339 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
27341 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
27342 definitions, since that's the preferred style in glibc.
27343 Fix a minor spacing issue, and update copyright notice to match
27346 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
27348 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
27350 2005-09-06 Simon Josefsson <jas@extundo.com>
27352 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
27353 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
27355 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
27357 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
27360 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
27362 * config/srclist.txt: Add glibc bug 1302.
27364 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
27366 Change bitset word type from unsigned int to unsigned long int,
27367 as this has better performance on typical 64-bit hosts.
27368 Port bitset code to hosts with unusual word sizes.
27369 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
27370 (build_collating_symbol):
27371 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
27372 argument is a bitset. This is merely a style issue, but it makes
27373 it clearer that an entire array is expected.
27374 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
27375 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
27376 Port to the case where bitset_word is not the same as unsigned int.
27377 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27378 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
27380 * lib/regexec.c (check_dst_limits_calc_pos_1,
27381 check_subexp_matching_top):
27382 (build_trtable, group_nodes_into_DFAstates):
27384 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
27385 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
27386 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
27387 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
27388 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
27389 * lib/regcomp.c (optimize_subexps, lower_subexp):
27390 Work even if bitset_word has holes in its bitwise representation.
27391 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
27392 * lib/regexec.c (check_dst_limits_calc_pos_1,
27393 check_subexp_matching_top):
27395 * lib/regex_internal.c (re_string_reconstruct):
27396 Don't assume UCHAR_MAX == 255.
27397 * lib/regex_internal.h (bitset_set_all): Likewise.
27398 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
27400 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
27401 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
27403 (BITSET_WORD_MAX): New macro.
27404 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
27405 (bitset_set_all, bitset_copy): Now inline functions, not macros.
27406 (bitset_empty, bitset_copy):
27407 Prefer sizeof (bitset) to multiplying it out ourselves.
27408 (bitset_not_merge): Remove; unused.
27409 (bitset_contain): Return bool, not unsigned int with one bit on.
27410 All callers changed.
27411 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
27412 alignment than re_node_set; do this by defining a new internal
27413 type struct dests_alloc and using it to allocate memory.
27415 2005-09-05 Bruno Haible <bruno@clisp.org>
27417 * gnulib-tool (func_import): Fix comparison in handling of symbolic
27420 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
27422 * modules/size_max (Makefile.am): Add size_max.h
27424 2005-09-04 Derek Price <derek@ximbiot.com>
27426 * gnulib-tool (func_import): Fix reversed $symbolic logic.
27428 2005-09-03 Simon Josefsson <jas@extundo.com>
27430 * gnulib-tool: Fix typo.
27432 2005-09-03 Simon Josefsson <jas@extundo.com>
27434 * config/srclist.txt: Add glibc bug 1293.
27436 2005-09-03 Derek Price <derek@ximbiot.com>
27438 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
27439 From Larry Jones <lawrence.jones@ugs.com>.
27441 2005-09-02 Simon Josefsson <jas@extundo.com>
27443 * modules/socklen: New file.
27445 2005-09-02 Simon Josefsson <jas@extundo.com>
27447 * modules/havelib: New module.
27449 * modules/gettext, modules/iconv, modules/lock, modules/readline:
27452 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
27454 Check for arithmetic overflow when calculating sizes, to prevent
27455 some buffer-overflow issues. These patches are conservative, in the
27456 sense that when I couldn't determine whether an overflow was possible,
27457 I inserted a run-time check.
27458 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
27460 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
27461 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
27462 (re_xnrealloc, re_x2nrealloc): New inline functions.
27463 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
27464 parse_bracket_exp):
27465 (build_equiv_class, build_charclass): Check for arithmetic overflow
27466 in size expression calculations.
27467 * lib/regex_internal.c (re_string_realloc_buffers):
27468 (build_wcs_upper_buffer, re_node_set_add_intersect):
27469 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
27470 (re_dfa_add_node, register_state): Likewise.
27471 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
27472 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
27473 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
27474 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
27476 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
27478 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
27479 m4/ulonglong.m4. Problem reported by Martin Lambers.
27481 2005-09-02 Bruno Haible <bruno@clisp.org>
27483 Support for lib vs. lib64 distinction on biarch platforms.
27484 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
27485 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
27486 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
27488 2005-09-02 Bruno Haible <bruno@clisp.org>
27490 * gnulib-tool (import): In the other first-use case, provide defaults
27493 2005-09-02 Bruno Haible <bruno@clisp.org>
27495 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
27496 patches not yet found in the latest gettext release.
27498 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
27500 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
27501 to avoid a collision with bits/local_lim.h in glibc.
27502 All uses changed. Problem reported by Dmitry V. Levin in
27503 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
27505 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
27506 bugs in int versus size_t comparisons.
27507 (re_string_context_at): Fix bug where the code assumed that
27510 Use bool where appropriate.
27511 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
27512 All callers changed.
27513 (calc_eclosure_iter): Likewise, for ROOT arg.
27514 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
27515 (build_charclass_op): Likewise, for NON_MATCH arg.
27516 * lib/regex_internal.c (re_string_allocate, re_string_construct):
27517 (re_string_construct_common): Likewise, for ICASE arg.
27518 * lib/regexec.c (re_search_2_stub, re_search_stub):
27519 Likewise, for RET_LEN arg.
27520 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
27521 (set_regs): Likewise, for FL_BACKTRACK arg.
27522 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
27523 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
27524 (calc_eclosure_iter, parse_bracket_exp):
27525 Use bool for internal variables that are booleans.
27526 * lib/regexec.c (re_search_internal, check_matching,
27527 proceed_next_node):
27528 (set_regs, build_sifted_states, sift_states_bkref):
27529 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
27530 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27531 (find_collation_sequence_value):
27533 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
27534 (re_node_set_compare):
27535 Return bool, not int. All callers changed.
27536 * lib/regexec.c (check_halt_node_context, check_dst_limits):
27537 (build_trtable, check_node_accept): Likewise.
27538 * lib/regex_internal.h: Include stdbool.h.
27540 Fix bugs uncovered when converting to bool.
27541 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
27542 failure instead of charging ahead blindly.
27543 * lib/regex_internal.c (register_state): Likewise.
27544 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
27545 for freeing internal storage.
27546 (group_nodes_into_DFA_states): Use unsigned int, not int, for
27547 bitset pieces used as boolean, to avoid undefined behavior
27548 on hosts that do int overflow checking.
27550 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
27552 * config/srclist.txt: Add glibc bugs 1285-1287.
27554 2005-09-01 Jim Meyering <jim@meyering.net>
27556 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
27557 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
27558 Require gl_STAT_MACROS, too.
27560 2005-09-01 Bruno Haible <bruno@clisp.org>
27562 * gnulib-tool (import): In the first-use case, provide defaults.
27564 2005-09-01 Bruno Haible <bruno@clisp.org>
27566 * gnulib-tool (func_import): Remove the .tmp files.
27568 2005-09-01 Bruno Haible <bruno@clisp.org>
27570 * gnulib-tool (func_import): Fix handling of symbolic links.
27572 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
27574 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
27575 old glibc regex code mishandles strings longer than 2**31 bytes.
27576 This patch fixes this when the regex code is used in gnulib
27577 (i.e., outside glibc).
27579 This patch should not affect the use of the regex code inside
27580 glibc. No doubt this problem also needs to be handled for glibc
27581 as well, but the result will be an incompatible change to the
27582 glibc ABI, and the old ABI will have to be supported too. That
27583 can be the the subject for another patch.
27585 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
27586 governing whether the rest of this patch is active. By default,
27587 the macro is disabled and the patch has no effect.
27588 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
27589 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
27590 (struct re_pattern_buffer, re_search, re_search_2, re_match):
27591 (re_match_2, re_set_registers): Use the new types.
27592 * lib/regex_internal.h (Idx, re_hashval_t): New types.
27593 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
27595 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
27596 (re_string_context_at, bin_tree_t, re_dfastate_t):
27597 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
27598 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
27599 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
27600 (re_string_char_size_at, re_string_wchar_at):
27601 (re_string_elem_size_at):
27602 Use the new types and macros to port to 64-bit hosts.
27603 Use unsigned types for internal values, so that the code
27604 mostly works even for arrays larger than SSIZE_MAX.
27605 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
27606 (search_duplicated_node, calc_eclosure_iter, fetch_number):
27607 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
27608 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
27609 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
27610 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
27611 (calc_inveclosure, parse_dup_op, build_range_exp):
27612 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
27613 (fetch_number, create_token_tree, mark_opt_subexp):
27615 * lib/regex_internal.c (re_string_construct_common,
27616 create_ci_newstate):
27617 (create_cd_newstate, re_string_allocate, re_string_construct):
27618 (re_string_realloc_buffers, build_wcs_upper_buffer):
27619 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27620 (re_string_reconstruct, re_string_peek_byte_case):
27621 (re_string_fetch_byte_case, re_string_context_at):
27622 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27623 (re_node_set_init_copy, re_node_set_add_intersect):
27624 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27625 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27626 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27627 (re_acquire_state, re_acquire_state_context, register_state):
27629 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
27630 search_cur_bkref_entry):
27631 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
27632 (re_search_internal, re_search_2_stub, re_search_stub)
27633 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
27634 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
27635 (update_cur_sifted_state, check_dst_limits):
27636 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
27637 (check_subexp_limits, sift_states_bkref, merge_state_array):
27638 (check_subexp_matching_top, get_subexp, get_subexp_sub):
27639 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
27640 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27641 (expand_bkref_cache, check_node_accept_bytes):
27642 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
27643 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
27644 (acquire_init_state_context, check_halt_node_context):
27645 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
27646 (sift_states_backward, clean_state_log_if_needed):
27647 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
27648 (find_recover_state, transit_state_sb, transit_state_mb):
27649 (transit_state_bkref, build_trtable, match_ctx_clean):
27651 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
27652 to work around an assumption that REG_MISSING is negative.
27654 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
27655 (seek_collating_symbol_entry) [defined _LIBC]:
27656 (lookup_collation_sequence_value) [defined _LIBC]:
27657 (build_range_exp, build_collating_symbol) [defined _LIBC]:
27658 Use prototypes rather than old-style function definitions.
27659 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
27660 (transit_state_sb) [0]:
27661 (find_collation_sequence_value) [defined _LIBC]: Likewise.
27663 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
27666 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
27667 (optimize_subexps, lower_subexp):
27668 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
27669 since the signed shift might overflow. Use 1u<<31 instead.
27670 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27672 * lib/regexec.c (check_dst_limits_calc_pos_1,
27673 check_subexp_matching_top): Likewise.
27675 * lib/regcomp.c (optimize_subexps, lower_subexp):
27676 Use CHAR_BIT rather than 8, for clarity.
27677 * lib/regexec.c (check_dst_limits_calc_pos_1):
27678 (check_subexp_matching_top): Likewise.
27679 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
27680 have to worry about portability issues when shifting it left.
27681 Remove no-longer-needed test for table_size > 0.
27682 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
27683 in a word, as the resulting behavior is undefined.
27684 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
27685 in one case, a <= should have been an <, and in another case the
27686 whole test was missing.
27687 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
27688 the standard name CHAR_BIT.
27689 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
27690 this is not true on one's complement and signed-magnitude hosts.
27692 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
27694 (struct re_dfa_t): Remove unused member states_alloc.
27695 * lib/regcomp.c (init_dfa): Don't initialize unused members.
27697 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
27699 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
27700 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
27701 and large-file glibc and in 32-bit large-file Solaris.
27703 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
27705 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
27706 lengths fit in regoff_t; this isn't true if regoff_t is the same
27708 * lib/regex.c (re_search_internal): 5th arg is LAST_START
27709 (= START + RANGE) instead of RANGE. This avoids overflow
27710 problems when regoff_t is the same width as size_t.
27711 All callers changed.
27712 (re_search_2_stub): Check for overflow when adding the
27713 sizes of the two strings.
27714 (re_search_stub): Check for overflow when adding START
27715 to RANGE; if it occurs, substitute the extreme value.
27717 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
27719 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
27721 2005-08-31 Jim Meyering <jim@meyering.net>
27723 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
27724 a pointer-to-const.
27725 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
27726 (register_state): Likewise.
27727 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
27728 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
27729 (group_nodes_into_DFAstates): Likewise.
27731 2005-08-31 Jim Meyering <jim@meyering.net>
27733 * check-module: Add a FIXME comment.
27735 2005-08-31 Eric Blake <ebb9@byu.net>
27737 * modules/unistd-safer (Files): Add unistd--.h.
27738 * modules/stdio-safer (Files): Add stdio--.h.
27740 2005-08-31 Derek Price <derek@ximbiot.com>
27742 * lib/getdelim.c (getdelim): Return EOF on EOF.
27743 Reported by Larry Jones <lawrence.jones@ugs.com>.
27745 2005-08-31 Bruno Haible <bruno@clisp.org>
27747 Avoid unnecessary diffs in the generated lib/Makefile.am.
27748 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
27749 the generated files.
27750 (func_import): Don't set cmd.
27752 2005-08-31 Bruno Haible <bruno@clisp.org>
27754 * lib/strstr.c: Include <stddef.h>, for NULL.
27755 * lib/strcasestr.c: Likewise.
27756 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27758 2005-08-31 Bruno Haible <bruno@clisp.org>
27760 * gnulib-tool: New option --macro-prefix.
27761 (func_import): Use macro_prefix.
27762 (import): Handle option --macro-prefix.
27764 2005-08-31 Bruno Haible <bruno@clisp.org>
27766 * gnulib-tool (import): Rename most ac_* variables to cached_*.
27767 Also use new variables cached_lgpl, cached_libtool.
27769 2005-08-31 Bruno Haible <bruno@clisp.org>
27771 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
27772 always instantiating them.
27774 2005-08-31 Bruno Haible <bruno@clisp.org>
27776 * gnulib-tool (func_import): Read the previous cached settings
27777 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
27778 earlier added by gnulib but are now dropped. Warn when a gnulib file
27779 overwrites a non-gnulib file.
27781 2005-08-31 Bruno Haible <bruno@clisp.org>
27783 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
27784 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
27785 projects that don't keep autogenerated files in CVS. Put into
27786 actioncmd only the specified modules, not the transitive closure.
27788 2005-08-31 Bruno Haible <bruno@clisp.org>
27790 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
27791 Create directories that shall be filled.
27792 (import): Don't look for gl_* macros in configure.ac. Recurse across
27793 all directories containing a gnulib-cache.m4 files, if meaningful.
27795 2005-08-31 Bruno Haible <bruno@clisp.org>
27797 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
27798 (import): Set seen_libtool when we see gl_LIBTOOL.
27800 2005-08-31 Bruno Haible <bruno@clisp.org>
27802 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
27803 declaration macro definitions from generated gnulib.m4.
27805 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
27807 * lib/iconvme.h: Add prototype for iconv_alloc.
27809 2005-08-29 Simon Josefsson <jas@extundo.com>
27811 * lib/iconvme.c: Fix errno.
27813 2005-08-29 Bruno Haible <bruno@clisp.org>
27815 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
27816 that it works when the directory contains spaces.
27818 2005-08-29 Bruno Haible <bruno@clisp.org>
27820 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
27822 2005-08-29 Bruno Haible <bruno@clisp.org>
27824 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
27827 2005-08-29 Bruno Haible <bruno@clisp.org>
27828 and Stepan Kasal <kasal@ucw.cz>
27830 * check-module: If more parameters are given, check each of them
27831 separately; add more exceptions, as noted by Jim Meyering.
27832 (check_module): New procedure.
27833 (%exempt_header): Now contains all exceptions.
27835 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
27837 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
27839 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
27841 * lib/iconvme.c: Split iconv_string into iconv_alloc.
27843 2005-08-28 Bruno Haible <bruno@clisp.org>
27845 * m4/gnulib-tool.m4: New file.
27847 2005-08-27 Jim Meyering <jim@meyering.net>
27849 * modules/unistd-safer (Files): Add pipe-safer.c.
27850 * modules/fcntl-safer (Files): Add creat-safer.c.
27852 2005-08-27 Jim Meyering <jim@meyering.net>
27854 * m4/stdlib-safer.m4: New file. From coreutils.
27855 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
27856 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
27857 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
27858 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
27859 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
27861 2005-08-27 Jim Meyering <jim@meyering.net>
27863 * lib/fopen-safer.c: Merge minor changes from coreutils.
27864 * lib/dup-safer.c: Likewise.
27865 * lib/fd-safer.c: Likewise.
27867 Merge from coreutils.
27868 * lib/stdio--.h: New file.
27869 * lib/stdlib--.h: New file.
27870 * lib/mkstemp-safer.c: New file.
27872 GNU tar needs these.
27873 * lib/pipe-safer.c: New file.
27874 * lib/creat-safer.c: New file.
27875 * lib/fcntl--.h (creat): Define to creat_safer.
27876 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
27877 * lib/unistd--.h (pipe): Define to pipe_safer.
27878 * lib/unistd-safer.h: Declare pipe_safer.
27880 2005-08-26 Simon Josefsson <jas@extundo.com>
27882 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
27883 Haible <bruno@clisp.org>.
27885 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
27887 * lib/regex_internal.h: Remove all references to
27888 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
27890 (bitset_not, bitset_merge, bitset_not_merge):
27891 (bitset_mask, re_string_allocate, re_string_construct):
27892 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
27893 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
27894 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
27895 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
27896 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27897 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27898 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
27899 (re_acquire_state_context):
27900 Remove unnecessary forward decls.
27901 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
27902 Put __attribute at function definition,
27903 now that the function decl has been removed.
27904 * lib/regex_internal.c (re_string_peek_byte_case):
27905 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
27908 2005-08-25 Stepan Kasal <kasal@ucw.cz>
27910 * m4/regex.m4: Add AC_PREREQ(2.50).
27911 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
27913 2005-08-25 Simon Josefsson <jas@extundo.com>
27915 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
27918 2005-08-25 Simon Josefsson <jas@extundo.com>
27920 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
27921 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
27922 GLIBC specific code.
27924 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
27926 Make regex safe for g++. This fixes one real bug (an "err"
27927 that should have been "*err"). g++ problem reported by
27929 * lib/regex_internal.h (re_calloc): New macro, consistent with
27930 re_malloc etc. All callers of calloc changed to use re_calloc.
27931 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
27932 not int. All callers changed.
27933 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
27934 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
27935 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
27936 (find_recover_state): Change "err" to "*err"; this fixes what
27937 appears to be a real bug.
27938 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
27941 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
27943 * modules/regex (Depends-on): Add malloc, since the code
27944 assumes that !malloc(0) means failure.
27946 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
27948 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
27950 alloca modernization/simplification for regex.
27951 * lib/regex.c: Remove portability cruft for alloca. This no longer
27952 needs to be at the start of the file, and can be moved into
27953 regex_internal.h and simplified.
27954 * lib/regex_internal.h: Include <alloca.h>.
27955 (__libc_use_alloca) [!defined _LIBC]: New macro.
27956 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
27957 now works outside glibc.
27959 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
27961 * config/srclist.txt: Add glibc bugs 1241, 1245.
27963 2005-08-25 Jim Meyering <jim@meyering.net>
27965 * lib/open-safer.c: Include <config.h>.
27966 Otherwise, we'd lose LARGEFILE support in any file using
27969 2005-08-25 Bruno Haible <bruno@clisp.org>
27971 * m4/minmax.m4: Require autoconf 2.52.
27972 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
27973 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
27974 alternatives of translit over the alphabet.
27975 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
27977 2005-08-24 Simon Josefsson <jas@extundo.com>
27979 * tests/test-getpass.c: New file.
27981 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
27983 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
27984 for GNU regex features.
27986 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
27988 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
27989 * lib/regex.h (regerror): Likewise.
27991 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
27992 requires this. (The code never needed it.)
27994 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
27995 All uses of recently-renamed identifiers changed to use the new,
27996 POSIX-compliant names. The code will build and run just fine
27997 without these changes, but it's better to eat our own dog food
27998 and use the standard-conforming names.
28000 * lib/regex.h: Fix a multitude of POSIX name space violations.
28001 These changes have an effect only for programs that define
28002 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28003 do not change anything for programs compiled in the normal way.
28004 Also, there is no effect on the ABI.
28006 (_REGEX_SOURCE): New macro.
28007 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28008 defined and _GNU_SOURCE is not; this fixes a name space violation.
28010 Rename the following macros to obey POSIX requirements.
28011 The old names are still visible as macros if _REGEX_SOURCE is defined.
28012 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28013 RE_BACKSLASH_ESCAPE_IN_LISTS.
28014 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28015 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28016 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28017 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28018 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28019 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28020 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28021 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28022 (REG_INTERVALS): renamed from RE_INTERVALS.
28023 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28024 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28025 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28026 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28027 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28028 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28029 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28030 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28031 RE_UNMATCHED_RIGHT_PAREN_ORD.
28032 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28033 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28034 (REG_DEBUG): renamed from RE_DEBUG.
28035 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28036 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
28037 unusual, since we can't clash with the POSIX REG_ICASE.
28038 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28039 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28040 (REG_NO_SUB): renamed from RE_NO_SUB.
28041 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28042 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28043 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28044 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28045 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28046 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28047 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28048 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28049 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28050 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28051 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28052 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28053 RE_SYNTAX_POSIX_MINIMAL_BASIC.
28054 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28055 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28056 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28057 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
28058 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28059 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28060 (REG_FIXED): Renamed from REGS_FIXED.
28061 (REG_NREGS): Renamed from RE_NREGS.
28063 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28064 of other REG_* macros, since POSIX says the user is allowed to
28065 #undef these macros selectively.
28067 (reg_errcode_t): Update comment stating what other tables need
28070 Rename the following enum values to obey POSIX requirements.
28071 The old names are still visible as macros.
28072 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
28073 is not defined, since GNU is supposed to be a superset of POSIX as
28074 much as possible, and since we want reg_errcode_t to be a signed
28075 type for implementation consistency.
28076 (_REG_NOERROR): Renamed from REG_NOERROR.
28077 (_REG_NOMATCH): Renamed from REG_NOMATCH.
28078 (_REG_BADPAT): Renamed from REG_BADPAT.
28079 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28080 (_REG_ECTYPE): Renamed from REG_ECTYPE.
28081 (_REG_EESCAPE): Renamed from REG_EESCAPE.
28082 (_REG_ESUBREG): Renamed from REG_ESUBREG.
28083 (_REG_EBRACK): Renamed from REG_EBRACK.
28084 (_REG_EPAREN): Renamed from REG_EPAREN.
28085 (_REG_EBRACE): Renamed from REG_EBRACE.
28086 (_REG_BADBR): Renamed from REG_BADBR.
28087 (_REG_ERANGE): Renamed from REG_ERANGE.
28088 (_REG_ESPACE): Renamed from REG_ESPACE.
28089 (_REG_BADRPT): Renamed from REG_BADRPT.
28090 (_REG_EEND): Renamed from REG_EEND.
28091 (_REG_ESIZE): Renamed from REG_ESIZE.
28092 (_REG_ERPAREN): Renamed from REG_ERPAREN.
28093 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28094 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28095 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28096 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
28098 (_REG_RE_NAME, _REG_RM_NAME): New macros.
28099 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
28100 changed. But support the old name if the new one is not defined
28101 and if _REGEX_SOURCE.
28103 Change the following member names in struct re_pattern_buffer.
28104 The old names are still supported if !_REGEX_SOURCE.
28105 The new names are always supported, regardless of _REGEX_SOURCE.
28106 (re_buffer): Renamed from buffer.
28107 (re_allocated): Renamed from allocated.
28108 (re_used): Renamed from used.
28109 (re_syntax): Renamed from syntax.
28110 (re_fastmap): Renamed from fastmap.
28111 (re_translate): Renamed from translate.
28112 (re_can_be_null): Renamed from can_be_null.
28113 (re_regs_allocated): Renamed from regs_allocated.
28114 (re_fastmap_accurate): Renamed from fastmap_accurate.
28115 (re_no_sub): Renamed from no_sub.
28116 (re_not_bol): Renamed from not_bol.
28117 (re_not_eol): Renamed from not_eol.
28118 (re_newline_anchor): Renamed from newline_anchor.
28120 Change the following member names in struct re_registers.
28121 The old names are still supported if !_REGEX_SOURCE.
28122 The new names are always supported, regardless of _REGEX_SOURCE.
28123 (rm_num_regs): Renamed from num_regs.
28124 (rm_start): Renamed from start.
28125 (rm_end): Renamed from end.
28127 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
28128 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
28129 Prepend __ to parameter names.
28131 Undo yesterday's changes.
28133 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
28135 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
28136 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
28139 2005-08-24 Jim Meyering <jim@meyering.net>
28141 Sync from coreutils.
28142 * m4/fcntl-safer.m4: New file.
28144 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
28145 and object files for this module.
28147 2005-08-24 Jim Meyering <jim@meyering.net>
28149 Sync from coreutils.
28150 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
28152 2005-08-24 Jim Meyering <jim@meyering.net>
28154 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
28155 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
28157 2005-08-24 Jim Meyering <jim@meyering.net>
28159 * modules/fcntl-safer: New module.
28160 * modules/fts (Depends-on): Add fcntl-safer.
28161 * MODULES.html.sh (File descriptor based Input/Output):
28164 2005-08-24 Bruno Haible <bruno@clisp.org>
28166 Support for unit test modules.
28167 * modules/README: Mention tests modules.
28168 * modules/TEMPLATE-TESTS: New file.
28169 * gnulib-tool: New options --extract-tests-module, --with-tests and
28170 --tests-base (unused for the moment).
28171 (testsbase, inctests): New variables.
28172 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
28173 (func_verify_module): Exclude TEMPLATE-TESTS.
28174 (func_verify_nontests_module, func_verify_tests_module): New functions.
28175 (func_get_dependencies): Add implicit dependency for tests modules.
28176 (func_get_tests_module): New function.
28177 (func_modules_transitive_closure): When --with-tests was specified,
28178 include the unit tests as well, unless explicitly avoided.
28179 (func_emit_lib_Makefile_am): Ignore the tests modules here.
28180 (func_emit_tests_Makefile_am): New function.
28181 (func_create_testdir): When --with-tests was specified, emit a
28183 * MODULES.html.sh (Future developments): Update.
28185 2005-08-24 Bruno Haible <bruno@clisp.org>
28187 * modules/tls-tests: New file.
28188 * tests/test-tls.c: New file, from GNU gettext.
28190 2005-08-24 Bruno Haible <bruno@clisp.org>
28192 * modules/lock-tests: New file.
28193 * tests/test-lock.c: New file, from GNU gettext.
28195 2005-08-24 Bruno Haible <bruno@clisp.org>
28197 * lib/lock.h: Add multiple inclusion guard.
28198 * lib/tls.h: Add multiple inclusion guard.
28200 2005-08-24 Bruno Haible <bruno@clisp.org>
28202 * gnulib-tool: Add support for the --aux-dir option to
28203 --create-testdir, --create-megatestdir, --test, --megatest.
28204 (func_create_testdir, func_create_megatestdir): Optionally emit a
28205 AC_CONFIG_AUX_DIR directive.
28206 (create-testdir, create-megatestdir, test, megatest): Provide a
28207 default value for $auxdir.
28209 2005-08-24 Bruno Haible <bruno@clisp.org>
28211 * gnulib-tool (import): Use compound statement instead of subshell
28214 2005-08-24 Bruno Haible <bruno@clisp.org>
28216 * gnulib-tool (import): Change --aux-dir default to "build-aux".
28218 2005-08-24 Bruno Haible <bruno@clisp.org>
28220 * gnulib-tool (func_version): Update.
28222 2005-08-24 Bruno Haible <bruno@clisp.org>
28224 * gnulib-tool (func_import, func_create_testdir,
28225 func_create_megatestdir): Quote all autoconf macro arguments.
28227 2005-08-24 Bruno Haible <bruno@clisp.org>
28229 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
28230 option --force, because --force causes the aclocal.m4 of each
28231 subdirectory to be newer than the corresponding config.h.in.
28233 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
28235 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
28236 All contents moved to gl_REGEX.
28237 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
28238 assume that it does.
28240 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
28242 * lib/regex.h (REG_NOSYS)
28243 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
28244 Define, since POSIX requires it as of 2001.
28246 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
28247 New private symbol, used to keep the enum signed in all cases.
28248 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
28250 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
28252 * lib/regex_internal.c (re_string_skip_chars, register_state):
28254 Remove forward decls; no longer needed now that we use prototypes.
28255 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
28256 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
28257 (clean_state_log_if_needed): Likewise.
28259 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
28261 * config/srclist.txt: Add glibc bugs 1231-1233.
28263 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
28265 Fix problems reported by Sam Steingold in
28266 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
28267 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
28268 assumed that reg_errcode_t is a signed type, which is not
28269 necessarily true if _XOPEN_SOURCE is not defined.
28270 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
28271 since some compilers warn about it otherwise.
28273 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
28275 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
28276 (init_word_char, create_initial_state, duplicate_node_closure):
28277 (fetch_token, peek_token_bracket, build_range_exp):
28278 (build_collating_symbol): Remove forward decls; no longer needed
28279 now that we use prototypes.
28282 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
28283 (re_compile_fastmap_iter, regcomp, regerror, regfree):
28284 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
28285 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
28286 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
28287 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
28288 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
28289 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
28290 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
28291 (build_range_exp, build_collating_symbol, parse_bracket_exp):
28292 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
28293 (build_charclass, build_charclass_op, fetch_number, create_tree):
28294 (create_token_tree, mark_opt_subexp, duplicate_tree):
28295 Use prototypes rather than old-style definitions.
28297 * lib/regex_internal.c:
28298 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
28299 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
28300 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28301 (re_string_reconstruct, re_string_peek_byte_case):
28302 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
28303 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28304 (re_node_set_init_copy, re_node_set_add_intersect):
28305 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28306 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28307 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28308 (re_acquire_state, re_acquire_state_context, register_state):
28309 (create_ci_newstate, create_cd_newstate, free_state):
28311 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
28313 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
28314 (re_search_internal, prune_impossible_nodes):
28315 (acquire_init_state_context, check_matching, static):
28316 (check_halt_node_context, check_halt_state_context, proceed_next_node):
28317 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
28318 (update_regs, sift_states_backward, build_sifted_states):
28319 (clean_state_log_if_needed, merge_state_array):
28320 (update_cur_sifted_state, add_epsilon_src_nodes):
28321 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
28322 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
28323 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
28324 (find_recover_state, check_subexp_matching_top, transit_state_mb):
28325 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
28326 (check_arrival, check_arrival_add_next_nodes):
28327 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28328 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28329 (check_node_accept_bytes, check_node_accept, extend_buffers):
28330 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
28331 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
28335 * lib/regex_internal.h:
28336 (re_string_allocate, re_string_construct, re_string_reconstruct):
28337 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
28338 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
28339 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
28340 (re_string_context_at, re_string_peek_byte_case):
28341 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
28342 is defined, since we now use prototypes always.
28344 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
28345 C89 or better. All uses removed.
28347 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
28349 * config/srclist.txt: Add glibc bugs 1220-1227.
28351 2005-08-20 Jim Meyering <jim@meyering.net>
28353 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
28354 of unused local, dfa.
28356 2005-08-20 Bruno Haible <bruno@clisp.org>
28358 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
28360 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
28362 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
28363 (re_node_set_insert_last, re_dfa_add_node):
28364 Rename local variables to avoid GCC shadowing warnings.
28366 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
28368 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
28369 [defined lint]: Suppress bogus uninitialized-variable warnings.
28371 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
28372 and let the caller return REG_ESPACE if out of space. This
28373 removes an uninitialied-variable warning with GCC 4.0.1, and also
28374 avoids taking the address of a local variable. All callers
28377 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
28379 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
28380 $LIBCSRC/posix/regexec.c.
28381 Add glibc bug 1217 for regcomp.c.
28383 2005-08-19 Jim Meyering <jim@meyering.net>
28385 * lib/regexec.c (proceed_next_node): Redo local variables to
28386 avoid GCC shadowing warnings.
28388 2005-08-18 Bruno Haible <bruno@clisp.org>
28390 * lib/strstr.c (strstr): Fix return value in multibyte case.
28391 * lib/strcasestr.c (strcasestr): Likewise.
28393 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
28395 * lib/regex.h: Remove useless space-before-tab. From coreutils.
28397 2005-08-17 Jim Meyering <jim@meyering.net>
28399 Make the %s format (seconds since the epoch) work for a negative
28400 number and when used with a zero-padded field width, e.g. %015s.
28402 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
28403 label so that it precedes the code to set `digits'. Otherwise,
28404 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
28405 print `00-22'. Now, it prints `-0022', as it should.
28407 2005-08-17 Bruno Haible <bruno@clisp.org>
28409 * modules/strstr (Files): Add m4/mbrtowc.m4.
28410 (Depends-on): Add mbuiter.
28412 2005-08-17 Bruno Haible <bruno@clisp.org>
28414 * modules/strcasestr: New file.
28415 * MODULES.html.sh (String handling, based on ANSI C 89): Add
28418 2005-08-17 Bruno Haible <bruno@clisp.org>
28420 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
28422 2005-08-17 Bruno Haible <bruno@clisp.org>
28424 * modules/mbuiter: New file.
28425 * MODULES.html.sh (Extended multibyte and wide character utilities):
28428 2005-08-17 Bruno Haible <bruno@clisp.org>
28430 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
28431 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
28433 2005-08-17 Bruno Haible <bruno@clisp.org>
28435 * m4/strcasestr.m4: New file.
28437 2005-08-17 Bruno Haible <bruno@clisp.org>
28439 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
28440 * lib/strstr.c: Completely rewritten, with multibyte locale support.
28442 2005-08-17 Bruno Haible <bruno@clisp.org>
28444 * lib/strcasestr.h: New file.
28445 * lib/strcasestr.c: New file.
28447 2005-08-17 Bruno Haible <bruno@clisp.org>
28449 * lib/strcasecmp.c: Use mbuiter.h.
28451 2005-08-17 Bruno Haible <bruno@clisp.org>
28453 * lib/mbuiter.h: New file.
28455 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
28457 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
28458 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
28459 and gl_GETOPT are both invoked via different paths (as happens
28460 with GNU tar CVS because it uses both argp and getopt), the former
28463 2005-08-16 Bruno Haible <bruno@clisp.org>
28465 * modules/tls: New file.
28466 * MODULES.html.sh (Multithreading): Add tls.
28468 2005-08-16 Bruno Haible <bruno@clisp.org>
28470 * modules/strnlen1: New file.
28471 * MODULES.html.sh (String handling): Add strnlen1.
28473 2005-08-16 Bruno Haible <bruno@clisp.org>
28475 * modules/strcase (Files): Add m4/mbrtowc.m4.
28476 (Depends-on): Add strnlen1, mbchar.
28478 2005-08-16 Bruno Haible <bruno@clisp.org>
28480 * modules/mbiter: New file.
28481 * MODULES.html.sh (Extended multibyte and wide character utilities):
28484 2005-08-16 Bruno Haible <bruno@clisp.org>
28486 * modules/mbfile: New file.
28487 * MODULES.html.sh (Extended multibyte and wide character utilities):
28490 2005-08-16 Bruno Haible <bruno@clisp.org>
28492 * modules/mbchar: New file.
28493 * MODULES.html.sh (Extended multibyte and wide character utilities):
28496 2005-08-16 Bruno Haible <bruno@clisp.org>
28498 * m4/tls.m4: New file, from GNU gettext.
28500 2005-08-16 Bruno Haible <bruno@clisp.org>
28502 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
28504 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
28506 2005-08-16 Bruno Haible <bruno@clisp.org>
28508 * m4/mbiter.m4: New file.
28510 2005-08-16 Bruno Haible <bruno@clisp.org>
28512 * m4/mbfile.m4: New file.
28514 2005-08-16 Bruno Haible <bruno@clisp.org>
28516 * m4/mbchar.m4: New file.
28518 2005-08-16 Bruno Haible <bruno@clisp.org>
28520 * lib/tls.h: New file, from GNU gettext.
28521 * lib/tls.c: New file, from GNU gettext.
28523 2005-08-16 Bruno Haible <bruno@clisp.org>
28525 * lib/strnlen1.h: New file.
28526 * lib/strnlen1.c: New file.
28528 2005-08-16 Bruno Haible <bruno@clisp.org>
28530 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
28531 (mbi_init): Update.
28532 (mbi_avail, mbi_advance): Let the iteration end before the terminating
28533 NUL byte, not after it.
28535 2005-08-16 Bruno Haible <bruno@clisp.org>
28537 * lib/strcase.h (strcasecmp): Add note in comments.
28538 * lib/strncasecmp.c: Use code from strcasecmp.c.
28539 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
28540 (strcasecmp): Work correctly in multibyte locales.
28542 2005-08-16 Bruno Haible <bruno@clisp.org>
28544 * lib/mbiter.h: New file.
28546 2005-08-16 Bruno Haible <bruno@clisp.org>
28548 * lib/mbfile.h: New file.
28550 2005-08-16 Bruno Haible <bruno@clisp.org>
28552 * lib/mbchar.h: New file.
28553 * lib/mbchar.c: New file.
28555 2005-08-16 Bruno Haible <bruno@clisp.org>
28557 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
28558 the valid ones. Makes the comparison operations transitive:
28559 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
28560 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
28562 2005-08-15 Simon Josefsson <jas@extundo.com>
28564 * modules/ssize_t (License): Change to 'unlimited'.
28566 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
28568 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
28570 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
28571 Add comments for each pending glibc patch.
28573 2005-08-15 Bruno Haible <bruno@clisp.org>
28575 * lib/regex.h (__restrict_arr): Don't define to __restrict if
28576 __cplusplus is defined.
28578 2005-08-14 Jim Meyering <jim@meyering.net>
28580 Sync from coreutils.
28582 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
28583 Use the hash-table-based cycle-detection code not just when
28584 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
28585 Reported by James Youngman in
28586 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
28587 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
28588 FTS_TIGHT_CYCLE_CHECK.
28589 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
28590 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
28592 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
28593 * lib/fts.c (fd_safer): Remove decl.
28594 Include fcntl--.h rather than unistd-safer.h
28595 (fts_safe_changedir): Don't call fd_safer; no longer needed
28596 now that we include fcntl--.h.
28598 2005-08-12 Simon Josefsson <jas@extundo.com>
28600 * modules/getndelim2: Use ssize_t module.
28601 * modules/getnline: Likewise.
28602 * modules/safe-read: Likewise.
28603 * modules/xreadlink: Likewise.
28605 * modules/ssize_t: New file.
28607 2005-08-12 Simon Josefsson <jas@extundo.com>
28609 * m4/readline.m4: Look for termcap, curses or ncurses if required.
28611 2005-08-12 Simon Josefsson <jas@extundo.com>
28613 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28616 2005-08-12 Simon Josefsson <jas@extundo.com>
28618 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
28619 readline, getdelim and check_version.
28620 (Support for systems lacking ISO C 99: Sizes of integer types):
28623 2005-08-12 Bruno Haible <bruno@clisp.org>
28625 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
28627 2005-08-11 Simon Josefsson <jas@extundo.com>
28629 * modules/readline: New file.
28631 * modules/strnlen (Files): Add strnlen.h.
28633 2005-08-11 Simon Josefsson <jas@extundo.com>
28635 * m4/readline.m4: New file.
28637 2005-08-11 Simon Josefsson <jas@extundo.com>
28639 * lib/readline.h, readline.c: New file.
28641 2005-08-11 Simon Josefsson <jas@extundo.com>
28643 * doc/gnulib.texi (Initial import, Finishing touches): Mention
28646 2005-08-11 Bruno Haible <bruno@clisp.org>
28648 * lib/strnlen.h (strnlen): Change parameter name to match comment.
28650 2005-08-10 Stepan Kasal <kasal@ucw.cz>
28652 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
28654 2005-08-10 Simon Josefsson <jas@extundo.com>
28656 * tests/test-iconvme.c: New file.
28658 2005-08-10 Simon Josefsson <jas@extundo.com>
28660 * m4/strnlen.m4: New file.
28662 * m4/strndup.m4: Don't check for strnlen declaration, done in
28665 2005-08-10 Simon Josefsson <jas@extundo.com>
28667 * lib/strndup.c: Use strnlen.h.
28669 * lib/strnlen.h: New file.
28671 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
28675 2005-08-02 Simon Josefsson <jas@extundo.com>
28677 * modules/readline: New file.
28679 2005-08-02 Simon Josefsson <jas@extundo.com>
28681 * modules/getdelim: New file.
28683 * modules/getline: Rewrite, don't use getndelim2.
28685 2005-08-02 Simon Josefsson <jas@extundo.com>
28687 * m4/getline.m4: Separate out getdelim stuff into separate module.
28689 * m4/getdelim.m4: New file.
28691 2005-08-02 Simon Josefsson <jas@extundo.com>
28693 * lib/getline.h, getline.c: Rewrite.
28695 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
28697 2005-07-31 Bruno Haible <bruno@clisp.org>
28699 * lib/lock.h (gl_lock_initializer): New macro.
28700 (gl_lock_define_initialized): Use it.
28701 (gl_rwlock_initializer): New macro.
28702 (gl_rwlock_define_initialized): Use it.
28703 (gl_recursive_lock_initializer): New macro.
28704 (gl_recursive_lock_define_initialized): Use it.
28706 2005-07-30 Karl Berry <karl@gnu.org>
28708 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
28709 Report from Ben Pfaff, regarding getopt.
28711 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
28713 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
28715 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
28716 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
28717 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
28718 (gl_GETOPT): Use the new macros. Most of the implementation
28719 is moved to the new macros. This is for programs like Emacs
28720 that don't want all the functionality of gl_GETOPT.
28722 2005-07-26 Bruno Haible <bruno@clisp.org>
28724 * m4/lock.m4: Update from GNU gettext.
28726 2005-07-26 Bruno Haible <bruno@clisp.org>
28728 * lib/lock.h: Update from GNU gettext.
28729 * lib/lock.c: Update from GNU gettext.
28731 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
28733 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
28734 obsolescent AC_TRY_RUN. Include the default includes files, for
28737 2005-07-24 Bruno Haible <bruno@clisp.org>
28739 * modules/visibility: New file.
28740 * MODULES.html.sh (Misc): Add visibility.
28742 2005-07-24 Bruno Haible <bruno@clisp.org>
28744 * m4/visibility.m4: New file.
28746 2005-07-24 Bruno Haible <bruno@clisp.org>
28748 * doc/visibility.texi: New file.
28750 2005-07-22 Bruno Haible <bruno@clisp.org>
28752 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
28753 $(ALLOCA_H), redundant through BUILT_SOURCES.
28754 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
28755 redundant through BUILT_SOURCES.
28756 * modules/byteswap (Makefile.am): Remove explicit dependency on
28757 $(BYTESWAP_H), redundant through BUILT_SOURCES.
28758 * modules/fnmatch (Makefile.am): Remove explicit dependency on
28759 $(FNMATCH_H), redundant through BUILT_SOURCES.
28760 * modules/getopt (Makefile.am): Remove explicit dependency on
28761 $(GETOPT_H), redundant through BUILT_SOURCES.
28762 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
28763 redundant through BUILT_SOURCES.
28764 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
28765 redundant through BUILT_SOURCES.
28766 * modules/stdbool (Makefile.am): Remove explicit dependency on
28767 $(STDBOOL_H), redundant through BUILT_SOURCES.
28768 * modules/stdint (Makefile.am): Remove explicit dependency on
28769 $(STDINT_H), redundant through BUILT_SOURCES.
28770 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
28771 Remove explicit dependency on $(SYSEXITS_H).
28772 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
28774 2005-07-18 Simon Josefsson <jas@extundo.com>
28776 * lib/check-version.c (check_version): Accept identical versions too.
28778 2005-07-18 Bruno Haible <bruno@clisp.org>
28780 * modules/lock: New file.
28781 * MODULES.html.sh (Multithreading): New section.
28783 2005-07-18 Bruno Haible <bruno@clisp.org>
28785 * m4/lock.m4: New file, from GNU gettext.
28787 2005-07-18 Bruno Haible <bruno@clisp.org>
28789 * lib/lock.h: New file, from GNU gettext.
28790 * lib/lock.c: New file, from GNU gettext.
28792 2005-07-18 Bruno Haible <bruno@clisp.org>
28794 * lib/lock.h (gl_once_t): New type.
28795 (gl_once_define, gl_once): New macros.
28796 * lib/lock.c (fresh_once): New variable.
28797 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
28800 2005-07-16 Simon Josefsson <jas@extundo.com>
28802 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
28803 workaround, suggested by Bruno.
28805 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
28807 * modules/xalloc (Depends-on): Add xalloc-die.
28808 * modules/xvasprintf (Depends-on): Add xalloc-die.
28810 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
28812 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
28813 with a minor change.
28815 2005-07-15 Bruno Haible <bruno@clisp.org>
28817 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
28818 When using lib/poll.c, define poll as rpl_poll.
28820 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
28822 * modules/argp (Depends-on): Remove unlocked-io.
28824 2005-07-14 Derek Price <derek@ximbiot.com>
28826 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
28827 for glob symlink bug.
28829 2005-07-14 Bruno Haible <bruno@clisp.org>
28831 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
28832 Instead, test for *_unlocked function declarations directly.
28834 2005-07-11 Simon Josefsson <jas@extundo.com>
28836 * modules/size_max: New file.
28838 * modules/xsize: Depend on size_max module for size_max.m4.
28840 2005-07-11 Simon Josefsson <jas@extundo.com>
28842 * lib/size_max.h: New file.
28844 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
28846 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
28847 copyright symbol and the year.
28848 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
28849 (version_etc_va): Use parameterized copyright notice.
28850 Reword to conform to the current GNU coding standards.
28852 2005-07-11 Karl Berry <karl@gnu.org>
28854 * doc/gnulib.texi (Quoting): new node.
28855 (Initial import): more info, from Patrice.
28857 2005-07-11 Bruno Haible <bruno@clisp.org>
28859 * gnulib-tool (func_usage): Document option --avoid.
28860 (Command line options): Handle --avoid.
28861 (func_acceptable): New function.
28862 (func_modules_transitive_closure): Use it.
28864 2005-07-11 Bruno Haible <bruno@clisp.org>
28866 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
28867 Reported by Jim Meyering.
28869 2005-07-10 Bruno Haible <bruno@clisp.org>
28871 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
28872 Needed when size_t is smaller than 'unsigned int'.
28873 Reported by Paul Eggert.
28875 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
28877 * modules/argp (Depends-on): Add unlocked-io
28879 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
28881 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
28884 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
28886 * config/srclist.txt: Comment out regcomp.c, since we have a porting
28889 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
28890 and Paul Eggert <eggert@cs.ucla.edu>
28892 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
28893 in wint_t, not wchar_t. Remove now-unnecessary cast.
28895 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
28897 * modules/regex (Files): Add lib/regex_internal.c,
28898 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
28899 (Depends-on): Add extensions.
28900 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
28902 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
28904 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
28906 * m4/same.m4 (gl_SAME): Likewise.
28907 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
28909 * m4/regex.m4: Adjust to new libc regex implementation.
28910 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
28911 all the .c and .h parts of (the new) regex.
28912 Quote the m4 stuff better.
28913 Check for RE_ICASE bug of old gnulib.
28914 Check for REG_STARTEND of recent libc.
28915 Rename local variables from jm_* to gl_*.
28916 Quote operand of "test -f".
28917 Say "recent enough" version of libc, not "version 2".
28918 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
28919 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
28920 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
28921 Remove check for btowc, isascii.
28922 Require AM_LANGINFO_CODESET.
28924 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
28926 * lib/regex.c, regex.h: Sync from libc.
28927 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
28929 New files, synced from libc, except that regex_internal.h
28930 currently has a small porting fix.
28932 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
28934 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
28935 regex_internal.c, regexec.c.
28936 Add regex_internal.h too, but as a comment, since the libc version
28937 is currently broken in gnulib mode.
28939 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
28941 Support programs like Emacs that use gnulib but not gettext.
28942 * MODULES.html.sh (Internationalization functions): Add gettext-h.
28943 * modules/gettext-h: New file.
28944 * modules/gettext (Files): Remove lib/gettext.h.
28945 (Depends-on): Add gettext-h.
28946 (Makefile.am): Remove lib_SOURCES.
28947 * modules/argmatch, modules/c-stack, modules/closeout:
28948 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
28949 * modules/execute, modules/file-type, modules/getaddrinfo:
28950 * modules/getopt, modules/human, modules/javacomp:
28951 * modules/javaexec, modules/mkdir-p, modules/obstack:
28952 * modules/openat, modules/pagealign_alloc, modules/pipe:
28953 * modules/quotearg, modules/regex, modules/rpmatch:
28954 * modules/unicodeio, modules/userspec, modules/version-etc:
28955 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
28957 Depend on gettext-h, not gettext.
28959 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
28961 * gnulib-tool (func_import): Add support for 'public domain' license.
28962 * modules/alloca, modules/atexit, modules/memmove:
28963 Now public domain, not GPL.
28964 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
28965 * modules/realloc, modules/strerror, modules/strtod:
28968 2005-07-05 Bruno Haible <bruno@clisp.org>
28970 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
28971 autoconf CVS. Needed for mingw.
28973 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
28975 Remove the dependency of the strftime module on the tzset module.
28976 * modules/strftime (Depends-on): Remove dependency on tzset.
28978 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
28980 Remove the dependency of the strftime module on the tzset module.
28981 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
28982 gl_FUNC_TZSET_CLOBBER.
28984 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
28986 Remove the dependency of the strftime module on the tzset module.
28987 * lib/strftime.c (my_strftime)
28988 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
28989 Copy the input structure, to work around some of the bug with
28990 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
28991 Solaris releases, you should also use the tzset module, but we won't
28992 require it as a dependency any more since we don't want LGPLed code
28993 to depend on GPLed code.
28995 2005-07-02 Jim Meyering <jim@meyering.net>
28997 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
28998 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
28999 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29000 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29002 2005-07-02 Jim Meyering <jim@meyering.net>
29004 * lib/backupfile.c (backup_args): Change a `0' to NULL.
29006 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
29008 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29009 declares only 'struct timespec;' (!).
29011 2005-07-01 Jim Meyering <jim@meyering.net>
29013 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29014 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29015 * lib/save-cwd.c, tempname.c:
29016 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29017 and don't include <sys/file.h>).
29019 2005-06-29 Jim Meyering <jim@meyering.net>
29021 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29022 type name. Use the variable name instead.
29023 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29026 2005-06-28 Simon Josefsson <jas@extundo.com>
29028 * modules/check-version (Files): Add check-version.m4.
29030 2005-06-28 Simon Josefsson <jas@extundo.com>
29032 * m4/check-version.m4: New file, suggested by Jim Meyering
29033 <jim@meyering.net>.
29035 2005-06-28 Simon Josefsson <jas@extundo.com>
29037 * lib/check-version.h, lib/check-version.c: New files.
29039 2005-06-28 Simon Josefsson <jas@extundo.com>
29041 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
29042 collision with global variable. Better indentation. Don't
29043 increment buffer pointer beyond buffer end. Based on comments
29044 from Paul Eggert <eggert@cs.ucla.edu>.
29046 * lib/base64.h: Indent.
29048 2005-06-28 Simon Josefsson <jas@extundo.com>
29050 * doc/gnulib.texi (Library version handling): New section.
29052 2005-06-28 Jim Meyering <jim@meyering.net>
29054 * check-module (find_included_lib_files): Hard-code another
29055 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29056 but modules/fts-lgpl (correctly) does not list those files.
29058 * modules/canonicalize (Files): Add lib/pathmax.h.
29060 2005-06-25 Simon Josefsson <jas@extundo.com>
29062 * modules/check-version: New file.
29064 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
29066 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29067 initializer of struct addrinfo, as an indication that we don't
29068 care how many members the structure has.
29070 2005-06-24 Derek Price <derek@ximbiot.com>
29071 and Bruno Haible <bruno@clisp.org>
29073 Remove stat module & update lstat.
29074 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29075 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29076 * m4/stat.m4: Remove this file.
29078 2005-06-24 Derek Price <derek@ximbiot.com>
29079 and Bruno Haible <bruno@clisp.org>
29081 Remove stat module & update lstat.
29082 * lib/stat.c: Remove this file...
29083 (slash_aware_lstat): ...moving this content and its support...
29084 * lib/lstat.c (rpl_lstat): ...into here.
29085 * lib/lstat.h: New file.
29087 2005-06-24 Derek Price <derek@ximbiot.com>
29088 and Bruno Haible <bruno@clisp.org>
29090 Remove stat module & update lstat.
29091 * config/srclist.txt (libc sources): Remove stat.
29093 2005-06-24 Derek Price <derek@ximbiot.com>
29094 and Bruno Haible <bruno@clisp.org>
29096 Remove stat module & update lstat.
29097 * MODULES.html.sh (stat): Remove.
29098 * MODULES.html: Regenerated.
29099 * modules/lstat (Description): Correct function name.
29100 (Files): Add "lstat.h".
29101 (Depends-on): Remove stat, add xalloc, stat-macros.
29102 * modules/stat: Remove this file.
29103 (Include): Add "lstat.h", remove <sys/stat.h>.
29105 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
29107 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
29108 (ranged_convert): Don't save conversion in a temporary struct.
29109 This causes a warning with GCC 4.0.0, and anyway in the typical
29110 case it's not worth the extra 100 bytes or so of code.
29111 (ranged_convert, __mktime_internal): When calling a function via a
29112 pointer P, use P () rather than (*P) (), as we now assume C89 or
29115 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
29117 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
29118 "who -r" failed to give output. Problem reported by Tim Waugh.
29120 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
29121 (xcalloc): Use it to avoid needless tests.
29122 Problem reported by Jim Meyering.
29124 2005-06-20 Derek Price <derek@ximbiot.com>
29126 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
29127 unnecessary for Autoconfs > 2.59c.
29129 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29131 * lib/argp.h (__option_is_short): Check upper limit of
29132 __key. Isprint() requires its argument to have the value
29133 of an unsigned char or EOF.
29135 2005-06-16 Jim Meyering <jim@meyering.net>
29137 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
29138 when either N or S is zero.
29140 2005-06-16 Derek Price <derek@ximbiot.com>
29142 * m4/bison.m4: Declare YACC & YFLAGS precious.
29144 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
29146 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
29147 multibyte string or pattern, fall back on unibyte matching.
29148 Problem reported by James Youngman.
29150 2005-06-08 Bruno Haible <bruno@clisp.org>
29152 * modules/csharpcomp: New file.
29153 * MODULES.html.sh (C#): Add csharpcomp.
29155 2005-06-08 Bruno Haible <bruno@clisp.org>
29157 * m4/csharpcomp.m4: New file, from GNU gettext.
29159 2005-06-08 Bruno Haible <bruno@clisp.org>
29161 * lib/csharpcomp.h: New file, from GNU gettext.
29162 * lib/csharpcomp.c: New file, from GNU gettext.
29163 * lib/csharpcomp.sh.in: New file, from GNU gettext.
29165 2005-06-08 Bruno Haible <bruno@clisp.org>
29167 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
29170 2005-06-07 Derek Price <derek@ximbiot.com>
29173 * lib/glob_.h: Indent nested #ifdef.
29175 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
29177 Sync from coreutils.
29178 Use "file name" when talking about file names, instead of "filename"
29179 or "path", as per the GNU coding standards.
29180 * lib/mkdir-p.c: Renamed from makepath.c.
29181 (make_dir_parents): Renamed from make_path. All callers changed.
29182 * lib/mkdir-p.h: Likewise. All includers changed.
29183 * lib/filenamecat.c: Renamed from path-concat.c.
29184 (file_name_concat): Renamed from path_concat. All callers changed.
29185 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
29186 * lib/filenamecat.h: Likewise. All includers changed.
29187 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
29188 in comments or local variable names.
29189 * lib/basename.c: Likewise.
29190 * lib/canonicalize.c, canonicalize.h: Likewise.
29191 * lib/dirname.c, dirname.h: Likewise.
29192 * lib/euidaccess.c: Likewise.
29193 * lib/exclude.c: Likewise
29194 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
29195 * lib/fsusage.c, fsuage.h: Likewise.
29196 * lib/fts.c, fts_.h: Likewise.
29197 * lib/getcwd.c: Likewise.
29198 * lib/getloadavg.c: Likewise.
29199 * lib/mkstemp.c: Likewise.
29200 * lib/mountlist.c, mountlist.h: Likewise.
29201 * lib/openat.c, openat.h: Likewise.
29202 * lib/readlink-stub.c: Likewise.
29203 * lib/readutmp.c, readutmp.h: Likewise.
29204 * lib/rename.c: Likewise.
29205 * lib/rmdir.c: Likewise.
29206 * lib/same.c: Likewise.
29207 * lib/savedir.c: Likewise.
29208 * lib/stripslash.c: Likewise.
29209 * lib/tempname.c: Likewise.
29210 * lib/xreadlink.c: Likewise.
29211 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
29213 * lib/exclude.h: Likewise.
29215 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
29216 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29217 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
29218 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29219 * lib/pathmax.h: Include <limits.h> unconditionally, since other
29220 files have been getting away with it for years (MORE/BSD 4.3
29222 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
29223 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29225 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
29226 Define to 256, not 255, as per modern POSIX.
29228 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
29230 Sync from coreutils.
29231 Use "file name" when talking about file names, instead of "filename"
29232 or "path", as per the GNU coding standards.
29233 * MODULES.html.sh: mkdir-p renamed from makepath.
29234 filenamecat renamed from path-concat.
29235 * modules/filenamecat: Renamed from modules/path-concat.
29236 (Files): filenamecat.h and filenamecat.c renamed from
29237 path-concat.h and path-concat.c.
29238 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
29239 (Include): filenamecat.h, not path-concat.h.
29240 * modules/mkdir-p: Renamed from modules/makepath.
29241 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
29243 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
29244 (Include): mkdir-p.h, not makepath.h.
29246 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
29248 Sync from coreutils.
29249 * m4/mkdir-p.m4: Renamed from makepath.m4.
29250 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
29251 Rename files from makepath.c to mkdir-p.c, and from
29252 makepath.h to mkdir-p.h.
29253 * m4/filenamecat.m4: Renamed from path-concat.m4.
29254 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
29255 Rename files from path-concat.c to filenamecat.c,
29256 and from path-concat.h to filenamecat.h.
29257 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
29258 "file name" in local variables or comments.
29259 * m4/rename.m4: Likewise.
29261 2005-06-01 Bruno Haible <bruno@clisp.org>
29263 * modules/csharpexec: New file.
29264 * MODULES.html.sh (C#): New section.
29266 2005-06-01 Bruno Haible <bruno@clisp.org>
29268 * m4/csharp.m4: New file, from GNU gettext.
29269 * m4/csharpexec.m4: New file, from GNU gettext.
29271 2005-06-01 Bruno Haible <bruno@clisp.org>
29273 * lib/csharpexec.h: New file, from GNU gettext.
29274 * lib/csharpexec.c: New file, from GNU gettext.
29275 * lib/csharpexec.sh.in: New file, from GNU gettext.
29277 2005-05-31 Derek Price <derek@ximbiot.com>
29278 Paul Eggert <eggert@cs.ucla.edu>
29281 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29283 2005-05-31 Derek Price <derek@ximbiot.com>
29284 Paul Eggert <eggert@cs.ucla.edu>
29287 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29289 2005-05-29 Derek Price <derek@ximbiot.com>
29291 * config/srclist.txt (glob_.h, glob.c): Add these files.
29293 2005-05-29 Derek Price <derek@ximbiot.com>
29295 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
29296 * modules/glob: New file.
29297 * modules/getlogin_r: Add link to POSIX spec in description.
29299 2005-05-29 Derek Price <derek@ximbiot.com>
29300 Paul Eggert <eggert@cs.ucla.edu>
29302 * m4/glob.m4: New file.
29304 2005-05-29 Derek Price <derek@ximbiot.com>
29305 Paul Eggert <eggert@cs.ucla.edu>
29307 * lib/glob_.h, lib/glob.c: New files.
29309 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
29311 * modules/fts (Files): Remove m4/inttypes-pri.m4.
29312 * modules/fts-lgpl (Depends-on): Remove gettext.
29314 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
29316 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
29317 and don't require gt_INTTYPES_PRI.
29319 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
29321 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
29323 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
29324 the configuration hassle isn't worth it.
29325 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
29326 (LONGEST_MODIFIER, PRIuMAX): Remove.
29328 2005-05-27 Bruno Haible <bruno@clisp.org>
29330 * lib/getlogin_r.h: Remove second include of <stddef.h>.
29332 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
29334 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
29335 _POSIX_PTHREAD_SEMANTICS for Solaris.
29337 2005-05-25 Derek Price <derek@ximbiot.com>
29339 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
29341 2005-05-25 Derek Price <derek@ximbiot.com>
29342 Paul Eggert <eggert@cs.ucla.edu>
29344 * modules/getlogin_r, m4/getlogin_r.m4: New files.
29345 * lib/getlogin_r.c, getlogin_r.h: New files.
29347 2005-05-25 Bruno Haible <bruno@clisp.org>
29348 Derek Price <derek@ximbiot.com>
29350 * lib/getlogin_r.h: Simplify API documentation.
29352 2005-05-23 Derek Price <derek@ximbiot.com>
29354 * modules/minmax (Files): Add m4/minmax.m4.
29355 (configure.ac): Add gl_MINMAX.
29357 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
29359 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
29360 so that unistd-safer.h (GPL'ed code) need not be included.
29362 2005-05-22 Bruno Haible <bruno@clisp.org>
29364 * m4/minmax.m4: New file.
29365 Based on a patch by Derek Price <derek@ximbiot.com>.
29367 2005-05-22 Bruno Haible <bruno@clisp.org>
29369 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
29370 (INT64_MIN): Fix definition.
29371 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
29373 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
29374 NEED_SIGNED_INT_TYPES.
29376 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
29377 HAVE_SYSTEM_INTTYPES.
29379 2005-05-22 Bruno Haible <bruno@clisp.org>
29381 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
29382 Also include <sys/param.h> if it defines MIN, MAX.
29383 Based on a patch by Derek Price <derek@ximbiot.com>.
29385 2005-05-21 Jim Meyering <jim@meyering.net>
29387 * modules/fts (Files): Add m4/inttypes-pri.m4.
29388 (Depends-on): Add lstat and remove gettext. Alphabetize.
29390 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
29393 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
29394 (setup_dir, free_dir): New functions.
29395 (enter_dir, leave_dir): Define trivial
29396 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
29397 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
29398 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
29399 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
29400 Move to fts-cycle.c.
29401 (fts_open): Use setup_dir.
29402 (fts_close): Use free_dir.
29403 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
29404 This adds a label and some gotos, but the alternatives were messier.
29405 Check for memory allocation failure when entering a dir.
29406 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
29407 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
29408 (FTS): New member fts_cycle, that is a union that contains the
29409 old active_dir_ht and cycle_state. All uses changed to mention
29410 fts_cycle.ht and fts_cycle.state.
29411 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
29412 fts.c, with the following changes:
29413 (setup_dir, free_dir): New functions.
29414 (enter_dir): Now returns bool. Return true if successful, false
29415 if memory exhausted. All callers changed.
29416 Do not bother partly cleaning up on
29417 memory allocation failure; that is free_dir's job.
29418 However, free ad if hash_insert fails, to avoid memory leak.
29419 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
29420 fts->fts_options to see which union member to use.
29422 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
29424 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
29425 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
29427 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
29429 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
29431 2005-05-20 Jim Meyering <jim@meyering.net>
29433 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
29434 Now a macro, to pacify GCC.
29436 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
29438 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
29441 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
29443 * lib/chown.c (rpl_chown): Return -1 on failure.
29445 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
29447 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
29448 Don't check for stddef.h.
29449 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
29450 don't use its results.
29451 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
29452 since we include them unconditionally. Don't require
29453 AM_STDBOOL_H, since stdbool is a prerequisite.
29454 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
29455 since we assume C89 or better.
29456 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
29457 as we don't use their results.
29458 Don't check for fchdir, memmove, memset, strrchr, as we use
29459 them unconditionally.
29460 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
29461 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
29463 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
29465 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
29466 Include <stddef.h> unconditionally, since we assume C89 now.
29467 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
29468 * lib/fts.c: Include fts_.h first, to check interface.
29469 Do not include intprops.h; no longer needed.
29470 Include cycle-check.h and hash.h, since fts_.h no longer does.
29471 Remove unnecessary casts of closedir to void.
29472 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
29473 decide whether to decrement nlinks.
29474 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
29475 (FTS): Use struct hash_table * instead of Hash_table, so that
29476 we no longer need to include hash.h here.
29478 2005-05-18 Jim Meyering <jim@meyering.net>
29480 * modules/dirfd (License): Change to LGPL. Most of the code
29481 is already in the public domain.
29483 2005-05-18 Jim Meyering <jim@meyering.net>
29485 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
29486 Reported by Yoann Vandoorselaere.
29488 2005-05-17 Jim Meyering <jim@meyering.net>
29490 * m4/fts.m4: New file, from coreutils.
29492 2005-05-17 Jim Meyering <jim@meyering.net>
29494 * lib/fts.c, lib/fts_.h: New files, from coreutils.
29496 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
29498 Sync from coreutils.
29499 * m4/unlinkdir.m4: New file.
29501 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
29503 Sync from coreutils.
29504 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
29505 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
29506 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
29507 White space changes only.
29508 * lib/makepath.c (make_path): Port to hosts where leading "//" is
29510 * lib/yesno.c: Include getline.h, not ctype.h.
29511 (yesno): Don't remove leading white space; POSIX doesn't allow it.
29512 Use getline to remove arbitrary restriction on response length.
29514 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
29516 * config/srclist-update: Spell out "Street" in FSF postal
29517 mail address; this is the style the FSF seems to prefer.
29519 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
29520 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
29521 this updates FSF postal mail address.
29523 Sync from coreutils.
29524 * modules/unlinkdir: New file.
29525 * modules/yesno (Depends-on): Add getline.
29526 * MODULES.html.sh (File system functions): Add unlinkdir.
29528 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
29530 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
29532 Change the initial comment to refer to GPL, not LGPL.
29533 gnulib-tool will change it to LGPL as needed.
29535 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
29536 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
29537 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
29538 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
29539 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
29540 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
29541 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
29542 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
29543 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
29544 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
29545 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
29546 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
29547 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
29548 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
29549 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
29550 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
29551 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
29552 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
29553 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
29554 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
29555 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
29556 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
29557 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
29558 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
29559 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
29560 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
29561 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
29562 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
29563 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
29564 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
29565 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
29566 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
29567 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
29568 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
29569 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
29570 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
29571 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
29572 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
29573 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
29574 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
29575 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
29576 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
29577 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
29578 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
29579 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
29580 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
29581 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
29582 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
29583 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
29584 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
29585 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29586 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
29587 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
29588 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
29589 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
29590 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
29591 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
29592 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
29593 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
29594 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
29595 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
29596 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
29597 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
29598 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
29599 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
29600 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
29601 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
29602 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
29603 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
29604 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
29605 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
29606 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
29607 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
29608 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
29609 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
29610 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
29611 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
29612 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
29613 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
29614 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
29615 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
29616 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
29617 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
29618 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
29619 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
29620 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
29621 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
29622 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
29623 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
29624 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
29625 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
29626 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
29627 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
29628 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
29629 lib/yesno.c, lib/yesno.h:
29630 Update FSF postal mail address.
29632 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
29634 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
29635 tests/test-memmem.c, tests/test-stpncpy.c:
29636 Update FSF postal mail address.
29638 2005-05-13 Bruno Haible <bruno@clisp.org>
29640 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
29641 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
29642 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
29643 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
29644 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
29645 Add support for 64-bit integers in the MSVC compiler.
29647 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29649 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
29651 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
29653 * gnulib-tool (func_import): Sort and uniquify recommended includes.
29655 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
29657 * doc/getdate.texi (General date syntax): Don't say that date
29658 date --iso-8601=ns generates acceptable dates; it doesn't yet.
29659 Problem reported by Nic Ferrier.
29661 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29663 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
29664 specified in ai_socktype. Fix invalid ai_protocol
29665 check. ai_protocol is usually set to 0 or depending on
29666 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
29667 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
29668 ai_socktype / ai_protocol in the returned addrinfo structure.
29670 2005-05-10 Simon Josefsson <jas@extundo.com>
29672 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
29673 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29675 2005-05-10 Karl Berry <karl@gnu.org>
29677 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
29678 (from http://www.gnu.org/licenses).
29679 * doc/COPYING.LIB: also rename to COPYING.LESSER.
29680 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
29683 2005-05-10 Karl Berry <karl@gnu.org>
29685 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
29686 (COPYING.DOC): remove.
29688 * config/srclist-update: new FSF address.
29690 2005-05-10 Derek Price <derek@ximbiot.com>
29692 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
29695 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29696 Bruno Haible <bruno@clisp.org>
29698 * modules/inet_ntop: New file.
29699 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29702 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29703 Bruno Haible <bruno@clisp.org>
29705 * m4/inet_ntop.m4: New file.
29707 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29708 Bruno Haible <bruno@clisp.org>
29710 * lib/inet_ntop.h: New file.
29711 * lib/inet_ntop.c: New file, from glibc with modifications.
29713 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
29715 * modules/time_r (License): Change to LGPL.
29716 * modules/extensions (License): Change to LGPL. Actually,
29717 the license is more permissive than that, but currently gnulib-tool
29718 doesn't know how to handle more-permissive licenses.
29720 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
29721 Problem reported by Dave Love.
29723 2005-05-08 Jim Meyering <jim@meyering.net>
29725 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
29728 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
29730 * modules/argmatch (Depends-on): Add stdbool.
29731 * modules/backupfile (Depends-on): Likewise.
29732 * modules/chdir-long (Depends-on): Likewise.
29733 * modules/closeout (Depends-on): Likewise.
29734 * modules/cycle-check (Depends-on): Likewise.
29735 * modules/dirname (Depends-on): Likewise.
29736 * modules/fnmatch (Depends-on): Likewise.
29737 * modules/fsusage (Depends-on): Likewise.
29738 * modules/fwriteerror (Depends-on): Likewise.
29739 * modules/getcwd (Depends-on): Likewise.
29740 * modules/getloadavg (Depends-on): Likewise.
29741 * modules/hard-locale (Depends-on): Likewise.
29742 * modules/makepath (Depends-on): Likewise.
29743 * modules/mountlist (Depends-on): Likewise.
29744 * modules/nanosleep (Depends-on): Likewise.
29745 * modules/posixtm (Depends-on): Likewise.
29746 * modules/quotearg (Depends-on): Likewise.
29747 * modules/readtokens (Depends-on): Likewise.
29748 * modules/readtokens0 (Depends-on): Likewise.
29749 * modules/readutmp (Depends-on): Likewise.
29750 * modules/save-cwd (Depends-on): Likewise.
29751 * modules/strftime (Depends-on): Likewise.
29752 * modules/userspec (Depends-on): Likewise.
29753 * modules/utimecmp (Depends-on): Likewise.
29754 * modules/xgetcwd (Depends-on): Likewise.
29755 * modules/xnanosleep (Depends-on): Likewise.
29756 * modules/xstrtod (Depends-on): Likewise.
29757 * modules/yesno (Depends-on): Likewise.
29759 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
29761 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
29764 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
29766 Merge from coreutils. Among other things,
29767 add bulletproofing for cases where stdin, stdout, or stderr are closed.
29768 * lib/fd-safer.c: New file.
29769 * lib/fcntl-safer.h, open-safer.c: Remove.
29770 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
29771 * lib/dup-safer.c: Include unistd-safer.h first.
29772 Don't include errno.h.
29773 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
29774 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
29775 * lib/file-type.c: Rely on file-type.h change.
29776 * lib/getloadavg.c: Include unistd-safer.h.
29777 (getloadavg): Use safer open.
29778 * lib/getusershell.c: Include "stdio-safer.h".
29779 (getusershell): Use safer fopen.
29780 * lib/long-options.c (long_options): Use NULL rather than 0.
29781 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
29783 * lib/modechange.c: Likewise.
29784 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
29785 (MODE_DONE): New constant.
29786 (struct mode_change): Remove 'next' member.
29787 (make_node_op_equals): New function; like the old one of the
29788 same name, except it allocates an array.
29789 (mode_compile, mode_create_from_ref): Use it.
29790 (mode_compile): Allocate result as an array, not a linked list.
29791 Parse octal string ourself, so that we catch mistakes like "+0".
29792 (mode_adjust): Arg is an array, not a linked list.
29793 * lib/modechange.c: Include stat-macros.h, xalloc.h.
29794 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
29795 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
29796 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
29797 Remove. This is now stat-macros.h's job.
29798 (talloc): Remove. All callers replaced by xalloc, so that
29799 our invokers don't have to worry about reporting memory failures.
29800 (make_node_op_equals): Remove.
29801 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
29803 (struct mode_change): Moved here from modechange.h.
29804 (mode_append_entry): Remove.
29805 (mode_compile): Remove MASKED_OPS arg, since it encouraged
29806 apps to have incorrect behavior. Use simpler algorithm for head
29807 and tail. Don't futz with umask; that's now the job of mode_adjust.
29808 Detect more invalid usages rather than having somewhat-random behavior.
29809 Don't insert an "a=" action, as that leads to incorrect behavior.
29810 (mode_compile, mode_create_from_ref): Return NULL on error instead
29811 of an enum, since now there's only one way to have an error. All
29813 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
29814 at the correct time. Simplify calculation of "+u" and its ilk.
29815 Don't mishandle "+X".
29816 (mode_free): Remove "register" and localize decls.
29817 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
29818 (struct mode_change): Move to modechange.c; callers don't
29819 need to see this stuff.
29820 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
29821 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
29822 (mode_change, mode_adjust): Reflect the new signatures noted above.
29823 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
29824 that might redefine system include files.
29825 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
29826 (my_usleep): Use NULL rather than (void *) 0.
29827 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
29828 Use siginterrupt to specify that system calls should be interrupted.
29829 (rpl_nanosleep): Move initialization of suspended closer to call of
29831 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
29832 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
29833 (desirable_utmp_entry): New function.
29834 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
29835 using x2nrealloc, to simplify logic.
29836 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
29837 size calculation. Do not assume utmp file is a regular file.
29838 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
29839 (READ_UTMP_CHECK_PIDS): New constant.
29840 * lib/save-cwd.c: Include unistd-safer.h.
29841 (save_cwd): Use fd_safer.
29842 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
29843 [!_LIBC] Include "stat-macros.h" instead.
29844 * lib/unistd-safer.h (fd_safer): New decl.
29846 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
29848 * modules/getloadavg (Depends-on): Add unistd-safer.
29849 * modules/getusershell (Depends-on): Add stdio-safer.
29850 * modules/lstat (Depends-on): Remove xalloc.
29851 * modules/mkstemp (Depends-on): Add stat-macros.
29852 * modules/modechange (Depends-on): Remove xstrtol.
29853 Add stat-macros, xalloc.
29854 * modules/save-cwd (Depends-on): Add unistd-safer.
29855 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
29856 * modules/unistd-safer (Files): Add lib/fd-safer.c
29857 (Makefile.am): Remove lib_SOURCES.
29859 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
29860 Remove fcntl-safer; unistd-safer supersedes it.
29862 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
29864 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
29866 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
29867 (gl_PREREQ_CHOWN): Remove.
29868 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
29869 it. Don't require AC_HEADER_STAT.
29870 (gl_PREREQ_LSTAT): Remove.
29871 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
29872 Don't require AC_HEADER_STAT.
29873 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
29874 (gl_PREREQ_RMDIR): Remove.
29875 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
29876 mention stat-macros.h or AC_HEADER_STAT, since we'll make
29877 the stat-macros module a prerequisite.
29878 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
29879 * m4/filemode.m4 (gl_FILEMODE): Likewise.
29880 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
29881 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
29882 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
29884 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
29885 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
29887 * m4/fcntl-safer.m4: Remove.
29888 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
29889 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
29890 Invoke gl_PREREQ_FD_SAFER.
29891 (gl_PREREQ_FD_SAFER): New macro.
29892 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
29893 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
29894 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
29895 Remove duplicate call to AC_LIBOBJ(readutmp).
29896 (gl_PREREQ_READUTMP): Remove. All uses inlined.
29898 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
29899 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
29901 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
29903 * MODULES.html.sh (Misc): Add byteswap.
29905 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
29907 * modules/getcwd (Depends-on): Add extensions.
29908 * modules/openat (Depends-on): Likewise.
29910 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
29912 * modules/byteswap: New file.
29914 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
29916 * m4/byteswap.m4: New file.
29918 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
29920 * lib/byteswap_.h: New file.
29922 2005-04-25 Karl Berry <karl@gnu.org>
29924 * m4/gettext.m4: Update from GNU gettext 0.14.4.
29926 2005-04-25 Albert Chin <china@thewrittenword.com>
29928 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
29931 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
29933 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
29934 (func_ln_if_changed) Remove forcibly for no error message
29935 in case file does not exist.
29937 2005-04-19 Simon Josefsson <jas@extundo.com>
29939 * gnulib-tool (Options): Make --symlink mean --symbolic.
29941 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
29943 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
29945 2005-04-16 Simon Josefsson <jas@extundo.com>
29947 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
29949 2005-04-15 Simon Josefsson <jas@extundo.com>
29951 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
29953 2005-04-15 Simon Josefsson <jas@extundo.com>
29955 * gnulib-tool: Rename --symlink to --symbolic.
29957 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
29959 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
29960 symbolic links to files instead of copying/moving. Add --aux-dir,
29961 specifying directory relative --dir where auxiliary build tools
29964 2005-04-14 Bruno Haible <bruno@clisp.org>
29966 * modules/allocsa (License): Change to LGPL.
29967 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29969 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
29971 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
29972 that "UTC +1 second" continues to work. Problem reported
29973 by Dmitry V. Levin.
29974 (relunit_snumber): New rule.
29977 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
29979 * lib/getdate.y (universal_time_zone_table): New constant.
29980 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
29981 universal_time_zone_table.
29982 (lookup_zone): Prefer universal_time_zone_table to
29983 local_time_zone_table, so that "GMT" time stamps are allowed in
29984 London during the summer. Problem reported by Ian Abbott.
29986 2005-04-12 Jim Meyering <jim@meyering.net>
29988 * lib/human.c (humblock): Set *options even when returning due to
29989 xstrtoumax conversion failure. Thanks to a used-uninitialized
29990 warning from gcc-4.
29992 2005-04-09 Jim Meyering <jim@meyering.net>
29994 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
29995 -Wuninitialized: initialize tm0.tm_year.
29997 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
29999 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30000 count, since there's no maximum. All uses changed.
30001 Add member dsts_seen.
30002 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30004 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30005 Use pc_rels_seen to decide whther a date is absolute.
30007 * lib/getdate.y (number): Don't overwrite year.
30008 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30011 2005-04-02 Simon Josefsson <jas@extundo.com>
30013 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30014 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30016 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
30018 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30019 where no absolute path name can be longer than PATH_MAX.
30021 2005-03-27 Jim Meyering <jim@meyering.net>
30023 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30025 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
30027 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30028 "one's complement" -> "ones' complement" in comment, as per Knuth.
30029 "value of type" -> "type or expression" in comment.
30030 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30032 2005-03-26 Jim Meyering <jim@meyering.net>
30035 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30036 Correct typos: s/or/of/.
30038 2005-03-26 Jim Meyering <jim@meyering.net>
30040 * modules/check-include-files: Move to ../ and rename to...
30041 * check-module: ...this.
30043 2005-03-25 Jim Meyering <jim@meyering.net>
30045 * modules/xvasprintf (Files): Add xalloc.h.
30047 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
30049 * modules/gettext (Files): config/config.rpath ->
30050 build-aux/config.rpath
30051 * modules/iconv (Files): Likewise.
30052 Problem reported by Oskar Liljeblad.
30054 2005-03-23 Jim Meyering <jim@meyering.net>
30056 * modules/check-include-files: New script to check for
30057 missing dependencies, multiple includes, etc.
30059 * modules/c-strtold (Depends-on): Add xalloc.
30060 * modules/c-strtod (Depends-on): Add xalloc.
30061 * modules/hash (Depends-on): Add xalloc.
30062 (Files): Remove lib/xalloc.h.
30064 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30065 * modules/userspec (Files): Add lib/inttostr.h.
30067 2005-03-23 Jim Meyering <jim@meyering.net>
30069 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30071 2005-03-22 Jim Meyering <jim@meyering.net>
30073 * modules/stat-macros: New module.
30074 * modules/canonicalize, modules/euidaccess, modules/file-type,
30075 * modules/filemode, modules/lchown, modules/makepath,
30076 * modules/rmdir, modules/stat: Depend on new stat-macros module
30077 rather than listing lib/stat-macros.h manually.
30078 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30080 2005-03-22 Jim Meyering <jim@meyering.net>
30082 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30084 2005-03-22 Bruno Haible <bruno@clisp.org>
30086 * config/srclist.txt: Replace target directory 'config' with
30088 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30089 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30092 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
30094 * modules/chdir-long (Depends-on): Add mempcpy.
30096 * modules/acl, modules/backupfile, modules/c-strtod,
30097 modules/c-strtold, modules/canon-host, modules/canonicalize,
30098 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
30099 modules/exclude, modules/exitfail, modules/file-type,
30100 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
30101 modules/getdate, modules/getline, modules/getpagesize,
30102 modules/getpass, modules/getugroups, modules/group-member,
30103 modules/hard-locale, modules/hash, modules/human, modules/idcache,
30104 modules/inttostr, modules/long-options, modules/makepath,
30105 modules/md5, modules/memcasecmp, modules/memcoll,
30106 modules/modechange, modules/mountlist, modules/path-concat,
30107 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
30108 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
30109 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
30110 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
30111 modules/strftime, modules/strndup, modules/strverscmp,
30112 modules/timespec, modules/unlocked-io, modules/userspec,
30113 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
30115 Remove lib_SOURCES line from Makefile.am section, as this is now
30116 done automatically by the corresponding Autoconf macro.
30118 2005-03-21 Jim Meyering <jim@meyering.net>
30120 Changes imported from coreutils.
30122 * lib/cycle-check.c: Don't include xalloc.h.
30124 * lib/path-concat.c: Don't include assert.h.
30125 (path_concat): Remove assertion that would have triggered
30126 for ABASE starting with more than one slash.
30127 Reported by Andreas Schwab.
30129 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
30130 properly when ABASE is an absolute file name.
30131 Correct the description of this function.
30132 Include <assert.h>.
30133 Add an assertion and a test driver.
30134 This fixes a bug introduced on 2004-07-02.
30135 Andreas Schwab reported the resulting failure of cp --parents:
30136 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
30138 2005-03-21 Jim Meyering <jim@meyering.net>
30140 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
30141 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
30143 2005-03-21 Jim Meyering <jim@meyering.net>
30144 and Paul Eggert <eggert@cs.ucla.edu>
30146 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
30147 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
30148 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
30149 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
30150 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
30151 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
30152 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
30153 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
30154 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
30155 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
30156 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
30157 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
30158 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
30159 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
30160 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
30161 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
30162 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
30165 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
30167 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
30168 (which shouldn't happen), generate nothing instead of returning 0
30169 immediately, so that nstrftime (NULL, ...) doesn't return 0.
30171 2005-03-16 Bruno Haible <bruno@clisp.org>
30173 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
30174 HAVE_LONGLONG_64BIT.
30176 2005-03-16 Bruno Haible <bruno@clisp.org>
30178 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
30179 HAVE_LONGLONG_64BIT.
30181 2005-03-16 Bruno Haible <bruno@clisp.org>
30183 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
30184 HAVE_LONGLONG_64BIT.
30186 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
30188 * lib/strftime.c (my_strftime): Prepend space to format so that we can
30189 reliably distinguish strftime failure from empty output on POSIX
30192 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
30194 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
30195 (iconv_string): Don't guess a size-zero buffer, as that might cause
30196 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
30197 result would be 'too large', where 'too large' is (heuristically)
30198 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
30199 overflow concerns. This will prevent some unwanted malloc failures
30200 when the inputs are very large.
30202 2005-03-15 Karl Berry <karl@gnu.org>
30204 * config/srclist.txt (config.rpath): from gettext.
30205 * config/config.rpath: update.
30207 2005-03-15 Bruno Haible <bruno@clisp.org>
30209 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
30212 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
30215 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
30218 2005-03-14 Simon Josefsson <jas@extundo.com>
30220 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
30223 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
30225 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
30226 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
30228 * lib/strtol.c: Likewise.
30230 2005-03-14 Jim Meyering <jim@meyering.net>
30232 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
30233 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
30234 to be nonzero so that we (and caller) can detect the difference
30235 between a valid zero-length expansion and an error return, even
30236 when the underlying strftime fails before writing anything into
30239 2005-03-14 Bruno Haible <bruno@clisp.org>
30241 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
30242 Update from GNU gettext 0.14.3.
30244 2005-03-10 Jim Meyering <jim@meyering.net>
30246 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
30248 2005-03-10 Jim Meyering <jim@meyering.net>
30250 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
30251 so that this module works on systems without fchdir.
30253 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
30255 Factor int-properties macros into a single file, except for
30256 glibc-related files.
30257 * lib/intprops.h: New file.
30258 * lib/getloadavg.c: Include it instead of limits.h.
30259 (INT_STRLEN_BOUND): Remove.
30260 * lib/human.c: Include intprops.h.
30261 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
30262 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
30264 * lib/inttostr.h: Include intprops.h instead of limits.h.
30265 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
30266 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
30267 for consistency with intprops.h.
30268 (time_t_is_integer, twos_complement_arithmetic): Use them.
30269 * lib/sig2str.h: Include <signal.h>, intprops.h.
30270 (INT_STRLEN_BOUND): Remove.
30271 * lib/strftime.c (TYPE_SIGNED): Remove.
30272 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
30273 * lib/strtol.c: Adjust comments to match intprops.h.
30274 * lib/userspec.c: Include intprops.h.
30275 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
30276 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
30277 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
30278 instead of rolling our own expressions.
30279 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
30281 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
30283 (my_strftime): Do not mishandle years close to INT_MAX, by doing
30284 the right thing even if adding 1900 would overflow. Similarly
30285 for tm_mon + 1 and tm_yday + 1.
30286 Make %Y always equivalent to %C%y, and similarly for %G and %g.
30287 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
30288 (DO_SIGNED_NUMBER): New macro.
30289 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
30291 2005-03-07 Bruno Haible <bruno@clisp.org>
30293 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
30295 2005-03-07 Bruno Haible <bruno@clisp.org>
30297 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
30299 2005-03-04 Derek R. Price <derek@ximbiot.com>
30301 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
30302 (func_import): Only replace files via --import when they have actually
30305 2005-03-03 Derek R. Price <derek@ximbiot.com>
30307 * m4/mmap-anon.m4: New file.
30308 * m4/pagealign_alloc.m4: New file.
30310 2005-03-03 Derek R. Price <derek@ximbiot.com>
30311 Bruno Haible <bruno@clisp.org>
30313 * modules/pagealign_alloc: New file.
30314 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
30316 2005-03-03 Derek R. Price <derek@ximbiot.com>
30317 Bruno Haible <bruno@clisp.org>
30319 * lib/pagealign_alloc.h: New file.
30320 * lib/pagealign_alloc.c: New file.
30322 2005-03-03 Bruno Haible <bruno@clisp.org>
30324 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
30325 Use an all-permissive copyright notice, recommended by RMS.
30327 2005-03-02 Bruno Haible <bruno@clisp.org>
30329 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
30330 of AIX, the replacement has to be done only after <string.h> is
30331 included, therefore not in config.h. stpncpy.h does the replacement,
30332 and stpncpy.c uses it.
30334 2005-03-02 Bruno Haible <bruno@clisp.org>
30336 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
30339 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
30341 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
30342 The workaround isn't strictly needed for POSIX conformance, and
30343 it's too much of a pain to configure and maintain. We'll ask
30344 people to fix their kernels instead.
30345 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
30346 (NANOSLEEP_BUG_WORKAROUND): Remove.
30347 (xnanosleep): Remove the workaround.
30349 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
30351 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
30352 Reported by Derek Price.
30353 (Include): Add "timespec.h".
30355 * modules/xnanosleep (Depends-on): Remove gethrxtime.
30357 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
30359 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
30360 to detect nanosleep bug.
30362 2005-03-01 Bruno Haible <bruno@clisp.org>
30364 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
30366 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
30368 * modules/gethrxtime: New file.
30369 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
30370 (Depends-on): Add gethrxtime.
30371 (configure.ac): Add gl_XNANOSLEEP.
30372 (Makefile.am): Remove lib_SOURCES line.
30374 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
30376 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
30377 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
30379 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
30381 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
30382 * lib/timespec.h (gettime): Return void, since it always
30383 succeeds now. All uses changed.
30384 * lib/gettime.c (gettime) Likewise.
30385 [HAVE_NANOTIME]: Prefer nanotime.
30386 Assume gettimeofday succeeds, as POSIX requires.
30387 Assime time () succeeds, since other code already does.
30388 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
30389 (timespec_subtract): Remove.
30390 (NANOSLEEP_BUG_WORKAROUND): New constant.
30391 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
30392 things considerably. Use it only on GNU/Linux hosts, since the
30393 workaround shouldn't be needed elsewhere.
30395 2005-02-24 Bruno Haible <bruno@clisp.org>
30397 * modules/gettext (Files): Add m4/glibc2.m4.
30399 2005-02-24 Bruno Haible <bruno@clisp.org>
30401 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
30402 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
30404 Update from GNU gettext 0.14.2.
30405 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
30407 2005-02-24 Bruno Haible <bruno@clisp.org>
30409 * lib/localcharset.c: Update from GNU gettext 0.14.2.
30410 * lib/config.charset: Update from GNU gettext 0.14.2.
30412 2005-02-24 Bruno Haible <bruno@clisp.org>
30414 * lib/gettext.h: Update from GNU gettext 0.14.2.
30416 2005-02-23 Simon Josefsson <jas@extundo.com>
30418 * m4/iconvme.m4: New file.
30420 2005-02-23 Jim Meyering <jim@meyering.net>
30422 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
30424 Thanks to Bruno Haible for catching it.
30426 2005-02-22 Simon Josefsson <jas@extundo.com>
30428 * modules/iconvme: New file.
30430 * MODULES.html.sh: Add iconvme.
30432 2005-02-22 Simon Josefsson <jas@extundo.com>
30434 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
30436 2005-02-22 Simon Josefsson <jas@extundo.com>
30438 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
30440 2005-02-22 Jim Meyering <jim@meyering.net>
30442 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
30445 2005-02-20 Neil Conway <neilc@samurai.com>
30447 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
30448 returned by OSX/Darwin if the specified buffer is not large
30449 enough for the hostname.
30451 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30453 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
30454 pass it to _help, otherwise the latter coredumps trying to
30455 dereference state.root_argp.
30457 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
30459 * modules/chdir-long (Depends-on): Add memrchr.
30460 * modules/memrchr (Files): Add lib/memrchr.h.
30461 (Include): "memrchr.h".
30463 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
30465 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
30467 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
30469 * lib/memrchr.h: New file.
30470 * lib/chdir-long.c: Include it.
30471 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
30472 Don't bother including stddef.h.
30474 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
30476 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
30478 Include <sys/types.h>, for dev_t.
30479 (ME_DUMMY, ME_REMOTE): Move from here....
30480 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
30481 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
30483 Include mountlist.h first, to test the interface.
30485 2005-01-29 Bruno Haible <bruno@clisp.org>
30487 * lib/progname.c (program_name): Initialize.
30488 Needed when linking statically on MacOS X.
30490 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
30492 Sync from coreutils.
30493 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
30494 (Depends-on): Add c-strtod.
30495 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
30497 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
30499 Sync from coreutils.
30500 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
30502 Remove files that are specific to coreutils.
30503 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
30505 2005-01-28 Bruno Haible <bruno@clisp.org>
30507 * modules/javacomp: New file.
30508 * MODULES.html.sh (Java): Add javacomp.
30510 2005-01-28 Bruno Haible <bruno@clisp.org>
30512 * m4/javacomp.m4: New file, from GNU gettext.
30514 2005-01-28 Bruno Haible <bruno@clisp.org>
30516 * lib/javacomp.sh.in: New file, from GNU gettext.
30517 * lib/javacomp.h: New file, from GNU gettext.
30518 * lib/javacomp.c: New file, from GNU gettext.
30520 2005-01-26 Simon Josefsson <jas@extundo.com>
30522 * lib/gai_strerror.c: Use GPL in header.
30524 2005-01-26 Bruno Haible <bruno@clisp.org>
30526 * modules/javaexec: New file.
30527 * MODULES.html.sh (Java): Add javaexec.
30529 2005-01-26 Bruno Haible <bruno@clisp.org>
30531 * m4/javaexec.m4: New file, from GNU gettext.
30533 2005-01-26 Bruno Haible <bruno@clisp.org>
30535 * lib/javaexec.sh.in: New file, from GNU gettext.
30536 * lib/javaexec.h: New file, from GNU gettext.
30537 * lib/javaexec.c: New file, from GNU gettext.
30539 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30541 * modules/lchown (Depends-on): Remove lchown.h
30543 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30545 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
30546 must be defined if the header file was not found, in order
30547 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
30549 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30551 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
30552 initializers for struct pentry_state.
30553 (__argp_error): Check return value of __asprintf
30554 (__argp_failure): Translate error message
30556 * lib/argp-parse.c: Removed braces around the expansion of N_()
30558 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
30560 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
30561 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
30562 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
30563 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
30564 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
30565 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
30566 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
30567 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
30568 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
30569 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
30570 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
30571 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
30572 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
30573 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
30574 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
30575 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
30576 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
30577 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
30578 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
30579 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
30580 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
30581 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
30582 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
30583 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
30584 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
30585 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
30586 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
30587 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
30588 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
30589 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
30590 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
30591 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
30592 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
30593 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
30594 xstrtol.m4, xstrtoumax.m4, yesno.m4:
30595 Use an all-permissive copyright notice, recommended by RMS.
30597 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
30599 * modules/chdir-long (Depends-on): Remove mempcpy.
30601 2005-01-21 Jim Meyering <jim@meyering.net>
30603 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
30604 same value as for Solaris 9.
30606 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
30607 component length. This included changing the parameter to be
30608 of type `char *' rather than `char const *'.
30609 * lib/chdir-long.h (chdir_long): Update prototype.
30611 * lib/openat.c (fdopendir, fstatat): New functions.
30612 * lib/openat.h: Include headers required for use of DIR and struct
30614 [AT_SYMLINK_NOFOLLOW]: Define.
30615 (fdopendir, fstatat): Add prototypes.
30617 2005-01-21 Bruno Haible <bruno@clisp.org>
30619 * modules/classpath: New file.
30620 * MODULES.html.sh (Java): Add classpath.
30622 2005-01-21 Bruno Haible <bruno@clisp.org>
30624 * lib/classpath.h: New file, from GNU gettext.
30625 * lib/classpath.c: New file, from GNU gettext.
30627 2005-01-20 Simon Josefsson <jas@extundo.com>
30629 * modules/version-etc-fsf: New file.
30631 2005-01-20 Simon Josefsson <jas@extundo.com>
30633 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
30634 * lib/version-etc.c: Remove version_etc_copyright.
30635 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
30636 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
30638 2005-01-20 Simon Josefsson <jas@extundo.com>
30640 * lib/base64.h (isbase64): Add.
30642 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
30643 using a unsigned prototype, don't inline.
30644 (base64_decode): Use it.
30646 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
30648 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
30651 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
30653 * lib/save-cwd.c (save_cwd): Remove code to support the case
30654 where fchdir is missing or flaky.
30656 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
30658 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
30660 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
30662 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
30663 AC_LIBSOURCES now does this.
30664 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
30665 with new ullong_max module.
30667 2005-01-19 Bruno Haible <bruno@clisp.org>
30669 * modules/sh-quote: New file.
30670 * MODULES.html.sh (Executing programs): Add sh-quote.
30672 2005-01-19 Bruno Haible <bruno@clisp.org>
30674 * lib/sh-quote.h: New file, from GNU gettext.
30675 * lib/sh-quote.c: New file, from GNU gettext.
30677 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
30679 Merge from coreutils.
30680 * m4/ullong_max.m4: New file.
30681 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
30682 (gl_MACROS): Assume localeconv exists.
30684 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
30686 Merge changes from coreutils, as described below in several
30687 changelogs dated today.
30689 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
30690 (O_DIRECTORY): Remove; not needed here, since "." must be
30691 a directory. All uses removed.
30692 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
30693 universal on Suns, and we also need to test for IRIX.
30694 Revamp code to use 'if' rather than '#if'.
30695 Avoid unnecessary comparison of cwd->desc to 0.
30697 * lib/utimens.c (futimens): Robustify the previous patch, by checking
30698 for known valid error numbers rather than observed invalid ones.
30700 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
30702 * modules/ullong_max: New file.
30704 * modules/chdir-long, modules/openat: New files.
30705 * modules/save-cwd (Depends-on): Depend on chdir-long.
30706 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
30708 2005-01-18 Jim Meyering <jim@meyering.net>
30710 Merge from coreutils.
30711 * m4/chdir-long.m4, m4/openat.m4: New files.
30712 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
30713 save-cwd.h. Add AC_LIBOBJ for save-cwd.
30714 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
30715 is sane and DOES follow symlinks. Besides, testing 20 different
30716 systems found no broken chown implementations.
30717 Prompted by a change in rsync's copy of this macro.
30718 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
30720 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
30722 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
30723 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
30724 NULL-means-set-to-current-time semantics.
30725 Remove temporary file immediately, rather than waiting
30726 for configure's at-exit trap code to do it.
30728 2005-01-18 Jim Meyering <jim@meyering.net>
30730 * lib/version-etc.c (version_etc_copyright): Update copyright date.
30732 * lib/utimens.c (futimens): Account for the fact that futimes
30733 can also fail with errno == ENOSYS or errno == ENOENT.
30734 Patch from Dmitry V. Levin.
30736 Change the name of the robust chdir function from chdir to chdir_long.
30737 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
30738 (restore_cwd): Use chdir_long, not chdir.
30739 * lib/chdir-long.c: Renamed from chdir.c.
30740 * lib/chdir-long.h: Renamed from chdir.h.
30741 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
30744 2005-01-18 Bruno Haible <bruno@clisp.org>
30746 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
30747 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
30748 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
30749 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
30750 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
30751 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
30752 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
30753 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
30754 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
30755 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
30756 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
30757 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
30758 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
30759 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
30760 Use an all-permissive copyright notice, recommended by RMS.
30762 2005-01-18 Bob Proulx <bob@proulx.com>
30764 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
30765 simplify offsetof() macro construct to avoid compile failure with
30766 native HP-UX 11.0 ANSI C compiler.
30768 2005-01-17 Bruno Haible <bruno@clisp.org>
30770 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
30771 redundant because stpncpy.m4 takes care of it.
30773 2005-01-17 Bruno Haible <bruno@clisp.org>
30775 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
30777 2005-01-17 Bruno Haible <bruno@clisp.org>
30779 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
30782 2005-01-17 Bruno Haible <bruno@clisp.org>
30784 * lib/fwriteerror.h (fwriteerror): Change specification to include
30786 * lib/fwriteerror.c: Include <stdbool.h>.
30787 (fwriteerror): At the end, close the file stream. Record whether
30788 stdout was already closed.
30790 2005-01-17 Bruno Haible <bruno@clisp.org>
30792 * lib/execute.c (environ): Declare if needed.
30793 * lib/pipe.c (environ): Likewise.
30794 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
30796 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30798 * modules/argp: Depend on vsnprintf
30800 2005-01-10 Jim Meyering <jim@meyering.net>
30802 * modules/closeout (Depends-on): Add atexit.
30804 2005-01-06 Bruno Haible <bruno@clisp.org>
30806 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
30808 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
30810 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
30811 definitions to be after all include files, to avoid collisions.
30812 Problem reported by Bob Proulx.
30814 2005-01-04 Jim Meyering <jim@meyering.net>
30816 Changes imported from coreutils.
30817 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
30818 as the mkstemp template, use a temporary directory and an
30819 8.3-friendly template to avoid trouble on systems like DJGPP.
30820 Reported by Juan M. Guerrero via Stepan Kasal.
30821 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
30822 close. Remove the temporary directory right away, rather than waiting
30823 for configure's at-exit trap code to do it.
30824 Suggestion from Stepan Kasal.
30826 2005-01-01 Simon Josefsson <jas@extundo.com>
30828 * gnulib-tool: Print #include directives when --import'ing.
30830 2004-12-28 Simon Josefsson <jas@extundo.com>
30832 * tests/test-base64.c: Include required header files. Remove
30835 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
30837 * modules/error (Depends-on): Remove gettext.
30839 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
30841 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
30842 not needed. This removes a dependency on the gettext module.
30843 [defined _LIBC]: Do not include <libintl.h>; not needed.
30845 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
30847 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
30848 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
30850 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
30852 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
30855 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
30857 * modules/getdate (Depends-on): Remove alloca-opt.
30859 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
30861 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
30863 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
30865 * lib/argp-parse.c: Include <stddef.h>.
30866 (alignof, alignto): New macros.
30867 (parser_init): Don't assume that void * is aligned sufficiently
30870 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
30871 need to extend the stack.
30872 (YYINITDEPTH): New macro, so that the initial stack isn't overly
30875 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30877 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
30879 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
30881 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
30882 (2004-10-24) change. Apparently this was a false alarm.
30884 * modules/getdate: Depend on alloca-opt, not alloca.
30886 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
30888 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
30889 Remove now-obsolete comment about AIX.
30890 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
30891 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
30892 (YYMAXDEPTH): New macro.
30894 2004-12-18 Simon Josefsson <jas@extundo.com>
30896 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
30898 2004-12-18 Bruno Haible <bruno@clisp.org>
30900 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
30902 2004-12-18 Bruno Haible <bruno@clisp.org>
30904 * lib/fatal-signal.c (fatal_signals): Make non-const.
30905 (init_fatal_signals): New function.
30906 (uninstall_handlers, install_handlers): Ignore signals that were set to
30908 (at_fatal_signal): Call init_fatal_signals.
30909 (init_fatal_signal_set): Likewise. Ignore signals that were set to
30911 Reported by Paul Eggert.
30913 2004-12-18 Bruno Haible <bruno@clisp.org>
30915 * doc/alloca.texi: New file.
30916 * doc/alloca-opt.texi: New file.
30918 2004-12-17 Jim Meyering <jim@meyering.net>
30920 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
30921 Otherwise, install-sh could exit with improper exit status when
30922 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
30924 2004-12-16 Simon Josefsson <jas@extundo.com>
30926 * tests/test-base64.c: Add license.
30928 2004-12-15 Stepan Kasal <address@hidden>
30930 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
30932 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
30934 * modules/getcwd (Files): Add m4/d-ino.m4.
30935 Suggested by Mark D. Baushke.
30937 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
30939 * lib/getdate.y (textint): New member "negative".
30940 (time_zone_hhmm): New function.
30941 Expect 14 shift-reduce conflicts, not 13.
30942 (o_colon_minutes): New rule.
30943 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
30944 (yylex): Set the "negative" member of signed numbers.
30946 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
30948 * doc/getdate.texi (Time of day items, Time zone items):
30949 Describe new formats +00:00, UTC+00:00.
30951 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
30953 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
30954 spurious "-l"s. Problem reported by Stepan Kasal.
30956 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
30958 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
30959 in Autoconf 2.59. Problem reported by Mark D. Baushke.
30961 2004-12-04 Simon Josefsson <jas@extundo.com>
30963 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
30964 Vandoorselaere <yoann@prelude-ids.org>.
30966 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
30968 Changes imported from coreutils.
30969 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
30971 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
30973 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
30975 Changes imported from coreutils.
30976 * lib/hard-locale.c: Assume <locale.h> exists.
30977 Include "strdup.h".
30978 (GLIBC_VERSION): New macro.
30979 (hard_locale): Assume setlocale exists.
30980 Rewrite to avoid #ifdef.
30981 Use strdup rather than malloc + strcpy.
30982 * lib/human.c: Assume <locale.h> exists.
30983 (human_readable): Assume localeconv exists.
30985 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
30987 * modules/hard-locale (Depends-on): Add strdup.
30989 2004-12-01 Jakub Jelinek <jakub@redhat.com>
30991 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
30992 convert T2, not T. (Imported from libc.)
30994 2004-11-30 Simon Josefsson <jas@extundo.com>
30996 * modules/restrict (License): Change to LGPL.
30998 2004-11-30 Simon Josefsson <jas@extundo.com>
31000 * m4/restrict.m4: Add copyright and copying conditions.
31002 2004-11-30 Simon Josefsson <jas@extundo.com>
31004 * m4/base64.m4: New file.
31006 2004-11-30 Simon Josefsson <jas@extundo.com>
31008 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31011 * tests/test-base64.c: New file.
31013 * modules/base64: New file.
31015 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
31017 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31018 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31020 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31022 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
31024 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31025 (__getcwd.c): Don't restore errno; glibc doesn't.
31026 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31027 first, falling back to our code only if its results look suspicious.
31028 Ensure that the resulting buffer is only as large as necessary.
31030 * lib/readutmp.c: Include readutmp.h first.
31031 Include <errno.h>, since readutmp.h no longer does that.
31032 * lib/readutmp.h: Don't include <errno.h>,
31033 <sys/param.h>, <time.h>; not needed to establish interface.
31034 (errno): Remove decl.
31035 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31036 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31037 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31039 2004-11-28 Simon Josefsson <jas@extundo.com>
31041 * lib/base64.h, base64.c: New file.
31043 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
31045 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31047 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
31049 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31050 (Depends-on): Remove pathmax, same. Add mempcpy.
31051 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31052 (Makefile.am): Append getcwd.h to lib_SOURCES.
31053 (Include): Add getcwd.h.
31054 (Maintainer): Change from Jim Meyering to "all, glibc",
31055 since getdate now uses intended-for-glibc code.
31056 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31057 (Depends-on): Depend on getcwd. Do not depend on pathmax.
31059 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
31061 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31062 HP's ANSI C compiler.
31063 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31064 Declaring int functions causes warnings on some modern systems and
31065 shouldn't be needed to compile on ancient ones.
31066 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31069 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31070 with the following changes.
31071 (__set_errno): Parenthesize properly.
31072 Include <stdbool.h>.
31073 (MIN, MAX, MATCHING_INO): New macros.
31074 (__getcwd): Define with prototype, not K&R form.
31075 Use heuristics to allocate default buffer on stack if possible.
31076 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31077 behavior, and to avoid the PATH_MAX limit when computing
31079 Use MATCHING_INO to compare inode number to file.
31080 Check for arithmetic overflow in size calculations.
31081 Fix bug in reallocation of dot array that caused getcwd to fail
31082 on directories nested deeper than 75.
31083 Be more careful about saving errno on error.
31084 Do not use realloc; use only free+malloc, as this is a bit
31085 more flexible and avoids a needless copy operation.
31086 Do not inspect st_dev and st_ino for symbolic links; POSIX
31087 doesn't specify the latter.
31088 Check for closedir errors.
31089 Avoid needless casts.
31090 Use "#ifdef weak_alias" around weak_alias, to be like other
31092 The following changes to getcwd.c have effect only when used in
31093 gnulib; they have no effect inside glibc proper.
31094 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31095 as alloca isn't used.
31096 (alloca, __alloca): Likewise.
31097 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
31098 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31099 unconditionally, as gnulib assumes C89 or better.
31100 Do not include <sys/param.h>.
31101 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
31102 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
31104 (NULL) [!defined NULL]: Remove; we assume C89 or better.
31105 Include <dirent.h> in a way that is compatible with modern Autoconf.
31106 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
31107 New macros, if not already defined.
31108 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
31109 Use "_LIBC", not "defined _LIBC", for consistency.
31110 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
31112 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
31113 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
31114 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
31115 credit only to Jim Meyering and adjust the copyright dates.
31116 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
31117 <stdlib.h>, <unistd.h>, "pathmax.h".
31118 Instead, include "xgetcwd.h" (first) and "getcwd.h".
31119 (INITIAL_BUFFER_SIZE): Remove.
31120 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
31122 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
31124 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
31125 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
31126 Use the _ONCE methods, for efficiency.
31127 Check for fcntl.h. In test program, include <errno.h>
31128 and <fcntl.h> if available. Remove old K&R cruft from
31129 test program. Check for common errors in GNU/Linux,
31130 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
31131 don't do AC_LIBOBJ, as that's getcwd.m4's job.
31132 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
31133 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
31135 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
31136 accommodate new getcwd.c.
31137 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
31138 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
31139 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
31140 that's all we need now.
31142 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31144 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
31145 argp-parse.c depends on getopt internals, that means we should
31146 always use our getopt, to be on the safe side.
31147 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
31148 order not to spoil the result of an eventual previous invocation
31149 of gl_GETOPT_SUBSTITUTE.
31151 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31153 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
31154 redefinition warnings. To avoid them, include the defines
31155 in `#if !defined __need_getopt ... #endif'. The only place
31156 where __getopt_argv_const is used is in definitions
31157 of getopt_long and getopt_long_only below, which are as well
31158 protected by `#ifndef __need_getopt'.
31159 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
31160 __need_getopt after including <stdio.h> and <unistd.h> These
31161 headers might have defined it.
31163 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
31165 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
31167 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
31169 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
31170 (futimens): New function, which uses futimes if available.
31171 (futimens, utimens): Support timespec==NULL, with same semantics
31172 as utime and utimens.
31173 * lib/utimens.h (futimens): New decl.
31175 2004-11-23 Jim Meyering <jim@meyering.net>
31177 * lib/getopt_.h: Remove trailing blanks.
31179 2004-11-23 Jim Meyering <jim@meyering.net>
31181 * lib/__fpending.c: Add comment.
31183 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
31185 * modules/canonicalize (Depends-on): Add xreadlink.
31186 Problem reported by James Youngman.
31188 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
31190 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
31192 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
31193 optopt): Use them instead of invoking ## directly; otherwise, the
31194 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
31196 2004-11-19 Bruno Haible <bruno@clisp.org>
31198 * lib/strtok_r.c: Move comments from here...
31199 * lib/strtok_r.h: ... to here.
31201 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
31203 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
31204 implementations that mishandle size_t overflow.
31206 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
31208 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
31209 might fail. Problem reported by Yoann Vandoorselaere.
31210 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
31211 implementations that mishandle size_t overflow.
31213 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
31215 * modules/canon-host (Depends-on): Add strdup.
31217 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
31219 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
31221 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
31223 * lib/canon-host.c: Include "strdup.h".
31224 (canon_host): Use getaddrinfo if available, so that IPv6 works.
31225 Use strdup instead of malloc/strcpy to duplicate strings.
31227 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
31228 (human_space_before_unit): New constant.
31229 * lib/human.c (human_readable): Support it.
31231 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
31232 (xgetcwd): Set errno correctly when failing.
31233 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
31234 the failure is actually due to a PATH_MAX problem.
31236 Further getopt changes to make it more likely that glibc will
31237 buy the changes back.
31238 * lib/getopt.c (POSIXLY_CORRECT): New constant.
31239 (getopt): Use it, so to preserve glibc semantic
31240 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
31241 when compiling for libc.
31242 * lib/getopt_.h (__getopt_argv_const): Bring it back.
31243 (getopt_long, getopt_long_only): Use it.
31245 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31246 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
31247 (getopt): Argv is now char * const *, as per standard.
31248 (_getopt_internal_r, _getopt_internal): Argv is now char **,
31249 not char *__getopt_argv_const *.
31250 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31251 _getopt_long_only_r): Likewise.
31252 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
31253 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31254 _getopt_long_r, _getopt_long_only_r): Likewise.
31255 * lib/getopt_.h (__getopt_argv_const): Remove.
31256 (getopt): Argv is now char * const *, as per standard.
31258 * lib/getdate.y (tORDINAL): New token.
31259 (day, relunit): Allow it for relative times.
31260 (relative_time_table): Use tORDINAL for ordinals.
31262 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
31264 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
31265 Document that "second" isn't allowed as an ordinal number.
31267 2004-11-16 Jim Meyering <jim@meyering.net>
31269 * modules/closeout (Depends-on): Add fpending.
31271 2004-11-15 Jim Meyering <jim@meyering.net>
31273 * lib/closeout.c: Include "__fpending.h" once again.
31274 Include <stdbool.h>.
31275 (close_stdout): Don't fail just because stdout was closed initially,
31276 since some programs don't write to stdout in the normal course of
31277 operation (other than --version and --help), and we don't want this
31278 function to make e.g. `touch file >&-' fail.
31279 But do fail if it was closed and someone has tried to write to it.
31280 E.g., `printf foo >&-' must fail.
31282 2004-11-13 Jim Meyering <jim@meyering.net>
31284 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
31286 2004-11-12 Simon Josefsson <jas@extundo.com>
31288 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
31289 small doc fix is still pending.
31291 2004-11-11 Simon Josefsson <jas@extundo.com>
31293 * modules/strtok_r: New file.
31295 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31298 2004-11-11 Simon Josefsson <jas@extundo.com>
31300 * m4/strtok_r.m4: New file.
31302 * m4/getopt.m4: Replace opterr.
31304 2004-11-11 Simon Josefsson <jas@extundo.com>
31306 * lib/strtok_r.h, strtok_r.c: New file.
31308 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
31310 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
31311 of replacing opterr, getopt, etc. This should handle the
31312 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
31314 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
31316 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
31317 we can stop lying to compilers about the constness of argv when we
31318 are compiled outside glibc.
31319 (getopt, getopt_long, getopt_long_only): Use it.
31320 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31321 _getopt_internal, getopt): Likewise.
31322 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31323 _getopt_long_only_r): Likewise.
31324 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31325 _getopt_long_r, _getopt_long_only_r): Likewise.
31327 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
31328 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
31329 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
31330 the other external symbols.
31331 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
31332 declaration, since the above renaming now works around collisions.
31334 2004-11-11 Jim Meyering <jim@meyering.net>
31336 * lib/linebreak.c: Remove trailing blanks.
31337 * lib/alloca_.h: Likewise.
31338 * lib/acosl.c: Likewise.
31339 * lib/euidaccess.c: Likewise.
31340 * lib/allocsa.h: Likewise.
31342 2004-11-10 Simon Josefsson <jas@extundo.com>
31344 * m4/getaddrinfo.m4: New file.
31346 2004-11-10 Simon Josefsson <jas@extundo.com>
31348 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
31350 2004-11-10 Simon Josefsson <jas@extundo.com>
31352 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31355 * modules/getaddrinfo: New file.
31357 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
31359 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
31361 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
31363 * lib/mktime.c (SHR): New macro, which is a portable
31364 substitute for >> that should work even on Crays.
31365 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
31366 Problem reported by Mark D. Baushke in
31367 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
31368 * lib/getdate.y (SHR): Likewise.
31370 * lib/strftime.c (SHR): Likewise.
31372 * lib/quotearg.c (struct quoting_options): Use unsigned int for
31373 quote_these_too, so that right shifts are well defined. All uses
31376 2004-11-10 Jim Meyering <jim@meyering.net>
31378 Ensure that no close failure goes unreported.
31379 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
31380 return early when it seems there's nothing to flush.
31381 Don't include __fpending.h.
31383 2004-11-10 Jim Meyering <jim@meyering.net>
31385 * modules/closeout (Depends-on): Remove fpending.
31387 2004-11-10 Jim Meyering <jim@meyering.net>
31389 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
31391 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
31393 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
31395 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
31396 and AC_REQUIRE when possible, to avoid duplicate checks.
31397 Check for <wchar.h>.
31399 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
31401 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
31403 2004-11-09 Bruno Haible <bruno@clisp.org>
31405 * m4/sockpfaf.m4: New file.
31407 2004-11-05 Bruno Haible <bruno@clisp.org>
31409 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
31410 Reported by Mark D. Baushke <mdb@cvshome.org>.
31412 2004-11-04 Bruno Haible <bruno@clisp.org>
31414 2004-09-11 Bruno Haible <bruno@clisp.org>
31415 * allocsa.valgrind: New file.
31416 2004-02-06 Bruno Haible <bruno@clisp.org>
31417 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
31418 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
31419 Reported by Christopher Seip <chris.seip@hp.com>.
31421 2004-11-04 Bruno Haible <bruno@clisp.org>
31423 * modules/allocsa (Files): Add lib/allocsa.valgrind.
31424 (Makefile.am): Distribute it.
31426 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
31428 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
31429 with errno == ERANGE if the buffer is too small.
31430 Problem reported by Mark D. Baushke.
31432 2004-11-03 Albert Chin <china@thewrittenword.com>
31433 Paul Eggert <eggert@cs.ucla.edu>
31435 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
31436 equivalent, substitute $ac_type for equivalent type rather than
31437 blindly using uint32_t *always* which won't work if uint32_t is not
31438 available. Define _UINT32_T to work around typedef of uint32_t if
31439 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
31442 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
31444 * m4/jm-macros.m4: Sync from coreutils.
31445 (gl_MACROS): Check for mbrlen, for pathchk.
31446 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
31448 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
31450 * lib/xreadlink.c (MAXSIZE): New macro.
31451 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
31452 size does not exceed MAXSIZE. Avoid cast.
31453 As suggested by Mark D. Baushke in
31454 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
31455 if readlink fails with buffer size just under MAXSIZE, try again
31458 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
31460 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
31462 2004-11-02 Derek R. Price <derek@ximbiot.com>
31463 and Paul Eggert <eggert@cs.ucla.edu>
31465 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
31466 (get_date): Overparenthesize to avoid GCC warning.
31468 2004-11-02 Bruno Haible <bruno@clisp.org>
31470 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
31473 2004-11-02 Bruno Haible <bruno@clisp.org>
31475 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
31476 function returns void.
31478 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
31480 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
31481 fflush_unlocked, flockfile, funlockfile, funlockfile,
31482 fputs_unlocked, putc_unlocked.
31484 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
31486 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
31487 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
31490 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
31492 * modules/getdate (Files): Add doc/getdate.texi.
31493 (Depends-on): Add setenv, xalloc.
31495 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
31497 * lib/getdate.y: Add support for TZ="foo" within a date string.
31498 Fix some bugs near time_t boundaries. Reject dates with
31499 out-of-range components, e.g., "Sept 31".
31500 Include <stdlib.h>, "setenv.h", "xalloc.h".
31501 (ISDIGIT_LOCALE): Remove; unused.
31502 Note that the TZ and time functions used here are not reentrant.
31503 (mktime_ok, get_tz): New functions.
31504 (TZBUFSIZE): New constant.
31505 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
31506 This requires that we sometimes generate our own TZ="XXX..." setting.
31508 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
31510 * doc/getdate.texi: New file, from coreutils with modifications for
31511 the new TZ parsing.
31513 2004-10-27 Derek R. Price <derek@ximbiot.com>
31515 * lib/mktime.c (not_equal_tm): Remove redundant check.
31517 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
31519 * modules/regex (lib_SOURCES): Add regex.c.
31520 Reported by James Youngman in
31521 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
31523 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
31525 * lib/getdate.y: Use Bison 1.875 features, and some minor
31526 code cleanups. This change does not affect semantics.
31527 Don't include <stdlib.h>; no longer needed.
31528 Don't include unlocked-io.h; only the "#if TEST" code uses
31529 stdio, and performance isn't crucial there.
31530 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
31531 Bison 1.875 features as described below.
31532 All uses of "PC." replaced by "pc->".
31533 (YYSTYPE): Add a forward declaration.
31534 (yylex, yyerror): Use full prototypes in forward decls.
31535 Use "%pure-parser" rather than obsolescent "%pure_parser".
31536 Use %parse-param and %lex-param instead of obsolescent
31537 YYPARSE_PARAM and YYLEX_PARAM.
31538 (meridian_table, month_and_day_table, time_units_table,
31539 relative_time_table, time_zone_table, military_table,
31540 lookup_zone, lookup_word, get_date):
31541 Use NULL instead of 0 where appropriate.
31542 (to_hour): Avoid abort (), to avoid a dependency on
31544 (yyerror, yylex): Now accepts parser_control * arg.
31545 (main) [TEST]: Use '\0' rather than 0 for char.
31547 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
31549 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
31551 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
31553 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
31554 It's now the caller's responsibility to handle the case where
31555 !HAVE_GETPAGESIZE && !defined getpagesize.
31557 * lib/mktime.c (leapyear): Arg is long int, not int.
31559 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
31561 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
31563 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
31565 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
31566 missing. Problem reported by James Youngman.
31568 2004-10-16 Simon Josefsson <jas@extundo.com>
31570 * gnulib-tool: Fix comments. Fix parse problem.
31571 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
31573 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
31575 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
31576 implementation of getopt_long. Problem reported by Alexander Taler in:
31577 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
31579 2004-10-15 Bruno Haible <bruno@clisp.org>
31581 * gnulib-tool: Untabify. Initialize supplied_libname.
31582 (func_usage): More homogenous output.
31583 (func_modules_transitive_closure, func_modules_to_filelist,
31584 func_emit_lib_Makefile_am): New functions.
31585 (func_import): New function, extracted from big case statement. Use
31586 func_get_license, func_modules_transitive_closure,
31587 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
31588 opt_lgpl. Don't use test -a, as it's not portable.
31589 (func_create_testdir): Use func_modules_transitive_closure,
31590 func_modules_to_filelist, func_emit_lib_Makefile_am.
31592 2004-10-15 Bruno Haible <bruno@clisp.org>
31594 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
31596 2004-10-15 Bruno Haible <bruno@clisp.org>
31598 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
31599 the portions belonging to each module.
31600 Suggested by Derek Robert Price <derek@ximbiot.com>.
31602 2004-10-12 Simon Josefsson <jas@extundo.com>
31604 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
31605 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
31608 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
31610 * modules/vsnprintf: New file.
31612 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
31614 * m4/vsnprintf.m4: New file.
31616 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
31618 * lib/vsnprintf.h: New file.
31619 * lib/vsnprintf.c: New file.
31621 2004-10-11 Bruno Haible <bruno@clisp.org>
31623 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
31626 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
31628 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
31630 2004-10-07 Bruno Haible <bruno@clisp.org>
31632 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
31633 fits into the provided buffer.
31635 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
31637 * lib/diacrit.c, diacrit.h: Add GPL notice.
31639 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
31641 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
31642 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
31643 This avoids a potential constant-folding bug.
31645 2004-10-05 Bruno Haible <bruno@clisp.org>
31647 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
31648 for the declaration of strsep.
31650 2004-10-05 Bruno Haible <bruno@clisp.org>
31652 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
31654 2004-10-04 Simon Josefsson <jas@extundo.com>
31656 * modules/memmem: New file.
31657 * tests/test-memmem.c: New file.
31658 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
31660 2004-10-04 Simon Josefsson <jas@extundo.com>
31662 * m4/memmem.m4: New file.
31664 2004-10-04 Simon Josefsson <jas@extundo.com>
31666 * lib/memmem.h: New file.
31667 * lib/memmem.c: New file, taken from glibc.
31669 2004-10-04 Simon Josefsson <jas@extundo.com>
31671 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
31672 '#ifdef USE_UNLOCKED_IO'.
31674 2004-10-04 Simon Josefsson <jas@extundo.com>
31676 * config/srclist.txt: Add memmem from glibc.
31678 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
31680 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
31682 * modules/argmatch, modules/argp, modules/closeout, modules/error,
31683 modules/exclude, modules/getdate, modules/getline,
31684 modules/getndelim2, modules/getpass, modules/getpass-gnu,
31685 modules/getusershell, modules/linebuffer, modules/md5,
31686 modules/mountlist, modules/posixtm, modules/readtokens,
31687 modules/readutmp, modules/regex, modules/sha1,
31688 modules/version-etc, modules/yesno:
31689 Remove dependency on unlocked-io.
31691 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
31693 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
31695 * m4/unlocked-io.m4: Add copyright notice.
31696 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
31698 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
31700 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
31701 * lib/xmalloc.c (xmemdup): Likewise.
31702 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
31703 XFREE): Remove these long-obsolescent macros.
31704 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
31705 * lib/xstrdup.c: Remove.
31707 * lib/regex.c (re_comp): Cast gettext return value to char *,
31708 Problem reported by Martin Neitzel via Mark D. Baushke.
31710 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
31712 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
31713 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
31714 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
31715 regex.c, sha1.c, version-etc.c, yesno.c:
31716 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
31717 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
31718 the includer's responsibility.
31720 Sync from coreutils.
31722 * lib/modechange.c (mode_compile): Don't decrement a pointer that
31723 points to the start of a string, as the C Standard says the
31724 resulting behavior is undefined.
31726 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
31727 simple -> simple_backups, numbered_existing ->
31728 numbered_existing_backups, numbered -> numbered_backups
31729 to avoid shadowing problems. All uses changed.
31730 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
31731 * lib/backupfile.c (check_extension, numbered_backup):
31732 Rename locals to avoid shadowing 'basename'.
31733 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
31736 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
31737 * lib/.cvsignore: Add getopt.h.
31739 2004-10-04 Bruno Haible <bruno@clisp.org>
31741 * modules/README: New file.
31742 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
31745 2004-10-02 Jim Meyering <jim@meyering.net>
31747 * lib/dirfd.h, getpagesize.h: Add copyright notice.
31749 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
31751 * modules/strsep: New file.
31753 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
31755 * m4/strsep.m4: New file.
31757 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
31759 * lib/strsep.h: New file.
31760 * lib/strsep.c: New file.
31762 2004-10-01 Simon Josefsson <jas@extundo.com>
31764 * lib/snprintf.c (snprintf): Handle size==0.
31766 2004-10-01 Simon Josefsson <jas@extundo.com>
31767 Bruno Haible <bruno@clisp.org>
31769 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
31770 (snprintf): Declare 'args'.
31772 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
31774 * lib/snprintf.c: Remove comments as to why each header is needed.
31776 2004-10-01 Bruno Haible <bruno@clisp.org>
31778 * MODULES.html.sh: Add strsep.
31780 2004-09-30 Simon Josefsson <jas@extundo.com>
31782 * modules/snprintf: New file.
31784 2004-09-30 Simon Josefsson <jas@extundo.com>
31786 * m4/snprintf.m4: New file.
31788 2004-09-30 Simon Josefsson <jas@extundo.com>
31790 * lib/snprintf.h, lib/snprintf.c: New files.
31792 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
31794 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
31795 (hol_entry_help): Never translate an empty string.
31796 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
31797 * lib/argp.h (OPTION_NO_TRANS): New option.
31799 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
31801 * modules/argp (Maintainer): Replace Simon Josefsson
31802 by Sergey Poznyakoff.
31804 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
31806 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
31807 changes merged back into glibc.
31809 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
31811 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
31813 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
31815 * lib/xvasprintf.c: Include xalloc.h.
31816 (xvasprintf): Use xalloc_die, not xmalloc_die.
31818 2004-09-29 Bruno Haible <bruno@clisp.org>
31820 * modules/alloca-opt: New file, derived from modules/alloca.
31821 * modules/allocsa: Depend on alloca-opt instead of alloca.
31822 * modules/setenv: Likewise.
31823 * modules/vasnprintf: Likewise.
31824 * MODULES.html.sh: Add alloca-opt.
31826 2004-09-28 Simon Josefsson <jas@extundo.com>
31828 * gnulib-tool: New parameter --lgpl, to asseert that modules are
31829 LGPL, and to replace license template from GPL to LGPL.
31831 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
31833 * modules/dummy: Change license to LGPL.
31835 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
31837 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
31839 2004-09-24 Simon Josefsson <jas@extundo.com>
31841 * modules/minmax (License): Change from GPL to LGPL.
31843 2004-09-23 Simon Josefsson <jas@extundo.com>
31845 * gnulib-tool (--import): Typo.
31847 2004-09-23 Simon Josefsson <jas@extundo.com>
31849 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
31851 2004-09-22 Bruno Haible <bruno@clisp.org>
31853 * modules/*: Add 'License' field.
31854 * gnulib-tool: Accept --extract-license option.
31855 (func_get_license): New function.
31857 2004-09-21 Bruno Haible <bruno@clisp.org>
31859 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
31860 Reported by Simon Josefsson.
31862 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
31864 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
31865 gl_AC_TYPE_LONG_LONG.
31867 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
31869 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
31871 2004-09-18 Simon Josefsson <jas@extundo.com>
31872 and Paul Eggert <eggert@cs.ucla.edu>
31874 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
31875 calls with autoreconf. Define GL_LIB.
31877 2004-09-14 Karl Berry <karl@gnu.org>
31879 * config/srclist.txt: unsync setenv.c, sigh.
31881 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
31883 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
31884 Problem reported by Bruno Haible in:
31885 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
31887 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
31889 * config/srclist.txt: Comment out argp-pvh.c.
31891 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
31893 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
31894 in case some system header has #define'd it. Problem reported by
31895 Soeren D. Schulze in
31896 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
31898 2004-09-09 Karl Berry <karl@gnu.org>
31900 * regex.[ch]: delete from the root. These were supposed to be
31901 synced with emacs cvs, but this has not happened for about
31902 a year, and anyway nothing else uses emacs regex.[ch].
31903 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
31904 lib/regex[.ch] is untouched.
31906 2004-09-09 Bruno Haible <bruno@clisp.org>
31908 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
31910 2004-09-09 Bruno Haible <bruno@clisp.org>
31912 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
31914 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
31916 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
31918 * modules/xvasprintf: New file.
31919 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
31921 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
31923 * lib/xvasprintf.h: New file.
31924 * lib/xvasprintf.c: New file.
31925 * lib/xasprintf.c: New file.
31927 2004-09-08 Bruno Haible <bruno@clisp.org>
31929 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
31931 2004-09-08 Bruno Haible <bruno@clisp.org>
31933 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
31934 length is > INT_MAX.
31935 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
31938 2004-09-08 Bruno Haible <bruno@clisp.org>
31940 * lib/stdint_.h: New file, taken from GNU clisp.
31942 2004-09-08 Bruno Haible <bruno@clisp.org>
31943 Oskar Liljeblad <oskar@osk.mine.nu>
31945 * modules/stdint: New file.
31946 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
31948 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
31950 Import from coreutils.
31951 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
31952 strings on unbounded length. alloca's performance benefits aren't
31953 that important here.
31954 (V_STRDUP): Remove.
31955 (parse_with_separator): New function, with most of the internals
31956 of the old parse_user_spec. Allow user to omit both user and group,
31957 for compatibility with FreeBSD.
31958 Clone only the user name, not the entire spec.
31959 Do not set *uid, *gid unless entirely successful.
31960 Avoid memory leak in some failing cases.
31961 Fix regression for USER.GROUP reported by Dmitry V. Levin in
31962 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
31963 (parse_user_spec): Rewrite to use parse_with_separator.
31965 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
31967 * modules/userspec: Don't depend on alloca.
31969 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
31971 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
31973 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
31975 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
31976 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
31977 utimecmp, utimens, xnanosleep. Rename sha to sha1.
31979 2004-08-16 Simon Josefsson <jas@extundo.com>
31981 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
31982 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
31983 Add --dry-run for --import.
31984 Let user provided command line parameters override configure.ac
31987 2004-08-12 Simon Josefsson <jas@extundo.com>
31989 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
31990 as discussed with Paul Eggert in threads rooted at
31991 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
31993 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
31994 Before, the test was empty, and relied on ELIDE_CODE in source
31996 (gl_PREREQ_GETOPT): New macro.
31997 (gl_GETOPT): Use them.
31999 2004-08-12 Simon Josefsson <jas@extundo.com>
32001 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32002 * lib/getopt_.h: Renamed from getopt.h.
32004 2004-08-12 Simon Josefsson <jas@extundo.com>
32006 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32007 Change default library name from libfoo to libgnu.
32008 Now, if you have a configure.ac that says:
32011 gl_MODULES(error getopt etcetera)
32013 you can import all you need by running:
32014 ../gnulib/gnulib-tool --import
32016 * modules/getopt (Files): Rename getopt.h to getopt_.h.
32017 (Makefile.am): Rewrite, use logic from argz.
32018 (Include): Use <getopt.h> instead of "getopt.h".
32020 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
32022 * modules/argp (Files): Add m4/unlocked-io.m4.
32023 (Depends-on): Add extensions.
32025 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
32027 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32028 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32029 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32030 Check for program_invocation_name, program_invocation_short_name,
32031 flockfile, funlockfile, features.h, _getopt_long_only_r.
32033 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
32035 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32036 its complicated substitute.
32037 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32038 and program_invocation_name.
32039 (__argp_basename) [!_LIBC]: Remove; the only use was
32040 replaced by its body.
32041 (__argp_short_program_name): Change condition from
32042 !defined __argp_short_program_name to
32043 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32044 to match argp-namefrob.h.
32045 (__argp_failure): Don't assume strerror_r returns char *.
32046 * lib/argp-parse.c (N_): Define unconditionally.
32047 (argp_default_options): Fill out initializers with 0 to avoid
32050 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
32052 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32055 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
32057 Merge from coreutils.
32059 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32061 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32062 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32064 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
32066 Merge from coreutils.
32068 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32069 wmemchr or wmemcpy. Problem reported by Robert Dahlem
32070 for Reliant Unix 5.43.
32072 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32073 (union fooround): Use uintmax_t, not long int.
32074 The rest is a merge from libc:
32075 [defined _LIBC]: Include <shlib-compat.h>.
32076 (_obstack) [defined _LIBC]: Remove after 2.3.4.
32078 * lib/settime.c (settime): Recode to avoid warning with
32081 * lib/strverscmp.c: Convert to UTF-8.
32083 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
32085 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32088 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
32090 * modules/xalloc-die: New file.
32091 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32093 * modules/md5 (Files): Add m4/uint32_t.m4.
32094 * modules/sha1: Renamed from modules/sha.
32096 Rename lib/sha.h to lib/sha1.h.
32097 Rename lib/sha.c to lib/sha1.c.
32098 Rename m4/sha.m4 to m4/sha1.m4.
32099 (lib_SOURCES): Likewise.
32100 (configure.ac): Rename gl_SHA to gl_SHA1.
32101 (Include): sha.h -> sha1.h.
32103 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
32105 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
32106 * m4/sha1.m4: Renamed from sha.m4.
32107 (gl_SHA1): Renamed from gl_SHA. All uses changed.
32109 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
32111 * lib/obstack.h (obstack_empty_p):
32112 Don't assume that chunk->contents is suitably aligned.
32113 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
32114 Likewise. Problem reported by Benno in
32115 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
32117 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
32118 readable. This could be improved further but it'd take some work.
32120 2004-08-08 Simon Josefsson <jas@extundo.com>
32122 * modules/xgethostname (Depends-on): Remove exit and error (not
32125 * modules/getpass-gnu: Add getpass.h.
32126 (Depends-on): Add stdbool.
32127 * modules/getpass: Add getpass.h.
32129 2004-08-08 Simon Josefsson <jas@extundo.com>
32131 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
32132 Check getpass declaration.
32134 2004-08-08 Simon Josefsson <jas@extundo.com>
32136 * lib/xgethostname.c: Don't include error.h (not used).
32138 * lib/getpass.h: Add.
32139 * lib/getpass.c: Include getpass.h first.
32141 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
32143 * lib/xalloc-die.c: New file.
32144 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
32146 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
32147 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
32149 (_, N_, xalloc_die): Move to xalloc-die.c.
32150 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
32151 so that we needn't mess with xalloc_msg_memory_exhausted.
32153 * lib/sha1.h: Renamed from sha.h.
32154 (SHA1_H): Renamed from _SHA_H.
32155 (sha1_ctx): Renamed from sha_ctx.
32156 (sha1_init_ctx): Renamed from sha_init_ctx.
32157 (sha1_process_block): Renamed from sha_process_block.
32158 (sha1_process_bytes): Renamed from sha_process_bytes.
32159 (sha1_finish_ctx): Renamed from sha_finish_ctx.
32160 (sha1_read_ctx): Renamed from sha_read_ctx.
32161 (sha1_stream): Renamed from sha_stream.
32162 (sha1_buffer): Renamed from sha_buffer.
32163 * lib/sha1.c: Likewise; renamed from sha.c.
32164 Do not include <sys/types.h>.
32165 Include <stddef.h> rather than <stdlib.h>.
32167 2004-08-08 Bruno Haible <bruno@clisp.org>
32169 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
32170 FILESYSTEM_PREFIX_LEN.
32171 * lib/progreloc.c: Likewise.
32172 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
32174 2004-08-06 Simon Josefsson <jas@extundo.com>
32176 * modules/progname (Depends-on): Don't depend on stdbool.
32178 2004-08-06 Simon Josefsson <jas@extundo.com>
32180 * modules/getsubopt: New file.
32181 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32184 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
32186 More merge from coreutils.
32188 * m4/utimens.m4, m4/utimecmp.m4: New files.
32189 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
32190 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
32191 prereq.m4, sha.m4: Import changes from coreutils.
32193 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
32195 More merge from coreutils.
32196 * modules/raise, modules/readtokens0, modules/utimens:
32197 * modules/utimecmp, module/xnanosleep: New files.
32198 * modules/strftime: Add lib/strftime.h.
32199 Change include from <time.h> to "strftime.h".
32200 * modules/yesno: Add lib/yesno.h.
32201 * modules/backupfile: Remove lib/addext.c.
32202 * modules/euidaccess: Add stat-macros.h.
32203 * modules/canonicalize, modules/euidaccess,
32204 modules/filemode, modules/lchown, modules/makepath,
32205 modules/rmdir, modules/stat: Likewise.
32207 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
32210 * lib/argp-help.c (make_hol, hol_append): Don't assume that
32211 SIZE_MAX is a valid preprocessor constant.
32212 (__argp_basename): Change from "#ifndef _LIBC"
32213 to "#ifndef __argp_short_program_name", so that
32214 we don't compile these functions for tar.
32216 More merges from coreutils.
32217 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
32218 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
32219 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
32220 * lib/addext.c: Remove; no longer needed.
32221 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
32222 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
32223 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
32224 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
32225 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
32226 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
32227 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
32228 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
32229 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
32230 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32231 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
32232 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
32233 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
32234 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
32235 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
32236 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
32237 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
32238 Import changes from coreutils.
32240 2004-08-05 Simon Josefsson <jas@extundo.com>
32242 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
32244 2004-08-05 Simon Josefsson <jas@extundo.com>
32246 * m4/getsubopt.m4: New file.
32248 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
32250 Merge from coreutils.
32252 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
32253 * m4/getcwd-path-max.m4: New files.
32255 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
32256 FILESYSTEM_PREFIX_LEN ->
32257 FILE_SYSTEM_PREFIX_LEN.
32258 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
32259 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
32260 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
32261 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
32263 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
32264 prerequisite modules now handle the DOS stuff.
32265 Don't check for unistd.h.
32267 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
32269 Merge from coreutils.
32271 * lib/.gdb-history: Remove; this doesn't belong here.
32273 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
32274 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
32275 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
32276 * lib/getcwd.c: New files.
32278 * lib/dirname.h: Include <stdbool.h>.
32279 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
32280 for consistency with POSIX terminology. All uses changed.
32281 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
32282 (strip_trailing_slashes): Use bool for booleans.
32283 * lib/stripslash.c (strip_trailing_slashes): Likewise.
32285 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
32286 sometimes returns a positive errno value even when it succeeds.
32287 (print_errno_message) [!LIBC]: Fall back on strerror if
32288 __strerror_r fails.
32290 * lib/path-concat.c (mempcpy): Don't define if a system header defines
32291 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
32292 (longest_relative_suffix): New function.
32293 (path_concat): Use it. Assume first argument is not NULL.
32294 Port to DOS. Omit redundant separators.
32295 Report an error instead of returning NULL.
32296 Use mempcpy instead of memcpy.
32297 (xpath_concat): Remove: not declared or used.
32299 * lib/same.h: Include <stdbool.h>
32300 (same_name): Return bool, not int.
32301 * lib/same.c (same_name): Likewise.
32302 (errno): Don't declare; we assume C89 or better now.
32304 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
32305 if not already defined.
32307 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
32308 * lib/dup-safer.c (errno): Likewise.
32310 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
32312 Merge from coreutils.
32313 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
32314 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
32315 * modules/path-concat: Don't depend on strdup.
32317 2004-08-03 Simon Josefsson <jas@extundo.com>
32319 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
32320 * lib/progname.h: Don't include stdbool.h.
32322 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
32324 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
32325 * MODULES.html.sh (func_all_modules): Remove fatal.
32327 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
32329 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
32331 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
32333 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
32336 2004-08-02 Simon Josefsson <jas@extundo.com>
32338 * lib/getsubopt.h: New file, with comments from Bruno Haible.
32339 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
32340 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
32342 2004-08-01 Simon Josefsson <jas@extundo.com>
32344 * lib/xgetdomainname.c: Include stdlib.h, for free().
32346 2004-07-19 Bruno Haible <bruno@clisp.org>
32348 * MODULES.html.sh (func_all_modules): Add dummy.
32350 2004-07-16 Simon Josefsson <jas@extundo.com>
32352 * modules/dummy: New file.
32354 2004-07-16 Simon Josefsson <jas@extundo.com>
32356 * lib/dummy.c: New file.
32358 2004-07-16 Bruno Haible <bruno@clisp.org>
32360 * lib/backupfile.h: Add extern "C" for C++.
32361 * lib/closeout.h: Likewise.
32362 * lib/copy-file.h: Likewise.
32363 * lib/findprog.h: Likewise.
32364 * lib/full-write.h: Likewise.
32365 * lib/pathname.h: Likewise.
32366 * lib/progname.h: Likewise.
32367 * lib/stpcpy.h: Likewise.
32368 * lib/stpncpy.h: Likewise.
32369 * lib/strcase.h: Likewise.
32370 * lib/strstr.h: Likewise.
32371 * lib/xalloc.h: Likewise.
32373 * lib/mbswidth.h: Add extern "C" for C++.
32374 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
32376 2004-07-13 Robert Millan <robertmh@gnu.org>
32378 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
32380 2004-07-09 Simon Josefsson <jas@extundo.com>
32382 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
32383 failed without this.)
32385 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
32387 * modules/chown (Files): Add lib/fchown-stub.c, since
32388 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
32390 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
32392 * lib/fchown-stub.c: New file.
32394 2004-06-24 Jim Meyering <jim@meyering.net>
32396 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
32398 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
32400 * modules/argz: Omit "#include".
32402 * MODULES.html.sh (func_all_modules): Add calloc, to match
32403 2004-06-01 addition of calloc module.
32405 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
32407 * m4/argz.m4: New file, which is autoupdated from libtool.
32409 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
32411 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
32414 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
32416 * config/srclist-update: Don't insist on "USA." before the
32417 close-comment, as libtool omits the period and puts the */ on a
32419 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
32420 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
32422 2004-06-22 Gary V. Vaughan <gary@gnu.org>
32424 * modules/argz: New file.
32425 * MODULES.html.sh (func_all_modules): Add argz.
32427 2004-06-12 Jim Meyering <jim@meyering.net>
32428 and Paul Eggert <eggert@cs.ucla.edu>
32430 * modules/hash (Files): Add lib/xalloc.h.
32431 * modules/pipe (Depends-on): Add wait-process.
32432 * modules/stat (Depends-on): Add xalloc.
32433 * modules/userspec (Files): Add lib/userspec.h.
32436 Upgrade from gettext-0.13.
32437 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
32438 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
32439 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
32441 2004-06-10 Jim Meyering <jim@meyering.net>
32443 * lib/calloc.c: New file.
32445 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
32447 * lib/getdate.y (yylex): Allow space between sign and number.
32448 Problem reported by Dan Jacobson.
32450 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
32452 Merge from coreutils CVS.
32454 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
32455 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
32456 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
32457 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
32458 xstrtol.m4: Fix copyright date and/or serial number.
32460 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
32461 See if we need an fchown replacement.
32462 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
32463 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
32464 and use the replacement function if we detect either defect.
32466 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
32469 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
32470 and Jim Meyering <jim@meyering.net>
32472 Merge from coreutils CVS.
32474 * lib/stat-macros.h: New file, with contents from file-type.h
32475 and coreutils' system.h.
32476 * lib/file-type.c: Include "stat-macros.h".
32477 * lib/file-type.h (file_type): Move all macro definitions to new file,
32480 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
32481 Wrap old code with this conditional.
32482 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
32483 function that does not dereference symlinks.
32484 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
32486 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
32487 dependency problems.
32488 (xreadlink): Accept new arg SIZE, for efficiency.
32489 All decls and uses changed.
32490 * lib/xreadlink.h: Include <stddef.h>, for size_t.
32492 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
32493 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
32495 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
32498 2004-06-01 Jim Meyering <jim@meyering.net>
32500 * m4/calloc.m4: New file.
32502 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
32504 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
32505 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
32506 Also, fix a typo in a diagnostic.
32508 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
32510 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
32511 or AC_FUNC_REALLOC.
32513 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
32515 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
32516 macros to be defined.
32517 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
32518 the allocator returns NULL because the requested size is zero.
32520 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
32522 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
32523 var. Add comment explaining why libc still defines it. This
32524 merges the following patch from glibc:
32525 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
32527 2004-05-20 Andreas Schwab <schwab@suse.de>
32529 * m4/free.m4: Replace free if it not known to work, not the other
32532 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
32534 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
32535 present in glibc since revision 1.1 of this file.
32536 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
32537 obstack_alignment_mask, obstack_alloc, obstack_base,
32538 obstack_blank, obstack_blank_fast, obstack_chunk_size,
32539 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
32540 obstack_grow0, obstack_init, obstack_int_grow,
32541 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
32542 obstack_next_free, obstack_object_size, obstack_ptr_grow,
32543 obstack_ptr_grow_fast, obstack_room): Remove declarations of
32544 nonexistent functions.
32546 2004-05-18 Karl Berry <karl@gnu.org>
32548 * config/srclist.txt: break link for vasnprintf.c.
32550 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
32552 Port obstack to the AS/400, where pointers are 16 bytes wide and
32553 you cannot cast an integer to a valid pointer. This patch is
32554 currently waiting to be integrated into glibc; see
32555 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
32557 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
32558 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
32559 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
32560 (struct obstack): temp member is now a union of a pointer and
32561 an integer, instead of an integer. All integer uses changed.
32562 This does not affect the physical layout of struct obstack,
32563 except on hosts (like the AS/400) where the size or alignment of
32564 void * is greater than that of ptrdiff_t.
32565 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
32566 __STDC__)]: Store temporary in pointer member of union, not
32568 * lib/obstack.c: Include <stddef.h>, for offsetof.
32569 (struct fooalign): Remove; it doesn't need a name.
32570 (union fooround): Change double to long double, and add void *.
32571 (DEFAULT_ALIGNMENT): Use offsetof to compute.
32572 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
32573 not a macro. Hence the values are always int; so remove all
32574 casts-to-int in uses.
32576 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
32578 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
32579 we can get this patch merged into glibc.
32581 2004-05-17 Derek R. Price <derek@ximbiot.com>
32582 Paul Eggert <eggert@cs.ucla.edu>
32584 * m4/argp: Depend on alloca.
32586 2004-05-17 Derek R. Price <derek@ximbiot.com>
32587 Paul Eggert <eggert@cs.ucla.edu>
32589 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
32592 2004-05-17 Bruno Haible <bruno@clisp.org>
32594 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
32595 precision that consists of a '.' followed by an empty digit string.
32596 Patch by Tor Lillqvist <tml@iki.fi>.
32598 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
32600 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
32601 for backward compatibility with older code. We need our own
32602 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
32603 it under some other name, and our alloca.h will define it.
32605 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
32606 Derek Price <derek@ximbiot.com>
32608 * lib/alloca.c: Include <alloca.h>, to get our interface.
32609 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
32610 include <alloca.h> first. Use C89 prototype for alloca; this
32611 requires including <stddef.h> for size_t. Use extern "C" if C++.
32612 Use #elif for simplicity, since we can assume C89 now.
32613 Don't try to source the system alloca.h since it will not be found
32614 and to prevent recursively including its replacement.
32615 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
32616 * lib/regex.c: Likewise.
32618 2004-05-16 Derek Price <derek@ximbiot.com>
32619 Paul Eggert <eggert@cs.ucla.edu>
32621 getline cleanup. This changes the getndelim2 API: both order of
32622 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
32625 * lib/getline.c: Don't include stddef.h or stdio.h, since our
32626 interface does that.
32627 (getline): Always use getdelim, so that we don't have two
32628 copies of this code.
32629 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
32631 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
32632 (GETNDELIM2_MAXIMUM): New macro.
32633 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
32634 instead of the old practice of delim2==0. All callers changed.
32635 Return -1 on overflow, instead of returning junk.
32636 Do not set *linesize unless allocation succeeds.
32637 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
32638 that we include sys/types.h.
32639 * lib/getnline.h: Likewise.
32640 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
32641 (getndelim2): Reorder arguments.
32642 * lib/getnline.c (getnline, getndelim):
32643 Don't discard the NMAX argument.
32644 (getnline): Invoke getndelim, to avoid code duplication.
32645 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
32646 of (size_t) -1 by callers of the getnline family.
32648 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
32650 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
32651 Check for gettimeofday.
32652 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
32653 Check for settimeofday, stime.
32655 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
32657 * lib/nanosleep.c (suspended): Change its type from int to
32658 sig_atomic_t volatile.
32659 (first_call): Make it private to rpl_nanosleep, and have it
32660 be zero initially as that's a bit faster.
32661 (my_usleep): Round up fractional times instead of truncating them,
32662 as this is the usual meaning for 'sleep'.
32664 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
32666 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
32667 (ENOSYS): Define if not defined.
32668 (settime): Fall back on stime if it exists and settimeofday fails.
32669 But don't bother with fallbacks if a method fails with errno == EPERM.
32671 2004-05-11 Jim Meyering <jim@meyering.net>
32673 Prior to this change, the save_cwd caller required read access to the
32674 current directory on most systems (ones with the fchdir function).
32676 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
32677 fails, try write-only, and finally, resort to using xgetcwd.
32679 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
32681 * lib/obstack.c, obstack.h: Import changes from libc.
32683 2004-04-28 Bruno Haible <bruno@clisp.org>
32685 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
32686 also implicitly appends .exe to executables.
32687 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
32688 accepts Windows pathnames.
32689 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
32690 Treat Cygwin like Windows, since it now accepts Windows pathnames.
32691 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
32692 Treat Cygwin like Windows, since it now accepts Windows pathnames.
32693 Reported by Derek Robert Price <derek@ximbiot.com>.
32695 2004-04-21 Karl Berry <karl@gnu.org>
32697 * config/srclist.txt (localcharset.c): break sync.
32699 2004-04-20 Paul Eggert <eggert@twinsun.com>
32701 * m4/host-os.m4: Add a copyright notice.
32703 2004-04-20 Jim Meyering <jim@meyering.net>
32705 Change UTILS_ to gl_ in AC_DEFINE'd names.
32706 Change utils_- and jm_-prefixed variables, too.
32707 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
32708 UTILS_FUNC_MKDIR_TRAILING_SLASH.
32709 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
32711 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
32712 Don't emit trailing blanks.
32713 Also rename jm_-prefixed variables to have gl_ prefix.
32715 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
32716 Also rename jm_-prefixed variables to have gl_ prefix.
32718 * m4/jm-macros.m4: Reflect the renamings.
32719 * m4/prereq.m4: Likewise.
32721 2004-04-20 Jim Meyering <jim@meyering.net>
32723 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
32726 2004-04-20 Jim Meyering <jim@meyering.net>
32727 Bruno Haible <bruno@clisp.org>
32729 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
32730 memory when realloc fails.
32732 2004-04-19 Jim Meyering <jim@meyering.net>
32734 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
32735 now that readutmp.c may call `free (0)'.
32737 2004-04-19 Bruno Haible <bruno@clisp.org>
32739 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
32740 * m4/inttypes_h.m4: Likewise.
32741 * m4/stdint_h.m4: Likewise.
32742 * m4/intmax_t.m4: Likewise.
32743 * m4/uintmax_t.m4: Likewise.
32745 2004-04-18 Jim Meyering <jim@meyering.net>
32747 * m4/prereq.m4: Don't forbid jm_ prefix.
32749 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
32750 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
32751 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
32752 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
32753 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
32754 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
32755 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
32756 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
32757 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
32758 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
32759 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
32760 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
32761 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
32762 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
32763 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
32764 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
32765 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
32766 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
32767 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
32769 2004-04-18 Jim Meyering <jim@meyering.net>
32771 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
32772 failure, don't leak memory and do call END_UTMP_ENT.
32774 2004-04-16 Jim Meyering <jim@meyering.net>
32776 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
32777 coreutils' stat program.
32778 (gl_PREREQ): Don't require jm_PREREQ_STAT.
32780 2004-04-11 Paul Eggert <eggert@twinsun.com>
32782 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
32784 (CHAR_BIT): Remove, since we assume C89.
32785 Include <stdint.h> if available, as per current Autoconf CVS advice.
32787 2004-03-31 Jim Meyering <jim@meyering.net>
32789 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
32790 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
32791 * m4/xalloc.m4: Likewise.
32793 2004-03-30 Paul Eggert <eggert@twinsun.com>
32795 Merge from coreutils.
32797 * m4/inttostr.m4: New file.
32798 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
32799 Require AM_STDBOOL_H and gl_TIMESPEC instead.
32800 Require gl_CLOCK_TIME.
32801 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
32803 2004-03-30 Paul Eggert <eggert@twinsun.com>
32805 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
32806 not bool, to be more consistent with Unix conventions.
32807 Suggested by Bruno Haible.
32809 Merge from coreutils.
32811 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
32812 * lib/umaxtostr.c: New files.
32814 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
32815 the usual <time.h> dance.
32816 (get_date): Change signature to support fractional time stamps.
32817 All callers changed.
32818 * lib/getdate.y: Include "getdate.h" first, as we can now
32819 assume C89 and don't need to worry about 'const'.
32820 Similarly, include "unlocked-io.h" near start, not in middle.
32821 Include <limits.h>.
32822 (textint.value): Use long int rather than int.
32823 (textint.digits): Use size_t rather than int.
32824 (BILLION, LOG10_BILLION): New constants.
32825 (parser_control): New member rel_ns. Members day_ordinal,
32826 time_zone, month, day, hour, minutes, rel_year, rel_month,
32827 rel_day, rel_hour, rel_minutes, rel_seconds
32828 are now long int, not int. Member seconds is now struct timespec,
32829 not int. New member timespec_seen. Members dates_seen, days_seen,
32830 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
32832 (%union.intval): Now long int, not int.
32833 New member timespec.
32834 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
32835 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
32836 (spec): Now is a timespec or an item list.
32837 (timespec, items): New nonterminals.
32838 (time, rel, relunit, number, get_date):
32839 Add support for fractional seconds.
32840 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
32841 (gmtime, localtime, mktime): Remove decls; not needed with C89.
32842 (to_hour): First arg is now long int, not int.
32843 (to_year): Returns long int, not int.
32844 Don't treat year -70 like 70.
32845 (tm_diff): Returns long int, not int.
32846 (lookup_word): Use bool instead of int when appropriate.
32847 (yylex): Use size_t for count, not int.
32848 Detect overflow when parsing large integer constants.
32849 Add support for fractions.
32850 (get_date): Make pointers 'const' if possible.
32851 Use more-portable code to detect integer overflow.
32852 (main) [TEST]: Adjust to above changes. Test for localtime failure.
32853 Don't use ctime; it's not reliable if the year has >4 digits.
32855 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
32856 This is for compatibility with BSD.
32858 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
32859 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
32860 From coreutils' system.h.
32862 * lib/userspec.c: Don't include "posixver.h".
32863 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
32864 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
32865 compatible extension. Simplify code by removing a boolean int
32866 that was always nonzero if a string was nonnull.
32868 2004-03-30 Jim Meyering <jim@meyering.net>
32870 Merge from coreutils.
32872 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
32873 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
32874 on some systems one must include <grp.h> before it.
32875 Reported by Christian Krackowizer.
32877 2004-03-30 Jim Meyering <jim@meyering.net>
32879 Merge from coreutils.
32881 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
32883 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
32884 an empty input stream.
32886 * lib/readtokens.c: Include <stdbool.h>.
32887 (readtoken): Use `size_t' rather than int/long.
32888 All callers adjusted.
32889 Use `bool' rather than `int' where appropriate.
32890 Use memset rather than an explicit loop.
32891 Use x2nrealloc rather than xrealloc.
32892 Allow the use of `\0' as a delimiter.
32893 (readtokens): Likewise.
32894 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
32896 2004-03-30 Jim Meyering <jim@meyering.net>
32898 * m4/realloc.m4: Remove file, since now it does no more than
32899 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
32900 the `configure.ac' section of module/realloc.
32901 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
32903 2004-03-30 Bruno Haible <bruno@clisp.org>
32905 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
32908 2004-03-29 Paul Eggert <eggert@twinsun.com>
32910 Merge changes to getloadavg.c from coreutils and Emacs.
32912 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
32913 Define to an expression, not to the empty string.
32914 Include cloexec.h and xalloc.h.
32915 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
32916 Use set_cloexec_flag rather than rolling our own.
32917 * lib/cloexec.c, lib/cloexec.h: New files.
32919 2004-03-29 Paul Eggert <eggert@twinsun.com>
32921 * m4/cloexec.m4: New file.
32923 2004-03-18 Paul Eggert <eggert@twinsun.com>
32925 * lib/getopt.h: Sync with libc CVS.
32927 2004-03-18 Paul Eggert <eggert@twinsun.com>
32928 Bruno Haible <bruno@clisp.org>
32930 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
32933 2004-03-18 Paul Eggert <eggert@twinsun.com>
32934 Bruno Haible <bruno@clisp.org>
32936 * lib/mbswidth.h: Include <wchar.h> only if
32937 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
32939 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
32941 2004-03-09 Paul Eggert <eggert@twinsun.com>
32943 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
32944 Sync with libc CVS.
32945 * lib/getopt_int.h: New file, also synced from libc.
32947 2004-03-09 Paul Eggert <eggert@twinsun.com>
32949 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
32950 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
32951 Bring back getopt.c, getopt.h, getopt1.c.
32953 2004-03-07 Paul Eggert <eggert@twinsun.com>
32955 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
32956 All uses changed. Check for sa_sigaction member; this fixes
32957 a bug first reported by Jason Andrade in
32958 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
32960 2004-03-07 Paul Eggert <eggert@twinsun.com>
32962 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
32963 '#if' expressions. Unlike the code it replaces, it does not
32964 depend on (defined _SC_PAGESIZE). However, it does depend on
32965 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
32966 first reported by Jason Andrade in
32967 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
32969 2004-02-25 Simon Josefsson <jas@extundo.com>
32971 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
32973 2004-02-25 Simon Josefsson <jas@extundo.com>
32975 * lib/strdup.h: New file.
32976 * lib/strdup.c: Include it.
32977 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
32978 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
32980 2004-02-23 Karl Berry <karl@gnu.org>
32982 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
32983 (from fencepost.gnu.org:/gd/gnuorg).
32985 2004-02-23 Karl Berry <karl@gnu.org>
32987 * config/srclistvars.sh (GNUORG) [karl]: redefine.
32988 * config/srclist.txt: add maintain/standards documents.
32990 2004-02-18 Bruno Haible <bruno@clisp.org>
32992 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
32993 Reported by Derek Robert Price <derek@ximbiot.com>.
32995 2004-02-16 Karl Berry <karl@gnu.org>
32997 * config/mkinstalldirs, install-sh: update from automake.
32999 2004-02-06 Karl Berry <karl@gnu.org>
33001 * m4/po.m4: update from gettext 0.14.1.
33003 2004-02-06 Karl Berry <karl@gnu.org>
33005 * lib/config.charset: update from gettext 0.14.1.
33007 2004-02-05 Paul Eggert <eggert@twinsun.com>
33009 Add comments and code, prompted by suggestions from Bruno Haible
33011 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
33012 describing the enum quoting_style values.
33013 * lib/quotearg.c (quotearg_alloc): New function.
33014 (quotearg_buffer_restyled): Treat lone { and } as special.
33015 Treat = as special. Work around bug with older shells
33016 that "see" a '\' that is really the 2nd byte of a multibyte char.
33017 Quote empty string with shell_quoting_style.
33019 2004-02-03 Bruno Haible <bruno@clisp.org>
33021 * m4/pipe.m4: New file, from GNU gettext.
33023 2004-02-03 Bruno Haible <bruno@clisp.org>
33025 * lib/pipe.h: New file, from GNU gettext.
33026 * lib/pipe.c: New file, from GNU gettext.
33028 2004-01-27 Bruno Haible <bruno@clisp.org>
33030 * m4/execute.m4: New file, from GNU gettext.
33032 2004-01-27 Bruno Haible <bruno@clisp.org>
33034 * lib/execute.h: New file, from GNU gettext.
33035 * lib/execute.c: New file, from GNU gettext.
33036 * lib/w32spawn.h: New file, from GNU gettext.
33038 2004-01-24 Paul Eggert <eggert@twinsun.com>
33040 Merge from diffutils.
33042 * lib/file-type.c (file_type): Add typed memory objects.
33043 * lib/file-type.h (S_TYPEISTMO): New macro.
33045 * lib/c-stack.h (c_stack_action): Remove argv argument.
33046 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
33047 (die): Don't calculate message unless segv_action returns.
33048 (get_stack_location, min_address_from_argv, max_address_from_argv,
33049 volatile stack_base, volatile_stack_size): Remove.
33050 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33051 that every segmentation violation is a stack overflow. (Ouch!)
33052 See Debian bug 136249 (still outstanding) for more info about why
33053 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33055 2004-01-24 Paul Eggert <eggert@twinsun.com>
33057 Exit-status fix from coreutils.
33059 Use exit_failure consistently in place of EXIT_FAILURE,
33060 so that program exit statuses are consistent on failure.
33062 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33063 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33064 * lib/argmatch.h: Comment fix to match the above.
33065 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33066 Now a macro referring to exit_failure, instead of a separate
33067 variable. Include "exitfail.h" to get it.
33068 * lib/xstrtol.h: Include "exitfail.h".
33069 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33071 * lib/long-options.c (parse_long_options): Use prototype
33072 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
33075 2004-01-21 Jim Meyering <jim@meyering.net>
33077 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33078 so as not to conflict with a different-sized __mktime_internal
33079 function in GNU libc.
33080 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33081 Problem building statically-linked `ls' reported by Michael Brunnbauer.
33083 2004-01-20 Karl Berry <karl@gnu.org>
33085 * config/config.guess: update from config.
33087 * config/srclistvars.sh: GNUWWWLICENSES for karl.
33089 2004-01-20 Bruno Haible <bruno@clisp.org>
33091 Safer stack allocation.
33092 * lib/setenv.c: Include allocsa.h.
33093 (alloca): Remove fallback definition.
33094 (freea): Remove macro.
33095 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33098 2004-01-20 Bruno Haible <bruno@clisp.org>
33100 * m4/eealloc.m4: New file, from GNU gettext.
33102 2004-01-20 Bruno Haible <bruno@clisp.org>
33104 * m4/allocsa.m4: New file, from GNU gettext.
33106 2004-01-20 Bruno Haible <bruno@clisp.org>
33108 * lib/xallocsa.h: New file, from GNU gettext.
33109 * lib/xallocsa.c: New file, from GNU gettext.
33111 2004-01-20 Bruno Haible <bruno@clisp.org>
33113 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
33115 2004-01-20 Bruno Haible <bruno@clisp.org>
33117 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
33118 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
33121 2004-01-20 Bruno Haible <bruno@clisp.org>
33123 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
33126 2004-01-20 Bruno Haible <bruno@clisp.org>
33128 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
33130 2004-01-20 Bruno Haible <bruno@clisp.org>
33132 * lib/eealloc.h: New file.
33134 2004-01-20 Bruno Haible <bruno@clisp.org>
33136 * lib/binary-io.h: Avoid warnings on Cygwin.
33138 2004-01-20 Bruno Haible <bruno@clisp.org>
33140 * lib/allocsa.h: New file, from GNU gettext.
33141 * lib/allocsa.c: New file, from GNU gettext.
33143 2004-01-18 Karl Berry <karl@gnu.org>
33145 * doc/gpl.texi, doc/lgpl.texi: new files.
33147 2004-01-18 Karl Berry <karl@gnu.org>
33149 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
33150 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
33152 2004-01-15 Paul Eggert <eggert@twinsun.com>
33154 Merge from coreutils.
33156 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
33157 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
33158 (gl_DEFAULT_POSIX2_VERSION): Move
33159 the documentation from 'configure' into 'config.hin',
33160 so that 'configure --help' isn't burdened by it and
33161 we don't have to worry about its formatting there.
33162 Reword the documentation so that it's more succinct
33163 and can be run together into a single paragraph.
33164 * m4/same.m4 (gl_SAME): Check for pathconf.
33166 2004-01-15 Paul Eggert <eggert@twinsun.com>
33168 Merge from coreutils.
33170 * lib/posixver.c: Include posixver.h.
33172 * lib/same.c: Include <stdbool.h>, <limits.h>.
33173 (_POSIX_NAME_MAX): Define if not defined.
33175 (same_name): If file names are silently truncated, report
33176 that the file names are the same if they are the same after
33177 the silent truncation.
33179 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
33180 conversion function.
33181 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
33182 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
33185 2004-01-15 Jim Meyering <jim@meyering.net>
33187 Merge from coreutils.
33189 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
33190 if no library is required.
33191 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
33192 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
33193 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
33194 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
33195 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
33196 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
33197 value, $ac_cv_search_crypt, if it's "none required".
33198 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
33199 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
33200 not gl_FUNC_GETLOADAVG.
33201 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
33202 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
33204 2004-01-15 Jim Meyering <jim@meyering.net>
33206 Merge from coreutils.
33208 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
33209 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
33210 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
33212 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
33213 optional configure-time default.
33215 * lib/version-etc.c (version_etc_copyright): Update copyright date.
33217 * lib/xreadlink.c (xreadlink): Correct outdated comment.
33219 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
33221 Merge from coreutils.
33223 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
33224 value, $ac_cv_search_nanosleep, if it's "none required".
33226 2004-01-14 Paul Eggert <eggert@twinsun.com>
33228 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
33229 with like-named macro in fnmatch.c.
33230 (EXT): Use an internal constant instead.
33232 Merge fnmatch patches from glibc.
33233 * lib/fnmatch.c (mbsinit): Remove define.
33234 Add libc_hidden_ver (__fnmatch, fnmatch).
33235 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
33236 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
33238 2004-01-14 Karl Berry <karl@gnu.org>
33240 * config/install-sh: update from automake.
33242 2004-01-13 Karl Berry <karl@gnu.org>
33244 * config/install-sh: update from automake.
33246 2004-01-09 Karl Berry <karl@gnu.org>
33248 * config/install-sh: update from automake.
33250 2004-01-05 Karl Berry <karl@gnu.org>
33252 * config/config.{sub,guess}: update from config.
33254 2003-12-31 Karl Berry <karl@gnu.org>
33256 * config/depcomp: update from automake.
33258 2003-12-14 Karl Berry <karl@gnu.org>
33260 * lib/config.charset: update from gettext-runtime.
33262 2003-12-03 Paul Eggert <eggert@twinsun.com>
33264 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
33265 Bug reported by Alfred M. Szmidt.
33267 2003-12-03 Bruno Haible <bruno@clisp.org>
33269 * m4/gettext.m4: Upgrade from gettext-0.13.
33270 * m4/po.m4: Upgrade from gettext-0.13.
33271 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
33272 * m4/intmax.m4: New file, from gettext-0.13.
33273 * m4/printf-posix.m4: New file, from gettext-0.13.
33275 2003-11-29 Karl Berry <karl@gnu.org>
33277 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
33279 2003-11-25 Paul Eggert <eggert@twinsun.com>
33280 Bruno Haible <bruno@clisp.org>
33282 * lib/printf-parse.h: Don't include sys/types.h.
33283 (ARG_NONE): New macro.
33284 (char_directive): Change type of *arg_index fields to size_t.
33285 * lib/printf-parse.c: Don't include sys/types.h.
33286 (SSIZE_MAX): Remove macro.
33287 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
33288 Remove unnecessary overflow check.
33289 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
33292 2003-11-25 Bruno Haible <bruno@clisp.org>
33294 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
33296 2003-11-25 Bruno Haible <bruno@clisp.org>
33298 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
33301 2003-11-24 Paul Eggert <eggert@twinsun.com>
33303 * modules/alloca: Remove dependency on xalloc.
33305 2003-11-24 Paul Eggert <eggert@twinsun.com>
33307 * lib/alloca.c: Remove dependency on xalloc module.
33308 (xalloc_die): Remove.
33309 (memory_full) [!defined emacs]: New macro.
33310 [!defined emacs]: Don't include xalloc.h.
33311 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
33312 address arithmetic overflows. Change datatypes a bit to avoid
33315 2003-11-22 Jim Meyering <jim@meyering.net>
33317 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
33320 2003-11-21 Karl Berry <karl@gnu.org>
33322 * config/config.{sub,guess}: update from config.
33324 2003-11-18 Karl Berry <karl@gnu.org>
33326 * config/config.{sub,guess}: update from config.
33328 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
33330 2003-11-17 Paul Eggert <eggert@twinsun.com>
33332 * README: Mention that S+T cannot overflow if S is the size of
33333 an existing object and T is sufficiently small.
33335 2003-11-17 Jim Meyering <jim@meyering.net>
33337 On systems without utime and without a utimes function capable of
33338 dealing with a NULL struct utimbuf* argument, this utime replacement
33339 could -- in unusual circumstances -- leak a file descriptor.
33340 * lib/utime.c: Include <unistd.h> and <errno.h>.
33341 (utime_null): Be sure to close `fd' and to preserve errno.
33342 Reported by Geoff Collyer via Arnold Robbins.
33344 2003-11-17 Bruno Haible <bruno@clisp.org>
33346 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
33347 (Depends-on): Add xsize.
33349 2003-11-17 Bruno Haible <bruno@clisp.org>
33351 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
33353 2003-11-17 Bruno Haible <bruno@clisp.org>
33355 * lib/vasnprintf.c (alloca): Remove fallback definition.
33356 (freea): Remove definition.
33357 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
33358 Reported by Paul Eggert.
33360 2003-11-16 Paul Eggert <eggert@twinsun.com>
33361 Bruno Haible <bruno@clisp.org>
33363 Protect against address arithmetic overflow.
33364 * lib/printf-args.h: Include stddef.h.
33365 (arguments): Change type of field 'count' to size_t.
33366 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
33367 'unsigned int' where appropriate.
33368 * lib/printf-parse.h: Include sys/types.h.
33369 (char_directive): Change type of *arg_index fields to ssize_t.
33370 (char_directives): Change type of fields 'count', max_*_length to
33372 * lib/printf-parse.c: Include sys/types.h and xsize.h.
33373 (SSIZE_MAX): Define fallback value.
33374 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
33375 instead of 'int' where appropriate. Check a_allocated, d_allocated
33376 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
33377 * lib/vasnprintf.c: Include xsize.h.
33378 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
33379 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
33380 overflow. Avoid wraparound when converting a width or precision from
33383 2003-11-16 Bruno Haible <bruno@clisp.org>
33385 Update from GNU gettext.
33386 * lib/printf-parse.c: Generalize to it can be compiled for wide
33388 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
33389 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
33390 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
33391 SNPRINTF): New macros.
33392 Don't include <alloca.h> if the file is used inside libintl.
33393 (local_wcslen): New function, for Solaris 2.5.1.
33394 (VASNPRINTF): Use it instead of wcslen.
33396 2003-11-16 Bruno Haible <bruno@clisp.org>
33398 * lib/xsize.h (xmax): New function.
33399 (xsum, xsum3, xsum4): Declare as "pure" functions.
33401 2003-11-12 Paul Eggert <eggert@twinsun.com>
33403 * modules/xalloc (Files): Undo latest change, since xalloc.h
33404 no longer needs SIZE_MAX or PTRDIFF_MAX.
33406 2003-11-12 Paul Eggert <eggert@twinsun.com>
33408 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
33411 2003-11-12 Paul Eggert <eggert@twinsun.com>
33413 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
33414 "return", to pacify some unknown compiler. Problem reported
33415 by Joerg Schilling.
33417 2003-11-12 Paul Eggert <eggert@twinsun.com>
33419 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
33420 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
33421 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
33422 heuristic is just as accurate as far as we know, and it removes a
33423 dependency on size_max.m4 and ptrdiff_max.m4.
33425 2003-11-11 Bruno Haible <bruno@clisp.org>
33427 * modules/xsize (Files): Add m4/size_max.m4.
33428 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
33430 2003-11-11 Bruno Haible <bruno@clisp.org>
33432 * m4/size_max.m4: New file.
33433 * m4/ptrdiff_max.m4: New file.
33434 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
33435 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
33436 (gl_XALLOC): Invoke it.
33438 2003-11-11 Bruno Haible <bruno@clisp.org>
33440 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
33441 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
33444 2003-11-10 Paul Eggert <eggert@twinsun.com>
33446 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
33447 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
33448 rejected some allocations of exactly SIZE_MAX - 2 bytes.
33450 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
33451 not (size_t) -1, since it's defined here.
33453 2003-11-09 Karl Berry <karl@gnu.org>
33455 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
33457 2003-11-06 Paul Eggert <eggert@twinsun.com>
33459 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
33460 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
33461 Reject sizes of exactly SIZE_MAX bytes.
33462 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
33463 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
33465 2003-11-05 Bruno Haible <bruno@clisp.org>
33467 * lib/xsize.h: Include limits.h, to avoid a possible collision with
33468 SIZE_MAX defined in <limits.h> on Solaris.
33470 2003-11-04 Jim Meyering <jim@meyering.net>
33472 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
33473 variable names, rather than @VAR@.
33474 * modules/poll: Likewise.
33476 2003-11-04 Bruno Haible <bruno@clisp.org>
33478 * modules/xsize: New file.
33479 * modules/linebreak: Depend on xsize.
33480 * MODULES.html.sh (func_all_modules): Add xsize.
33482 2003-11-04 Bruno Haible <bruno@clisp.org>
33484 * m4/xsize.m4: New file.
33486 2003-11-04 Bruno Haible <bruno@clisp.org>
33488 * lib/xsize.h: New file.
33489 * lib/linebreak.c: Include xsize.h.
33490 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
33491 argument for overflow.
33492 Suggested by Paul Eggert.
33494 2003-11-03 Karl Berry <karl@gnu.org>
33496 * config/config.{guess,sub}: update from config.
33498 2003-11-03 Jim Meyering <jim@meyering.net>
33500 * modules/userspec (lib_SOURCES): Add userspec.h.
33501 (Include): Add "userspec.h".
33502 Improve description.
33504 2003-11-03 Jim Meyering <jim@meyering.net>
33506 * lib/userspec.c: Include "userspec.h".
33507 * lib/userspec.h: New file.
33509 2003-11-03 Bruno Haible <bruno@clisp.org>
33511 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
33513 2003-11-03 Bruno Haible <bruno@clisp.org>
33515 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
33516 available, to avoid (extremely rare) race condition.
33517 Suggested by Paul Eggert.
33519 2003-11-02 Karl Berry <karl@gnu.org>
33521 * config/srclist.txt (vasprintf.c): sync broken, sigh.
33523 2003-10-31 Paul Eggert <eggert@twinsun.com>
33525 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
33526 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
33527 (read_filesystem_list): Set and use me_type_malloced.
33528 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
33529 whatever the type happens to be), for brevity and consistency.
33530 Check for size calculation overflow on Alphas running OSF/1.
33532 2003-10-31 Jim Meyering <jim@meyering.net>
33534 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
33536 * lib/linebuffer.c: Include <string.h> for declaration of memset.
33538 2003-10-30 Paul Eggert <eggert@twinsun.com>
33539 Bruno Haible <bruno@clisp.org>
33541 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
33542 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
33544 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
33546 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
33547 netbsd*-gnu*. Suggested by Robert Millan.
33549 2003-10-29 Paul Eggert <eggert@twinsun.com>
33551 * modules/group-member: Depend on stdbool.
33553 2003-10-29 Paul Eggert <eggert@twinsun.com>
33555 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
33557 2003-10-29 Paul Eggert <eggert@twinsun.com>
33559 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
33560 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
33561 after the 'gnu' in these cases. This fixes some bugs in the
33562 previous change, and is based on suggestions by Robert Millan.
33564 2003-10-29 Paul Eggert <eggert@twinsun.com>
33566 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
33567 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
33569 * lib/quotearg.c (quotearg_n_options): Use it.
33570 * lib/group-member.c: Include <stdbool.h>.
33571 (free_group_info): Arg is now const *; don't free arg.
33572 (get_group_info): Now returns bool and accepts struct group_info *,
33573 rather than returning a malloc'ed struct group_info *.
33574 All uses changed. Check for overflow in internal size calculation.
33576 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
33577 rather than xmalloc/xrealloc.
33578 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
33579 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
33580 conformance bug: the old code used a pointer after freeing the
33581 storage that it addressed.
33582 * lib/hash.c (hash_initialize): Simplify the code by using
33583 xalloc_oversized rather than doing it by hand.
33584 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
33585 the buffer preserved. Use free and xmalloc instead.
33586 * lib/quotearg.c (quotearg_n_options): Likewise.
33587 Use a simpler test for size overflow. Don't use xalloc_oversized
33588 because unsigned int might be wider than size_t (!); this suggests
33589 that we should switch from unsigned int to size_t for slot numbers.
33591 2003-10-28 Paul Eggert <eggert@twinsun.com>
33593 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
33594 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
33595 NetBSD kernels. Requested by Richard Stallman.
33597 2003-10-27 Paul Eggert <eggert@twinsun.com>
33599 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
33600 to allocate the returned structure. Do not allocate a subarray,
33601 as x2nrealloc will do that.
33602 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
33603 instead of xnrealloc.
33604 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
33606 2003-10-27 Bruno Haible <bruno@clisp.org>
33608 * lib/stdbool_.h: Better support for BeOS.
33610 2003-10-26 Paul Eggert <eggert@twinsun.com>
33612 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
33615 2003-10-26 Paul Eggert <eggert@twinsun.com>
33617 * lib/xalloc.h (xalloc_oversized): New static inline function, for
33618 callers that want to do their own size-overflow checking. Include
33619 <stdbool.h>, since xalloc_oversized returns bool.
33620 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
33621 to use xalloc_oversized.
33623 Add two functions x2realloc, x2nrealloc, for programs that grow
33624 arrays dynamically by doubling their sizes.
33625 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
33626 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
33629 Port to C99 semantics for 'inline' of external functions.
33630 Bug reported by Bruno Haible.
33631 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
33632 with the old contents of xnmalloc.
33633 (xnmalloc, xmalloc): Use it.
33634 (xnrealloc_inline): New static inline function,
33635 with the old contents of xnrealloc.
33636 (xnrealloc, xrealloc): Use it.
33638 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
33641 2003-10-26 Karl Berry <karl@gnu.org>
33643 * config/srclist.txt (COPYING.DOC): no longer available from
33644 /gd/gnuorg; don't know where the ultimate source is.
33646 2003-10-25 Paul Eggert <eggert@twinsun.com>
33648 Fix several address-calculation bugs in the hash modules,
33649 plus some minor code cleanup.
33651 * lib/hash.h: Include <stdbool.h>, for bool.
33652 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
33653 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
33654 hash_get_n_entries, hash_get_max_bucket_length,
33655 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
33656 hash_rehash): Use size_t rather than unsigned.
33657 * lib/hash.c (struct hash_table, hash_get_n_buckets,
33658 hash_get_n_buckets_used, hash_get_n_entries,
33659 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
33660 hash_get_entries, hash_do_for_each, hash_string, is_prime,
33661 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
33663 (SIZE_MAX): Define if not defined.
33664 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
33665 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
33667 Use const * when possible.
33668 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
33669 (check_tuning): Fix bug: if tuning parameters were very close to
33670 0 or 1, rounding errors could have caused subscript violations.
33671 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
33672 (hash_initialize): Add 'fail:' label
33673 to free table and return NULL, and use it to simplify code.
33674 Use calloc rather than clearing the storage ourself.
33675 (hash_initialize, hash_rehash): Check for arithmetic overflow in
33676 buffer size calculations.
33677 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
33678 Include <stddef.h>, for size_t.
33679 * lib/hash-pjw.c (hash_pjw): Likewise.
33680 Switch to method described by Bruno Haible.
33681 Include <limits.h>, for CHAR_BIT.
33682 (SIZE_BITS): New macro.
33684 2003-10-23 Paul Eggert <eggert@twinsun.com>
33686 * m4/getline.m4 (AM_FUNC_GETLINE):
33687 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
33688 hosts. Problem reported by Derek Robert Price in
33689 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
33690 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
33691 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
33693 2003-10-21 Paul Eggert <eggert@twinsun.com>
33695 * lib/getndelim2.c (getndelim2): When size calculation overflows,
33696 ceiling the allocation at NMAX bytes rather than silently
33697 discarding input bytes before NMAX is reached. This makes
33698 a difference only if NMAX exceeds SIZE_MAX / 2.
33700 * lib/obstack.c: Merge from glibc.
33701 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
33702 Add libc_hidden_def (_obstack_newchunk).
33703 (_obstack_free) [! defined _LIBC]: Remove.
33704 [defined _LIBC]: Make a strong alias from obstack_free, rather than
33705 a clone of the function body.
33706 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
33707 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
33709 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
33711 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
33714 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
33715 (obstack_ptr_grow_fast, obstack_int_grow_fast):
33716 Don't use lvalue casts, as GCC plans to remove support for them
33717 in GCC 3.5. Reported by Joseph S. Myers. This bug
33718 was also present in the non-GCC version, indicating that this
33719 code had always been buggy and had never been widely used.
33720 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
33721 Use the fast variant of each macro, rather than copying the
33722 definiens of the fast variant; that way, we'll be more likely to
33723 catch future bugs in the fast variants.
33725 2003-10-20 Bruno Haible <bruno@clisp.org>
33727 * modules/wait-process: New file.
33728 * MODULES.html.sh (func_all_modules): Add wait-process.
33730 2003-10-20 Bruno Haible <bruno@clisp.org>
33732 * m4/wait-process.m4: New file.
33734 2003-10-20 Bruno Haible <bruno@clisp.org>
33736 * lib/wait-process.h: New file, from GNU gettext.
33737 * lib/wait-process.c: New file, from GNU gettext.
33739 2003-10-19 Jim Meyering <jim@meyering.net>
33741 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
33744 2003-10-18 Karl Berry <karl@gnu.org>
33746 * config/config.guess: update from config.
33748 2003-10-16 Paul Eggert <eggert@twinsun.com>
33750 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
33751 (getgroups): First arg is int, not size_t.
33752 Don't let 'free' mangle errno.
33754 2003-10-16 Paul Eggert <eggert@twinsun.com>
33756 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
33758 2003-10-16 Karl Berry <karl@gnu.org>
33760 * config/config.{guess,sub}: update from config.
33762 2003-10-16 Jim Meyering <jim@meyering.net>
33764 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
33767 2003-10-15 Paul Eggert <eggert@twinsun.com>
33769 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
33770 (SIZE_MAX): Remove.
33771 (new_exclude, add_exclude_file): Initial size no longer needs to
33773 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
33774 our own address arithmetic overflow checking.
33776 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
33777 (fnmatch): Do not alloca more than 2000 wide characters;
33778 instead, use malloc for large buffers.
33779 Check for address arithmetic overflow, and return -1
33780 with errno set to ENOMEM in that case.
33781 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
33782 (NEW_PATTERN): Do not alloca more than 8000 bytes;
33783 instead, return -1. Check for address arithmetic overflow.
33785 2003-10-14 Paul Eggert <eggert@twinsun.com>
33787 Handle invalid suffixes and overflow independently, so that
33788 callers can treat them independently as needed. Fix some bugs in
33789 suffix handling, e.g., "100k@" was not diagnosed as an invalid
33790 suffix for a human-readable blocksize. The major caller-visible
33791 change is the addition of a new
33792 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
33793 that both overflow and suffix chars were found.
33795 * lib/human.c (humblock): Don't check separately for invalid suffix
33796 char; that is xstrtoumax's job (now that its bug is fixed).
33797 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
33798 INTMAX_MAX]: New macros.
33799 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
33800 TYPE_MAXIMUM): New macros.
33801 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
33802 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
33803 if overflow occurs, as it's what __strtol does and it's more useful
33805 (__xstrtol): If __strtol reports some error other than ERANGE,
33806 reflect it to the caller as LONGINT_INVALID. If it reports
33807 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
33808 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
33809 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
33811 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
33812 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
33813 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
33814 [defined UINTMAX_MAX]: New macros.
33816 2003-10-14 Bruno Haible <bruno@clisp.org>
33818 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
33820 2003-10-14 Bruno Haible <bruno@clisp.org>
33822 * m4/sig_atomic_t: New file, from GNU gettext.
33823 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
33825 2003-10-14 Bruno Haible <bruno@clisp.org>
33827 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
33828 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
33829 Also use volatile where needed.
33831 2003-10-12 Paul Eggert <eggert@twinsun.com>
33833 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
33834 Change maintainer from Bruno Haible to 'all'.
33836 2003-10-12 Paul Eggert <eggert@twinsun.com>
33838 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
33840 2003-10-12 Paul Eggert <eggert@twinsun.com>
33842 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
33843 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
33844 and define in terms of the other primitives.
33845 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
33846 (SIZE_MAX): Define if not already defined.
33847 (array_size_overflow): New function.
33848 (xalloc_die): Abort instead of exiting if 'error' returns.
33849 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
33850 (xmalloc, xrealloc): Use them.
33851 (xcalloc): Check for address arithmetic overflow.
33852 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
33853 a bit faster than strcpy.
33855 2003-10-10 Simon Josefsson <jas@extundo.com>
33857 * modules/argp (Depends-on): Add restrict and strcase.
33859 2003-10-10 Simon Josefsson <jas@extundo.com>
33861 * m4/argp.m4: Add AC_C_INLINE.
33863 2003-10-08 Paul Eggert <eggert@twinsun.com>
33865 Merge getpass from libc, plus a few fixes.
33867 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
33868 Include <stdbool.h>.
33869 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
33870 __fsetlocking to empty.
33871 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
33872 do include <bits/libc-lock.h>.
33873 Do not include <fcntl.h>; not needed.
33874 [_LIBC]: Include <wchar.h>.
33875 (NOTCANCEL_MODE): New macro.
33876 (flockfile, funlockfile) [_LIBC]: New macros.
33877 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
33878 [!_LIBC]: New macros.
33879 (call_fclose): New function.
33880 (getpass): Use it. Save tty stream separately; this simplifies the
33881 code and makes it more reliable if stdin happens to equal stdout.
33882 Invoke __fsetlocking on tty.
33883 Handle thread cancellation if needed.
33884 Namespace cleanup (use __tcgetattr, __getline).
33885 Use bool for Booleans.
33886 [USE_IN_LIBIO]: Handle wide streams.
33887 [!_LIBC]: Unconditionally do the fseek, since we don't know what
33888 stream might go where.
33890 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
33891 doesn't have to include <stdio.h> before us.
33892 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
33893 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
33894 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
33895 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
33896 if not declared, so that we can use getpass.c code from libc without
33898 (flockfile, ftrylockfile, funlockfile): New macros.
33900 2003-10-08 Paul Eggert <eggert@twinsun.com>
33902 * modules/getpass: Depend on stdbool.
33904 2003-10-08 Paul Eggert <eggert@twinsun.com>
33906 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
33908 2003-10-07 Karl Berry <karl@gnu.org>
33910 * config/config.{guess,sub}: update from config.
33912 2003-10-06 Jim Meyering <jim@meyering.net>
33913 Bruno Haible <bruno@clisp.org>
33915 This lets translators provide better translations for the
33916 "Written by ..." part of --version output.
33917 * lib/version-etc.h: Include stdarg.h.
33918 (version_etc_copyright): Declare as readonly.
33919 (version_etc): Make this function variadic with a NULL-terminated list
33920 of author name strings.
33921 (version_etc_va): New declaration.
33922 * lib/version-etc.c: Include stdarg.h, stdlib.h.
33923 (version_etc_copyright): Declare as readonly.
33924 (version_etc_va): New function. Provide a different translatable string
33925 for each possible number of authors < 10. Abbreviate when there are 10
33927 (version_etc): Make this function variadic. Call version_etc_va.
33928 Suggestion from Gary V. Vaughan.
33930 * lib/long-options.h (parse_long_options): Change prototype: the
33931 authors string is moved to the end and becomes variadic.
33932 * lib/long-options.c: Include stdarg.h.
33933 (parse_long_options): Make this function variadic, too.
33934 Call version_etc_va, not version_etc.
33936 2003-10-06 Bruno Haible <bruno@clisp.org>
33938 * modules/version-etc-2: Remove file.
33939 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
33941 2003-10-06 Bruno Haible <bruno@clisp.org>
33943 * modules/fatal-signal: New file.
33944 * MODULES.html.sh (func_all_modules): Add fatal-signal.
33946 2003-10-06 Bruno Haible <bruno@clisp.org>
33948 * m4/fatal-signal.m4: New file.
33949 * m4/signalblocking.m4: New file, from GNU gettext.
33951 2003-10-06 Bruno Haible <bruno@clisp.org>
33953 * lib/version-etc-2.h: Remove file.
33954 * lib/version-etc-2.c: Remove file.
33956 2003-10-06 Bruno Haible <bruno@clisp.org>
33958 * lib/fatal-signal.h: New file, from GNU gettext.
33959 * lib/fatal-signal.c: New file, from GNU gettext.
33961 2003-10-05 Paul Eggert <eggert@twinsun.com>
33963 * README: Rework advice for preventing empty .o files.
33964 Don't recommend ELIDE constructs. Recommend <stddef.h>,
33967 2003-10-04 Karl Berry <karl@gnu.org>
33969 * lib/argp*: update from libc.
33971 2003-10-04 Karl Berry <karl@gnu.org>
33973 * config/config.{guess,sub}: update from config.
33975 2003-10-02 Bruno Haible <bruno@clisp.org>
33977 * modules/lchown (Include): Add lchown.h.
33978 * modules/time_r (Include): Use "..." syntax.
33979 * modules/xgetdomainname (Include): Add xgetdomainname.h.
33981 2003-10-01 Simon Josefsson <jas@extundo.com>
33983 * MODULES.html.sh (func_all_modules): Move gethostname from section
33984 'based on' to section 'lacking' POSIX:2001.
33986 2003-10-01 Larry Jones <lawrence.jones@eds.com>
33988 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
33989 to output mode on the same stream.
33991 2003-09-29 Paul Eggert <eggert@twinsun.com>
33993 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
33994 Fix arg typo in previous patch.
33996 2003-09-28 Jim Meyering <jim@meyering.net>
33998 * lib/error.c: Correct cpp indentation.
34000 2003-09-27 Paul Eggert <eggert@twinsun.com>
34002 * modules/free: New file.
34004 2003-09-27 Paul Eggert <eggert@twinsun.com>
34006 * m4/free.m4: New file.
34008 2003-09-27 Paul Eggert <eggert@twinsun.com>
34010 * lib/minmax.h (MIN, MAX)
34011 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34012 Omit the special code that used __typeof__, since we worry that
34013 it could be more trouble than it's worth. See:
34014 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34015 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34017 * lib/free.c: New file.
34019 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
34021 Trivial fixes to Makefile.am parts of module listings.
34022 * modules/strstr: Append strstr.h to lib_SOURCES.
34023 * modules/strcase: Likewise, for strcase.h.
34025 2003-09-27 Karl Berry <karl@gnu.org>
34027 * config/mkinstalldirs: update from automake.
34029 2003-09-26 Paul Eggert <eggert@twinsun.com>
34031 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34032 (error_tail): Do not loop, reallocating temporary buffer, since
34033 the output cannot contain more wide characters than the input
34034 contains bytes, the size must be big enough already. This avoids
34035 one potential size overflow calculation. Check for size overflow
34036 when calculating temporary buffer size. Free temporary buffer
34037 when done, if it was allocated with malloc; this plugs a memory
34038 leak. Remove casts from void * to pointers, that are no longer
34039 needed now that we're assuming C89 or better.
34041 Merge error changes from glibc.
34043 * lib/error.c, error.h: Update copyright notice header to match glibc.
34044 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34045 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34046 Disable cancellation while printing error.
34047 * lib/error.h: Prepend __ to parameter names.
34049 2003-09-26 Jim Meyering <jim@meyering.net>
34051 * lib/error.c (error_tail): Move some declarations
34052 into inner scope where the local variables are used.
34054 2003-09-26 Bruno Haible <bruno@clisp.org>
34056 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34058 Don't define stpncpy through config.h; it's now done through stpncpy.h.
34060 2003-09-26 Bruno Haible <bruno@clisp.org>
34062 * lib/stpncpy.h (gnu_stpncpy): New declaration.
34063 (stpncpy): Define as alias for gnu_stpncpy.
34064 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34066 2003-09-25 Simon Josefsson <jas@extundo.com>
34068 * lib/xgetdomainname.h: New file.
34069 * lib/xgetdomainname.c: New file.
34071 2003-09-25 Simon Josefsson <jas@extundo.com>
34072 Bruno Haible <bruno@clisp.org>
34074 * modules/getdomainname: New file.
34075 * modules/xgetdomainname: New file.
34076 * MODULES.html.sh (func_all_modules): Add getdomainname,
34079 2003-09-25 Simon Josefsson <jas@extundo.com>
34080 Bruno Haible <bruno@clisp.org>
34082 * m4/getdomainname.m4: New file.
34084 2003-09-25 Simon Josefsson <jas@extundo.com>
34085 Bruno Haible <bruno@clisp.org>
34087 * lib/getdomainname.h: New file.
34088 * lib/getdomainname.c: New file.
34090 2003-09-25 Karl Berry <karl@gnu.org>
34092 * lib/argp-fmtstream.c, argp-help.c: update from libc.
34094 2003-09-25 Karl Berry <karl@gnu.org>
34096 * config/install-sh: update from automake.
34098 2003-09-25 Bruno Haible <bruno@clisp.org>
34100 * modules/version-etc-2: New file, from modules/version-etc with
34102 * MODULES.html.sh (func_all_modules): Add version-etc-2.
34104 2003-09-25 Bruno Haible <bruno@clisp.org>
34106 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
34107 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
34109 2003-09-24 Simon Josefsson <jas@extundo.com>
34111 * modules/xgethostname: Add xgethostname.h.
34113 2003-09-24 Paul Eggert <eggert@twinsun.com>
34115 * lib/linebuffer.c (freebuffer): Don't free the argument, just
34116 the buffer associated with the argument. Bug reported by
34119 2003-09-24 Paul Eggert <eggert@twinsun.com>
34121 * README: Document assumptions that 'int' is at least 32 bits
34122 wide, that integer arithmetic is 2's complement without overflow,
34123 that there are no holes in integer values, that adding sizes of
34124 two nonoverlapping objects can't overflow, and that all-bits-zero
34125 yields scalar zero. Fix spelling and capitalization typos.
34127 2003-09-19 Karl Berry <karl@gnu.org>
34129 * lib/argp.h: update from libc.
34131 2003-09-17 Paul Eggert <eggert@twinsun.com>
34133 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
34134 to avoid spurious warnings like "AC_RUN_IFELSE was called before
34135 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
34137 2003-09-17 Paul Eggert <eggert@twinsun.com>
34139 * gnulib-tool: Use "test -h", not "test -L", for portability
34140 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
34141 (tags_regexp): Remove, since \| doesn't conform to POSIX.
34142 (sed_extract_prog): Issue s commands one-by-one, rather than
34143 using \| in one s command.
34145 2003-09-16 Paul Eggert <eggert@twinsun.com>
34147 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
34148 input error, instead of returning NULL the next time we are called
34149 (and therefore losing track of errno).
34151 2003-09-16 Bruno Haible <bruno@clisp.org>
34153 * gnulib-tool (func_create_testdir): Warn about duplicated
34156 2003-09-15 Paul Eggert <eggert@twinsun.com>
34158 * modules/argmatch, modules/fatal, modules/obstack,
34159 modules/xalloc, modules/xgethostname: Sort dependencies by
34160 importance, not alphabetically.
34162 2003-09-15 Paul Eggert <eggert@twinsun.com>
34164 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
34165 fails, so that the caller gets the proper errno.
34167 * lib/readutmp.c (read_utmp): Likewise.
34168 Check for fstat error. Close stream and free storage
34171 2003-09-14 Karl Berry <karl@gnu.org>
34173 * config/srclist.txt (strdup.c): disable for c89 changes.
34175 2003-09-14 Jim Meyering <jim@meyering.net>
34177 * lib/getloadavg.c: Correct cpp indentation.
34178 * lib/strdup.c: Likewise.
34179 * lib/vasnprintf.c: Likewise.
34181 2003-09-14 Bruno Haible <bruno@clisp.org>
34183 * modules/fwriteerror: New file.
34184 * MODULES.html.sh (func_all_modules): Add fwriteerror.
34186 2003-09-14 Bruno Haible <bruno@clisp.org>
34188 * lib/fwriteerror.h: New file.
34189 * lib/fwriteerror.c: New file.
34191 2003-09-12 Paul Eggert <eggert@twinsun.com>
34193 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
34194 modules/xgethostname, modules/xalloc: Depend on exit.
34196 2003-09-12 Paul Eggert <eggert@twinsun.com>
34198 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
34200 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
34201 and AC_MINIX, too, so that their extensions are available.
34203 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
34204 This macro has been superseded by gl_BACKUPFILE.
34206 More patches to assume C89 or better.
34208 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
34210 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
34212 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
34213 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
34214 Include <string.h>, <stdlib.h> unconditionally.
34215 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
34216 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
34217 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
34218 headers or for string.h.
34219 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
34222 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
34224 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
34225 * m4/userspec.m4 (gl_USERSPEC): Likewise.
34226 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
34227 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
34228 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34229 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
34231 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
34232 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
34233 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
34235 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
34236 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
34237 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
34240 2003-09-12 Paul Eggert <eggert@twinsun.com>
34242 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
34243 * lib/obstack.c [!defined _LIBC]: Likewise.
34244 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
34245 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
34246 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
34248 More changes to assume C89 or better.
34250 * lib/error.c (error_tail): Assume vprintf.
34252 * lib/argmatch.c (getenv): Remove decl.
34253 * lib/progreloc.c (get_full_program_name): Define via prototype.
34254 * lib/setenv.c (clearenv): Likewise.
34255 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
34257 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
34258 (malloc, memcpy): Remove decls.
34259 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
34260 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
34261 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34262 (memcpy): Remove macro.
34263 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
34264 (__P): Remove. All uses removed.
34265 (PTR): Remove. All uses changed to void *.
34266 (CHAR_BIT, NULL): Remove.
34267 (spaces, zeros, memset_space, memset_zero)
34268 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
34270 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
34271 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
34272 Define with prototype.
34273 Remove now-unnecessary prototype decl.
34274 (extra_args_spec): Assume ANSI C. All uses changed.
34275 (extra_args_spec_iso): Remove.
34276 (my_strftime, emacs_strftimeu): Define via prototype.
34277 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
34279 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
34280 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
34281 (strtoul, strtol): Remove decls.
34282 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
34284 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34285 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
34286 (LOCALE_PARAM_PROTO): New macro.
34287 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
34288 (INTERNAL (strtol), strtol): Define with a prototype.
34289 (PARAMS): Remove. All uses removed.
34290 * lib/tempname.c: Include <string.h> unconditionally.
34291 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
34292 * lib/xgethostname.c (main): Define with a prototype.
34293 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
34294 Include <stdlib.h> unconditionally.
34295 (calloc, malloc, realloc, free): Remove decls.
34296 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
34297 Include <stdlib.h> unconditionally. Sort include file names.
34299 (xstrtod): Define with a prototype.
34300 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
34301 (strtol, strtoul): Remove decls.
34303 2003-09-11 Paul Eggert <eggert@twinsun.com>
34305 More patches to assume C89 or better.
34306 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
34307 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
34308 string.h, memchr, STDC_HEADERS.
34310 2003-09-11 Paul Eggert <eggert@twinsun.com>
34312 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
34313 Include <stdlib.h>, <string.h> unconditionally.
34314 Remove now-unnecessary cast to char *.
34315 * lib/strnlen.c: Include <string.h> unconditionally.
34316 * lib/yesno.c (yesno): Define with a prototype.
34318 2003-09-11 Bruno Haible <bruno@clisp.org>
34320 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
34322 2003-09-10 Jim Meyering <jim@meyering.net>
34324 * lib/error.c: Correct indentation of cpp directives.
34326 2003-09-10 Bruno Haible <bruno@clisp.org>
34328 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
34329 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
34330 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
34331 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
34332 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
34333 <stdlib.h> and <string.h> checks.
34334 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
34335 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
34337 2003-09-10 Bruno Haible <bruno@clisp.org>
34339 * lib/strcspn.c: Include <string.h> unconditionally.
34340 * lib/strpbrk.c: Include <string.h> unconditionally.
34341 * lib/strstr.c: Include <string.h> unconditionally.
34342 * lib/unicodeio.c: Include <string.h> unconditionally.
34343 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
34344 * lib/unsetenv.c: Likewise.
34345 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
34346 * lib/yesno.c: Include <stdlib.h> unconditionally.
34347 (rpmatch): Add prototype.
34349 2003-09-09 Paul Eggert <eggert@twinsun.com>
34351 More patches to assume C89 or better.
34352 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
34353 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
34354 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
34356 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
34358 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
34360 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
34362 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
34363 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
34364 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
34366 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
34367 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
34369 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
34371 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
34372 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
34373 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
34374 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
34375 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
34376 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
34378 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
34379 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
34380 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
34381 C headers, or for string.h.
34382 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
34383 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
34384 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
34385 headers, memory.h, stdlib.h, string.h, strings.h.
34386 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
34387 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
34388 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
34390 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
34391 headers, memory.h, string.h.
34392 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
34393 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
34395 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
34397 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
34398 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
34399 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
34400 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
34401 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
34403 2003-09-09 Paul Eggert <eggert@twinsun.com>
34407 * lib/acosl.c (main): Use a prototype.
34408 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
34411 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
34413 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
34414 (getopt, etopt_long, getopt_long_only, _getopt_internal)
34415 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
34417 * lib/getopt.c (const): Remove macro.
34418 Include <string.h> unconditionally.
34419 (my_index): Remove; all uses changed to strchr.
34420 (strlen): Remove decl.
34421 (exchange): Remove forward decl; no longer needed.
34422 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
34423 Define with prototype.
34424 * lib/getopt1.c (const): Remove macro.
34425 (getopt_long, getopt_long_only, main): Define with prototype.
34427 * lib/getugroups.c: Include <string.h> unconditionally.
34429 * lib/getusershell.c: Include <stdlib.h> unconditionally.
34430 (getusershell, setusershell, endusershell, readname, main):
34431 Define with prototypes.
34433 * lib/group-member.c: Include group-member.h first.
34434 Include <stdlib.h> unconditionally.
34436 * lib/hard-locale.c: Include hard-locale.h first.
34437 Include <stdlib.h>, <string.h> unconditionally.
34439 * lib/hash.c (free, malloc): Remove decls.
34440 Include <stdlib.h> unconditionally.
34442 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
34443 (getenv): Do not declare.
34445 * lib/idcache.c: Include <string.h> unconditionally.
34447 * lib/long-options.c: Include long-options.h first, to test interface.
34448 Include <stdlib.h> unconditionally.
34450 * lib/makepath.c: Include makepath.h first, to test interface.
34451 Include <stdlib.h> and <string.h> unconditionally.
34453 * lib/linebuffer.c: Include <stdlib.h>.
34454 (free): Remove decl.
34456 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
34457 stddef.h. rpl_malloc returns void *, not char *.
34458 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
34461 * lib/md5.h: Include <limits.h> unconditionally.
34462 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
34463 (__P): Remove; all uses removed.
34464 * lib/md5.c: Include "md5.h" first.
34465 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
34466 md5_buffer, md5_process_bytes, md5_process_block):
34467 Define with prototypes.
34468 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
34469 * lib/sha.c: Include "sha.h" first.
34470 Include <stdlib.h>, <string.h> unconditionally.
34472 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
34473 * lib/memcmp.c (__ptr_t): Likewise.
34474 * lib/memrchr.c (__ptr_t): Likewise.
34475 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
34476 Include <string.h> unconditionally.
34477 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
34478 * lib/memchr.c: Include <stdlib.h> unconditionally.
34479 * lib/memchr.c (LONG_MAX): Remove.
34480 * lib/memrchr.c (LONG_MAX): Likewise.
34481 * lib/memchr.c (__memchr): Define via a prototype.
34482 * lib/memrchr.c (__memrchr): Likewise.
34483 * lib/memcmp.c (__P): Remove, and remove all uses.
34484 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
34485 Remove forward decls; no longer needed.
34486 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
34487 Use types required by C89 in prototype.
34489 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
34490 * lib/savedir.c: Likewise.
34491 * lib/mkdir.c (free): Remove decl.
34492 * lib/rmdir.c (rmdir): Define with a prototype.
34493 * lib/savedir.c: Include savedir.h first, to test interface.
34495 * lib/mktime.c (STDC_HEADERS): Remove.
34496 Include <stdlib.h>, <string.h> unconditionally.
34498 * lib/modechange.c: Include <stdlib.h> unconditionally.
34499 (malloc): Remove decl.
34501 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
34502 (free): Remove decl.
34504 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
34505 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
34506 (This type really should be intptr_t, but that's a C99ism.)
34507 (_obstack_memcpy): Remove: all uses changed to memcpy.
34508 Include <string.h> unconditionally.
34509 (struct obstack): Assume __STDC__ for types of members
34510 chunkfun, freefun, extra_arg.
34511 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
34512 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
34513 obstack_begin, obstack_specify_allocation,
34514 obstack_specify_allocation_with_arg, obstack_chunkfun,
34515 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
34516 Remove unprototyped decls and the macros that use them.
34517 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
34518 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
34519 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
34520 (defined __STDC__ && __STDC__)]:
34521 Remove nonprototyped code.
34522 Include <stdlib.h> unconditionally.
34523 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
34524 _obstack_allocated_p, _obstack_free, obstack_free,
34525 _obstack_memory_used, print_and_abort):
34526 Define using prototypes.
34527 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
34528 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
34529 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
34530 obstack_next_free, obstack_object_size, obstack_room) [0]:
34531 Remove unused, unprototyped code.
34533 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
34535 * lib/physmem.c (physmem_total, physmem_available, main): Define
34538 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
34539 (main): Define with a prototype.
34541 * lib/posixver.c (getenv): Remove decl.
34543 * lib/putenv.c (malloc): Returns void *, not char *.
34544 Include <string.h> unconditionally.
34545 (strchr, memcpy, NULL): Do not define.
34547 * lib/readtokens.c: Include readtokens.h first, to test interface.
34548 Include <stdlib.h>, <string.h> unconditionally.
34549 (init_tokenbuffer): Define with a prototype.
34551 * lib/regex.c (PARAMS): Remove. All uses removed.
34552 All uses of _RE_ARGS removed, too.
34553 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34555 (bzero): Assume memset exists.
34556 (memcmp, memcpy, NULL): Remove.
34557 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
34558 char, or assignments to local vars of type signed char.
34559 (init_syntax_once, PREFIX(extract_number_and_incr),
34560 PREFIX(print_partial_compiled_pattern),
34561 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
34562 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
34563 PREFIX(regex_grow_registers), PREFIX(regex_compile),
34564 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
34565 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
34566 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
34567 wcs_compile_range, byte_compile_range, truncate_wchar,
34568 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
34569 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
34570 count_mbs_length, wcs_re_match_2_internal,
34571 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
34572 PREFIX(alt_match_null_string_p),
34573 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
34574 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
34575 regfree, PREFIX(extract_number)): Define with prototype. Remove
34576 now-unnecessary declaration, if any.
34577 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
34579 Remove now-unnecessary casts among pointer types.
34580 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
34582 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
34583 (free): Remove decl.
34585 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
34587 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
34588 (free): Remove decl.
34590 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
34591 * lib/xgetcwd.c: Likewise.
34593 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
34594 (free): Remove decl.
34596 * lib/strchrnul.c (strchrnul): Define with a prototype.
34597 Fix bug: c_in was not converted to char before searching.
34599 The following changes are not K&R related:
34601 * lib/group-member.h: Include <sys/types.h>, so that this file is
34603 * lib/makepath.h: Likewise.
34605 * lib/getusershell.c (readname, default_index, line_size, readname):
34606 Use size_t, not int, for sizes.
34607 (readname): If the size overflows, report an error instead of
34610 2003-09-09 Paul Eggert <eggert@twinsun.com>
34612 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
34615 2003-09-09 Paul Eggert <eggert@twinsun.com>
34617 * README: New section: portability guidelines.
34619 2003-09-09 Derek Robert Price <derek@ximbiot.com>
34621 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
34624 2003-09-09 Derek Robert Price <derek@ximbiot.com>
34626 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
34628 2003-09-08 Paul Eggert <eggert@twinsun.com>
34630 Assume C89 or better; remove K&R cruft.
34631 A few of these changes were first proposed by Derek Robert Price
34632 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
34634 * lib/addext.c: Include <string.h> unconditionally.
34635 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
34636 Don't declare getenv or malloc.
34638 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
34639 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
34641 (find_stack_direction, alloca): Use prototypes.
34643 * lib/atexit.c (atexit): Define using a prototype.
34645 * lib/basename.c, dirname.c, stripslash.c:
34646 Include <string.h> unconditionally.
34648 * lib/bcopy.c: Include <stddef.h>.
34649 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
34651 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
34653 * lib/error.h (error, error_at_line, error_print_progname)
34654 [! (defined (__STDC__) && __STDC__)]: Remove decls.
34655 * lib/error.c: Include error.h first, to check interface.
34656 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
34657 (VA_START): Remove; all uses changeed to va_start.
34658 (exit, strerror): Remove decls.
34659 (error_print_progname): Prototype uncondionally.
34660 Don't include <errno.h>; no longer needed.
34661 (private_strerror): Remove.
34662 (error_tail): Always define.
34663 (error, error_at_line): Assume C89 or better; always use prototypes.
34664 * lib/fatal.c: Include "fatal.h" first, to test interface.
34665 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
34666 (VA_START): Remove; all uses changed to va_start.
34667 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
34669 (exit): Remove decl.
34670 (fatal): Prototype unconditionally. Assume va_start works.
34671 Abort at end, to pacify gcc.
34673 * lib/euidaccess.c (main): Define with a prototype.
34675 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
34677 * lib/exitfail.c: Include <stdlib.h> unconditionally.
34679 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
34681 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
34682 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
34683 (getenv): Remove decl.
34684 (fnmatch): Define using a prototype.
34685 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
34686 (FCT): Define using a prototype.
34688 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
34690 * lib/gethostname.c: Include <stddef.h>.
34691 (gethostname): Define with prototype. Length is size_t, not int.
34693 2003-09-08 Paul Eggert <eggert@twinsun.com>
34695 Assume C89 or better; remove K&R cruft.
34696 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
34697 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
34698 string.h, getenv, malloc.
34699 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
34701 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
34702 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
34703 do not check for strerror.
34704 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
34705 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
34706 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
34707 do not check for doprnt or vprintf.
34708 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
34709 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
34711 2003-09-08 Paul Eggert <eggert@twinsun.com>
34713 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
34714 getversion.c should have been removed then, but was accidentally
34717 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
34718 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
34720 2003-09-08 Karl Berry <karl@gnu.org>
34722 * config/config.sub, config.guess, srclistvars.sh: update from savannah
34723 config, forget about prep.
34725 * config/depcomp, missing: update from automake.
34727 2003-09-07 Paul Eggert <eggert@twinsun.com>
34729 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
34730 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
34732 2003-09-07 Paul Eggert <eggert@twinsun.com>
34734 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
34735 copy_tm_result. Bug reported by Simon Josefsson in
34736 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
34738 2003-09-06 Paul Eggert <eggert@twinsun.com>
34740 * m4/time_r.m4: New file.
34741 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
34742 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
34743 is. Check for timegm declaration.
34744 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
34745 Do not check for gmtime_r.
34746 Replace mktime if __mktime_internal does not exist and if mktime
34747 hasn't been replaced already.
34749 2003-09-06 Paul Eggert <eggert@twinsun.com>
34751 * lib/time_r.c, lib/time_r.h: New files.
34753 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
34755 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
34756 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
34758 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
34760 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
34761 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
34762 Include <time_r.h>.
34764 * lib/timegm.c: Switch to glibc implementation, with the following
34766 [defined HAVE_CONFIG_H]: Include <config.h>.
34767 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
34768 (__mktime_internal) [!defined _LIBC]: New decl.
34769 (__gmtime_r) [!defined _LIBC]: New macro and function.
34770 (timegm): Use a prototype, since gnulib assumes C89.
34771 Do not bother declaring tmp to be const, as it's not really usefu.
34772 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
34773 (timegm): Declare only if HAVE_DECL_TIMEGM.
34775 2003-09-06 Paul Eggert <eggert@twinsun.com>
34777 * MODULES.html.sh (func_all_modules): Add time_r.
34778 * modules/time_r: New file.
34779 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
34780 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
34782 2003-09-03 Paul Eggert <eggert@twinsun.com>
34784 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
34785 Bug reported by Lute Kamstra in
34786 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
34788 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
34789 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
34790 course with correspondingly smaller numbers for tomorrow and
34791 yesterday. From Tadayoshi Funaba. Originally installed into
34792 sh-utils on 1999-08-07, but the patch got lost (I guess during the
34795 2003-08-31 Simon Josefsson <jas@extundo.com>
34797 * modules/timegm: New file.
34798 * MODULES.html.sh (func_all_modules): Add timegm.
34800 2003-08-31 Simon Josefsson <jas@extundo.com>
34802 * m4/timegm.m4: New file.
34804 2003-08-31 Simon Josefsson <jas@extundo.com>
34806 * lib/timegm.h: New file.
34807 * lib/timegm.c: New file. Based on
34808 wget-1.8.2/src/http.c:mktime_from_utc.
34810 2003-08-31 Karl Berry <karl@gnu.org>
34812 * lib/argp.h: update from libc.
34814 2003-08-28 Bruno Haible <bruno@clisp.org>
34816 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
34817 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
34818 followed by '#define fnmatch fnmatch_posix' gives an error.
34820 2003-08-28 Bruno Haible <bruno@clisp.org>
34822 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
34823 warning on QNX, which defines O_BINARY to 000000.
34825 2003-08-27 Jim Meyering <jim@meyering.net>
34827 * m4/mkstemp.m4: Require that the system mkstemp be able to create
34828 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
34829 would fail after 32. Reported by Danny Levinson. Details here:
34830 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
34832 2003-08-24 Bruno Haible <bruno@clisp.org>
34834 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
34835 MSVC7 <stdio.h> is included later.
34837 2003-08-22 Simon Josefsson <jas@extundo.com>
34839 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
34841 2003-08-20 Karl Berry <karl@gnu.org>
34843 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
34845 2003-08-20 Bruno Haible <bruno@clisp.org>
34847 * modules/progname: New file.
34848 * MODULES.html.sh (func_all_modules): Add progname.
34850 2003-08-20 Bruno Haible <bruno@clisp.org>
34852 * lib/progname.h: New file, from GNU gettext.
34853 * lib/progname.c: New file, from GNU gettext.
34854 * lib/progreloc.c: New file, from GNU gettext.
34856 2003-08-19 Jim Meyering <jim@meyering.net>
34858 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
34859 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
34861 2003-08-19 Bruno Haible <bruno@clisp.org>
34863 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
34866 2003-08-19 Bruno Haible <bruno@clisp.org>
34868 * lib/xstrdup.c: Assume <string.h> exists.
34870 2003-08-18 Paul Eggert <eggert@twinsun.com>
34872 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
34875 2003-08-18 Jim Meyering <jim@meyering.net>
34877 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
34878 * m4/lib-ld.m4: Likewise.
34880 2003-08-18 Jim Meyering <jim@meyering.net>
34882 * lib/setenv.h: Indent nested cpp directive.
34883 * lib/vasnprintf.c: Remove trailing blanks.
34885 2003-08-17 Simon Josefsson <jas@extundo.com>
34887 * modules/xstrndup: New file.
34888 * MODULES.html.sh (func_all_modules): Add xstrndup.
34890 2003-08-17 Simon Josefsson <jas@extundo.com>
34892 * modules/argp: Fix autoconf macro name. Add more dependencies.
34894 2003-08-17 Simon Josefsson <jas@extundo.com>
34896 * m4/xstrndup.m4: New file.
34898 2003-08-17 Simon Josefsson <jas@extundo.com>
34900 * m4/argp.m4: New file.
34902 2003-08-17 Simon Josefsson <jas@extundo.com>
34903 Bruno Haible <bruno@clisp.org>
34905 * lib/xstrndup.h: New file.
34906 * lib/xstrndup.c: New file.
34908 2003-08-17 Bruno Haible <bruno@clisp.org>
34910 * modules/strndup (Files, Include): Add lib/strndup.h.
34912 2003-08-17 Bruno Haible <bruno@clisp.org>
34914 * modules/euidaccess (Files): Add lib/euidaccess.h.
34916 2003-08-17 Bruno Haible <bruno@clisp.org>
34918 * lib/strndup.h: New file.
34920 2003-08-17 Bruno Haible <bruno@clisp.org>
34922 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
34923 like AC_GNU_SOURCE.
34924 * modules/extensions (configure.ac): Comment out the invocation of
34925 gl_USE_SYSTEM_EXTENSIONS.
34927 2003-08-16 Paul Eggert <eggert@twinsun.com>
34929 Merges from coreutils, etc.
34930 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
34931 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
34932 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
34934 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
34935 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
34937 2003-08-16 Paul Eggert <eggert@twinsun.com>
34939 Document merge from coreutils.
34940 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
34941 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
34942 * modules/utime: Add m4/utimes-null.m4.
34944 2003-08-16 Paul Eggert <eggert@twinsun.com>
34946 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
34947 space, undoing this 2003-08-12 change:
34948 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
34950 2003-08-16 Paul Eggert <eggert@twinsun.com>
34952 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
34953 strtoul.c from libc, undoing this 2003-08-12 change:
34954 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
34956 2003-08-16 Jim Meyering <jim@meyering.net>
34958 Merges from coreutils.
34959 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
34960 prefix. Adjust cache variables similarly. Create 500 rather than
34961 just 300 files, to exercise bug on Darwin6.5, too.
34962 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
34964 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
34965 AM_SYS_POSIX_TERMIOS.
34966 Reported by mkc@mathdogs.com.
34967 Also change use of $am_cv_sys_posix_termios
34968 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
34969 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
34970 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
34971 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
34972 in /proc/mounts until it finds one with matching device number. This
34973 is unnecessary when the FILE argument *is* a mount point. No stat call
34974 is necessary in that case. So, disable the statvfs-testing code on
34975 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
34976 as RedHat bug# 84846.
34977 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
34978 to 1MB, so as not to render systems with no stack size limit (e.g.,
34979 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
34980 Include <unistd.h>. On some systems,
34981 it is required for the definition of _SC_PAGESIZE.
34983 2003-08-16 Jim Meyering <jim@meyering.net>
34985 Merge from coreutils.
34986 * lib/xstrtoimax.c: #else #if -> #elif.
34987 * lib/xstrtoumax.c: Likewise.
34989 2003-08-16 Jim Meyering <jim@meyering.net>
34991 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
34992 * m4/utimes.m4: Removed.
34993 * m4/utimes-null.m4: Renamed from utimes.m4.
34995 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
34996 to 1MB, so as not to render systems with no stack size limit (e.g.,
34997 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
34998 Include <unistd.h>. On some systems,
34999 it is required for the definition of _SC_PAGESIZE.
35001 2003-08-16 Jim Meyering <jim@meyering.net>
35002 and Paul Eggert <eggert@cs.ucla.edu>
35004 Merges from coreutils, etc.
35006 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35007 using the latest version from cvs. This avoids problems with #line
35008 directives using a vendor (Sun) compiler.
35009 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35010 Don't set GETGROUPS_LIB here; now it's
35011 done via getgroups.m4's wrapper function.
35012 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35013 rather than just in sh-util/configure.in, so that the
35014 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35016 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35017 AC_FUNC_GETLOADAVG where to find getloadavg.c.
35018 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35019 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35020 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35021 Remove code that is now done by the newly-required macros.
35022 Append $(EXEEXT) to DF_PROG.
35023 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35024 Do not invoke or require the following here,
35025 since prereq.m4 or some gnulib .m4 now does this for us:
35026 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35027 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35028 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35029 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35030 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35031 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35032 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35034 Do not replace the following functions, as this is now the job
35035 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35036 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35037 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35038 atexit getpass, strdup, getpagesize.
35040 Do not check for the following functions, as this is now the job
35041 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35042 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
35044 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35045 Check for sys/sysctl.h.
35046 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35047 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
35048 of checking for ssize_t ourselves.
35050 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35051 Require every macro that gnulib/modules/* suggests for us.
35052 (jm_PREREQ_ADDEXT): New macro.
35053 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35054 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35056 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35057 (gl_PHYSMEM): Use it.
35058 Also check for `table' function.
35059 Check for new headers and functions.
35060 Add check for sys/sysmp.h.
35061 With suggestions from Kaveh Ghazi.
35062 Ignore headers that are present but cannot be compiled. This
35063 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35066 2003-08-15 Paul Eggert <eggert@twinsun.com>
35068 Document merge from coreutils.
35069 * modules/userspec: Depend on posixver.
35070 * modules/strftime: Depend on tzset.
35072 2003-08-15 Paul Eggert <eggert@twinsun.com>
35074 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35075 rather than tab, after '#' in shell-script copyright notices.
35076 Suggested by Bruno Haible.
35078 2003-08-15 Paul Eggert <eggert@twinsun.com>
35080 * config/srclist-update: Use three spaces, rather than tab, after '#'
35081 in shell-script copyright notices. Suggested by Bruno Haible.
35082 Remove unnecessary parenthesization in regular expression.
35084 2003-08-15 Jim Meyering <jim@meyering.net>
35086 Merge from coreutils.
35087 * lib/xgethostname.c: Include <stdlib.h>.
35088 (xghostname): Don't exit for anything other than memory-related
35089 failure; just return NULL.
35090 * lib/userspec.c: Include "posixver.h".
35091 (parse_user_spec): Accept `.' as a separator only
35092 in pre-POSIX-200112 mode.
35093 * lib/strtoimax.c: Use #elif rather than #else #if.
35094 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35095 Remove function, now that we can rely on a working tzset function.
35096 [!_LIBC]: Ensure that the required autoconf test has been run.
35097 [!defined _NL_CURRENT && HAVE_STRFTIME]:
35098 Use underlying_strftime for %r.
35099 * lib/sha.c: Merge in some clean-up and optimization changes from
35101 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
35102 Ensure that it is a multiple of 64.
35103 Rearrange loop exit tests so as to avoid performing an
35104 additional fread after encountering an error or EOF.
35105 * lib/realloc.c: Update copyright date.
35107 2003-08-15 Jim Meyering <jim@meyering.net>
35108 and Paul Eggert <eggert@twinsun.com>
35110 Merge from coreutils.
35111 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
35112 member but strut utmpx does not. Needed for AIX 4.3.3.
35113 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
35115 2003-08-15 Jim Meyering <jim@meyering.net>
35116 and Paul Eggert <eggert@cs.ucla.edu>
35118 Merges from coreutils, etc.
35119 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
35120 Require gl_FUNC_TZSET_CLOBBER.
35121 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
35122 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
35125 2003-08-14 Paul Eggert <eggert@twinsun.com>
35127 Help the merge from coreutils.
35128 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
35129 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
35130 * m4/tzset.m4: Use it too.
35132 2003-08-14 Paul Eggert <eggert@twinsun.com>
35134 * modules/tzset: New file.
35136 2003-08-14 Jim Meyering <jim@meyering.net>
35138 Merges from coreutils.
35139 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
35140 variable names, rather than @FNMATCH_H@.
35141 * modules/alloca: Likewise for $(ALLOCA_H).
35143 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
35144 the three copies of the literal target, `fnmatch.h'.
35145 * modules/alloca (alloca.h): Likewise.
35147 2003-08-14 Jim Meyering <jim@meyering.net>
35149 Merge from coreutils.
35150 * m4/tzset.m4: New file.
35151 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
35152 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
35153 otherwise, AIX 5.1 systems would end up using the latter.
35154 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
35155 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
35156 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
35157 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
35159 2003-08-14 Jim Meyering <jim@meyering.net>
35161 Merge from coreutils.
35162 * lib/obstack.h: Whitespace changes.
35163 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
35164 and xcalloc return values.
35165 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
35166 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
35167 hang on OSF/1 5.1 for DIR on both local and remote file systems.
35168 Reported by (and fix confirmed by) Nelson H. F. Beebe.
35169 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35171 Use mntctl's return value to drive the entry-processing loop, since
35172 we can't rely on the value of the vmt_length member in the last
35173 entry. On some systems doing so could result in exhausting
35174 virtual memory. Based in part on a patch from Mike Jetzer.
35176 2003-08-14 Jim Meyering <jim@meyering.net>
35177 and Paul Eggert <eggert@twinsun.com>
35179 Merges from coreutils, plus other fixes.
35180 * lib/physmem.c: Merge in portability changes from gcc/libiberty
35181 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
35182 for credits and details. Thanks to Kaveh Ghazi for helping
35183 to keep these files in sync.
35184 (ARRAY_SIZE): Define it.
35185 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
35186 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
35187 (memcasecmp): Don't assume size_t fits in unsigned int.
35188 Remove casts and duplicate code.
35189 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
35190 (memcpy): Remove definition.
35191 Merge in some clean-up and optimization changes from glibc.
35192 [BLOCKSIZE]: Move definition to top of file.
35193 Ensure that it is a multiple of 64.
35194 Rearrange loop exit tests so as to avoid performing an
35195 additional fread after encountering an error or EOF.
35196 * lib/md5.h (md5_uintptr): Define.
35197 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
35198 return to the initial working directory. Preserve errno
35200 * lib/idcache.c: Include "xalloc.h".
35201 (xmalloc, xrealloc): Remove decls.
35202 (getuser): Remove casts no longer required in C89.
35203 * lib/human.c: Include stdio.h, for sprintf.
35204 * lib/group-member.c: Include "xalloc.h".
35205 (xmalloc, xrealloc): Remove decls.
35206 (get_group_info): Remove casts no longer required in C89.
35207 * lib/getusershell.c (readname): Remove casts no longer required in
35209 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
35210 * lib/getline.c: Whitespace fix, from coreutils.
35212 2003-08-13 Paul Eggert <eggert@twinsun.com>
35214 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
35217 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35218 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35219 Undo previous (whitespace-only) change.
35221 2003-08-13 Paul Eggert <eggert@twinsun.com>
35223 * lib/exclude.c: Include <ctype.h>
35224 (IN_CTYPE_DOMAIN): New macro.
35225 (is_space): New fn.
35226 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
35229 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35230 Undo previous (whitespace-only) change.
35232 2003-08-13 Paul Eggert <eggert@twinsun.com>
35234 * config/srclist-update: Change update back to the old behavior,
35235 leaving whitespace alone. Use one 'sed' command rather than a
35237 (fixlicense): Now a variable, not a function.
35238 (remove_trailing_blanks): Remove.
35239 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
35240 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35241 Undo previous (whitespace-only) change.
35243 2003-08-12 Paul Eggert <eggert@twinsun.com>
35245 Merge from coreutils.
35246 * modules/euidaccess: Add lib_SOURCES, include for new
35249 2003-08-12 Paul Eggert <eggert@twinsun.com>
35251 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35252 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35253 Normalize leading white space and remove trailing white space.
35255 Merge from coreutils
35256 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
35258 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
35259 0.12.1. These files are now being upgraded automatically by
35260 ../config/srclist-update.
35262 2003-08-12 Paul Eggert <eggert@twinsun.com>
35264 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35265 Normalize leading white space and remove trailing white space.
35266 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
35267 notice, as per ../config/srclist-update.
35269 Merge from coreutils.
35270 * lib/euidaccess.h: New file.
35271 * lib/euidaccess.c: Include it.
35272 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
35273 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
35274 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
35276 2003-08-12 Paul Eggert <eggert@twinsun.com>
35278 * config/srclist-update: Add copyright notice.
35279 (remove_id_lines, remove_trailing_blanks): New constants.
35280 (fixfile): Use them to normalize spacing a bit in copied files.
35281 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35282 Normalize leading white space and remove trailing white space.
35284 * config/texinfo.tex: Sync with texinfo.
35286 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
35287 strtoul.c from libc, to merge coreutils whitespace changes.
35289 * config/srclist.txt: Get the following m4 files from gettext:
35290 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
35291 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
35292 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
35295 2003-08-12 Karl Berry <karl@gnu.org>
35297 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
35300 2003-08-11 Paul Eggert <eggert@twinsun.com>
35302 * modules/gnu-source, m4/gnu-source.m4:
35303 Remove; we're assuming Autoconf 2.54 or later now.
35304 Suggested by Bruno Haible.
35305 * MODULES.html.sh (func_all_modules): Remove gnu-source.
35307 2003-08-11 Bruno Haible <bruno@clisp.org>
35309 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
35311 2003-08-11 Bruno Haible <bruno@clisp.org>
35313 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
35314 (vasnprintf): Use it instead of wcslen.
35316 2003-08-11 Bruno Haible <bruno@clisp.org>
35318 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
35319 value to ensure that _Bool promotes to int. Use #define for _Bool when
35320 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
35322 2003-08-10 Karl Berry <karl@gnu.org>
35324 * lib/regex.h: update from libc (whitespace fix).
35326 2003-08-09 Paul Eggert <eggert@twinsun.com>
35328 Merge some files from coreutils. These changes were
35329 originally made by Jim Meyering.
35330 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
35331 many older Unixes require this.
35332 * lib/alloca.c (alloca): Remove cast to argument of free;
35333 no longer needed in C89.
35334 * lib/alloca_.h, regex.h: Fix white space to match
35335 what GNU indent does.
35337 2003-08-09 Paul Eggert <eggert@twinsun.com>
35339 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
35340 apparently Emacs's Unicode mode got confused before my 2003-08-05
35343 2003-08-08 Paul Eggert <eggert@twinsun.com>
35345 * m4/extensions.m4: New file.
35346 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
35347 Require gl_USE_SYSTEM_EXTENSIONS.
35348 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
35349 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
35351 2003-08-08 Paul Eggert <eggert@twinsun.com>
35353 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
35354 * modules/extensions, modules/gnu-source: New files.
35355 * modules/timespec, modules/unlocked-io: Depend on extensions.
35357 2003-08-07 Paul Eggert <eggert@twinsun.com>
35359 * modules/restrict: New file.
35360 * MODULES.html.sh (func_all_modules): Add restrict.
35361 * modules/regex: Depend on restrict.
35363 2003-08-07 Paul Eggert <eggert@twinsun.com>
35365 * m4/restrict.m4: New file.
35366 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
35368 2003-08-07 Bruno Haible <bruno@clisp.org>
35370 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
35371 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
35373 2003-08-07 Bruno Haible <bruno@clisp.org>
35375 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
35376 makes the module 'getndelim2' compatible with the module 'getline'.
35378 2003-08-05 Paul Eggert <eggert@twinsun.com>
35380 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
35381 byte with "\201" to avoid glitches when editing that source file
35382 with multi-gnome-terminal.
35384 2003-08-05 Paul Eggert <eggert@twinsun.com>
35386 * lib/bumpalloc.h: Remove.
35388 2003-08-05 Paul Eggert <eggert@twinsun.com>
35390 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
35391 * modules/bumpalloc: Remove.
35393 2003-08-04 Paul Eggert <eggert@twinsun.com>
35395 * lib/getloadavg.c: Change copyright notice and spacing to conform to
35398 Merge from coreutils.
35399 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
35401 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
35402 from Karl Berry, implemented by Jim Meyering.
35403 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
35404 from Dmitry V. Levin.
35405 Remove anachronistic cast of xrealloc.
35406 * lib/fnmatch_.h (__const): Remove. Use 'const'.
35407 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
35408 type. Otherwise, it wouldn't compile with at least /bin/cc on
35409 ymp-cray-unicos9.0.2.X.
35410 Combine two mostly-identical uses of alloca into one.
35411 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
35413 2003-08-04 Dave Love <d.love@dl.ac.uk>
35417 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
35418 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
35419 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
35420 obsolete NLIST_NAME_UNION.
35421 [__GNU__]: Undef BSD and FSCALE.
35422 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
35424 2003-08-03 Paul Eggert <eggert@twinsun.com>
35426 * lib/stdbool_.h (_Bool): Make it signed char, instead of
35427 an enum type, so that it's guaranteed to promote to int. See:
35428 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
35430 2003-08-03 Karl Berry <karl@gnu.org>
35432 * config/depcomp: update from automake.
35434 2003-07-31 Paul Eggert <eggert@twinsun.com>
35436 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
35437 (strerror): Don't assume that a printable int fits in 14 bytes.
35439 2003-07-31 Bruno Haible <bruno@clisp.org>
35441 * modules/getpass-gnu: New file.
35442 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
35444 2003-07-31 Bruno Haible <bruno@clisp.org>
35446 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
35448 2003-07-24 Karl Berry <karl@gnu.org>
35450 * config/missing: update from automake.
35452 2003-07-24 Derek Robert Price <derek@ximbiot.com>
35453 Bruno Haible <bruno@clisp.org>
35455 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
35456 * lib/getline.c (getline, getdelim): Likewise.
35457 Remove _GNU_SOURCE define; now it's defined in config.h through
35460 2003-07-23 Karl Berry <karl@gnu.org>
35462 * config/config.sub: update from prep.
35464 2003-07-22 Paul Eggert <eggert@twinsun.com>
35466 * modules/xalloc (Depends-on): Add exitfail.
35467 * modules/xmemcoll: Likewise.
35469 2003-07-22 Paul Eggert <eggert@twinsun.com>
35471 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
35472 over-parenthesization in macros.
35474 Sync with coreutils.
35476 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
35479 Use `exit_failure' for xalloc and xmemcoll instead of their own
35480 private exit-failure variables.
35481 * lib/xalloc.h (xalloc_exit_failure): Remove.
35482 * lib/xmalloc.c: Likewise. Include exitfail.h.
35483 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
35484 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
35485 * lib/xmemcoll.c: Likewise. Include exitfail.h.
35486 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
35488 2003-07-20 Jim Meyering <jim@meyering.net>
35490 * modules/closeout (Depends-on): Add exitfail.
35491 Suggestion from Bruno Haible.
35493 2003-07-19 Karl Berry <karl@gnu.org>
35495 * config/config.sub: update from prep.
35497 2003-07-18 Paul Eggert <eggert@twinsun.com>
35499 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
35501 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
35502 to test that it can stand by itself. Include "exitfail.h".
35503 Clients should set exit_failure instead.
35504 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
35506 2003-07-18 Bruno Haible <bruno@clisp.org>
35508 * modules/getndelim2: New file.
35509 * modules/getline: Share files with module getndelim2.
35510 * modules/getnline: Depend on getndelim2 instead of sharing files with
35511 it. Add getnline.c to lib_SOURCES.
35512 * MODULES.html.sh (func_all_modules): Add getndelim2.
35514 2003-07-18 Bruno Haible <bruno@clisp.org>
35516 * m4/getndelim2.m4: New file.
35517 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
35518 invoke gl_PREREQ_GETNDELIM2.
35519 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
35520 gl_PREREQ_GETNDELIM2.
35521 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
35524 2003-07-18 Bruno Haible <bruno@clisp.org>
35526 * lib/getndelim2.h: New file.
35527 * lib/getndelim2.c: Make into a module of its own. Include config.h,
35529 (getndelim2): Make non-static. Change return type to ssize_t.
35530 * lib/getline.h: Change argument names.
35531 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
35532 * lib/getnline.c: Include getndelim2.h.
35534 2003-07-18 Andreas Schwab <schwab@suse.de>
35536 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
35538 2003-07-17 Karl Berry <karl@gnu.org>
35540 * config/config.sub: update from prep.
35542 2003-07-17 Bruno Haible <bruno@clisp.org>
35544 * modules/getnline: New file.
35545 * modules/getline: Add lib/getndelim2.c to source file list.
35546 * MODULES.html.sh (func_all_modules): Add getnline.
35548 2003-07-17 Bruno Haible <bruno@clisp.org>
35550 * m4/getnline.m4: New file.
35552 2003-07-17 Bruno Haible <bruno@clisp.org>
35554 * m4/Makefile.am.in: Remove file.
35555 * m4/Makefile.am: Remove file.
35556 * m4/Makefile.in: Remove file.
35558 2003-07-17 Bruno Haible <bruno@clisp.org>
35560 * lib/getnline.h: New file.
35561 * lib/getnline.c: New file.
35562 * lib/getndelim2.c: New file, extracted from getline.c.
35563 (getndelim2): Renamed from getdelim2, with added nmax argument.
35564 * lib/getline.c: Include getndelim2.c.
35565 (getdelim2): Moved out to getndelim2.c.
35566 (getline, getdelim): Update.
35568 2003-07-17 Bruno Haible <bruno@clisp.org>
35570 * lib/Makefile.am: Remove file.
35571 * lib/Makefile.in: Remove file.
35573 2003-07-17 Bruno Haible <bruno@clisp.org>
35575 * configure.in: Remove file.
35576 * Makefile.in: Remove file.
35578 2003-07-17 Bruno Haible <bruno@clisp.org>
35580 * MODULES.html.sh: Put the </BODY> right before </HTML>.
35582 2003-07-16 Karl Berry <karl@gnu.org>
35584 * config/srclist-update: was running fixlicense twice, which caused
35585 texinfo.tex to be nullified for some reason. Simplify,
35586 $gplsrc is no longer needed as far as I can see?
35588 2003-07-16 Jim Meyering <jim@meyering.net>
35590 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
35592 2003-07-15 Paul Eggert <eggert@twinsun.com>
35594 * config/srclist.txt: Get the following files from gettext-runtime/intl
35595 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
35596 ref-del.sin. From Bruno Haible.
35597 * config/srclist-update (fixfile): Change grep pattern again, since the
35598 previous fix didn't work (there was another trailing $). Use
35599 '[$]' to escape the $s.
35601 2003-07-15 Karl Berry <karl@gnu.org>
35603 * lib/vasnprintf.c: update from gettext.
35605 2003-07-15 Karl Berry <karl@gnu.org>
35607 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
35608 gets expanded when surrounded by '$'.
35610 2003-07-15 Jim Meyering <jim@meyering.net>
35612 * modules/save-cwd: Don't depend on error. From Derek Price.
35614 2003-07-15 Jim Meyering <jim@meyering.net>
35616 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
35618 2003-07-14 Simon Josefsson <jas@extundo.com>
35620 * modules/mempcpy: New file.
35621 * MODULES.html.sh (func_all_modules): Add mempcpy.
35623 2003-07-14 Simon Josefsson <jas@extundo.com>
35625 * m4/mempcpy.m4: New file.
35627 2003-07-14 Simon Josefsson <jas@extundo.com>
35629 * lib/mempcpy.h: New file.
35630 * lib/mempcpy.c: New file.
35632 2003-07-14 Paul Eggert <eggert@twinsun.com>
35634 * modules/getdate, modules/posixtm: Depend on mktime.
35636 2003-07-14 Paul Eggert <eggert@twinsun.com>
35638 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
35639 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
35640 unicodeio.c, unicodeio.h, unlocked-io.h:
35641 Switch from LGPL to GPL.
35643 2003-07-14 Paul Eggert <eggert@twinsun.com>
35645 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
35646 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
35647 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
35648 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
35649 vasprintf.c, vasprintf.h: Regenerate. These files are now being
35650 updated automatically by ../config/srclist-update. This changes
35651 their license from LPGL to GPL.
35653 2003-07-14 Paul Eggert <eggert@twinsun.com>
35655 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
35656 assumed to refer to the root of the most recent stable gettext version.
35657 * config/srclistvars.sh: Add defaults for eggert.
35658 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
35659 Match "This program" as well as "The program". This is needed
35662 2003-07-14 Jim Meyering <jim@meyering.net>
35664 Don't emit diagnostics. Let callers do that.
35665 * lib/save-cwd.c: Don't include "error.h".
35666 (save_cwd): Don't call error. Ensure that errno is valid
35667 when returning nonzero.
35669 * lib/save-cwd.h (restore_cwd): Update prototype.
35670 * lib/save-cwd.c (restore_cwd): Remove two parameters.
35671 Simplify. Don't call error upon failure. Let callers do that.
35672 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
35673 when auditing is enabled. But don't bother updating the #if.
35675 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
35677 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
35678 it breaks C++ compilation.
35679 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
35681 2003-07-10 Simon Josefsson <jas@extundo.com>
35683 * modules/strchrnul (Makefile.am): Add strchrnul.h.
35685 2003-07-10 Jim Meyering <jim@meyering.net>
35687 * m4/clock_time.m4: Remove trailing blank.
35688 * m4/intmax_t.m4: Likewise.
35690 2003-07-10 Jim Meyering <jim@meyering.net>
35692 * lib/vasnprintf.c: Remove trailing blanks.
35693 Make cpp indentation consistent.
35695 2003-07-09 Paul Eggert <eggert@twinsun.com>
35697 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
35698 posixver.c, strftime.c, strnlen.c, strverscmp.c:
35699 Switch from LGPL to GPL.
35701 2003-07-09 Paul Eggert <eggert@twinsun.com>
35703 * config/srclist.txt: Sort sublists. Add
35704 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
35705 that differ from gnulib for one reason or another; we'd like this list
35706 to be smaller but for now let's document what we have.
35708 2003-07-08 Paul Eggert <eggert@twinsun.com>
35710 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
35711 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
35712 and sweeter "eval x=$x".
35713 * config/srclist.txt: Get lib/argp* from glibc.
35715 2003-07-07 Paul Eggert <eggert@twinsun.com>
35717 * lib/mktime.c: Fix some boundary cases and remove need for floating
35720 Issue a compile-time diagnostic if time_t is floating point, or if
35721 two's complement arithmetic is not in effect, or if arithmetic
35722 right shift does not propagate the sign. These assumptions were
35723 all in the original code but they weren't checked.
35725 (TIME_T_MIDPOINT, verify): New macros.
35726 (__isleap): Remove; it has integer overflow problems.
35727 (leapyear): New function, without those problems.
35728 (ydhms_tm_diff): Remove; splitting into two parts.
35729 (ydhms_diff): New function, containing the arithmetic part of
35730 the old ydhms_tm_diff function. Issue a compile-time
35731 diagnostic if we are not using C99 integer division.
35732 Avoid casts when possible.
35733 (guess_time_tm): New function, containing the checking part of
35734 the old ydhms_tm_diff function. Return the new value, rather than
35735 the difference between it and the old. Accept a new argument T
35736 so that *T specifies the old value. Check for overflow in the result.
35738 (__mktime_internal): Use a time_t offset, not a long int offset.
35739 This undoes the 2003-06-04 change, which is no longer needed now
35740 that we have better overflow checking.
35741 (localtime_offset): Likewise.
35743 (__mktime_internal): Avoid harmful overflow on hosts where time_t
35744 and long are 64-bit but int is only 32-bit.
35745 (ydhms_diff): Use long int to store year1 and yday1.
35746 Issue a compile-time diagnostic if long int is not wide enough.
35748 (__mktime_internal): Use long int to store adjusted year and yday.
35749 Use plain C rather than preprocessor commands, if that doesn't
35751 Check for overflow (and try to repair) after each probe
35752 rather than checking only at the very end. This avoids some bugs
35753 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
35754 does not equal GMT offset at maximum time).
35755 Use integer to check for overflow rather than floating point; this
35756 is more portable to non-IEEE hosts, and is a tad faster.
35757 When we detect that we are oscillating between two values,
35758 don't check whether tm_isdst has the requested value, since
35759 we already know the answer. When tm_isdst has the wrong value,
35760 use a different heuristic to find the right one, based on the
35761 extreme values actually observed in practice in tz2003a,
35762 rather than the (overly optimistic) "previous 3 calendar quarters".
35764 (not_equal_tm, print_tm, check_result): Use "const T" rather than
35765 "T const" to accommodate glibc style.
35766 (check_result): Use less-confusing report format. "long" -> "long int.
35768 Don't loop if the iteration overflows time_t.
35769 Allow a negative step in the iteration.
35771 2003-07-06 Karl Berry <karl@gnu.org>
35773 * config/depcomp: update from automake.
35774 * config/config.sub: update from prep.
35776 2003-07-03 Karl Berry <karl@gnu.org>
35778 * config/config.guess: update from prep.
35780 2003-07-01 Paul Eggert <eggert@twinsun.com>
35782 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
35783 xreadlink.c now includes it unconditionally.
35785 2003-07-01 Paul Eggert <eggert@twinsun.com>
35787 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
35788 having it depend on HAVE_SYS_TYPES_H.
35790 2003-07-01 Bruno Haible <bruno@clisp.org>
35792 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
35793 <sys/types.h> should be sufficient.
35794 Reported by Paul Eggert.
35796 2003-06-26 Karl Berry <karl@gnu.org>
35798 * config/depcomp: update from automake.
35800 2003-06-26 Bruno Haible <bruno@clisp.org>
35802 * modules/human: Depend on module stdbool.
35804 2003-06-25 Bruno Haible <bruno@clisp.org>
35806 * modules/readlink: New file.
35807 * modules/xreadlink: Depend on it.
35808 * MODULES.html.sh (func_all_modules): Add readlink.
35810 2003-06-25 Bruno Haible <bruno@clisp.org>
35812 * m4/readlink.m4: New file.
35814 2003-06-25 Bruno Haible <bruno@clisp.org>
35816 * lib/readlink.c: New file.
35818 2003-06-22 Karl Berry <karl@gnu.org>
35820 * config/srclist.txt: update mkinstalldirs from automake.
35821 * config/mkinstalldirs: update.
35823 2003-06-22 Bruno Haible <bruno@clisp.org>
35825 Portability to mingw32.
35826 * m4/ssize_t.m4: New file, from GNU gettext.
35827 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
35828 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
35830 2003-06-22 Bruno Haible <bruno@clisp.org>
35832 * modules/safe-read: Add m4/ssize_t.m4.
35833 * modules/xreadlink: Add m4/ssize_t.m4.
35835 2003-06-20 Bruno Haible <bruno@clisp.org>
35837 Assume C89, so PARAMS isn't needed.
35838 * lib/unicodeio.h (PARAMS): Remove.
35839 * lib/unicodeio.c: Don't use PARAMS.
35841 2003-06-18 Karl Berry <karl@gnu.org>
35843 * config/config.{guess,sub}: update from prep.
35845 2003-06-18 Jim Meyering <jim@meyering.net>
35847 Merge changes from coreutils.
35848 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
35849 Remove explicit declarations of xmalloc and realloc.
35851 (read_utmp): Remove anachronistic cast of xmalloc.
35853 2003-06-17 Paul Eggert <eggert@twinsun.com>
35855 Assume C89, so PARAMS isn't needed.
35856 * lib/backupfile.h (PARAMS): Remove. All uses removed.
35857 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
35858 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
35859 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
35860 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
35861 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
35862 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
35863 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
35864 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
35865 lib/xstrtod.h, lib/xstrtol.h: Likewise.
35866 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
35867 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
35868 no longer needed. Anyway, config.h should always be included before any
35871 2003-06-11 Simon Josefsson <jas@extundo.com>
35873 * modules/sysexits: New file.
35874 * MODULES.html.sh (func_all_modules): Add sysexits.
35876 2003-06-11 Simon Josefsson <jas@extundo.com>
35878 * lib/sysexit_.h: New file.
35880 2003-06-11 Derek Price <derek@ximbiot.com>
35882 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
35885 2003-06-11 Bruno Haible <bruno@clisp.org>
35887 * m4/sysexits.m4: New file.
35889 2003-06-10 Simon Josefsson <jas@extundo.com>
35891 * lib/argp.h: New file, from glibc.
35892 * lib/argp-ba.c: New file, from glibc.
35893 * lib/argp-eexst.c: New file, from glibc.
35894 * lib/argp-fmtstream.c: New file, from glibc.
35895 * lib/argp-fmtstream.h: New file, from glibc.
35896 * lib/argp-fs-xinl.c: New file, from glibc.
35897 * lib/argp-help.c: New file, from glibc.
35898 * lib/argp-namefrob.h: New file, from glibc.
35899 * lib/argp-parse.c: New file, from glibc.
35900 * lib/argp-pv.c: New file, from glibc.
35901 * lib/argp-pvh.c: New file, from glibc.
35902 * lib/argp-xinl.c: New file, from glibc.
35904 2003-06-10 Simon Josefsson <jas@extundo.com>
35906 * modules/strchrnul: New file.
35908 2003-06-10 Simon Josefsson <jas@extundo.com>
35910 * modules/argp: New file.
35912 2003-06-10 Simon Josefsson <jas@extundo.com>
35914 * m4/strchrnul.m4: New file.
35916 2003-06-10 Simon Josefsson <jas@extundo.com>
35918 * lib/strchrnul.h: New file.
35919 * lib/strchrnul.c: New file.
35921 2003-06-10 Bruno Haible <bruno@clisp.org>
35923 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
35925 2003-06-07 Karl Berry <karl@gnu.org>
35927 * config/config.{guess,sub}: update from prep.
35929 2003-06-07 Jim Meyering <jim@meyering.net>
35931 * modules/strtod: Use $(...) notation, not @...@ for
35932 AC_REPLACE'd variables.
35933 * modules/localcharset: Likewise.
35935 2003-06-07 Jim Meyering <jim@meyering.net>
35937 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
35938 in place of my name in the copyright comment.
35939 Remove definition and uses of __P.
35942 * lib/stat.c: Don't declare xmalloc explicitly.
35943 Instead, include "xalloc.h".
35944 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
35945 xrealloc, and xcalloc return values.
35946 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
35948 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
35950 2003-06-07 Bruno Haible <bruno@clisp.org>
35952 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
35953 avoid AC_CONFIG_LINKS.
35954 * modules/fnmatch (Makefile.am): Use explicit creation rule for
35955 fnmatch.h, to avoid AC_CONFIG_LINKS.
35956 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
35958 2003-06-07 Bruno Haible <bruno@clisp.org>
35960 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
35961 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
35962 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
35964 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
35965 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
35968 2003-06-06 Jim Meyering <jim@meyering.net>
35970 Merge from coreutils.
35971 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
35972 Consolidate declarations and initializations of *_base* locals.
35974 Merge from coreutils.
35975 This avoids a core dump on systems without GNU putenv,
35976 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
35977 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
35978 (unsetenv): New static function, from GNU libc.
35979 (rpl_putenv): Use it.
35981 * lib/modechange.c: Remove trailing blanks.
35983 Merge from coreutils.
35984 * lib/fsusage.c: Remove declaration of statfs.
35985 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
35987 * lib/posixtm.c: Include <stdbool.h> unconditionally.
35989 2003-06-06 Jim Meyering <jim@meyering.net>
35991 * lib/stdbool_.h: Renamed from stdbool.h.in.
35993 2003-06-06 Jim Meyering <jim@meyering.net>
35994 Bruno Haible <bruno@clisp.org>
35996 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
35997 Adjust Makefile.am snippet not to redirect directly to target.
35998 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36000 2003-06-05 Paul Eggert <eggert@twinsun.com>
36002 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36003 mismatch, look in future quarters as well as past. This fixes a
36004 bug when processing fall-backwards gaps immediately after a long
36005 period of daylight-saving time.
36007 * lib/mktime.c: Assume freestanding C89 or better.
36008 (HAVE_LIMITS_H): Remove. Assume it's 1.
36009 (__P): Remove; not used.
36010 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36011 (mktime, not_equal_tm, print_tm, check_result,
36012 main): Use prototypes. Use const * where appropriate.
36013 (main): Fix typo in testing code that uncovered by above changes.
36014 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36016 2003-06-04 Paul Eggert <eggert@twinsun.com>
36018 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
36019 locale.h, localeconv. This merges changes from coreutils.
36021 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36022 It can be removed after the next Autoconf is released.
36023 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36026 2003-06-04 Paul Eggert <eggert@twinsun.com>
36028 * lib/mktime.c: Fix Debian bug 177940
36029 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36030 (localtime_offset): Now long int, not time_t, because we want it
36031 to be guaranteed to be signed. All uses changed.
36032 (__mktime_internal): If overflow would occur when adding offset,
36035 Merge 'human' changes from coreutils. Rewrite to support
36036 locale-specific notations like thousands separators.
36037 * lib/human.c: Simplify authorship notice.
36038 Include human.h immediately after config.h.
36039 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36040 <limits.h>: Do not include, since human.h does.
36041 (SIZE_MAX, UINTMAX_MAX): New macros.
36042 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36043 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36044 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36045 (power_letter): Renamed from suffixes.
36046 (generate_suffix_backwards): Remove.
36047 (adjust_value): Now takes int style (because of human.h changes)
36048 and long double value (for greater precision on some platforms).
36049 (group_number): New function.
36050 (human_readable): Use it. Use integer options, not enum.
36051 Put the options before the sizes in the arg list.
36052 Support all the new options.
36053 The old human_readable function has been removed;
36054 use inttostr.h instead.
36055 (human_readable, default_block_size, humblock):
36056 Use uintmax_t, not int, for block sizes.
36057 (human_readable_inexact, block_size_types): Remove.
36058 (block_size_opts): New constant.
36059 (human_options): Renamed from human_block_size, with new signature
36060 that allows block sizes up to UINTMAX_MAX. All callers changed.
36061 * lib/human.h: Add copyright and authorship notice.
36062 Include <limits.h> and <stdbool.h> unconditionally.
36063 (PARAMS): Remove. All uses removed.
36064 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36065 (enum human_inexact_style): Remove tag; now a nameless enum.
36066 (human_floor, human_ceiling, human_round_to_even): Now have
36067 values 2, 0, 1 rather than -1, 1, 0.
36068 (human_group_digits, human_suppress_point_zero, human_autoscale,
36069 human_base_1024, human_SI, human_B): New constants.
36070 (human_readable_inexact, human_block_size): Remove.
36071 (human_readable): Size args are now uintmax_t, not int.
36072 (human_options): New decl.
36074 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36075 unnecessary now that we assume C89 or better. This change
36076 imported from coreutils.
36078 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36079 arbitrarily. This is the same patch as 2003-05-28, but it got lost
36080 in the 2003-05-30 sync from glibc.
36082 .h files should stand alone, but we shouldn't include <sys/types.h>
36083 if we can get away with just <stddef.h>.
36085 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36086 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36087 rather than <sys/types.h>, as we merely need size_t.
36088 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36090 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36091 Include <stdio.h>, to get FILE.
36092 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36093 memcasecmp.h has included <stddef.h> and all we need is size_t.
36094 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36095 our interface, instead of including <sys/types.h>
36097 2003-06-04 Paul Eggert <eggert@twinsun.com>
36099 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
36100 now, as glibc mktime is buggy on non-glibc systems.
36102 2003-06-03 Karl Berry <karl@gnu.org>
36104 * config/config.sub: update from prep.
36106 2003-06-02 Paul Eggert <eggert@twinsun.com>
36109 Fix some minor time-related bugs with POSIX time arguments.
36110 Some valid time stamps were being rejected (notably -1, and
36111 time stamps before 1900 on 64-bit hosts). And some invalid
36112 time stamps were being accepted, e.g. September 31.
36114 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
36115 that we can return (time_t) -1 successfully.
36116 * lib/posixtm.c: Likewise.
36117 [HAVE_STDBOOL_H]: Include <stdbool.h>.
36118 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
36119 (t): Remove static var.
36120 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
36121 of static var. All uses changed.
36122 (year): Do not reject years before 1900; they can occur with
36124 (posix_time_parse): Do not check for out-of-range components;
36125 that is now the caller's responsibility, since our checks were
36126 only approximations.
36127 (posixtime): Use mktime to check for out-of-range components,
36128 since it knows them exactly.
36129 If mktime returns (time_t) -1, check whether an error actually occurred
36130 by invoking localtime on -1.
36131 (main) [TEST_POSIXTIME]: Check for input data errors, and report
36132 posixtime failures better.
36133 Improve the test data (in comments only).
36135 2003-06-02 Karl Berry <karl@gnu.org>
36137 * config/mkinstalldirs (version): new variable.
36138 (--version): new option.
36139 (usage): improve message.
36141 2003-05-30 Karl Berry <karl@gnu.org>
36143 * lib/mktime.c: update from libc.
36145 2003-05-30 Bruno Haible <bruno@clisp.org>
36147 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
36148 * config/config.rpath: Upgrade to gettext-0.12.1.
36150 2003-05-30 Bruno Haible <bruno@clisp.org>
36152 * m4/gettext.m4: Upgrade to gettext-0.12.1.
36153 * m4/nls.m4: New file, from gettext-0.12.1.
36154 * m4/po.m4: New file, from gettext-0.12.1.
36155 * m4/progtest.m4: Upgrade to gettext-0.12.1.
36157 2003-05-30 Bruno Haible <bruno@clisp.org>
36159 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
36160 * lib/localcharset.h: Likewise.
36161 * lib/localcharset.c: Likewise.
36163 2003-05-29 Karl Berry <karl@gnu.org>
36165 * config/config.rpath: update from gettext.
36167 2003-05-28 Paul Eggert <eggert@twinsun.com>
36169 Assume the headers required for C89 freestanding compilers.
36170 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
36171 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
36172 * m4/human.m4 (gl_HUMAN): Likewise.
36173 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
36174 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
36175 * m4/userspec.m4 (gl_USERSPEC): Likewise.
36176 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
36177 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36178 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
36180 2003-05-28 Paul Eggert <eggert@twinsun.com>
36182 Assume the headers required for C89 freestanding compilers.
36183 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
36184 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
36185 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
36186 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
36187 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
36188 define, since <limits.h> is guaranteed to do that.
36189 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
36190 * lib/exclude.c: Include <stdbool.h> unconditionally.
36191 * lib/tempname.c: Include <stddef.h> unconditionally.
36192 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
36193 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
36194 <stddef.h> does that.
36195 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
36196 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
36197 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
36199 * lib/xstrtol.c: Likewise.
36200 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
36201 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
36203 * lib/addext.c (addext): Use assignment rather than cast, to avoid
36204 warnings on some platforms.
36206 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36209 2003-05-26 Jim Meyering <jim@meyering.net>
36211 Merge in a change from coreutils:
36212 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
36213 that is guaranteed to be `no'. Use `no_such_member' to indicate
36214 that condition, rather than `-1' which is slightly misleading.
36215 Change the name of the cache variable to have the gl_ prefix.
36216 Prompted by a patch from Richard Dawe for DJGPP.
36218 2003-05-24 Karl Berry <karl@gnu.org>
36220 * config/config.guess: update from prep.
36222 2003-05-22 Karl Berry <karl@gnu.org>
36224 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
36226 2003-05-20 Karl Berry <karl@gnu.org>
36228 * config/config.guess: update from prep.
36230 2003-05-18 Karl Berry <karl@gnu.org>
36232 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
36233 might actually be set by the user.
36235 * config/depcomp, install-sh, mdate-sh: update from automake.
36237 2003-05-17 Bruno Haible <bruno@clisp.org>
36239 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
36240 invalid expansion for AC_EGREP_CPP.
36241 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
36242 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36243 Suggested by Akim Demaille <akim@epita.fr> in
36244 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
36246 2003-05-12 Jim Meyering <jim@meyering.net>
36248 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
36249 the space-padded-by-default conversion specifiers, %e, %k, %l.
36251 2003-05-12 Bruno Haible <bruno@clisp.org>
36253 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
36254 the string is longer than 4 KB.
36256 2003-05-11 Karl Berry <karl@gnu.org>
36258 * config/config.{guess,sub}: update from prep.
36260 2003-05-09 Bruno Haible <bruno@clisp.org>
36262 * modules/error: Add m4/strerror_r.m4 to file list.
36264 2003-05-03 Bruno Haible <bruno@clisp.org>
36266 Upgrade to Unicode-4.0.
36267 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
36268 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
36269 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
36270 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
36271 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
36272 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
36273 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
36274 Change width of U+E0100..U+E01EF from 1 to 0.
36276 2003-04-25 Jim Meyering <jim@meyering.net>
36278 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
36279 of type size_t, not int.
36281 2003-04-25 Bruno Haible <bruno@clisp.org>
36283 * lib/copy-file.c: Include <stddef.h>, for size_t.
36285 2003-04-21 Paul Eggert <eggert@twinsun.com>
36287 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
36288 code which expansion is under static control. Patch imported from
36289 Akim Demaille's patch to Bison; see
36290 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
36292 2003-04-14 Bruno Haible <bruno@clisp.org>
36294 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
36296 2003-04-11 Jim Meyering <jim@meyering.net>
36298 Merge changes from Coreutils.
36300 2003-03-22 Jim Meyering <jim@meyering.net>
36302 * lib/strftime.c (widen): Cast alloca return value to proper type.
36304 2003-01-19 Ulrich Drepper <drepper@redhat.com>
36307 * lib/strftime.c (my_strftime): Handle very large width
36308 specifications for numeric values correctly. Improve checks for
36311 2003-01-19 Jim Meyering <jim@meyering.net>
36313 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
36315 (nl_get_alt_digit) [! defined my_strftime]: Define.
36316 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
36317 _nl_get_alt_digit and _nl_get_walt_digit.
36319 * lib/strftime.c (my_strftime): Merge in locale-related changes from
36320 libc. These changes have no effect outside of _LIBC.
36322 2003-04-10 Bruno Haible <bruno@clisp.org>
36324 * modules/findprog: New file.
36325 * MODULES.html.sh (func_all_modules): Add it.
36327 2003-04-10 Bruno Haible <bruno@clisp.org>
36329 * m4/findprog.m4: New file.
36330 * m4/eaccess.m4: New file.
36332 2003-04-10 Bruno Haible <bruno@clisp.org>
36334 * lib/findprog.h: New file, from GNU gettext.
36335 * lib/findprog.c: New file, from GNU gettext.
36337 2003-04-05 Jim Meyering <jim@meyering.net>
36339 Merge changes from Coreutils.
36341 * lib/exclude.h (PARAMS): Remove definition and uses.
36342 * lib/exclude.c: Remove uses of `PARAMS'.
36344 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
36345 Add test-cases for DOS filenames. Declare program_name.
36346 (main): Set up program_name. Patch by Rich Dawe.
36348 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36350 Use mntctl's return value to drive the entry-processing loop, since
36351 we can't rely on the value of the vmt_length member in the last
36352 entry. On some systems doing so could result in exhausting
36353 virtual memory. Based in part on a patch from Mike Jetzer.
36355 2003-04-04 Bruno Haible <bruno@clisp.org>
36357 * modules/linebreak: New file.
36358 * MODULES.html.sh (func_all_modules): Add it.
36360 2003-04-04 Bruno Haible <bruno@clisp.org>
36362 * m4/linebreak.m4: New file.
36364 2003-04-04 Bruno Haible <bruno@clisp.org>
36366 * lib/linebreak.h: New file, from GNU gettext.
36367 * lib/linebreak.c: New file, from GNU gettext with slight
36369 * lib/lbrkprop.h: New file, from GNU gettext.
36371 2003-04-03 Bruno Haible <bruno@clisp.org>
36373 * modules/utf8-ucs4: New file.
36374 * modules/utf16-ucs4: New file.
36375 * modules/ucs4-utf8: New file.
36376 * modules/ucs4-utf16: New file.
36377 * MODULES.html.sh (func_all_modules): Add them.
36379 2003-04-03 Bruno Haible <bruno@clisp.org>
36381 * m4/utf-ucs4.m4: New file.
36382 * m4/ucs4-utf.m4: New file.
36384 2003-04-03 Bruno Haible <bruno@clisp.org>
36386 * lib/utf8-ucs4.h: New file, from GNU gettext.
36387 * lib/utf16-ucs4.h: New file, from GNU gettext.
36388 * lib/ucs4-utf8.h: New file, from GNU gettext.
36389 * lib/ucs4-utf16.h: New file, from GNU gettext.
36391 2003-04-02 Bruno Haible <bruno@clisp.org>
36393 * modules/binary-io: New file.
36394 * MODULES.html.sh (func_all_modules): Add it.
36396 2003-04-02 Bruno Haible <bruno@clisp.org>
36398 * lib/binary-io.h: New file, from GNU gettext.
36400 2003-04-01 Bruno Haible <bruno@clisp.org>
36402 * modules/pathname: New file.
36403 * MODULES.html.sh (func_all_modules): Add it.
36405 2003-04-01 Bruno Haible <bruno@clisp.org>
36407 * lib/pathname.h: New file, from GNU gettext.
36408 * lib/concatpath.c: New file, from GNU gettext.
36410 2003-03-30 Bruno Haible <bruno@clisp.org>
36412 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
36414 2003-03-30 Bruno Haible <bruno@clisp.org>
36416 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
36417 function chown() doesn't exist.
36419 2003-03-28 Bruno Haible <bruno@clisp.org>
36421 * modules/copy-file: New file.
36422 * MODULES.html.sh (func_all_modules): Add it.
36424 2003-03-28 Bruno Haible <bruno@clisp.org>
36426 * m4/copy-file.m4: New file.
36428 2003-03-28 Bruno Haible <bruno@clisp.org>
36430 * lib/copy-file.h: New file, from GNU gettext.
36431 * lib/copy-file.c: New file, from GNU gettext.
36433 2003-03-18 Jim Meyering <jim@meyering.net>
36435 * lib/quote.c (quote_n): Fix typo in comment.
36437 2003-03-18 Bruno Haible <bruno@clisp.org>
36439 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
36441 * m4/onceonly_2_57.m4: Likewise.
36443 2003-03-17 Bruno Haible <bruno@clisp.org>
36445 * m4/onceonly.m4: Require autoconf 2.54 or newer.
36446 (m4_quote): Remove macro.
36447 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
36449 2003-03-14 Jim Meyering <jim@meyering.net>
36451 Merge changes from Coreutils.
36452 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
36453 to be const, in order to avoid warnings.
36454 (obstack_room): Likewise.
36455 (obstack_empty_p): Likewise.
36457 2003-03-14 Bruno Haible <bruno@clisp.org>
36459 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
36460 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
36462 2003-03-13 Paul Eggert <eggert@twinsun.com>
36464 Merge changes from Bison.
36465 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
36466 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
36467 when compiling Bison 1.875's `bitset bset = obstack_alloc
36468 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
36469 * lib/hash.c: Include <stdbool.h> unconditionally.
36471 2003-03-13 Paul Eggert <eggert@twinsun.com>
36473 * m4/onceonly.m4 (m4_quote): New macro.
36474 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
36475 Quote AC_FOREACH variable-expansions properly.
36477 2003-03-13 Paul Eggert <eggert@twinsun.com>
36479 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
36481 2003-03-09 Paul Eggert <eggert@twinsun.com>
36483 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
36484 Reported by Bruce Becker; see:
36485 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
36487 2003-03-03 Paul Eggert <eggert@twinsun.com>
36488 Bruno Haible <bruno@clisp.org>
36490 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
36491 Reported by John Hughes, see
36492 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
36494 2003-02-20 Bruno Haible <bruno@clisp.org>
36496 * MODULES.html.sh (func_all_modules): Add poll.
36498 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
36500 * modules/poll: New file.
36502 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
36504 * lib/poll_.h: New file.
36505 * lib/poll.c: New file.
36507 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
36509 * m4/poll.m4: New file.
36511 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
36513 * modules/mathl: New file.
36515 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
36517 * lib/mathl.h: New file.
36518 * lib/acosl.c: New file.
36519 * lib/asinl.c: New file.
36520 * lib/atanl.c: New file.
36521 * lib/ceill.c: New file.
36522 * lib/cosl.c: New file.
36523 * lib/expl.c: New file.
36524 * lib/floorl.c: New file.
36525 * lib/frexpl.c: New file.
36526 * lib/ldexpl.c: New file.
36527 * lib/logl.c: New file.
36528 * lib/sincosl.c: New file.
36529 * lib/sinl.c: New file.
36530 * lib/sqrtl.c: New file.
36531 * lib/tanl.c: New file.
36532 * lib/trigl.c: New file.
36533 * lib/trigl.h: New file.
36535 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
36537 * m4/mathl.m4: New file.
36539 2003-02-18 Bruno Haible <bruno@clisp.org>
36541 * MODULES.html.sh (func_all_modules): Add mathl.
36543 2003-02-17 Bruno Haible <bruno@clisp.org>
36545 * modules/mkdtemp: New module.
36546 * MODULES.html.sh (func_all_modules): Add it.
36548 2003-02-17 Bruno Haible <bruno@clisp.org>
36550 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
36552 2003-02-17 Bruno Haible <bruno@clisp.org>
36554 * lib/mkdtemp.h: New file, from GNU gettext.
36555 * lib/mkdtemp.c: New file, from GNU gettext.
36557 2003-02-02 Jim Meyering <jim@meyering.net>
36559 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
36562 2003-01-31 Bruno Haible <bruno@clisp.org>
36564 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
36566 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
36568 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
36570 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
36573 2003-01-31 Bruno Haible <bruno@clisp.org>
36575 * lib/rename.c: #undef rename before defining rpl_rename.
36576 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
36578 2003-01-30 Bruno Haible <bruno@clisp.org>
36580 * modules/vasnprintf, modules/vasprintf: New modules.
36581 * MODULES.html.sh (func_all_modules): Add them.
36583 2003-01-30 Bruno Haible <bruno@clisp.org>
36585 * m4/signed.m4: New file, from GNU gettext.
36586 * m4/longdouble.m4: New file, from GNU gettext.
36587 * m4/wchar_t.m4: New file, from GNU gettext.
36588 * m4/wint_t.m4: New file, from GNU gettext.
36589 * m4/vasnprintf.m4: New file.
36590 * m4/vasprintf.m4: New file.
36592 2003-01-30 Bruno Haible <bruno@clisp.org>
36594 * lib/printf-args.h: New file, from GNU gettext.
36595 * lib/printf-args.c: New file, from GNU gettext.
36596 * lib/printf-parse.h: New file, from GNU gettext.
36597 * lib/printf-parse.c: New file, from GNU gettext.
36598 * lib/vasnprintf.h: New file, from GNU gettext.
36599 * lib/vasnprintf.c: New file, from GNU gettext.
36600 * lib/asnprintf.c: New file, from GNU gettext.
36601 * lib/vasprintf.h: New file, from GNU gettext with modifications.
36602 * lib/vasprintf.c: New file, from GNU gettext.
36603 * lib/asprintf.c: New file, from GNU gettext.
36605 2003-01-29 Bruno Haible <bruno@clisp.org>
36607 * modules/stpncpy: New module.
36608 * MODULES.html.sh (func_all_modules): Add it.
36610 2003-01-29 Bruno Haible <bruno@clisp.org>
36612 * m4/stpncpy.m4: New file.
36614 2003-01-29 Bruno Haible <bruno@clisp.org>
36616 * lib/stpncpy.h: New file, from GNU gettext with modifications.
36617 * lib/stpncpy.c: New file, from GNU gettext with modifications.
36619 2003-01-28 Bruno Haible <bruno@clisp.org>
36621 * modules/c-ctype: New module.
36622 * MODULES.html.sh (func_all_modules): Add it.
36624 2003-01-28 Bruno Haible <bruno@clisp.org>
36626 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
36628 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
36631 2003-01-27 Bruno Haible <bruno@clisp.org>
36633 * modules/xsetenv: New module.
36634 * MODULES.html.sh (func_all_modules): Add it.
36636 2003-01-27 Bruno Haible <bruno@clisp.org>
36638 * lib/xsetenv.h: New file, from GNU gettext.
36639 * lib/xsetenv.c: New file, from GNU gettext.
36641 2003-01-23 Jim Meyering <jim@meyering.net>
36643 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
36644 from working on systems without dirfd (at least Irix and OSF1/Tru64).
36646 2003-01-23 Bruno Haible <bruno@clisp.org>
36648 * modules/minmax: New module.
36649 * MODULES.html.sh (func_all_modules): Add it.
36651 2003-01-23 Bruno Haible <bruno@clisp.org>
36653 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
36656 2003-01-22 Bruno Haible <bruno@clisp.org>
36658 * modules/exit: New module.
36659 * MODULES.html.sh (func_all_modules): Add it.
36661 2003-01-22 Bruno Haible <bruno@clisp.org>
36663 * lib/exit.h: New file, from GNU gettext.
36665 2003-01-19 Bruno Haible <bruno@clisp.org>
36667 * gnulib-tool: Recognize option --extract-maintainer.
36668 (func_get_maintainer): New function.
36669 * modules/*: Add Maintainer entry.
36671 2003-01-16 Jim Meyering <jim@meyering.net>
36673 * m4/regex.m4: The `regex' struct is both input and output.
36674 Initialize it before each use. Patch by Tim Waugh.
36676 2003-01-16 Bruno Haible <bruno@clisp.org>
36678 * MODULES.html.sh: Add a table of contents. Add the module name as
36679 leftmost column. Add hyperlinks.
36681 2003-01-15 Bruno Haible <bruno@clisp.org>
36683 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
36685 2003-01-15 Bruno Haible <bruno@clisp.org>
36687 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
36688 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
36691 2003-01-15 Bruno Haible <bruno@clisp.org>
36693 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
36695 2003-01-15 Bruno Haible <bruno@clisp.org>
36697 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
36698 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
36700 2003-01-14 Jim Meyering <jim@meyering.net>
36702 * lib/same.c (same_name): Tweak a comment.
36704 2003-01-14 Bruno Haible <bruno@clisp.org>
36706 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
36707 when a string comparison is sufficient.
36709 2003-01-14 Bruno Haible <bruno@clisp.org>
36711 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
36714 2003-01-14 Bruno Haible <bruno@clisp.org>
36716 * lib/hash-pjw.c: Add comment about low quality of this function.
36718 2003-01-13 Bruno Haible <bruno@clisp.org>
36720 * modules/stpcpy: Distribute lib/stpcpy.h.
36721 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
36723 2003-01-13 Bruno Haible <bruno@clisp.org>
36725 * modules/*: Add a description.
36726 * modules/strpbrk: Fix Makefile.am snippet.
36727 * modules/strtoimax: Fix dependencies.
36728 * modules/strtoumax: Likewise.
36730 2003-01-13 Bruno Haible <bruno@clisp.org>
36732 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
36733 * modules/alloca (Makefile.am): All object files depend on alloca.h.
36734 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
36736 2003-01-13 Bruno Haible <bruno@clisp.org>
36738 * gnulib-tool (func_create_testdir): Store config/* files in the main
36740 * config.rpath: Move to ...
36741 * config/config.rpath: ... here.
36742 * modules/gettext: Contains config/config.rpath, not config.rpath.
36743 * modules/iconv: Likewise.
36745 2003-01-12 Paul Eggert <eggert@twinsun.com>
36747 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36748 to avoid collisions with libcurses and libreadline.
36750 * m4/getstr.m4: Remove.
36751 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
36753 2003-01-12 Paul Eggert <eggert@twinsun.com>
36755 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36756 to avoid collisions with libcurses and libreadline.
36758 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
36759 * lib/getstr.h, getstr.c: Remove.
36760 * lib/getline.c: Include "getline.h", to check interface.
36761 Move body of old getstr.c here: this defines MIN_CHUNK and
36762 declares getdelim2, which is renamed from getstr.
36763 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
36765 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
36767 * lib/linebuffer.h: Likewise.
36768 (readline): Remove backward-compatibility macro.
36770 2003-01-12 Paul Eggert <eggert@twinsun.com>
36772 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
36773 to avoid collisions with libcurses and libreadline.
36775 * MODULES.html.sh: Remove getstr.
36776 * modules/getline: Depend on unlocked-io, not getstr.
36778 2003-01-12 Jim Meyering <jim@meyering.net>
36780 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
36782 2003-01-10 Bruno Haible <bruno@clisp.org>
36784 * modules/alloca: Change Makefile.am requirements. Simplify Include
36785 requirements. Add lib/alloca_.h to file list.
36787 2003-01-10 Bruno Haible <bruno@clisp.org>
36789 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
36791 2003-01-10 Bruno Haible <bruno@clisp.org>
36793 * lib/alloca_.h: New file.
36794 * lib/getdate.y: Unconditionally include alloca.h.
36795 * lib/makepath.c: Likewise.
36796 * lib/setenv.c: Likewise.
36797 * lib/userspec.c: Likewise.
36799 2003-01-09 Karl Berry <karl@gnu.org>
36801 * MODULES.html.sh: include `dirname $0` in PATH, to find
36804 2003-01-09 Bruno Haible <bruno@clisp.org>
36806 * modules/stdbool: Change configure.ac, Makefile.am requirements.
36807 Simplify Include requirements. Add lib/stdbool.h.in to file list.
36809 2003-01-09 Bruno Haible <bruno@clisp.org>
36811 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
36813 2003-01-09 Bruno Haible <bruno@clisp.org>
36815 * lib/stdbool.h.in: New file.
36817 2003-01-09 Bruno Haible <bruno@clisp.org>
36819 * gnulib-tool (func_all_modules): Ignore files ending in ~.
36820 * MODULES.html.sh: Likewise.
36822 2003-01-08 Jim Meyering <jim@meyering.net>
36824 * lib/full-write.c: Undefine and define-away `const' after inclusion
36825 of errno.h, not before. Suggestion from Bruno Haible.
36827 2003-01-08 Bruno Haible <bruno@clisp.org>
36829 * modules/full-read: Depend on full-write.
36831 2003-01-08 Bruno Haible <bruno@clisp.org>
36833 * lib/safe-read.c: Include specification header first, to ensure its
36835 * lib/full-write.c: Likewise.
36837 2003-01-07 Jim Meyering <jim@meyering.net>
36839 * lib/full-write.c: Rework so that it may serve to define full_read,
36841 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
36843 2003-01-07 Bruno Haible <bruno@clisp.org>
36845 * lib/strtoimax.c: Include <stdint.h> as an alternative to
36847 * lib/xstrtol.h: Likewise.
36848 * lib/xstrtoimax.c: Likewise.
36849 * lib/xstrtoumax.c: Likewise.
36850 * lib/human.h: Likewise.
36852 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
36853 on systems that have <inttypes.h> but not <stdint.h>.
36855 2003-01-07 Bruno Haible <bruno@clisp.org>
36857 * MODULES.html.sh: Add copyright notice.
36858 (missed_files): Omit CVS directory entries.
36859 (func_module): Make it work with sed-3.02.
36860 * MODULES.txt: Remove file.
36862 2003-01-06 Jim Meyering <jim@meyering.net>
36864 * lib/version-etc.c: Update year in translatable copyright string.
36866 2003-01-03 Karl Berry <karl@gnu.org>
36868 * config/config.{guess,sub}: update from prep.
36870 2003-01-02 Karl Berry <karl@gnu.org>
36872 * doc/COPYING.DOC: belatedly updated to 1.2.
36874 2003-01-01 Karl Berry <karl@gnu.org>
36876 * gnulib-tool (func_verify_module): report module name $module in
36877 error message, not $1.
36878 * gnulib-tool (create-testdir): don't complain if destdir couldn't
36879 be created, only if it doesn't exist.
36880 * gnulib-tool (last_checkin_date): don't expand the $Date here.
36882 2002-12-31 Paul Eggert <eggert@twinsun.com>
36884 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
36886 2002-12-31 Paul Eggert <eggert@twinsun.com>
36888 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
36889 memcmp if strcoll doesn't work.
36891 2002-12-31 Bruno Haible <bruno@clisp.org>
36893 * lib/utime.c (utime_null): No need to call ftruncate if the file was
36896 2002-12-31 Bruno Haible <bruno@clisp.org>
36898 * lib/memcoll.c (STRCOLL): New macro.
36901 2002-12-31 Bruno Haible <bruno@clisp.org>
36903 * lib/localcharset.h: New file.
36904 * lib/localcharset.c: Include it.
36905 * lib/unicodeio.c: Likewise.
36907 2002-12-31 Bruno Haible <bruno@clisp.org>
36909 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
36910 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
36912 2002-12-31 Bruno Haible <bruno@clisp.org>
36914 * lib/getline.h: Include <stddef.h>, for size_t.
36916 * lib/unicodeio.h: Include <stddef.h>, for size_t.
36917 * lib/unicodeio.c: Don't include <stddef.h>.
36919 2002-12-31 Bruno Haible <bruno@clisp.org>
36921 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
36924 2002-12-24 Karl Berry <karl@gnu.org>
36926 * config/config.guess: update from prep.
36928 2002-12-24 Bruno Haible <bruno@clisp.org>
36930 General infrasructure.
36931 * m4/README: Rewritten.
36932 * m4/onceonly.m4: New file.
36933 * m4/onceonly_2_57.m4: New file.
36936 * m4/atexit.m4: New file.
36939 * m4/strtod.m4: New file.
36942 * m4/strtol.m4: New file.
36945 * m4/strtoul.m4: New file.
36948 * m4/memchr.m4: New file.
36951 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
36952 (jm_FUNC_MEMCMP): Invoke it.
36955 * m4/memcpy.m4: New file.
36958 * m4/memmove.m4: New file.
36961 * m4/memset.m4: New file.
36964 * m4/strcspn.m4: New file.
36967 * m4/strpbrk.m4: New file.
36970 * m4/strstr.m4: New file.
36973 * m4/strerror.m4: New file.
36976 * m4/mktime.m4: Renamed from jm-mktime.m4.
36977 (gl_PREREQ_MKTIME): New macro.
36978 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
36981 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
36982 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
36983 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
36986 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
36987 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
36988 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
36991 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
36992 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
36993 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
36995 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
36998 * m4/xalloc.m4: New file.
37001 * m4/alloca.m4: New file.
37004 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37005 (jm_FUNC_PUTENV): Invoke it.
37008 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37009 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37010 when invoked twice.
37011 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37015 * m4/memrchr.m4: New file.
37018 * m4/stpcpy.m4: New file.
37021 * m4/strcase.m4: New file.
37024 * m4/strdup.m4: New file.
37027 * m4/strnlen.m4: New file.
37030 * m4/strndup.m4: New file.
37033 * m4/xstrtod.m4: New file.
37036 * m4/xstrtol.m4: New file.
37039 * m4/getdate.m4: New file.
37041 Module unlocked-io.
37042 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37043 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37044 * m4/jm-glibc-io.m4n: Remove file.
37046 Module long-options.
37047 * m4/long-options.m4: New file.
37050 * m4/md5.m4: New file.
37053 * m4/sha.m4: New file.
37056 * m4/getstr.m4: New file.
37059 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37060 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37061 <sys/types.h>, for size_t. Use the function name gnu_getline, not
37062 simply getline. Infoke gl_PREREQ_GETLINE.
37065 * m4/obstack.m4: New file.
37068 * m4/hash.m4: New file.
37071 * m4/readtokens.m4: New file.
37074 * m4/strverscmp.m4: New file.
37077 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37081 * m4/strtoll.m4: New file.
37084 * m4/strtoull.m4: New file.
37087 * m4/strtoimax.m4: New file.
37090 * m4/strtoumax.m4: New file.
37093 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37094 jm_AC_PREREQ_XSTRTOIMAX.
37095 Moved the strtol prerequisites to strtol.m4.
37096 Moved the strtoll prerequisites to strtoll.m4.
37097 Moved the strtoimax prerequisites to strtoimax.m4.
37100 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
37101 jm_AC_PREREQ_XSTRTOUMAX.
37102 Moved the strtoul prerequisites to strtoul.m4.
37103 Moved the strtoull prerequisites to strtoull.m4.
37104 Moved the strtoumax prerequisites to strtoumax.m4.
37107 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
37108 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
37111 * m4/dup2.m4: New file.
37114 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
37115 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
37118 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
37119 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
37121 Module gettimeofday.
37122 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
37123 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
37124 gl_PREREQ_GETTIMEOFDAY.
37127 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
37128 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
37131 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
37132 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
37133 jm_AC_TYPE_UINTMAX_T.
37134 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
37137 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
37138 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
37141 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
37142 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
37145 * m4/timespec.m4 (gl_TIMESPEC): New macro.
37146 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
37147 * m4/st_mtim.m4: Indentation.
37150 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
37151 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
37152 gl_PREREQ_NANOSLEEP.
37155 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
37156 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
37157 (gl_REGEX): New macro.
37160 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
37161 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
37164 * m4/rmdir.m4: New file.
37167 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
37168 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
37169 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
37172 * m4/dirname.m4: New file.
37175 * m4/getopt.m4: New file.
37177 Module unistd-safer.
37178 * m4/unistd-safer.m4: New file.
37181 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
37183 (gl_PREREQ_FNMATCH_EXTRA): New macro.
37184 (gl_FUNC_FNMATCH_POSIX): New macro.
37185 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
37186 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
37190 * m4/exclude.m4: New file.
37193 * m4/human.m4: New file.
37199 * m4/backupfile.m4: New file.
37200 * m4/d-ino.m4: Indentation.
37203 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
37204 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
37205 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
37208 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
37212 * m4/euidaccess.m4: New file.
37215 * m4/file-type.m4: New file.
37218 * m4/fileblocks.m4: New file.
37221 * m4/filemode.m4: New file.
37224 * m4/isdir.m4: New file.
37227 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
37228 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
37231 * m4/makepath.m4: New file.
37234 * m4/modechange.m4: New file.
37237 * m4/mountlist.m4: New file.
37238 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
37241 Module path-concat.
37242 * m4/path-concat.m4: New file.
37245 * m4/pathmax.m4: New file.
37248 * m4/same.m4: New file.
37251 * m4/save-cwd.m4: New file.
37254 * m4/savedir.m4: New file.
37257 * m4/xgetcwd.m4: New file.
37258 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
37261 * m4/xreadlink.m4: New file.
37264 * m4/safe-read.m4: New file.
37267 * m4/safe-write.m4: New file.
37270 * m4/closeout.m4: New file.
37272 Module stdio-safer.
37273 * m4/stdio-safer.m4: New file.
37276 * m4/getpass.m4: New file.
37279 * m4/getugroups.m4: New file.
37281 Module group-member.
37282 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
37283 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
37286 * m4/idcache.m4: New file.
37289 * m4/userspec.m4: New file.
37292 * m4/clock_time.m4: New file.
37293 * m4/gettime.m4: New file.
37296 * m4/settime.m4: New file.
37299 * m4/posixtm.m4: New file.
37301 Module gethostname.
37302 * m4/gethostname.m4: New file.
37305 * m4/canon-host.m4: New file.
37308 * m4/codeset.m4: New file, from gettext-0.11.5.
37309 * m4/gettext.m4: New file, from gettext-0.11.5.
37310 * m4/glibc21.m4: New file, from gettext-0.11.5.
37311 * m4/iconv.m4: New file, from gettext-0.11.5.
37312 * m4/intdiv0.m4: New file, from gettext-0.11.5.
37313 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
37314 * m4/inttypes.m4: New file, from gettext-0.11.5.
37315 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
37316 * m4/isc-posix.m4: New file, from gettext-0.11.5.
37317 * m4/lcmessage.m4: New file, from gettext-0.11.5.
37318 * m4/lib-ld.m4: New file, from gettext-0.11.5.
37319 * m4/lib-link.m4: New file, from gettext-0.11.5.
37320 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
37321 * m4/progtest.m4: New file, from gettext-0.11.5.
37322 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
37323 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
37324 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
37326 Module localcharset.
37327 * m4/localcharset.m4: New file.
37329 Module hard-locale.
37330 * m4/hard-locale.m4: New file.
37333 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
37335 * m4/mbrtowc.m4: Add comment.
37338 * m4/memcasecmp.m4: New file.
37341 * m4/memcoll.m4: New file.
37344 * m4/unicodeio.m4: New file.
37347 * m4/rpmatch.m4: New file.
37350 * m4/yesno.m4: New file.
37353 * m4/exitfail.m4: New file.
37356 * m4/c-stack.m4 (gl_C_STACK): New macro.
37357 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
37360 * m4/error.m4 (gl_ERROR): New macro.
37361 (jm_PREREQ_ERROR): Use onceonly macros.
37364 * m4/fatal.m4: New file.
37367 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
37368 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
37370 Module getpagesize.
37371 * m4/getpagesize.m4: New file.
37373 Module getusershell.
37374 * m4/getusershell.m4: New file.
37377 * m4/physmem.m4: New file.
37380 * m4/posixver.m4: New file.
37383 * m4/quotearg.m4: New file.
37386 * m4/quote.m4: New file.
37389 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
37392 * m4/sig2str.m4: New file.
37395 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
37397 * m4/intmax_t.m4: New file.
37398 * m4/d-type.m4: Indentation.
37399 * m4/jm-macros.m4: Update.
37400 * m4/prereq.m4 (jm_PREREQ): Update.
37401 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
37402 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
37403 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
37404 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
37405 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
37406 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
37407 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
37408 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
37409 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
37410 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
37411 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
37412 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
37413 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
37414 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
37415 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
37416 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
37417 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
37418 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
37419 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
37421 2002-12-24 Bruno Haible <bruno@clisp.org>
37423 * MODULES.txt: Update according to m4/ changes.
37426 * config.rpath: New file, from gettext-0.11.5.
37428 * modules/*: New module descriptions.
37429 * gnulib-tool: New file.
37430 * MODULES.html.sh: New file.
37432 2002-12-21 Karl Berry <karl@gnu.org>
37434 * doc/fdl.texi: update to version 1.2.
37436 2002-12-19 Karl Berry <karl@gnu.org>
37438 * config/config.guess: update from prep.
37440 2002-12-18 Bruno Haible <bruno@clisp.org>
37442 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
37443 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
37445 2002-12-17 Bruno Haible <bruno@clisp.org>
37447 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
37448 stdlib.h, string.h.
37450 2002-12-17 Bruno Haible <bruno@clisp.org>
37452 * lib/canon-host.c (strdup): Remove unused declaration.
37454 * lib/fsusage.c: Include full_read.h.
37455 (get_fs_usage): Use full_read instead of safe_read.
37457 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
37459 2002-12-12 Karl Berry <karl@gnu.org>
37461 * config/config.guess: update from prep.
37463 2002-12-11 Bruno Haible <bruno@clisp.org>
37465 * m4/setenv.m4: New file, from gettext-0.11.5.
37467 2002-12-11 Bruno Haible <bruno@clisp.org>
37469 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
37471 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
37474 2002-12-11 Bruno Haible <bruno@clisp.org>
37476 * setenv.c (alloca): Fall back to malloc.
37477 (freea): New macro.
37478 (setenv): Use freea() to free memory allocated with alloca().
37480 2002-11-13 Bruno Haible <bruno@clisp.org>
37482 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
37483 function declarations.
37484 * unsetenv.c (unsetenv): Likewise.
37486 2002-03-04 Bruno Haible <bruno@clisp.org>
37488 Portability to AIX 4.3.3.
37489 * unsetenv.c: New file, extracted from setenv.c.
37490 * setenv.c: Move the unsetenv() function to unsetenv.c.
37492 2001-12-20 Bruno Haible <bruno@clisp.org>
37494 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
37495 use malloc instead. For SunOS 4.
37497 2001-12-11 Bruno Haible <bruno@clisp.org>
37499 * setenv.c: Declare alloca.
37500 (compar_fn_t): New typedef.
37501 (KNOWN_VALUE, STORE_VALUE): Use it.
37503 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
37506 2002-12-10 Paul Eggert <eggert@twinsun.com>
37508 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
37509 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
37510 Choose values that are less likely to collide with system fnmatch
37512 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
37513 defined (e.g., a pure POSIX system).
37514 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
37515 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
37517 2002-12-06 Paul Eggert <eggert@twinsun.com>
37519 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
37520 a pain in practice to deal with generated m4 files. This change
37521 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
37523 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
37524 and jm-glibc-io.m4, as they are no longer a special case.
37525 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
37526 kludge and the auto-generation stuff. Check only whether the
37527 functions are declared, not whether they exist, since older hosts
37528 that don't declare the functions can't use the optimization anyway.
37530 2002-12-06 Jim Meyering <jim@meyering.net>
37532 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
37534 Merge in changes from libc's misc/error.c, in preparation
37535 for the merge of gnulib's changes back into libc.
37537 * lib/error.c (_): Define only if not already defined.
37538 Move definition to follow all #include directives.
37539 Include unlocked-io.h only if !_LIBC.
37540 [_LIBC]: Include <libio/libioP.h>.
37541 [USE_IN_LIBIO]: Include <libio/iolibio.h>
37542 (fflush): Tweak definition to use INTUSE.
37545 2002-12-05 Paul Eggert <eggert@twinsun.com>
37547 * lib/alloca.c [defined emacs]: Include "lisp.h".
37548 (xalloc_die) [defined emacs]: New macro.
37549 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
37550 [! defined emacs]: Include <xalloc.h>.
37551 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
37552 (pointer): Typedef to POINTER_TYPE *.
37553 (malloc): Remove decl; we now always use xmalloc.
37554 (alloca): Use old-style definition, since Emacs needs this.
37555 Check for arithmetic overflow when computing combined size.
37557 2002-12-04 Paul Eggert <eggert@twinsun.com>
37559 Do not generate unlocked-io.h automatically, since it's easier to
37560 maintain it by hand.
37562 * lib/unlocked-io.h: New file, from GNU diffutils,
37563 but with proper copyright notice and attribution.
37564 * lib/gen-uio: Remove.
37565 * lib/Makefile.am: Add copyright notice.
37566 (libfetish_a_SOURCES): Add unlocked-io.h.
37567 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
37568 (DISTCLEANFILES, io_functions): Remove macros.
37569 (EXTRA_DIST): Remove gen_uio.
37570 (unlocked-io.h): Remove rule.
37572 2002-12-04 Jim Meyering <jim@meyering.net>
37574 Reflect the fact that stat.c and lstat.c are no longer generated.
37575 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
37576 (DISTCLEANFILES): Likewise.
37577 (EXTRA_DIST): Likewise.
37578 (all_local): Don't depend on stat.c or lstat.c.
37579 (stat.c, lstat.c): Remove rules.
37580 (EXTRA_DIST): Remove xstat.in.
37582 * lib/xstat.in: Remove file. Contents moved into stat.c.
37583 * lib/stat.c: New file. Contents mostly from xstat.in.
37584 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
37585 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
37587 * lib/safe-read.c: Rework so that it may serve to define safe_write,
37589 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
37591 2002-12-03 Jim Meyering <jim@meyering.net>
37593 * lib/safe-read.c, safe-write.c: Change variable names and comments,
37594 but not semantics, to minimize the differences between these two files.
37595 (safe_read): Change comment to mention SAFE_READ_ERROR.
37597 * lib/safe-read.c (IS_EINTR): Define.
37598 (safe_read): Use IS_EINTR in place of in-function cpp directives.
37600 2002-12-02 Jim Meyering <jim@meyering.net>
37602 * lib/safe-read.c (EINTR): Define.
37603 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37604 (INT_MAX): Provide fallback.
37605 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
37607 * lib/safe-read.h (SAFE_READ_ERROR): Define.
37609 2002-12-02 Bruno Haible <bruno@clisp.org>
37611 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
37612 Define, taken from safe-read.c.
37613 (INT_MAX): Provide fallback.
37614 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
37615 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
37617 * lib/safe-read.c (EINTR): Remove definition.
37618 (safe_read): Don't use EINTR if it is absent.
37620 2002-12-01 Jim Meyering <jim@meyering.net>
37622 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
37624 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
37626 2002-11-27 Paul Eggert <eggert@twinsun.com>
37628 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
37629 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
37630 with `if (! (value < limit)) abort ();', for readability.
37632 2002-11-26 Karl Berry <karl@gnu.org>
37634 * lib/strdup.c: copy from libc again, with jim's ok.
37635 * lib/.cppi-disable: re-add strdup.c
37637 2002-11-25 Karl Berry <karl@gnu.org>
37639 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
37640 instead of "strtol.c".
37642 2002-11-25 Karl Berry <karl@gnu.org>
37644 * config/install-sh: update from automake for variable quoting, $0 in
37647 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
37648 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
37651 2002-11-25 Jim Meyering <jim@meyering.net>
37653 * lib/mktime.c: Sync from libc, now that it has the latest fix.
37655 2002-11-24 Karl Berry <karl@gnu.org>
37657 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
37658 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
37660 2002-11-24 Jim Meyering <jim@meyering.net>
37662 Update from coreutils:
37664 * lib/mktime.c: Merge in changes from libc.
37666 Avoid a link-time failure on some Linux systems.
37667 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
37669 (__mon_yday): Declare with the STATIC attribute.
37670 (__mktime_internal): Likewise.
37671 Based on a report from Greg Schafer.
37673 2002-11-23 Jim Meyering <jim@meyering.net>
37675 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
37676 Use `unsigned', not `int', as type of index.
37678 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
37680 * lib/fsusage.c: Remove unneeded parentheses around operands of
37683 2002-11-22 Paul Eggert <eggert@twinsun.com>
37685 * lib/quotearg.h: Allow multiple inclusion by surrounding with
37686 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
37687 so that we can be included first.
37688 (PARAMS): Remove; we now assume C89 or later. All uses removed.
37689 * lib/quotearg.c: Include quotearg.h immediately after config.h.
37690 No need to include stddef.h or sys/types.h any more.
37691 Surround local include files with "", not "<>".
37692 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
37693 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
37694 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
37695 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
37696 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
37697 (ISPRINT): Remove; no longer needed now that we assume C89.
37699 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
37702 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
37703 quotearg_char): Use SIZE_MAX rather than
37704 (size_t) -1 when we are talking about "infinity".
37706 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
37708 2002-11-22 Paul Eggert <eggert@twinsun.com>
37710 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
37711 hint that one should use `if (! x) abort ();' rather than `assert
37712 (x);', and anyway it's one less thing to worry about configuring.
37713 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
37714 hash_rehash, hash_insert): Use abort rather than assert.
37716 2002-11-22 Bruno Haible <bruno@clisp.org>
37718 * lib/safe-read.h: Assume C89. Add comments.
37719 (safe_read): Change return type to size_t.
37720 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
37721 byte counts > SSIZE_MAX correctly.
37722 * lib/safe-write.h: New file.
37723 * lib/safe-write.c: New file.
37724 * lib/full-read.h: New file.
37725 * lib/full-read.c: New file.
37726 * lib/full-write.h: Assume C89. Add comments.
37727 * lib/full-write.c: Include safe-write.h.
37728 (full_write): Rewritten to use safe_write.
37729 Suggested by Jim Meyering and Paul Eggert.
37731 2002-11-21 Jim Meyering <jim@meyering.net>
37733 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
37735 Merge in changes from the coreutils.
37737 2002-09-25 Paul Eggert <eggert@twinsun.com>
37738 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
37740 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
37741 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
37742 int. Work more efficiently if X is the same width as uintmax_t.
37743 Do not compare X to -1, to avoid bogus compiler warning.
37744 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
37745 Don't assume that f_frsize and f_bsize are the same type.
37747 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
37748 warning on FreeBSD.
37750 * lib/makepath.c (make_path): Restore umask *before* creating the final
37752 (make_path): Minor reformatting.
37754 * lib/xmalloc.c: Adjust to work with new autoconf macros,
37755 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
37756 HAVE_MALLOC/HAVE_REALLOC.
37758 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
37759 dummy ones. At least on GNU/Linux systems, `auto' means something
37761 From Michael Stone.
37763 2002-11-21 Bruno Haible <bruno@clisp.org>
37765 Remove case insensitive option matching.
37766 * lib/argmatch.h (argcasematch): Remove declaration.
37767 (ARGCASEMATCH): Remove macro.
37768 (__xargmatch_internal): Remove case_sensitive argument.
37769 (XARGMATCH): Update.
37770 (XARGCASEMATCH): Remove macro.
37771 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
37772 case_sensitive argument.
37773 (argcasematch): Remove function.
37774 (__xargmatch_internal): Remove case_sensitive argument.
37775 (main): Use XARGMATCH instead of XARGCASEMATCH.
37777 * lib/xmalloc.c: Change compile-time error message. Add comment about
37778 required autoconf version.
37780 2002-11-20 Paul Eggert <eggert@twinsun.com>
37782 Merge argmatch cleanups from Bison. Assume C89.
37784 * lib/argmatch.c: Include config.h here, not in argmatch.h.
37785 Include stdlib.h, for EXIT_FAILURE.
37786 Always include <string.h>, since we assume C89.
37787 (EXIT_FAILURE): Remove pre-C89 bug workaround.
37788 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
37789 Include <stddef.h> instead, since it's all we need for size_t.
37790 (PARAMS): Remove. All uses removed.
37791 (ARRAY_CARDINALITY): Do not bother to #undef.
37792 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
37793 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
37794 Remove unnecessary parentheses.
37795 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
37796 Insert necessary parentheses.
37797 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
37798 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
37800 2002-11-19 Bruno Haible <bruno@clisp.org>
37802 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
37803 * lib/mbswidth.h: Include <stddef.h>, for size_t.
37805 * lib/mbswidth.h (PARAMS): Remove macro.
37806 (mbswidth, mbsnwidth): Use ANSI C function declarations.
37807 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
37809 * lib/gcd.h (PARAMS): Remove macro.
37810 (gcd): Use ANSI C function declarations.
37811 * lib/gcd.c (gcd): Likewise.
37813 2002-11-15 Bruno Haible <bruno@clisp.org>
37815 * lib/strcspn.c: Include <stddef.h>.
37816 (strcspn): Use ANSI C function declaration. Change return type to
37818 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
37819 (strpbrk): Use NULL.
37820 * lib/strpbrk.h (PARAMS): Remove macro.
37821 (strpbrk): Use ANSI C function declaration.
37822 * lib/strstr.c: Don't include <sys/types.h>.
37823 * lib/strstr.h (PARAMS): Remove macro.
37824 (strstr): Use ANSI C function declarations.
37826 2002-11-14 Karl Berry <karl@gnu.org>
37828 * config/mkinstalldirs: `do' on separate line, instead of
37831 2002-11-06 Bruno Haible <bruno@clisp.org>
37833 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
37834 * lib/gcd.c (gcd): Likewise.
37836 2002-11-05 Bruno Haible <bruno@clisp.org>
37838 * lib/gcd.h: New file, from gettext-0.11.5.
37839 * lib/gcd.c: New file, from gettext-0.11.5.
37841 2002-11-05 Bruno Haible <bruno@clisp.org>
37843 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37844 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37845 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37846 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
37848 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
37850 * lib/makepath.c: Include gettext.h instead of <locale.h> and
37853 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
37854 * lib/human.c: Include gettext.h instead of <libintl.h>.
37855 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
37856 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
37857 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
37858 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
37859 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
37860 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
37861 (textdomain): Remove definition.
37862 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
37864 * lib/long-options.c: Remove include of <libintl.h> and definition of
37866 * lib/same.c: Remove include of <libintl.h> and definition of _.
37868 2002-11-04 Owen Taylor <otaylor@redhat.com>
37870 * lib/config.charset: A few additions for Solaris.
37872 2002-11-04 Bruno Haible <haible@clisp.cons.org>
37874 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
37875 * lib/localcharset.c (locale_charset): Declare as extern "C".
37877 2002-11-04 Bruno Haible <haible@clisp.cons.org>
37879 * lib/config.charset: msdos in uk_UA uses CP1125.
37881 2002-11-04 Bruno Haible <bruno@clisp.org>
37883 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
37884 * lib/strcase.h: New file, from GNU gettext-0.11.5.
37885 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
37886 * lib/strstr.h: New file, from GNU gettext-0.11.5.
37887 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
37889 2002-11-04 Bruno Haible <bruno@clisp.org>
37891 * lib/localcharset.c (locale_charset): Don't return an empty string.
37893 2002-11-04 Bruno Haible <bruno@clisp.org>
37895 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
37898 2002-11-04 Bruno Haible <bruno@clisp.org>
37900 * lib/config.charset: Update for newest glibc. Add canonical names
37901 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
37903 2002-11-04 Bruno Haible <bruno@clisp.org>
37905 * lib/config.charset: Add support for NetBSD.
37907 2002-11-04 Bruno Haible <bruno@clisp.org>
37909 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
37911 2002-11-01 Bruno Haible <bruno@clisp.org>
37913 * configure.in: Add AC_CONFIG_AUX_DIR call.
37914 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
37916 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
37918 2002-09-28 Karl Berry <karl@gnu.org>
37920 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
37921 installed automake until the next release, since changes have been
37924 2002-09-25 Karl Berry <karl@gnu.org>
37926 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
37927 * lib/getopt*: copy from libc/posix.
37928 * lib/gettext.h: copy from gettext.
37929 * lib/.cppi-disable: add strdup.c, gettext.h.
37931 2002-09-25 Karl Berry <karl@gnu.org>
37933 * config/srclist.txt: enable gettext.h check.
37934 * config/config.{guess,sub}: update from prep.
37935 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
37936 from automake 1.6.3.
37939 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
37941 * regex.c (PATFETCH): Remove the translating fetch.
37942 (PATFETCH_RAW): Rename to PATFETCH.
37943 (set_image_of_range): New fun.
37944 (SET_RANGE_TABLE_WORK_AREA): Use it.
37945 (regex_compile): Don't translate the pattern chars so eagerly.
37946 Only do it when inserting an `exactn' bytecode or when handling
37948 (mutually_exclusive_p): Avoid empty statement.
37950 2002-07-06 Jim Meyering <meyering@lucent.com>
37952 * m4/README: Don't mention Makefile.am.in.
37953 Outline how I've tested changes to .m4 files. Yep, it's a pain.
37955 2002-07-01 Jim Meyering <meyering@lucent.com>
37957 * lib/c-stack.c: Include sys/time.h.
37958 From Volker Borchert.
37960 2002-06-26 Paul Eggert <eggert@twinsun.com>
37962 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
37964 2002-06-26 Paul Eggert <eggert@twinsun.com>
37966 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
37967 New macro. Use it uniformly instead of
37968 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
37969 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
37970 reported by Vin Shelton.
37972 2002-06-22 Paul Eggert <eggert@twinsun.com>
37974 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
37975 Do not assume SA_SIGINFO behavior.
37976 Bug reported by Jim Meyering on NetBSD 1.5.2.
37978 2002-06-22 Jim Meyering <meyering@lucent.com>
37980 * m4/c-stack.m4: New file, from diffutils-2.8.2.
37981 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
37983 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
37984 now that configure.ac uses AC_GNU_SOURCE.
37985 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
37986 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
37988 Update to latest tools. Suggestions from Paul Eggert.
37989 * m4/stdbool.m4: New file, from diffutils-2.8.2.
37990 * m4/gnu-source.m4: Update from diffutils-2.8.2.
37991 * m4/fnmatch.m4: Likewise.
37992 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
37993 to AC_HEADER_STDBOOL
37995 2002-06-22 Jim Meyering <meyering@lucent.com>
37997 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
37998 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38000 2002-06-22 Jim Meyering <meyering@lucent.com>
38002 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38004 * lib/exitfail.c, exitfail.h: Likewise.
38005 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38007 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38009 (EXTRA_DIST): Add fnmatch_loop.c.
38010 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38012 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38013 * lib/fnmatch.c: Update from diffutils-2.8.2.
38014 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
38015 * lib/fnmatch.h: Remove file.
38017 2002-06-21 Jim Meyering <meyering@lucent.com>
38019 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38020 * m4/mbrtowc.m4: Likewise.
38022 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38023 * m4/mbswidth.m4: Reflect name change:
38024 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38025 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38027 * m4/lib-link.m4: Update from gettext-0.11.2.
38028 * m4/gettext.m4: Likewise.
38030 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38031 From Alfred M. Szmidt.
38033 2002-06-18 Paul Eggert <eggert@twinsun.com>
38035 * lib/file-type.h: Report an error if neither S_ISREG nor
38036 S_IFREG is defined, instead of using a test specific to glibc
38037 2.2. This should be safe, since POSIX requires S_ISREG and
38038 Unix Version 7 had S_IFREG. We don't need to check for
38039 <sys/types.h> since we don't use any symbols that it defines.
38041 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
38043 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38044 $@-t, so that each temporary file name is unique and valid in the first
38045 8 characters, for operation under DOS.
38047 2002-06-15 Paul Eggert <eggert@twinsun.com>
38049 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38051 2002-06-15 Jim Meyering <meyering@lucent.com>
38053 Work even with DJGPP 2.03, which lacks support for symlinks.
38055 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38057 * lib/lchown.c (S_ISLNK): Likewise.
38059 2002-06-15 Jim Meyering <meyering@lucent.com>
38061 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38062 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38063 have been included before this file.
38065 2002-06-14 Jim Meyering <meyering@lucent.com>
38067 * lib/file-type.h: Use the version from diffutils-2.8.2.
38068 * lib/file-type.c: Likewise.
38070 2002-06-07 Jim Meyering <meyering@lucent.com>
38072 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38073 They're needed at least for NetBSD 1.5.2.
38074 ($statxfs_includes): Include those same headers.
38075 ($statxfs_includes): Include sys/vfs.h if available.
38076 ($statxfs_includes): Likewise for sys/statvfs.h.
38077 Check for the following members in both structs statfs and statvfs:
38078 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38080 2002-06-01 Jim Meyering <meyering@lucent.com>
38082 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38083 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38085 2002-05-28 Jim Meyering <meyering@lucent.com>
38087 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38088 Reported by Volker Borchert.
38090 2002-05-27 Jim Meyering <meyering@lucent.com>
38092 Fix a problem seen only on nonconforming systems whereby ls.c's
38093 use of localtime, and then of gettimeofday would cause trouble:
38094 the localtime call used to initialize rpl_gettimeofday's save
38095 mechanism would clobber ls's current local time information so
38096 that in any long listing the first file would always be listed
38097 with date 1970-01-01. Analysis by Volker Borchert.
38099 * lib/gettimeofday.c (localtime): Undefine.
38100 (rpl_localtime): New function.
38102 2002-05-27 Jim Meyering <meyering@lucent.com>
38104 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
38107 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
38108 use the replacement function; it wouldn't resolve at link time.
38109 Reported by Volker Borchert.
38111 2002-05-22 Jim Meyering <meyering@lucent.com>
38113 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
38115 * lib/file-type.h: New file.
38116 * lib/file-type.c (file_type): New file/function. Extracted from
38119 2002-04-30 Jim Meyering <meyering@lucent.com>
38121 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
38123 2002-04-29 Paul Eggert <eggert@twinsun.com>
38125 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
38127 2002-04-29 Paul Eggert <eggert@twinsun.com>
38129 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
38130 Do not check for alloca.h (no longer used) or stdbool.h (was never
38131 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
38133 2002-04-29 Paul Eggert <eggert@twinsun.com>
38135 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
38137 2002-04-29 Jim Meyering <meyering@lucent.com>
38139 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
38140 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
38141 Use AC_FUNC_STRNLEN here instead.
38143 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
38144 With autoconf-2.53a, it's part of AC_PROG_CC.
38146 2002-04-28 Paul Eggert <eggert@twinsun.com>
38148 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
38149 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
38151 2002-04-28 Paul Eggert <eggert@twinsun.com>
38153 * lib/sig2str.h, lib/sig2str.c: New files.
38154 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
38156 2002-04-28 Paul Eggert <eggert@twinsun.com>
38158 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
38159 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
38160 of 127, since 64 is the largest conceivable number for ancient
38162 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
38164 2002-04-28 Jim Meyering <meyering@lucent.com>
38166 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
38168 2002-04-24 Jim Meyering <meyering@lucent.com>
38170 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
38171 (jm_PREREQ): Use it.
38173 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
38174 mach/mach.h fcntl.h.
38175 Check for this function: setlocale.
38177 2002-04-24 Jim Meyering <meyering@lucent.com>
38179 * lib/gettext.h: New file, from Gettext.
38180 * lib/Makefile.am (INCLUDES): Remove -I../intl.
38181 (libfetish_a_SOURCES): Add gettext.h.
38183 2002-04-16 Jim Meyering <meyering@lucent.com>
38185 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
38186 ut_pid, ut_id, ut_exit.
38188 2002-04-16 Jim Meyering <meyering@lucent.com>
38190 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
38191 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
38192 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
38194 2002-04-12 Jim Meyering <meyering@lucent.com>
38196 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
38197 now-bogus check for f_type in sys/mount.h. Instead, just test for the
38198 existence of the getmntinfo function. Needed for Darwin 5.3.
38200 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
38201 This is necessary at least on Darwin 5.3.
38203 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
38204 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
38205 strnlen.o in the library, and that makes some versions of ranlib
38208 2002-04-12 Jim Meyering <meyering@lucent.com>
38210 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
38212 2002-04-09 Jim Meyering <meyering@lucent.com>
38214 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
38215 to be more precise. Rather than saying we're checking whether the
38216 function `works', say what we're testing.
38217 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
38218 Reported by Bruno Haible.
38220 2002-03-10 Jim Meyering <meyering@lucent.com>
38222 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
38223 Suggestion from Santiago Vila.
38225 2002-03-08 Jim Meyering <meyering@lucent.com>
38227 * lib/rename.c: Mention that this wrapper is needed also on
38228 mips-dec-ultrix4.4 systems.
38230 2002-03-02 Jim Meyering <meyering@lucent.com>
38232 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
38233 not HAVE_CLOCK_SETTIME.
38235 2002-02-27 Paul Eggert <eggert@twinsun.com>
38237 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
38238 Check for clock_settime.
38240 2002-02-27 Paul Eggert <eggert@twinsun.com>
38242 * lib/nanosleep.h: Rename to....
38243 * lib/timespec.h: New name for nanosleep.h. All uses changed.
38245 * lib/gettime.c: New file.
38246 * lib/settime.c: New file.
38247 * lib/stime.c: Remove.
38249 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
38250 timespec.h. Remove nanosleep.h.
38252 2002-02-25 Paul Eggert <eggert@twinsun.com>
38254 * m4/acl.m4: New file.
38255 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
38256 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
38258 2002-02-25 Paul Eggert <eggert@twinsun.com>
38260 * lib/acl.c, lib/acl.h: New files.
38261 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
38263 2002-02-24 Jim Meyering <meyering@lucent.com>
38265 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
38266 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
38267 cause trouble. Reported by Nelson Beebe.
38269 2002-02-23 Paul Eggert <eggert@twinsun.com>
38271 * lib/path-concat.c (xpath_concat): Reorder code to pacify
38272 compilers that don't know that xalloc_die never returns.
38274 2002-02-20 Jim Meyering <meyering@lucent.com>
38276 * lib/getdate.c: Regenerate using bison-1.33.
38278 2002-02-17 Jim Meyering <meyering@lucent.com>
38280 * config/config.guess (main): Don't use `head -1'; it's no longer
38281 portable. Use `sed 1q' instead.
38283 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
38285 * m4/codeset.m4: Upgrade to gettext-0.11.
38286 * m4/gettext.m4: Upgrade to gettext-0.11.
38287 * m4/glibc21.m4: Upgrade to gettext-0.11.
38288 * m4/iconv.m4: Upgrade to gettext-0.11.
38289 * m4/isc-posix.m4: Upgrade to gettext-0.11.
38290 * m4/lcmessage.m4: Upgrade to gettext-0.11.
38291 * m4/lib-ld.m4: New file, from gettext-0.11.
38292 * m4/lib-link.m4: New file, from gettext-0.11.
38293 * m4/lib-prefix.m4: New file, from gettext-0.11.
38294 * m4/progtest.m4: Upgrade to gettext-0.11.
38296 2002-02-15 Paul Eggert <eggert@twinsun.com>
38298 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
38299 (jm_PREREQ): Use it.
38301 2002-02-15 Paul Eggert <eggert@twinsun.com>
38303 * lib/posixver.c, lib/posixver.h: New files.
38304 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38306 2002-02-02 Paul Eggert <eggert@twinsun.com>
38307 Bruno Haible <bruno@clisp.org>
38309 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
38310 (fwrite_success_callback): New declaration.
38311 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
38312 print_unicode_char. Call failure callback instead of error.
38313 (fwrite_success_callback): New function.
38314 (exit_failure_callback): New function.
38315 (fallback_failure_callback): New function.
38316 (print_unicode_char): Call unicode_to_mb.
38318 2002-01-26 Jim Meyering <meyering@lucent.com>
38320 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
38321 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
38323 2002-01-26 Jim Meyering <meyering@lucent.com>
38325 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
38327 2002-01-22 Paul Eggert <eggert@twinsun.com>
38329 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
38331 2002-01-22 Jim Meyering <meyering@lucent.com>
38333 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
38334 Otherwise, some versions of automake would omit the rule that makes
38335 Makefile from Makefile.in.
38337 2002-01-21 Paul Eggert <eggert@twinsun.com>
38339 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
38340 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38341 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
38342 (memcoll): Set errno to zero if there is no error.
38344 * lib/quotearg.c (quotearg_buffer_restyled):
38345 Fix bug with quoting buffers containing NUL when backslashing escapes.
38346 This bug was exposed by the other changes in this patch.
38347 (quotearg_n_options): New arg ARGSIZE.
38348 All callers changed.
38349 (quoting_options_from_style): New function.
38350 (quotearg_n_style): Use it.
38351 (quotearg_n_style_mem): New function.
38353 * lib/quotearg.h (quotearg_n_style_mem): New function.
38355 2002-01-19 Jim Meyering <meyering@lucent.com>
38357 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
38358 Remove useless quotes: DF_PROG="df".
38359 * m4/strnlen.m4: New file.
38361 2002-01-16 Paul Eggert <eggert@twinsun.com>
38363 * lib/backupfile.c (ISDIGIT): Comment fix.
38364 * lib/getdate.y (ISDIGIT): Likewise.
38365 * lib/posixtm.c (ISDIGIT, year): Likewise.
38366 * lib/strverscmp.c (ISDIGIT): Likewise.
38367 * lib/userspec.c (ISDIGIT): Likewise.
38369 2002-01-16 Jim Meyering <meyering@lucent.com>
38371 * lib/getdate.y: Add three semicolons, each just before a closing
38372 brace. Bison (as of version 1.31) no longer papers over that mistake.
38374 2002-01-05 Jim Meyering <meyering@lucent.com>
38376 * lib/version-etc.c (version_etc_copyright): Update copyright year.
38378 2001-12-19 Paul Eggert <eggert@twinsun.com>
38380 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
38381 not silently exit merely because the output buffer happens to
38382 have nothing pending.
38384 2001-12-18 Paul Eggert <eggert@twinsun.com>
38386 See the big note in ../ChangeLog.
38387 * lib/human.c (suffixes): Prefer K to k for 1024.
38388 (generate_suffix_backwards): New function.
38389 (human_readable_inexact): Use it.
38390 * lib/xstrtol.c (__xstrtol): If there is no number but there
38391 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
38392 Accept 'K' as well as 'k'.
38394 2001-12-15 Jim Meyering <meyering@lucent.com>
38396 * lib/regex.h (__restrict_arr): Update from libc.
38398 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
38399 as `remote' if the name starts with `//'. Suggested by Michael Stone.
38402 2001-12-14 Jim Meyering <meyering@lucent.com>
38404 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
38405 Suggestion from Bruno Haible.
38407 2001-12-10 Jim Meyering <meyering@lucent.com>
38409 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
38410 xrealloc, Instead, include "xalloc.h".
38411 (initbuffer): Don't cast xmalloc return value to char*.
38412 (readline): Reword comment.
38413 Don't cast xrealloc return value to char*
38414 Return NULL, not 0.
38416 2001-12-09 Jim Meyering <meyering@lucent.com>
38418 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
38419 about `signed and unsigned type in conditional expression'.
38420 * lib/posixtm.c (posix_time_parse): Likewise.
38422 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
38424 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
38425 to avoid a pedantic warning.
38427 * lib/getstr.c: Don't include assert.h.
38428 (getstr): Remove warning-evoking assertions.
38429 Return -1 if offset parameter is out of bounds.
38430 Change the type of a local from int to size_t.
38432 * lib/strftime.c (my_strftime_localtime_r): Include this function
38433 definition in the `#if ! HAVE_TM_GMTOFF' block.
38435 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
38436 Include xalloc.h instead.
38438 2001-12-02 Jim Meyering <meyering@lucent.com>
38440 * lib/tempname.c: Don't declare getenv, thus reverting the change of
38441 2001-11-18. It's no longer necessary, now that stdlib.h is always
38444 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
38445 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
38447 2001-11-30 Akim Demaille <akim@epita.fr>
38449 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
38450 before being defined.
38452 2001-11-27 Paul Eggert <eggert@twinsun.com>
38454 * lib/quotearg.h (quotearg_n, quotearg_n_style):
38455 First arg is int, not unsigned.
38456 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
38457 (SIZE_MAX, UINT_MAX): New macros.
38458 (quotearg_n_options): Abort if N is negative.
38459 Avoid overflow check on hosts where size_t is 64 bits and int
38460 is 32 bits, as overflow is impossible there.
38461 Fix off-by-one typo that caused unnecessary reallocation.
38463 2001-11-27 Jim Meyering <meyering@lucent.com>
38465 * lib/tempname.c: Merge with version from libc.
38466 * lib/regex.c: Likewise.
38468 * lib/tempname.c: Include stdlib.h unconditionally. On some old
38469 systems for which STDC_HEADERS is 0, it was not included, resulting in
38470 a warning about an integer-to-pointer conversion problem with getenv.
38471 Reported by Volker Borchert.
38473 2001-11-26 Jim Meyering <meyering@lucent.com>
38475 * lib/gtod.h: Remove file.
38476 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
38477 * lib/gettimeofday.c: Don't include gtod.h.
38478 (GTOD_init): Remove function.
38479 (rpl_gettimeofday): Do its job here instead, rather than aborting.
38480 Suggestion from Volker Borchert.
38482 2001-11-23 Jim Meyering <meyering@lucent.com>
38484 * lib/hash.h (struct hash_table): Don't define here. Merely declare
38486 * lib/hash.c (struct hash_table): Define it here instead.
38488 2001-11-22 Jim Meyering <meyering@lucent.com>
38490 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
38492 2001-11-20 Jim Meyering <meyering@lucent.com>
38494 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
38495 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
38497 2001-11-19 Jim Meyering <meyering@lucent.com>
38499 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
38500 directory. Use "conftestXXXXXX" as the template.
38501 Suggestion from Paul Eggert.
38503 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
38504 immediately, so the test doesn't mistakenly hit the max-open-files
38507 2001-11-18 Paul Eggert <eggert@twinsun.com>
38509 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
38510 (TEMPORARIES): New macro.
38511 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
38512 removes an artificial limitation (e.g. HP-UX 10.20, where
38515 2001-11-18 Jim Meyering <meyering@lucent.com>
38517 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
38519 2001-11-18 Jim Meyering <meyering@lucent.com>
38521 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
38524 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
38525 files will be created before anything else.
38527 2001-11-17 Paul Eggert <eggert@twinsun.com>
38529 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
38530 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
38532 2001-11-17 Jim Meyering <meyering@lucent.com>
38534 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
38535 Prompted by a report from Bob Proulx.
38537 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
38538 Instead, require UTILS_FUNC_MKSTEMP.
38540 2001-11-17 Jim Meyering <meyering@lucent.com>
38542 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
38543 Now, that's done as part of AC_FUNC_STRTOD.
38545 2001-11-17 Jim Meyering <meyering@lucent.com>
38547 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
38548 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
38549 rather than group writable. Patch by Juan F. Codagnone.
38551 * lib/readtokens.c: Remove explicit declarations of xmalloc and
38552 xrealloc, Instead, include "xalloc.h".
38554 * lib/mountlist.c: Include unlocked-io.h after all system headers.
38555 Remove explicit declarations of xmalloc, xrealloc,
38556 and xstrdup. Instead, include "xalloc.h".
38558 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
38560 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
38562 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
38564 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
38565 Reported by Padraig Brady.
38567 * lib/mkstemp.c: #undef mkstemp.
38569 (rpl_mkstemp): Rename from mkstemp.
38572 2001-11-16 Jim Meyering <meyering@lucent.com>
38574 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
38575 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
38576 determine the amount of total physical memory, use pstat_getstatic.
38577 HPUX-11 doesn't define _SC_PHYS_PAGES.
38578 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
38579 If sysconf couldn't be used to determine the amount of available
38580 physical memory, use both pstat_getstatic and pstat_getdynamic.
38581 Based on a patch from Bob Proulx.
38583 2001-11-10 Jim Meyering <meyering@lucent.com>
38585 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
38586 (jm_PREREQ): Use it.
38588 2001-11-09 Jim Meyering <meyering@lucent.com>
38590 * m4/jm-macros.m4: Require autoconf-2.52f.
38591 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
38592 Use these AC_-prefixed names, not the AM_-prefixed ones.
38594 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
38596 2001-11-05 Jim Meyering <meyering@lucent.com>
38598 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
38600 2001-11-04 Jim Meyering <meyering@lucent.com>
38602 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
38605 2001-11-03 Jim Meyering <meyering@lucent.com>
38607 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
38610 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
38611 know the name of the variable in the macro definition.
38613 2001-11-03 Jim Meyering <meyering@lucent.com>
38615 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
38616 in argmatch_to_argument call.
38618 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
38621 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
38622 e.g., a fault due to an attempt to free a NULL pointer.
38624 2001-11-01 Jim Meyering <meyering@lucent.com>
38626 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
38627 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
38629 2001-11-01 Jim Meyering <meyering@lucent.com>
38631 * lib/dirfd.c, lib/dirfd.h: New files.
38632 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
38634 * lib/hash.c (hash_print) [TESTING]: Clean up.
38636 2001-10-22 Paul Eggert <eggert@twinsun.com>
38638 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
38639 to avoid a warning if -Wall.
38641 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
38644 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
38645 (per RMS's instructions, this is now the canonical source)
38646 * lgpl/, gpl/: New directories.
38648 2001-10-21 Paul Eggert <eggert@twinsun.com>
38650 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
38652 2001-10-21 Jim Meyering <meyering@lucent.com>
38654 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
38655 this code would end up calling gettext even in packages built
38656 with --disable-nls.
38657 * lib/getopt.c (_): Likewise.
38658 * lib/regex.c (_): Likewise.
38660 2001-10-20 Paul Eggert <eggert@twinsun.com>
38662 * m4/error.m4 (jm_PREREQ_ERROR):
38663 Do not invoke AC_CHECK_FUNCS with strerror_r, as
38664 AC_FUNC_STRERROR_R does that.
38665 Check for strerror declaration.
38667 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
38668 are supposed to have them these days.
38669 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
38670 Merge changes from latest Autoconf CVS.
38671 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
38672 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
38673 POSIX decided to standardize on the int flavor of strerror_r.
38675 2001-10-20 Paul Eggert <eggert@twinsun.com>
38677 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
38678 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
38679 Use strerror_r that is only a macro, even if it is not a function.
38680 (strerror): Check for HAVE_DECL_STRERROR before declaring.
38681 (private_strerror): Use prototypes, not old-style function definition.
38682 (print_errno_message): New function.
38683 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
38684 char*-flavored one.
38685 (error_tail, error, error_at_line): Use it.
38687 2001-10-11 Jim Meyering <meyering@lucent.com>
38689 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
38690 and quote_n (1, ... to avoid clobbering a buffer.
38692 2001-10-05 Jim Meyering <meyering@lucent.com>
38694 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
38696 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
38697 * lib/hash-pjw.h: New file.
38699 2001-09-30 Jim Meyering <meyering@lucent.com>
38701 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
38702 `struct fsstat' has the `f_fstypename' member.
38703 Use that to define FS_TYPE, which is now used to make
38704 the getfsstat link test tighter.
38706 2001-09-30 Jim Meyering <meyering@lucent.com>
38708 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
38709 Include <sys/ucred.h>, for Apple Darwin.
38710 Include sys/mount.h and sys/fs_types.h only if available.
38712 (read_filesystem_list): Use FS_TYPE.
38714 2001-09-29 Paul Eggert <eggert@twinsun.com>
38716 * lib/exclude.c (excluded_filename): 0 -> false, since it's
38719 2001-09-29 Jim Meyering <meyering@lucent.com>
38721 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
38722 [one-argument getmntent function]): Include stdio.h before mntent.h.
38723 SunOS 4.1.x needs it for the declaration of `FILE'.
38724 Patch by Volker Borchert.
38726 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
38727 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
38728 sys/fs_types.h, and make the link-test for getfsstat guard #include
38729 directives with appropriate #if HAVE_*_H tests so that we can
38730 detect getfsstat on Apple Darwin1.3.7 systems.
38731 Reported by Nelson Beebe.
38732 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
38734 2001-09-28 Paul Eggert <eggert@twinsun.com>
38736 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
38737 #defines strtoimax. Also treat the other strto* functions
38740 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
38741 Check for strtoul and strtoumax,
38742 as those declarations are made even in the signed case.
38743 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
38744 Likewise, for strtol and strtoimax.
38746 2001-09-28 Paul Eggert <eggert@twinsun.com>
38748 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
38749 #defines strtoimax. Also treat the other strto* functions
38752 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
38753 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
38754 (strtoimax, strtoumax): Do not declare if already defined as a macro.
38756 2001-09-26 Jim Meyering <meyering@lucent.com>
38758 Most macros in unlocked-io.h had the wrong number of arguments.
38759 * lib/gen-uio: New script.
38760 (USE_UNLOCKED_IO): Define to 1 if not already defined.
38761 * lib/unlocked-io.hin: Remove file.
38762 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
38763 rather than trying to embed it here.
38764 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
38765 Reported by Padraig Brady.
38767 2001-09-25 Volker Borchert <bt@teknon.de>
38769 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
38772 2001-09-24 Jim Meyering <meyering@lucent.com>
38774 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
38776 2001-09-23 Jim Meyering <meyering@lucent.com>
38778 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
38779 instead of the mere test for existence of mntent.h. The latter
38780 would get a false-positive on AIX 3.4 systems.
38781 In the outer getmntent if-block, don't die if neither of the getmntent
38782 tests succeeds. Instead, just fall through and continue with the
38785 2001-09-23 Jim Meyering <meyering@lucent.com>
38787 * lib/mountlist.c: Remove useless parentheses in #if directives.
38788 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
38789 the deprecated MOUNTED symbol is no longer defined in mntent.h.
38791 2001-09-22 Jim Meyering <meyering@lucent.com>
38793 * m4/gettext.m4: New file. From gettext.
38794 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
38795 * m4/progtest.m4: Likewise
38796 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
38797 * m4/glibc21.m4: Likewise.
38799 * m4/libintl.m4: Remove. No longer used.
38801 2001-09-22 Jim Meyering <meyering@lucent.com>
38803 * lib/localcharset.c: Update from latest gettext.
38804 * lib/config.charset: Likewise.
38806 2001-09-20 Jim Meyering <meyering@lucent.com>
38808 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
38810 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
38813 2001-09-20 Jim Meyering <meyering@lucent.com>
38815 * lib/xstrtol.c (strtoimax): Guard declaration with
38816 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
38817 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
38818 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
38819 (strtoumax): Likewise, for completeness (it wasn't necessary).
38821 2001-09-17 Paul Eggert <eggert@twinsun.com>
38823 * lib/strtoimax.c (HAVE_LONG_LONG):
38824 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
38825 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
38826 to work around bug in IBM C compiler.
38828 2001-09-17 Jim Meyering <meyering@lucent.com>
38830 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
38831 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
38832 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
38833 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
38834 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
38835 whenever the right hand side need not be expanded by the shell.
38837 2001-09-16 Paul Eggert <eggert@twinsun.com>
38839 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
38840 library. It's not correct, as some older glibcs are buggy.
38841 fnmatch wasn't fixed until glibc 2.2.
38843 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
38844 special shell magic here.
38846 2001-09-16 Jim Meyering <meyering@lucent.com>
38848 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
38849 * m4/jm-macros.m4: Require it.
38851 2001-09-16 Jim Meyering <meyering@lucent.com>
38853 * lib/mkdir.c: New file.
38855 2001-09-15 Jim Meyering <meyering@lucent.com>
38857 * m4/jm-macros.m4: Check for help2man.
38859 2001-09-11 Jim Meyering <meyering@lucent.com>
38861 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
38862 The body, by Paul Eggert, was moved here from configure.in.
38863 * m4/jm-macros.m4: Require UTILS_HOST_OS.
38865 2001-09-04 Paul Eggert <eggert@twinsun.com>
38867 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
38868 (jm_PREREQ): Use it.
38870 2001-09-04 Paul Eggert <eggert@twinsun.com>
38872 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
38873 Use ssize_t, not int, to store result of readlink.
38874 Check for ssize_t overflow as well as size_t overflow,
38875 as POSIX says the result of readlink is implementation-defined
38876 when ssize_t overflows.
38877 Remove unnecessary cast to char*.
38878 Use free+malloc instead of realloc, as the storage doesn't need
38879 to be preserved and it's clearer and can be more efficient that way.
38880 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
38881 * lib/xreadlink.h (xreadlink): Update prototype.
38883 2001-09-04 Paul Eggert <eggert@twinsun.com>
38885 * lib/xgetcwd.c: Revert some of the previous change; intead,
38886 fix the HAVE_GETCWD_NULL code to behave more like the
38887 !HAVE_GETCWD_NULL code used to.
38889 Include "xalloc.h".
38890 (xgetcwd): Do not return NULL when memory is exhausted; instead,
38893 2001-09-03 Paul Eggert <eggert@twinsun.com>
38895 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
38896 sys/param.h, as pathmax.h includes them.
38898 2001-09-03 Paul Eggert <eggert@twinsun.com>
38900 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
38901 (jm_PREREQ_XGETCWD): New macro.
38903 * m4/getcwd.m4: New file.
38905 2001-09-03 Paul Eggert <eggert@twinsun.com>
38907 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
38908 like the HAVE_GETCWD_NULL code.
38909 Include pathmax.h if not HAVE_GETCWD.
38910 Do not include xalloc.h.
38911 (INITIAL_BUFFER_SIZE): New symbol.
38912 Do not use xmalloc / xrealloc, since the caller is responsible for
38913 handling errors. Preserve errno around `free' during failure.
38914 Do not overrun buffer when using getwd.
38916 2001-09-03 Paul Eggert <eggert@twinsun.com>
38918 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
38919 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
38922 2001-09-03 Paul Eggert <eggert@twinsun.com>
38924 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
38925 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
38926 spotted by Jim Meyering.
38928 2001-09-03 Jim Meyering <meyering@lucent.com>
38930 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
38933 2001-09-02 Jim Meyering <meyering@lucent.com>
38935 * lib/error.c: Update from GNU libc.
38937 2001-09-01 Jim Meyering <meyering@lucent.com>
38939 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
38942 2001-09-01 Jim Meyering <meyering@lucent.com>
38944 * lib/xreadlink.c: New file.
38945 * lib/xreadlink.h: New file.
38946 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
38949 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
38950 doesn't conflict with sparc Solaris 7's definition in
38951 /usr/include/sys/int_types.h.
38953 * lib/exclude.c: Use `""', not `<>' to #include non-system header
38955 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
38956 and strncasecmp as r-values. Unixware didn't have declarations.
38958 2001-08-31 Paul Eggert <eggert@twinsun.com>
38960 * lib/xstrtol.h: Add copyright notice.
38961 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
38962 LONGINT_INVALID_SUFFIX_CHAR.
38964 2001-08-31 Paul Eggert <eggert@twinsun.com>
38966 * lib/xstrtol.c (strtoimax): New decl.
38968 2001-08-31 Paul Eggert <eggert@twinsun.com>
38970 * lib/xgetcwd.c: Don't include pathmax.h.
38971 Include stdlib.h and unistd.h if available.
38973 (xmalloc, xstrdup, free): Remove decls.
38974 (xgetcwd): Don't assume sizes fit in unsigned.
38975 Check for overflow when computing sizes.
38976 Simplify reallocation code.
38978 2001-08-31 Paul Eggert <eggert@twinsun.com>
38980 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
38981 a directory's st_size can have an arbitrary value, so the old
38982 usage could waste an arbitrary amount of memory. All uses
38984 * lib/savedir.h: Update prototype.
38986 2001-08-31 Paul Eggert <eggert@twinsun.com>
38988 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
38990 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
38993 Also, make the following further changes to make this file's
38994 configuration more similar to that of strtol.c:
38995 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
38996 (strtoumax, uintmax_t, strtoull, strtol): Remove.
38997 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
38998 (strtoimax): Renamed from strtoumax. All uses of unsigned values
38999 changed to signed values.
39001 And make the following changes as well:
39002 Fix copyright notice, as 1999 was missing.
39003 (verify): New macro.
39004 (strtoimax): Check sizes at compile-time, not run-time.
39005 Prefer strtol to strtoll if both work.
39006 (main): Remove; it was not that useful and was a pain to maintain.
39008 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39010 2001-08-31 Jim Meyering <meyering@lucent.com>
39012 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39013 Use an initial, malloc'd, buffer of length 128 rather than
39014 a statically allocated one of length 1024.
39016 2001-08-30 Paul Eggert <eggert@twinsun.com>
39018 Simplify code, partly by assuming autoconf 2.52 semantics.
39020 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39022 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39023 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39025 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39026 Move AC_REQUIRE to next-to-top level, to avoid confusion.
39027 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39028 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39029 jm_AC_HEADER_INTTYPES_H.
39030 * m4/jm-macros.m4 (jm_MACROS): Likewise.
39032 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39034 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39035 Quote first arg of AC_DEFUN.
39036 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39037 since they are needed to parse the include file even if we need
39038 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
39039 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39040 but with opposite signedness.
39042 2001-08-30 Paul Eggert <eggert@twinsun.com>
39044 Merge 'exclude' changes from tar 1.13.22.
39045 This fixes one or two unlikely storage allocation overflow bugs,
39046 but doesn't change user-visible behavior otherwise.
39048 2001-08-30 Paul Eggert <eggert@twinsun.com>
39050 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39051 (jm_PREREQ_EXCLUDE): New macro.
39053 2001-08-30 Paul Eggert <eggert@twinsun.com>
39055 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39058 2001-08-30 Paul Eggert <eggert@twinsun.com>
39060 * lib/hash.c: Remove '2001' from copyright notice.
39062 2001-08-30 Paul Eggert <eggert@twinsun.com>
39064 * lib/full-write.h: New file.
39065 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39066 * lib/full-write.c: Correct credits, as cccp.c no longer
39067 exists and anyway it was so heavily changed from the old cccp
39068 code as to be unrecognizable. Include full-write.h.
39069 (full_write) Return size_t, with short writes meaning failure.
39070 All callers changed. This fixes a bug with large buffers
39072 * lib/utime.c: Include full-write.h.
39074 2001-08-30 Paul Eggert <eggert@twinsun.com>
39076 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39077 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39078 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39079 Include if available.
39080 (<xalloc.h>): Include
39081 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39082 (verify): New macro. Use it to verify that EXCLUDE macros do not
39083 collide with FNM macros.
39084 (struct patopts): New struct.
39085 (struct exclude): Use it, as exclude patterns now come with options.
39086 (new_exclude): Support above changes.
39087 (new_exclude, add_exclude_file):
39088 Initial size must now be a power of two to simplify overflow checking.
39089 (free_exclude, fnmatch_no_wildcards): New function.
39090 (excluded_filename): No longer requires options arg, as the options
39091 are determined by add_exclude. Now returns bool, not int.
39092 (excluded_filename, add_exclude):
39093 Add support for the fancy new exclusion options.
39094 (add_exclude, add_exclude_file): Now takes int options arg.
39095 Check for arithmetic overflow when computing sizes.
39096 (add_exclude_file): xrealloc might modify errno, so don't
39097 realloc until after errno might be used.
39099 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
39101 (free_exclude): New decl.
39102 (add_exclude, add_exclude_file): Now takes int options arg.
39103 (excluded_filename): No longer requires options arg, as the options
39104 are determined by add_exclude. Now returns bool, not int.
39106 2001-08-30 Paul Eggert <eggert@twinsun.com>
39108 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
39110 2001-08-27 Jim Meyering <meyering@lucent.com>
39112 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
39114 * lib/version-etc.c (N_): Remove definition.
39115 Revert most of last change.
39116 Instead, simply don't mark the `Copyright...' string for translation.
39117 Based on advice from Paul Eggert.
39119 * lib/strtoxmax.c: Tweak comment.
39121 2001-08-26 Jim Meyering <meyering@lucent.com>
39123 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
39125 * m4/xstrtoimax.m4: New file.
39126 * m4/xstrtoumax.m4: Add comments explaining why we
39127 AC_REPLACE_FUNCS(strtol).
39129 2001-08-26 Jim Meyering <meyering@lucent.com>
39131 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
39132 of copyright with `%s' so translators don't get an untranslated
39134 (COPYRIGHT_YEAR): Define.
39135 (version_etc): Use fprintf rather than fputs.
39136 Suggestion from Ulrich Drepper.
39138 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
39140 * lib/strtoll.c: New file, from GNU libc.
39141 * lib/xstrtoimax.c: New file.
39143 * lib/xstrtol.h: Add xstrtoimax.
39144 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
39145 * lib/strtoimax.c: New file. Likewise, but first define
39148 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
39150 * lib/strtoxmax.c: ... then renamed to this.
39152 2001-08-18 Paul Eggert <eggert@twinsun.com>
39154 * m4/inttypes.m4: Add AC_PREREQ(2.13).
39155 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
39156 (jm_AC_TYPE_INTMAX_T): New macro.
39157 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
39159 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
39161 * m4/longlong.m4: Renamed from ulonglong.m4.
39162 * m4/inttypes.m4: Renamed from inttypes_h.m4.
39163 * m4/uintmax_t.m4: Removed.
39165 2001-08-13 Paul Eggert <eggert@twinsun.com>
39167 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
39168 Port to Solaris 8, where 'sed' requires a space after the 'r'
39169 command, and where sh dislikes "$/". Clean up the spacing a bit.
39170 Redirect output to $tmp just once.
39172 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
39174 * lib/addext.c (<errno.h>): Include.
39175 (errno): Declare if not defined.
39176 (addext): Work correctly when pathconf returns -1 and leaves
39177 errno alone because there is no limit. Also, work even if
39178 pathconf returns a value greater than SIZE_MAX.
39180 2001-08-12 Jim Meyering <meyering@lucent.com>
39182 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
39183 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
39184 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
39185 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
39186 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
39187 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
39188 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
39189 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
39190 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
39191 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
39192 utime.m4, utimes.m4, xstrtoumax.m4:
39193 Quote the first argument in each use of AC_DEFUN.
39195 2001-08-12 Jim Meyering <meyering@lucent.com>
39197 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
39198 Simply `return getcwd (NULL, 0);'.
39199 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
39200 Use 1300 as initial value for length, not PATH_MAX.
39202 * lib/pathmax.h: Clean up cpp syntax.
39204 2001-08-12 Jim Meyering <meyering@lucent.com>
39206 * lib/gettimeofday.c: New file.
39207 * lib/gtod.h: New file.
39208 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
39210 2001-08-05 Jim Meyering <meyering@lucent.com>
39212 * m4/jm-macros.m4: Require autoconf-2.52.
39214 2001-08-04 Jim Meyering <meyering@lucent.com>
39216 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
39217 stmt, to get in sync with glibc.
39219 2001-08-03 Paul Eggert <eggert@twinsun.com>
39221 The following changes are from gettext 0.10.39 as maintained by
39224 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
39225 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
39226 with inverted sense. All uses changed.
39228 * lib/mbswidth.c: Don't include <limits.h>.
39229 Include <stdlib.h> and <string.h> unconditionally.
39230 (iswcntrl, mbsinit, ISCNTRL): New macros.
39231 (mbsnwidth): Use K&R style function declarations.
39232 Don't bother checking for MB_LEN_MAX == 1, since the compiler
39233 can optimize it when MB_CUR_MAX == 1.
39234 The width of control characters is zero, not 1.
39236 2001-08-03 Paul Eggert <eggert@twinsun.com>
39238 The following changes are from gettext 0.10.39 as maintained by
39239 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
39241 * m4/codeset.m4: Upgrade to serial AM1.
39242 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
39243 all uses changed. Quote first arg of AC_DEFUN.
39244 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
39246 * m4/iconv.m4: Upgrade to serial AM2.
39247 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
39248 Add --with-libconv-prefix.
39249 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
39250 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
39251 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
39252 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
39253 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
39255 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
39256 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
39257 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
39258 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
39259 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
39260 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
39261 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39262 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
39263 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
39265 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
39268 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
39269 not the default value.
39271 2001-06-25 Bruno Haible <haible@clisp.cons.org>
39272 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
39273 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
39274 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
39275 Also check for iswcntrl, used for wcwidth fallback.
39276 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
39279 2001-08-03 Jim Meyering <meyering@lucent.com>
39281 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
39282 as it was in the original. Reported by Paul Eggert.
39284 2001-07-16 Jim Meyering <meyering@lucent.com>
39286 * m4/gettimeofday.m4: New file.
39287 Prompted by a report from Bernhard Baehr.
39289 2001-07-15 Jim Meyering <meyering@lucent.com>
39291 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
39292 stuff. Now it's in ../Makefile.cfg.
39294 2001-07-15 Jim Meyering <meyering@lucent.com>
39296 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
39297 (BUILT_SOURCES): Add unlocked-io.h.
39298 (io_functions): Define.
39299 (unlocked-io.h): New rule.
39300 (DISTCLEANFILES): Add unlocked-io.h.
39301 (all-local): Depend on unlocked-io.h, to ensure it is created.
39303 * lib/unlocked-io.hin: New file
39305 * lib/regex.c: Update from glibc.
39307 2001-07-05 Jim Meyering <meyering@lucent.com>
39309 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
39311 (libfetish_a_SOURCES): Put all .h files here instead.
39312 Remove a thus-exposed (better checks in automake) duplicate and
39313 two unnecessary .h files.
39315 2001-07-04 Jim Meyering <meyering@lucent.com>
39317 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
39318 that generates jm-glibc-io.m4 so that it doesn't trigger any make
39321 2001-07-02 Jim Meyering <meyering@lucent.com>
39323 The following changes were prompted by suggestions from Bruno Haible.
39325 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
39327 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
39328 definition of EXTRA_DIST.
39329 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
39330 ensure that the generated file is created/updated whenever the list
39331 of $(unlocked_functions) is changed.
39332 (jm-glibc-io.m4): New rule.
39333 (unlocked-io.h): New rule -- currently unused.
39335 2001-06-24 Jim Meyering <meyering@lucent.com>
39337 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
39338 unmatched right bracket, rather than kludging it with an extra,
39339 falsely-matching quote in a comment. Patch by Akim Demaille.
39341 2001-06-11 Jim Meyering <meyering@lucent.com>
39343 * lib/regex.c: Update from GNU libc.
39345 2001-05-27 Jim Meyering <meyering@lucent.com>
39347 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
39348 Check for ut_type in struct utmp.
39350 2001-05-27 Jim Meyering <meyering@lucent.com>
39352 * lib/readutmp.h (UT_TYPE): Define.
39354 2001-05-24 Jim Meyering <meyering@lucent.com>
39356 * lib/argmatch.c: Include "quote.h".
39357 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
39358 quote function. Reported by Göran Uddeborg.
39360 2001-05-22 Jim Meyering <meyering@lucent.com>
39362 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
39363 now that we use the package-supplied version unconditionally.
39364 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
39366 2001-05-21 Jim Meyering <meyering@lucent.com>
39368 * m4/regex.m4: Change a couple backticks to single quotes to avoid
39369 shell syntax errors.
39371 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
39373 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
39375 2001-05-20 Paul Eggert <eggert@twinsun.com>
39377 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
39378 Don't bother to check library strftime, since
39379 we'll be using our own my_strftime function anyway.
39380 Define my_strftime instead of strftime.
39382 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
39384 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
39385 which is not yet declared.
39387 2001-05-15 Jim Meyering <meyering@lucent.com>
39389 * m4/regex.m4: Use proper quoting so brackets appear in the test
39391 Reported by, and with help from, Bruno Haible.
39393 2001-05-13 Jim Meyering <meyering@lucent.com>
39395 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
39398 2001-05-11 Paul Eggert <eggert@twinsun.com>
39400 dirname code cleanup. base_name now behaves more compatibly
39401 with POSIX basename when given file names that have trailing
39402 slashes, and similarly for dir_name. Add new primitives
39403 base_len and dir_len. Put the directory-name-related decls
39406 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
39407 * lib/backupfile.c (base_name): Likewise.
39408 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
39409 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
39410 * lib/makepath.c (strip_trailing_slashes): Likewise.
39411 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
39412 ISSLASH): Likewise.
39413 * lib/rename.c (strip_trailing_slashes): Likewise.
39414 * lib/same.c (base_name): Likewise.
39415 * lib/stripslash.c (ISSLASH): Likewise.
39417 * lib/addext.c: Include <dirname.h> after size_t is defined.
39418 * lib/backupfile.c: Likewise.
39420 * lib/addext.c (addext): Use base_len to trim redundant
39421 trailing slashes instead of doing it ourselves.
39422 But do not trim the last slash if it is not redundant.
39424 * lib/backupfile.c (find_backup_file_name,
39425 max_backup_version): Use base_len instead of rolling it ourselves.
39426 Handle the case of "" and (on DOS) "C:" correctly.
39428 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
39429 needed. Include <string.h>, <dirname.h>.
39430 (base_name): Allow file names ending in slashes, other than names
39431 that are all slashes. In this case, return the basename followed
39432 by the slashes. This is more general, and can be used in places
39433 where the original base_name purposely had an assertion failure.
39434 (base_len): New function.
39436 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
39437 Do not include <assert.h>; no longer needed.
39439 (memrchr): Remove decl.
39440 (dir_name_r): Remove.
39441 (dir_len): Renamed from dirlen. All callers changed.
39442 Rewrite in terms of base_name, for simplicity and consistency.
39443 (dir_name): Never return NULL. All callers changed.
39444 Do not include <stdlib.h> in test program; no longer needed.
39445 return 0; is fine for test program.
39447 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
39449 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
39451 * lib/path-concat.c (path_concat): Use base_len to compute
39452 base length, not strlen; this means we cannot rely on memcpy
39455 * lib/same.c (STREQ): Remove.
39456 (same_name): Handle the case where the basename ends in trailing '/'.
39458 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
39459 a slash was stripped. Do not strip the last slash after a
39460 file system prefix.
39462 2001-05-11 Paul Eggert <eggert@twinsun.com>
39464 * lib/Makefile.am (libfetish_a_SOURCES):
39465 Add strftime.c, since we now compile it on all hosts.
39467 * lib/strftime.c (my_strftime):
39468 Define to nstrftime if emacs, but only if my_strftime is not defined.
39469 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
39470 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
39471 Add one more extra argument: a nanoseconds value.
39474 (my_strftime function): Add %N format.
39475 (emacs_strftimeu): Renamed from emacs_strftime,
39476 with extra ut argument.
39478 2001-05-09 Paul Eggert <eggert@twinsun.com>
39480 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
39482 2001-04-21 Jim Meyering <meyering@lucent.com>
39484 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
39487 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
39489 * m4/ftruncate.m4: Check for chsize.
39490 Link with ftruncate.o unconditionally if ftruncate is missing.
39491 This was required when cross-compiling to i586-mingw32msvc.
39493 2001-04-08 Jim Meyering <meyering@lucent.com>
39495 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
39496 recomputed; that's necessary when the offset spans a DST transition.
39497 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
39499 2001-04-02 Jim Meyering <meyering@lucent.com>
39501 * lib/regex.h, regex.c: Update from GNU libc.
39503 2001-03-24 Jim Meyering <meyering@lucent.com>
39505 * m4/jm-macros.m4: Require autoconf-2.49d.
39507 2001-03-20 Bruno Haible <haible@clisp.cons.org>
39509 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
39511 2001-03-19 Paul Eggert <eggert@twinsun.com>
39513 * lib/version-etc.c (version_etc_copyright): Update to 2001.
39515 2001-03-17 Jim Meyering <meyering@lucent.com>
39517 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
39518 now that the version in autoconf is equivalent.
39519 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
39521 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
39522 Suggestion from Akim Demaille.
39524 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
39525 (jm_PREREQ_TEMPNAME): New function.
39527 2001-03-16 Paul Eggert <eggert@twinsun.com>
39529 * lib/tempname.c (uint64_t): Define to uintmax_t if
39530 not defined, and if UINT64_MAX is not defined.
39531 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
39532 Reported by John David Anglin.
39534 2001-03-15 Bruno Haible <haible@clisp.cons.org>
39536 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
39537 resolve alias if codeset is empty.
39538 * lib/config.charset (BeOS): Use wildcard syntax.
39540 2001-03-13 Jim Meyering <meyering@lucent.com>
39542 * lib/path-concat.c (path_concat)
39543 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
39544 concatenating e.g., `C:' and `foo'.
39547 2001-03-06 Bruno Haible <haible@clisp.cons.org>
39549 * lib/localcharset.c (locale_charset): Don't use
39550 setlocale(LC_CTYPE,NULL). Don't return NULL.
39551 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
39553 2001-03-06 Bruno Haible <haible@clisp.cons.org>
39555 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
39556 support for DOS/DJGPP.
39558 2001-03-01 Paul Eggert <eggert@twinsun.com>
39560 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
39561 lacks mkstemp. Compile our own tempname.c if we compile our own
39562 mkstemp.c, as mkstemp relies on tempname.
39564 2001-03-01 Jim Meyering <meyering@lucent.com>
39566 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
39567 AH_VERBATIM really does output its argument verbatim.
39569 2001-02-28 Paul Eggert <eggert@twinsun.com>
39571 * lib/Makefile.am (libfetish_a_SOURCES):
39572 Add dup-safer.c, fopen-safer.c.
39573 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
39575 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
39576 * lib/unistd-safer.h: New files.
39578 2001-02-25 Paul Eggert <eggert@twinsun.com>
39580 The mkstemp replacement is taken from glibc 2.2.2, with some
39581 portability fixes for use outside glibc, as follows:
39583 * lib/tempname.c (struct_stat64): New macro.
39584 (direxists, __gen_tempname): Use it.
39585 This avoids a portability problem with Solaris 8.
39587 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
39588 (<stddef.h>, <stdint.h>, <string.h>):
39589 Include only if STDC_HEADERS || _LIBC.
39590 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
39591 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
39592 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
39593 (__set_errno): Define this macro if <errno.h> doesn't.
39594 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
39595 Define these macros if <stdio.h> doesn't.
39596 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
39597 Define these macros if <sys/stat.h>
39598 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
39599 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
39600 __xstat64): Define if not _LIBC.
39601 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
39602 (__gen_tempname): Invoke gettimeofday only if
39603 HAVE_GETTIMEOFDAY || _LIBC;
39604 otherwise, fall back on plain "time".
39605 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
39607 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
39609 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
39611 2001-02-18 Paul Eggert <eggert@twinsun.com>
39613 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
39615 2001-02-17 Paul Eggert <eggert@twinsun.com>
39617 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
39618 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
39619 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
39620 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39622 2001-02-17 Paul Eggert <eggert@twinsun.com>
39624 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
39625 Remove workaround macros for hosts that have mbrtowc but not
39626 mbstate_t, as we now insist on proper declarations for both
39627 before using mbrtowc.
39629 2001-02-17 Jim Meyering <meyering@lucent.com>
39631 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
39632 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
39633 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
39636 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
39637 rather than AC_CACHE_VAL.
39639 2001-02-17 Jim Meyering <meyering@lucent.com>
39641 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
39642 around included file name.
39644 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
39646 * lib/strftime.c: Update from GNU libc (the only changes were to
39649 2001-02-17 Jim Meyering <meyering@lucent.com>
39651 * lib/regex.c: Update from libc.
39653 2001-02-17 Bruno Haible <haible@clisp.cons.org>
39655 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
39658 2001-02-16 Paul Eggert <eggert@twinsun.com>
39660 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
39661 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
39662 Reported by Mark Hounschell via Paul Eggert.
39664 2001-02-07 Jim Meyering <meyering@lucent.com>
39666 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
39668 2001-02-05 Jim Meyering <meyering@lucent.com>
39670 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
39671 it includes the patch required for `large file' support with at least
39672 HP-UX's 10.20 /bin/cc.
39674 2001-02-03 Jim Meyering <meyering@lucent.com>
39676 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
39677 AS_IF, now that it works once again (mysteriously).
39678 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
39680 2001-01-30 Jim Meyering <meyering@lucent.com>
39682 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
39683 * m4/chown.m4: Rename conftestchown to conftest.chown.
39684 * m4/rename.m4: s/conftestdir/conftest.d1/ and
39685 s/conftestdir2/conftest.d2/.
39686 * m4/utimes.m4: s/conftestdata/conftest.data/
39687 Inspired by Pavel Roskin's change in autoconf.
39689 2001-01-30 Bruno Haible <haible@clisp.cons.org>
39691 * lib/config.charset: Update for FreeBSD 4.2.
39693 2001-01-27 Jim Meyering <meyering@lucent.com>
39695 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
39697 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
39699 2001-01-26 Jim Meyering <meyering@lucent.com>
39701 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
39702 quotearg.c includes it.
39704 2001-01-26 Jim Meyering <meyering@lucent.com>
39706 * lib/quotearg.c: Include stddef.h.
39707 * lib/quote.c: Include stddef.h.
39708 Reported by Axel Kittenberger.
39710 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
39711 line in double quotes so that it evokes a better diagnostic.
39712 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
39713 Reported by Axel Kittenberger.
39715 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
39717 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
39718 as if it was a `charset'.
39720 2001-01-21 Bruno Haible <haible@clisp.cons.org>
39722 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
39725 2001-01-21 Bruno Haible <haible@clisp.cons.org>
39727 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
39728 to avoid a warning. Add back 'const' to inptr.
39730 2001-01-20 Jim Meyering <meyering@lucent.com>
39732 Be sure that headers are checked before used in code compiled
39733 for the type checks.
39734 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
39735 In place of that, invoke jm_CHECK_ALL_TYPES.
39736 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
39737 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
39738 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
39739 The check for ssize_t was mistakenly run before the test for unistd.h.
39741 The configure-time check for stdbool.h was missing.
39742 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
39743 (jm_PREREQ_HASH): New function.
39745 2001-01-17 Jim Meyering <meyering@lucent.com>
39747 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
39748 for autoconf-2.49c.
39749 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
39751 2001-01-16 Jim Meyering <meyering@lucent.com>
39753 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
39756 2001-01-14 Jim Meyering <meyering@lucent.com>
39758 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
39759 foo and bar. Create conftestdir/ in the script, not in the C code.
39760 Remove directories in the script, not in the C code.
39761 Remove conftestdir{,2} before trying to create the directory.
39762 Make the entire configure script fail if the mkdir fails.
39764 2001-01-14 Jim Meyering <meyering@lucent.com>
39766 * lib/rename.c: New file. From Volker Borchert.
39767 Include stdlib.h, string.h or strings.h, and xalloc.h.
39768 Use strip_trailing_slashes rather than open-coding it.
39770 2001-01-03 Paul Eggert <eggert@twinsun.com>
39772 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
39774 2001-01-03 Jim Meyering <meyering@lucent.com>
39776 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
39777 of local `inptr' to avoid warning with some system declarations of
39780 2001-01-02 Volker Borchert <bt@teknon.de>
39782 * m4/rename.m4: New file.
39783 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
39785 2001-01-01 Jim Meyering <meyering@lucent.com>
39787 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
39788 even on systems with utmpx.h. It's necessary for the declaration of
39789 utmp's ut_user member. Reported by Andreas Jaeger.
39791 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
39792 available. They are required for the declarations of getgrgid and
39794 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
39795 Reported by Andreas Jaeger.
39797 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
39799 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
39800 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
39801 so `make install' also works in VPATH builds.
39803 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
39805 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
39806 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
39807 can be used in subdirectories.
39809 2000-12-29 Paul Eggert <eggert@twinsun.com>
39811 * lib/modechange.c: Do not assume that mode_t uses the
39812 traditional octal encoding. E.g. "chmod 1 FOO" should set
39813 the other-execute bit of FOO even if S_IXOTH != 1.
39815 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
39816 WOTH, XOTH, ALLM): New macros.
39817 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
39818 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
39820 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
39821 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
39823 No need to use uintmax_t; unsigned long is long enough.
39824 Don't bother to get suffix since we don't use it.
39826 2000-12-26 Jim Meyering <meyering@lucent.com>
39828 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
39829 better with autoheader.
39831 2000-12-24 Jim Meyering <meyering@lucent.com>
39833 * lib/hash.c (is_prime): Return explicit boolean values.
39834 (hash_get_first): Return NULL to appease Irix5.6's 89.
39835 Reported by Nelson Beebe.
39837 2000-12-19 Bruno Haible <haible@clisp.cons.org>
39839 * lib/localcharset.c (locale_charset): Add support for Win32.
39841 2000-12-18 Paul Eggert <eggert@twinsun.com>
39843 * lib/physmem.h, lib/physmem.c: New files.
39845 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
39846 (noinst_HEADERS): Add physmem.h.
39848 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
39849 't' for compatibility with Solaris 8 sort.
39851 2000-12-18 Bruno Haible <haible@clisp.cons.org>
39853 * lib/config.charset: Add support for BeOS.
39855 2000-12-17 Jim Meyering <meyering@lucent.com>
39857 * m4/dos.m4 (jm_AC_DOS): New file and macro.
39858 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
39860 2000-12-16 Jim Meyering <meyering@lucent.com>
39862 This bug had a serious impact on chown: `chown N:M FILE' (for integer
39863 N and M) would have treated it like `chown N:N FILE'.
39865 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
39867 2000-12-16 Jim Meyering <meyering@lucent.com>
39869 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
39870 SHELLS_FILE to a file name that's useful on djgpp systems.
39872 (ADDITIONAL_DEFAULT_SHELLS): Define.
39873 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
39874 Based mostly on a patch from Prashant TR.
39876 2000-12-16 Bruno Haible <haible@clisp.cons.org>
39878 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
39879 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
39880 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
39882 2000-12-08 Andreas Schwab <schwab@suse.de>
39884 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
39885 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
39887 2000-12-07 Jim Meyering <meyering@lucent.com>
39889 * lib/stripslash.c (ISSLASH): Define.
39890 (strip_trailing_slashes): Use ISSLASH rather than comparing against
39894 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
39895 (dir_name_r): Declare this function as static.
39896 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
39897 manifest itself on a name containing a mix of slashes and
39899 Make this function work with names starting with a DOS-style
39900 drive letter and colon prefix.
39901 (dir_name): Append `.' if necessary.
39902 Based mostly on patches from Prashant TR and Eli Zaretskii.
39904 * lib/dirname.h (dir_name_r): Remove prototype.
39906 2000-12-06 Paul Eggert <eggert@twinsun.com>
39908 * m4/off_t-format.m4: Remove this file.
39909 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
39911 2000-12-06 Jim Meyering <meyering@lucent.com>
39913 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
39914 replacement strtoull, we may well need the replacement strtoul, too.
39915 Check for declarations of strtoul and strtoull.
39916 Check for strtol. Mainly as a cue to cause automake to include
39917 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
39918 Check for limits.h -- strtol.c needs it.
39920 2000-12-05 Jim Meyering <meyering@lucent.com>
39922 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
39924 2000-12-04 Jim Meyering <meyering@lucent.com>
39926 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
39927 Also include memory.h, stdlib.h, unistd.h if appropriate.
39928 Reported by Andreas Jaeger (conflicting declaration of malloc).
39930 2000-12-02 Jim Meyering <meyering@lucent.com>
39932 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
39933 * m4/jm-macros.m4 (jm_MACROS): require it.
39935 2000-12-02 Jim Meyering <meyering@lucent.com>
39937 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
39939 2000-12-01 Paul Eggert <eggert@twinsun.com>
39941 * lib/memrchr.c: Include <config.h> before any system include file.
39943 2000-11-30 Jim Meyering <meyering@lucent.com>
39945 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
39947 2000-11-30 Jim Meyering <meyering@lucent.com>
39949 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
39951 2000-11-29 Paul Eggert <eggert@twinsun.com>
39953 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
39955 2000-11-26 Jim Meyering <meyering@lucent.com>
39957 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
39959 2000-11-22 Paul Eggert <eggert@twinsun.com>
39961 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
39962 size of (size_t) -1; it's not portable.
39964 2000-11-17 Jim Meyering <meyering@lucent.com>
39966 * lib/strstr.c: Update from GNU libc.
39968 2000-11-17 Akim Demaille <akim@epita.fr>
39970 * lib/obstack.h: Formatting changes.
39971 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
39972 prevent type checking.
39973 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
39974 cast the value to (void *): assigning a `foo *' to a `void *'
39976 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
39978 2000-11-16 Jim Meyering <meyering@lucent.com>
39980 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
39982 2000-11-11 Jim Meyering <meyering@lucent.com>
39984 * lib/error.c: Add a couple #includes, merging from GNU libc version.
39986 2000-11-10 Jim Meyering <meyering@lucent.com>
39988 * lib/obstack.h: Update from GNU libc.
39989 * lib/obstack.c: Likewise.
39991 2000-11-08 Bruno Haible <haible@clisp.cons.org>
39993 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
39995 2000-11-06 Paul Eggert <eggert@twinsun.com>
39997 * lib/getusershell.c (setusershell): Use rewind rather than
39998 fseek/fseeko, to avoid configuration hassles with fseeko.
39999 Don't bother opening SHELLS_FILE if shellstream is NULL;
40000 it's not necessary.
40002 2000-11-05 Jim Meyering <meyering@lucent.com>
40004 * lib/makepath.h (make_dir): Declare.
40005 * lib/makepath.c (make_dir): Remove `static' attribute.
40008 2000-11-04 Jim Meyering <meyering@lucent.com>
40010 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40012 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
40014 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
40015 last one in a bucket, advance to the next bucket.
40017 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
40019 * lib/fnmatch.c: Do not comment out all the code if we are using
40020 the GNU C library, because in some cases we are replacing buggy
40021 code in the GNU C library itself.
40023 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
40025 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40026 (regex_compile): Catch bogus \(\1\).
40028 2000-10-30 Paul Eggert <eggert@twinsun.com>
40030 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40031 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40032 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40034 2000-10-30 Paul Eggert <eggert@twinsun.com>
40036 * lib/error.h, getline.h, modechange.h:
40037 Remove "2000" from Copyright line, as the file hasn't been
40038 changed this year other than in the copyright notice.
40040 * lib/xalloc.h: Add "2000" to Copyright line, as this file
40041 was changed this year.
40043 2000-10-29 Jim Meyering <meyering@lucent.com>
40045 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40047 * m4/ls-mntd-fs.m4: Likewise
40049 2000-10-29 Jim Meyering <meyering@lucent.com>
40051 * lib/xstat.in: Fix grammar in comment.
40053 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
40055 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40056 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40057 doesn't define __restrict_arr.
40059 2000-10-28 Jim Meyering <meyering@lucent.com>
40061 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40062 (jm_PREREQ_MEMCHR): New function.
40064 2000-10-28 Jim Meyering <meyering@lucent.com>
40066 * lib/memchr.c: Update from libc.
40067 Adjust for portability:
40068 [HAVE_STDLIB_H]: Include stdlib.h.
40069 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40070 Undef __memchr, too.
40071 [!weak_alias]: Define __memchr to memchr.
40073 * lib/regex.c: Update from libc.
40074 * lib/regex.h: Likewise.
40075 * lib/getopt1.c: Likewise.
40076 * lib/memcmp.c: Likewise.
40078 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40079 Avoid using fseek, when possible -- it's broken by design.
40080 Patch by Ulrich Drepper.
40082 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
40084 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40085 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40086 Giving in to popular pressure to shut up the compiler with casts.
40088 2000-10-26 Jim Meyering <meyering@lucent.com>
40090 * lib/strftime.c: Update from libc.
40092 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
40094 * regex.c: More `unsigned char' -> `re_char' changes.
40095 Also change several `int' into `re_wchar_t'.
40096 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
40097 (PUSH_FAILURE_POINTER): Don't cast any more.
40098 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
40099 We want GCC to complain, since this piece of code makes
40100 re_match non-reentrant, which *should* be fixed.
40101 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
40102 (EXTEND_BUFFER): Use RETALLOC.
40103 (SET_LIST_BIT): Don't cast.
40104 (re_wchar_t): New type.
40105 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
40106 that those two functions will always properly return.
40107 (IMMEDIATE_QUIT_CHECK): Cast to void.
40108 (analyse_first): Use recursion rather than an explicit stack.
40109 (re_compile_fastmap): Can't fail anymore.
40110 (re_search_2): Don't check re_compile_fastmap for failure.
40111 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
40112 Now also sets the new value (passed in a new argument).
40113 (re_match_2_internal): Use it.
40114 Also, use a new var `reg' of type size_t when looping through regs
40115 rather than reuse the inappropriate `mcnt'.
40117 2000-10-25 Jim Meyering <meyering@lucent.com>
40119 * lib/obstack.c: Update from libc.
40121 2000-10-24 Kenichi Handa <handa@etl.go.jp>
40123 * regex.c (regex_compile): Change the way of handling a range from
40124 a char less than 256 to a char not less than 256.
40126 2000-10-24 Andrew Innes <andrewi@gnu.org>
40128 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
40130 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
40131 so that re_search functions only quit when callers expect them to.
40133 2000-10-23 Jim Meyering <meyering@lucent.com>
40135 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
40136 wrong. That set_locale call must not have any side effects.
40139 2000-10-22 Jim Meyering <meyering@lucent.com>
40141 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
40142 [CYCLIC]: Remove now-unused definition.
40144 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
40145 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
40146 Suggestion from Ulrich Drepper.
40148 2000-10-21 Jim Meyering <meyering@lucent.com>
40150 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
40151 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
40152 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
40154 2000-10-21 Jim Meyering <meyering@lucent.com>
40156 * lib/dirname.c (memrchr): Declare if necessary.
40157 (dir_name): Remove the restriction that there be no
40158 trailing slashes. Now, this code skips past them, effectively
40160 [TEST_DIRNAME] (main): New unit tests.
40162 * lib/memrchr.c: New file from GNU libc.
40163 Undef __memrchr, too.
40164 [!weak_alias]: Define __memrchr to memrchr.
40165 Guard weak_alias use with `#ifdef weak_alias'.
40167 2000-10-21 Jim Meyering <meyering@lucent.com>
40169 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
40170 (dir_name): Use dir_name_r.
40171 * lib/dirname.h (dir_name_r): Declare it.
40173 2000-10-17 Jim Meyering <meyering@lucent.com>
40175 * lib/quote.h (PARAMS): Define and use.
40176 Reported by Akim Demaille.
40178 * lib/getopt.c: Update from libc.
40180 2000-10-16 Jim Meyering <meyering@lucent.com>
40182 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
40186 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
40188 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
40190 2000-09-25 Jim Meyering <meyering@lucent.com>
40192 * lib/md5.h (rol): Define (from GnuPG).
40194 * lib/sha.c: Give credit (GnuPG) where due.
40195 (M): Use rol rather than open-coding it.
40196 Add a FIXME comment.
40198 2000-09-21 Jim Meyering <meyering@lucent.com>
40200 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
40201 Reported by Michael Stone.
40203 2000-09-20 Jim Meyering <meyering@lucent.com>
40205 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
40206 (noinst_HEADERS): Add sha.h.
40207 Based on code from Scott G. Miller and from GnuPG.
40209 2000-09-18 Jim Meyering <meyering@lucent.com>
40211 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
40212 LIBS. Otherwise, everyone ends up linking with -lelf for some
40214 Reported by Mike Stone.
40216 2000-09-15 Jim Meyering <meyering@lucent.com>
40218 * lib/regex.c: Update from libc.
40220 2000-09-10 Jim Meyering <meyering@lucent.com>
40222 * lib/getopt.c (_getopt_internal): Update from glibc.
40224 2000-09-09 Jim Meyering <meyering@lucent.com>
40226 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
40227 think it should be used as a general replacement for isascii.
40228 * lib/fnmatch.c: Likewise.
40229 * lib/mbswidth.c: Likewise
40230 * lib/regex.c: Likewise.
40233 * lib/userspec.c: Include sys/param.h and limits.h.
40235 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40236 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
40237 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
40238 UID, GID. Check range.
40240 2000-09-06 Jim Meyering <meyering@lucent.com>
40242 * lib/getopt.c (_getopt_internal): Update from glibc.
40244 2000-08-30 Jim Meyering <meyering@lucent.com>
40246 * lib/strftime.c: Merge in changes from GNU libc.
40248 2000-08-26 Jim Meyering <meyering@lucent.com>
40250 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
40251 * m4/fpending.m4: New file.
40253 2000-08-26 Jim Meyering <meyering@lucent.com>
40255 * lib/closeout.c: Include "__fpending.h".
40256 (close_stdout_status): Return right away if there's nothing to flush.
40258 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
40259 * lib/__fpending.c: New file.
40260 * lib/__fpending.h: New file.
40262 2000-08-20 Jim Meyering <meyering@lucent.com>
40264 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
40265 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
40266 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
40268 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
40270 Improve fileutils installation on systems where running
40271 programs (like install) can't be unlinked.
40272 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
40273 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
40275 2000-08-07 Paul Eggert <eggert@twinsun.com>
40277 Standardize on "memory exhausted" instead of "Memory exhausted"
40278 or "virtual memory exhausted".
40279 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
40280 "virtual memory exhausted".
40281 * lib/same.c (same_name): Invoke xalloc_die instead of printing
40283 * lib/userspec.c (parse_user_spec): Likewise.
40284 * lib/bumpalloc.h: comment fix
40285 * lib/same.c, userspec.c: Include xalloc.h.
40287 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
40288 not char *const and pointing to a constant array.
40289 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
40290 (xrealloc): Comment fix.
40292 * lib/userspec.c (parse_user_spec):
40293 Don't translate a message until just before returning,
40294 to avoid unnecessary translation.
40296 2000-08-07 Jim Meyering <meyering@lucent.com>
40298 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
40299 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
40300 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
40301 getgroups.c, gethostname.c, getopt.h, group-member.c,
40302 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
40303 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
40304 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
40305 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
40306 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
40307 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
40308 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
40309 yesno.c: Back out Copyright date changes for each file with no change
40310 this year. This eases coordination with other programs using the same
40311 source code modules. From Paul Eggert.
40313 2000-08-06 Paul Eggert <eggert@twinsun.com>
40315 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
40316 not char, for compatibility with glibc 2.1.3 strftime.c.
40318 2000-08-03 Greg McGary <greg@mcgary.org>
40320 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
40321 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
40322 (EXTEND_BUFFER): Use them.
40324 2000-08-01 Jim Meyering <meyering@lucent.com>
40326 * lib/dirname.c (ISSLASH): Define.
40327 (BACKSLASH_IS_PATH_SEPARATOR): Define.
40328 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
40329 both `\' and `/' may be use as path separators.
40330 Based on a patch from Prashant TR.
40332 2000-07-31 Paul Eggert <eggert@twinsun.com>
40334 * lib/quotearg.c (quotearg_n_options): Don't make the initial
40335 slot vector a constant, since it might get modified.
40337 2000-07-31 Jim Meyering <meyering@lucent.com>
40339 * lib/xmalloc.c: Use `virtual memory exhausted', not
40340 `Memory exhausted'.
40341 * lib/obstack.c (print_and_abort): Likewise.
40343 2000-07-30 Paul Eggert <eggert@twinsun.com>
40345 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
40346 buffer, so that the caller can always quote one small
40347 component of a "memory exhausted" message in slot 0.
40348 From a suggestion by Jim Meyering.
40350 2000-07-30 Jim Meyering <meyering@lucent.com>
40352 * lib/makepath.c (make_path): Quote the other instance, too.
40354 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
40355 (STATIC_BUF_SIZE): Define.
40356 (quotearg_n_options): Use only statically allocated storage when
40357 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
40358 than STATIC_BUF_SIZE.
40360 2000-07-29 Jim Meyering <meyering@lucent.com>
40362 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
40363 * lib/dirname.c (dir_name): Likewise.
40365 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
40368 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
40369 (dir_name): Assert that there are no trailing slashes.
40371 2000-07-29 Bruno Haible <haible@clisp.cons.org>
40373 * lib/mbswidth.h (mbswidth): Add a flags argument.
40374 (mbswidth): New declaration.
40375 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
40376 * lib/mbswidth.c (mbswidth): Add a flags argument.
40377 (mbsnwidth): New function.
40379 2000-07-24 Jim Meyering <meyering@lucent.com>
40381 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
40383 2000-07-23 Paul Eggert <eggert@twinsun.com>
40385 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
40387 2000-07-23 Paul Eggert <eggert@twinsun.com>
40389 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
40390 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
40391 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
40392 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
40393 invoke multibyte primitives.
40395 2000-07-23 Paul Eggert <eggert@twinsun.com>
40398 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
40399 so that mbstate_t is always defined.
40401 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
40402 be 1 in at least one GCC installation, and this configuration
40403 error is likely to be common. Ignoring MB_LEN_MAX hurts
40404 performance on hosts that have mbrtowc but have only unibyte
40405 locales, but I assume these hosts are rare.
40407 2000-07-23 Paul Eggert <eggert@twinsun.com>
40409 * lib/mbswidth.c (_XOPEN_SOURCE):
40410 Don't define; this causes problems on Solaris 7.
40411 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
40413 2000-07-23 Jim Meyering <meyering@lucent.com>
40415 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
40416 too: getgrgid, getpwuid, getuid.
40418 2000-07-23 Jim Meyering <meyering@lucent.com>
40420 * lib/basename.c (base_name): Add an assertion.
40422 2000-07-23 Bruno Haible <haible@clisp.cons.org>
40424 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
40425 shadow its mbsinit function.
40427 2000-07-17 Bruno Haible <haible@clisp.cons.org>
40429 * lib/mbswidth.h: New file.
40430 * lib/mbswidth.c: New file.
40431 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
40432 (noinst_HEADERS): Add mbswidth.h.
40434 2000-07-17 Bruno Haible <haible@clisp.cons.org>
40436 * lib/config.charset: Add support for FreeBSD. Improve support for
40439 2000-07-16 Bruno Haible <haible@clisp.cons.org>
40441 * m4/mbswidth.m4: New file.
40442 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
40444 2000-07-15 Jim Meyering <meyering@lucent.com>
40446 * lib/makepath.c: Include quote.h.
40447 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
40448 corresponding argument in a `quote (...)' call.
40449 Give better diagnostics.
40451 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
40452 (noinst_HEADERS): Add quote.h.
40454 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
40455 from tar's src/misc.c.
40456 * lib/quote.h: New file. Prototypes for same.
40458 2000-07-14 Paul Eggert <eggert@twinsun.com>
40460 From a suggestion by Bruno Haible.
40461 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
40462 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
40463 to decide whether to define the BeOS workaround macro;
40464 this adjusts to the change to AC_MBSTATE_T.
40466 2000-07-14 Jim Meyering <meyering@lucent.com>
40468 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
40469 jm_AC_TYPE_UINTMAX_T.
40471 2000-07-13 Paul Eggert <eggert@twinsun.com>
40473 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
40475 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
40476 quotearg_buffer_restyled): Add support for
40477 clocale_quoting_style. Undo previous change to
40478 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
40479 and "{RIGHT QUOTATION MARK}" msgids.
40481 2000-07-10 Paul Eggert <eggert@twinsun.com>
40483 From a suggestion by Bruno Haible.
40484 * m4/mbstate_t.m4 (AC_MBSTATE_T):
40485 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
40486 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
40487 and mbstate_t, to a single-part test that simply defines mbstate_t.
40488 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
40489 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
40491 2000-07-10 Jim Meyering <meyering@lucent.com>
40493 * m4/strerror_r.m4: Mirror the correction made in autoconf.
40495 * m4/gnu-source.m4: Output to confdefs.h directly.
40496 Suggestion from Akim Demaille.
40498 2000-07-09 Paul Eggert <eggert@twinsun.com>
40500 The old behavior of quoting `like this' doesn't look good with
40501 newer, ISO-style fonts. See:
40502 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
40504 Instead, quote "like this" by default. Let the translator
40505 tailor the locale-specific quoting behavior by providing
40506 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
40508 * lib/quotearg.c (N_): New macro.
40509 (gettext_default): New function.
40510 (quotearg_buffer_restyled): Use
40511 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
40512 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
40514 2000-07-09 Jim Meyering <meyering@lucent.com>
40516 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
40517 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
40519 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
40520 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
40522 2000-07-09 Jim Meyering <meyering@lucent.com>
40524 * lib/Most files: Update copyright dates to include 2000.
40526 2000-07-08 Jim Meyering <meyering@lucent.com>
40528 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
40530 (xgethostname): Remove now-unnecessary #ifdef.
40531 Move declaration of `err' into loop where it's used.
40533 2000-07-05 Paul Eggert <eggert@twinsun.com>
40534 and Bruno Haible <haible@clisp.cons.org>
40536 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
40537 only if the test for an object-type mbstate_t fails. This
40538 prevents us from mistakenly reporting that mbstate_t is a
40539 system object type after we "#define mbstate_t int" to work
40542 2000-07-05 Paul Eggert <eggert@twinsun.com>
40543 and Bruno Haible <haible@clisp.cons.org>
40545 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
40547 2000-07-05 Bruno Haible <haible@clisp.cons.org>
40549 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
40551 Include <ctype.h> for use of isalpha.
40553 2000-07-05 Bruno Haible <haible@clisp.cons.org>
40555 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
40556 by allocating a larger buffer. Test the gethostname return value for
40557 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
40558 returns an error and ENAMETOOLONG isn't defined.
40560 2000-07-05 Bruno Haible <haible@clisp.cons.org>
40562 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
40565 2000-07-04 Jim Meyering <meyering@lucent.com>
40567 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
40568 of the deprecated AC_CHECKING.
40570 2000-07-04 Jim Meyering <meyering@lucent.com>
40572 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
40573 Reported by Bruno Haible.
40575 2000-07-04 Jim Meyering <meyering@lucent.com>
40577 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
40578 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
40581 2000-07-03 Paul Eggert <eggert@twinsun.com>
40583 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
40584 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
40586 2000-07-03 Paul Eggert <eggert@twinsun.com>
40587 and Bruno Haible <haible@clisp.cons.org>
40589 * lib/quotearg.c (mbrtowc):
40590 Assign to *pwc, and return 1 only if result is nonzero.
40591 (iswprint): Use ISPRINT when substituting our own mbrtowc.
40593 2000-07-03 Jim Meyering <meyering@lucent.com>
40595 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
40597 2000-07-03 Jim Meyering <meyering@lucent.com>
40599 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
40600 This is necessary to get a definition of e.g., UTMP_FILE on
40604 2000-07-02 Jim Meyering <meyering@lucent.com>
40606 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
40608 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
40609 AC_LIBOBJ(function_name).
40610 * m4/chown.m4: Likewise.
40611 * m4/fnmatch.m4: Likewise.
40612 * m4/ftruncate.m4: Likewise.
40613 * m4/getgroups.m4: Likewise.
40614 * m4/getline.m4: Likewise.
40615 * m4/group-member.m4: Likewise.
40616 * m4/jm-macros.m4: Likewise.
40617 * m4/lstat.m4: Likewise.
40618 * m4/malloc.m4: Likewise.
40619 * m4/memcmp.m4: Likewise.
40620 * m4/nanosleep.m4: Likewise.
40621 * m4/putenv.m4: Likewise.
40622 * m4/realloc.m4: Likewise.
40623 * m4/regex.m4: Likewise.
40624 * m4/stat.m4: Likewise.
40625 * m4/strftime.m4: Likewise.
40627 2000-07-02 Jim Meyering <meyering@lucent.com>
40629 * lib/quotearg.c (mbstate_t): Don't define here.
40631 2000-07-02 Jim Meyering <meyering@lucent.com>
40633 * lib/nanosleep.c (SIGCONT): Define if not already defined.
40635 2000-07-01 Jim Meyering <meyering@lucent.com>
40637 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
40639 2000-07-01 Jim Meyering <meyering@lucent.com>
40641 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
40644 2000-07-01 Bruno Haible <haible@clisp.cons.org>
40646 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
40647 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
40649 2000-07-01 Bruno Haible <haible@clisp.cons.org>
40651 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
40652 per change in ../m4/ls-mntd-fs.m4.
40653 (read_filesystem_list): Ignore symbolic links.
40655 2000-06-29 Jim Meyering <meyering@lucent.com>
40657 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
40658 for declaration of strcmp.
40660 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
40662 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
40663 Avoid warning by casting result to `char *' to remove `const'.
40665 2000-06-28 Jim Meyering <meyering@lucent.com>
40667 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
40668 included by quotearg.c, for which we perform this test. From
40671 2000-06-27 Bruno Haible <haible@clisp.cons.org>
40673 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
40674 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
40675 <utmpx.h> exists, put readutmp.o into LIBOBJS.
40677 2000-06-27 Bruno Haible <haible@clisp.cons.org>
40679 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
40681 2000-06-26 Paul Eggert <eggert@twinsun.com>
40683 savedir now sets errno on failure and invokes xmalloc to get memory.
40684 Fix a couple of other minor bugs while we're at it.
40686 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
40687 (NAMLEN): Remove macro.
40688 (malloc, realloc): Remove decls.
40689 (stpcpy): Likewise.
40690 ("xalloc.h"): Include.
40691 (NAME_SIZE_DEFAULT): New macro.
40692 (savedir): Use xmalloc / xrealloc to allocate memory.
40693 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
40694 Skip "" directory entries.
40695 Use strlen to calculate directory entry length, since the old method
40696 is rarely used these days and isn't worth supporting.
40697 Don't use a pointer after freeing it.
40698 Check for integer overflow when calculating allocation size.
40699 Use memcpy to copy entries, instead of stpcpy.
40700 Set errno properly when returning NULL.
40701 Check for readdir error.
40703 2000-06-26 Jim Meyering <meyering@lucent.com>
40705 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
40707 2000-06-25 Jim Meyering <meyering@lucent.com>
40709 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
40710 Linux header bug when _XOPEN_SOURCE is defined to 500.
40712 2000-06-25 Bruno Haible <haible@clisp.cons.org>
40714 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
40717 2000-06-25 Bruno Haible <haible@clisp.cons.org>
40719 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
40721 Don't include <stdlib.h>. Don't declare malloc, realloc.
40723 2000-06-24 Jim Meyering <meyering@lucent.com>
40725 * m4/strerror_r.m4: Revive this file -- to try out an experimental
40726 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
40727 for which strerror does return char*, but which lacks a conveniently
40728 accessible declaration of the function. If the compile-test says
40729 strerror_r doesn't work, then resort to a `run'-test that works on
40730 BeOS and segfaults on DEC Unix.
40732 2000-06-24 Jim Meyering <meyering@lucent.com>
40734 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
40736 2000-06-23 Paul Eggert <eggert@twinsun.com>
40738 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
40739 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
40741 2000-06-23 Paul Eggert <eggert@twinsun.com>
40743 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
40744 (mbrtowc, mbstate_t): Define substitutes if
40745 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
40746 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
40747 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
40749 2000-06-23 Jim Meyering <meyering@lucent.com>
40751 * m4/afs.m4: Add missing AC_MSG_RESULT.
40752 Reported by Bruno Haible.
40754 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
40755 Suggestion from Bruno Haible.
40757 2000-06-23 Jim Meyering <meyering@lucent.com>
40759 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
40761 2000-06-21 Jim Meyering <meyering@lucent.com>
40763 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
40765 2000-06-21 Jim Meyering <meyering@lucent.com>
40767 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
40768 (noinst_HEADERS): Add getstr.h.
40770 * lib/getline.c (getstr): Move into a separate file.
40771 * lib/getstr.c (getstr): New file, extracted from getline.c, with
40772 the following changes: new parameter, delim2; both delim[12]
40773 parameters have type `int', not `char'. The latter would lose
40774 with 8-bit delimiters.
40775 * lib/getstr.h: New file.
40777 2000-06-21 Bruno Haible <haible@clisp.cons.org>
40779 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
40780 than 1024, return a memory chunk of least possible size, instead
40781 of size PATH_MAX + 2. In the loop, increment the size proportionally.
40782 Use free/xmalloc instead of xrealloc to avoid copying for very long
40785 2000-06-21 Bruno Haible <haible@clisp.cons.org>
40787 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
40790 2000-06-21 Bruno Haible <haible@clisp.cons.org>
40792 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
40793 address, not strdup. Include <stdlib.h> and don't declare free().
40795 2000-06-19 Jim Meyering <meyering@lucent.com>
40797 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
40799 2000-06-18 Jim Meyering <meyering@lucent.com>
40801 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
40803 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
40804 `checking whether...' message to be consistent with that of the
40807 2000-06-18 Jim Meyering <meyering@lucent.com>
40809 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
40810 Besides, these days every porting target provides a mkdir function.
40812 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
40813 needed. (this snippet comes from src/system.h).
40815 2000-06-16 Bruno Haible <haible@clisp.cons.org>
40817 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
40819 2000-06-15 Paul Eggert <eggert@twinsun.com>
40821 * lib/human.c (adjust_value): New function.
40822 (human_readable_inexact): Apply rounding style even when
40823 printing approximate values.
40825 2000-06-14 Paul Eggert <eggert@twinsun.com>
40827 * lib/human.c (human_readable_inexact): Allow an input block
40828 size that is not a multiple of the output block size, and vice versa.
40829 Reported by Piergiorgio Sartor.
40831 2000-06-14 Paul Eggert <eggert@twinsun.com>
40833 * lib/getdate.y (get_date): Apply relative times after time
40834 zone indicator, not before. Reported by Todd A. Jacobs.
40836 2000-06-13 Jim Meyering <meyering@lucent.com>
40838 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
40840 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
40842 2000-06-12 Paul Eggert <eggert@twinsun.com>
40844 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
40846 2000-06-12 Jim Meyering <meyering@lucent.com>
40848 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
40849 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
40851 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
40852 the optional argument, `lib'.
40854 2000-06-08 Jim Meyering <meyering@lucent.com>
40856 * m4/largefile.m4: Remove file (now that it's part of autoconf).
40858 2000-06-04 Paul Eggert <eggert@twinsun.com>
40860 Rewrite largefile configuration so that we don't need to run
40861 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
40862 AC_CANONICAL_HOST in configure.in -- jmm]
40864 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
40865 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
40866 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
40867 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
40868 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
40870 Instead of inspecting the output of getconf, try to compile the
40871 test program without and with the macro definition.
40872 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
40873 for getconf. Instead, check for the needed flags by compiling
40876 2000-06-04 Paul Eggert <eggert@twinsun.com>
40878 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
40880 2000-06-04 Jim Meyering <meyering@lucent.com>
40882 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
40883 SunOS 4.1.4 for which gid_t is an unsigned type.
40885 2000-06-03 Jim Meyering <meyering@lucent.com>
40887 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
40888 now that autoconf requires that.
40890 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
40891 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
40892 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
40894 2000-06-03 Jim Meyering <meyering@lucent.com>
40896 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
40898 2000-06-03 Bruno Haible <haible@clisp.cons.org>
40900 * m4/glibc21.m4: New file.
40901 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
40903 2000-06-03 Bruno Haible <haible@clisp.cons.org>
40905 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
40906 newer, don't install charset.alias.
40907 * lib/config.charset: Change the Linux/glibc rules so they become empty
40908 on glibc-2.1 or newer.
40910 2000-06-02 Jim Meyering <meyering@lucent.com>
40912 * lib/mountlist.c: Back out last change. Instead, do this...
40913 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
40914 me_dummy member using the same `ignore'-testing code.
40915 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
40919 2000-05-29 Jim Meyering <meyering@lucent.com>
40921 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
40922 mounts with the `ignore' attribute. Based on a patch from
40925 2000-05-28 Jim Meyering <meyering@lucent.com>
40927 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
40928 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40929 * m4/stat.m4: Likewise.
40930 * m4/lstat.m4: Likewise.
40931 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
40933 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
40934 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
40936 2000-05-26 Jim Meyering <meyering@lucent.com>
40938 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
40940 2000-05-24 Jim Meyering <meyering@lucent.com>
40942 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
40943 autoconf requires that.
40944 * m4/lib-check.m4: Likewise.
40945 * m4/jm-macros.m4: Likewise.
40946 * m4/strftime.m4: Likewise.
40948 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
40949 AC_CHECK_DECLS, now that autoconf requires that.
40951 2000-05-22 Jim Meyering <meyering@lucent.com>
40953 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40954 * m4/lstat.m4: Likewise.
40956 2000-05-22 Jim Meyering <meyering@lucent.com>
40958 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
40960 2000-05-20 Jim Meyering <meyering@lucent.com>
40962 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
40963 (jm_PREREQ): Use it.
40965 2000-05-18 Jim Meyering <meyering@lucent.com>
40967 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
40968 back, too, since it may have been modified by allocate_entry.
40969 (hash_delete): Rewrite to use neither the assignment operator
40970 nor the comma operator in an if-expression.
40972 2000-05-15 Paul Eggert <eggert@twinsun.com>
40975 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
40976 Remove; no longer needed.
40977 "quotearg.h": Add include.
40978 (file_name): Do not bother to explicitly initialize to NULL; it's less
40979 efficient on some hosts.
40980 (close_stdout_status): Remove test as to whether stdout was already
40981 closed; it breaks for the case "echo x | sort >&-".
40982 Quote file name colons.
40983 Do not assume that _("write error") lacks format strings.
40985 2000-05-15 Jim Meyering <meyering@lucent.com>
40987 * lib/version-etc.c (version_etc_copyright): Update the copyright
40988 string used in all --version output.
40990 2000-05-14 Jim Meyering <meyering@lucent.com>
40992 * lib/closeout.c (close_stdout_set_file_name): New function.
40993 (close_stdout_status): Use new file-scoped global.
40994 Return right away if fstat says the stdout file descriptor is invalid.
40995 * lib/closeout.h (close_stdout_set_file_name): Declare.
40997 2000-05-10 Jim Meyering <meyering@lucent.com>
40999 * lib/closeout.c [default_exit_status]: New file-scoped variable.
41000 (close_stdout_set_status): New function.
41001 * lib/closeout.h (close_stdout_set_status): Declare.
41003 2000-05-09 Jim Meyering <meyering@lucent.com>
41005 * m4/gettext.m4: Rename this...
41006 * m4/libintl.m4: ...to this.
41008 2000-05-08 Jim Meyering <meyering@lucent.com>
41010 * lib/long-options.c: Don't include closeout.h.
41011 (parse_long_options): Don't call close_stdout for --version.
41013 2000-05-06 Paul Eggert <eggert@twinsun.com>
41015 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41016 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41017 2.1.3 bug. This avoids a clash when files like regex.c define
41020 2000-05-06 Jim Meyering <meyering@lucent.com>
41022 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41023 (AC_REPLACE_FUNCS): Add strnlen.
41025 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41026 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41028 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41029 AC_SEARCH_LIBS call for nanosleep.
41030 (LIB_NANOSLEEP): Set and AC_SUBST.
41032 2000-05-06 Jim Meyering <meyering@lucent.com>
41034 * lib/strnlen.c: Undefine __strnlen and strnlen.
41035 [!weak_alias]: Define __strnlen to strnlen.
41037 * lib/atexit.c: New file, from libiberty.
41039 2000-05-06 Jim Meyering <meyering@lucent.com>
41041 * lib/closeout.c (close_stdout_status): Also check for errors on the
41044 2000-05-05 Jim Meyering <meyering@lucent.com>
41046 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41047 AC_SEARCH_LIBS call for clock_gettime.
41048 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41050 * m4/search-libs.m4: Update from autoconf.
41052 su doesn't work on Solaris 2.6.
41053 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41054 <shadow.h>. Reported by Dragos Harabor.
41056 2000-05-05 Bruno Haible <haible@clisp.cons.org>
41058 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41059 memcpy instead of xmalloc, xrealloc, path_concat.
41060 (locale_charset): Treat empty environment variables as absent.
41061 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41063 2000-05-04 Jim Meyering <meyering@lucent.com>
41065 * lib/getopt.c: Update from glibc.
41066 * lib/obstack.c: Likewise.
41067 * lib/obstack.h: Likewise.
41068 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
41071 * lib/regex.h: Likewise.
41072 * lib/strndup.c: Likewise.
41073 * lib/strnlen.c: New file, from glibc.
41075 2000-05-03 Jim Meyering <meyering@lucent.com>
41077 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41079 2000-05-02 Paul Eggert <eggert@twinsun.com>
41081 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41082 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
41083 compile-time test, rather than inspecting host and OS, to
41084 decide whether to define _LARGEFILE_SOURCE.
41086 2000-05-01 Jim Meyering <meyering@lucent.com>
41088 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41090 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41091 Based on a patch from Bruno Haible.
41093 2000-05-01 Jim Meyering <meyering@lucent.com>
41095 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41097 2000-04-29 Jim Meyering <meyering@lucent.com>
41099 * lib/path-concat.c: Declare strdup only if it's not defined.
41100 * lib/canon-host.c: Likewise.
41102 2000-04-28 Jim Meyering <meyering@lucent.com>
41104 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
41105 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
41106 is included first, then limits.h is included by locale.h by libintl.h.
41107 From John David Anglin.
41109 2000-04-25 Jim Meyering <meyering@lucent.com>
41111 * lib/makepath.c (S_IRWXUGO): Define.
41112 (make_path): Always perform explicit chmod if MODE specifies any
41113 of the `special' permission bits. Prompted by a bug report against
41114 install from Mate Wierdl and Joost van Baal.
41116 2000-04-18 Jim Meyering <meyering@lucent.com>
41118 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
41119 (jm_PREREQ): Use it.
41121 2000-04-18 Jim Meyering <meyering@lucent.com>
41123 * lib/README: New file.
41125 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
41126 getpagesize. For BeOS. Based on a patch from Bruno Haible.
41128 2000-04-17 Jim Meyering <meyering@lucent.com>
41131 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
41132 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
41133 Suggestion from Akim Demaille.
41135 2000-04-17 Jim Meyering <meyering@lucent.com>
41137 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
41138 the definition of it to rpl_strftime also defined-away the system's
41141 2000-04-15 Jim Meyering <meyering@lucent.com>
41143 Use `C' to denote so-called `contiguous' files, the same way
41145 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
41146 (ftypelet): Use S_ISCTG.
41147 From Michael Deutschmann.
41149 2000-04-14 Jim Meyering <meyering@lucent.com>
41151 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
41152 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
41155 2000-04-14 Jim Meyering <meyering@lucent.com>
41157 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
41159 2000-04-13 Jim Meyering <meyering@lucent.com>
41161 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
41162 AH_VERBATIM to insert required #ifndef into config.h.in.
41163 Suggestion from Akim Demaille.
41165 2000-04-12 Jim Meyering <meyering@lucent.com>
41167 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
41168 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
41169 Christian Krackowizer.
41171 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
41172 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
41173 (AC_SYS_LARGEFILE): Require.
41174 (AM_C_PROTOTYPES): Require.
41176 2000-04-08 Jim Meyering <meyering@lucent.com>
41178 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
41179 names don't conflict. Reported by Eli Zaretskii.
41181 2000-04-07 Jim Meyering <meyering@lucent.com>
41183 * lib/putenv.c: Move inclusion of errno.h so it follows that of
41184 sys/types.h, to work around system header problems on AIX 3.2.5.
41187 2000-04-07 Bruno Haible <haible@clisp.cons.org>
41189 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
41190 bug. Deal with the different error behavior of Irix iconv.
41192 2000-04-05 Paul Eggert <eggert@twinsun.com>
41194 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
41195 IRIX if the installer said otherwise.
41197 2000-04-05 Jim Meyering <meyering@lucent.com>
41199 Portability tweaks required for ultrix4.3.
41200 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
41201 (jm_CHECK_DECLS): Add getutent to the list of functions.
41202 (_jm_DECL_HEADERS): Add utmpx.h.
41203 From John David Anglin.
41205 * m4/strftime.m4: Back out the 2000-04-02 change.
41206 Instead of that change, simply undefine putenv in the test program.
41208 2000-04-05 Jim Meyering <meyering@lucent.com>
41210 Portability tweaks required for ultrix4.3.
41211 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
41213 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
41214 * lib/canon-host.c: Declare strdup.
41215 * lib/path-concat.c: Likewise.
41216 From John David Anglin.
41218 2000-04-04 Jim Meyering <meyering@lucent.com>
41220 Be more DOS 8.3-friendly.
41221 * lib/ref-add.sin: Renamed from ref-add.sed.in.
41222 * lib/ref-del.sin: Renamed from ref-del.sed.in.
41223 * lib/Makefile.am: Reflect renaming.
41224 Reported by Eli Zaretskii.
41226 Use a temporary file name that won't clash with `charset.alias'
41227 in the DOS 8.3 name space.
41228 * lib/Makefile.am (charset_tmp): Define.
41229 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
41230 (uninstall-local): Likewise.
41231 Reported by Eli Zaretskii.
41233 2000-04-03 Jim Meyering <meyering@lucent.com>
41235 * m4/gettext.m4: Fix typo in comment.
41237 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
41238 textutils/configure.in). Suggestion from Paul Eggert.
41239 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
41241 2000-04-02 Paul Eggert <eggert@twinsun.com>
41243 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
41244 variable in the shell rather than using putenv, which isn't
41245 portable. This avoids the configure-time inter-test dependency
41246 on the potentially-renamed putenv function.
41248 2000-03-30 Paul Eggert <eggert@twinsun.com>
41250 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
41251 before checking struct stat.st_blksize, so that
41252 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
41254 2000-03-29 Paul Eggert <eggert@twinsun.com>
41256 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
41257 since strftime.c uses HAVE_STRFTIME to decide whether to use
41258 the underlying strftime.
41260 2000-03-29 Paul Eggert <eggert@twinsun.com>
41262 * lib/time/strftime.c (my_strftime): Make sure we call the system
41263 strftime, not ourselves, when invoking the underlying strftime.
41265 2000-03-24 Jim Meyering <meyering@lucent.com>
41267 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
41268 (charset_alias): Define.
41269 (install-exec-local): Factor out common code.
41270 (uninstall-local): Split lines longer than 80.
41271 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
41272 (SUFFIXES): Define.
41273 (.sed.in.sed): New rule. Don't redirect directly to $@.
41274 (CLEANFILES): Add ref-add.sed and ref-del.sed.
41276 2000-03-19 Bruno Haible <haible@clisp.cons.org>
41278 * lib/config.charset: Output a line containing "Packages using this
41280 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
41281 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
41282 ref-del.sed): New rules.
41284 2000-03-17 Jim Meyering <meyering@lucent.com>
41286 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
41287 Otherwise, include <strings.h>
41289 2000-03-17 Bruno Haible <haible@clisp.cons.org>
41291 * lib/unicodeio.c (utf8_wctomb): New function.
41292 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
41293 format instead of in UCS-4 with platform dependent endianness.
41295 2000-03-10 Jim Meyering <meyering@lucent.com>
41297 * m4/lib-check.m4: Look for getspnam in -lgen, too.
41298 From Marco Franzen.
41300 2000-03-07 Paul Eggert <eggert@twinsun.com>
41302 * lib/savedir.c (savedir): Work even if directory size is
41303 negative; this can happen with some screwy NFS configurations.
41305 2000-03-06 Jim Meyering <meyering@lucent.com>
41307 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
41308 if it's NULL (because we ran out of memory). From Bruno Haible.
41310 2000-03-05 Jim Meyering <meyering@lucent.com>
41312 * lib/localcharset.c ("path-concat.h"): Include.
41313 (get_charset_aliases): Use path_concat instead of ANSI string
41316 * lib/unicodeio.h (PARAMS): Define.
41317 Use it to guard prototype.
41319 2000-03-04 Jim Meyering <meyering@lucent.com>
41321 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
41322 for lib/localcharset.c.
41324 2000-03-04 Jim Meyering <meyering@lucent.com>
41326 * lib/Makefile.am (install-exec-local): Create $(libdir) before
41327 installing into it.
41328 (uninstall-local): Uncomment this rule so `make distcheck' works
41331 * lib/unicodeio.c (<errno.h>): Include it.
41332 (errno): Declare if not defined.
41334 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
41336 * lib/config.charset: New version, incorporating remarks from a linux
41337 i18n mailing list. From Bruno Haible.
41339 2000-03-04 Bruno Haible <haible@clisp.cons.org>
41341 * m4/codeset.m4: New file.
41342 * m4/iconv.m4: New file.
41343 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
41345 2000-03-03 Jim Meyering <meyering@lucent.com>
41347 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
41349 2000-03-02 Jim Meyering <meyering@lucent.com>
41351 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
41352 the messages come out on separate lines.
41354 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
41355 rather than jm_CHECK_DECLARATIONS.
41356 * m4/decl.m4: Remove now-unused file.
41358 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
41361 2000-03-02 Jim Meyering <meyering@lucent.com>
41363 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
41365 2000-03-01 Jim Meyering <meyering@lucent.com>
41367 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
41368 * lib/unicodeio.c: Likewise.
41370 2000-03-01 Bruno Haible <haible@clisp.cons.org>
41372 * lib/config.charset: New file.
41373 * lib/localcharset.c: New file.
41374 * lib/unicodeio.h, lib/unicodeio.c: New files.
41375 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
41376 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
41377 (noinst_HEADERS): Add unicodeio.h.
41378 (all-local, install-exec-local, charset.alias): New targets.
41380 2000-02-28 Paul Eggert <eggert@twinsun.com>
41382 * lib/quotearg.c (ALERT_CHAR): New macro.
41383 (quotearg_buffer_restyled): Use it.
41385 2000-02-27 Jim Meyering <meyering@lucent.com>
41387 * m4/check-decl.m4: Add getenv to the list.
41389 2000-02-27 Jim Meyering <meyering@lucent.com>
41391 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
41392 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
41394 * lib/backupfile.c: Guard inclusion of stdlib.h with
41395 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
41396 Declare malloc if needed.
41398 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
41399 `#ifndef HAVE_DECL..'
41400 now that autoconf always defines the HAVE_DECL_ symbols.
41401 * lib/human.c: Likewise.
41402 * lib/same.c: Likewise.
41403 * lib/strtoumax.c: Likewise.
41405 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
41406 declaration check was not run.
41407 * lib/hash.c: Likewise.
41408 * lib/human.c: Likewise.
41409 * lib/same.c: Likewise.
41410 * lib/strtoumax.c: Likewise.
41412 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
41413 `.', then first look up the entire `.'-containing string as a login
41416 2000-02-23 Jim Meyering <meyering@lucent.com>
41418 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
41419 in place of my hack.
41421 2000-02-18 Paul Eggert <eggert@twinsun.com>
41423 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
41424 (textint): New typedef.
41425 (parser_control): Member year changed from int to textint.
41427 (YYSTYPE): Removed; replaced by %union with int and textint members.
41428 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
41429 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
41430 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
41431 (tSNUMBER, tUNUMBER): Now of type <textintval>.
41432 (date, number, to_year): Use width of number in digits, not its value,
41433 to determine whether it's a 2-digit year, or a 2-digit time.
41434 (yylex): Store number of digits of numeric tokens.
41435 Reported by John Kendall.
41437 (parser_control): Changed from struct parser_control to typedef (for
41438 consistency). All uses changed.
41440 (tID): Removed; not used.
41441 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
41443 2000-02-14 Paul Eggert <eggert@twinsun.com>
41445 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
41446 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
41448 2000-02-12 Jim Meyering <meyering@lucent.com>
41450 * lib/userspec.c (ISDIGIT): Define it.
41451 (isdigit): Remove definition.
41452 (is_number): Use ISDIGIT, not isdigit.
41453 <libintl.h>: Include.
41454 (_ and N_): Define.
41455 (parse_user_spec): Mark translatable strings.
41457 2000-02-10 Jim Meyering <meyering@lucent.com>
41459 With these changes, nanosleep.[ch] are finally enough like the other
41460 lib/* replacement files to compile on a few more losing systems.
41462 * lib/nanosleep.h: Don't include config.h.
41463 Remove prototype from declaration of nanosleep.
41464 (PARAMS): Remove now-unneeded definition.
41465 * lib/nanosleep.c: #undef nanosleep.
41466 (rpl_nanosleep): Rename from nanosleep.
41468 2000-02-10 Jim Meyering <meyering@lucent.com>
41470 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
41471 gnu_nanosleep to rpl_nanosleep.
41473 2000-02-09 Jim Meyering <meyering@lucent.com>
41475 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
41476 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
41478 2000-02-08 Akim Demaille <akim@epita.fr>
41480 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
41481 `[' and `]' and remove uses of `changequote'.
41482 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
41483 (AC_SYS_LARGEFILE): Likewise.
41484 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41485 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
41487 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
41488 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
41489 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
41490 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
41492 2000-02-05 Jim Meyering <meyering@lucent.com>
41494 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
41495 Remove explicit use of AC_HEADER_TIME. It is required by
41496 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
41497 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
41498 in autoconf whereby the expansion of the latter ended up preceding
41499 the expansion of its prerequisite, AC_HEADER_TIME.
41500 Reported by Volker Borchert.
41502 2000-02-03 Jim Meyering <meyering@lucent.com>
41504 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
41506 2000-02-03 Jim Meyering <meyering@lucent.com>
41508 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
41509 rather than with `#if HAVE_UTMPNAME'.
41511 2000-02-02 Jim Meyering <meyering@lucent.com>
41513 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
41514 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
41515 Reported by Eli Zaretskii.
41517 2000-02-01 Jim Meyering <meyering@lucent.com>
41519 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
41521 2000-01-31 Jim Meyering <meyering@lucent.com>
41523 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
41524 functions. Add the time.h and sys/time.h headers along with the
41525 AC_REQUIRE'ment of AC_HEADER_TIME.
41527 2000-01-31 Jim Meyering <meyering@lucent.com>
41529 * lib/nanosleep.h (nanosleep): Guard declaration with
41530 `#if ! HAVE_DECL_NANOSLEEP'.
41531 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
41532 the declaration in that vendor's sys/timers.h.
41533 Reported by Christian Krackowizer.
41535 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
41536 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
41537 (ISPRINT): Likewise.
41538 Reported by Tom Tromey.
41540 2000-01-30 Jim Meyering <meyering@lucent.com>
41542 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
41544 * m4/prereq.m4 (utmp_includes): Define.
41545 Check for ut_user and ut_name members in both struct utmpx
41548 2000-01-30 Jim Meyering <meyering@lucent.com>
41550 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
41551 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
41552 header files where only utmpx.ut_user is declared.
41554 * lib/readutmp.h (UT_USER): Define.
41556 2000-01-29 Jim Meyering <meyering@lucent.com>
41558 * m4/lib-check.m4: New file containing library-related checks from
41559 fileutils and sh-utils (textutils had none).
41561 2000-01-28 Jim Meyering <meyering@lucent.com>
41563 * m4/perl.m4: Change format of warning message to look more like that
41564 from the missing script. Suggestion from François Pinard.
41566 2000-01-25 Jim Meyering <meyering@lucent.com>
41568 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
41569 well as time.h in the compile check.
41570 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
41571 Fix typo in cross-compiling case: s/yes/no/.
41573 2000-01-23 Jim Meyering <meyering@lucent.com>
41575 * m4/jm-macros.m4: Move df-related tests here from
41576 fileutils/configure.in
41578 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
41579 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
41581 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
41582 s/space/ac_fsusage_space/.
41583 (jm_FILE_SYSTEM_USAGE): Take two parameters.
41585 * m4/ftruncate.m4: New file (derived from part of
41586 fileutils/configure.in).
41587 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
41588 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
41590 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
41591 AC_SUBST these here, rather than just in sh-util/configure.in, so
41592 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
41594 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
41595 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
41596 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
41597 (AC_SUBST(POW_LIBM)): Likewise.
41598 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
41600 2000-01-23 Jim Meyering <meyering@lucent.com>
41602 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
41605 2000-01-22 Jim Meyering <meyering@lucent.com>
41607 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
41609 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
41611 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
41613 (AC_CHECK_HEADERS): Likewise for sh-utils.
41614 (AC_CHECK_HEADERS): Likewise for textutils.
41615 Merge the three lists of headers.
41617 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
41618 from fileutils' configure.in.
41620 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
41621 code. Moved tests into their own function (_jm_DECL_HEADERS) in
41624 * m4/check-decl.m4: Use #if rather than #ifdef.
41625 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
41626 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
41627 (_jm_DECL_HEADERS): Define new function.
41628 (jm_CHECK_DECLARATIONS): Require it.
41630 2000-01-22 Jim Meyering <meyering@lucent.com>
41632 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
41633 [! HAVE_DECL_STRTOULL]: Declare strtoull.
41634 Required for some AIX systems. Reported by Christian Krackowizer.
41635 [TESTING] (main): New function.
41637 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
41638 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
41641 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
41644 * lib/strverscmp.c (ISDIGIT): Define.
41645 (strverscmp): Use ISDIGIT, not isdigit.
41647 2000-01-19 Jim Meyering <meyering@lucent.com>
41649 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
41650 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
41651 defines `struct timespec' in <sys/time.h>
41653 * m4/c-bs-a.m4: Remove uses of changequote altogether.
41654 Thanks to Akim for explaining.
41656 2000-01-17 Paul Eggert <eggert@twinsun.com>
41658 * lib/nanosleep.c (nanosleep):
41659 Don't use SA_INTERRUPT to decide whether to call sigaction, as
41660 POSIX.1 doesn't require SA_INTERRUPT and some systems
41661 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
41662 it's been part of POSIX.1 since day 1 (in 1988).
41664 2000-01-17 Jim Meyering <meyering@lucent.com>
41666 * lib/interlock: Remove unused file. Reported by François Pinard.
41668 2000-01-16 Paul Eggert <eggert@twinsun.com>
41670 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
41671 alert, backslash, formfeed, and vertical tab unnecessarily in
41672 shell quoting style.
41674 2000-01-16 Jim Meyering <meyering@lucent.com>
41676 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
41677 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
41678 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
41679 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
41681 2000-01-16 Jim Meyering <meyering@lucent.com>
41683 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
41684 because the latter didn't work.
41686 2000-01-15 Jim Meyering <meyering@lucent.com>
41688 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
41689 (AC_REPLACE_FUNCS): Add memcpy and memset.
41690 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
41692 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
41694 2000-01-12 Jim Meyering <meyering@lucent.com>
41696 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
41697 (jm_PREREQ): Use it.
41698 (jm_PREREQ_READUTMP): New macro.
41699 (jm_PREREQ): Use it.
41701 2000-01-11 Paul Eggert <eggert@twinsun.com>
41703 Quote multibyte characters correctly.
41704 * m4/c-bs-a.m4: New file.
41705 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
41706 (jm_PREREQ): Use it.
41708 2000-01-11 Paul Eggert <eggert@twinsun.com>
41710 * m4/uintmax_t.m4: Port to autoconf 2.13.
41712 2000-01-08 Jim Meyering <meyering@ascend.com>
41714 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
41715 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
41717 2000-01-04 Jim Meyering <meyering@ascend.com>
41719 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
41720 jm_STRUCT_DIRENT_D_TYPE.
41721 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
41722 jm_STRUCT_DIRENT_D_INO.
41723 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
41725 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
41727 * m4/utime.m4: Likewise.
41729 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
41730 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
41732 2000-01-03 Paul Eggert <eggert@twinsun.com>
41734 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
41735 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
41737 2000-01-02 Jim Meyering <meyering@ascend.com>
41739 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
41740 remember if this is necessary.
41742 1999-12-26 Jim Meyering <meyering@ascend.com>
41744 * m4/jm-macros.m4: Use it here.
41745 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
41747 1999-12-23 Jim Meyering <meyering@ascend.com>
41749 * m4/jm-macros.m4: Check for clock_gettime (moved from
41750 fileutils/configure.in)
41751 Check for gettimeofday.
41753 1999-12-20 Jim Meyering <meyering@ascend.com>
41755 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
41756 autoconf-2.14a-1999-12-20.
41758 1999-12-19 Jim Meyering <meyering@ascend.com>
41760 * m4/lstat-slash.m4: New file.
41761 * m4/jm-macros.m4: Use the new macro:
41762 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41764 1999-12-07 Jim Meyering <meyering@ascend.com>
41766 * m4/perl.m4: Require that File::Compare be available, too.
41767 Too many systems seem to lack it.
41769 * m4/strftime.m4: Add checks for most of the cpp macros tested in
41770 GNU's strftime.c. Prompted by a patch from Paul Eggert.
41772 1999-11-18 Paul Eggert <eggert@twinsun.com>
41774 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
41775 problem with the QNX 4.25 shell, which doesn't propagate exit
41776 status of failed commands inside shell assignments.
41778 1999-11-17 Jim Meyering <meyering@ascend.com>
41780 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
41782 1999-11-07 Jim Meyering <meyering@ascend.com>
41784 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
41786 1999-11-06 Jim Meyering <meyering@ascend.com>
41788 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
41789 * m4/jm-macros.m4 (jm_MACROS): Use it here.
41791 1999-11-05 Jim Meyering <meyering@ascend.com>
41793 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
41794 configure.in of textutils, fileutils, and sh-utils into this one
41795 (shared between those packages) file.
41796 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
41797 AC_STRUCT_ST_BLKSIZE.
41799 1999-11-03 Jim Meyering <meyering@ascend.com>
41801 * m4/ssize_t.m4: Remove file. No longer needed since the new version
41802 of AC_CHECK_TYPE checks includes unistd.h.
41803 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
41804 Suggestion from Akim Demaille.
41806 1999-10-30 Jim Meyering <meyering@ascend.com>
41808 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
41810 * m4/ls-mntd-fs.m4: Likewise.
41811 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
41812 * m4/jm-winsz1.m4: Likewise.
41814 * m4/const.m4: Remove file, since the fix made it into the experimental
41815 version of autoconf.
41816 * m4/mktime.m4: Likewise.
41818 * m4/check-type.m4: Remove file, now that the latest version of
41819 AC_CHECK_TYPE takes a third arg to specify additional #includes.
41821 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
41822 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
41825 1999-10-04 Jim Meyering <meyering@ascend.com>
41827 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
41829 1999-09-22 Paul Eggert <eggert@twinsun.com>
41831 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
41832 2.95.1 bug with HP-UX 10.20.
41834 1999-09-17 Jim Meyering <meyering@ascend.com>
41836 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
41837 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
41838 due to missing strdup (against sh-utils-2.0).
41840 1999-08-29 Jim Meyering <meyering@ascend.com>
41842 * m4/jm-macros.m4: Require jm_BISON.
41843 * m4/bison.m4: New file.
41845 1999-08-17 Paul Eggert <eggert@twinsun.com>
41847 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
41848 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
41850 1999-08-05 Jim Meyering <meyering@ascend.com>
41852 * m4/getline.m4: Rename test file from conftestdata to conftest.data
41853 to avoid conflicts with `conftest' on 8+3 filesystems.
41854 Suggestion from Eli Zaretskii.
41856 1999-08-04 Jim Meyering <meyering@ascend.com>
41858 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
41859 fileutils and sh-utils (textutils's getline test was inadequate).
41860 (AM_FUNC_GETLINE): Run this test.
41861 (AC_CHECK_FUNCS): Check for getdelim.
41862 Reported by Bob Proulx.
41864 1999-08-02 Jim Meyering <meyering@ascend.com>
41866 * m4/jm-macros.m4: Add a comment.
41868 1999-08-01 Paul Eggert <eggert@twinsun.com>
41870 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
41871 <inttypes.h> defines strtoumax as a macro (and not as a
41874 1999-08-01 Paul Eggert <eggert@twinsun.com>
41876 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
41877 that we can shift, multiply and divide unsigned long long
41878 values; Ultrix cc can't do it.
41880 1999-08-01 Paul Eggert <eggert@twinsun.com>
41882 * m4/mktime.m4: New file, which is a preview of what should appear
41883 in the next public autoconf release.
41885 1999-08-01 Paul Eggert <eggert@twinsun.com>
41887 * m4/lfs.m4: Remove this file.
41888 * m4/largefile.m4: New file. It contains the old contents of
41889 lfs.m4, except that all names with prefix AC_LFS have been
41890 changed to use the prefix AC_SYS_LARGEFILE instead, to be
41891 compatible with future autoconf versions. Also, some minor m4
41892 quoting problems have been fixed.
41894 1999-08-01 Paul Eggert <eggert@twinsun.com>
41896 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
41897 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
41898 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
41899 and simplify the shell code.
41901 1999-08-01 Jim Meyering <meyering@ascend.com>
41903 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
41906 1999-07-20 Jim Meyering <meyering@ascend.com>
41908 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
41910 1999-07-15 Jim Meyering <meyering@ascend.com>
41912 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
41914 1999-05-22 Jim Meyering <meyering@ascend.com>
41916 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
41918 1999-05-20 Jim Meyering <meyering@ascend.com>
41920 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
41921 Add a colon after each `then' in case $4 is empty.
41923 1999-05-16 Jim Meyering <meyering@ascend.com>
41925 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
41927 1999-05-10 Jim Meyering <meyering@ascend.com>
41929 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
41931 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
41934 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
41936 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
41938 1999-05-04 Paul Eggert <eggert@twinsun.com>
41940 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
41941 not CPPFLAGS, so that linking works correctly in IRIX.
41943 1999-04-30 Paul Eggert <eggert@twinsun.com>
41945 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
41947 1999-04-20 Paul Eggert <eggert@twinsun.com>
41949 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
41950 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
41951 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
41952 jm_AC_TYPE_UNSIGNED_LONG_LONG.
41953 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
41955 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
41957 1999-04-20 Jim Meyering <meyering@ascend.com>
41959 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
41960 AC_REPLACE xstroull if necessary. From Paul Eggert.
41961 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
41963 1999-04-18 Jim Meyering <meyering@ascend.com>
41965 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
41966 * m4/jm-macros.m4: Use it.
41968 1999-04-06 Jim Meyering <meyering@ascend.com>
41970 * m4/strftime.m4: Remove test for %f.
41972 1999-03-29 Jim Meyering <meyering@ascend.com>
41974 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
41975 superset of the AC_TYPE_* checks in the textutils, fileutils,
41976 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
41979 1999-03-28 Jim Meyering <meyering@ascend.com>
41981 * m4/jm-macros.m4: Define GNU_PACKAGE here.
41982 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
41983 replaced e.g., in the *.sh files of the sh-utils.
41985 1999-03-20 Jim Meyering <meyering@ascend.com>
41987 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
41988 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
41989 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
41991 1999-03-19 Jim Meyering <meyering@ascend.com>
41993 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
41995 1999-03-12 Jim Meyering <meyering@ascend.com>
41997 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
41999 1999-03-07 Jim Meyering <meyering@ascend.com>
42001 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42004 1999-02-17 Jim Meyering <meyering@ascend.com>
42006 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42007 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
42009 1999-02-07 Jim Meyering <meyering@ascend.com>
42011 * m4/group-member.m4: New file -- extracted from sh-utils'
42014 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
42015 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42017 1999-02-06 Jim Meyering <meyering@ascend.com>
42019 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42020 * m4/fnmatch.m4: Likewise.
42021 * m4/getgroups.m4: Likewise.
42022 * m4/lstat.m4: Likewise.
42023 * m4/malloc.m4: Likewise.
42024 * m4/putenv.m4: Likewise.
42025 * m4/realloc.m4: Likewise.
42026 * m4/regex.m4: Likewise.
42027 * m4/stat.m4: Likewise.
42028 * m4/strftime.m4: Likewise.
42029 Suggestion from Alain Magloire.
42031 * m4/chown.m4: Use `.$ac_objext', not `.o'.
42032 * m4/fnmatch.m4: Likewise.
42033 * m4/getgroups.m4: Likewise.
42034 * m4/getline.m4: Likewise.
42035 * m4/lstat.m4: Likewise.
42036 * m4/malloc.m4: Likewise.
42037 * m4/memcmp.m4: Likewise.
42038 * m4/putenv.m4: Likewise.
42039 * m4/realloc.m4: Likewise.
42040 * m4/regex.m4: Likewise.
42041 * m4/stat.m4: Likewise.
42042 * m4/strftime.m4: Likewise.
42043 Suggestion from Alain Magloire.
42045 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42048 * m4/regex.m4: Add a run-time Test for proper operation of
42049 re_compile_pattern.
42051 1999-01-31 Jim Meyering <meyering@ascend.com>
42053 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42055 1999-01-30 Jim Meyering <meyering@ascend.com>
42057 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42059 * m4/jm-mktime.m4: Make this a wrapper around the official
42060 AM_FUNC_MKTIME rather than my private copy, now that the official one
42062 * m4/mktime.m4: Remove file.
42064 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42065 * m4/uptime.m4: Likewise.
42066 * m4/uintmax_t.m4: Likewise.
42068 1999-01-28 Jim Meyering <meyering@ascend.com>
42070 * m4/jm-macros.m4: Use jm_AFS.
42071 * m4/afs.m4: New file (from fileutils' configure.in).
42073 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42074 * m4/chown.m4: Likewise.
42075 * m4/d-ino.m4: Likewise.
42076 * m4/d-type.m4: Likewise.
42077 * m4/fnmatch.m4: Likewise.
42078 * m4/getgroups.m4: Likewise.
42079 * m4/gettext.m4: Likewise.
42080 * m4/jm-mktime.m4: Likewise.
42081 * m4/jm-winsz2.m4: Likewise.
42082 * m4/lcmessage.m4: Likewise.
42083 * m4/ls-mntd-fs.m4: Likewise.
42084 * m4/malloc.m4: Likewise.
42085 * m4/memcmp.m4: Likewise.
42086 * m4/putenv.m4: Likewise.
42087 * m4/realloc.m4: Likewise.
42088 * m4/st_mtim.m4: Likewise.
42089 * m4/strftime.m4: Likewise.
42091 1999-01-16 Jim Meyering <meyering@ascend.com>
42093 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42094 (ARGMATCH_DIE_DECL): Define.
42096 1999-01-12 Jim Meyering <meyering@ascend.com>
42098 * m4/Makefile.am.in: Rewrite to avoid using fmt.
42099 Reported by Lars Hecking.
42101 1999-01-10 Jim Meyering <meyering@ascend.com>
42103 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
42105 * m4/inttypes_h.m4: Likewise.
42106 * m4/lstat.m4: Likewise.
42107 * m4/malloc.m4: Likewise.
42108 * m4/readdir.m4: Likewise.
42109 * m4/realloc.m4: Likewise.
42110 * m4/st_dm_mode.m4: Likewise.
42111 * m4/stat.m4: Likewise.
42112 * m4/utimbuf.m4: Likewise.
42113 * m4/utimes.m4: Likewise.
42115 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
42116 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
42117 comments in config.h.in are meaningful.
42119 * m4/jm-macros.m4: Require autoconf-2.13 here.
42121 * m4/regex.m4: By default, don't use the included regex.c on systems
42122 with glibc 2. Suggestion from Uli Drepper.
42124 1999-01-02 Jim Meyering <meyering@ascend.com>
42126 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
42128 1998-12-18 Jim Meyering <meyering@ascend.com>
42130 * m4/Makefile.am.in (Makefile.am): Simplify rule.
42131 Based on a suggestion from Lars Hecking.
42133 1998-11-16 Paul Eggert <eggert@twinsun.com>
42135 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
42137 1998-11-16 Jim Meyering <meyering@ascend.com>
42139 * m4/lfs.m4: Double-quote the `uname...` expression.
42141 1998-11-14 Jim Meyering <meyering@ascend.com>
42143 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
42144 * m4/stat.m4: Likewise.
42146 1998-11-03 Jim Meyering <meyering@ascend.com>
42148 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
42149 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
42151 1998-10-18 Jim Meyering <meyering@ascend.com>
42153 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
42155 1998-10-17 Jim Meyering <meyering@ascend.com>
42157 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
42158 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
42159 calls for those previously hard-coded headers. Instead, take a new
42161 (jm_CHECK_DECLARATIONS): Reflect interface change.
42162 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
42163 (jm_CHECK_DECL_LOCALTIME_R): New macro.
42165 * m4/mktime.m4: Test for spring-forward gap before long-running test.
42167 1998-10-14 Jim Meyering <meyering@ascend.com>
42169 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
42170 instead of "TZ=America/Vancouver". From Paul Eggert.
42172 1998-10-11 Jim Meyering <meyering@ascend.com>
42174 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
42175 This adds a test for a recently added compatibility fix for mktime.c.
42176 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
42178 1998-09-27 Jim Meyering <meyering@ascend.com>
42180 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
42182 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
42183 ../configure.in, including a change from Gordon Matzigkeit to allow
42184 cross-compiling for the Hurd.
42186 * m4/glibc.m4: New file/macro to test for the GNU C Library
42187 versions 1 and 2. From Gordon Matzigkeit.
42190 1998-09-21 Jim Meyering <meyering@ascend.com>
42192 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
42194 1998-08-18 Paul Eggert <eggert@twinsun.com>
42196 Port nanosecond-resolution times to UnixWare 2.1.2 and
42197 pedantic Solaris 2.6.
42199 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
42201 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
42202 Generate name of ns member, instead of just 1 or undef.
42203 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
42205 1998-08-15 Jim Meyering <meyering@ascend.com>
42207 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
42208 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
42209 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
42210 instead of jm_TYPE_SSIZE_T.
42212 1998-08-12 Jim Meyering <meyering@ascend.com>
42214 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
42216 1998-08-02 Jim Meyering <meyering@ascend.com>
42218 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
42219 in acconfig.h manually.
42221 1998-07-31 Paul Eggert <eggert@twinsun.com>
42223 * m4/st_mtim.m4: New file.
42225 1998-07-28 Jim Meyering <meyering@ascend.com>
42227 * m4/utimes.m4: Undef stat.
42229 1998-07-25 Jim Meyering <meyering@ascend.com>
42231 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
42232 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
42234 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
42236 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
42237 uid and gid actually remain unchanged.
42239 1998-07-07 Jim Meyering <meyering@ascend.com>
42241 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
42243 1998-07-04 Jim Meyering <meyering@ascend.com>
42245 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
42246 to prove that this macro can be used in packages without regex.c.
42248 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
42250 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
42253 1998-07-03 Jim Meyering <meyering@ascend.com>
42255 * m4/gettext.m4: Add -lintl if it's found to be necessary.
42257 * m4/gettext.m4: New file -- from gettext-0.10.35.
42258 * m4/lcmessage.m4: Likewise.
42259 * m4/progtest.m4: Likewise.
42261 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
42262 * m4/jm-macros.m4: Require the new macro.
42264 1998-06-29 Jim Meyering <meyering@ascend.com>
42266 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
42267 for the definition of NGROUPS (used in a system header included
42270 1998-06-28 Jim Meyering <meyering@ascend.com>
42272 * m4/ls-mntd-fs.m4: New file.
42273 * m4/fstypename.m4: New file.
42275 * m4/jm-macros.m4: Require the new macro.
42276 * m4/jm-glibc-io.m4: New file.
42278 1998-05-19 Jim Meyering <meyering@ascend.com>
42280 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
42281 * m4/lchown.m4: New file.
42283 * m4/Makefile.am.in: New file.
42284 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
42286 1998-05-14 Jim Meyering <meyering@ascend.com>
42288 * m4/Makefile.am (EXTRA_DIST): Add them.
42289 * m4/jm-macros.m4: New file.
42290 * m4/utimbuf.m4: New file.
42292 1998-05-12 Jim Meyering <meyering@ascend.com>
42294 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
42296 1998-05-11 Jim Meyering <meyering@ascend.com>
42298 * m4/isc-posix.m4: New file.
42300 1998-05-10 Jim Meyering <meyering@ascend.com>
42302 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
42304 1998-05-09 Jim Meyering <meyering@ascend.com>
42306 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
42307 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
42310 * m4/ssize_t.m4: New file.
42311 * m4/mktime.m4: Remove file -- the new automake has this now.
42313 1998-04-26 Jim Meyering <meyering@ascend.com>
42315 * m4/assert.m4: New file.
42316 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
42318 1998-04-05 Jim Meyering <meyering@ascend.com>
42320 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
42321 (jm_PREREQ): Use it here.
42323 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
42325 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
42328 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
42330 * m4/prereq.m4: New file.
42331 * m4/error.m4: New file.
42332 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
42334 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
42336 * m4/getline.m4: Don't set am_cv_func_working_getline before the
42337 cache-check for the same variable -- that defeated the purpose of
42338 the test; the test program was never run. This was a problem only
42339 on systems with losing getline functions -- HP-UX 10.20 is one.
42340 Reported by Bjorn Helgaas.
42342 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
42344 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
42346 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
42348 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
42350 * m4/const.m4: New file. Use an initializer in this declaration
42351 typedef int charset[2]; const charset x;
42352 Reported by Bob Glickstein.
42354 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
42356 * m4/chown.m4: Fix reversed types on -1 args to chown.
42359 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
42361 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
42362 Add lseek and memchr.
42364 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
42365 T.E.Dickey <dickey@clark.net> said that some older preprocessors
42366 have a 20-character limit on names.
42368 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
42370 * m4/inttypes_h.m4: New file.
42371 * m4/uintmax_t.m4: New file.
42372 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
42381 Copyright (C) 1997-2008 Free Software Foundation, Inc.
42383 Copying and distribution of this file, with or without
42384 modification, are permitted provided the copyright notice
42385 and this notice are preserved.