1 2007-03-04 Bruno Haible <bruno@clisp.org>
3 * modules/vasprintf-posix: New file.
4 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
6 * m4/vasprintf-posix.m4: New file.
7 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
9 (gl_FUNC_VASPRINTF): Invoke it.
10 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
12 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
14 2007-03-04 Bruno Haible <bruno@clisp.org>
16 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
18 * modules/sys_time (Makefile.am): Likewise.
19 * m4/sys_time_h.m4: Likewise.
20 * m4/gettimeofday.m4: Likewise.
22 2007-03-04 Bruno Haible <bruno@clisp.org>
24 * modules/vasnprintf-posix-tests: New file.
25 * tests/test-vasnprintf-posix.c: New file.
27 * modules/vasnprintf-posix: New file.
28 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
30 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
31 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
32 REPLACE_VASNPRINTF is defined.
33 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35 (gl_FUNC_VASNPRINTF): Invoke it.
36 * m4/vasnprintf-posix.m4: New file.
37 * m4/printf.m4: New file.
39 2007-03-04 Bruno Haible <bruno@clisp.org>
41 Compile progreloc.c only if --enable-relocatable is specified.
42 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43 if --enable-relocatable was specified.
44 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47 2007-03-04 Jim Meyering <jim@meyering.net>
49 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50 Use it consistently, rather than enumerating errno constants.
52 2007-03-04 Bruno Haible <bruno@clisp.org>
54 * modules/xvasprintf-tests: New file.
55 * tests/test-xvasprintf.c: New file.
57 * modules/vasprintf-tests: New file.
58 * tests/test-vasprintf.c: New file.
60 * modules/vasnprintf-tests: New file.
61 * tests/test-vasnprintf.c: New file.
63 * modules/vsnprintf-tests: New file.
64 * tests/test-vsnprintf.c: New file.
66 * modules/snprintf-tests: New file.
67 * tests/test-snprintf.c: New file.
69 2007-03-04 Bruno Haible <bruno@clisp.org>
71 Compile relocatable.c only if --enable-relocatable is specified.
72 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73 gl_RELOCATABLE_LIBRARY.
74 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
75 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
76 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
77 gl_RELOCATABLE_LIBRARY.
78 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
79 (Makefile.am): Remove lib_SOURCES.
80 * modules/relocatable-lib-lgpl (configure.ac): Invoke
81 gl_RELOCATABLE_LIBRARY.
82 (Makefile.am): Remove lib_SOURCES.
83 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
85 * modules/relocatable-prog-wrapper (configure.ac): Invoke
86 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
88 2007-03-04 Bruno Haible <bruno@clisp.org>
90 * modules/argmatch-tests: New file.
91 * tests/test-argmatch.c: New file.
93 * tests/test-allocsa.c (main): Halve the number of loop runs.
95 * modules/alloca-opt-tests: New file.
96 * tests/test-alloca-opt.c: New file.
98 2007-03-04 Jim Meyering <jim@meyering.net>
100 Work around difference between Linux ACLs and Solaris 10 ZFS.
101 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
104 2007-03-03 Bruno Haible <bruno@clisp.org>
106 * modules/relocatable-prog (Depends-on): Add back progreloc's
107 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
109 2007-03-03 Bruno Haible <bruno@clisp.org>
111 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
112 * modules/relocatable-lib: New file.
114 2007-03-03 Bruno Haible <bruno@clisp.org>
116 * modules/relocatable-prog: Renamed from modules/relocatable.
117 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
119 2007-03-03 Bruno Haible <bruno@clisp.org>
121 * modules/relocatable-script (Files): Add doc/relocatable.texi,
122 m4/relocatable-lib.m4.
123 (Depends-on): Remove 'relocatable'.
124 (configure.ac): Add gl_RELOCATABLE_NOP.
126 2007-03-03 Bruno Haible <bruno@clisp.org>
128 * modules/relocatable-prog-wrapper: New file.
129 * modules/relocatable (Depends-on): Add it. Remove all other
130 dependencies except progname.
131 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
133 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
134 (gl_FUNC_STRERROR): Nop.
135 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
137 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
138 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
140 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
141 (gl_FUNC_READLINK): Update.
143 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
145 2007-03-03 Bruno Haible <bruno@clisp.org>
147 * lib/xreadlink.c: Include <unistd.h> unconditionally.
148 * modules/xreadlink (Depends-on): Add unistd.
149 * modules/xreadlink-with-size (Depends-on): Likewise.
151 2007-03-03 Bruno Haible <bruno@clisp.org>
153 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
154 extracted from gt_FUNC_SETENV.
155 (gt_FUNC_SETENV): Remove macro.
156 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
157 remove gt_FUNC_SETENV.
159 2007-03-03 Bruno Haible <bruno@clisp.org>
161 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
162 ENABLE_RELOCATABLE here.
163 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
165 2007-03-03 Bruno Haible <bruno@clisp.org>
167 * modules/rbtreehash-list-tests (Depends-on): Add progname.
168 * tests/test-rbtreehash_list.c: Include progname.h.
169 (main): Call set_program_name.
171 * modules/rbtree-oset-tests (Depends-on): Add progname.
172 * tests/test-rbtree_oset.c: Include progname.h.
173 (main): Call set_program_name.
175 * modules/rbtree-list-tests (Depends-on): Add progname.
176 * tests/test-rbtree_list.c: Include progname.h.
177 (main): Call set_program_name.
179 * modules/linked-list-tests (Depends-on): Add progname.
180 * tests/test-linked_list.c: Include progname.h.
181 (main): Call set_program_name.
183 2007-03-03 Bruno Haible <bruno@clisp.org>
185 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
186 All uses of __restrict changed to _Restrict_.
187 * lib/glob_.h (__restrict): Remove macro.
189 2007-03-02 Bruno Haible <bruno@clisp.org>
191 * modules/gettext (configure.ac): Require gettext infrastructure
194 2007-03-02 Bruno Haible <bruno@clisp.org>
196 * modules/linkedhash-list-tests (Depends-on): Add progname.
197 * tests/test-linkedhash_list.c: Include progname.h.
198 (main): Call set_program_name.
200 * modules/carray-list-tests (Depends-on): Add progname.
201 * tests/test-carray_list.c: Include progname.h.
202 (main): Call set_program_name.
204 * modules/avltreehash-list-tests (Depends-on): Add progname.
205 * tests/test-avltreehash_list.c: Include progname.h.
206 (main): Call set_program_name.
208 * modules/avltree-oset-tests (Depends-on): Add progname.
209 * tests/test-avltree_oset.c: Include progname.h.
210 (main): Call set_program_name.
212 * modules/avltree-list-tests (Depends-on): Add progname.
213 * tests/test-avltree_list.c: Include progname.h.
214 (main): Call set_program_name.
216 * modules/array-oset-tests (Depends-on): Add progname.
217 * tests/test-array_oset.c: Include progname.h.
218 (main): Call set_program_name.
220 * modules/array-list-tests (Depends-on): Add progname.
221 * tests/test-array_list.c: Include progname.h.
222 (main): Call set_program_name.
224 * modules/argp-tests (Depends-on): Add progname.
225 * tests/test-argp.c: Include argp.h first. Include progname.h.
226 (main): Call set_program_name.
228 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
230 * doc/gnulib-tool.texi (Initial import): Reword description of
231 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
232 limited effect even if defined after the first system include.
234 2007-03-01 Bruno Haible <bruno@clisp.org>
236 * build-aux/config.libpath: Update to libtool-1.5.22.
237 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
239 2007-03-01 Bruno Haible <bruno@clisp.org>
241 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
243 Reported by Ralf Wildenhues.
245 2007-03-01 Bruno Haible <bruno@clisp.org>
247 * build-aux/install-reloc: Remove object files left over by some
249 Reported by Ralf Wildenhues.
251 2007-03-01 Bruno Haible <bruno@clisp.org>
253 * build-aux/install-reloc: Break long lines.
255 2007-03-01 Bruno Haible <bruno@clisp.org>
257 * doc/relocatable.texi: Document that it may not work on OpenBSD.
258 Reported by Ralf Wildenhues.
260 2007-03-01 Bruno Haible <bruno@clisp.org>
262 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
263 include ordering constraints.
265 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
267 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
268 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
269 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
271 * lib/time_.h: Fix misspelling.
272 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
273 Require gl_HEADER_TIME_H_DEFAULTS.
274 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
275 * m4/time_r.m4 (gl_TIME_R): Likewise.
276 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
278 2007-03-01 Bruno Haible <bruno@clisp.org>
280 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
281 * m4/utimens.m4 (gl_UTIMENS): Likewise.
283 2007-03-01 Jim Meyering <jim@meyering.net>
285 * modules/xreadlink (Maintainer): Add my name.
286 * modules/xreadlink-with-size (Depends-on): Alphabetize.
288 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
289 Bruno Haible <bruno@clisp.org>
291 * build-aux/install-reloc: Compile also c-ctype.c.
292 * build-aux/relocatable.sh.in: New file.
293 * doc/relocatable.texi: New file.
294 * doc/relocatable-maint.texi: New file.
295 * doc/gnulib.texi: Include relocatable-maint.texi.
296 * lib/progreloc.c: Include unistd.h unconditionally.
297 * lib/relocwrapper.c: Include unistd.h unconditionally.
299 (add_dotbin): Use c_tolower.
300 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
301 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
302 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
303 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
304 to m4/relocatable-lib.m4.
305 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
306 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
307 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
308 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
309 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
310 * modules/relocatable: New file.
311 * modules/relocatable-lib: New file.
312 * modules/relocatable-script: New file.
314 2007-02-28 Bruno Haible <bruno@clisp.org>
316 Import --enable-relocatable infrastructure.
317 * build-aux/config.libpath: New file, from GNU gettext.
318 * build-aux/install-reloc: New file, from GNU gettext.
319 * build-aux/reloc-ldflags: New file, from GNU gettext.
320 * lib/relocatable.h: New file, from GNU gettext.
321 * lib/relocatable.c: New file, from GNU gettext.
322 * lib/relocwrapper.c: New file, from GNU gettext.
323 * m4/relocatable.m4: New file, from GNU gettext.
325 2007-02-28 Bruno Haible <bruno@clisp.org>
327 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
329 * modules/xreadlink: New file, from GNU gettext with modifications.
330 * lib/xreadlink.c: New file, from GNU gettext.
331 * lib/xreadlink.h: Add comments.
332 (xreadlink): New declaration.
334 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
335 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
336 lib/xreadlink-with-size.c.
337 (configure.ac): Remove gl_XREADLINK invocation.
338 (Makefile.am): Augment lib_SOURCES.
339 * m4/xreadlink.m4: Remove file.
340 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
341 (xreadlink_with_size): Renamed from xreadink.
342 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
343 * modules/canonicalize (Depends-on): Replace xreadlink with
345 * lib/canonicalize.c (canonicalize_filename_mode): Update.
347 2007-02-25 Jim Meyering <jim@meyering.net>
349 * build-aux/announce-gen: When complaining about excess arguments,
352 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
354 * README: Document signed integer overflow situation more
357 2007-02-25 Bruno Haible <bruno@clisp.org>
359 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
360 'a' or 'A' conversion.
362 2007-02-25 Bruno Haible <bruno@clisp.org>
364 * modules/filename: Renamed from modules/pathname.
365 (Files): Replace lib/pathname.h with lib/filename.h. Replace
366 lib/concatpath.c with lib/concat-filename.c.
367 (Makefile.am): Update.
368 (Include): Replace pathname.h with filename.h.
369 * lib/filename.h: Renamed from lib/pathname.h.
370 (concatenated_filename): Renamed from concatenated_pathname.
371 * lib/concat-filename.c: Renamed from lib/concatpath.c.
372 (concatenated_filename): Renamed from concatenated_pathname.
373 * lib/findprog.c: Include filename.h instead of pathname.h.
374 (find_in_path): Update.
375 * lib/javacomp.c: Include filename.h instead of pathname.h.
376 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
377 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
378 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
379 is_oldgcj_14_13_usable, is_javac_usable): Update.
380 * lib/javaexec.c: Include filename.h instead of pathname.h.
381 (execute_java_class): Update.
382 * modules/findprog: Update.
383 * modules/javacomp: Update.
384 * modules/javaexec: Update.
385 * MODULES.html.sh (File system functions): Add 'filename', remove
388 2007-02-25 Bruno Haible <bruno@clisp.org>
390 * modules/printf-frexpl-tests: New file.
391 * tests/test-printf-frexpl.c: New file.
393 * modules/printf-frexpl: New file.
394 * lib/printf-frexpl.h: New file.
395 * lib/printf-frexpl.c: New file.
396 * m4/printf-frexpl.m4: New file.
398 2007-02-25 Bruno Haible <bruno@clisp.org>
400 * modules/printf-frexp-tests: New file.
401 * tests/test-printf-frexp.c: New file.
403 * modules/printf-frexp: New file.
404 * lib/printf-frexp.h: New file.
405 * lib/printf-frexp.c: New file.
406 * m4/printf-frexp.m4: New file.
408 2007-02-25 Bruno Haible <bruno@clisp.org>
410 Assume automake >= 1.10 for the tests.
411 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
412 * modules/arctwo-tests: Likewise.
413 * modules/argp-tests: Likewise.
414 * modules/avltree-list-tests: Likewise.
415 * modules/avltree-oset-tests: Likewise.
416 * modules/avltreehash-list-tests: Likewise.
417 * modules/carray-list-tests: Likewise.
418 * modules/crc-tests: Likewise.
419 * modules/des-tests: Likewise.
420 * modules/gc-arcfour-tests: Likewise.
421 * modules/gc-arctwo-tests: Likewise.
422 * modules/gc-des-tests: Likewise.
423 * modules/gc-hmac-md5-tests: Likewise.
424 * modules/gc-hmac-sha1-tests: Likewise.
425 * modules/gc-md2-tests: Likewise.
426 * modules/gc-md4-tests: Likewise.
427 * modules/gc-md5-tests: Likewise.
428 * modules/gc-pbkdf2-sha1-tests: Likewise.
429 * modules/gc-rijndael-tests: Likewise.
430 * modules/gc-sha1-tests: Likewise.
431 * modules/gc-tests: Likewise.
432 * modules/getaddrinfo-tests: Likewise.
433 * modules/hmac-md5-tests: Likewise.
434 * modules/hmac-sha1-tests: Likewise.
435 * modules/linked-list-tests: Likewise.
436 * modules/linkedhash-list-tests: Likewise.
437 * modules/lock-tests: Likewise.
438 * modules/md2-tests: Likewise.
439 * modules/md4-tests: Likewise.
440 * modules/md5-tests: Likewise.
441 * modules/rbtree-list-tests: Likewise.
442 * modules/rbtree-oset-tests: Likewise.
443 * modules/rbtreehash-list-tests: Likewise.
444 * modules/read-file-tests: Likewise.
445 * modules/rijndael-tests: Likewise.
446 * modules/stdint-tests: Likewise.
447 * modules/tls-tests: Likewise.
449 2007-02-24 Bruno Haible <bruno@clisp.org>
451 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
452 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
453 function; instead check whether isnan with a double argument links.
454 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
455 function; instead check whether isnan with a 'long double' argument
457 Reported by Eric Blake <ebb9@byu.net>.
459 2007-02-24 Bruno Haible <bruno@clisp.org>
461 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
463 * lib/isnanl.c: Remove all code. Just include isnan.c.
464 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
466 2007-02-25 Jim Meyering <jim@meyering.net>
468 Avoid conflicting types for 'unsetenv' on FreeBSD.
469 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
470 conflicting with FreeBSD's (5.0 and 6.1) function declaration
473 2007-02-24 Bruno Haible <bruno@clisp.org>
475 * modules/isnanl-nolibm-tests: New file.
476 * tests/test-isnanl.c: New file.
478 * modules/isnanl-nolibm: New file.
479 * lib/isnanl.h: New file.
480 * lib/isnanl.c: New file.
481 * m4/isnanl.m4: New file.
483 2007-02-24 Bruno Haible <bruno@clisp.org>
485 * modules/isnan-nolibm-tests: New file.
486 * tests/test-isnan.c: New file.
488 * modules/isnan-nolibm: New file.
489 * lib/isnan.h: New file.
490 * lib/isnan.c: New file.
491 * m4/isnan.m4: New file.
493 2007-02-24 Bruno Haible <bruno@clisp.org>
495 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
496 assume that an exponent fits in 20 bits.
498 2007-02-24 Jim Meyering <jim@meyering.net>
500 * m4/regex.m4: Update the description of the configure-time option,
501 --without-included-regex, to state accurately what the defaults are,
502 and perhaps to give people an idea why using this option is risky.
504 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
506 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
507 loops on small arguments. This attempts to avoid the problem
508 Bruno Haible reported for AIX 4.3.2 in
509 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
511 2007-02-23 Bruno Haible <bruno@clisp.org>
513 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
516 2007-02-23 Karl Berry <karl@gnu.org>
518 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
519 exists, foo.h should be cvs-ignored, not committed.
521 2007-02-23 Eric Blake <ebb9@byu.net>
523 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
524 * lib/stat-time.h (includes): Likewise.
525 * lib/utimecmp.c (includes): Likewise.
526 * lib/utimens.h (includes): Likewise.
527 * lib/getdate.y (includes): Also include "timespec.h" for use
528 internal to the module.
529 * modules/utimens (Depends-on): Revert yesterday's patch.
530 * modules/nanosleep (Depends-on): Add missing dependency.
532 2007-02-22 Bruno Haible <bruno@clisp.org>
534 * lib/glob.c: Don't include getlogin_r.h.
536 2007-02-22 Jim Meyering <jim@meyering.net>
538 * modules/utimens (Depends-on): Add timespec, required for
539 utimens.h's inclusion of timespec.h.
541 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
543 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
544 long unreadable paths in GNU/Linux. Problem reported by Andreas
546 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
547 I'll try to think of a better way to fix the Solaris problem.
549 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
550 like glibc; on Solaris 10, it fails with errno == EINVAL.
551 POSIX says the behavior is unspecified if the first argument is NULL,
552 so play it safe and never pass NULL to the system getcwd.
554 2007-02-21 Jim Meyering <jim@meyering.net>
556 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
557 of gettimeofday. It would conflict with the one now always
558 provided via sys_time_.h. Reported by Matthew Woehlke, as
559 an IRIX 6.5 build failure.
561 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
563 Minor fixups to port to Solaris 10 with Sun C 5.8.
564 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
565 * modules/getcwd (Depends-on): Add dirfd.
566 * lib/putenv.c (putenv): #undef it.
567 (rpl_putenv): New decl.
568 (malloc, free): Include <stdlib.h> rather than prototyping separately.
570 2007-02-20 Bruno Haible <bruno@clisp.org>
572 * modules/stdio-tests: New file.
573 * tests/test-stdio.c: New file.
575 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
576 (Depends-on): Add stdio.
577 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
578 (Include): Use <stdio.h> instead of vsnprintf.h.
579 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
581 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
583 * modules/snprintf (Files): Remove lib/snprintf.h.
584 (Depends-on): Add stdio.
585 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
586 (Include): Use <stdio.h> instead of snprintf.h.
587 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
589 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
590 * lib/getaddrinfo.c: Likewise.
592 * modules/stdio: New file.
593 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
594 * lib/snprintf.h: Remove file.
595 * lib/vsnprintf.h: Remove file.
596 * lib/.cppi-disable: Remove snprintf.h.
597 * m4/stdio_h.m4: New file.
598 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
600 2007-02-20 Jim Meyering <jim@meyering.net>
602 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
603 used by e.g., mingw. From Bruno Haible.
605 2007-02-19 Bruno Haible <bruno@clisp.org>
607 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
609 Reported by Ben Pfaff <blp@cs.stanford.edu>.
611 2007-02-19 Bruno Haible <bruno@clisp.org>
613 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
616 2007-02-19 Bruno Haible <bruno@clisp.org>
618 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
620 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
622 2007-02-19 Jim Meyering <jim@meyering.net>
624 Don't use FD after a successful "fdopendir (fd)".
625 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
626 Reset it by calling dirfd on the just-obtained DIR*.
628 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
629 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
631 2007-02-18 Bruno Haible <bruno@clisp.org>
633 * lib/readlink.c: Include <unistd.h>.
634 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
636 * modules/readlink (Depends-on): Add unistd.
637 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
638 (Include): Add <unistd.h>.
640 * lib/getlogin_r.h: Remove file.
641 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
642 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
643 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
644 HAVE_DECL_GETLOGIN_R.
645 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
646 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
647 (Include): Use <unistd.h> instead of getlogin_r.h.
649 * lib/getcwd.h: Remove file.
650 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
651 * lib/xgetcwd.c: Likewise.
652 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
653 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
654 * modules/getcwd (Files): Remove lib/getcwd.h.
655 (Depends-on): Add unistd.
656 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
657 (Include): Use <unistd.h> instad of getcwd.h.
659 * lib/ftruncate.c: Include <unistd.h> first.
660 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
662 * modules/ftruncate (Depends-on): Add unistd.
663 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
665 * lib/fchdir.c: Include <unistd.h> first.
666 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
667 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
668 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
669 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
670 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
672 * lib/dup2.c: Include <unistd.h> first.
673 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
675 * modules/dup2 (Depends-on): Add unistd.
676 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
678 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
679 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
680 REPLACE_CHOWN. Don't define chown as a macro here.
681 * modules/chown (Depends-on): Add unistd.
682 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
684 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
685 Add definition for GL_LINK_WARNING.
686 (chown, dup2): New declarations.
687 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
689 (ftruncate): New declaration.
690 (getcwd): New declaration, taken from old getcwd.h.
691 (getlogin_r): New declaration, taken from old getlogin_r.h.
692 (readlink): New declaration.
693 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
694 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
695 (gl_PREREQ_UNISTD): Remove macro.
696 (gl_UNISTD_MODULE_INDICATOR): New macro.
697 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
698 many new variables. Don't set UNISTD_H.
699 * modules/unistd (Description): Change.
700 (Depends-on): Add link-warning.
701 (configure.ac): Update.
702 (Makefile.am): Create unistd.h always. Substitute many new variables
705 2007-02-18 Bruno Haible <bruno@clisp.org>
707 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
708 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
710 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
711 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
712 * lib/getsubopt.h: Remove file.
713 * modules/getsubopt (Files): Remove lib/getsubopt.h.
714 (Depends-on): Add stdlib.
715 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
716 (Includes): Use <stdlib.h> instead of getsubopt.h.
717 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
719 * lib/getsubopt.c: Don't include getsubopt.h.
721 2007-02-18 Bruno Haible <bruno@clisp.org>
723 * modules/fchdir (Depends-on): Add dup2.
725 2007-02-18 Bruno Haible <bruno@clisp.org>
727 * lib/stdlib_.h: Handle glibc's special invocation convention
730 2007-02-18 Bruno Haible <bruno@clisp.org>
732 * modules/stdlib-tests: New file.
733 * tests/test-stdlib.c: New file.
735 * modules/mkstemp (Files): Remove lib/mkstemp.h.
736 (Depends-on): Add stdlib.
737 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
738 (Includes): Use <stdlib.h> instead of mkstemp.h.
739 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
740 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
741 * lib/mkstemp.c: Don't include mkstemp.h.
742 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
743 * lib/stdlib--.h: Don't include mkstemp.h.
745 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
746 (Depends-on): Add stdlib.
747 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
748 (Includes): Use <stdlib.h> instead of mkdtemp.h.
749 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
751 * lib/mkdtemp.c: Don't include mkdtemp.h.
752 * lib/clean-temp.c: Don't include mkdtemp.h.
754 * modules/exit (Files): Remove lib/exit.h.
755 (Depends-on): Add stdlib.
756 (Makefile.am): Remove lib_SOURCES.
757 (Include): Use <stdlib.h> instead of exit.h.
758 * lib/argmatch.c: Don't include exit.h.
759 * lib/execute.c: Likewise.
760 * lib/pagealign_alloc.c: Likewise.
761 * lib/pipe.c: Likewise.
762 * lib/wait-process.c: Likewise.
763 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
764 * lib/exitfail.c: Likewise.
765 * lib/savewd.c: Likewise.
766 * lib/xsetenv.c: Likewise.
768 * modules/stdlib: New file.
769 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
770 and extra comments about mkstemp().
771 * lib/exit.h: Remove file.
772 * lib/mkdtemp.h: Remove file.
773 * lib/mkstemp.h: Remove file.
774 * m4/stdlib_h.m4: New file.
775 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
777 2007-02-18 Bruno Haible <bruno@clisp.org>
779 * modules/math-tests: New file.
780 * tests/test-math.c: New file.
782 * modules/math: New file.
783 * modules/mathl (Files): Remove lib/mathl.h.
784 (Depends-on): Add math.
785 (Makefile.am): Don't mention mathl.h.
786 (Include): Use <math.h> instead of mathl.h.
787 * lib/math_.h: New file.
788 * lib/mathl.h: Remove file.
789 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
791 * lib/asinl.c: Likewise.
792 * lib/atanl.c: Likewise.
793 * lib/ceill.c: Likewise.
794 * lib/cosl.c: Likewise.
795 * lib/expl.c: Likewise.
796 * lib/floorl.c: Likewise.
797 * lib/frexpl.c: Likewise.
798 * lib/ldexpl.c: Likewise.
799 * lib/logl.c: Likewise.
800 * lib/sincosl.c: Likewise.
801 * lib/sinl.c: Likewise.
802 * lib/sqrtl.c: Likewise.
803 * lib/tanl.c: Likewise.
804 * lib/trigl.c: Likewise.
805 * m4/math_h.m4: New file.
806 * MODULES.html.sh (Mathematics): Add math.
808 2007-02-17 Bruno Haible <bruno@clisp.org>
810 * modules/wctype-tests: New file.
811 * tests/test-wctype.c: New file.
813 * modules/wchar-tests: New file.
814 * tests/test-wchar.c: New file.
816 * modules/unistd-tests: New file.
817 * tests/test-unistd.c: New file.
819 * modules/time-tests: New file.
820 * tests/test-time.c: New file.
822 * modules/sysexits-tests: New file.
823 * tests/test-sysexits.c: New file.
825 * modules/sys_time-tests: New file.
826 * tests/test-sys_time.c: New file.
828 * modules/sys_stat-tests: New file.
829 * tests/test-sys_stat.c: New file.
831 * modules/sys_socket-tests: New file.
832 * tests/test-sys_socket.c: New file.
834 * modules/sys_select-tests: New file.
835 * tests/test-sys_select.c: New file.
837 * modules/string-tests: New file.
838 * tests/test-string.c: New file.
840 * modules/stdbool-tests: New file.
841 * tests/test-stdbool.c: New file.
843 * modules/netinet_in-tests: New file.
844 * tests/test-netinet_in.c: New file.
846 * modules/inttypes-tests: New file.
847 * tests/test-inttypes.c: New file.
849 * modules/fcntl-tests: New file.
850 * tests/test-fcntl.c: New file.
852 * modules/byteswap-tests: New file.
853 * tests/test-byteswap.c: New file.
855 * modules/arpa_inet-tests: New file.
856 * tests/test-arpa_inet.c: New file.
858 2007-02-17 Bruno Haible <bruno@clisp.org>
860 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
861 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
862 if the corresponding module is not enabled. Emit link warnings if
863 the function is used nevertheless.
864 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
865 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
866 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
867 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
868 * modules/inttypes (Depends-on): Add link-warning.
869 (Makefile.am): Copy the contents of build-aux/link-warning.h into
870 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
871 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
872 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
873 * modules/imaxdiv (configure.ac): Likewise.
874 * modules/strtoimax (configure.ac): Likewise.
875 * modules/strtoumax (configure.ac): Likewise.
877 2007-02-17 Bruno Haible <bruno@clisp.org>
879 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
880 gl_STRING_MODULE_INDICATOR_DEFAULTS.
881 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
882 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
884 2007-02-17 Bruno Haible <bruno@clisp.org>
886 * modules/link-warning: New file.
887 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
888 * lib/string_.h (GL_LINK_WARNING): Remove definition.
889 * modules/string (Depends-on): Add link-warning.
890 (Makefile.am): Copy the contents of build-aux/link-warning.h into
892 * MODULES.html.sh (Support for building libraries and executables): Add
895 2007-02-17 Bruno Haible <bruno@clisp.org>
897 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
898 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
899 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
902 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
903 Bruno Haible <bruno@clisp.org>
905 * modules/tmpfile: New file.
906 * lib/tmpfile.c: New file.
907 * m4/tmpfile.m4: New file.
908 * MODULES.html.sh (func_all_modules): New section "Input/output".
910 2007-02-15 Bruno Haible <bruno@clisp.org>
912 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
913 (supports_delete_on_close): New function.
914 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
916 2007-02-14 Bruno Haible <bruno@clisp.org>
918 * modules/mbspcasecmp-tests: New file.
919 * tests/test-mbspcasecmp.sh: New file.
920 * tests/test-mbspcasecmp.c: New file.
922 New module mbspcasecmp.
923 * modules/mbspcasecmp: New file.
924 * lib/mbspcasecmp.c: New file.
925 * lib/string_.h (strncasecmp): Change warning message.
926 (mbspcasecmp): New declaration.
927 * m4/mbspcasecmp.m4: New file.
928 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
930 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
931 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
933 2007-02-14 Bruno Haible <bruno@clisp.org>
935 * modules/mbsncasecmp-tests: New file.
936 * tests/test-mbsncasecmp.sh: New file.
937 * tests/test-mbsncasecmp.c: New file.
939 New module mbsncasecmp.
940 * modules/mbsncasecmp: New file.
941 * lib/mbsncasecmp.c: New file.
942 * lib/string_.h (mbsncasecmp): New declaration.
943 * m4/mbsncasecmp.m4: New file.
944 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
946 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
947 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
949 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
951 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
952 Verify that it doesn't overlap with our flags.
953 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
954 do not have the desired effect in multibyte locales; instead, use
956 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
957 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
958 we don't require GNU fnmatch ourselves (if our users require it, they
959 should do so explicitly).
961 Fix regex code so it doesn't rely on strcasecmp.
962 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
963 Otherwise, include gnulib's langinfo.h.
964 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
965 undesirable behavior in non-C locales. Instead, rely on localecharset.
966 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
967 * modules/regex (FILES): Remove m4/codeset.m4.
968 (Depends-on): Add localcharset. Remove strcase.
970 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
972 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
973 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
975 2007-02-13 Bruno Haible <bruno@clisp.org>
977 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
978 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
980 2007-02-12 Bruno Haible <bruno@clisp.org>
982 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
983 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
984 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
985 time warning rather than a link error.
987 2007-02-12 Bruno Haible <bruno@clisp.org>
989 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
990 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
991 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
993 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
995 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
998 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
1000 New module 'time', so that apps can include <time.h> as per
1001 POSIX and GNU instead of separate include files like time_r.h
1002 and timegm.h. This implementation tries out a simpler approach
1003 for replacing decls in standard include files (as compared to
1004 the string module), somewhat as an experiment.
1006 * config/srclist.txt: Comment out mktime.c for now.
1007 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
1008 since it doesn't apply any more. Use generic wording instead.
1009 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
1011 * lib/time_.h, m4/time_h.m4, modules/time: New files.
1012 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
1013 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
1014 Don't include <sys/types.h>; no longer needed since we assume C89.
1015 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
1016 * lib/strftime.c: Likewise.
1017 * lib/time_r.c: Likewise.
1018 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
1019 * lib/nanosleep.c: Include <time.h> first, to check interface.
1020 * lib/strptime.c: Likewise.
1021 * lib/time_r.c: Likewise.
1022 * lib/timegm.c: Likewise.
1023 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
1025 * lib/timegm.c: Don't include timegm.h; no longer needed.
1026 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
1027 time.h now handles any problems in that area.
1028 (struct timespec, nanosleep): Remove; time.h now arranges for these.
1029 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
1030 that time.h defines struct timespec.
1031 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
1032 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
1034 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
1035 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
1036 needed. Set REPLACE_LOCALTIME.
1037 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
1038 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
1039 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
1040 nanosleep; time_h.m4 now does that. Don't require
1041 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
1042 module handles this now.
1043 * modules/getdate (Depends-on): Remove timespec. Add time.
1044 * modules/nanosleep (Depends-on): Likewise.
1045 * modules/stat-time (Depends-on): Likewise.
1046 * modules/nanosleep (Include): Include time.h, not timespec.h.
1047 * modules/strptime (Files): Remove lib/strptime.h.
1048 (Depends-on): Add extensions, time.
1049 (Include): Include time.h, not strptime.h.
1050 * modules/time_r (Files): Remove lib/time_r.h.
1051 (Depends-on): Add time.
1052 (Include): Include time.h, not time_r.h.
1053 * modules/timegm: Likewise.
1054 * modules/timespec (Description): Now does timespec-related decls
1055 of our own, instead of struct timespec itself.
1056 (Depends-on): Add time; remove extensions.
1057 (Maintainer): Add self.
1058 * modules/utimecmp (Depends-on): Add time; remove timespec.
1059 * modules/utimens (Depends-on): Likewise.
1060 * modules/xnanosleep (Depends-on): Likewise.
1062 2007-02-11 Bruno Haible <bruno@clisp.org>
1064 * lib/c-strstr.c: Include allocsa.h.
1065 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1066 * lib/c-strcasestr.c: Include allocsa.h.
1067 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1068 * lib/strcasestr.c: Include allocsa.h.
1069 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
1070 * lib/mbsstr.c: Include allocsa.h.
1071 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1072 allocsa/freesa instead of malloc/free.
1073 * lib/mbscasestr.c: Include allocsa.h.
1074 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
1075 allocsa/freesa instead of malloc/free.
1076 * modules/c-strstr (Depends-on): Add allocsa.
1077 * modules/c-strcasestr (Depends-on): Likewise.
1078 * modules/strcasestr (Depends-on): Likewise.
1079 * modules/mbsstr (Depends-on): Likewise.
1080 * modules/mbscasestr (Depends-on): Likewise.
1082 2007-02-11 Bruno Haible <bruno@clisp.org>
1084 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
1086 * modules/mbsspn-tests: New file.
1087 * tests/test-mbsspn.sh: New file.
1088 * tests/test-mbsspn.c: New file.
1090 2007-02-11 Bruno Haible <bruno@clisp.org>
1092 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
1094 * modules/mbspbrk-tests: New file.
1095 * tests/test-mbspbrk.sh: New file.
1096 * tests/test-mbspbrk.c: New file.
1098 2007-02-11 Bruno Haible <bruno@clisp.org>
1100 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
1103 * modules/mbscspn-tests: New file.
1104 * tests/test-mbscspn.sh: New file.
1105 * tests/test-mbscspn.c: New file.
1107 2007-02-11 Bruno Haible <bruno@clisp.org>
1109 * modules/mbscasecmp-tests: New file.
1110 * tests/test-mbscasecmp.sh: New file.
1111 * tests/test-mbscasecmp.c: New file.
1113 2007-02-11 Bruno Haible <bruno@clisp.org>
1115 Ensure O(n) worst-case complexity of mbscasestr.
1116 * lib/mbscasestr.c: Include stdbool.h.
1117 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1119 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
1120 the bookkeeping indicates that it's worth it.
1121 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
1123 * modules/mbscasestr-tests: New file.
1124 * tests/test-mbscasestr1.c: New file.
1125 * tests/test-mbscasestr2.sh: New file.
1126 * tests/test-mbscasestr2.c: New file.
1127 * tests/test-mbscasestr3.sh: New file.
1128 * tests/test-mbscasestr3.c: New file.
1129 * tests/test-mbscasestr4.sh: New file.
1130 * tests/test-mbscasestr4.c: New file.
1131 * m4/locale-tr.m4: New file.
1133 2007-02-11 Bruno Haible <bruno@clisp.org>
1135 Ensure O(n) worst-case complexity of mbsstr.
1136 * lib/mbsstr.c: Include stdbool.h.
1137 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
1139 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
1140 bookkeeping indicates that it's worth it.
1141 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
1143 * modules/mbsstr-tests: New file.
1144 * tests/test-mbsstr1.c: New file.
1145 * tests/test-mbsstr2.sh: New file.
1146 * tests/test-mbsstr2.c: New file.
1147 * tests/test-mbsstr3.sh: New file.
1148 * tests/test-mbsstr3.c: New file.
1149 * m4/locale-fr.m4: New file.
1151 2007-02-11 Bruno Haible <bruno@clisp.org>
1153 * lib/mbsrchr.c (mbsrchr): Fix bug.
1155 * modules/mbsrchr-tests: New file.
1156 * tests/test-mbsrchr.sh: New file.
1157 * tests/test-mbsrchr.c: New file.
1159 2007-02-11 Bruno Haible <bruno@clisp.org>
1161 * lib/mbschr.c (mbschr): Fix bug.
1163 * modules/mbschr-tests: New file.
1164 * tests/test-mbschr.sh: New file.
1165 * tests/test-mbschr.c: New file.
1166 * m4/locale-zh.m4: New file.
1168 2007-02-11 Bruno Haible <bruno@clisp.org>
1170 Support for copying multibyte string iterators.
1171 * lib/mbiter.h: Include <string.h>.
1172 (mbiter_multi_copy): New function.
1173 (mbi_copy): New macro.
1174 * lib/mbuiter.h: Include <string.h>.
1175 (mbuiter_multi_copy): New function.
1176 (mbui_copy): New macro.
1178 2007-02-11 Bruno Haible <bruno@clisp.org>
1181 * modules/mbslen: New file.
1182 * lib/mbslen.c: New file.
1183 * lib/string_.h (mbslen): New declaration.
1184 * m4/mbslen.m4: New file.
1185 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1187 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
1188 * MODULES.html.sh (Internationalization functions): Add mbslen.
1190 2007-02-11 Bruno Haible <bruno@clisp.org>
1192 Ensure O(n) worst-case complexity of strcasestr substitute.
1193 * lib/strcasestr.c: Include stdbool.h.
1194 (knuth_morris_pratt): New function.
1195 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1196 bookkeeping indicates that it's worth it.
1197 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
1199 * modules/strcasestr-tests: New file.
1200 * tests/test-strcasestr.c: New file.
1202 2007-02-11 Bruno Haible <bruno@clisp.org>
1204 Ensure O(n) worst-case complexity of c_strcasestr.
1205 * lib/c-strcasestr.c: Include stdbool.h, string.h.
1206 (knuth_morris_pratt): New function.
1207 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
1208 the bookkeeping indicates that it's worth it.
1209 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
1211 * modules/c-strcasestr-tests: New file.
1212 * tests/test-c-strcasestr.c: New file.
1214 2007-02-11 Bruno Haible <bruno@clisp.org>
1216 Ensure O(n) worst-case complexity of c_strstr.
1217 * lib/c-strstr.c: Include stdbool.h, string.h.
1218 (knuth_morris_pratt): New function.
1219 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
1220 bookkeeping indicates that it's worth it.
1221 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
1223 * lib/c-strstr.c: Complete rewrite for maintainability.
1225 * modules/c-strstr-tests: New file.
1226 * tests/test-c-strstr.c: New file.
1228 2007-02-11 Bruno Haible <bruno@clisp.org>
1230 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
1231 5.2.1 and earlier, whereby \055 was treated just like the range
1233 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1235 2007-02-08 Bruno Haible <bruno@clisp.org>
1237 * modules/regex (Depends-on): Add stdbool.
1238 Reported by Dalibor Topic <robilad@kaffe.org>.
1240 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
1242 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
1243 Prefer returning from main to exiting from it.
1244 Remove unnecessary parens after sizeof.
1246 2007-02-05 Bruno Haible <bruno@clisp.org>
1249 * modules/mbssep: New file.
1250 * lib/mbssep.c: New file.
1251 * lib/string_.h (strsep): Add a conditional link warning.
1252 (mbssep): New declaration.
1253 * m4/mbssep.m4: New file.
1254 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1256 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
1257 * MODULES.html.sh (Internationalization functions): Add mbssep.
1259 2007-02-05 Bruno Haible <bruno@clisp.org>
1261 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
1262 Optimize search in case of 1 delimiter.
1264 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
1266 * lib/acl.h: Include sys/types.h before sys/acl.h.
1268 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
1270 Merge upstream fix for glibc bugzilla #3957:
1272 2007-02-05 Jakub Jelinek <jakub@redhat.com>
1274 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1275 bit for RE_HAT_LISTS_NOT_NEWLINE.
1276 (build_charclass_op): Remove bogus comment.
1278 2007-02-05 Simon Josefsson <simon@josefsson.org>
1280 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
1282 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
1284 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
1285 * lib/memmem.c [!defined _LIBC]: Include config.h.
1287 2007-02-04 Bruno Haible <bruno@clisp.org>
1289 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
1292 2007-02-04 Bruno Haible <bruno@clisp.org>
1294 New module mbstok_r.
1295 * modules/mbstok_r: New file.
1296 * lib/mbstok_r.c: New file.
1297 * lib/string_.h (strtok_r): Change argument names to match the
1298 comments. Add a conditional link warning.
1299 (mbstok_r): New declaration.
1300 * m4/mbstok_r.m4: New file.
1301 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1303 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
1304 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
1306 2007-02-04 Bruno Haible <bruno@clisp.org>
1309 * modules/mbsspn: New file.
1310 * lib/mbsspn.c: New file.
1311 * lib/string_.h (strspn): Add a conditional link warning.
1312 (mbsspn): New declaration.
1313 * m4/mbsspn.m4: New file.
1314 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1316 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
1317 * MODULES.html.sh (Internationalization functions): Add mbsspn.
1319 2007-02-04 Bruno Haible <bruno@clisp.org>
1322 * modules/mbspbrk: New file.
1323 * lib/mbspbrk.c: New file.
1324 * lib/string_.h (strpbrk): Add a conditional link warning.
1325 (mbspbrk): New declaration.
1326 * m4/mbspbrk.m4: New file.
1327 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1329 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
1330 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
1332 2007-02-04 Bruno Haible <bruno@clisp.org>
1335 * modules/mbscspn: New file.
1336 * lib/mbscspn.c: New file.
1337 * lib/string_.h (strcspn): Add a conditional link warning.
1338 (mbscspn): New declaration.
1339 * m4/mbscspn.m4: New file.
1340 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1342 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
1343 * MODULES.html.sh (Internationalization functions): Add mbscspn.
1345 2007-02-04 Bruno Haible <bruno@clisp.org>
1347 New module mbscasestr, reduced goal of strcasestr.
1348 * modules/mbscasestr: New file.
1349 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
1350 (mbscasestr): Renamed from strcasestr.
1351 * lib/strcasestr.c: Don't include mbuiter.h.
1352 (strcasestr): Remove support for multibyte locales.
1353 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
1354 Change the conditional link warning.
1355 (mbscasestr): New declaration.
1356 * m4/mbscasestr.m4: New file.
1357 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
1358 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
1360 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
1361 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1362 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1363 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
1364 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
1365 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
1366 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
1367 (Depends-on): Remove mbuiter.
1368 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
1370 2007-02-04 Bruno Haible <bruno@clisp.org>
1372 Simplify handling of strncasecmp.
1373 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
1374 the conditional link warning.
1375 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1376 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
1377 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
1378 * modules/strcase (configure.ac): Don't invoke
1379 gl_STRING_MODULE_INDICATOR.
1380 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
1382 2007-02-04 Bruno Haible <bruno@clisp.org>
1384 New module mbscasecmp, reduced goal of strcasecmp.
1385 * modules/mbscasecmp: New file.
1386 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
1387 (mbscasecmp): Renamed from strcasecmp.
1388 * lib/strcasecmp.c: Don't include mbuiter.h.
1389 (strcasecmp): Remove support for multibyte locales.
1390 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
1391 Change the conditional link warning.
1392 (mbscasecmp): New declaration.
1393 * m4/mbscasecmp.m4: New file.
1394 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
1395 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
1397 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
1398 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1400 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
1401 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
1402 * modules/strcase (Files): Remove m4/mbrtowc.m4.
1403 (Depends-on): Remove mbuiter.
1404 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
1406 2007-02-04 Bruno Haible <bruno@clisp.org>
1408 New module mbsstr. Remove module strstr.
1409 * modules/mbsstr: New file.
1410 * modules/strstr: Remove file.
1411 * lib/mbsstr.c: Renamed from lib/strstr.c.
1412 (mbsstr): Renamed from strstr.
1413 * lib/string_.h (strstr): Remove declaration. Change the conditional
1415 (mbsstr): New declaration.
1416 * m4/mbsstr.m4: New file.
1417 * m4/strstr.m4: Remove file.
1418 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1420 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
1421 Don't initialize GNULIB_STRSTR.
1422 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
1423 substitute GNULIB_STRSTR and REPLACE_STRSTR.
1424 * MODULES.html.sh (Internationalization functions): Add mbsstr.
1425 (Support for systems lacking ANSI C 89): Remove strstr.
1427 2007-02-04 Bruno Haible <bruno@clisp.org>
1430 * modules/mbsrchr: New file.
1431 * lib/mbsrchr.c: New file.
1432 * lib/string_.h (strrchr): Add a conditional link warning.
1433 (mbsrchr): New declaration.
1434 * m4/mbsrchr.m4: New file.
1435 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1437 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
1438 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
1440 2007-02-04 Bruno Haible <bruno@clisp.org>
1443 * modules/mbschr: New file.
1444 * lib/mbschr.c: New file.
1445 * lib/string_.h (strchr): Add a conditional link warning.
1446 (mbschr): New declaration.
1447 * m4/mbschr.m4: New file.
1448 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
1450 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
1451 * MODULES.html.sh (Internationalization functions): Add mbschr.
1453 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
1455 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
1457 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
1459 2007-02-04 Bruno Haible <bruno@clisp.org>
1461 New module description section 'configure.ac-early'.
1462 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
1463 (func_get_autoconf_early_snippet): New function.
1464 (func_import, func_create_testdir): Use it. Remove special cases for
1465 modules 'extensions' and 'lock'.
1466 * modules/extensions (configure.ac-early): Require
1467 gl_USE_SYSTEM_EXTENSIONS.
1468 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
1470 2007-02-04 Bruno Haible <bruno@clisp.org>
1472 Make use of gcj-4.3's -fsource and -ftarget option.
1473 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
1474 and if so try the options -fsource and -ftarget.
1475 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
1476 source_version, ftarget_option, target_version arguments.
1477 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
1478 (is_envjavac_oldgcj_14_14_usable): Renamed from
1479 is_envjavac_gcj_14_14_usable.
1480 (is_envjavac_oldgcj_14_13_usable): Renamed from
1481 is_envjavac_gcj_14_13_usable.
1482 (is_gcj_present): Update.
1483 (is_gcj_43, is_gcj43_usable): New functions.
1484 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
1485 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
1486 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
1487 try the options -fsource and -ftarget.
1489 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
1491 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
1492 checking code. Set N = ceil (1.5 * N) rather than to a slightly
1495 2007-02-03 Jim Meyering <jim@meyering.net>
1497 Give tools a better chance to allocate space for very large buffers.
1498 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
1500 Make pwd and readlink work also when run with an unreadable parent dir
1501 on systems with openat support.
1502 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
1503 provided getcwd function, even when we have openat support.
1504 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
1506 2007-02-02 Bruno Haible <bruno@clisp.org>
1508 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
1509 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
1510 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
1511 portability problems if one of these functions is only used on specific
1513 Reported by Paul Eggert.
1515 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
1517 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
1518 is causing more trouble than it's curing.
1519 * lib/regex_internal.h (__mempcpy): Remove.
1520 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
1521 (and make the code a tad smaller to boot).
1522 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
1524 2007-02-02 Jim Meyering <jim@meyering.net>
1526 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
1527 section, not in the Makefile.am: one.
1529 2007-02-02 Eric Blake <ebb9@byu.net>
1531 * lib/strchrnul.c: Always include config.h first.
1533 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
1534 gnulib strstr is not necessary here.
1536 2007-02-02 Simon Josefsson <simon@josefsson.org>
1538 * m4/socklen.m4: Fix typo.
1540 2007-02-02 Eric Blake <ebb9@byu.net>
1542 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
1543 * modules/netinet_in (Makefile.am): Likewise.
1545 2007-02-01 Bruno Haible <bruno@clisp.org>
1547 * lib/string_.h (GL_LINK_WARNING): New macro.
1548 (strcasecmp, strstr, strcasestr): If provided by the system,
1549 conditionally define as a macro that leads to a warning instead of to
1551 (strncasecmp): Conditionally define as a macro that leads to a warning.
1553 2007-02-01 Karl Berry <karl@gnu.org>
1555 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
1557 2007-02-01 Bruno Haible <bruno@clisp.org>
1559 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
1562 2007-02-01 Eric Blake <ebb9@byu.net>
1564 * modules/regex (Depends-on): Revert dependence on mempcpy.
1565 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
1566 module's definition of mempcpy.
1567 Reported by Paul Eggert.
1569 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
1571 * lib/string_.h: If the gnulib module XYZ is not present, undefine
1572 the symbol XYZ before redefining it. This fixes a problem with
1573 programs that don't use XYZ, when compiled on systems that define
1574 XYZ to something else.
1576 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
1578 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
1579 occurs when "mkdir -m foo" creates a setgid directory that is (1)
1580 writeable to group or other and (2) is intended to have a special
1581 mode bit that is set or cleared. In such a case, the directory
1582 should be neither group- nor other-writeable until the special
1583 mode bits are right.
1585 2007-01-31 Eric Blake <ebb9@byu.net>
1587 * modules/mountlist (Depends-on): Add strstr.
1589 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
1591 * modules/string (Makefile.am): Remove redundant replacement.
1592 * modules/regex (Depends-on): Add mempcpy.
1594 2007-01-31 Bruno Haible <bruno@clisp.org>
1596 New module description field 'Link'.
1597 * gnulib-tool (func_usage): Document --extract-link-directive.
1598 (sed_extract_prog): Recognize 'Link' directive.
1599 (func_get_link_directive): New function.
1600 (func_import): Show summary of link directives.
1601 Handle --extract-link-directive option.
1602 * modules/acl (Link): New section.
1603 * modules/clock-time (Link): New section.
1604 * modules/euidaccess (Link): New section.
1605 * modules/gettext (Link): New section.
1606 * modules/iconv (Link): New section.
1607 * modules/lock (Link): New section.
1608 * modules/nanosleep (Link): New section.
1609 * modules/readline (Link): New section.
1611 2007-01-27 Bruno Haible <bruno@clisp.org>
1613 Enforce the use of gnulib modules for unportable <string.h> functions.
1614 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
1615 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
1616 (gl_HEADER_STRING_H_BODY): Require it.
1617 * lib/string_.h: If the gnulib module XYZ is not present, redefine
1618 the symbol XYZ to one that gives a link error.
1619 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
1620 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
1621 * modules/mempcpy (configure.ac): Likewise.
1622 * modules/memrchr (configure.ac): Likewise.
1623 * modules/stpcpy (configure.ac): Likewise.
1624 * modules/stpncpy (configure.ac): Likewise.
1625 * modules/strcase (configure.ac): Likewise.
1626 * modules/strcasestr (configure.ac): Likewise.
1627 * modules/strchrnul (configure.ac): Likewise.
1628 * modules/strdup (configure.ac): Likewise.
1629 * modules/strndup (configure.ac): Likewise.
1630 * modules/strnlen (configure.ac): Likewise.
1631 * modules/strpbrk (configure.ac): Likewise.
1632 * modules/strsep (configure.ac): Likewise.
1633 * modules/strstr (configure.ac): Likewise.
1634 * modules/strtok_r (configure.ac): Likewise.
1636 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
1638 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
1640 2007-01-30 Jim Meyering <jim@meyering.net>
1642 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
1644 2007-01-29 Bruno Haible <bruno@clisp.org>
1646 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
1647 * lib/execute.c: Likewise.
1648 * lib/pipe.c: Likewise.
1649 * lib/printf-args.h: Likewise.
1650 * lib/printf-args.c: Likewise.
1651 * lib/printf-parse.c: Likewise.
1652 * lib/vasnprintf.c: Likewise.
1654 2007-01-29 Eric Blake <ebb9@byu.net>
1656 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
1659 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
1661 * lib/strptime.h (strptime): Use 'restrict' for args where
1662 POSIX requires this.
1663 * lib/strptime.c (strptime): Likewise.
1664 Change license notice from LGPL to GPL, since gnulib-tool will
1665 change this as needed.
1666 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
1668 Include "strptime.h" first, to check interface.
1669 Do not #undef _LIBC and _NL_CURRENT.
1670 Do not include <stdlib.h>; no longer needed.
1671 Include "time_r.h" and declare ptime_locale_status
1672 only if _LIBC is not defined.
1673 (__P): Remove unused macro.
1674 (match_string): Bring back glibc version, but use it only if _LIBC
1676 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
1677 Remove unnecessary assertion and abort() call.
1678 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
1679 * m4/strptime.m4: Fix serial number comment.
1680 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
1681 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
1682 (Depends-on): Add time_r.
1684 2007-01-29 Bruno Haible <bruno@clisp.org>
1686 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1688 * modules/strptime (Depends-on): Add stdbool.
1689 * lib/strptime.h: Include <time.h> always. Add comments.
1691 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
1693 * modules/strptime: New file.
1694 * lib/strptime.h: New file.
1695 * lib/strptime.c: New file.
1696 * m4/strptime.m4: New file.
1698 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
1700 * MODULES.html.sh: New module mpsort.
1701 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
1703 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
1704 a circularity problem with HP-UX ia64 reported by Bob Proulx in
1705 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
1707 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
1709 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
1711 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
1712 the parameter matches the prototype.
1714 2007-01-28 Jim Meyering <jim@meyering.net>
1716 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
1717 sys/time.h here, reverting that part of the previous patch:
1718 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
1720 2007-01-28 Bruno Haible <bruno@clisp.org>
1722 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
1723 value of $(SYS_TIME_H).
1724 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
1725 remove it conditionally, too. [added by Jim Meyering]
1726 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
1727 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1728 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
1729 GETTIMEOFDAY_REPLACEMENT to 1.
1731 2007-01-28 Bruno Haible <bruno@clisp.org>
1733 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
1734 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
1735 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
1736 Set UNISTD_H instead of UNISTD_H2.
1737 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
1739 2007-01-28 Bruno Haible <bruno@clisp.org>
1741 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
1742 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
1744 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1746 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
1747 (func_create_testdir): Ensure C locale for `grep' and `tr'
1749 (func_create_megatestdir): Avoid one `grep'. Fix bug in
1750 ACLOCAL_AMFLAGS parsing state machine.
1752 2007-01-27 Bruno Haible <bruno@clisp.org>
1754 * modules/unistr/base: Update.
1756 2007-01-27 Bruno Haible <bruno@clisp.org>
1758 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
1759 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
1760 * modules/unistr/u32-mbtouc-unsafe: Renamed from
1761 modules/unistr/u32-mbtouc.
1762 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
1763 * lib/unistr.h: Update.
1764 * lib/linebreak.c: Update.
1765 * modules/unistr/u32-mbtouc: Renamed from
1766 modules/unistr/u32-mbtouc-safe.
1767 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
1768 * lib/unistr.h: Update.
1769 * lib/unistr/u32-to-u8.c: Update.
1770 * lib/unistr/u32-to-u16.c: Update.
1772 2007-01-27 Bruno Haible <bruno@clisp.org>
1774 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
1775 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
1776 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
1777 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
1778 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
1779 * modules/unistr/u16-mbtouc-unsafe: Renamed from
1780 modules/unistr/u16-mbtouc.
1781 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
1782 * lib/unistr.h: Update.
1783 * lib/linebreak.c: Update.
1784 * modules/linebreak: Update.
1785 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
1786 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
1787 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
1788 * modules/unistr/u16-mbtouc: Renamed from
1789 modules/unistr/u16-mbtouc-safe.
1790 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
1791 * lib/unistr.h: Update.
1792 * lib/unistr/u16-to-u8.c: Update.
1793 * modules/unistr/u16-to-u8: Update.
1794 * lib/unistr/u16-to-u32.c: Update.
1795 * modules/unistr/u16-to-u32: Update.
1797 2007-01-27 Bruno Haible <bruno@clisp.org>
1799 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
1800 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
1801 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
1802 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
1803 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
1804 * modules/unistr/u8-mbtouc-unsafe: Renamed from
1805 modules/unistr/u8-mbtouc.
1806 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
1807 * lib/unistr.h: Update.
1808 * lib/striconveh.c: Update.
1809 * modules/striconveh: Update.
1810 * lib/linebreak.c: Update.
1811 * modules/linebreak: Update.
1812 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
1813 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
1814 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
1815 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
1816 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
1817 * lib/unistr.h: Update.
1818 * lib/striconveh.c: Update.
1819 * modules/striconveh: Update.
1820 * lib/unistr/u8-to-u16.c: Update.
1821 * modules/unistr/u8-to-u16: Update.
1822 * lib/unistr/u8-to-u32.c: Update.
1823 * modules/unistr/u8-to-u32: Update.
1825 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1828 * lib/argz.c: Do not include strings.h nor memory.h, include
1829 string.h unconditionally. Patch by Simon Josefsson.
1831 2007-01-27 Bruno Haible <bruno@clisp.org>
1833 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
1834 from gl_HEADER_STRING_H_BODY.
1835 (gl_HEADER_STRING_H_BODY): Require it.
1836 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
1837 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
1838 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
1839 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
1840 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1841 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
1842 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1843 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
1844 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
1845 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1846 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
1847 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
1848 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
1849 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1850 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1852 2007-01-27 Bruno Haible <bruno@clisp.org>
1854 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
1855 check_PROGRAMS into noinst_PROGRAMS.
1856 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
1857 check_PROGRAMS in this case.
1858 (func_import): Set for_test to false.
1859 (func_create_testdir): Set for_test to true.
1861 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1862 Bruno Haible <bruno@clisp.org>
1864 * modules/strcasestr (Files): Remove lib/strcasestr.h.
1865 (Depends-on): Add string.
1866 (Includes): Use <string.h> instead of strcasestr.h.
1867 * modules/string (Makefile.am): Also substitute the value of
1869 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
1870 assume strcasestr is declared in <string.h> not <strings.h>. Also
1871 set REPLACE_STRCASESTR.
1872 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
1874 * lib/strcasestr.h: Remove file.
1875 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
1876 * lib/string_.h (strcasestr): New declaration.
1878 2007-01-27 Bruno Haible <bruno@clisp.org>
1880 * lib/string_.h: Use 'extern'.
1882 2007-01-27 Jim Meyering <jim@meyering.net>
1884 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
1885 of set-but-not-used local, "q".
1887 * lib/mempcpy.c: Include <config.h> before <string.h>.
1888 This fixes a compilation error on HP-UX, due to the system's
1889 "restrict"-using mempcpy prototype.
1891 2007-01-26 Bruno Haible <bruno@clisp.org>
1894 * lib/javacomp.c: Include c-strstr.h.
1895 (is_envjavac_gcj): Use c_strstr instead of strstr.
1896 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
1898 2007-01-26 Bruno Haible <bruno@clisp.org>
1900 * MODULES.html.sh (Unicode string functions): Add the new modules.
1902 * modules/uniconv/u32-strconv-to-locale: New file.
1903 * lib/uniconv/u32-strconv-to-locale.c: New file.
1905 * modules/uniconv/u16-strconv-to-locale: New file.
1906 * lib/uniconv/u16-strconv-to-locale.c: New file.
1908 * modules/uniconv/u8-strconv-to-locale: New file.
1909 * lib/uniconv/u8-strconv-to-locale.c: New file.
1911 * modules/uniconv/u32-strconv-from-locale: New file.
1912 * lib/uniconv/u32-strconv-from-locale.c: New file.
1914 * modules/uniconv/u16-strconv-from-locale: New file.
1915 * lib/uniconv/u16-strconv-from-locale.c: New file.
1917 * modules/uniconv/u8-strconv-from-locale: New file.
1918 * lib/uniconv/u8-strconv-from-locale.c: New file.
1920 * modules/uniconv/u32-strconv-to-enc: New file.
1921 * lib/uniconv/u32-strconv-to-enc.c: New file.
1922 * modules/uniconv/u32-strconv-to-enc-tests: New file.
1923 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
1925 * modules/uniconv/u16-strconv-to-enc: New file.
1926 * lib/uniconv/u16-strconv-to-enc.c: New file.
1927 * lib/uniconv/u-strconv-to-enc.h: New file.
1928 * modules/uniconv/u16-strconv-to-enc-tests: New file.
1929 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
1931 * modules/uniconv/u8-strconv-to-enc: New file.
1932 * lib/uniconv/u8-strconv-to-enc.c: New file.
1933 * modules/uniconv/u8-strconv-to-enc-tests: New file.
1934 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
1936 * modules/uniconv/u32-strconv-from-enc: New file.
1937 * lib/uniconv/u32-strconv-from-enc.c: New file.
1938 * modules/uniconv/u32-strconv-from-enc-tests: New file.
1939 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
1941 * modules/uniconv/u16-strconv-from-enc: New file.
1942 * lib/uniconv/u16-strconv-from-enc.c: New file.
1943 * modules/uniconv/u16-strconv-from-enc-tests: New file.
1944 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
1946 * modules/uniconv/u8-strconv-from-enc: New file.
1947 * lib/uniconv/u8-strconv-from-enc.c: New file.
1948 * lib/uniconv/u-strconv-from-enc.h: New file.
1949 * modules/uniconv/u8-strconv-from-enc-tests: New file.
1950 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
1952 * modules/uniconv/u32-conv-from-enc: New file.
1953 * lib/uniconv/u32-conv-from-enc.c: New file.
1954 * modules/uniconv/u32-conv-from-enc-tests: New file.
1955 * tests/uniconv/test-u32-conv-from-enc.c: New file.
1957 * modules/uniconv/u16-conv-from-enc: New file.
1958 * lib/uniconv/u16-conv-from-enc.c: New file.
1959 * lib/uniconv/u-conv-from-enc.h: New file.
1960 * modules/uniconv/u16-conv-from-enc-tests: New file.
1961 * tests/uniconv/test-u16-conv-from-enc.c: New file.
1963 * modules/uniconv/u8-conv-from-enc: New file.
1964 * lib/uniconv/u8-conv-from-enc.c: New file.
1965 * modules/uniconv/u8-conv-from-enc-tests: New file.
1966 * tests/uniconv/test-u8-conv-from-enc.c: New file.
1968 * modules/uniconv/base: New file.
1969 * lib/uniconv.h: New file.
1971 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
1973 * doc/gnulib-tool.texi (Initial import): Update to match current
1974 behavior with strdup module.
1975 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
1976 * lib/memmem.h: Remove; all uses removed. This is now done
1978 * lib/mempcpy.h: Likewise.
1979 * lib/memrchr.h: Likewise.
1980 * lib/stpcpy.h: Likewise.
1981 * lib/stpncpy.h: Likewise.
1982 * lib/strcase.h: Likewise.
1983 * lib/strchrnul.h: Likewise.
1984 * lib/strdup.h: Likewise.
1985 * lib/strndup.h: Likewise.
1986 * lib/strnlen.h: Likewise.
1987 * lib/strpbrk.h: Likewise.
1988 * lib/strsep.h: Likewise.
1989 * lib/strstr.h: Likewise.
1990 * lib/strtok_r.h: Likewise.
1991 * lib/string_.h: New file.
1992 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
1993 Rely on <string.h> instead.
1994 * lib/canon-host.c: Likewise.
1995 * lib/chdir-long.c: Likewise.
1996 * lib/concatpath.c: Likewise.
1997 * lib/exclude.c: Likewise.
1998 * lib/fchdir.c: Likewise.
1999 * lib/getaddrinfo.c: Likewise.
2000 * lib/getcwd.c: Likewise.
2001 * lib/getsubopt.c: Likewise.
2002 * lib/glob.c: Likewise.
2003 * lib/hard-locale.c: Likewise.
2004 * lib/iconvme.c: Likewise.
2005 * lib/javacomp.c: Likewise.
2006 * lib/mempcpy.c: Likewise.
2007 * lib/memrchr.c: Likewise.
2008 * lib/regex_internal.h: Likewise.
2009 * lib/stpncpy.c: Likewise.
2010 * lib/strcasecmp.c: Likewise.
2011 * lib/strchrnul.c: Likewise.
2012 * lib/strdup.c: Likewise.
2013 * lib/striconv.c: Likewise.
2014 * lib/striconveh.c: Likewise.
2015 * lib/striconveha.c: Likewise.
2016 * lib/strncasecmp.c: Likewise.
2017 * lib/strndup.c: Likewise.
2018 * lib/strnlen.c: Likewise.
2019 * lib/strsep.c: Likewise.
2020 * lib/strstr.c: Likewise.
2021 * lib/strtok_r.c: Likewise.
2022 * lib/userspec.c: Likewise.
2023 * lib/w32spawn.h: Likewise.
2024 * lib/xstrndup.c: Likewise.
2025 * lib/mountlist.c (strstr): Remove decl.
2026 * m4/string_h.m4: New file.
2027 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
2028 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
2029 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
2030 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
2031 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
2032 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
2033 Set REPLACE_STRCASECMP if necessary.
2034 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
2035 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
2036 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
2037 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
2038 HAVE_DECL_STRDUP if necessary.
2039 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
2040 since gl_FUNC_STRNDUP does that now.
2041 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
2042 Check for decl here...
2043 (gl_PREREQ_STRNLEN): ... not here.
2044 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
2045 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
2046 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
2047 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
2049 * modules/string: New file.
2050 * modules/memmem (Files): Remove special-purpose include file.
2051 (Depends-on): Add string.
2052 (Include): Include <string.h>, not the removed file.
2053 * modules/mempcpy: Likewise.
2054 * modules/memrchr: Likewise.
2055 * modules/stpcpy: Likewise.
2056 * modules/stpncpy: Likewise.
2057 * modules/strcase: Likewise.
2058 * modules/strchrnul: Likewise.
2059 * modules/strdup: Likewise.
2060 * modules/strndup: Likewise.
2061 * modules/strnlen: Likewise.
2062 * modules/strpbrk: Likewise.
2063 * modules/strsep: Likewise.
2064 * modules/strstr: Likewise.
2065 * modules/strtok_r: Likewise.
2066 * tests/test-dirname.c: Don't include "strdup.h", since
2067 <string.h> now suffices.
2068 * tests/test-memmem.c: Don't include "memmem.h", since
2069 <string.h> now suffices.
2071 2007-01-25 Bruno Haible <bruno@clisp.org>
2073 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
2076 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
2077 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
2078 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
2079 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
2081 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
2082 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
2083 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
2084 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
2085 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
2086 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
2088 2007-01-24 Bruno Haible <bruno@clisp.org>
2090 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
2091 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
2092 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
2093 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
2095 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
2096 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
2097 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2098 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
2099 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
2100 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
2102 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
2104 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
2105 Reported by Ralf Wildenhues.
2107 2007-01-24 Bruno Haible <bruno@clisp.org>
2109 Drop AC_REQUIRE calls that are redundant with the module dependencies.
2110 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
2112 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
2113 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
2114 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
2116 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
2118 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
2119 Don't use 'exit'; just return from 'main'.
2120 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
2122 * lib/fnmatch_.h: Readjust white space and comments to match
2123 glibc, to avoid spurious diffs.
2125 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
2127 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
2128 2004-12-01 change by Jakub Jelinek, since this code won't compile
2129 if !LIBC. Problem reported by Bob Proulx.
2131 2007-01-23 Bruno Haible <bruno@clisp.org>
2133 * lib/striconveh.c: Include c-strcaseeq.h.
2134 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
2135 * modules/striconveh (Depends-on): Add c-strcaseeq.
2137 2007-01-23 Bruno Haible <bruno@clisp.org>
2139 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
2141 * modules/c-strcaseeq: New file.
2142 * lib/c-strcaseeq.h: New file.
2144 * modules/streq: New file.
2145 * lib/streq.h: New file.
2147 2007-01-23 Bruno Haible <bruno@clisp.org>
2149 * modules/striconveha-tests: New file.
2150 * tests/test-striconveha.c: New file.
2152 * lib/striconveha.h: Include <stdbool.h>.
2153 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
2154 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
2155 (mem_iconveha_notranslit): Renamed from mem_iconveha.
2156 (mem_iconveha): New function.
2157 (str_iconveha_notranslit): Renamed from str_iconveha.
2158 (str_iconveha): New function.
2159 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
2162 2007-01-23 Bruno Haible <bruno@clisp.org>
2164 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
2165 encodings without forgiving before trying any encoding with handler.
2166 (str_iconveha): Try all encodings without forgiving before trying any
2167 encoding with handler.
2169 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
2171 Import the following changes from libc.
2173 2005-10-14 Ulrich Drepper <drepper@redhat.com>
2175 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
2177 2004-12-01 Jakub Jelinek <jakub@redhat.com>
2179 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
2180 normal_bracket label.
2182 2004-09-01 Jakub Jelinek <jakub@redhat.com>
2185 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
2186 to normal_bracket after fetching the next character.
2188 2007-01-22 Bruno Haible <bruno@clisp.org>
2190 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
2192 * lib/striconveh.c (iconv_carefully_1): New function.
2193 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
2195 (str_cd_iconveh): Update.
2196 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
2197 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
2198 * tests/test-striconveh.c (MAGIC): New macro.
2199 (new_offsets): New function.
2200 (main): Test call with and without offsets.
2202 2007-01-22 Bruno Haible <bruno@clisp.org>
2204 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
2205 * modules/sys_select (Makefile.am): Likewise.
2206 * modules/sys_socket (Makefile.am): Likewise.
2207 * modules/sys_time (Makefile.am): Likewise.
2209 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
2211 * modules/gettimeofday (License): Change from GPL to LGPL, since
2212 gettimeofday is a library function.
2214 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2216 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
2218 2007-01-21 Bruno Haible <bruno@clisp.org>
2220 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
2222 2007-01-21 Bruno Haible <bruno@clisp.org>
2224 * modules/striconveha: New file.
2225 * lib/striconveha.h: New file.
2226 * lib/striconveha.c: New file.
2227 * MODULES.html.sh (Internationalization functions): Add striconveha.
2228 * lib/striconv.c (str_iconv): Optimize the case of an empty input
2230 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
2232 2007-01-21 Bruno Haible <bruno@clisp.org>
2234 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
2235 * lib/striconveh.c (str_iconveh): Likewise.
2237 2007-01-21 Bruno Haible <bruno@clisp.org>
2239 * lib/striconveh.h (mem_iconveh): New declaration.
2240 * lib/striconveh.c (mem_iconveh): New function.
2241 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
2243 2007-01-21 Bruno Haible <bruno@clisp.org>
2245 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
2247 * lib/striconveh.h (mem_cd_iconveh): Change specification.
2248 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
2249 original result buffer.
2250 (str_cd_iconveh): Update.
2251 * tests/test-striconveh.c (main): Update.
2253 * lib/striconv.h (mem_cd_iconv): Change specification.
2254 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
2256 (str_cd_iconv): Update.
2257 * tests/test-striconv.c (main): Update.
2259 2007-01-21 Bruno Haible <bruno@clisp.org>
2261 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
2263 2007-01-20 Jim Meyering <jim@meyering.net>
2265 * lib/userspec.c (parse_with_separator): If a user or group string
2266 starts with "+", skip the corresponding name-to-ID look-up, since
2267 such a look-up must fail: user and group names may not include "+".
2269 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
2271 * lib/poll.c: Include sys/time.h and time.h unconditionally,
2272 since we now assume the sys_time module.
2273 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
2274 check for sys/time.h; no longer needed.
2275 * modules/poll (Depends-on): Depend on sys_time.
2277 2007-01-18 Bruno Haible <bruno@clisp.org>
2279 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
2280 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2282 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
2285 * tests/test-gettimeofday.c: Include <time.h>.
2286 (dummy): Remove variable.
2288 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
2289 gl_HEADER_SYS_TIME_H.
2290 (gl_HEADER_SYS_TIME_H): New macro.
2292 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
2293 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2294 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2295 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
2296 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2297 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
2298 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
2299 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2300 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
2301 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
2302 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2304 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
2305 last change; it caused a compilation error when cross-compiling to
2308 2007-01-18 Jim Meyering <jim@meyering.net>
2310 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
2311 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
2312 than the race-prone "test -d sys || mkdir sys".
2313 (configure.ac): Use AC_PROG_MKDIR_P.
2314 * modules/sys_select: Likewise.
2315 * modules/sys_socket: Likewise.
2316 * modules/sys_time: Likewise.
2318 2007-01-18 Eric Blake <ebb9@byu.net>
2320 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
2321 replace gettimeofday.
2322 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
2323 name, to avoid infinite recursion.
2325 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
2327 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
2329 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
2330 assume timespec.h defines struct timeval.
2331 * lib/settime.c: Likewise.
2332 * lib/utimens.c: Likewise.
2333 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
2334 since we now assume the gettimeofday module.
2335 * lib/tempname.c (__gen_tempname): Likewise.
2336 * lib/gettimeofday.h: Remove.
2337 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
2338 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
2339 Include <time.h>, for 'time()'.
2340 (localtime_buffer_addr): Also use this workaround if
2341 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
2342 to simplify the uses. All uses changed.
2343 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
2344 that #undef is inside {}, and 'const' follows type name consistently.
2345 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
2346 (gettimeofday): Do not use the maximum possible value for
2347 tv->tv_usec, since that might break usages other than ls.c.
2348 Instead, we'll leave ls.c alone. This undoes today's patch
2349 by Bruno. Add a compile-time warning for 1s-clock resolution;
2350 we've never observed the problem but might as well keep the
2352 * lib/nanosleep.c: Include timespec.h first, for interface check.
2353 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
2354 now assume the sys_time module.
2355 * lib/tempname.c: Likewise.
2356 * lib/timespec.h: Likewise.
2357 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
2359 * lib/strftime.c: Likewise.
2360 * lib/timespec.h: Likewise.
2361 * lib/posixtm.c: Include posixtm.h first, for interface check.
2362 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
2363 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
2364 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
2365 * lib/sys_time_.h: New file.
2366 * lib/timespec.h (struct timespec): Use long int, not long.
2367 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
2368 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
2369 Remove obsolescent call to AC_HEADER_TIME.
2370 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2371 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2372 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
2373 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
2375 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2376 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
2377 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
2378 into the sys_time module. Check for gettimeofday just once.
2379 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
2380 for gettimeofday signature to just check the signature. Merely
2381 compile it, since linking doesn't test signature. Improve test for
2382 whether gettimeofday.o is actually needed.
2383 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
2384 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
2385 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
2386 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2387 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
2388 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
2389 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
2390 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
2391 than worrying about sys/time.h.
2392 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2393 Don't bother worrying about TIME_WITH_SYS_TIME.
2394 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2395 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
2396 * m4/sys_time_h.m4: New file.
2397 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
2398 Don't include sys/time.h. Return from main rather than exiting.
2399 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
2401 * modules/gethrxtime (Depends-on): Add sys_time.
2402 * modules/gettime (Depends-on): Likewise.
2403 * modules/gettimeofday (Depends-on): Likewise.
2404 * modules/nanosleep (Depends-on): Likewise.
2405 * modules/settime (Depends-on): Likewise.
2406 * modules/tempname (Depends-on): Likewise.
2407 * modules/utimens (Depends-on): Likewise.
2408 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
2409 (Include:) Change back to <sys/time.h>.
2410 (Maintainer:) Add self.
2411 * modules/sys_time: New file.
2412 * modules/tempname (Depends-on): Add gettimeofday.
2413 * tests/test-gettimeofday.c: Include <sys/time.h>
2414 rather than gettimeofday.h.
2416 2007-01-17 Bruno Haible <bruno@clisp.org>
2418 * gnulib-tool (func_get_license): Revert last patch. Instead, let
2419 the license default to GPL.
2420 (func_create_testdir): Don't complain if a module is LGPL and its
2421 tests module depends on GPLed modules.
2423 2007-01-17 Bruno Haible <bruno@clisp.org>
2425 * lib/gettimeofday.c (gettimeofday): Add code for the case
2426 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
2427 maximum possible value for tv->tv_usec, rather than the minimum one.
2429 2005-10-08 Martin Lambers <marlam@marlam.de>
2430 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
2431 2007-01-16 Bruno Haible <bruno@clisp.org>
2433 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
2434 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
2435 gl_FUNC_GETTIMEOFDAY.
2436 (Include): Add gettimeofday.h.
2437 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
2438 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
2439 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
2440 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
2441 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
2442 * lib/gettimeofday.h: New file.
2443 * lib/gettimeofday.c: Include <sys/timeb.h>.
2444 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
2445 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2446 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
2447 fall back on time().
2449 * tests/test-gettimeofday.c: New file.
2450 * modules/gettimeofday-tests: New file.
2452 2007-01-16 Eric Blake <ebb9@byu.net>
2454 * modules/fnmatch (Depends-on): Depend on wchar.
2455 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
2456 * m4/fnmatch.m4: Likewise.
2457 * modules/mbchar (Makefile.am): Assume <wchar.h>.
2458 * m4/mbchar.m4: Likewise.
2459 * modules/mbswidth (Depends-on): Depend on wchar.
2460 * lib/mbswidth.c: Assume <wchar.h>.
2461 * m4/mbswidth.m4: Likewise.
2462 * modules/quotearg (Depends-on): Depend on wchar.
2463 * lib/quotearg.c: Assume <wchar.h>.
2464 * m4/quotearg.m4: Likewise.
2465 * modules/regex (Depends-on): Depend on wchar.
2466 * lib/regex_internal.h: Assume <wchar.h>.
2467 * m4/regex.m4: Likewise.
2468 * modules/stdint (Depends-on): Depend on wchar.
2469 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
2470 * m4/stdint.m4: Likewise.
2471 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
2472 * modules/strftime (Depends-on): Depend on wchar.
2473 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
2474 * modules/strtol (Depends-on): Depend on wchar.
2475 * lib/strtol.c: Assume <wchar.h>.
2476 * modules/wcwidth (Depends-on): Depend on wchar.
2477 * lib/wcwidth.h: Assume <wchar.h>.
2478 * m4/wcwidth.m4: Likewise.
2480 2007-01-16 Bruno Haible <bruno@clisp.org>
2482 * modules/csharpexec-script: New, created from...
2483 * modules/csharpexec: ... this.
2485 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
2487 * modules/javaexec-script: New, created from...
2488 * modules/javaexec: ... this.
2490 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2492 * modules/poll (Dependencies): Add sys_select.
2494 2007-01-15 Jim Meyering <jim@meyering.net>
2496 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
2497 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
2498 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
2499 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
2501 2007-01-15 Bruno Haible <bruno@clisp.org>
2503 * modules/striconveh: New file.
2504 * lib/striconveh.h: New file.
2505 * lib/striconveh.c: New file.
2506 * MODULES.html.sh (Internationalization functions): Add striconveh.
2508 * modules/striconveh-tests: New file.
2509 * tests/test-striconveh.c: New file.
2511 2007-01-15 Bruno Haible <bruno@clisp.org>
2513 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
2514 not from GNU libiconv or GNU libc.
2516 2007-01-15 Bruno Haible <bruno@clisp.org>
2518 * doc/gnulib-intro.texi (Copyright): Explain the different license
2519 terms for module descriptions, autoconf macros, tests, documentation.
2521 2007-01-14 Bruno Haible <bruno@clisp.org>
2523 * modules/striconv-tests: New file.
2524 * tests/test-striconv.c: New file.
2526 2007-01-14 Bruno Haible <bruno@clisp.org>
2528 * modules/iconv-tests: New file.
2529 * tests/test-iconv.c: New file.
2531 2007-01-14 Bruno Haible <bruno@clisp.org>
2533 * gnulib-tool (func_get_license): For test modules, use the license of
2536 2007-01-14 Bruno Haible <bruno@clisp.org>
2538 * modules/iconv (Include): Clarify that <iconv.h> can only be included
2539 if iconv is found to exist.
2541 2007-01-14 Bruno Haible <bruno@clisp.org>
2543 * modules/c-ctype-tests: New file.
2544 * tests/test-c-ctype.c: New file.
2546 2007-01-14 Bruno Haible <bruno@clisp.org>
2548 * modules/binary-io-tests: New file.
2549 * tests/test-binary-io.sh: New file.
2550 * tests/test-binary-io.c: New file.
2552 2007-01-14 Bruno Haible <bruno@clisp.org>
2554 * modules/array-oset-tests: New file.
2555 * tests/test-array_oset.c: New file.
2557 2007-01-14 Bruno Haible <bruno@clisp.org>
2559 * modules/array-list-tests: New file.
2560 * tests/test-array_list.c: New file.
2562 2007-01-14 Bruno Haible <bruno@clisp.org>
2564 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
2566 Reported by Simon Josefsson in
2567 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
2569 2007-01-14 Bruno Haible <bruno@clisp.org>
2571 * modules/allocsa-tests: New file.
2572 * tests/test-allocsa.c: New file.
2574 2007-01-14 Bruno Haible <bruno@clisp.org>
2576 * modules/fchdir (Depends-on): Add absolute-header.
2577 * modules/unistd (Depends-on): Likewise.
2579 2006-12-30 Bruno Haible <bruno@clisp.org>
2581 * modules/fchdir: New file.
2582 * modules/unistd (Files): Add lib/unistd_.h.
2583 (Makefile.am): Generate unistd.h from unistd_.h.
2584 * lib/fchdir.c: New file.
2585 * lib/dirent_.h: New file.
2586 * lib/unistd_.h: New file.
2587 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
2588 * m4/fchdir.m4: New file.
2589 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
2590 (gl_HEADER_UNISTD): Invoke it.
2591 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
2593 * lib/backupfile.c (opendir, closedir): Undefine.
2594 * lib/chown.c (open, close): Undefine.
2595 * lib/clean-temp.c (open, close): Undefine.
2596 * lib/copy-file.c (open, close): Undefine.
2597 * lib/execute.c (open, close): Undefine.
2598 * lib/fsusage.c (open, close): Undefine.
2599 * lib/gc-gnulib.c (open, close): Undefine.
2600 * lib/getcwd.c (opendir, closedir): Undefine.
2601 * lib/glob.c (opendir, closedir): Undefine.
2602 * lib/javacomp.c (open, close): Undefine.
2603 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
2604 * lib/openat-proc.c (open, close): Undefine.
2605 * lib/pagealign_alloc.c (open, close): Undefine.
2606 * lib/pipe.c (open, close): Undefine.
2607 * lib/progreloc.c (open, close): Undefine.
2608 * lib/savedir.c (opendir, closedir): Undefine.
2609 * lib/utime.c (open, close): Undefine.
2610 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
2612 2007-01-10 Bruno Haible <bruno@clisp.org>
2614 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
2616 2007-01-12 Eric Blake <ebb9@byu.net>
2618 Provide a robust <wchar.h>. Further simplifications are now
2619 possible in other modules, but not included here.
2620 * modules/wchar: New module.
2621 * m4/wchar.m4: New file.
2622 * lib/wchar_.h: Likewise.
2623 * modules/mbchar (Depends-on): Depend on wchar, as the first use
2625 * MODULES.html.sh (Extended multibyte and wide character utilities):
2628 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
2630 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
2631 to a reasonable default for memory allocation.
2632 (xreadlink): Don't allocate a huge buffer, to work around a buggy
2633 file system that reports garbage st_size values for symlinks.
2634 Problem reported by Liyang Hu.
2636 2007-01-11 Simon Josefsson <simon@josefsson.org>
2638 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
2639 Emacs .#* auto-save files).
2641 2007-01-11 Bruno Haible <bruno@clisp.org>
2643 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
2646 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
2648 Use @...@ consistently in lib/wctype_.h.
2649 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
2650 on it being set to 1 or 0.
2651 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
2652 go back to AC_SUBSTing it.
2653 * modules/wctype (Makefile.am): Undo previous change.
2655 2007-01-10 Eric Blake <ebb9@byu.net>
2657 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
2658 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
2659 * modules/wctype (Makefile.am): Likewise.
2660 Reported by Chris McGuire.
2662 2007-01-10 Jim Meyering <jim@meyering.net>
2664 fts.c: a small readability/maintainability improvement
2665 * lib/fts.c (fts_read): Make this code slightly more readable and
2666 maintainable by hoisting the "sp->fts_cur = p" assignments to
2667 immediately follow the statements that set P. Derived from
2668 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
2670 2007-01-10 Eric Blake <ebb9@byu.net>
2672 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
2673 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
2674 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2675 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2676 Reported by Chris McGuire.
2678 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2680 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
2683 2007-01-09 Bruno Haible <bruno@clisp.org>
2685 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
2686 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
2688 (func_module): Use them.
2690 2007-01-09 Bruno Haible <bruno@clisp.org>
2692 * modules/unistr/base: New file.
2693 * lib/unistr.h: New file.
2695 * modules/unistr/u8-to-u16: New file.
2696 * lib/unistr/u8-to-u16.c: New file.
2698 * modules/unistr/u8-to-u32: New file.
2699 * lib/unistr/u8-to-u32.c: New file.
2701 * modules/unistr/u16-to-u8: New file.
2702 * lib/unistr/u16-to-u8.c: New file.
2704 * modules/unistr/u16-to-u32: New file.
2705 * lib/unistr/u16-to-u32.c: New file.
2707 * modules/unistr/u32-to-u8: New file.
2708 * lib/unistr/u32-to-u8.c: New file.
2710 * modules/unistr/u32-to-u16: New file.
2711 * lib/unistr/u32-to-u16.c: New file.
2713 * modules/unistr/u8-check: New file.
2714 * modules/unistr/u16-check: New file.
2715 * modules/unistr/u32-check: New file.
2716 * lib/unistr/u8-check.c: New file.
2717 * lib/unistr/u16-check.c: New file.
2718 * lib/unistr/u32-check.c: New file.
2720 * modules/unistr/u8-chr: New file.
2721 * modules/unistr/u16-chr: New file.
2722 * modules/unistr/u32-chr: New file.
2723 * lib/unistr/u8-chr.c: New file.
2724 * lib/unistr/u16-chr.c: New file.
2725 * lib/unistr/u32-chr.c: New file.
2727 * modules/unistr/u8-cmp: New file.
2728 * modules/unistr/u16-cmp: New file.
2729 * modules/unistr/u32-cmp: New file.
2730 * lib/unistr/u8-cmp.c: New file.
2731 * lib/unistr/u16-cmp.c: New file.
2732 * lib/unistr/u32-cmp.c: New file.
2734 * modules/unistr/u8-cpy: New file.
2735 * modules/unistr/u16-cpy: New file.
2736 * modules/unistr/u32-cpy: New file.
2737 * lib/unistr/u8-cpy.c: New file.
2738 * lib/unistr/u16-cpy.c: New file.
2739 * lib/unistr/u32-cpy.c: New file.
2740 * lib/unistr/u-cpy.h: New file.
2742 * modules/unistr/u8-cpy-alloc: New file.
2743 * modules/unistr/u16-cpy-alloc: New file.
2744 * modules/unistr/u32-cpy-alloc: New file.
2745 * lib/unistr/u8-cpy-alloc.c: New file.
2746 * lib/unistr/u16-cpy-alloc.c: New file.
2747 * lib/unistr/u32-cpy-alloc.c: New file.
2748 * lib/unistr/u-cpy-alloc.h: New file.
2750 * modules/unistr/u8-endswith: New file.
2751 * modules/unistr/u16-endswith: New file.
2752 * modules/unistr/u32-endswith: New file.
2753 * lib/unistr/u8-endswith.c: New file.
2754 * lib/unistr/u16-endswith.c: New file.
2755 * lib/unistr/u32-endswith.c: New file.
2756 * lib/unistr/u-endswith.h: New file.
2758 * modules/unistr/u8-mblen: New file.
2759 * modules/unistr/u16-mblen: New file.
2760 * modules/unistr/u32-mblen: New file.
2761 * lib/unistr/u8-mblen.c: New file.
2762 * lib/unistr/u16-mblen.c: New file.
2763 * lib/unistr/u32-mblen.c: New file.
2765 * modules/unistr/u8-mbtouc: New file.
2766 * modules/unistr/u16-mbtouc: New file.
2767 * modules/unistr/u32-mbtouc: New file.
2768 * lib/unistr/u8-mbtouc.c: New file.
2769 * lib/unistr/u16-mbtouc.c: New file.
2770 * lib/unistr/u32-mbtouc.c: New file.
2772 * modules/unistr/u8-mbtouc-safe: New file.
2773 * modules/unistr/u16-mbtouc-safe: New file.
2774 * modules/unistr/u32-mbtouc-safe: New file.
2775 * lib/unistr/u8-mbtouc-safe.c: New file.
2776 * lib/unistr/u16-mbtouc-safe.c: New file.
2777 * lib/unistr/u32-mbtouc-safe.c: New file.
2779 * modules/unistr/u8-move: New file.
2780 * modules/unistr/u16-move: New file.
2781 * modules/unistr/u32-move: New file.
2782 * lib/unistr/u8-move.c: New file.
2783 * lib/unistr/u16-move.c: New file.
2784 * lib/unistr/u32-move.c: New file.
2785 * lib/unistr/u-move.h: New file.
2787 * modules/unistr/u8-next: New file.
2788 * modules/unistr/u16-next: New file.
2789 * modules/unistr/u32-next: New file.
2790 * lib/unistr/u8-next.c: New file.
2791 * lib/unistr/u16-next.c: New file.
2792 * lib/unistr/u32-next.c: New file.
2794 * modules/unistr/u8-prev: New file.
2795 * modules/unistr/u16-prev: New file.
2796 * modules/unistr/u32-prev: New file.
2797 * lib/unistr/u8-prev.c: New file.
2798 * lib/unistr/u16-prev.c: New file.
2799 * lib/unistr/u32-prev.c: New file.
2801 * modules/unistr/u8-set: New file.
2802 * modules/unistr/u16-set: New file.
2803 * modules/unistr/u32-set: New file.
2804 * lib/unistr/u8-set.c: New file.
2805 * lib/unistr/u16-set.c: New file.
2806 * lib/unistr/u32-set.c: New file.
2807 * lib/unistr/u-set.h: New file.
2809 * modules/unistr/u8-startswith: New file.
2810 * modules/unistr/u16-startswith: New file.
2811 * modules/unistr/u32-startswith: New file.
2812 * lib/unistr/u8-startswith.c: New file.
2813 * lib/unistr/u16-startswith.c: New file.
2814 * lib/unistr/u32-startswith.c: New file.
2815 * lib/unistr/u-startswith.h: New file.
2817 * modules/unistr/u8-stpcpy: New file.
2818 * modules/unistr/u16-stpcpy: New file.
2819 * modules/unistr/u32-stpcpy: New file.
2820 * lib/unistr/u8-stpcpy.c: New file.
2821 * lib/unistr/u16-stpcpy.c: New file.
2822 * lib/unistr/u32-stpcpy.c: New file.
2823 * lib/unistr/u-stpcpy.h: New file.
2825 * modules/unistr/u8-stpncpy: New file.
2826 * modules/unistr/u16-stpncpy: New file.
2827 * modules/unistr/u32-stpncpy: New file.
2828 * lib/unistr/u8-stpncpy.c: New file.
2829 * lib/unistr/u16-stpncpy.c: New file.
2830 * lib/unistr/u32-stpncpy.c: New file.
2831 * lib/unistr/u-stpncpy.h: New file.
2833 * modules/unistr/u8-strcat: New file.
2834 * modules/unistr/u16-strcat: New file.
2835 * modules/unistr/u32-strcat: New file.
2836 * lib/unistr/u8-strcat.c: New file.
2837 * lib/unistr/u16-strcat.c: New file.
2838 * lib/unistr/u32-strcat.c: New file.
2839 * lib/unistr/u-strcat.h: New file.
2841 * modules/unistr/u8-strchr: New file.
2842 * modules/unistr/u16-strchr: New file.
2843 * modules/unistr/u32-strchr: New file.
2844 * lib/unistr/u8-strchr.c: New file.
2845 * lib/unistr/u16-strchr.c: New file.
2846 * lib/unistr/u32-strchr.c: New file.
2848 * modules/unistr/u8-strcmp: New file.
2849 * modules/unistr/u16-strcmp: New file.
2850 * modules/unistr/u32-strcmp: New file.
2851 * lib/unistr/u8-strcmp.c: New file.
2852 * lib/unistr/u16-strcmp.c: New file.
2853 * lib/unistr/u32-strcmp.c: New file.
2855 * modules/unistr/u8-strcpy: New file.
2856 * modules/unistr/u16-strcpy: New file.
2857 * modules/unistr/u32-strcpy: New file.
2858 * lib/unistr/u8-strcpy.c: New file.
2859 * lib/unistr/u16-strcpy.c: New file.
2860 * lib/unistr/u32-strcpy.c: New file.
2861 * lib/unistr/u-strcpy.h: New file.
2863 * modules/unistr/u8-strcspn: New file.
2864 * modules/unistr/u16-strcspn: New file.
2865 * modules/unistr/u32-strcspn: New file.
2866 * lib/unistr/u8-strcspn.c: New file.
2867 * lib/unistr/u16-strcspn.c: New file.
2868 * lib/unistr/u32-strcspn.c: New file.
2869 * lib/unistr/u-strcspn.h: New file.
2871 * modules/unistr/u8-strdup: New file.
2872 * modules/unistr/u16-strdup: New file.
2873 * modules/unistr/u32-strdup: New file.
2874 * lib/unistr/u8-strdup.c: New file.
2875 * lib/unistr/u16-strdup.c: New file.
2876 * lib/unistr/u32-strdup.c: New file.
2877 * lib/unistr/u-strdup.h: New file.
2879 * modules/unistr/u8-strlen: New file.
2880 * modules/unistr/u16-strlen: New file.
2881 * modules/unistr/u32-strlen: New file.
2882 * lib/unistr/u8-strlen.c: New file.
2883 * lib/unistr/u16-strlen.c: New file.
2884 * lib/unistr/u32-strlen.c: New file.
2885 * lib/unistr/u-strlen.h: New file.
2887 * modules/unistr/u8-strmblen: New file.
2888 * modules/unistr/u16-strmblen: New file.
2889 * modules/unistr/u32-strmblen: New file.
2890 * lib/unistr/u8-strmblen.c: New file.
2891 * lib/unistr/u16-strmblen.c: New file.
2892 * lib/unistr/u32-strmblen.c: New file.
2894 * modules/unistr/u8-strmbtouc: New file.
2895 * modules/unistr/u16-strmbtouc: New file.
2896 * modules/unistr/u32-strmbtouc: New file.
2897 * lib/unistr/u8-strmbtouc.c: New file.
2898 * lib/unistr/u16-strmbtouc.c: New file.
2899 * lib/unistr/u32-strmbtouc.c: New file.
2901 * modules/unistr/u8-strncat: New file.
2902 * modules/unistr/u16-strncat: New file.
2903 * modules/unistr/u32-strncat: New file.
2904 * lib/unistr/u8-strncat.c: New file.
2905 * lib/unistr/u16-strncat.c: New file.
2906 * lib/unistr/u32-strncat.c: New file.
2907 * lib/unistr/u-strncat.h: New file.
2909 * modules/unistr/u8-strncmp: New file.
2910 * modules/unistr/u16-strncmp: New file.
2911 * modules/unistr/u32-strncmp: New file.
2912 * lib/unistr/u8-strncmp.c: New file.
2913 * lib/unistr/u16-strncmp.c: New file.
2914 * lib/unistr/u32-strncmp.c: New file.
2916 * modules/unistr/u8-strncpy: New file.
2917 * modules/unistr/u16-strncpy: New file.
2918 * modules/unistr/u32-strncpy: New file.
2919 * lib/unistr/u8-strncpy.c: New file.
2920 * lib/unistr/u16-strncpy.c: New file.
2921 * lib/unistr/u32-strncpy.c: New file.
2922 * lib/unistr/u-strncpy.h: New file.
2924 * modules/unistr/u8-strnlen: New file.
2925 * modules/unistr/u16-strnlen: New file.
2926 * modules/unistr/u32-strnlen: New file.
2927 * lib/unistr/u8-strnlen.c: New file.
2928 * lib/unistr/u16-strnlen.c: New file.
2929 * lib/unistr/u32-strnlen.c: New file.
2930 * lib/unistr/u-strnlen.h: New file.
2932 * modules/unistr/u8-strpbrk: New file.
2933 * modules/unistr/u16-strpbrk: New file.
2934 * modules/unistr/u32-strpbrk: New file.
2935 * lib/unistr/u8-strpbrk.c: New file.
2936 * lib/unistr/u16-strpbrk.c: New file.
2937 * lib/unistr/u32-strpbrk.c: New file.
2938 * lib/unistr/u-strpbrk.h: New file.
2940 * modules/unistr/u8-strrchr: New file.
2941 * modules/unistr/u16-strrchr: New file.
2942 * modules/unistr/u32-strrchr: New file.
2943 * lib/unistr/u8-strrchr.c: New file.
2944 * lib/unistr/u16-strrchr.c: New file.
2945 * lib/unistr/u32-strrchr.c: New file.
2947 * modules/unistr/u8-strspn: New file.
2948 * modules/unistr/u16-strspn: New file.
2949 * modules/unistr/u32-strspn: New file.
2950 * lib/unistr/u8-strspn.c: New file.
2951 * lib/unistr/u16-strspn.c: New file.
2952 * lib/unistr/u32-strspn.c: New file.
2953 * lib/unistr/u-strspn.h: New file.
2955 * modules/unistr/u8-strstr: New file.
2956 * modules/unistr/u16-strstr: New file.
2957 * modules/unistr/u32-strstr: New file.
2958 * lib/unistr/u8-strstr.c: New file.
2959 * lib/unistr/u16-strstr.c: New file.
2960 * lib/unistr/u32-strstr.c: New file.
2961 * lib/unistr/u-strstr.h: New file.
2963 * modules/unistr/u8-strtok: New file.
2964 * modules/unistr/u16-strtok: New file.
2965 * modules/unistr/u32-strtok: New file.
2966 * lib/unistr/u8-strtok.c: New file.
2967 * lib/unistr/u16-strtok.c: New file.
2968 * lib/unistr/u32-strtok.c: New file.
2969 * lib/unistr/u-strtok.h: New file.
2971 * modules/unistr/u8-uctomb: New file.
2972 * modules/unistr/u16-uctomb: New file.
2973 * modules/unistr/u32-uctomb: New file.
2974 * lib/unistr/u8-uctomb.c: New file.
2975 * lib/unistr/u16-uctomb.c: New file.
2976 * lib/unistr/u32-uctomb.c: New file.
2978 * MODULES.html.sh (Unicode string functions): Add the new modules.
2980 2007-01-08 Bruno Haible <bruno@clisp.org>
2982 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
2983 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
2986 2007-01-08 Karl Berry <karl@gnu.org>
2988 * doc/error.texi: mention that main() fns must set program_name
2989 when progname is used.
2991 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
2993 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
2994 WCTYPE_H is empty, for the benefit of builds from non-distclean
2995 directories. Problem reported by Eric Blake in
2996 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
2998 2007-01-08 Bruno Haible <bruno@clisp.org>
3000 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
3001 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
3002 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
3003 PROVIDE_CANONICALIZE_FILENAME_MODE.
3004 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
3006 2007-01-08 Bruno Haible <bruno@clisp.org>
3008 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
3009 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
3010 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
3011 * lib/fts.c: Likewise.
3012 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
3014 2006-12-25 Bruno Haible <bruno@clisp.org>
3016 * modules/utf8-ucs4-safe: New file.
3017 * lib/utf8-ucs4-safe.h: New file.
3018 * lib/unistr/utf8-ucs4-safe.c: New file.
3020 * modules/utf16-ucs4-safe: New file.
3021 * lib/utf16-ucs4-safe.h: New file.
3022 * lib/unistr/utf16-ucs4-safe.c: New file.
3024 * MODULES.html.sh (Unicode string functions): Add the new modules.
3026 2007-01-08 Bruno Haible <bruno@clisp.org>
3028 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
3029 (Depends-on): Add unitypes.
3030 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3031 (u8_mbtouc_aux): Move out to separate file.
3032 (u8_mbtouc): Use ucs4_t, uint8_t types.
3033 * lib/unistr/utf8-ucs4.c: New file.
3035 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
3036 (Depends-on): Add unitypes.
3037 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
3038 (u16_mbtouc_aux): Move out to separate file.
3039 (u16_mbtouc): Use ucs4_t, uint16_t types.
3040 * lib/unistr/utf16-ucs4.c: New file.
3042 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
3043 (Depends-on): Add unitypes.
3044 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
3045 (u8_uctomb_aux): Move out to separate file.
3046 (u8_uctomb): Use ucs4_t, uint8_t types.
3047 * lib/unistr/ucs4-utf8.c: New file.
3049 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
3050 (Depends-on): Add unitypes.
3051 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
3052 (u16_uctomb_aux): Move out to separate file.
3053 (u16_uctomb): Use ucs4_t, uint16_t types.
3054 * lib/unistr/ucs4-utf16.c: New file.
3056 2006-12-25 Bruno Haible <bruno@clisp.org>
3058 * modules/unitypes: New file.
3059 * lib/unitypes.h: New file.
3060 * MODULES.html.sh (func_all_modules): New section "Unicode string
3061 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
3062 this section. Add unitypes.
3064 2007-01-08 Bruno Haible <bruno@clisp.org>
3066 Avoid variable names that conflict with those from libtool.
3067 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
3068 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
3069 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
3070 library_names_spec to acl_library_names_spec, hardcode_* to
3072 Reported by Ralf Wildenhues.
3074 2007-01-08 Bruno Haible <bruno@clisp.org>
3076 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
3078 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
3080 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
3081 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
3083 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
3085 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
3086 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
3087 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
3088 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
3090 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
3092 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
3093 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
3095 * lib/gc-libgcrypt.c: Likewise.
3096 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
3097 * modules/gc-arctwo (configure.ac): Likewise.
3098 * modules/gc-des (configure.ac): Likewise.
3099 * modules/gc-hmac-md5 (configure.ac): Likewise.
3100 * modules/gc-hmac-sha1 (configure.ac): Likewise.
3101 * modules/gc-md2 (configure.ac): Likewise.
3102 * modules/gc-md4 (configure.ac): Likewise.
3103 * modules/gc-md5 (configure.ac): Likewise.
3104 * modules/gc-random (configure.ac): Likewise.
3105 * modules/gc-rijndael (configure.ac): Likewise.
3106 * modules/gc-sha1 (configure.ac): Likewise.
3108 2007-01-08 Bruno Haible <bruno@clisp.org>
3110 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
3112 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
3114 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
3116 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
3117 * modules/fcntl-safer (configure.ac): Likewise.
3118 * modules/fopen-safer (configure.ac): Likewise.
3119 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
3120 GNULIB_FWRITEERROR macro definition.
3122 2007-01-08 Bruno Haible <bruno@clisp.org>
3124 * m4/gnulib-common.m4: New file.
3125 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
3126 (func_get_filelist): Add m4/gnulib-common.m4.
3128 2007-01-08 Bruno Haible <bruno@clisp.org>
3130 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
3133 2007-01-08 Jim Meyering <jim@meyering.net>
3135 Use a more robust test for a "can't happen" condition.
3136 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
3137 narrowed the st_size value. Presuming the "can't happen" condition
3138 is true, that narrowing could conceivably convert an invalid st_size
3139 value into a valid one. Instead, use a change based on Matthew
3140 Woehlke's original patch.
3142 Slight readability improvement: use an assert-like macro
3143 in place of literal "abort ()" uses.
3144 * lib/fts.c (fts_assert): Define.
3145 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
3146 Use this macro instead of a bare 'abort'.
3148 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
3150 Don't worry about using IRIX 5.3's wctype.h broken definitions;
3151 simply work around them.
3152 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
3153 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
3154 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
3156 Don't bother to define as macros, since the standard doesn't require it.
3157 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
3158 longer worry about IRIX 5.3.
3159 (HAVE_WCTYPE_CTMP_BUG): Remove.
3161 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
3163 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
3164 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
3165 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
3166 Problems reported by Georg Schwarz for IRIX 5.3.
3168 * gnulib-tool (autoconf_minversion): Take the maximum version number
3169 found, not the minimum. Problem reported by James Youngman.
3171 2007-01-03 Karl Berry <karl@gnu.org>
3173 * doc/error.texi: new file, explaining interaction with progname.
3174 * doc/gnulib.texi: include it. Update copyright.
3176 2007-01-03 Simon Josefsson <simon@josefsson.org>
3178 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
3179 AC_CANONICAL_HOST, to improve autobuild outputs.
3181 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
3182 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3184 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
3185 sockets, server sockets, and other file descriptors. Count errors
3186 to compute the return value. Reorder the code a bit to be easier
3187 to follow. Don't set event bits that were not requested (except
3188 POLLERR and POLLHUP).
3190 2007-01-01 Bruno Haible <bruno@clisp.org>
3192 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
3194 2007-01-03 Jim Meyering <jim@meyering.net>
3196 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
3198 2007-01-02 Bruno Haible <bruno@clisp.org>
3200 * modules/settime (Include): Require timespec.h.
3201 * modules/nanosleep (Include): Likewise.
3203 2007-01-01 Bruno Haible <bruno@clisp.org>
3205 * gnulib-tool (func_emit_copyright_notice): Bump year.
3206 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
3208 2007-01-01 Bruno Haible <bruno@clisp.org>
3210 Improve support for OpenBSD.
3211 * build-aux/config.rpath (libname_spec): Export.
3212 (library_names_spec): New variable. Export.
3213 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
3214 library_names_spec from the config.rpath output. Locate shared library
3215 through the name pattern in library_names_spec.
3217 2007-01-01 Eric Blake <ebb9@byu.net>
3219 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
3221 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
3223 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
3224 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
3225 assume the C locale, and avoid an "eval" that could cause trouble.
3226 Problem with SORT reported by Bob Proulx.
3228 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
3229 Define. Trivial patch from Henning Nielsen Lund, originally
3230 sent to bug-grep@gnu.org today.
3232 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
3234 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
3235 struct stat. Problem reported by Henning Nielsen Lund.
3236 * lib/acl.c: Include acl.h first, to check interface. Don't
3237 bother to include sys/types.h and sys/stat.h again.
3239 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
3241 Import the following change from libc; problem reported by
3244 2005-10-13 Ulrich Drepper <drepper@redhat.com>
3247 * lib/argp.h: Remove __NTH for __argp_usage inline function.
3249 2006-12-28 Jim Meyering <jim@meyering.net>
3251 * build-aux/announce-gen: Do not assume that the package
3252 builds any of tar.gz, tar.bz2, and .xdelta files.
3253 Suggestion from Simon Josefsson.
3255 2006-12-28 Simon Josefsson <simon@josefsson.org>
3257 * modules/announce-gen: New file.
3259 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
3261 * lib/mbchar.h: Just include <wctype.h>; the wctype module
3262 handles its gotchas now.
3263 * lib/mbswidth.c: Likewise.
3264 * lib/wcwidth.h: Likewise.
3265 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
3266 and iswcntrl; the wctype module does this stuff now.
3267 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3268 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3269 * modules/mbchar (Depends-on): Add wctype.
3270 * modules/mbswidth (Depends-on): Likewise.
3271 * modules/wcwidth (Depends-on): Likewise.
3273 2006-12-27 Eric Blake <ebb9@byu.net>
3275 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
3276 module uses more than what <wctype.h> is required to provide.
3278 2006-12-26 Eric Blake <ebb9@byu.net>
3280 * gnulib-tool (sed_extract_prog): Avoid space-tab.
3282 2006-12-26 Eric Blake <ebb9@byu.net>
3284 * modules/absolute-header: New module.
3285 * modules/fcntl (Depends-on): Depend on it.
3286 * modules/inttypes (Depends-on): Likewise.
3287 * modules/stdint (Depends-on): Likewise.
3288 * modules/sys_stat (Depends-on): Likewise.
3289 * modules/wctype (Depends-on): Likewise.
3290 * MODULES.html.sh (Support for building libraries and
3291 executables): Document it.
3293 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
3295 * gnulib-tool (SED): Remove, undoing previous change.
3296 The problem was that it broke coreutils on Solaris, because
3297 "sed --posix" leaked into a makefile.
3298 (sed): New alias, if 'alias' and GNU sed.
3300 2006-12-24 Jim Meyering <jim@meyering.net>
3302 Work around an fchownat bug in glibc-2.4:
3303 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
3304 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
3305 in spite of the -P option.
3306 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
3308 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
3309 * modules/openat (Files): Add lib/fchownat.c.
3310 * lib/openat.c (fchownat): Don't define here. Move to...
3311 * lib/fchownat.c: ...this new file.
3313 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
3315 Fix bug reported by Bruno Haible in
3316 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
3317 where quotearg.c didn't compile on Mac OS X 10.2 because it
3318 lacks <wchar.h> and wint_t.
3319 * lib/wctype_.h (__wctype_wint_t): New type.
3320 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
3321 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
3322 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
3323 Arg is now of type __wctype_wint_t, not wint_t.
3324 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
3325 substitute HAVE_WINT_T.
3326 * modules/wctype (Files): Add m4/wint_t.m4.
3327 (wctype.h): Substitute HAVE_WINT_T.
3329 2006-12-23 Bruno Haible <bruno@clisp.org>
3331 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
3333 2006-12-23 Bruno Haible <bruno@clisp.org>
3335 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
3337 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
3340 2006-12-22 Bruno Haible <bruno@clisp.org>
3342 * lib/copy-file.c: Include acl.h.
3343 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
3344 Close the file descriptors only after being done with copy_acl.
3345 * modules/copy-file (Depends-on): Add acl.
3347 2006-12-22 Bruno Haible <bruno@clisp.org>
3349 * gnulib-tool (SED): New variable.
3350 Use $SED instead of sed everywhere.
3352 2006-12-22 Bruno Haible <bruno@clisp.org>
3354 * modules/no-c++: New file.
3355 * m4/no-c++.m4: New file.
3356 * MODULES.html.sh (Support for building libraries and executables):
3359 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
3361 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3362 Include <limits.h>, and use its INT_MAX to rewrite the
3363 j loop so that it does not overflow 'int'. Problem reported by
3365 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
3366 Play it safe by shifting left by 1 rather than multiplying by 2,
3367 as GCC is less likely to optimize this away when the value
3368 is signed (when it assumes overflow leads to undefined behavior).
3369 Also, don't assume time_t uses two's complement.
3371 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
3373 * MODULES.html.sh: New module wctype.
3374 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
3375 * lib/fnmatch.c: Don't bother to include <wchar.h> before
3376 <wctype.h>, since the new wctype module should fix this.
3377 * lib/quotearg.c: Include <wctype.h> unconditionally, since
3378 the wctype module should arrange for it.
3379 * lib/regex_internal.h: Likewise.
3380 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
3381 since the wctype module should handle this now.
3382 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
3383 * modules/fnmatch (Depends-on): Add wctype.
3384 * modules/quotearg (Depends-on): Likewise.
3385 * modules/regex (Depends-on): Likewise.
3387 2006-12-19 Bruno Haible <bruno@clisp.org>
3389 * lib/strdup.h [C++]: Wrap definitions in extern "C".
3390 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
3392 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3394 * modules/savewd (Depends-on): Fix dependency on fcntl.
3396 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
3398 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
3399 conforms to C99, rather than relying on the user's environment
3400 setting of STDINT_H.
3402 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
3403 and Eric Blake <ebb9@byu.net>
3405 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
3406 This is more consistent with the other defines here.
3407 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
3408 Port to z/OS. Problem reported by Paul Gilmartin.
3409 Change local vars to use gl_ prefix rather than ac_.
3410 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
3412 * modules/double-slash-root: New module.
3413 * modules/dirname (Files): Remove m4/double-slash-root.m4.
3414 (Depends-on): Add double-slash-root.
3415 * MODULES.html.sh (File system functions): Mention new module.
3417 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
3419 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
3420 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
3421 This is for the benefit of gzip, which doesn't do i18n.
3423 2006-12-12 Jim Meyering <jim@meyering.net>
3425 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
3426 Reported by Andreas Schwab <schwab@suse.de>.
3428 2006-12-12 Bruno Haible <bruno@clisp.org>
3430 Merge these changes.
3431 2006-09-05 Bruno Haible <bruno@clisp.org>
3432 * lib/iconvme.c (iconv_string): No need to save and restore errno when
3433 iconv_alloc succeeded.
3434 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
3435 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
3436 test for " && dest " at the end - dest is always != NULL there. Call
3437 iconv with 4xNULL arguments initially, to reset the state. Call iconv
3438 with 2xNULL arguments, also to flush the state storage. Handle the
3439 IRIX iconv behaviour. Realloc the final result, to throw away unused
3442 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
3444 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
3445 and fchmodat unconditionally, since glibc 2.4 has them.
3446 Problem reported by Arkadiusz Miskiewicz.
3448 2006-12-10 Bruno Haible <bruno@clisp.org>
3450 * gnulib-tool (func_import): Show the include files only for those
3451 modules that are copied and specified.
3452 Reported by Karl Berry.
3454 2006-12-08 Jim Meyering <jim@meyering.net>
3456 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
3457 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
3459 * build-aux/announce-gen: Add two new options, both optional:
3460 --bootstrap-tools=TOOL_LIST
3461 a comma-separated list of tools, e.g.,
3462 autoconf,automake,bison,gnulib
3463 --gnulib-snapshot-date=DATE
3464 if gnulib is in the bootstrap tool list,
3465 then report this as the snapshot date.
3466 If not specified, use the current date/time.
3467 If you specify a date here, be sure it's UTC.
3469 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3471 * tests/test-argp-2.sh: Fix test to match actual output.
3472 (func_compare): Fix sed script to be portable.
3474 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
3476 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
3477 workaround for this case. It is not autoconfigured now; offhand
3478 it's hard to see how to autoconfigure it.
3480 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
3482 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
3483 a directory that is about to be chowned. Such a directory's
3484 initial file permissions should permit the owner only and this
3485 should not be changed until after the chown, since the group and
3486 other bits would be incorrect if they granted permission before
3489 Fix porting problem for iswctype reported by Georg Schwarz in:
3490 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
3491 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
3492 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
3493 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
3494 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3496 2006-12-03 Jim Meyering <jim@meyering.net>
3498 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
3499 p->fts_statp may not yet be defined.
3500 (fts_read): Instead, set it in the caller, once p->fts_statp is
3501 sure to be defined, and corresponds to a top-level directory.
3502 This bug made du -x fail. Here's the coreutils test case:
3503 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
3504 Reported by Mike Frysinger.
3506 2006-12-01 Jim Meyering <jim@meyering.net>
3508 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
3509 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
3510 Reported by Simon Josefsson.
3512 2006-11-30 Jim Meyering <jim@meyering.net>
3514 * m4/warning.m4: Use the all-permissive copyright notice
3515 recommended by RMS (rather than LGPL).
3516 * m4/vararrays.m4: Likewise.
3517 * m4/flexmember.m4: Likewise.
3519 2006-11-29 Bruno Haible <bruno@clisp.org>
3521 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3522 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
3524 Reported by Simon Josefsson <simon@josefsson.org>.
3526 2006-11-28 James Youngman <jay@gnu.org>
3528 * README: Advise users that they might find the bug-gnulib@gnu.org
3529 and autotools-announce@gnu.org mailing lists useful.
3531 2006-11-28 Bruno Haible <bruno@clisp.org>
3533 * m4/ptrdiff_max.m4: Remove file.
3535 2006-11-21 Bruno Haible <bruno@clisp.org>
3537 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
3539 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3540 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
3542 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3543 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
3545 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3547 2006-11-28 Jim Meyering <jim@meyering.net>
3549 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
3550 warning from "gcc -Wshadow" about shadowing the builtin.
3552 2006-11-27 Bruno Haible <bruno@clisp.org>
3554 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
3556 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3558 2006-11-27 Bruno Haible <bruno@clisp.org>
3559 Paul Eggert <eggert@cs.ucla.edu>
3561 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
3563 2006-11-26 Bruno Haible <bruno@clisp.org>
3565 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3568 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
3569 Bruno Haible <bruno@clisp.org>
3571 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
3572 if compiling with "gcc -ansi".
3574 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
3576 Fix some incompatibilities with gcc -ansi -pedantic.
3577 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
3578 if compiling pedantically with GCC, unless it's C99 or later.
3579 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
3580 it mishandles gcc -ansi -pedantic as well.
3581 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
3583 * lib/regexec.c (check_node_accept_bytes): Don't use auto
3584 initializers for struct if -pedantic, unless it's C99 or later.
3586 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
3588 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
3589 Don't close an fd more than once. Identical atimes indicate
3590 success, not failure.
3592 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
3594 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
3596 2006-11-23 Jim Meyering <jim@meyering.net>
3598 * build-aux/announce-gen: New file. From coreutils.
3600 2006-11-22 Jim Meyering <jim@meyering.net>
3602 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
3603 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
3604 (fts_read): Use a temporary to narrow the overused st_size member
3605 before using it in a switch statement. Reported by Matthew Woehlke.
3607 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
3608 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3610 2006-11-20 Bruno Haible <bruno@clisp.org>
3612 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
3613 changequote instead of pairs of brackets.
3614 Reported by Andreas Schwab <schwab@suse.de>.
3616 2006-11-21 Jim Meyering <jim@meyering.net>
3618 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
3619 so as to remain compatible with older compilers.
3620 Patch from Michael Deutschmann.
3622 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
3624 * MODULES.html.sh (File system functions): Add openat.
3626 * lib/openat.h (rpl_fstatat): New macro, if
3627 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
3628 (fstatat): Define to rpl_fstatat under the same conditions,
3629 unless COMPILING_FSTATAT.
3630 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
3631 seems to have the bug.
3632 * lib/fstatat.c: New file.
3633 * modules/openat (Files): Add it.
3635 2006-11-20 Bruno Haible <bruno@clisp.org>
3637 * Makefile: New file.
3639 2006-11-20 Jim Meyering <jim@meyering.net>
3641 The beginnings of syntax-related checks for gnulib.
3642 * lib/Makefile: New file.
3643 * lib/t-idcache: New script. Ensure that the two halves of
3644 idcache.c stay in sync.
3646 * lib/idcache.c: Adjust comments in user- and group- portions to
3647 be more accurate, and to be consistent with one another.
3649 2006-11-20 Jim Meyering <jim@meyering.net>
3651 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
3652 continue using the flexible array member (thus, this module performs
3653 half as many malloc calls), with the addition that...
3654 (getgroup, getuser): Consistently record a non-match via an empty
3655 "name" string, and map an empty string match to a NULL return value.
3656 * modules/idcache (Depends-on): Re-add flexmember.
3658 * lib/idcache.c (getuser): Remove all uses of the register keyword.
3659 (getuidbyname, getgroup, getgidbyname): Likewise.
3661 Use cleaner syntax: NULL rather than 0.
3662 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
3664 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
3666 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
3667 It mishandled the case where the group was missing.
3668 Problem reported by Greg Schafer.
3669 * modules/idcache: Likewise.
3671 2006-11-18 Jim Meyering <jim@meyering.net>
3673 * check-module (%exempt_header): Add exception for some
3674 conditionally-included headers.
3676 * modules/i-ring (Depends-on): Add verify.
3677 (License): Change to LGPL.
3679 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
3681 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
3682 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
3683 and inttostr.h. Use snprintf rather than uinttostr, so that
3684 LGPLed code doesn't depend on GPLed.
3686 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
3688 * modules/inline (License): Change from GPL to LGPL.
3690 2006-11-17 Jim Meyering <jim@meyering.net>
3692 * modules/d-type (License): Switch to LGPL.
3694 2006-11-15 Bruno Haible <bruno@clisp.org>
3696 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
3698 2006-11-15 Eric Blake <ebb9@byu.net>
3700 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
3701 the module dependency.
3703 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3704 Bruno Haible <bruno@clisp.org>
3706 * gnulib-tool (func_create_testdir): Add license consistency check.
3708 2006-11-15 Eric Blake <ebb9@byu.net>
3710 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
3711 random "(cached)" in configure output.
3713 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3715 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
3716 test for conforming inttypes.h is both announced and cached.
3718 * MODULES.html.sh (seen_modules, seen_files): New variables.
3719 (func_module): Rewrite to use a few less gnulib-tool and sed
3720 invocations. Avoid a couple of quadratic algorithms for ...
3721 (missed_modules, missed_files): ... these, with ...
3722 (func_append, func_tmpdir): ... these new functions, from
3723 gnulib-tool. Analogously, install traps for cleanup.
3725 * tests/test-gc.c (main): Remove unused variables.
3726 * tests/test-read-file.c: Include stdlib.h, for 'free'.
3728 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
3730 * modules/inttostr (License): Change to LGPL.
3732 2006-11-14 Eric Blake <ebb9@byu.net>
3734 * modules/tempname (License): Change to LGPL.
3736 2006-11-14 Eric Blake <ebb9@byu.net>
3738 * doc/functions.texi (Function Portability): *printf functions on
3739 Cygwin now understand all POSIX size specifiers.
3741 2006-11-14 Bruno Haible <bruno@clisp.org>
3743 * modules/c-ctype (License): Change to LGPL.
3745 2006-11-12 Bruno Haible <bruno@clisp.org>
3747 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3748 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
3749 for GNOME libraries, for which the include files are installed in
3750 subdirectories of $prefix/include.
3752 2006-11-12 Bruno Haible <bruno@clisp.org>
3754 * m4/lib-link.m4: Require at least autoconf-2.54.
3755 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
3756 name to underscores for the --with option.
3758 2006-11-13 Bruno Haible <bruno@clisp.org>
3760 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
3761 the tests directory.
3762 Reported by Ralf Wildenhues.
3764 2006-11-13 Bruno Haible <bruno@clisp.org>
3766 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
3767 (func_emit_initmacro_end): Undo the override here.
3768 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
3769 Works around the famous automake error in coreutils.
3771 2006-11-13 Eric Blake <ebb9@byu.net>
3773 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
3774 element, not its node.
3776 2006-11-12 Bruno Haible <bruno@clisp.org>
3778 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
3779 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
3781 2006-11-12 Bruno Haible <bruno@clisp.org>
3783 * gnulib-tool: New option --local-symlink.
3784 (func_usage): Document it.
3785 (lsymbolic): New variable.
3786 (func_import, func_create_testdir): If --symlink was not specified,
3787 test whether --local-symlink was specified and the file comes from
3788 the local_gnulib_dir.
3790 2006-11-12 Bruno Haible <bruno@clisp.org>
3792 * gnulib-tool (func_ln): New function.
3793 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
3795 2006-11-12 Bruno Haible <bruno@clisp.org>
3797 Finish support for source files in subdirectories.
3798 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
3799 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
3801 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
3803 2006-11-12 Bruno Haible <bruno@clisp.org>
3805 * gnulib-tool (func_get_automake_snippet): Synthesize also an
3806 EXTRA_lib_SOURCES augmentation.
3807 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
3809 2006-11-12 Jim Meyering <jim@meyering.net>
3811 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
3812 file descriptors. This also averts a failure on systems with
3813 native openat support when a traversed directory lacks "x" access.
3814 * lib/fts_.h: Include "i-ring.h"
3815 (struct FTS) [fts_fd_ring]: New member.
3816 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
3817 (FCHDIR): Add parentheses.
3818 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
3819 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
3820 When descending, rather than simply closing the previous
3821 fts_cwd_fd value, push that file descriptor onto the ring.
3822 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
3823 (fts_open): Initialize the new fd_ring member.
3824 (fts_close): Clear the ring.
3825 (fts_safe_changedir): When possible, use our new fd_ring to skip
3826 the diropen and fstat and dev/ino comparison that would normally
3827 accompany a virtual `chdir ("..")'.
3829 * modules/fts (Depends-on): Add i-ring.
3830 * modules/i-ring: New module.
3831 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
3832 * m4/i-ring.m4: New file.
3834 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3836 * gnulib-tool (func_create_testdir): Fix replacement of
3837 `build-aux' in configure.ac. Run autotools in gltests
3839 (func_create_testdir, func_create_megatestdir, test): There is
3840 no need for '--force' in most autotool invocations in a new
3841 tree. Actually fail the whole test if any of the tools, or the
3842 configure or make stages fail.
3845 * build-aux/gnupload: Revert last change. Add pointer to upload
3846 instructions of the GNU Maintenance Instructions.
3847 Suggestion by Karl Berry.
3849 2006-11-10 Jim Meyering <jim@meyering.net>
3851 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
3853 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
3855 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
3856 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
3857 (bind_textdomain_codeset) [! ENABLE_NLS]:
3858 Evaluate all the arguments. That way, callers get compatible behavior
3859 if the arguments have side effects. Also, it avoids some GCC
3860 diagnostics in some cases; Joel E. Denny reported problems when Bison
3861 was configured with --enable-gcc-warnigs.
3863 2006-11-10 Jim Meyering <jim@meyering.net>
3865 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
3866 relevant options in CFLAGS (like -O, -fno-inline) are taken into
3869 2006-11-10 Jim Meyering <jim@meyering.net>
3871 * modules/inline: New file/module.
3872 * modules/xalloc (Files): Remove m4/inline.m4.
3873 (Depends-on): Add inline, instead.
3874 * modules/oset: Likewise.
3875 * modules/list: Likewise.
3877 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
3879 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
3880 Problem reported by Matthew Woehlke.
3882 2006-11-09 Bruno Haible <bruno@clisp.org>
3884 * lib/tempname.c (gen_tempname): Remove variant that invokes
3886 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
3889 2006-11-08 Bruno Haible <bruno@clisp.org>
3891 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
3892 to 'yes' instead of 'cross-compiling'.
3894 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
3896 * lib/quotearg.h (quotearg_free): New decl.
3897 * lib/quotearg.c (quotearg_free): New function.
3898 (slot0, nslots, slotvec0, slotvec):
3899 Now file-scope so that quotearg_free can get at them.
3901 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3904 * build-aux/gnupload: Add missing 'gnu' to example URL.
3905 Report by Karl Berry.
3907 2006-11-08 Bruno Haible <bruno@clisp.org>
3909 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
3910 Suggested by Paul Eggert.
3912 2006-11-08 Jim Meyering <jim@meyering.net>
3914 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
3915 It's already included if !_LIBC.
3916 (fts_safe_changedir): Add a comment.
3918 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
3920 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
3921 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
3924 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
3925 definitions up, to avoid colliding with change below.
3926 (static_inline) [HAVE_INLINE]: New macro.
3927 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
3928 Provide extern decls when !HAVE_INLINE. Do not define unless
3929 static_inline is defined, either by us or by xmalloc.c. Use
3930 static_inline rather than static inline.
3931 (XCALLOC): Optimize sizeof(T) = 1 case.
3932 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
3934 2006-11-07 Bruno Haible <bruno@clisp.org>
3936 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
3937 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
3939 * modules/xalloc (Files): Add m4/inline.m4.
3941 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3944 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
3945 (Miscellanous Notes): ...from this.
3947 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
3949 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3950 Mention that offsetof should be used instead of sizeof.
3953 2006-11-07 Bruno Haible <bruno@clisp.org>
3955 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
3957 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
3959 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
3960 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
3961 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
3962 (gl_tree_add_before, gl_tree_add_after):
3963 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
3964 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
3965 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3966 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
3967 (gl_linked_add_after, gl_linked_add_at): Likewise.
3968 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
3969 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
3970 (gl_tree_add_before, gl_tree_add_after): Likewise.
3971 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
3972 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
3973 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3975 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3977 * lib/gl_oset.h: Use C comment style, not C++ comment style.
3979 2006-11-06 Bruno Haible <bruno@clisp.org>
3981 * m4/inline.m4: New file.
3982 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
3983 * modules/list (Files): Add m4/inline.m4.
3984 * modules/oset (Files): Likewise.
3986 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
3988 * lib/idcache.c: Include <stddef.h>, for offsetof.
3989 (struct userid.name): Change from char * to a flexible array member.
3991 * modules/idcache (Depends-on): Add flexmember.
3993 * MODULES.html.sh (Core language properties): New module flexmember.
3994 * modules/flexmember, m4/flexmember.m4: New files.
3996 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
3997 inline functions that are identical with the old xnmalloc_inline,
3998 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
3999 that we can avoid some unnecessary integer multiplications and
4000 divisions in the common case where the element size is known at
4002 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
4004 (xnboundedmalloc): Remove.
4005 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
4006 arguments, for consistency with rest of this header.
4007 (xcharalloc): Rewrite using XNMALLOC.
4008 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
4009 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
4010 versions have been moved to lib/xalloc.h and renamed to be the
4011 non-*_inline versions.
4012 (xmalloc, xrealloc): Implement without reference to the xnmalloc
4013 and xnrealloc functions, since those functions are now inline and
4015 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
4016 renaming described above.
4017 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
4018 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
4019 captures the dependency in AC_C_INLINE.
4021 New module canonicalize-lgpl, proposed by Charles Wilson in
4022 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
4023 with a few small changes afterwards.
4024 * MODULES.html.sh (File system functions): New module
4026 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
4027 and canonicalize_file_name.
4028 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
4029 * modules/canonicalize-lgpl: New files.
4031 2006-11-05 Bruno Haible <bruno@clisp.org>
4033 * gnulib-tool (func_import, func_create_testdir): Create directories
4034 also for files in subdirectories of lib/.
4036 2006-11-05 Bruno Haible <bruno@clisp.org>
4038 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
4041 2006-11-03 Bruno Haible <bruno@clisp.org>
4043 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
4044 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
4045 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
4046 (xnboundedmalloc): New inline function.
4047 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
4048 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
4050 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
4052 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
4053 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
4054 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
4056 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4057 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
4059 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
4060 gl_tree_add_after): Use XMALLOC instead of xmalloc.
4061 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
4063 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
4064 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
4065 gl_tree_add_after): Use XMALLOC instead of xmalloc.
4066 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
4067 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
4068 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
4069 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
4071 2006-11-03 Bruno Haible <bruno@clisp.org>
4073 * lib/c-ctype.h [C++]: Define functions without name mangling.
4074 * lib/fwriteerror.h [C++]: Likewise.
4075 * lib/gcd.h [C++]: Likewise.
4076 * lib/linebreak.h [C++]: Likewise.
4078 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
4080 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
4081 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
4082 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
4083 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
4084 Check for functions and headers just once.
4085 Check for declaration of canonicalize_file_name.
4086 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
4088 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
4090 * gnulib-tool (func_import): Fix typo in actioncmd.
4092 2006-11-02 Bruno Haible <bruno@clisp.org>
4094 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
4095 newline sequence in the Makefile.am snippet as a space, like "make"
4097 Reported by Roger Persson <perrog@gmail.com>.
4099 2006-11-01 Bruno Haible <bruno@clisp.org>
4101 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
4102 already declared in <string.h>.
4103 * lib/strcase.h (strncasecmp): Don't declare it if yes.
4105 2006-11-01 Bruno Haible <bruno@clisp.org>
4107 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
4108 * lib/strcase.h: Include <string.h>.
4109 (strcasecmp): Define to rpl_strcasecmp here.
4111 2006-11-01 Bruno Haible <bruno@clisp.org>
4113 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
4115 2006-11-01 Eric Blake <ebb9@byu.net>
4117 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
4119 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
4121 2006-10-29 Bruno Haible <bruno@clisp.org>
4123 Make it compile in C++ mode.
4124 * lib/full-write.c (full_rw): Add a cast.
4126 2006-11-01 Bruno Haible <bruno@clisp.org>
4128 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
4130 Reported by Roger Persson <perrog@gmail.com>.
4132 2006-11-01 Eric Blake <ebb9@byu.net>
4134 * lib/getopt_.h: Fix comments.
4136 2006-10-31 Eric Blake <ebb9@byu.net>
4138 * modules/tmpdir (Depends-on): Add sys_stat.
4139 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
4140 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
4141 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
4142 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
4145 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
4147 Avoid some C++ diagnostics reported by Bruno Haible.
4148 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
4150 (quotearg_alloc): Use xcharalloc rather than xmalloc.
4151 (struct slotvec): Move to top level.
4152 (quotearg_n_options): Rewrite to avoid xmalloc.
4153 * lib/xalloc.h (xcharalloc): New function.
4154 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
4155 [defined __cplusplus]: Add function template that provides result
4156 type propagation. This part of the change is from Bruno Haible.
4158 2006-10-29 Bruno Haible <bruno@clisp.org>
4160 Make it compile in C++ mode.
4161 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
4162 * lib/strnlen1.c (strnlen1): Cast memchr result.
4163 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
4164 * lib/clean-temp.c (string_equals, string_hash): Add casts.
4165 (create_temp_dir): Rename local variable 'template'.
4166 (compile_csharp_using_sscli): Add cast.
4167 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
4168 * lib/findprog.c (find_in_path): Likewise.
4169 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
4170 * lib/wait-process.c (register_slave_subprocess): Likewise.
4172 2006-10-22 Bruno Haible <bruno@clisp.org>
4174 * modules/tsearch: New file.
4175 * lib/tsearch.h: New file.
4176 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
4177 * m4/tsearch.m4: New file.
4178 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
4180 2006-10-29 Eric Blake <ebb9@byu.net>
4182 * lib/arcfour.c: Assume config.h.
4183 * lib/arctwo.c: Likewise.
4184 * lib/base64.c: Likewise.
4185 * lib/check-version.c: Likewise.
4186 * lib/crc.c: Likewise.
4187 * lib/des.c: Likewise.
4188 * lib/gc-gnulib.c: Likewise.
4189 * lib/gc-libgcrypt.c: Likewise.
4190 * lib/gc-pbkdf2-sha1.c: Likewise.
4191 * lib/getaddrinfo.c: Likewise.
4192 * lib/getdelim.c: Likewise.
4193 * lib/getline.c: Likewise.
4194 * lib/hmac-md5.c: Likewise.
4195 * lib/hmac-sha1.c: Likewise.
4196 * lib/iconvme.c: Likewise.
4197 * lib/md2.c: Likewise.
4198 * lib/md4.c: Likewise.
4199 * lib/memxor.c: Likewise.
4200 * lib/read-file.c: Likewise.
4201 * lib/readline.c: Likewise.
4202 * lib/rijndael-alg-fst.c: Likewise.
4203 * lib/rijndael-api-fst.c: Likewise.
4204 * lib/xgetdomainname.c: Likewise.
4206 2006-10-28 Eric Blake <ebb9@byu.net>
4208 * lib/xstrndup.c: Assume config.h.
4210 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
4212 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
4213 stat-macros.h is now for our own macros, whereas stat_h is for
4214 macros in the <sys/stat.h> name space.
4215 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
4216 (STAT_MACROS_H): Remove.
4217 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
4218 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
4219 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
4220 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
4221 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
4222 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
4223 Move these macros to ...
4224 * lib/stat_.h: here. Don't include stat-macros.h.
4225 * lib/canonicalize.c: Don't include stat-macros.h.
4226 * lib/chown.c: Likewise.
4227 * lib/euidaccess.c: Likewise.
4228 * lib/file-type.c: Likewise.
4229 * lib/filemode.c: Likewise.
4230 * lib/glob.c: Likewise.
4231 * lib/isapipe.c: Likewise.
4232 * lib/lchown.c: Likewise.
4233 * lib/lstat.c: Likewise.
4234 * lib/mkdir-p.c: Likewise.
4235 * lib/rmdir.c: Likewise.
4236 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
4237 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
4238 unless mkdir isn't declared, to speed up 'configure'.
4239 Always create sys/stat.h, since it's unlikely any real sys/stat.h
4240 would define all the S_* symbols.
4241 * modules/canonicalize (Depends-on):
4242 Depend on sys_stat, not stat-macros.
4243 * modules/chown: Likewise.
4244 * modules/euidaccess: Likewise.
4245 * modules/filemode: Likewise.
4246 * modules/file-type: Likewise.
4247 * modules/glob: Likewise.
4248 * modules/isapipe: Likewise.
4249 * modules/lchown: Likewise.
4250 * modules/lstat: Likewise.
4251 * modules/mkancesdirs: Likewise.
4252 * modules/rmdir: Likewise.
4253 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
4254 * modules/modechange: Likewise.
4255 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
4256 (configure.ac): Remove gl_STAT_MACROS.
4257 * modules/sys_stat (Depends-on): Remove stat-macros.
4259 2006-10-27 Bruno Haible <bruno@clisp.org>
4261 * m4/signed.m4: Remove file.
4262 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
4264 * modules/vasnprintf (Files): Remove m4/signed.m4.
4266 2006-10-27 Bruno Haible <bruno@clisp.org>
4268 Update to GNU gettext 0.16.
4269 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
4270 m4/inttypes-h.m4, m4/signed.m4.
4271 * m4/gettext.m4: Update to GNU gettext 0.16.
4272 * m4/intl.m4: New file, from GNU gettext.
4273 * m4/intldir.m4: New file, from GNU gettext.
4274 * config/srclist.txt: Update
4276 2006-10-27 Eric Blake <ebb9@byu.net>
4278 * MODULES.html.sh: Document tempname.
4279 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
4281 (Files): Move lib/tempname.c...
4282 * modules/tempname: ...to this new module.
4283 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
4284 (gl_PREREQ_TEMPNAME): Move...
4285 * m4/tempname.m4: ...to this new file.
4286 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
4287 * modules/sys_stat (Depends-on): Add stat-macros.
4288 * lib/stat_.h (includes): Pick up stat macros.
4289 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
4290 if stat macros are broken.
4291 * lib/tempname.c (includes): No need to include "stat-macros.h".
4292 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
4293 (direxists, __path_search) [!_LIBC]: Don't compile these in
4294 gnulib; the tmpdir module covers that.
4295 * lib/tempname.h: New file.
4297 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
4299 * COPYING: Explain how gnulib-tool converts licence headers.
4300 Almost all wording by Eric Blake.
4302 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
4304 * lib/mbchar.h (is_basic_table): Make read-only.
4305 * lib/mbchar.c (is_basic_table): Likewise.
4306 Reported by John Darrington.
4308 2006-10-25 Bruno Haible <bruno@clisp.org>
4310 * lib/progname.h (set_program_name): Undefine before defining.
4312 2006-10-25 Bruno Haible <bruno@clisp.org>
4314 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
4315 false for non-gcc C++ compilers.
4316 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4318 2006-10-24 Bruno Haible <bruno@clisp.org>
4320 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
4321 iconv implementations like Irix iconv.
4323 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4325 * modules/vararrays: New file.
4326 * m4/vararrays.m4: New file, taken from diffutils.
4327 * MODULES.html.sh: New module vararrays.
4329 2006-10-24 Karl Berry <karl@gnu.org>
4331 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
4332 Don't call GNU Unix.
4334 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4336 * users.txt: Add Libtool.
4340 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4342 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
4343 to gnulib's policy of including config.h unconditionally.
4345 2006-10-24 Bruno Haible <bruno@clisp.org>
4347 * modules/wcwidth (Files): Add m4/wint_t.m4.
4348 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
4349 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
4351 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
4353 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
4354 to pacify GCC with some -W flags enabled. Problem reported by
4357 2006-10-24 Jim Meyering <jim@meyering.net>
4359 * MODULES.html.sh: Remove uinttostr. It's not a module.
4360 Reported by Karl Berry.
4362 2006-10-23 Bruno Haible <bruno@clisp.org>
4364 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
4366 2006-10-24 Bruno Haible <bruno@clisp.org>
4368 * lib/gl_list.h: Use C comment style, not C++ comment style.
4370 2006-10-23 Eric Blake <ebb9@byu.net>
4372 * lib/getaddrinfo.c (includes): Add missing include.
4374 2006-10-23 Bruno Haible <bruno@clisp.org>
4375 Paul Eggert <eggert@cs.ucla.edu>
4377 Ability to rename obstack_free.
4378 * lib/obstack.h (__obstack_free): New macro. Declare instead of
4380 (obstack_free): Invoke the __obstack_free macro.
4381 * lib/obstack.c (obstack_free): Use __obstack_free macro.
4383 2006-10-23 Bruno Haible <bruno@clisp.org>
4384 Paul Eggert <eggert@cs.ucla.edu>
4386 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
4387 __argc, __argv from the declaration. (They are defined as macros on
4390 2006-10-22 Bruno Haible <bruno@clisp.org>
4392 * doc/gnulib-intro.texi: New file.
4393 * doc/gnulib.texi: Include it.
4395 2006-10-21 Bruno Haible <bruno@clisp.org>
4397 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
4398 "Introduction", "Miscellanous Notes", "Particular Modules".
4400 2006-10-21 Bruno Haible <bruno@clisp.org>
4402 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4403 Change mostlyclean-local rule to avoid sh syntax error from bash
4404 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
4406 2006-10-23 Jim Meyering <jim@meyering.net>
4408 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
4409 in place of snprintf.
4411 * modules/inttostr (Files): Add lib/uinttostr.c.
4412 * lib/uinttostr.c (inttostr): New file/function.
4413 * lib/inttostr.h (uinttostr): Declare.
4414 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
4415 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
4417 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
4419 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
4421 * lib/canonicalize.c (ELOOP): Define if not already defined.
4422 Problem reported by Bruno Haible in
4423 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
4425 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
4427 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
4428 Problem reported by Perry Smith and Ville Laurikari.
4430 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
4433 2006-10-19 Bruno Haible <bruno@clisp.org>
4435 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
4438 2006-10-19 Bruno Haible <bruno@clisp.org>
4440 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
4443 2006-10-19 Bruno Haible <bruno@clisp.org>
4445 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
4447 2006-10-19 Bruno Haible <bruno@clisp.org>
4449 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
4452 2006-10-19 Bruno Haible <bruno@clisp.org>
4454 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
4457 2006-10-19 Bruno Haible <bruno@clisp.org>
4459 * gnulib-tool (func_create_testdir): Don't include ftruncate and
4460 mountlist by default.
4462 2006-10-16 Bruno Haible <bruno@clisp.org>
4464 * lib/c-strstr.c: Include c-strstr.h.
4466 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
4468 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
4471 2006-10-18 Bruno Haible <bruno@clisp.org>
4473 * lib/lock.h [C++]: Wrap definitions in extern "C".
4475 2006-10-18 Bruno Haible <bruno@clisp.org>
4477 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
4480 2006-10-18 Bruno Haible <bruno@clisp.org>
4482 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
4484 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
4486 * lib/xstrtol.h: Include gettext.h.
4487 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
4488 Problem reported by Eric Blake.
4489 * modules/xstrtol (Depends-on): Add gettext-h.
4491 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
4493 * lib/strftime.c (advance): New macro.
4494 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
4495 incomplete type, so you can't add 0 to it. Problem and patch
4496 reported by Eelco Dolstra for dietlibc.
4498 2006-10-18 Jim Meyering <jim@meyering.net>
4500 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
4501 type for a local, and rename it: s/up/user_proc/.
4503 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
4505 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
4506 READ_UTMP_USER_PROCESS.
4507 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
4509 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
4511 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
4512 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
4514 2006-10-17 Eric Blake <ebb9@byu.net>
4516 * lib/sigprocmask.c (sigprocmask): Fix typo.
4518 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
4520 * modules/clean-temp (Makefile.am): Don't add to make output...
4521 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
4524 2006-10-17 Bruno Haible <bruno@clisp.org>
4526 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
4527 differently if DEFAULT_TEXT_DOMAIN is set.
4529 2006-10-16 Bruno Haible <bruno@clisp.org>
4531 * lib/clean-temp.c: Include fwriteerror.h.
4533 2006-10-16 Bruno Haible <bruno@clisp.org>
4535 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
4537 2006-10-16 Bruno Haible <bruno@clisp.org>
4539 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
4540 * lib/sigprocmask.h: Include <sys/types.h>.
4541 (sigset_t): Use the system's definition if present.
4543 2006-10-17 Eric Blake <ebb9@byu.net>
4545 * lib/xvasprintf.c (includes): Assume config.h.
4546 * lib/xasprintf.c (includes): Likewise.
4548 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
4550 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
4551 at least as wide as intmax_t.
4553 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
4555 (Imported from Automake.)
4556 * build-aux/gnupload: Update to version 1.1 of directive file.
4558 2006-10-16 Eric Blake <ebb9@byu.net>
4560 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
4561 match Automake 1.10a.
4563 2006-10-14 Bruno Haible <bruno@clisp.org>
4565 * modules/sigprocmask: New file.
4566 * lib/sigprocmask.h: New file.
4567 * lib/sigprocmask.c: New file.
4568 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
4569 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
4570 request sigprocmask.o.
4571 (gl_PREREQ_SIGPROCMASK): New macro.
4572 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
4573 (Depends-on): Add sigprocmask.
4574 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
4575 gt_SIGNALBLOCKING. Test for 'raise' only once.
4576 * lib/fatal-signal.c: Include sigprocmask.h.
4577 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
4578 unblock_fatal_signals): Define always.
4579 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4582 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
4585 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
4586 which incorrectly sets the mode of an existing destination
4587 directory. In some cases the unpatched install-sh could do the
4588 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
4589 system. We hope this is rare in practice, but it's clearly worth
4590 fixing. Problem reported by Alex Unleashed in
4591 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
4592 Also, don't bother to check for -m bugs unless we're using -m;
4593 suggested by Stepan Kasal.
4595 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4598 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
4599 `-c' flag, so they appear at the same position as in %FASTDEP%
4600 mode in depend2.am. Fixes build failure for FreeBSD's c89,
4601 which ignores unknown options only after the first non-option.
4602 Bug report against M4 by Nelson H. F. Beebe.
4604 2006-10-13 Jim Meyering <jim@meyering.net>
4606 Fix a bug in yesterday's change.
4607 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
4608 p->fts_statp->st_dev would be used uninitialized.
4609 Ensures that we always call fts_stat on the very first entry.
4610 Miklos Szeredi reported that find -xdev stopped working.
4612 2006-10-12 Bruno Haible <bruno@clisp.org>
4614 * gnulib-tool (func_get_automake_snippet): Append an automatically
4615 computed EXTRA_DIST augmentation.
4616 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
4617 * modules/alloca-opt (Makefile.am): Likewise.
4618 * modules/allocsa (Makefile.am): Likewise.
4619 * modules/arcfour (Makefile.am): Likewise.
4620 * modules/arctwo (Makefile.am): Likewise.
4621 * modules/argmatch (Makefile.am): Likewise.
4622 * modules/argz (Makefile.am): Likewise.
4623 * modules/atexit (Makefile.am): Likewise.
4624 * modules/backupfile (Makefile.am): Likewise.
4625 * modules/byteswap (Makefile.am): Likewise.
4626 * modules/c-strtod (Makefile.am): Likewise.
4627 * modules/c-strtold (Makefile.am): Likewise.
4628 * modules/calloc (Makefile.am): Likewise.
4629 * modules/canon-host (Makefile.am): Likewise.
4630 * modules/canonicalize (Makefile.am): Likewise.
4631 * modules/chdir-long (Makefile.am): Likewise.
4632 * modules/chdir-safer (Makefile.am): Likewise.
4633 * modules/check-version (Makefile.am): Likewise.
4634 * modules/chown (Makefile.am): Likewise.
4635 * modules/cloexec (Makefile.am): Likewise.
4636 * modules/close-stream (Makefile.am): Likewise.
4637 * modules/closeout (Makefile.am): Likewise.
4638 * modules/crc (Makefile.am): Likewise.
4639 * modules/csharpexec (Makefile.am): Likewise.
4640 * modules/cycle-check (Makefile.am): Likewise.
4641 * modules/des (Makefile.am): Likewise.
4642 * modules/dev-ino (Makefile.am): Likewise.
4643 * modules/dirfd (Makefile.am): Likewise.
4644 * modules/dirname (Makefile.am): Likewise.
4645 * modules/dup2 (Makefile.am): Likewise.
4646 * modules/eealloc (Makefile.am): Likewise.
4647 * modules/error (Makefile.am): Likewise.
4648 * modules/euidaccess (Makefile.am): Likewise.
4649 * modules/exclude (Makefile.am): Likewise.
4650 * modules/exitfail (Makefile.am): Likewise.
4651 * modules/fcntl-safer (Makefile.am): Likewise.
4652 * modules/fcntl (Makefile.am): Likewise.
4653 * modules/file-type (Makefile.am): Likewise.
4654 * modules/fileblocks (Makefile.am): Likewise.
4655 * modules/filemode (Makefile.am): Likewise.
4656 * modules/filenamecat (Makefile.am): Likewise.
4657 * modules/fnmatch (Makefile.am): Likewise.
4658 * modules/fopen-safer (Makefile.am): Likewise.
4659 * modules/fpending (Makefile.am): Likewise.
4660 * modules/fprintftime (Makefile.am): Likewise.
4661 * modules/free (Makefile.am): Likewise.
4662 * modules/fsusage (Makefile.am): Likewise.
4663 * modules/ftruncate (Makefile.am): Likewise.
4664 * modules/fts (Makefile.am): Likewise.
4665 * modules/gc-arcfour (Makefile.am): Likewise.
4666 * modules/gc-des (Makefile.am): Likewise.
4667 * modules/gc-hmac-md5 (Makefile.am): Likewise.
4668 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
4669 * modules/gc-md4 (Makefile.am): Likewise.
4670 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
4671 * modules/gc-sha1 (Makefile.am): Likewise.
4672 * modules/gc (Makefile.am): Likewise.
4673 * modules/getaddrinfo (Makefile.am): Likewise.
4674 * modules/getcwd (Makefile.am): Likewise.
4675 * modules/getdelim (Makefile.am): Likewise.
4676 * modules/getdomainname (Makefile.am): Likewise.
4677 * modules/getgroups (Makefile.am): Likewise.
4678 * modules/gethostname (Makefile.am): Likewise.
4679 * modules/gethrxtime (Makefile.am): Likewise.
4680 * modules/getline (Makefile.am): Likewise.
4681 * modules/getloadavg (Makefile.am): Likewise.
4682 * modules/getlogin_r (Makefile.am): Likewise.
4683 * modules/getndelim2 (Makefile.am): Likewise.
4684 * modules/getopt (Makefile.am): Likewise.
4685 * modules/getpagesize (Makefile.am): Likewise.
4686 * modules/getpass-gnu (Makefile.am): Likewise.
4687 * modules/getpass (Makefile.am): Likewise.
4688 * modules/getsubopt (Makefile.am): Likewise.
4689 * modules/gettime (Makefile.am): Likewise.
4690 * modules/gettimeofday (Makefile.am): Likewise.
4691 * modules/getugroups (Makefile.am): Likewise.
4692 * modules/getusershell (Makefile.am): Likewise.
4693 * modules/glob (Makefile.am): Likewise.
4694 * modules/group-member (Makefile.am): Likewise.
4695 * modules/hard-locale (Makefile.am): Likewise.
4696 * modules/hash (Makefile.am): Likewise.
4697 * modules/hmac-md5 (Makefile.am): Likewise.
4698 * modules/hmac-sha1 (Makefile.am): Likewise.
4699 * modules/human (Makefile.am): Likewise.
4700 * modules/idcache (Makefile.am): Likewise.
4701 * modules/imaxabs (Makefile.am): Likewise.
4702 * modules/imaxdiv (Makefile.am): Likewise.
4703 * modules/inet_ntop (Makefile.am): Likewise.
4704 * modules/inet_pton (Makefile.am): Likewise.
4705 * modules/intprops (Makefile.am): Likewise.
4706 * modules/inttostr (Makefile.am): Likewise.
4707 * modules/inttypes (Makefile.am): Likewise.
4708 * modules/isapipe (Makefile.am): Likewise.
4709 * modules/javaversion (Makefile.am): Likewise.
4710 * modules/lchmod (Makefile.am): Likewise.
4711 * modules/lchown (Makefile.am): Likewise.
4712 * modules/localcharset (Makefile.am): Likewise.
4713 * modules/long-options (Makefile.am): Likewise.
4714 * modules/lstat (Makefile.am): Likewise.
4715 * modules/malloc (Makefile.am): Likewise.
4716 * modules/mathl (Makefile.am): Likewise.
4717 * modules/mbchar (Makefile.am): Likewise.
4718 * modules/md2 (Makefile.am): Likewise.
4719 * modules/md4 (Makefile.am): Likewise.
4720 * modules/md5 (Makefile.am): Likewise.
4721 * modules/memcasecmp (Makefile.am): Likewise.
4722 * modules/memchr (Makefile.am): Likewise.
4723 * modules/memcmp (Makefile.am): Likewise.
4724 * modules/memcoll (Makefile.am): Likewise.
4725 * modules/memcpy (Makefile.am): Likewise.
4726 * modules/memmem (Makefile.am): Likewise.
4727 * modules/memmove (Makefile.am): Likewise.
4728 * modules/mempcpy (Makefile.am): Likewise.
4729 * modules/memrchr (Makefile.am): Likewise.
4730 * modules/memset (Makefile.am): Likewise.
4731 * modules/memxor (Makefile.am): Likewise.
4732 * modules/mkancesdirs (Makefile.am): Likewise.
4733 * modules/mkdir-p (Makefile.am): Likewise.
4734 * modules/mkdir (Makefile.am): Likewise.
4735 * modules/mkdtemp (Makefile.am): Likewise.
4736 * modules/mkstemp (Makefile.am): Likewise.
4737 * modules/mktime (Makefile.am): Likewise.
4738 * modules/modechange (Makefile.am): Likewise.
4739 * modules/mountlist (Makefile.am): Likewise.
4740 * modules/nanosleep (Makefile.am): Likewise.
4741 * modules/obstack (Makefile.am): Likewise.
4742 * modules/openat (Makefile.am): Likewise.
4743 * modules/pagealign_alloc (Makefile.am): Likewise.
4744 * modules/pathmax (Makefile.am): Likewise.
4745 * modules/physmem (Makefile.am): Likewise.
4746 * modules/poll (Makefile.am): Likewise.
4747 * modules/posixtm (Makefile.am): Likewise.
4748 * modules/posixver (Makefile.am): Likewise.
4749 * modules/putenv (Makefile.am): Likewise.
4750 * modules/quote (Makefile.am): Likewise.
4751 * modules/quotearg (Makefile.am): Likewise.
4752 * modules/raise (Makefile.am): Likewise.
4753 * modules/read-file (Makefile.am): Likewise.
4754 * modules/readline (Makefile.am): Likewise.
4755 * modules/readlink (Makefile.am): Likewise.
4756 * modules/readtokens (Makefile.am): Likewise.
4757 * modules/readutmp (Makefile.am): Likewise.
4758 * modules/realloc (Makefile.am): Likewise.
4759 * modules/regex (Makefile.am): Likewise.
4760 * modules/rename-dest-slash (Makefile.am): Likewise.
4761 * modules/rename (Makefile.am): Likewise.
4762 * modules/rijndael (Makefile.am): Likewise.
4763 * modules/rmdir (Makefile.am): Likewise.
4764 * modules/rpmatch (Makefile.am): Likewise.
4765 * modules/safe-read (Makefile.am): Likewise.
4766 * modules/safe-write (Makefile.am): Likewise.
4767 * modules/same-inode (Makefile.am): Likewise.
4768 * modules/same (Makefile.am): Likewise.
4769 * modules/save-cwd (Makefile.am): Likewise.
4770 * modules/savedir (Makefile.am): Likewise.
4771 * modules/setenv (Makefile.am): Likewise.
4772 * modules/settime (Makefile.am): Likewise.
4773 * modules/sha1 (Makefile.am): Likewise.
4774 * modules/sig2str (Makefile.am): Likewise.
4775 * modules/snprintf (Makefile.am): Likewise.
4776 * modules/stat-macros (Makefile.am): Likewise.
4777 * modules/stat-time (Makefile.am): Likewise.
4778 * modules/stdbool (Makefile.am): Likewise.
4779 * modules/stdint (Makefile.am): Likewise.
4780 * modules/stdlib-safer (Makefile.am): Likewise.
4781 * modules/stpcpy (Makefile.am): Likewise.
4782 * modules/stpncpy (Makefile.am): Likewise.
4783 * modules/strcase (Makefile.am): Likewise.
4784 * modules/strcasestr (Makefile.am): Likewise.
4785 * modules/strchrnul (Makefile.am): Likewise.
4786 * modules/strcspn (Makefile.am): Likewise.
4787 * modules/strdup (Makefile.am): Likewise.
4788 * modules/strerror (Makefile.am): Likewise.
4789 * modules/strftime (Makefile.am): Likewise.
4790 * modules/strndup (Makefile.am): Likewise.
4791 * modules/strnlen (Makefile.am): Likewise.
4792 * modules/strpbrk (Makefile.am): Likewise.
4793 * modules/strsep (Makefile.am): Likewise.
4794 * modules/strstr (Makefile.am): Likewise.
4795 * modules/strtod (Makefile.am): Likewise.
4796 * modules/strtoimax (Makefile.am): Likewise.
4797 * modules/strtok_r (Makefile.am): Likewise.
4798 * modules/strtol (Makefile.am): Likewise.
4799 * modules/strtoll (Makefile.am): Likewise.
4800 * modules/strtoul (Makefile.am): Likewise.
4801 * modules/strtoull (Makefile.am): Likewise.
4802 * modules/strtoumax (Makefile.am): Likewise.
4803 * modules/strverscmp (Makefile.am): Likewise.
4804 * modules/sys_socket (Makefile.am): Likewise.
4805 * modules/sys_stat (Makefile.am): Likewise.
4806 * modules/sysexits (Makefile.am): Likewise.
4807 * modules/time_r (Makefile.am): Likewise.
4808 * modules/timegm (Makefile.am): Likewise.
4809 * modules/timespec (Makefile.am): Likewise.
4810 * modules/tmpfile-safer (Makefile.am): Likewise.
4811 * modules/trim (Makefile.am): Likewise.
4812 * modules/unistd-safer (Makefile.am): Likewise.
4813 * modules/unlinkdir (Makefile.am): Likewise.
4814 * modules/unlocked-io (Makefile.am): Likewise.
4815 * modules/userspec (Makefile.am): Likewise.
4816 * modules/utime (Makefile.am): Likewise.
4817 * modules/utimecmp (Makefile.am): Likewise.
4818 * modules/utimens (Makefile.am): Likewise.
4819 * modules/vasnprintf (Makefile.am): Likewise.
4820 * modules/vasprintf (Makefile.am): Likewise.
4821 * modules/vsnprintf (Makefile.am): Likewise.
4822 * modules/xalloc (Makefile.am): Likewise.
4823 * modules/xgetcwd (Makefile.am): Likewise.
4824 * modules/xnanosleep (Makefile.am): Likewise.
4825 * modules/xreadlink (Makefile.am): Likewise.
4826 * modules/xstrtod (Makefile.am): Likewise.
4827 * modules/xstrtol (Makefile.am): Likewise.
4828 * modules/xstrtold (Makefile.am): Likewise.
4829 * modules/yesno (Makefile.am): Likewise.
4830 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
4832 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
4834 * modules/error (Makefile.am): Distribute files through
4835 EXTRA_DIST, not lib_SOURCES.
4837 2006-10-12 Eric Blake <ebb9@byu.net>
4839 * modules/error (Makefile.am): Distribute files in /lib.
4840 * modules/obstack (Makefile.am): Likewise.
4842 2006-10-12 Bruno Haible <bruno@clisp.org>
4844 * modules/acl (Makefile.am): Distribute all files in lib/ through
4846 * modules/arcfour (Makefile.am): Likewise.
4847 * modules/arctwo (Makefile.am): Likewise.
4848 * modules/argmatch (Makefile.am): Likewise.
4849 * modules/argz (Makefile.am): Likewise.
4850 * modules/atexit (Makefile.am): Likewise.
4851 * modules/backupfile (Makefile.am): Likewise.
4852 * modules/c-strtod (Makefile.am): Likewise.
4853 * modules/c-strtold (Makefile.am): Likewise.
4854 * modules/calloc (Makefile.am): Likewise.
4855 * modules/canon-host (Makefile.am): Likewise.
4856 * modules/canonicalize (Makefile.am): Likewise.
4857 * modules/chdir-long (Makefile.am): Likewise.
4858 * modules/chdir-safer (Makefile.am): Likewise.
4859 * modules/check-version (Makefile.am): Likewise.
4860 * modules/chown (Makefile.am): Likewise.
4861 * modules/cloexec (Makefile.am): Likewise.
4862 * modules/close-stream (Makefile.am): Likewise.
4863 * modules/closeout (Makefile.am): Likewise.
4864 * modules/crc (Makefile.am): Likewise.
4865 * modules/cycle-check (Makefile.am): Likewise.
4866 * modules/des (Makefile.am): Likewise.
4867 * modules/dirfd (Makefile.am): Likewise.
4868 * modules/dirname (Makefile.am): Likewise.
4869 * modules/dup2 (Makefile.am): Likewise.
4870 * modules/euidaccess (Makefile.am): Likewise.
4871 * modules/exclude (Makefile.am): Likewise.
4872 * modules/exitfail (Makefile.am): Likewise.
4873 * modules/fcntl-safer (Makefile.am): Likewise.
4874 * modules/file-type (Makefile.am): Likewise.
4875 * modules/fileblocks (Makefile.am): Likewise.
4876 * modules/filemode (Makefile.am): Likewise.
4877 * modules/filenamecat (Makefile.am): Likewise.
4878 * modules/fnmatch (Makefile.am): Likewise.
4879 * modules/fopen-safer (Makefile.am): Likewise.
4880 * modules/fpending (Makefile.am): Likewise.
4881 * modules/fprintftime (Makefile.am): Likewise.
4882 * modules/free (Makefile.am): Likewise.
4883 * modules/fsusage (Makefile.am): Likewise.
4884 * modules/ftruncate (Makefile.am): Likewise.
4885 * modules/fts (Makefile.am): Likewise.
4886 * modules/gc (Makefile.am): Likewise.
4887 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
4888 * modules/getaddrinfo (Makefile.am): Likewise.
4889 * modules/getcwd (Makefile.am): Likewise.
4890 * modules/getdelim (Makefile.am): Likewise.
4891 * modules/getdomainname (Makefile.am): Likewise.
4892 * modules/getgroups (Makefile.am): Likewise.
4893 * modules/gethostname (Makefile.am): Likewise.
4894 * modules/gethrxtime (Makefile.am): Likewise.
4895 * modules/getline (Makefile.am): Likewise.
4896 * modules/getloadavg (Makefile.am): Likewise.
4897 * modules/getlogin_r (Makefile.am): Likewise.
4898 * modules/getopt (Makefile.am): Likewise.
4899 * modules/getpass (Makefile.am): Likewise.
4900 * modules/getpass-gnu (Makefile.am): Likewise.
4901 * modules/getsubopt (Makefile.am): Likewise.
4902 * modules/gettime (Makefile.am): Likewise.
4903 * modules/gettimeofday (Makefile.am): Likewise.
4904 * modules/getugroups (Makefile.am): Likewise.
4905 * modules/getusershell (Makefile.am): Likewise.
4906 * modules/glob (Makefile.am): Likewise.
4907 * modules/group-member (Makefile.am): Likewise.
4908 * modules/hard-locale (Makefile.am): Likewise.
4909 * modules/hash (Makefile.am): Likewise.
4910 * modules/hmac-md5 (Makefile.am): Likewise.
4911 * modules/hmac-sha1 (Makefile.am): Likewise.
4912 * modules/human (Makefile.am): Likewise.
4913 * modules/idcache (Makefile.am): Likewise.
4914 * modules/imaxabs (Makefile.am): Likewise.
4915 * modules/imaxdiv (Makefile.am): Likewise.
4916 * modules/inet_ntop (Makefile.am): Likewise.
4917 * modules/inet_pton (Makefile.am): Likewise.
4918 * modules/inttostr (Makefile.am): Likewise.
4919 * modules/isapipe (Makefile.am): Likewise.
4920 * modules/lchown (Makefile.am): Likewise.
4921 * modules/long-options (Makefile.am): Likewise.
4922 * modules/lstat (Makefile.am): Likewise.
4923 * modules/malloc (Makefile.am): Likewise.
4924 * modules/mathl (Makefile.am): Likewise.
4925 * modules/mbchar (Makefile.am): Likewise.
4926 * modules/md2 (Makefile.am): Likewise.
4927 * modules/md4 (Makefile.am): Likewise.
4928 * modules/md5 (Makefile.am): Likewise.
4929 * modules/memcasecmp (Makefile.am): Likewise.
4930 * modules/memchr (Makefile.am): Likewise.
4931 * modules/memcmp (Makefile.am): Likewise.
4932 * modules/memcoll (Makefile.am): Likewise.
4933 * modules/memcpy (Makefile.am): Likewise.
4934 * modules/memmem (Makefile.am): Likewise.
4935 * modules/memmove (Makefile.am): Likewise.
4936 * modules/mempcpy (Makefile.am): Likewise.
4937 * modules/memrchr (Makefile.am): Likewise.
4938 * modules/memset (Makefile.am): Likewise.
4939 * modules/memxor (Makefile.am): Likewise.
4940 * modules/mkancesdirs (Makefile.am): Likewise.
4941 * modules/mkdir (Makefile.am): Likewise.
4942 * modules/mkdir-p (Makefile.am): Likewise.
4943 * modules/mkdtemp (Makefile.am): Likewise.
4944 * modules/mkstemp (Makefile.am): Likewise.
4945 * modules/mktime (Makefile.am): Likewise.
4946 * modules/modechange (Makefile.am): Likewise.
4947 * modules/mountlist (Makefile.am): Likewise.
4948 * modules/nanosleep (Makefile.am): Likewise.
4949 * modules/openat (Makefile.am): Likewise.
4950 * modules/pagealign_alloc (Makefile.am): Likewise.
4951 * modules/physmem (Makefile.am): Likewise.
4952 * modules/poll (Makefile.am): Likewise.
4953 * modules/posixtm (Makefile.am): Likewise.
4954 * modules/posixver (Makefile.am): Likewise.
4955 * modules/putenv (Makefile.am): Likewise.
4956 * modules/quote (Makefile.am): Likewise.
4957 * modules/quotearg (Makefile.am): Likewise.
4958 * modules/raise (Makefile.am): Likewise.
4959 * modules/read-file (Makefile.am): Likewise.
4960 * modules/readline (Makefile.am): Likewise.
4961 * modules/readlink (Makefile.am): Likewise.
4962 * modules/readtokens (Makefile.am): Likewise.
4963 * modules/readutmp (Makefile.am): Likewise.
4964 * modules/realloc (Makefile.am): Likewise.
4965 * modules/regex (Makefile.am): Likewise.
4966 * modules/rename (Makefile.am): Likewise.
4967 * modules/rename-dest-slash (Makefile.am): Likewise.
4968 * modules/rijndael (Makefile.am): Likewise.
4969 * modules/rmdir (Makefile.am): Likewise.
4970 * modules/rpmatch (Makefile.am): Likewise.
4971 * modules/safe-read (Makefile.am): Likewise.
4972 * modules/safe-write (Makefile.am): Likewise.
4973 * modules/same (Makefile.am): Likewise.
4974 * modules/save-cwd (Makefile.am): Likewise.
4975 * modules/savedir (Makefile.am): Likewise.
4976 * modules/setenv (Makefile.am): Likewise.
4977 * modules/settime (Makefile.am): Likewise.
4978 * modules/sha1 (Makefile.am): Likewise.
4979 * modules/sig2str (Makefile.am): Likewise.
4980 * modules/snprintf (Makefile.am): Likewise.
4981 * modules/stdlib-safer (Makefile.am): Likewise.
4982 * modules/stpcpy (Makefile.am): Likewise.
4983 * modules/stpncpy (Makefile.am): Likewise.
4984 * modules/strcase (Makefile.am): Likewise.
4985 * modules/strcasestr (Makefile.am): Likewise.
4986 * modules/strchrnul (Makefile.am): Likewise.
4987 * modules/strcspn (Makefile.am): Likewise.
4988 * modules/strdup (Makefile.am): Likewise.
4989 * modules/strerror (Makefile.am): Likewise.
4990 * modules/strftime (Makefile.am): Likewise.
4991 * modules/strndup (Makefile.am): Likewise.
4992 * modules/strnlen (Makefile.am): Likewise.
4993 * modules/strpbrk (Makefile.am): Likewise.
4994 * modules/strsep (Makefile.am): Likewise.
4995 * modules/strstr (Makefile.am): Likewise.
4996 * modules/strtod (Makefile.am): Likewise.
4997 * modules/strtoimax (Makefile.am): Likewise.
4998 * modules/strtok_r (Makefile.am): Likewise.
4999 * modules/strtol (Makefile.am): Likewise.
5000 * modules/strtoll (Makefile.am): Likewise.
5001 * modules/strtoul (Makefile.am): Likewise.
5002 * modules/strtoull (Makefile.am): Likewise.
5003 * modules/strtoumax (Makefile.am): Likewise.
5004 * modules/strverscmp (Makefile.am): Likewise.
5005 * modules/time_r (Makefile.am): Likewise.
5006 * modules/timegm (Makefile.am): Likewise.
5007 * modules/tmpfile-safer (Makefile.am): Likewise.
5008 * modules/unistd-safer (Makefile.am): Likewise.
5009 * modules/unlinkdir (Makefile.am): Likewise.
5010 * modules/userspec (Makefile.am): Likewise.
5011 * modules/utime (Makefile.am): Likewise.
5012 * modules/utimecmp (Makefile.am): Likewise.
5013 * modules/utimens (Makefile.am): Likewise.
5014 * modules/vasnprintf (Makefile.am): Likewise.
5015 * modules/vasprintf (Makefile.am): Likewise.
5016 * modules/vsnprintf (Makefile.am): Likewise.
5017 * modules/xalloc (Makefile.am): Likewise.
5018 * modules/xgetcwd (Makefile.am): Likewise.
5019 * modules/xnanosleep (Makefile.am): Likewise.
5020 * modules/xreadlink (Makefile.am): Likewise.
5021 * modules/xstrtod (Makefile.am): Likewise.
5022 * modules/xstrtol (Makefile.am): Likewise.
5023 * modules/xstrtold (Makefile.am): Likewise.
5024 * modules/yesno (Makefile.am): Likewise.
5026 2006-10-12 Jim Meyering <jim@meyering.net>
5028 * m4/getloadavg.m4: Revert the change below.
5030 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
5031 lib/getloadavg.c using "ls -L", not "test -f". The latter would
5032 fail with a symlink, which is what coreutils' ./bootstrap now
5035 2006-10-12 Bruno Haible <bruno@clisp.org>
5037 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
5039 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
5040 MSVC and mingw explicitly.
5042 2006-10-11 Simon Josefsson <jas@extundo.com>
5043 Bruno Haible <bruno@clisp.org>
5045 Add support for multiple gnulib-tool invocations in the scope of a
5046 single configure.ac file.
5047 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
5048 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
5049 with the same contents as the _LIBADD variable.
5050 (func_emit_initmacro_start, func_emit_initmacro_end,
5051 func_emit_initmacro_done): New functions.
5052 (func_import, func_create_testdir): Invoke them. Allow the identifiers
5053 gl_LIBOBJS and gl_LTLIBOBJS.
5055 2006-10-11 Bruno Haible <bruno@clisp.org>
5057 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
5058 (func_create_testdir): Don't create po/Makefile.am, don't invoke
5059 autoreconf. Instead, invoke autopoint explicitly but move back the
5060 *.m4 files from gnulib.
5062 2006-10-11 Bruno Haible <bruno@clisp.org>
5064 * gnulib-tool (func_usage): Make module names after --create-testdir
5066 (func_create_testdir): If no module was specified, use nearly all
5069 2006-10-12 Jim Meyering <jim@meyering.net>
5071 Big performance improvement for fts-based tools that use FTS_NOSTAT.
5072 Avoid spurious inode-mismatch problems on non-POSIX file systems.
5073 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
5074 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
5075 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
5076 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
5077 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
5078 (fts_set_stat_required): New function.
5079 (fts_open): Defer the calls to fts_stat, if possible or requested.
5080 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
5081 into fts_stat itself.
5082 (fts_read): Perform any required (deferred) fts_stat call.
5083 (fts_build): Likewise, for the directory we're about to open and read.
5084 In the readdir loop, carefully decide whether each entry will require
5085 an eventual call to fts_stat, using dirent.d_type info if available.
5086 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
5087 a command line argument into this function. Update all callers.
5088 Map a return value of FTS_DOT to FTS_D for a command line argument.
5089 * modules/fts (Depends-on): Add d-type. Alphabetize.
5090 Thanks to Miklos Szeredi for his tenacity and for the initial
5091 bug report about "find" failing on a FUSE-based file system.
5093 * lib/fts.c (fts_open): Use consistent indentation.
5095 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
5097 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
5098 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
5099 reported by Jim Meyering. All uses of cache variables renamed
5100 to match Autoconf's.
5101 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
5104 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
5105 Fix misspelling in diagnostic.
5107 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5109 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
5110 defined. Problem reported by Matthew Woehlke.
5112 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
5113 Add support for Tandem NonStop R series.
5114 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
5117 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
5118 (has_trailing_slash): Omit size arg; all callers changed.
5119 Omit 'inline', since it doesn't help performance and we'd
5120 need to configure it.
5121 Don't count //, ///, etc. as having a trailing slash.
5122 As a side effect, this removes a C99ism reported by Matthew Woehlke.
5123 (rpl_rename_dest_slash): On failure, use rename's errno rather
5124 than (in some cases) an incorrect or junk errno.
5125 Simplify code by removing need to compute length; this does
5126 cause it to make two passes instead of one over the file name,
5129 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
5130 change, since Autoconf's version may no longer be appropriate now
5131 that we are using CVS Autoconf's version. Add support for Tandem.
5133 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
5134 Bruno Haible <bruno@clisp.org>
5136 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
5137 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
5138 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
5139 gl_AC_TYPE_LONG_LONG.
5141 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
5142 instead of HAVE_LONG_LONG.
5143 * lib/printf-args.c (printf_fetchargs): Likewise.
5144 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5145 * lib/vasnprintf.c (VASNPRINTF): Likewise.
5146 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5147 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
5148 gl_AC_TYPE_LONG_LONG.
5150 2006-10-11 Bruno Haible <bruno@clisp.org>
5152 * m4/longlong.m4: Add comments.
5153 * m4/ulonglong.m4: Likewise.
5155 2006-10-10 Bruno Haible <bruno@clisp.org>
5157 Make it possible to #define stpcpy, strdup to aliases.
5158 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
5159 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
5161 2006-10-10 Bruno Haible <bruno@clisp.org>
5163 Make it possible to #define gcd to an alias.
5164 * lib/gcd.c: Include config.h.
5166 2006-10-10 Bruno Haible <bruno@clisp.org>
5168 Make it possible to #define c_isascii to an alias.
5169 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
5170 defined. Undefine the macros before defining them, to avoid gcc
5172 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
5173 define NO_C_CTYPE_MACROS early.
5175 2006-10-10 Bruno Haible <bruno@clisp.org>
5177 Make it possible to #define set_program_name to an alias.
5178 * lib/progname.c: Don't undefine set_program_name; instead, undefine
5179 ENABLE_RELOCATABLE early.
5181 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
5183 Port to Tandem NSK OSS, which has 64-bit signed int but at most
5184 32-bit unsigned int. Problem reported by Matthew Woehlke in:
5185 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
5186 More generally, don't assume that 64-bit signed int is available
5187 if unsigned int is, and vice versa.
5188 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
5189 unsigned symbols, not on their signed counterparts.
5190 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
5191 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
5192 (UINT64_C, UINTMAX_C):
5194 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
5195 unsigned counterparts.
5196 (Have_long_long, Unsigned): New macros.
5197 (Int): Renamed from INT.
5198 (strtoimax): Use the new macros.
5199 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
5200 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
5201 * modules/inttypes (inttypes.h): Substitute
5202 HAVE_UNSIGNED_LONG_LONG_INT.
5203 * modules/stdint (stdint.h): Likewise.
5204 (Files): Add m4/ulonglong.m4.
5206 2006-10-10 Bruno Haible <bruno@clisp.org>
5208 Fix a gcc -Wshadow warning.
5209 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
5211 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
5212 gl_linked_indexof_from_to): Likewise.
5213 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
5215 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
5217 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
5218 Reported by Eric Blake.
5220 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
5222 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
5223 for NetBSD. Problem reported by Bruno Haible.
5225 2006-10-09 Jim Meyering <jim@meyering.net>
5227 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
5228 Patch from Bruno Haible.
5230 2006-10-09 Jim Meyering <jim@meyering.net>
5232 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
5233 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
5234 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
5236 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
5238 Don't include <config.h> twice; this doesn't work in some cases,
5239 e.g., when config.h has "#define intmax_t long long int" and
5240 we include <config.h>, <inttypes.h>, <config.h> in that order.
5241 Problem reported by Matthew Woehlke in:
5242 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
5243 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
5244 * lib/fts-cycle.c: Don't include config.h.
5245 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
5246 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
5247 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
5248 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
5250 * lib/xstrtoumax.c: Likewise.
5251 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
5252 __strtol and the like, so that this module is more like its siblings.
5253 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
5254 Remove; no longer needed now that we assume gnulib inttypes.h.
5256 2006-10-08 Bruno Haible <bruno@clisp.org>
5258 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
5261 2006-10-07 Jim Meyering <jim@meyering.net>
5263 * modules/inttypes (inttypes.h): Revert what seems to have been
5264 an inadvertent part of today's change: use "|", not "/" in the
5265 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
5267 2006-10-07 Bruno Haible <bruno@clisp.org>
5269 * modules/sublist: New file.
5271 2006-10-07 Bruno Haible <bruno@clisp.org>
5273 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
5274 * modules/argz (argz.h): Likewise.
5275 * modules/arpa_inet (arpa/inet.h): Likewise.
5276 * modules/byteswap (byteswap.h): Likewise.
5277 * modules/configmake (configmake.h): Likewise.
5278 * modules/fcntl (fcntl.h): Likewise.
5279 * modules/fnmatch (fnmatch.h): Likewise.
5280 * modules/getopt (getopt.h): Likewise.
5281 * modules/glob (glob.h): Likewise.
5282 * modules/inttypes (inttypes.h): Likewise.
5283 * modules/netinet_in (netinet/in.h): Likewise.
5284 * modules/poll (poll.h): Likewise.
5285 * modules/stdbool (stdbool.h): Likewise.
5286 * modules/stdint (stdint.h): Likewise.
5287 * modules/sys_select (sys/select.h): Likewise.
5288 * modules/sys_socket (sys/socket.h): Likewise.
5289 * modules/sys_stat (sys/stat.h): Likewise.
5290 * modules/sysexits (sysexits.h): Likewise.
5291 * modules/unistd (unistd.h): Likewise.
5292 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5293 Add a "DO NOT EDIT" comment to the generated file.
5294 (func_import): Likewise for gnulib-comp.m4.
5296 2006-10-07 Bruno Haible <bruno@clisp.org>
5298 * lib/gl_sublist.h: New file.
5299 * lib/gl_sublist.c: New file.
5301 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
5303 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
5304 name (relative to the original working directory) and the file
5305 name component (relative to the temporary working directory). All
5307 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
5308 * lib/mkdir-p.c (make_dir_parents): Likewise.
5309 * lib/mkdir-p.h (make_dir_parents): Likewise.
5311 2006-10-06 Eric Blake <ebb9@byu.net>
5313 Define several macros for use by the clean-temp module.
5314 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
5315 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
5316 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
5318 * lib/clean-temp.h (close_stream_temp): New declaration.
5319 * lib/clean-temp.c (includes): Pull in headers according to what
5320 other modules are in use.
5321 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
5323 2006-10-06 Bruno Haible <bruno@clisp.org>
5325 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
5326 instead of fopen, fwriteerror.
5328 2006-10-06 Bruno Haible <bruno@clisp.org>
5330 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
5331 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
5333 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
5334 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
5335 Return an error indicator.
5336 Suggested by Eric Blake.
5338 2006-10-06 Bruno Haible <bruno@clisp.org>
5340 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
5341 Reported by Eric Blake.
5343 2006-10-06 Bruno Haible <bruno@clisp.org>
5345 * modules/closeout (Description): Mention stderr too.
5347 2006-10-06 Bruno Haible <bruno@clisp.org>
5348 and Paul Eggert <eggert@cs.ucla.edu>
5350 * lib/closeout.c (close_stdout): Also close stderr.
5351 * lib/closeout.h: Update comment.
5353 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
5355 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
5356 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
5357 * lib/dirchownmod.c: Include lchown.h.
5358 * lib/lchown.c: Don't include files that lchown.h now includes.
5359 Don't declare chown, since lchown.h now does that.
5360 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
5361 (lchown): Define to rpl_chown if lchown is declared but
5362 does not exist. Declare using a prototype if lchown is not
5363 declared. Add a copyright notice.
5364 * lib/mkstemp.h: Include <unistd.h>.
5365 * lib/openat.c: Include lchown.h.
5367 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
5368 we now test for that separately.
5369 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
5370 rather than O_NOFOLLOW, when testing whether it's possible to
5371 avoid a race condition reliably.
5372 * lib/savewd.c (savewd_chdir): Likewise.
5374 Remove macros that are no longer needed now that stdint.h is
5376 * lib/fsusage.c (UINTMAX_MAX): Remove.
5377 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
5378 * lib/utimecmp.c (SIZE_MAX): Remove.
5380 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
5382 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
5383 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
5386 2006-10-05 Bruno Haible <bruno@clisp.org>
5388 * lib/gl_list.h (gl_sortedlist_search_from_to,
5389 gl_sortedlist_indexof_from_to): New declarations.
5390 (gl_list_implementation): New fields sortedlist_search_from_to,
5391 sortedlist_indexof_from_to.
5392 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
5394 * lib/gl_list.c (gl_sortedlist_search_from_to,
5395 gl_sortedlist_indexof_from_to): New functions.
5396 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
5398 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
5399 (gl_array_sortedlist_search_from_to): New function.
5400 (gl_array_list_implementation): Update.
5401 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
5403 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
5404 (gl_carray_sortedlist_search_from_to): New function.
5405 (gl_carray_list_implementation): Update.
5406 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
5407 gl_linked_sortedlist_indexof_from_to): New functions.
5408 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5409 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5410 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
5411 gl_tree_sortedlist_indexof_from_to): New functions.
5412 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5413 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5415 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5416 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
5419 2006-10-05 Bruno Haible <bruno@clisp.org>
5421 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
5422 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
5423 (struct gl_list_implementation): Add fields search_from_to,
5424 indexof_from_to. Remove fields search, indexof.
5425 (gl_list_search): Use the search_from_to method.
5426 (gl_list_search_from, gl_list_search_from_to): New functions.
5427 (gl_list_indexof): Use the indexof_from_to method.
5428 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
5429 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
5430 (gl_list_search_from, gl_list_search_from_to): New functions.
5431 (gl_list_indexof): Use the indexof_from_to method.
5432 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
5433 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
5434 gl_array_indexof. Add start_index, end_index arguments.
5435 (gl_array_search_from_to): Renamed from gl_array_search. Add
5436 start_index, end_index arguments.
5437 (gl_array_remove, gl_array_list_implementation): Update.
5438 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
5439 gl_carray_indexof. Add start_index, end_index arguments.
5440 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
5441 start_index, end_index arguments.
5442 (gl_carray_remove, gl_carray_list_implementation): Update.
5443 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
5444 gl_linked_search. Add start_index, end_index arguments.
5445 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
5446 start_index, end_index arguments.
5447 (gl_linked_remove): Update.
5448 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5449 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5450 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
5452 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
5453 gl_tree_search. Add start_index, end_index arguments.
5454 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
5455 start_index, end_index arguments.
5456 (gl_tree_remove): Update.
5457 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5458 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5459 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
5461 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
5462 gl_tree_search. Add start_index, end_index arguments.
5463 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
5464 start_index, end_index arguments.
5465 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5467 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5469 2006-10-05 Bruno Haible <bruno@clisp.org>
5471 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
5473 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5474 fwriteerror_temp): New declarations.
5475 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
5476 (descriptors): New variable.
5477 (cleanup): First, close the descriptors.
5478 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
5479 fclose_temp, fwriteerror_temp): New functions.
5481 2006-10-04 Jim Meyering <jim@meyering.net>
5483 * lib/fts.c (fts_open): Tiny comment change.
5485 2006-10-04 Bruno Haible <bruno@clisp.org>
5487 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
5488 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
5490 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
5491 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
5493 (gl_LOCK): Require gl_LOCK_BODY.
5495 2006-10-04 Bruno Haible <bruno@clisp.org>
5497 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
5498 (gl_oset_search_atleast): New declaration.
5499 (struct gl_oset_implementation): Add field 'search_atleast'.
5500 (gl_oset_search_atleast): New inline function.
5501 * lib/gl_oset.c (gl_oset_search_atleast): New function.
5502 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
5503 (gl_array_oset_implementation): Update.
5504 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
5505 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
5506 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
5508 2006-10-04 Bruno Haible <bruno@clisp.org>
5510 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
5512 2006-10-03 Bruno Haible <bruno@clisp.org>
5514 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
5515 from gl_avltreehash_list_implementation.
5517 2006-10-03 Bruno Haible <bruno@clisp.org>
5519 * lib/gl_oset.c (gl_oset_add): Fix return type.
5521 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
5523 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
5525 2006-10-02 Eric Blake <ebb9@byu.net>
5527 * modules/strnlen (Depends-on): Add extensions.
5529 2006-10-02 Eric Blake <ebb9@byu.net>
5531 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
5532 definition in 2.60+.
5534 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
5536 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
5539 2006-10-02 Bruno Haible <bruno@clisp.org>
5541 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
5542 to the AUTOMAKE_OPTIONS.
5543 Reported by Jim Meyering.
5545 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
5547 Work around bug in Solaris 10 /proc file system:
5548 /proc/self/fd/NNN/.. isn't the parent directory of
5549 the directory whose file descriptor is NNN. This needs to
5550 be worked around at run time, not compile time, since a
5551 program might be built on Solaris 8, where things work, and
5553 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
5554 to use the following interface instead:
5555 (OPENAT_BUFFER_SIZE): New macro.
5556 (openat_proc_name): New function.
5557 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
5558 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
5560 * lib/openat-proc.c: New file.
5561 * modules/openat (Files): Add lib/openat-proc.c.
5562 (Depends-on): Add same-inode, stdbool.
5563 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
5565 2006-09-29 Bruno Haible <bruno@clisp.org>
5567 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
5568 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
5569 argument. Set stdout_closed before testing for ferror, not after.
5570 (fwriteerror, fwriteerror_no_ebadf): New functions.
5572 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5574 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
5576 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
5578 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
5579 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
5581 2006-09-28 Jim Meyering <jim@meyering.net>
5583 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
5586 2006-09-28 Bruno Haible <bruno@clisp.org>
5588 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
5589 * modules/linkedhash-list (Depends-on): Likewise.
5590 * modules/rbtreehash-list (Depends-on): Likewise.
5592 2006-09-28 Bruno Haible <bruno@clisp.org>
5594 * lib/strndup.h: Simplify the redefinition of strndup.
5595 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
5596 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
5598 2006-09-28 Bruno Haible <bruno@clisp.org>
5600 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
5601 * lib/gl_linkedhash_list.c: Likewise.
5602 * lib/gl_rbtreehash_list.c: Likewise.
5604 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
5606 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
5609 * lib/__fpending.h: Don't include <stdio_ext.h> unless
5610 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
5611 it causes <stdio_ext.h> to cause a compile-time error.
5612 Problem reported by Nelson H. F. Beebe.
5613 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
5614 of HAVE_DECL___PENDING.
5616 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
5617 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
5620 2006-09-27 Jim Meyering <jim@meyering.net>
5622 This file could end up with a definition for a function
5623 named __strndup, rather than rpl_strndup on a system with
5624 incomplete weak_alias support.
5625 * lib/strndup.c (strndup): Rename from __strndup.
5626 Remove #defines that used to map __strndup to strndup.
5627 Don't use K&R prototypes.
5628 Remove LIBC-related code, since this file is not sync'd with glibc.
5629 * lib/strndup.h: Revamp, accordingly.
5630 * m4/strndup.m4: Modernize.
5632 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
5634 * modules/savewd (Depends-on): Add 'raise'.
5635 * lib/savewd.c: Include <signal.h>, for 'raise'.
5637 2006-09-26 Jim Meyering <jim@meyering.net>
5639 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
5640 when we detect Darwin 8.7.0's acl_get_file bug.
5641 Rearrange to perform the new (below) run-test while $LIBS
5642 contains any acl-related library. Set USE_ACL at the end.
5643 (gl_ACL_GET_FILE): New function.
5645 2006-09-26 Eric Blake <ebb9@byu.net>
5647 * lib/verror.c: Include <config.h> unconditionally.
5649 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
5651 * modules/clock-time (Maintainer): Add self.
5652 * modules/getlogin_r (Depends-on): Add extensions.
5654 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5656 * modules/clock-time: New module.
5657 * modules/nanosleep (Depends-on): Add clock-time.
5658 * modules/gethrxtime (Depends-on): Likewise.
5659 * modules/gettime (Depends-on): Likewise.
5660 * modules/settime (Depends-on): Likewise.
5662 * modules/fts-lgpl: Depend on openat.
5663 * modules/mkancesdirs: Depend on savewd.
5664 * modules/mkdir-p: Likewise.
5666 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5668 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
5670 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
5671 `gl_have_arbitrary_file_name_length_limit' to
5672 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
5673 actually works between configure runs.
5675 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5676 Bruno Haible <bruno@clisp.org>
5678 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
5680 2006-09-25 Jim Meyering <jim@meyering.net>
5682 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
5683 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
5685 2006-09-25 Eric Blake <ebb9@byu.net>
5687 * gnulib-tool (func_import, func_create_testdir): Fix typos in
5688 exec's in 2006-09-18 patch when shuffling fds.
5690 2006-09-25 Bruno Haible <bruno@clisp.org>
5692 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
5693 Reported by Jim Meyering.
5695 2006-09-24 Jim Meyering <jim@meyering.net>
5697 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
5698 compare a pointer against a literal "0". That caused failures with
5699 at least HP-UX's hpcc.
5701 2006-09-22 Simon Josefsson <jas@extundo.com>
5705 * modules/gc-hmac-sha1:
5706 * modules/gc-hmac-md5:
5708 * modules/gc-arcfour: Distribute more files.
5710 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5712 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
5713 (gl_linked_iterator_from_to): Initialize struct completely.
5714 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
5715 (gl_tree_iterator_from_to): Likewise
5716 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
5717 * lib/gl_array_list.c [lint] (gl_array_iterator)
5718 (gl_array_iterator_from_to): Likewise.
5719 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
5720 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
5721 (gl_carray_iterator_from_to): Likewise.
5723 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
5724 * lib/md4.c (md4_process_block): Remove unused variable.
5725 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
5726 parentheses for clarity.
5728 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5730 * modules/bison-i18n (Depends-on): Add gettext.
5732 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5734 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
5735 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
5736 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
5737 also add missing comma that caused broken test.
5738 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
5739 stdlib.h, for `abort'.
5740 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
5742 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
5743 include unistd.h if present, for `rmdir'.
5744 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
5746 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
5747 in the process include standard headers for prototypes.
5748 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
5749 gets declared on GNU/Linux.
5750 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
5751 unistd.h, for `rmdir'.
5752 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
5754 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
5756 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
5758 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
5760 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5762 * gnulib-tool (func_version): Create output all at once. This
5763 may help avoid triggering unnecessary SIGPIPEs, and at any
5764 rate it doesn't hurt.
5766 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5767 Bruno Haible <bruno@clisp.org>
5769 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
5770 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5771 * m4/signed.m4 (bh_C_SIGNED): Likewise.
5773 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
5774 (gl_FUNC_VASPRINTF): Invoke it.
5776 2006-09-22 Bruno Haible <bruno@clisp.org>
5778 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
5779 getloadavg.c as first argument.
5781 2006-09-22 Bruno Haible <bruno@clisp.org>
5783 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
5784 at the beginning of the gl_INIT macro.
5785 * modules/getloadavg (configure.ac): Pass $gl_source_base to
5788 2006-09-22 Bruno Haible <bruno@clisp.org>
5790 * gnulib-tool (func_create_megatestdir): Don't include the config-h
5792 Suggested by Ralf Wildenhues.
5794 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
5796 Import this patch from libc:
5798 2006-09-06 Jakub Jelinek <jakub@redhat.com>
5800 * lib/regex_internal.c (re_string_reconstruct): Handle
5801 offset < pstr->valid_raw_len && pstr->offsets_needed case.
5802 Ensure no bytes read before raw_mbs array. Pass a saved copy of
5803 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5804 re_string_context_at.
5806 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
5808 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
5809 gl_REGEX now does it for us.
5810 (gl_REGEX): Add test taken from
5811 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
5813 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
5814 Check that large offsets work. Modernize Autoconf usages.
5815 Prefer "yes" to mean a good thing rather than a bad.
5816 Don't put "#define mkstemp" in config.h, as this might interfere
5817 with standard system headers that "#define mkstemp mkstemp64".
5819 * modules/mkstemp (Depends-on): Add extensions, so that
5820 mkstemp is visible on some platforms.
5821 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
5822 (Include): Change to "mkstemp.h" from <stdlib.h>.
5823 (Files): Add mkstemp.h.
5825 * lib/mkstemp.h: New file, since some standard headers
5827 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
5828 Include "mkstemp.h".
5829 Make the _LIBC code resemble glibc original more,
5830 e.g., use K&R style.
5831 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
5832 (mkstemp): Remove, since mkstemp.h does this for us.
5833 * lib/stdlib--.h: Include mkstemp.h.
5835 Import this patch from libc:
5837 2006-04-07 Ulrich Drepper <drepper@redhat.com>
5839 * lib/tempname.c (__gen_tempname): Change attempts_min
5840 into a macro. Use preprocessor to decide how to initialize
5841 attempts [Coverity CID 67].
5843 2006-09-20 Bruno Haible <bruno@clisp.org>
5845 * lib/mkdtemp.c: Import from libc.
5846 2006-04-07 Ulrich Drepper <drepper@redhat.com>
5847 * sysdeps/posix/tempname.c (__gen_tempname): Change
5848 attempts_min into a macro. Use preprocessor to decide how to
5849 initialize attempts [Coverity CID 67].
5850 2001-11-27 Paul Eggert <eggert@twinsun.com>
5851 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5852 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5854 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5856 * gnulib-tool (func_exit): New function, to allow to pass the
5857 exit status portably through the trap. Use everywhere.
5858 (--help, --version): Signal a write error.
5859 (trap): catch SIGPIPE, for write errors.
5860 Exit at the end of the trap, with the correct exit status.
5862 2006-09-19 Karl Berry <karl@gnu.org>
5864 * doc/gnulib.texi: note about the license texinfo files.
5866 2006-09-19 Eric Blake <ebb9@byu.net>
5868 * gnulib-tool: Avoid space-tab.
5870 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
5872 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
5873 that prevented coreutils 6.1 from building. Problem reported
5874 by Petter Reinholdtsen.
5876 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
5878 * gnulib-tool (avoidlist): Fix typo that broke options like
5879 --avoid=lock that are used by coreutils bootstrap.
5881 2006-09-18 Mark D. Baushke <mdb@gnu.org>
5883 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
5884 more systematically.
5886 2006-09-18 Jim Meyering <jim@meyering.net>
5888 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
5890 2006-09-18 Bruno Haible <bruno@clisp.org>
5892 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
5894 2006-09-18 Bruno Haible <bruno@clisp.org>
5896 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
5897 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
5898 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
5899 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
5900 * m4/gettext.m4: Require autoconf >= 2.52.
5901 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
5902 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
5903 of gl_cv_header_inttypes_h.
5905 2006-09-18 Bruno Haible <bruno@clisp.org>
5907 * lib/javaversion.c: Include configmake.h.
5909 2006-09-18 Bruno Haible <bruno@clisp.org>
5911 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
5912 avoid that the while loops be executed in a subshell.
5914 2006-09-18 Bruno Haible <bruno@clisp.org>
5916 * MODULES.html.sh (func_module): Break long lines.
5917 Suggested by Bruce Korb <bkorb@gnu.org>.
5919 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5921 Speed up by a factor of 1.12.
5922 * gnulib-tool (nl): New variable.
5923 (func_import): Rewrite include directive extraction to only read each
5926 2006-09-17 Bruno Haible <bruno@clisp.org>
5928 * modules/javaversion (Makefile.am): Remove DEFS setting.
5929 (Depends-on): Add configmake, for PKGDATADIR definition.
5931 2006-09-17 Bruno Haible <bruno@clisp.org>
5933 * gnulib-tool (func_create_testdir): Rewrite all files at once.
5935 2006-09-17 Bruno Haible <bruno@clisp.org>
5937 * gnulib-tool (func_append): New function, stolen from libtool.m4.
5938 (func_modules_transitive_closure, func_modules_add_dummy,
5939 func_modules_to_filelist, func_import, func_create_testdir,
5940 func_create_megatestdir, ...): Use it wherever possible.
5941 Suggested by Ralf Wildenhues.
5943 2006-09-16 Karl Berry <karl@gnu.org>
5945 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
5946 to avoid sectioning errors.
5947 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
5948 [ifinfo]: blank line after @center-ed titles.
5949 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
5950 Spell FSF address consistently with others.
5951 (These changes approved by rms.)
5953 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5955 Speed up by a factor of 1.61.
5956 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
5957 already checked module names again.
5959 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5961 Speed up by a factor of 1.13.
5962 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
5963 for new_files, and the input to func_add_or_update.
5965 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5967 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
5968 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
5970 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5972 * modules/mkancesdirs (Depends-on): Add fcntl.
5973 * modules/savewd: New file.
5974 * MODULES.html.sh (File system functions): Add savewd.
5976 * modules/configmake (Makefile.am): Add support for the
5977 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
5979 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5981 * m4/savewd.m4: New file.
5983 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5985 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
5986 (dirchownmod): New arg FD. All callers changed.
5987 Use FD rather than opening the directory ourself, as opening is
5988 now the caller's responsibility.
5989 * lib/dirchownmod.h: Likewise.
5990 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
5991 hosts that require <sys/types.h> before <sys/stat.h>. Include
5992 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
5994 (mkancesdirs): Return length of prefix of FILE that has already
5995 been made, or -2 if there is a child doing the work. Redo
5996 algorithm so that it is O(N) rather than O(N**2). Optimize away
5997 ".", and treat ".." specially since it might stray back into
5998 already-created areas. Use a subprocess if necessary. New arg
5999 WD; all users changed. MAKE_DIR function should now return 1
6000 if it creates a directory that is not readable. Return -2 if
6001 a child process is spun off.
6002 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
6003 Adjust signature to match code.
6004 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
6005 (make_dir_parents): Use a subprocess if necessary. New arg WD;
6007 * lib/savewd.c, lib/savewd.h: New files.
6009 2006-09-15 Jim Meyering <jim@meyering.net>
6011 * modules/rename-dest-slash: New module.
6012 * MODULES.html.sh (posix_compat): Add it here.
6014 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
6016 2006-09-15 Jim Meyering <jim@meyering.net>
6018 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
6021 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
6023 2006-09-15 Jim Meyering <jim@meyering.net>
6025 * lib/rename-dest-slash.c (has_trailing_slash): Use
6026 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
6027 (rpl_rename_dest_slash): Perform the cheaper trailing slash
6028 test before testing whether SRC is a directory.
6029 Suggestions from Bruno Haible.
6031 Avoid a warning about an unused variable.
6032 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
6033 into the #ifdef block where it's used.
6035 * lib/rename-dest-slash.c: New file.
6037 2006-09-14 Bruno Haible <bruno@clisp.org>
6039 * lib/allocsa.c: Include <config.h> unconditionally.
6040 * lib/asnprintf.c: Likewise.
6041 * lib/asprintf.c: Likewise.
6042 * lib/c-strcasecmp.c: Likewise.
6043 * lib/c-strcasestr.c: Likewise.
6044 * lib/c-strncasecmp.c: Likewise.
6045 * lib/c-strstr.c: Likewise.
6046 * lib/classpath.c: Likewise.
6047 * lib/clean-temp.c: Likewise.
6048 * lib/concatpath.c: Likewise.
6049 * lib/copy-file.c: Likewise.
6050 * lib/csharpcomp.c: Likewise.
6051 * lib/csharpexec.c: Likewise.
6052 * lib/execute.c: Likewise.
6053 * lib/fatal-signal.c: Likewise.
6054 * lib/findprog.c: Likewise.
6055 * lib/fwriteerror.c: Likewise.
6056 * lib/gl_array_list.c: Likewise.
6057 * lib/gl_array_oset.c: Likewise.
6058 * lib/gl_avltree_list.c: Likewise.
6059 * lib/gl_avltree_oset.c: Likewise.
6060 * lib/gl_avltreehash_list.c: Likewise.
6061 * lib/gl_carray_list.c: Likewise.
6062 * lib/gl_linked_list.c: Likewise.
6063 * lib/gl_linkedhash_list.c: Likewise.
6064 * lib/gl_list.c: Likewise.
6065 * lib/gl_oset.c: Likewise.
6066 * lib/gl_rbtree_list.c: Likewise.
6067 * lib/gl_rbtree_oset.c: Likewise.
6068 * lib/gl_rbtreehash_list.c: Likewise.
6069 * lib/imaxabs.c: Likewise.
6070 * lib/imaxdiv.c: Likewise.
6071 * lib/javacomp.c: Likewise.
6072 * lib/javaexec.c: Likewise.
6073 * lib/javaversion.c: Likewise.
6074 * lib/linebreak.c: Likewise.
6075 * lib/localcharset.c: Likewise.
6076 * lib/lock.c: Likewise.
6077 * lib/mbchar.c: Likewise.
6078 * lib/mbswidth.c: Likewise.
6079 * lib/mkdtemp.c: Likewise.
6080 * lib/pipe.c: Likewise.
6081 * lib/printf-args.c: Likewise.
6082 * lib/printf-parse.c: Likewise.
6083 * lib/progname.c: Likewise.
6084 * lib/progreloc.c: Likewise.
6085 * lib/readlink.c: Likewise.
6086 * lib/sh-quote.c: Likewise.
6087 * lib/stpcpy.c: Likewise.
6088 * lib/stpncpy.c: Likewise.
6089 * lib/strcasecmp.c: Likewise.
6090 * lib/strcasestr.c: Likewise.
6091 * lib/strcspn.c: Likewise.
6092 * lib/striconv.c: Likewise.
6093 * lib/strncasecmp.c: Likewise.
6094 * lib/strnlen1.c: Likewise.
6095 * lib/strstr.c: Likewise.
6096 * lib/strtok_r.c: Likewise.
6097 * lib/tls.c: Likewise.
6098 * lib/tmpdir.c: Likewise.
6099 * lib/unicodeio.c: Likewise.
6100 * lib/unsetenv.c: Likewise.
6101 * lib/vasnprintf.c: Likewise.
6102 * lib/vasprintf.c: Likewise.
6103 * lib/wait-process.c: Likewise.
6104 * lib/xallocsa.c: Likewise.
6105 * lib/xsetenv.c: Likewise.
6106 * lib/xstriconv.c: Likewise.
6108 2006-09-13 Simon Josefsson <jas@extundo.com>
6110 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
6111 that internally, suggested by Ralf Wildenhues
6112 <Ralf.Wildenhues@gmx.de>.
6114 2006-09-13 Simon Josefsson <jas@extundo.com>
6116 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
6118 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6120 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
6122 * lib/_fpending.c: Include <config.h> unconditionally, since we no
6123 longer worry about uses that don't define HAVE_CONFIG_H.
6124 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
6125 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
6126 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
6127 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
6128 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
6129 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
6130 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
6131 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
6132 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
6133 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
6134 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
6135 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
6136 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
6137 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
6138 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
6139 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
6140 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
6141 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
6142 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
6143 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
6144 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
6145 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
6146 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
6147 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
6148 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
6149 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
6150 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
6151 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
6152 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
6153 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
6154 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
6155 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
6156 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
6157 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
6158 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
6159 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
6160 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
6161 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
6162 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
6163 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
6164 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
6167 2006-09-13 Eric Blake <ebb9@byu.net>
6169 * lib/getopt.c: Fix typo in last commit.
6171 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
6173 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
6176 2006-09-12 Jim Meyering <jim@meyering.net>
6178 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
6179 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
6180 Reported by Nelson H. F. Beebe.
6182 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
6184 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
6185 program_invocation_name and program_invocation_short_name are
6187 * lib/argp-namefrob.h: Move declarations of program_invocation_name
6188 and program_invocation_short_name to argp.h, so they are visible
6190 * lib/argp.h: Likewise
6192 2006-09-10 Bruno Haible <bruno@clisp.org>
6194 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6195 m4/inttypes_h.m4, m4/uintmax_t.m4.
6197 2006-09-10 Bruno Haible <bruno@clisp.org>
6199 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
6200 gl_AC_TYPE_UINTMAX_T.
6202 2006-09-10 Bruno Haible <bruno@clisp.org>
6204 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
6206 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
6208 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
6209 convention. Text proposed by Bruno Haible.
6210 (struct argp_option): Document the use of N_() wrappers.
6212 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
6213 '\v', and translate the two parts separately, instead of feeding
6214 the whole string to gettext. This allows to exclude
6215 '\v' from the strings visible to the translator by writing doc
6216 strings as N_("..") "\v" N_("..").
6218 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
6220 * config/srclist.txt: Undo latest change; the bug was fixed.
6222 2006-09-09 Bruno Haible <bruno@clisp.org>
6224 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
6225 assignments if building a library without libtool.
6226 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
6227 in func_emit_lib_Makefile_am.
6228 (func_import): When building a static library libfoo.a, arrange to
6229 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
6230 (func_create_testdir): Likewise.
6231 * modules/gc (configure.ac, Makefile.am): If building statically,
6232 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
6233 * modules/iconvme (configure.ac, Makefile.am): Likewise.
6234 * modules/striconv (configure.ac, Makefile.am): Likewise.
6235 Based on a suggestion by Ralf Wildenhues.
6237 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6239 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
6240 Check for unistd.h too, since Autoconf doesn't assume POSIX.
6243 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6244 Add year_2050_test to catch glibc bug 2821
6245 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6247 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6248 Prefer #ifdef to #if.
6250 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
6251 Return from 'main' instead of calling 'exit'.
6253 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6255 * lib/mktime.c (guess_time_tm): Fix bug where mktime
6256 returned the maximum time_t value rather than (time_t) -1.
6257 Problem originally reported by William Bardwell
6258 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
6260 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6262 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
6265 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
6267 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
6270 2006-09-08 Jim Meyering <jim@meyering.net>
6272 Don't make generated files read-only. That would bother too many
6273 people. However, do retain the ability to work when targets are
6274 read-only: remove the destination and temporary files before writing
6275 them (when generated via sed or echo), or by using the -f option for
6276 both cp and mv commands. Suggestion to use -f from Paul Eggert.
6277 * modules/alloca-opt, modules/argz, modules/arpa_inet:
6278 * modules/byteswap, modules/configmake, modules/fcntl:
6279 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6280 * modules/localcharset, modules/netinet_in, modules/poll:
6281 * modules/stdbool, modules/stdint, modules/sys_select:
6282 * modules/sys_socket, modules/sys_stat, modules/sysexits:
6284 2006-09-08 Jim Meyering <jim@meyering.net>
6286 Avoid new build failure on FreeBSD 6.0.
6287 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
6288 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
6289 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
6291 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6293 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
6295 2006-09-07 Jim Meyering <jim@meyering.net>
6297 Fix global typo in last change: use chmod u-w, not chmod u-x.
6298 Spotted by Paul Eggert and Bruce Korb.
6299 * modules/alloca-opt, modules/argz, modules/arpa_inet:
6300 * modules/byteswap, modules/configmake, modules/fcntl:
6301 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
6302 * modules/localcharset, modules/netinet_in, modules/poll:
6303 * modules/stdbool, modules/stdint, modules/sys_select:
6304 * modules/sys_socket, modules/sys_stat, modules/sysexits:
6306 2006-09-06 Jim Meyering <jim@meyering.net>
6308 Make generated files be read-only.
6309 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
6310 Ensure that each generated file is now read-only.
6311 * modules/argz: Likewise.
6312 * modules/arpa_inet: Likewise.
6313 * modules/byteswap: Likewise.
6314 * modules/configmake: Likewise.
6315 * modules/fcntl: Likewise.
6316 * modules/fnmatch: Likewise.
6317 * modules/getopt: Likewise.
6318 * modules/glob: Likewise.
6319 * modules/inttypes: Likewise.
6320 * modules/netinet_in: Likewise.
6321 * modules/poll: Likewise.
6322 * modules/stdbool: Likewise.
6323 * modules/stdint: Likewise.
6324 * modules/sys_select: Likewise.
6325 * modules/sys_socket: Likewise.
6326 * modules/sys_stat: Likewise.
6327 * modules/sysexits: Likewise.
6328 * modules/localcharset: Same as above, but continue using temporary
6329 file named "t-$@" (why different?) rather than the "$@-t" used
6332 * modules/sysexits (Makefile.am): Replace literal occurrences
6333 of "sysexit.h" more readable, and more consistent, "$@".
6335 2006-09-06 Bruno Haible <bruno@clisp.org>
6337 * modules/striconv: New file.
6338 * modules/xstriconv: New file.
6339 * MODULES.html.sh (Internationalization functions): Add striconv,
6342 2006-09-06 Bruno Haible <bruno@clisp.org>
6344 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
6345 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
6346 not using libtool correctly.
6348 2006-09-06 Bruno Haible <bruno@clisp.org>
6350 * lib/striconv.h: New file.
6351 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
6353 * lib/xstriconv.h: New file.
6354 * lib/xstriconv.c: New file.
6356 2006-09-06 Bruno Haible <bruno@clisp.org>
6358 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
6361 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6363 * lib/argz_.h: Sync from Libtool.
6365 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
6366 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6368 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
6370 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
6372 * modules/trim: New file.
6374 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
6376 * lib/trim.h: New file.
6377 * lib/trim.c: New file.
6379 2006-09-05 Bruno Haible <bruno@clisp.org>
6381 * MODULES.html.sh (String handling): Add trim.
6383 2006-09-04 Karl Berry <karl@gnu.org>
6385 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
6388 2006-09-03 Bruno Haible <bruno@clisp.org>
6390 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
6393 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6395 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
6396 not gl_GETLOADAVG. Omit unneeded semicolons.
6397 Problems reported by Ralf Wildenhues in
6398 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
6399 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
6400 at the end, which is the usual gnulib style.
6402 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
6403 of doing all the work ourselves.
6404 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
6405 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
6407 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6409 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
6410 Problem reported by Ralf Wildenhues in
6411 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
6413 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
6414 HAVE_STRUCT_STATFS_F_FSTYPENAME.
6416 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
6418 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
6419 yesterday's patch by changing test -n to test -z.
6421 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6423 * modules/getloadavg (Files): Add m4/getloadavg.m4.
6424 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
6425 the former is now obsolescent.
6427 * modules/chdir-long (Depends-on): Add fcntl.
6429 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6431 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
6432 obsolescent, and programs should use gnulib instead.
6433 * m4/getloadavg.m4: New file, with contents taken from Autoconf
6434 but with prefixes changed.
6436 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
6438 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
6439 or stdbool.h, because they might not exist while configuring.
6441 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
6442 Don't include unistd.h or limits.h; not needed, since chdir-long.h
6444 (O_DIRECTORY): Remove.
6446 2006-08-31 Eric Blake <ebb9@byu.net>
6448 * gnulib-tool: Don't let emacs change spaces to TAB.
6450 2006-08-31 Bruno Haible <bruno@clisp.org>
6452 * gnulib-tool: When calling func_import more than once, do it in a
6454 Reported by Eric Blake <ebb9@byu.net>.
6456 2006-08-31 Bruno Haible <bruno@clisp.org>
6458 * gnulib-tool (nl): Remove variable.
6459 (sed_transform_lib_file): Use more robust test for config-h module.
6460 (func_import): Fix typo in 2006-08-25 patch.
6462 2006-08-31 Bruno Haible <bruno@clisp.org>
6464 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
6465 specified, augment Makefile.am variables instead of assigning them.
6467 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6469 Work around a bug in both the Linux and SunOS 64-bit kernels:
6470 nanosleep mishandles sleeps for longer than 2**31 seconds.
6471 Problem reported by Frank v Waveren in
6472 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
6473 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
6474 Check for nanosleep bug.
6475 (LIB_NANOSLEEP): Append clock_gettime library if needed.
6477 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6479 Work around a bug in both the Linux and SunOS 64-bit kernels:
6480 nanosleep mishandles sleeps for longer than 2**31 seconds.
6481 Problem reported by Frank v Waveren in
6482 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
6483 * lib/nanosleep.c (BILLION): New constant.
6484 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
6485 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
6488 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6490 * modules/nanosleep (Depends-on): Add gettime.
6492 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
6493 and Simon Josefsson <jas@extundo.com>
6494 and Oskar Liljeblad <oskar@osk.mine.nu>
6496 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
6497 * gnulib-tool (func_import): New license type 'unmodifiable license
6499 * modules/fdl: Use it. Longer description.
6500 * module/gpl, module/lgpl: New files.
6502 2006-08-30 Jim Meyering <jim@meyering.net>
6504 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
6505 shadowing the parameter.
6507 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6511 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6513 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
6514 sharing with gnulib. Report by Eric Blake.
6516 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6518 * modules/isapipe: New file.
6519 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
6521 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6523 * modules/configmake (Makefile.am): Add a comment, and omit
6524 the CONFIGMAKE_ prefix from generated macro names. Suggested
6527 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6529 * m4/isapipe.m4: New file.
6531 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6533 * lib/isapipe.c, lib/isapipe.h: New files.
6535 2006-08-29 Jim Meyering <jim@meyering.net>
6537 * modules/configmake (Makefile.am): Make configmake.h depend on
6538 Makefile. Otherwise, a stale configmake.h could hang around.
6540 2006-08-29 Eric Blake <ebb9@byu.net>
6542 * lib/error.c (error_at_line, print_errno_message): Match libc, after
6543 resolution of upstream bug 3044.
6545 2006-08-29 Bruno Haible <bruno@clisp.org>
6547 * modules/localcharset (Depends-on): Add configmake.
6548 (Makefile.am): Remove setting of LIBDIR through DEFS.
6550 2006-08-29 Bruno Haible <bruno@clisp.org>
6552 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
6555 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6557 * modules/fcntl: New file.
6558 * modules/chdir-safer (Depends-on): Add fcntl.
6559 * modules/fts: Likewise.
6560 * modules/mkdir-p: Likewise.
6562 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
6563 This undoes the most recent change, since we're now addressing the
6564 problem in a different way.
6566 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
6567 into output, since the output might be called Makefile.am even
6568 if $makefile_name is something different.
6569 (func_import): Use $makefile_am rather than
6570 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
6573 * modules/inttypes (Files): Add m4/inttypes-h.m4.
6575 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6577 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
6578 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
6579 recent change to stdint.m4, since we're now addressing the problem in a
6582 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6584 * m4/fcntl_h.m4: New file.
6586 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6588 * lib/fcntl_.h: New file.
6589 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
6591 * lib/dirchownmod.c: Likewise.
6592 * lib/fts.c: Likewise.
6594 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
6595 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
6596 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
6597 just before including <inttypes.h>, to avoid circular inclusion.
6599 2006-08-28 Jim Meyering <jim@meyering.net>
6601 * doc/visibility.texi: Actually read and correct the grammar of the
6602 sentence affected by yesterday's change.
6604 2006-08-28 Eric Blake <ebb9@byu.net>
6606 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
6609 2006-08-28 Eric Blake <ebb9@byu.net>
6611 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
6613 2006-08-28 Eric Blake <ebb9@byu.net>
6615 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
6617 2006-08-28 Bruno Haible <bruno@clisp.org>
6619 * modules/c-strstr: New file, from GNU gettext.
6620 * MODULES.html.sh (String handling): Add c-strstr.
6622 2006-08-28 Bruno Haible <bruno@clisp.org>
6624 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
6626 Reported by Eric Blake.
6628 2006-08-28 Bruno Haible <bruno@clisp.org>
6630 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
6631 (VASNPRINTF): Return a string of length > INT_MAX without failing.
6632 * lib/vasprintf.c: Include errno.h, limits.h.
6633 (EOVERFLOW): New fallback definition.
6634 (vasprintf): Test here whether the string length is > INT_MAX.
6635 * lib/vsnprintf.c: Include errno.h, limits.h.
6636 (EOVERFLOW): New fallback definition.
6637 (vsnprintf): Fix bug when generated string was too long for the buffer.
6638 Test here whether the string length is > INT_MAX.
6640 2006-08-28 Bruno Haible <bruno@clisp.org>
6642 * lib/inttypes_.h (SCNX*): Remove definitions.
6643 Reported by Eric Blake.
6645 2006-08-28 Bruno Haible <bruno@clisp.org>
6647 * lib/c-strstr.h: New file, from GNU gettext.
6648 * lib/c-strstr.c: New file, from GNU gettext.
6650 2006-08-28 Bruno Haible <bruno@clisp.org>
6652 * gnulib-tool: Reorder some statements.
6654 2006-08-28 Bruno Haible <bruno@clisp.org>
6656 * gnulib-tool: New option --makefile-name.
6657 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
6659 (func_import): Write $makefile_name to the cache file, and read it from
6660 there unless explicitly specified. Use $makefile_name as file name
6661 instead of Makefile.am. Adjust the recommendations accordingly.
6663 2006-08-28 Bruno Haible <bruno@clisp.org>
6665 * gnulib-tool (func_verify_module): Check against misapplying patch.
6667 2006-08-28 Bruno Haible <bruno@clisp.org>
6669 * gnulib-tool (func_relativize, func_relconcat): New functions.
6670 Give an error if --local-dir is given with --update.
6671 Remove trailing slashes from $local_gnulib_dir.
6672 (func_import): Store the relativized $local_gnulib_dir in
6673 gnulib-cache.m4, and read it from there if not specified explicitly.
6675 2006-08-28 Bruno Haible <bruno@clisp.org>
6677 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
6678 is the current directory. Respect also $local_gnulib_dir.
6680 2006-08-28 Bruno Haible <bruno@clisp.org>
6681 Simon Josefsson <jas@extundo.com>
6684 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
6686 2006-08-27 Jim Meyering <jim@meyering.net>
6688 * doc/visibility.texi: Remove duplicate word: "pointer".
6690 2006-08-26 Bruno Haible <bruno@clisp.org>
6692 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
6693 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
6694 (Makefile.am): Create inttypes.h from inttypes_.h.
6695 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
6697 * modules/imaxabs: New file.
6699 * modules/imaxdiv: New file.
6701 2006-08-26 Bruno Haible <bruno@clisp.org>
6703 * m4/inttypes.m4: New file.
6704 * m4/_inttypes_h.m4: Remove file.
6705 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
6707 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
6709 * m4/imaxabs.m4: New file.
6711 * m4/imaxdiv.m4: New file.
6713 2006-08-26 Bruno Haible <bruno@clisp.org>
6715 * lib/inttypes_.h: New file.
6716 * lib/inttypes.h: Remove file.
6717 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
6719 * lib/imaxabs.c: New file.
6721 * lib/imaxdiv.c: New file.
6723 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6725 New config-h module, so that "make" output needn't be cluttered
6727 * MODULES.html.sh (Support for building libraries and executables):
6729 * modules/config-h: New file.
6730 * gnulib-tool (nl, sed_transform_lib_file): New vars.
6731 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
6732 the config-h module is used.
6734 New configmake module, so that "make" output needn't be cluttered
6735 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
6736 * MODULES.html.sh (Support for building libraries and executables):
6738 * modules/configmake: New file.
6740 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6742 * m4/config-h.m4: New file.
6744 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6746 * config/srclist.txt: Add elisp-comp.
6748 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6750 * MODULES.html.sh (Support for building libraries and executables):
6752 * build-aux/elisp-comp: New file.
6753 * modules/elisp-comp: New file.
6755 2006-08-24 Bruno Haible <bruno@clisp.org>
6757 * gnulib-tool (func_create_testdir): Use non-default values of
6758 sourcebase and m4base.
6760 2006-08-24 Bruno Haible <bruno@clisp.org>
6762 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
6765 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
6767 * modules/openat (Depends-on): Add lchown.
6769 2006-08-23 Bruno Haible <bruno@clisp.org>
6771 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
6772 of gl_LOCK_EARLY instead of gl_LOCK.
6774 2006-08-23 Bruno Haible <bruno@clisp.org>
6776 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
6778 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
6780 2006-08-23 Bruno Haible <bruno@clisp.org>
6782 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
6785 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
6786 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
6787 (gl_LOCK): New macro.
6789 2006-08-22 Simon Josefsson <jas@extundo.com>
6791 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
6794 2006-08-22 Simon Josefsson <jas@extundo.com>
6796 * MODULES.html.sh: Add "Support for maintaining and release
6799 * build-aux/gnupload: New file, from coreutils.
6801 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6803 Avoid the need for AC_LIBSOURCES in m4 macros.
6804 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
6805 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
6806 * modules/check-version (EXTRA_DIST): Add check-version.h.
6807 * modules/crc (EXTRA_DIST): Add crc.h.
6808 * modules/des (EXTRA_DIST): Add des.h.
6809 * modules/gc (EXTRA_DIST): Add gc.h.
6810 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
6811 * modules/getline (EXTRA_DIST): Add getline.h.
6812 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
6813 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
6814 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
6815 * modules/md2 (EXTRA_DIST): Add md2.h.
6816 * modules/md4 (EXTRA_DIST): Add md4.h.
6817 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
6818 * modules/read-file (EXTRA_DIST): Add read-file.h.
6819 * modules/readline (EXTRA_DIST): Add readline.h.
6820 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
6823 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6825 * m4/rijndael.m4 (gl_ARCFOUR):
6826 * m4/arctwo.m4 (gl_ARCTWO):
6827 * m4/check-version.m4 (gl_CHECK_VERSION):
6828 * m4/crc.m4 (gl_CRC):
6829 * m4/des.m4 (gl_DES):
6830 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
6832 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
6833 * m4/getline.m4 (gl_FUNC_GETLINE):
6834 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
6835 * m4/hmac-md5.m4 (gl_HMAC_MD5):
6836 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
6837 * m4/md2.m4 (gl_MD2):
6838 * m4/md4.m4 (gl_MD4):
6839 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
6840 * m4/read-file.m4 (gl_FUNC_READ_FILE):
6841 * m4/readline.m4 (gl_FUNC_READLINE):
6842 * m4/rijndael.m4 (gl_RIJNDAEL):
6843 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
6844 to get the necessary .h files and whatnot.
6846 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6848 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
6849 gnulib rather than the other way around.
6850 * config/srclistvars.sh (COREUTILS): Remove.
6852 2006-08-22 Jim Meyering <jim@meyering.net>
6854 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
6856 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
6858 2006-08-22 Eric Blake <ebb9@byu.net>
6860 * modules/regexprops-generic: New file.
6861 * MODULES.html.sh (Support for building documentation): List it.
6863 2006-08-22 Eric Blake <ebb9@byu.net>
6865 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
6866 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6867 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
6868 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6870 2006-08-22 Bruno Haible <bruno@clisp.org>
6872 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
6873 and lib_LTLIBRARIES like the other lib_* variables.
6875 2006-08-22 Bruno Haible <bruno@clisp.org>
6877 * build-aux/x-to-1.in: New file, from GNU gettext.
6879 2006-08-22 Bruno Haible <bruno@clisp.org>
6881 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
6884 2006-08-22 Bruno Haible <bruno@clisp.org>
6886 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
6889 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6892 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
6894 Problem reported by Bruno Haible.
6896 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6898 Avoid the need for AC_LIBSOURCES in m4 macros.
6899 * modules/acl (EXTRA_DIST): Add acl.h.
6900 * modules/argmatch (Files): Add m4/argmatch.m4.
6901 (configure.ac): Add gl_ARGMATCH.
6902 (EXTRA_DIST): Renamed from lib_SOURCES, for
6903 consistency with the other modules. Remove argmatch.c.
6904 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
6905 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
6906 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
6907 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
6908 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
6909 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
6910 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
6911 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
6912 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
6913 * modules/closeout (EXTRA_DIST): Add closeout.h.
6914 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
6915 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
6916 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
6917 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
6918 dirname.h; remove basename.c and stripslash.c.
6919 * modules/exclude (EXTRA_DIST): Add exclude.h.
6920 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
6921 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
6922 * modules/file-type (EXTRA_DIST): Add file-type.h.
6923 * modules/filemode (EXTRA_DIST): Add filemode.h.
6924 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
6925 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
6926 * modules/fpending (EXTRA_DIST): Add __fpending.h.
6927 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
6928 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
6929 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
6930 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
6931 * modules/getdate (EXTRA_DIST): Add getdate.c.
6932 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
6933 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
6934 * modules/getpass (EXTRA_DIST): Add getpass.h.
6935 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
6936 * modules/group-member (EXTRA_DIST): Add group-member.h.
6937 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
6938 * modules/hash (EXTRA_DIST): Add hash.h.
6939 * modules/human (EXTRA_DIST): Add human.h.
6940 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
6941 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
6942 * modules/lchown (EXTRA_DIST): Add lchown.h.
6943 * modules/long-options (EXTRA_DIST): Add long-options.h.
6944 * modules/lstat (EXTRA_DIST): Add lstat.h.
6945 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
6946 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
6947 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
6948 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
6949 * modules/memxor (EXTRA_DIST): Add memxor.h.
6950 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
6951 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
6952 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
6953 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
6954 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
6955 * modules/physmem (EXTRA_DIST): Add physmem.h.
6956 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
6957 * modules/posixver (EXTRA_DIST): Add posixver.h.
6958 * modules/quote (EXTRA_DIST): Add quote.h.
6959 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
6960 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
6961 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
6962 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
6963 regex_internal.h regexec.c.
6964 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
6965 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
6966 * modules/same (EXTRA_DIST): Add same.h.
6967 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
6968 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
6969 * modules/savedir (EXTRA_DIST): Add savedir.h.
6970 * modules/sha1 (EXTRA_DIST): Add sha1.h.
6971 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
6972 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
6973 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
6974 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
6975 * modules/strdup (EXTRA_DIST): Add strdup.h.
6976 * modules/strftime (EXTRA_DIST): Add strftime.h.
6977 * modules/strndup (EXTRA_DIST): Add strndup.h.
6978 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
6979 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
6980 * modules/time_r (EXTRA_DIST): Add time_r.h.
6981 * modules/timespec (EXTRA_DIST): Add timespec.h.
6982 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
6983 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
6984 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
6985 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
6986 * modules/userspec (EXTRA_DIST): Add userspec.h.
6987 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
6988 * modules/utimens (EXTRA_DIST): Add utimens.h.
6989 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
6990 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
6991 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
6992 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
6993 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
6994 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
6995 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
6996 * modules/yesno (EXTRA_DIST): Add yesno.h.
6998 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
7000 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
7002 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
7003 * m4/dev-ino.m4, same-inode.m4: Remove.
7005 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
7006 * m4/acl.m4 (AC_FUNC_ACL):
7007 * m4/backupfile.m4 (gl_BACKUPFILE):
7008 * m4/c-strtod.m4 (gl_C99_STRTOLD):
7009 * m4/canon-host.m4 (gl_CANON_HOST):
7010 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
7011 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
7012 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
7013 * m4/cloexec.m4 (gl_CLOEXEC):
7014 * m4/close-stream.m4 (gl_CLOSE_STREAM):
7015 * m4/closeout.m4 (gl_CLOSEOUT):
7016 * m4/dirfd.m4 (gl_FUNC_DIRFD):
7017 * m4/dirname.m4 (gl_DIRNAME):
7018 * m4/exclude.m4 (gl_EXCLUDE):
7019 * m4/exitfail.m4 (gl_EXITFAIL):
7020 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
7021 * m4/file-type.m4 (gl_FILE_TYPE):
7022 * m4/filemode.m4 (gl_FILEMODE):
7023 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
7024 * m4/fpending.m4 (gl_FUNC_FPENDING):
7025 * m4/fprintftime.m4 (gl_FPRINTFTIME):
7026 * m4/fts.m4 (gl_FUNC_FTS):
7027 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
7028 * m4/getdate.m4 (gl_GETDATE):
7029 * m4/gethrxtime.m4 (gl_GETHRXTIME):
7030 * m4/getpagesize.m4 (gl_GETPAGESIZE):
7031 * m4/getpass.m4 (gl_FUNC_GETPASS):
7032 * m4/gettime.m4 (gl_GETTIME):
7033 * m4/getugroups.m4 (gl_GETUGROUPS):
7034 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
7035 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
7036 * m4/hard-locale.m4 (gl_HARD_LOCALE):
7037 * m4/hash.m4 (gl_HASH):
7038 * m4/idcache.m4 (gl_IDCACHE):
7039 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
7040 * m4/lchown.m4 (gl_FUNC_LCHOWN):
7041 * m4/long-options.m4 (gl_LONG_OPTIONS):
7042 * m4/lstat.m4 (gl_FUNC_LSTAT):
7043 * m4/md5.m4 (gl_MD5):
7044 * m4/memcasecmp.m4 (gl_MEMCASECMP):
7045 * m4/memcoll.m4 (gl_MEMCOLL):
7046 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
7047 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
7048 * m4/memxor.m4 (gl_MEMXOR):
7049 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
7050 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
7051 * m4/modechange.m4 (gl_MODECHANGE):
7052 * m4/mountlist.m4 (gl_MOUNTLIST):
7053 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7054 * m4/openat.m4 (gl_FUNC_OPENAT):
7055 * m4/pathmax.m4 (gl_PATHMAX):
7056 * m4/physmem.m4 (gl_PHYSMEM):
7057 * m4/posixtm.m4 (gl_POSIXTM):
7058 * m4/posixver.m4 (gl_POSIXVER):
7059 * m4/quote.m4 (gl_QUOTE):
7060 * m4/quotearg.m4 (gl_QUOTEARG):
7061 * m4/readtokens.m4 (gl_READTOKENS):
7062 * m4/readutmp.m4 (gl_READUTMP):
7063 * m4/regex.m4 (gl_REGEX):
7064 * m4/safe-read.m4 (gl_SAFE_READ):
7065 * m4/safe-write.m4 (gl_SAFE_WRITE):
7066 * m4/same.m4 (gl_SAME):
7067 * m4/save-cwd.m4 (gl_SAVE_CWD):
7068 * m4/savedir.m4 (gl_SAVEDIR):
7069 * m4/settime.m4 (gl_SETTIME):
7070 * m4/sha1.m4 (gl_SHA1):
7071 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
7072 * m4/stat-macros.m4 (gl_STAT_MACROS):
7073 * m4/stat-time.m4 (gl_STAT_TIME):
7074 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
7075 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
7076 * m4/strdup.m4 (gl_FUNC_STRDUP):
7077 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
7078 * m4/strndup.m4 (gl_FUNC_STRNDUP):
7079 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
7080 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
7081 * m4/time_r.m4 (gl_TIME_R):
7082 * m4/timespec.m4 (gl_TIMESPEC):
7083 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
7084 * m4/unlinkdir.m4 (gl_UNLINKDIR):
7085 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
7086 * m4/userspec.m4 (gl_USERSPEC):
7087 * m4/utimecmp.m4 (gl_UTIMECMP):
7088 * m4/utimens.m4 (gl_UTIMENS):
7089 * m4/xalloc.m4 (gl_XALLOC):
7090 * m4/xgetcwd.m4 (gl_XGETCWD):
7091 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
7092 * m4/xreadlink.m4 (gl_XREADLINK):
7093 * m4/xstrtod.m4 (gl_XSTRTOD):
7094 * m4/yesno.m4 (gl_YESNO):
7095 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
7096 to get the necessary .h files and whatnot.
7098 2006-08-21 Mark D. Baushke <mdb@gnu.org>
7099 Bruno Haible <bruno@clisp.org>
7101 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
7102 /bin/sh understanding of '!' conditional negation.
7104 2006-08-21 Jim Meyering <jim@meyering.net>
7106 * modules/openat (Depends-on): Really alphabetize.
7108 * modules/acl (Depends-on): Add error and quote.
7110 * check-module (find_included_lib_files): Add at-func.c to the
7111 ok-to-include-more-than-once white list.
7113 * modules/openat (Depends-on): Add lstat. Alphabetize.
7115 2006-08-21 Bruno Haible <bruno@clisp.org>
7117 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7118 Emit a pkgdata_DATA variable only if some snippets add contents to it.
7119 Reported by Martin Lambers <marlam@marlam.de>.
7121 2006-08-21 Bruno Haible <bruno@clisp.org>
7123 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
7124 specify an installation location, don't emit a noinst_LIBRARIES or
7125 noinst_LTLIBRARIES assignment.
7127 2006-08-21 Bruno Haible <bruno@clisp.org>
7130 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
7131 BeOS has mbrtowc() but no <wctype.h>.
7133 2006-08-21 Bruno Haible <bruno@clisp.org>
7136 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
7139 2006-08-21 Bruno Haible <bruno@clisp.org>
7142 * lib/mbchar.h: Include <wctype.h> only if it exists.
7144 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7146 Remove files that are no longer needed by their respective modules.
7147 * m4/obstack.m4: Remove.
7148 * m4/strerror_r.m4: Remove.
7149 * m4/uint32_t.m4: Remove.
7150 * m4/uintptr_t.m4: Remove.
7151 * m4/ullong_max.m4: Remove.
7152 * m4/xstrtoimax.m4: Remove.
7153 * m4/xstrtoumax.m4: Remove.
7155 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
7156 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
7157 dependencies now capture this.
7159 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
7160 Do not use AC_LIBSOURCES, since gnulib modules now do this.
7161 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
7162 * m4/human.m4 (gl_HUMAN): Likewise.
7163 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
7164 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
7166 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
7168 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
7169 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
7171 * m4/human.m4 (gl_HUMAN): Likewise.
7172 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
7173 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
7174 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7175 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7176 * m4/xstrtol (gl_XSTRTOL): Likewise.
7178 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
7179 AC_TYPE_LONG_LONG_INT.
7180 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
7181 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
7182 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
7183 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
7185 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
7188 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
7189 (gl_PREREQ_XSTRTOUL): Remove.
7191 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
7193 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
7196 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7198 Add and change modules to make it easier for coreutils to use
7200 * modules/backupfile (Files): Remove m4/d-ino.m4.
7201 (Depends-on): Add d-ino.
7202 * modules/cycle-check (Depends-on): Add stdint.
7203 (lib_SOURCES): Add cycle-check.h.
7204 * modules/d-ino: New module.
7205 * modules/d-type: New module.
7206 * modules/error (Files): Remove m4/strerror_r.m4.
7207 * modules/filemode (Files): Add m4/st_dm_mode.m4.
7208 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7209 m4/inttypes_h.m4, m4/uintmax_t.m4.
7210 (Depends-on): Add stdint.
7211 (lib_SOURCES): Add fsusage.h.
7212 * modules/getcwd (Files): Remove d-ino.m4.
7213 (Depends-on): Add d-ino.
7214 * modules/getndelim2 (Depends-on): Add stdint.
7215 * modules/glob (Files): Remove m4/d-type.m4.
7216 (Depends-on): Add d-type.
7217 * modules/host-os: New module.
7218 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
7219 m4/inttypes_h.m4, m4/uintmax_t.m4.
7220 * Depends-on: Add stdint.
7221 (lib_SOURCES): Add human.h.
7222 * modules/inttostr (Files): Remove m4/intmax_t.m4,
7223 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
7224 m4/uintmax_t.m4, m4/ulonglong.m4.
7225 (Depends-on): Add stdint.
7226 (EXTRA_DIST): Add inttostr.h.
7227 * modules/lchmod: New module.
7228 * modules/link-follow: New module.
7229 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
7230 (Depends-on): Add lchmod.
7231 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
7232 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
7233 (Depends-on): Add stdint.
7234 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
7235 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
7236 (Depends-on): Add stdint.
7237 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
7238 * modules/perl: New module.
7239 * modules/regex (Depends-on): Add stdint.
7240 * modules/rmdir-errno: New module.
7241 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7243 (Depends-on): Add stdint.
7244 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
7246 (Depends-on): Add stdint.
7247 * modules/unlink-busy: New module.
7248 * modules/utimecmp (Depends-on): Add stdint.
7249 * modules/uptime: New module.
7250 * modules/winsz-ioctl: New module.
7251 * modules/winsz-termios: New module.
7252 * modules/xnanosleep (Depends-on): Add nanosleep.
7253 * modules/ullong_max: Remove.
7254 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
7255 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
7256 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
7257 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
7258 (Depends-on): Add inttypes.
7259 (lib_SOURCES): Add xstrtol.h.
7260 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
7261 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
7262 * MODULES.html.sh: Move 'assert' into the assert section.
7263 Move 'dummy' into the linking section.
7265 Add section for compatibility checks for POSIX:2001 functions,
7266 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
7267 winsz-ioctl, and winsz-termios into it.
7269 Add top-level Misc section and put host-os, perl, and uptime
7272 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
7274 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
7275 now assume the stdint module. Do not include inttypes.h.
7276 * lib/fsusage.h: Likewise.
7277 * lib/getndelim2.c: Likewise.
7278 * lib/human.h: Likewise.
7279 * lib/inttostr.h: Likewise.
7280 * lib/obstack.c: Likewise.
7281 * lib/regex_internal.h: Likewise.
7282 * lib/tempname.c: Likewise.
7283 * lib/utimecmp.c: Likewise.
7284 * lib/xstrtol.h: Likewise.
7286 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
7288 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
7289 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
7290 * lib/xtime.h: Likewise.
7292 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
7294 * modules/openat (Files): Add lib/fchmodat.c.
7295 Fixes problem reported by Jay Youngman.
7297 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
7299 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
7300 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
7302 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
7303 Bruno Haible <bruno@clisp.org>
7305 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
7306 and is a script that invokes bison. Tighten the code. Add comments.
7308 2006-08-18 Jim Meyering <jim@meyering.net>
7310 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
7311 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
7312 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
7313 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
7315 2006-08-18 Bruno Haible <bruno@clisp.org>
7317 * modules/bison-i18n: New file.
7318 * MODULES.html.sh (Internationalization functions): Add it.
7320 2006-08-18 Bruno Haible <bruno@clisp.org>
7322 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
7323 sys/statvfs.h. When getmntinfo was found, check its declaration and
7324 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
7326 2006-08-18 Bruno Haible <bruno@clisp.org>
7328 * m4/bison-i18n.m4: New file, from bison.
7330 2006-08-18 Bruno Haible <bruno@clisp.org>
7332 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
7333 (ME_DUMMY): Treat "kernfs" as a dummy.
7334 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
7336 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
7338 Update from coreutils.
7340 2006-08-15 Jim Meyering <jim@meyering.net>
7342 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
7344 2006-01-17 Jim Meyering <jim@meyering.net>
7346 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
7348 2006-01-11 Jim Meyering <jim@meyering.net>
7350 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
7351 Check for the lchmod function.
7353 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
7355 Update from coreutils.
7357 * lib/__fpending.h: Add copyright notice.
7358 * lib/fprintftime.h: Likewise.
7359 * lib/savedir.c: Use (C) in copyright notice.
7360 * lib/savedir.h: Likewise.
7362 2006-08-15 Jim Meyering <jim@meyering.net>
7364 * lib/at-func.c: New file, with the logic of all emulated at-functions.
7365 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
7366 in support of the EXPECTED_ERRNO macro.
7367 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
7368 definitions. Instead, define the appropriate symbols and include
7370 * lib/mkdirat.c (mkdirat): Likewise.
7371 * lib/fchmodat.c (fchmodat): Likewise.
7372 (ENOSYS): Remove definition.
7373 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
7374 it. Don't include "unistd--.h" -- it wasn't ever used.
7376 2006-01-17 Jim Meyering <jim@meyering.net>
7378 Rewrite fts.c not to change the current working directory,
7379 by using openat, fstatat, fdopendir, etc..
7381 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
7382 (HAVE_OPENAT_SUPPORT): Define.
7383 [_LIBC] (fchdir): Don't undef or define; no longer used.
7384 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
7385 Now, this `function' always succeeds, and consumes its file descriptor
7386 parameter -- so callers must not close such FDs. Update callers.
7387 (diropen_fd, opendirat, cwd_advance_fd): New functions.
7388 (diropen): Add parameter, SP. Adjust all callers.
7389 Implement using diropen_fd, rather than open.
7390 (fts_open): Initialize new member, fts_cwd_fd.
7391 Remove fts_rft-setting code.
7392 (fts_close): Close fts_cwd_fd, if necessary.
7393 (__opendir2): Define in terms of opendir or opendirat,
7394 depending on whether the FST_NOCHDIR flag is set.
7395 (fts_build): Since fts_safe_changedir consumes its FD, and since
7396 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
7397 and close the dup'd file descriptor upon failure.
7398 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
7399 (fts_safe_changedir): Tweak semantics to reflect that this function
7400 now calls cwd_advance_fd and hence consumes its FD argument.
7401 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
7402 [struct FTS] (fts_rft): Remove now-unused member.
7403 [struct FTS] (fts_cycle.state): Improve comment.
7405 * lib/openat.c (openat_needs_fchdir): New function.
7406 * lib/openat.h (openat_needs_fchdir): Declare it.
7408 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
7410 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
7411 Problem and fix reported by Pádraig Brady in
7412 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
7414 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7416 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
7418 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7420 * lib/memcoll.c (memcoll): Optimize for the common case where the
7421 arguments are bytewise equal.
7423 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
7425 * doc/regexprops-generic.texi: Add a copyright notice.
7427 2006-08-15 Bruno Haible <bruno@clisp.org>
7429 * modules/tmpdir (License): Change to LGPL.
7431 2006-08-15 Bruno Haible <bruno@clisp.org>
7433 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
7436 2006-08-14 Simon Josefsson <jas@extundo.com>
7438 * config/srclist.txt: Add gnupload.
7440 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7442 Change copyright notice from LGPL 2 to GPL 2, since that's the
7443 standard form used in the gnulib repository.
7444 * tests/test-lock.c: Likewise.
7445 * tests/test-stdint.c: Likewise.
7446 * tests/test-tls.c: Likewise.
7448 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
7449 prelude-manager. User shorter URLs for GNU projects, without '?'.
7450 Add copyright notice.
7452 * check-module: Add copyright notice. Output a copyright
7453 notice if "--version" is specified.
7454 * modules/COPYING: New file.
7455 * tests/test-getaddrinfo.c: Add copyright notice.
7456 * tests/test-verify.c: Likewise.
7458 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7460 Change copyright notice from LGPL 2 to GPL 2, since that's the
7461 standard form used in the gnulib repository.
7462 * lib/lock.c: LGPL -> GPL.
7463 * lib/lock.h: Likewise.
7464 * lib/strnlen1.c: Likewise.
7465 * lib/strnlen1.h: Likewise.
7466 * lib/tls.c: Likewise.
7467 * lib/tls.h: Likewise.
7468 * lib/tmpdir.c: Likewise.
7470 * lib/TODO: Remove; this belongs only in coreutils.
7472 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7474 Add copyright notices to long-enough files that lack them, since
7475 otherwise the files aren't clearly free. Use the same notice that
7476 getdate.texi already uses.
7477 * doc/alloca-opt.texi: Add copyright notice.
7478 * doc/alloca.texi: Likewise.
7479 * doc/ctime.texi: Likewise.
7480 * doc/functions.texi: Likewise.
7481 * doc/gcd.texi: Likewise.
7482 * doc/gnulib-tool.texi: Likewise.
7483 * doc/inet_ntoa.texi: Likewise.
7484 * doc/visibility.texi: Likewise.
7486 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
7487 * doc/quote.texi: Add copyright notice.
7489 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
7490 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
7491 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
7492 Mention SunOS 5.11. Mention that everything before SunOS 5.7
7493 is now obsolete, and give a pointer to the Sun list.
7494 Add copyright notice.
7496 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
7498 * config/srclistvars.sh: Add copyright notice.
7500 2006-08-14 Eric Blake <ebb9@byu.net>
7502 Import the following change from libc:
7504 2006-08-12 Ulrich Drepper <drepper@redhat.com>
7507 * lib/misc/error.c: Add space between program name and message if file
7510 2006-08-12 Karl Berry <karl@gnu.org>
7512 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
7513 remove, these originate in gnulib now.
7515 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7517 * doc/Makefile (standards.info standards.html standards.dvi):
7518 Also depend on make-stds.texi.
7520 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
7522 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
7523 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
7525 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
7526 in wchar_t. Problem reported by Eric Blake.
7528 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
7529 LEN is smaller than SIZE. Suggested by Bruno Haible.
7530 Also, help the compiler to keep LEN in a register.
7532 2006-08-11 Eric Blake <ebb9@byu.net>
7534 * users.txt: Sort. Add tar.
7536 2006-08-11 Bruno Haible <bruno@clisp.org>
7538 * users.txt: New file.
7540 2006-08-11 Bruno Haible <bruno@clisp.org>
7542 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
7543 before <wchar.h>. Needed for OSF/1 and BSD/OS.
7545 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
7547 * modules/snprintf (Depends-on): Remove minmax.
7548 (Maintainer): Add self and Bruno.
7550 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
7552 * lib/.cppi-disable: Add snprintf.h, socket_.h.
7553 * lib/snprintf.c: Include <errno.h> and <limits.h>.
7554 (EOVERFLOW): Define if the system does not.
7555 Do not include "minmax.h"; it wasn't used.
7556 (snprintf): Don't assume size_t promotes to an unsigned type.
7557 Fix bug when generated string was too long for the buffer: the
7558 buffer's contents are supposed to be the initial prefix of the
7559 output. Don't assume vasnprintf returns EOVERFLOW if the size
7560 exceeds INT_MAX; do the check ourselves.
7562 Import the following changes from libc:
7564 2006-06-02 Jakub Jelinek <jakub@redhat.com>
7566 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
7567 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
7568 set wc to the byte which couldn't be converted.
7569 (re_string_reconstruct): Don't clear valid_raw_len before calling
7570 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
7571 tip_context using re_string_context_at.
7573 2006-05-02 Ulrich Drepper <drepper@redhat.com>
7575 * lib/posix/regex.h: g++ still cannot handled [restrict].
7577 2006-04-21 Ulrich Drepper <drepper@redhat.com>
7579 * lib/posix/regex.h: Remove special handling for VMS.
7581 2006-08-10 Jim Meyering <jim@meyering.net>
7583 * modules/same-inode: New module.
7584 * modules/dev-ino: New module.
7585 * modules/cycle-check: Depend on these modules, rather than simply
7586 including their .h files.
7587 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
7588 required via m4/cycle-check.m4.
7589 * modules/same: Depend on new same-inode module, rather than
7590 including same-inode.h.
7591 * modules/chdir-safer: New file.
7593 * modules/chown (Depends-on): Add stat-macros.
7595 2006-08-10 Jim Meyering <jim@meyering.net>
7597 * m4/cycle-check.m4: New file.
7598 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
7599 * m4/dev-ino.m4, m4/same-inode.m4: New files.
7601 2006-08-10 Eric Blake <ebb9@byu.net>
7603 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
7604 in from original proposal.
7606 2006-08-10 Eric Blake <ebb9@byu.net>
7607 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7609 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
7612 2006-08-10 Bruno Haible <bruno@clisp.org>
7614 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
7617 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7619 Sync from coreutils.
7621 2006-07-19 Mike Frysinger <vapier@gentoo.org>
7623 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
7624 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
7626 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7628 * modules/restrict: Remove; no longer needed now that we assume
7629 Autoconf 2.59 or later.
7630 * MODULES.html.sh: Remove 'restrict'.
7631 * modules/argp (Depends-on): Remove 'restrict'.
7632 * modules/base64 (Depends-on): Likewise.
7633 * modules/gc (Depends-on): Likewise.
7634 * modules/getaddrinfo (Depends-on): Likewise.
7635 * modules/glob (Depends-on): Likewise.
7636 * modules/inet_ntop (Depends-on): Likewise.
7637 * modules/inet_pton (Depends-on): Likewise.
7638 * modules/memxor (Depends-on): Likewise.
7639 * modules/regex (Depends-on): Likewise.
7640 * modules/strtok_r (Depends-on): Likewise.
7641 * modules/time_r (Depends-on): Likewise.
7643 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7645 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
7646 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
7647 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7648 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
7649 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7650 * m4/memxor.m4 (gl_MEMXOR): Likewise.
7651 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
7652 gl_C_RESTRICT replaced by AC_C_RESTRICT.
7654 Merge from coreutils.
7655 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
7656 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
7657 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7658 * m4/time_r.m4 (gl_TIME_R): Likewise.
7660 2006-08-09 Karl Berry <karl@gnu.org>
7662 * config/srclist.txt: no more gettext-tools, per Bruno.
7664 2006-08-08 Eric Blake <ebb9@byu.net>
7666 * modules/verror: New module.
7667 * MODULES.html.sh: Document it.
7669 2006-08-08 Eric Blake <ebb9@byu.net>
7671 * lib/verror.h, lib/verror.c: New files.
7673 2006-08-08 Eric Blake <ebb9@byu.net>
7675 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
7676 verror_at_line output complies with GNU Coding Standards even when
7679 2006-08-07 Bruno Haible <bruno@clisp.org>
7681 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
7683 Reported by Ralf Wildenhues.
7685 2006-08-07 Bruno Haible <bruno@clisp.org>
7687 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
7688 in an AC_DEFUN. Needed so that the autoconf snippets can use
7691 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7693 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7694 Initialize pkgdata_DATA.
7695 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
7698 2006-08-06 Eric Blake <ebb9@byu.net>
7700 * lib/error.h: Fold in some upstream changes from glibc.
7701 * lib/error.c: Likewise.
7703 2006-08-04 Bruno Haible <bruno@clisp.org>
7705 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7706 Make the mostlyclean-local rule depend on mostlyclean-generic.
7707 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
7709 2006-07-31 Bruno Haible <bruno@clisp.org>
7711 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
7712 <stdlib.h>, <string.h>.
7714 2006-07-30 Bruno Haible <bruno@clisp.org>
7716 * modules/readlink (License): Change to LGPL.
7718 2006-07-30 Bruno Haible <bruno@clisp.org>
7720 * modules/javaversion (Makefile.am): Distribute javaversion.java and
7721 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
7722 set PKGDATADIR to point to it.
7724 2006-07-30 Bruno Haible <bruno@clisp.org>
7726 * modules/csharpexec (configure.ac): Comment out macro invocation.
7727 * modules/javaexec (configure.ac): Likewise.
7728 * modules/javacomp-script (configure.ac): Likewise.
7730 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
7732 2006-07-30 Bruno Haible <bruno@clisp.org>
7734 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
7737 2006-07-30 Bruno Haible <bruno@clisp.org>
7739 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
7741 2006-07-30 Bruno Haible <bruno@clisp.org>
7743 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7744 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
7747 2006-07-29 Bruno Haible <bruno@clisp.org>
7749 Make it possible for gnulib-tool to work with locally modified or
7750 augmented gnulib repositories.
7751 * gnulib-tool (func_usage): Document --local-dir option.
7752 (local_gnulib_dir): New variable.
7753 Handle --local-dir option.
7754 (func_lookup_file): New function.
7755 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
7756 (func_get_description, func_get_filelist, func_get_description,
7757 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
7758 func_get_automake_snippet, func_get_include_directive,
7759 func_get_license, func_get_maintainer): Use func_lookup_file.
7760 (func_import, func_create_testdir): Use func_lookup_file.
7762 2006-07-29 Bruno Haible <bruno@clisp.org>
7764 * modules/setenv (Depends-on): Add unistd.
7766 2006-07-29 Bruno Haible <bruno@clisp.org>
7768 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
7770 2006-07-29 Bruno Haible <bruno@clisp.org>
7772 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
7774 2006-07-29 Bruno Haible <bruno@clisp.org>
7776 * gnulib-tool (import, update): If there is no Makefile.am, look at
7777 aclocal.m4, instead of bailing out.
7779 2006-07-29 Bruno Haible <bruno@clisp.org>
7781 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
7782 Categorize the options by when they are useful.
7784 2006-07-29 Bruno Haible <bruno@clisp.org>
7786 * gnulib-tool (func_usage): Document option --no-libtool.
7787 Handle option --no-libtool.
7788 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
7789 for changed semantics of $libtool variable.
7790 (func_import): Likewise. If libtool is not used, show this through
7791 an option --no-libtool.
7792 (func_create_testdir): Update.
7794 2006-07-29 Bruno Haible <bruno@clisp.org>
7796 * gnulib-tool (func_import): Extend error message about missing
7799 2006-07-29 Bruno Haible <bruno@clisp.org>
7801 * gnulib-tool (func_import): Don't create the $docbase directory if
7802 there is no file to store there.
7804 2006-07-29 Bruno Haible <bruno@clisp.org>
7806 * gnulib-tool (autoconf_minversion): If a --dir option is given and
7807 relevant, look for configure.ac there, not in the current directory.
7808 Also use a simple search for AC_PREREQ, not "autoconf --trace".
7810 2006-07-29 Bruno Haible <bruno@clisp.org>
7812 * gnulib-tool (SORT): New variable.
7813 (func_usage): Undocument --assume-autoconf option.
7814 Remove --assume-autoconf option handling.
7815 (autoconf_minversion): Determine from the contents of configure.ac.
7816 (func_import): Remove autoconf_minversion handling.
7817 Suggested by Eric Blake.
7819 2006-07-29 Bruno Haible <bruno@clisp.org>
7821 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
7823 2006-07-29 Bruno Haible <bruno@clisp.org>
7825 * config/srclist.txt (*setenv.[ch]): Remove rules.
7827 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7829 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
7831 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7833 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
7836 2006-07-28 Simon Josefsson <jas@extundo.com>
7838 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
7839 * modules/inet_pton (Depends-on): Likewise.
7841 2006-07-28 Simon Josefsson <jas@extundo.com>
7843 * m4/netinet_in_h.m4: New file.
7845 2006-07-28 Simon Josefsson <jas@extundo.com>
7847 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
7850 2006-07-28 Simon Josefsson <jas@extundo.com>
7852 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
7855 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
7857 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
7858 setgid on directories only if they set these bits.
7859 * lib/modechange.h: Remove obsolete comment about masks.
7861 2006-07-28 Eric Blake <ebb9@byu.net>
7863 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
7866 2006-07-28 Bruno Haible <bruno@clisp.org>
7868 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
7870 2006-07-28 Bruno Haible <bruno@clisp.org>
7872 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
7874 2006-07-28 Bruno Haible <bruno@clisp.org>
7876 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7877 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
7879 Avoids link error on FreeBSD 4.x.
7880 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7882 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
7884 * lib/mbswidth.c (iswcntrl): Likewise.
7886 2006-07-27 Bruno Haible <bruno@clisp.org>
7888 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
7891 2006-07-27 Bruno Haible <bruno@clisp.org>
7893 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
7894 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
7897 2006-07-26 Eric Blake <ebb9@byu.net>
7899 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
7901 2006-07-26 Eric Blake <ebb9@byu.net>
7903 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
7904 like mingw that lack mkstemp.
7905 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
7906 avoid compilation warning on mingw.
7908 2006-07-26 Bruno Haible <bruno@clisp.org>
7910 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
7911 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
7912 INT_FAST*_MIN, INTPTR_MIN.
7914 2006-07-25 Bruno Haible <bruno@clisp.org>
7916 * modules/version-etc (Depends-on): Add stdarg.
7918 2006-07-25 Bruno Haible <bruno@clisp.org>
7920 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
7923 2006-07-25 Bruno Haible <bruno@clisp.org>
7925 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
7926 defined in <stdarg.h> or config.h.
7928 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
7930 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
7931 (gl_STDIO_SAFER): Remove.
7933 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
7935 * MODULES.html.sh (File stream based Input/Output):
7936 Add fopen-safer, tmpfile-safer; remove stdio-safer.
7937 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
7938 * modules/fopen-safer, modules/tmpfile-safer: New files.
7939 * modules/stdio-safer: Remove.
7941 2006-07-24 Bruno Haible <bruno@clisp.org>
7943 * modules/tmpdir: New file.
7944 * MODULES.html.sh (File system functions): Add it.
7946 2006-07-24 Bruno Haible <bruno@clisp.org>
7948 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
7949 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
7951 2006-07-24 Bruno Haible <bruno@clisp.org>
7953 * modules/clean-temp: New file.
7955 2006-07-24 Bruno Haible <bruno@clisp.org>
7957 * m4/tmpdir.m4: New file, from GNU gettext.
7959 2006-07-24 Bruno Haible <bruno@clisp.org>
7961 * lib/tmpdir.h: New file, from GNU gettext.
7962 * lib/tmpdir.c: New file, from GNU gettext.
7964 2006-07-24 Bruno Haible <bruno@clisp.org>
7966 * lib/clean-temp.h: New file, from GNU gettext.
7967 * lib/clean-temp.c: New file, from GNU gettext.
7969 2006-07-23 Eric Blake <ebb9@byu.net>
7971 * modules/stdio-safer (Files): Add tmpfile-safer.c.
7972 (Depends-on): Add binary-io.
7974 2006-07-23 Eric Blake <ebb9@byu.net>
7976 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
7978 2006-07-23 Eric Blake <ebb9@byu.net>
7980 * lib/tmpfile-safer.c: New file.
7981 * lib/stdio-safer.h (fopen_safer): Add prototype.
7982 * lib/stdio--.h (tmpfile): Make safer.
7984 2006-07-23 Bruno Haible <bruno@clisp.org>
7986 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
7987 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
7988 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
7989 gl_linked_remove_at): Use it.
7991 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7992 and Simon Josefsson <jas@extundo.com>
7994 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
7996 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
7998 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8000 * modules/close-stream: New file.
8001 * modules/closeout (Description): Make it clear that it exits
8002 with a diagnostic on error.
8003 (Depends-on): Add close-stream. Remove fpending, stdbool.
8004 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
8006 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8008 * m4/close-stream.m4: New file.
8010 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
8012 * lib/close-stream.c, lib/close-stream.h: New files.
8014 2006-07-22 Bruno Haible <bruno@clisp.org>
8016 Merge from GNU gettext 0.15.
8018 2006-05-01 Bruno Haible <bruno@clisp.org>
8020 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
8022 2006-07-22 Bruno Haible <bruno@clisp.org>
8024 * modules/javaversion: New file.
8025 * MODULES.html.sh (Java): Add javaversion.
8027 2006-03-12 Bruno Haible <bruno@clisp.org>
8029 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
8031 2005-12-04 Bruno Haible <bruno@clisp.org>
8033 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
8036 2006-06-21 Bruno Haible <bruno@clisp.org>
8038 Avoid warnings from recent versions of mcs.
8039 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
8040 -o, -L, -r any more. Use options documented since mcs-1.0
8041 instead. Similarly for -g.
8043 2005-12-04 Bruno Haible <bruno@clisp.org>
8045 * build-aux/csharpcomp.sh.in: Suffix for resources is
8046 .resources, not .resource.
8048 2005-07-09 Bruno Haible <bruno@clisp.org>
8050 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
8052 Reported by Mark Junker <mjscod@gmx.de>.
8054 2006-07-22 Bruno Haible <bruno@clisp.org>
8056 * modules/gettext: Upgrade to gettext-0.15.
8057 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
8059 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
8061 2006-07-22 Bruno Haible <bruno@clisp.org>
8063 Merge from GNU gettext 0.15.
8065 2006-03-25 Bruno Haible <bruno@clisp.org>
8067 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
8069 2006-07-21 Bruno Haible <bruno@clisp.org>
8071 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
8074 2006-05-09 Bruno Haible <bruno@clisp.org>
8076 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
8077 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
8078 for the conftestver execution.
8080 2006-05-01 Bruno Haible <bruno@clisp.org>
8082 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
8083 optional target-version argument. Verify that the compiler
8084 groks source of the specified source-version, or add -source
8085 option as necessary. Verify that the compiler produces
8086 bytecode in the specified target-version, or add -target and
8087 -source options as necessary. Make the result of the test
8088 available as variable CONF_JAVAC. Also log error output in
8091 2006-03-11 Bruno Haible <bruno@clisp.org>
8093 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
8095 2006-05-09 Bruno Haible <bruno@clisp.org>
8097 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
8098 CLASSPATH_SEPARATOR to a semicolon.
8100 2006-03-12 Bruno Haible <bruno@clisp.org>
8102 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
8103 available as variable CONF_JAVA, for subsequent autoconf
8104 tests. Also log error output in config.log.
8106 2006-07-19 Bruno Haible <bruno@clisp.org>
8108 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
8109 that getline works on glibc2 systems. Needed to avoid trouble
8111 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
8113 2005-12-04 Bruno Haible <bruno@clisp.org>
8115 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
8116 launcher (untested).
8118 2005-12-04 Bruno Haible <bruno@clisp.org>
8120 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
8122 2006-07-22 Bruno Haible <bruno@clisp.org>
8124 * gettext.m4: Update from GNU gettext-0.15.
8127 * inttypes-pri.m4: Likewise.
8128 * inttypes-h.m4: Renamed from inttypes.m4.
8129 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
8131 2006-07-22 Bruno Haible <bruno@clisp.org>
8133 Merge from GNU gettext 0.15.
8135 2005-07-05 Bruno Haible <bruno@clisp.org>
8137 * printf-args.c (printf_fetchargs): Work around broken
8138 definition of wint_t on mingw.
8140 2005-02-12 Bruno Haible <bruno@clisp.org>
8142 * xallocsa.h: Add extern "C" for C++.
8144 2006-05-17 Bruno Haible <bruno@clisp.org>
8147 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
8149 2006-04-30 Bruno Haible <bruno@clisp.org>
8151 * progreloc.c: Include <mach-o/dyld.h> if available.
8152 (find_executable): Use _NSGetExecutablePath when possible.
8154 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
8156 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
8159 2005-12-29 Bruno Haible <bruno@clisp.org>
8161 * progreloc.c (set_program_name_and_installdir): Fix
8164 2005-12-04 Bruno Haible <bruno@clisp.org>
8167 * progreloc.c: Include <windows.h> also on Cygwin.
8168 (find_executable): Add support for Cygwin.
8169 (set_program_name_and_installdir): Handle also platforms with
8172 2006-07-11 Bruno Haible <bruno@clisp.org>
8174 * javacomp.c: Fix a comment.
8175 Reported by Jim Meyering.
8177 2006-04-30 Bruno Haible <bruno@clisp.org>
8179 * javacomp.h (compile_java_class): Add source_version,
8180 target_version arguments.
8181 * javacomp.c: Rewritten to choose only a compiler that
8182 respects the specified source_version and target_version.
8184 2006-06-27 Bruno Haible <bruno@clisp.org>
8186 Assume correct S_ISDIR macro.
8187 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
8189 2006-07-22 Bruno Haible <bruno@clisp.org>
8191 * javaversion.h: New file, from GNU gettext.
8192 * javaversion.c: New file, from GNU gettext.
8193 * javaversion.java: New file, from GNU gettext.
8194 * javaversion.class: New file, from GNU gettext.
8196 2006-05-17 Bruno Haible <bruno@clisp.org>
8199 * javaexec.c (execute_java_class): Test for jview program
8202 2006-04-09 Bruno Haible <bruno@clisp.org>
8204 * fatal-signal.c: Don't include string.h.
8205 (at_fatal_signal): Use a copying loop instead of memcpy.
8207 2005-12-04 Bruno Haible <bruno@clisp.org>
8209 * csharpexec.c: Add support for 'clix' launcher (untested).
8210 (execute_csharp_using_sscli): New function.
8211 (execute_csharp_program): Call it.
8213 2006-06-21 Bruno Haible <bruno@clisp.org>
8215 Avoid warnings from recent versions of mcs.
8216 * csharpcomp.c (compile_csharp_using_mono): Don't use options
8217 -o, -L, -r any more. Use options documented since mcs-1.0
8218 instead. Similarly for -g.
8220 2005-07-09 Bruno Haible <bruno@clisp.org>
8222 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
8224 Reported by Mark Junker <mjscod@gmx.de>.
8226 2006-06-17 Bruno Haible <bruno@clisp.org>
8228 * config.charset: Update for NetBSD 3.0.
8230 2006-05-17 Bruno Haible <bruno@clisp.org>
8233 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
8235 2006-05-16 Bruno Haible <bruno@clisp.org>
8237 * localcharset.c [CYGWIN]: Include <windows.h>.
8238 (get_charset_aliases): For Cygwin, return the same CPxxx
8239 aliases list as under WIN32.
8240 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
8241 the environment variables. Fall back to GetACP().
8243 2006-04-05 Bruno Haible <bruno@clisp.org>
8245 * config.charset: Update Juan Manuel Guerrero's address.
8247 2005-02-12 Bruno Haible <bruno@clisp.org>
8249 * allocsa.h: Add extern "C" for C++.
8251 2005-02-10 Bruno Haible <bruno@clisp.org>
8253 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
8254 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
8256 2006-07-22 Bruno Haible <bruno@clisp.org>
8258 * gettext.h: Update to GNU gettext-0.15.
8260 2006-07-22 Bruno Haible <bruno@clisp.org>
8262 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
8263 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
8264 lib-prefix.m4, longdouble.m4, ssize_t.m4.
8266 2006-07-21 Eric Blake <ebb9@byu.net>
8268 * modules/stdlib-safer: New file.
8269 * MODULES.html.sh (File stream based Input/Output): Add
8272 2006-07-21 Eric Blake <ebb9@byu.net>
8274 * lib/stdlib-safer.h: New file from coreutils, required by
8277 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
8279 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
8281 2006-07-20 Bruno Haible <bruno@clisp.org>
8283 * gnulib-tool: Recognize new option --assume-autoconf.
8284 (autoconf_minversion): New variable.
8285 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
8287 2006-07-20 Bruno Haible <bruno@clisp.org>
8289 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
8291 2006-07-19 Derek R. Price <derek@ximbiot.com>
8293 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
8294 Reindent and repaginate.
8296 2006-07-19 Derek Price <derek@ximbiot.com>
8298 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
8301 2006-07-17 Bruno Haible <bruno@clisp.org>
8303 * modules/list: New file.
8304 * modules/array-list: New file.
8305 * modules/carray-list, modules/carray-list-tests: New files.
8306 * modules/linked-list, modules/linked-list-tests: New files.
8307 * modules/avltree-list, modules/avltree-list-tests: New files.
8308 * modules/rbtree-list, modules/rbtree-list-tests: New files.
8309 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
8310 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
8311 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
8312 * modules/oset: New file.
8313 * modules/array-oset: New file.
8314 * modules/avltree-oset, modules/avltree-oset-tests: New files.
8315 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
8316 * tests/test-carray_list.c: New file.
8317 * tests/test-linked_list.c: New file.
8318 * tests/test-avltree_list.c: New file.
8319 * tests/test-rbtree_list.c: New file.
8320 * tests/test-linkedhash_list.c: New file.
8321 * tests/test-avltreehash_list.c: New file.
8322 * tests/test-rbtreehash_list.c: New file.
8323 * tests/test-avltree_oset.c: New file.
8324 * tests/test-rbtree_oset.c: New file.
8325 * MODULES.html.sh (Container data structures): New section.
8327 2006-07-17 Bruno Haible <bruno@clisp.org>
8329 * m4/gl_list.m4: New file.
8331 2006-07-17 Bruno Haible <bruno@clisp.org>
8333 * lib/gl_list.h: New file.
8334 * lib/gl_list.c: New file.
8335 * lib/gl_array_list.h: New file.
8336 * lib/gl_array_list.c: New file.
8337 * lib/gl_carray_list.h: New file.
8338 * lib/gl_carray_list.c: New file.
8339 * lib/gl_linked_list.h: New file.
8340 * lib/gl_linked_list.c: New file.
8341 * lib/gl_anylinked_list1.h: New file.
8342 * lib/gl_anylinked_list2.h: New file.
8343 * lib/gl_avltree_list.h: New file.
8344 * lib/gl_avltree_list.c: New file.
8345 * lib/gl_anyavltree_list1.h: New file.
8346 * lib/gl_anyavltree_list2.h: New file.
8347 * lib/gl_rbtree_list.h: New file.
8348 * lib/gl_rbtree_list.c: New file.
8349 * lib/gl_anyrbtree_list1.h: New file.
8350 * lib/gl_anyrbtree_list2.h: New file.
8351 * lib/gl_anytree_list1.h: New file.
8352 * lib/gl_anytree_list2.h: New file.
8353 * lib/gl_linkedhash_list.h: New file.
8354 * lib/gl_linkedhash_list.c: New file.
8355 * lib/gl_anyhash_list1.h: New file.
8356 * lib/gl_anyhash_list2.h: New file.
8357 * lib/gl_avltreehash_list.h: New file.
8358 * lib/gl_avltreehash_list.c: New file.
8359 * lib/gl_rbtreehash_list.h: New file.
8360 * lib/gl_rbtreehash_list.c: New file.
8361 * lib/gl_anytreehash_list1.h: New file.
8362 * lib/gl_anytreehash_list2.h: New file.
8364 * lib/gl_oset.h: New file.
8365 * lib/gl_oset.c: New file.
8366 * lib/gl_array_oset.h: New file.
8367 * lib/gl_array_oset.c: New file.
8368 * lib/gl_avltree_oset.h: New file.
8369 * lib/gl_avltree_oset.c: New file.
8370 * lib/gl_rbtree_oset.h: New file.
8371 * lib/gl_rbtree_oset.c: New file.
8372 * lib/gl_anytree_oset.h: New file.
8374 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
8376 * m4/mkancesdirs.m4: New file.
8377 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
8378 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
8379 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
8382 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
8384 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
8385 * lib/mkancesdirs.h: New files.
8386 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
8387 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
8388 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
8389 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
8390 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
8391 callers changed. Revamp internals significantly, by not
8392 attempting to create directories that are temporarily more
8393 permissive than the final results. Do not attempt to use
8394 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
8395 This removes some race conditions, fixes some bugs, and simplifies
8396 things. Use new dirchownmod function to do owner and mode changes.
8397 * lib/mkdir-p.h: Likewise.
8398 * lib/modechange.c (octal_to_mode): New function.
8399 (struct mode_change): New member mentioned.
8400 (make_node_op_equals): New arg mentioned. All callers changed.
8401 (mode_compile): Keep track of which mode bits the user has explicitly
8403 (mode_adjust): New arg DIR, so that we implement the X op correctly.
8404 New arg PMODE_BITS, to keep track of which mode bits the user
8405 mentioned; it treats S_ISUID and S_ISGID speciall.
8406 All callers changed.
8407 * lib/modechange.h: Likewise.
8409 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
8411 * MODULES.html.sh: Add mkancestors.
8412 * modules/mkancesdirs: New module.
8413 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
8414 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
8415 The chdir-safer and afs files are now orphans; I'll remove them
8416 unless someone speaks up.
8417 Add lib/dirchownmod.c, lib/dirchownmod.h.
8418 (Depends-on): Remove alloca, chown, save-cwd, dirname.
8419 Add lchown, mkancesdirs.
8420 (Maintainer): Add self.
8422 2006-07-15 Karl Berry <karl@gnu.org>
8424 * gnulib-tool: help message wording/arrangement.
8426 2006-07-14 Simon Josefsson <jas@extundo.com>
8428 * doc/gnulib.texi (Libtool and Windows): New section.
8430 2006-07-12 Simon Josefsson <jas@extundo.com>
8432 * modules/gendocs (License): Fix license, approved by Karl.
8434 2006-07-12 Eric Blake <ebb9@byu.net>
8436 * MODULES.html.sh: Add gendocs.
8438 2006-07-11 Eric Blake <ebb9@byu.net>
8440 * modules/fdl: New module, to install doc/fdl.texi.
8441 * MODULES.html.sh: Add new section for documentation modules.
8442 * gnulib-tool: Avoid space-tab.
8443 (--doc-base): New option, to manage files from doc.
8445 2006-07-11 Eric Blake <ebb9@byu.net>
8447 * m4/absolute-header.m4: Fix comments to match recent change.
8449 2006-07-11 Eric Blake <ebb9@byu.net>
8451 * gnulib-tool: List --doc-base before --tests-base.
8453 2006-07-11 Derek R. Price <derek@ximbiot.com>
8455 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
8457 2006-07-11 Bruno Haible <bruno@clisp.org>
8459 * README: Mention where to put documentation.
8461 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8463 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
8465 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
8467 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
8470 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
8472 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
8473 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
8474 "no/such/file/stdint.h" when there is no such file, so that
8475 the resulting C code can be parsed by dodgy compilers.
8476 Problems reported by Bob Proulx.
8478 2006-07-10 Derek R. Price <derek@ximbiot.com>
8480 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
8481 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
8482 macros into the GNU _D_EXACT_NAMLEN.
8483 * lib/savedir.c: Likewise.
8484 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
8486 2006-07-10 Derek R. Price <derek@ximbiot.com>
8487 and Paul Eggert <eggert@cs.ucla.edu>
8489 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
8491 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
8492 macros into the GNU _D_EXACT_NAMLEN.
8494 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
8496 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
8497 around the absolute name, to work around a problem with the HP-UX
8498 11.23 native C compiler, reported by Bob Proulx.
8500 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
8502 * doc/maintain.texi, make-stds.texi: Sync from
8503 <http://savannah.gnu.org/projects/gnustandards>.
8505 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
8507 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
8509 2006-07-09 Jim Meyering <jim@meyering.net>
8511 * m4/glob.m4: Remove a doubled word in a comment.
8513 2006-07-09 Jim Meyering <jim@meyering.net>
8515 * lib/argp-pv.c: Remove a doubled word in a comment.
8516 * lib/check-version.c (check_version): Likewise.
8517 * lib/javacomp.c (compile_java_class): Likewise.
8519 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
8521 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
8522 for the benefit of people using Autoconf 2.60. If you want to
8523 support older Autoconf versions you can copy m4/onceonly_2_57.m4
8524 (or m4/onceonly.m4, if pre-2.57) manually.
8526 2006-07-08 Jim Meyering <jim@meyering.net>
8528 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
8530 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
8531 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
8534 2006-07-08 Jim Meyering <jim@meyering.net>
8536 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
8538 2006-07-07 Simon Josefsson <jas@extundo.com>
8540 * tests/test-crc.c: Change expected crc value, the test vector
8541 were probably computed using the old broken crc.c?
8543 2006-07-06 Simon Josefsson <jas@extundo.com>
8545 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
8546 now the canonical place for the M4 file).
8548 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
8549 from the sys_socket dependency now.
8551 * modules/inet_pton (Files): Ditto.
8553 * modules/inet_ntop (Files): Ditto.
8555 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8557 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
8558 not gl_PREREQ_GETUSERSHELL.
8560 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8562 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
8563 with only one argument, for Autoconf 2.60.
8564 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
8565 expand to nothing, so add a shell command to avoid syntax error.
8566 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8568 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8570 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
8572 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8574 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
8575 no longer needed. Check for isblank decl.
8576 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
8577 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
8580 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8582 * lib/getloadavg.c: Use __VMS, not VMS.
8583 * lib/getopt.c: Likewise.
8584 * lib/getpagesize.h: Likewise.
8585 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
8586 and probably does not work.
8588 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8590 * lib/.cppi-disable: Add wcwidth.
8591 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
8592 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
8593 (ISGRAPH): Remove. All uses changed to isgraph.
8594 (FOLD) [!defined _LIBC]: Remove special case.
8595 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
8596 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
8598 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
8601 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
8603 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
8604 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
8605 brackets. Other minor changes to suppress some compiler
8608 2006-07-06 Derek R. Price <derek@ximbiot.com>
8609 and Paul Eggert <eggert@cs.ucla.edu>
8611 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
8612 of invoking obsolescent AC_HEADER_DIRENT macro.
8613 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8614 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
8615 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8616 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8617 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
8618 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8619 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
8620 * m4/readdir.m4: Remove; no longer needed.
8622 2006-07-06 Derek R. Price <derek@ximbiot.com>
8623 and Paul Eggert <eggert@cs.ucla.edu>
8625 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
8626 Don't worry about this obsolete case any more.
8627 (HAVE_DIR): Remove. All uses removed; we now assume you can read
8629 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
8630 worry about this obsolete case any more.
8631 * lib/fts.c: Likewise.
8632 * lib/getcwd.c: Likewise.
8633 * lib/glob.h: Likewise.
8634 * lib/savedir.c: Likewise.
8636 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
8638 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
8639 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
8640 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
8643 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8644 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8645 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
8647 * m4/getdate.m4 (gl_GETDATE): Likewise.
8648 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
8649 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
8650 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8651 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8652 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8653 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
8654 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
8657 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
8659 * lib/memcasecmp.c: Include <limits.h>.
8660 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
8661 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
8662 Don't assume isdigit succeeds only on '0' through '9'.
8664 2006-07-05 Eric Blake <ebb9@byu.net>
8666 * modules/getaddrinfo (Depends-on): Add snprintf.
8668 2006-07-05 Eric Blake <ebb9@byu.net>
8670 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
8671 to avoid 'header present but could not be compiled' on cygwin.
8673 2006-07-05 Eric Blake <ebb9@byu.net>
8675 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
8676 missing from netdb.h.
8677 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
8679 2006-07-05 Derek R. Price <derek@ximbiot.com>
8681 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
8683 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
8684 * m4/getdate.m4 (gl_GETDATE): Likewise.
8685 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
8686 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
8687 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8688 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8689 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
8691 2006-07-05 Derek R. Price <derek@ximbiot.com>
8693 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
8694 All uses of is_space replaced by isspace.
8695 * lib/exit.h: Don't talk about STDC_HEADERS.
8696 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
8697 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
8698 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
8699 replaced by isprint etc.
8700 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
8701 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
8702 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
8703 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
8704 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
8705 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
8707 2006-07-05 Bruno Haible <bruno@clisp.org>
8709 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
8710 the function exists, before testing against AIX.
8711 Reported by Martin Lambers <marlam@marlam.de>.
8713 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
8715 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
8716 From Mark D. Baushke.
8718 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
8720 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
8721 to the absolute name, not just one, to bypass Sun C 5.8's
8722 "warning: #include of /usr/include/... may be non-portable".
8724 2006-07-04 Eric Blake <ebb9@byu.net>
8726 * modules/dirname-tests: New test module.
8727 * tests/test-dirname.c: New file, replacing dirname.c
8728 TEST_DIRNAME section that was recently deleted.
8730 2006-07-04 Bruno Haible <bruno@clisp.org>
8732 Assume ANSI C header files and <ctype.h> functions.
8733 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
8734 (mbsnwidth): Use isprint, iscntrl instead.
8736 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
8738 Merge from coreutils.
8739 * MODULES.html.sh: Add xstrtold.
8740 * modules/xstrtold: New file.
8741 * modules/cycle-check (Files): Add lib/same-inode.h.
8742 * modules/dirname (Files): Add m4/double-slash-root.m4.
8743 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
8744 * modules/mkdir-p (Files): Add lib/same-inode.h.
8745 * modules/same (Files): Add lib/same-inode.h.
8747 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
8749 * m4/absolute-header.m4: Renamed from full-header-path.m4.
8750 This is to keep the terminology clean; POSIX talks about
8751 "absolute pathnames", not "full pathnames", but the GNU
8752 Coding Standards say to use "path" for something else;
8753 so use "absolute" to keep both sides happy.
8754 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
8755 Set gl_absolute_header, not gl_full_header_path.
8756 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
8757 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
8760 Merge from coreutils.
8762 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
8764 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
8765 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
8766 want to require the building of c-strtod.o.
8767 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
8769 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
8771 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
8773 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
8774 --as-needed option if available. Problem reported by Albert Chin in
8775 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
8776 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
8777 cc merely issues a bunch of annoying warnings for --as-needed
8778 (this problem was reported by Bob Proulx). Also, try linking with
8779 -lm to detect a bug in binutils 2.16 (this problem was reported
8780 by Ralf Wildenhues).
8782 2006-06-18 Jim Meyering <jim@meyering.net>
8784 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
8785 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
8787 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
8788 also check for glibc-2.4's abort-inducing bug.
8790 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
8791 Low-probability clean-up should be to use rmdir to get rid of
8792 the just-created directory, not unlink.
8794 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
8795 configure fail, and request a bug report to inform us about it.
8796 Add a comment that, barring reports to the contrary, in 2007 we'll
8797 assume ftruncate is universally available.
8799 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
8801 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
8803 2006-03-12 Jim Meyering <jim@meyering.net>
8805 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
8806 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
8807 * m4/same.m4 (gl_SAME): Likewise.
8808 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
8810 2006-03-11 Eric Blake <ebb9@byu.net>
8812 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
8813 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
8814 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
8815 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
8817 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
8819 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
8820 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
8821 reported by Mark D. Baushke, one in
8822 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
8824 Merge from coreutils.
8826 * lib/.cppi-disable: Add stdint_.h.
8827 * lib/.cvsignore: Add stdint.h.
8829 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
8831 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
8832 both double and long double versions.
8833 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
8834 * lib/xstrtold.c: New file.
8835 * lib/xstrtod.h (xstrtold): New decl.
8837 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
8839 * lib/filemode.c (setst): Remove.
8840 (strmode): Rewrite to avoid setst. This makes the code shorter,
8841 (arguably) clearer, and the generated code is a bit smaller on my
8842 Debian GNU/Linux stable x86 host.
8844 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
8846 * lib/filemode.c: Include "filemode.h" first, to test the interface.
8847 Assume that filemode.h includes sys/types.h and sys/stat.h.
8848 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
8849 (ftypelet): Reorder to put common cases first, for efficiency.
8850 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
8852 (strmode): Renamed from mode_string, and now stores 12 bytes instead
8853 of 10, for compatibility with FreeBSD. All callers changed.
8854 (filemodestring): Now stores 12 bytes instead of 10, and sets file
8855 types that can't be deduced solely from st_mode. First arg is now a
8857 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
8858 (strmode): Renamed from mode_string.
8859 (filemodestring): New decl.
8860 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
8861 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
8863 (S_ISPORT, S_ISWHT): New macros, if not already defined.
8865 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
8867 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
8868 fsusage.h now does that. Include fsusage.h first, to test interface.
8869 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
8870 at most one method (the old code could have generated decls that
8871 didn't conform to C89, not that this was ever exercised).
8872 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
8874 2006-03-19 Jim Meyering <jim@meyering.net>
8876 Work even in a chroot where d_ino values for entries in "/"
8877 don't match the stat.st_ino values for the same names.
8878 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
8879 number, iterate through all entries again, using lstat instead.
8880 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
8881 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
8883 * lib/getcwd.c (__getcwd): Clarify a comment.
8884 Use memcpy in place of a call to strcpy.
8886 2006-03-12 Jim Meyering <jim@meyering.net>
8888 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
8889 matches that of the current directory (which we're about to chdir ".."
8890 out of), then save the dev-ino of the parent, instead.
8892 * lib/same-inode.h (SAME_INODE): New file/macro.
8893 * lib/chdir-safer.c (SAME_INODE): Remove definition.
8894 Include "same-inode.h", instead.
8895 * lib/same.c: Likewise.
8896 * lib/cycle-check.h: Include "same-inode.h".
8897 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
8898 * lib/cycle-check.c (SAME_INODE): Remove definition.
8899 * lib/root-dev-ino.h: Include "same-inode.h".
8901 2006-03-11 Eric Blake <ebb9@byu.net>
8903 * lib/same.c (same_name): s/base_name/last_component/
8904 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
8905 * lib/filenamecat.c (file_name_concat): Likewise.
8907 2006-03-11 Eric Blake <ebb9@byu.net>,
8908 Paul Eggert <eggert@cs.ucla.edu>
8910 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
8911 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
8913 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
8914 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
8915 (last_component): New method.
8916 * lib/dirname.c (dir_len): Determine when drive letters need a
8917 subsequent slash. Preserve // when it is special.
8918 (dir_name): Don't append dot when drive letter is absolute.
8919 [TEST_DIRNAME]: Move into a full-blown gnulib test.
8920 * lib/basename.c (base_name): New semantics - malloc the result.
8921 Preserve // when it is special. Preserve relative files that look
8923 (base_len): Preserve // when it is special.
8924 (last_component): New method, similar to old base_name semantics.
8925 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
8926 base_name. Strip redundant slashes from ///.
8928 2006-07-03 Jim Meyering <jim@meyering.net>
8930 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
8931 macro is used before the first cycle_check call.
8933 2006-07-03 Eric Blake <ebb9@byu.net>
8935 * modules/dirname (Depends-on): Add xstrndup.
8937 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
8939 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
8940 test cases, so that config.log is a bit easier to follow.
8942 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
8944 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
8945 both are 64 bits, since this seems to be the tradition, and this
8946 prevents gcc -Wformat from warning about usages with PRIuMAX. If
8947 we ever run into a host that prefers long long to long in this
8948 case, we'll need another configure-time test. Problem reported by
8951 2006-07-02 Eric Blake <ebb9@byu.net>
8953 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
8955 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8957 * modules/inttypes (Depends-on): No longer depends on stdint.
8958 * modules/stdint (Description): Say more about assumptions.
8959 Say that the fast types might differ. Say macros are used.
8960 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
8961 (Makefile.am): Revise list of substituted symbols to match
8963 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
8964 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
8965 * tests/test-stdint.c (verify_same_types)
8966 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
8967 the code conforms to C99/C89.
8968 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
8969 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
8971 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8973 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
8974 but fix a bug, by requiring at least 64 bits.
8975 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8976 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
8977 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
8978 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
8980 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
8981 changes. Make 2.59 a prerequisite. Check and substitute for
8982 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
8983 inttypes.h. Do not use special include files; just use the
8984 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
8985 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
8986 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
8987 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
8988 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
8989 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
8990 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
8991 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
8992 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
8993 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
8994 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
8995 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
8996 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
8997 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
8998 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
8999 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
9000 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
9001 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
9002 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
9003 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
9004 WINT_MAX. Check for C99 conformance more strictly, by detecting
9005 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
9006 not check for things that C99 does not require, e.g., int8_t. If
9007 a test isn't needed unless <stdint.h> isn't working, and is
9008 unlikely to be needed for any other reason, then don't do it
9009 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
9010 size_t, since we assume C89 freestanding at least. Do not check
9011 for sig_atomic_t, wchar_t, or wint_t, since the code now does
9012 the right thing even if the types are not defined. Instead use:
9013 (gl_STDINT_TYPE_PROPERTIES): New macro.
9014 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
9015 testing whether <sys/types.h> clashes, as Autoconf does this for
9016 us now. All uses removed.
9017 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
9018 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
9019 (gl_CHECK_TYPE_SAME):
9020 Remove; no longer needed.
9021 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
9022 exists, since we'll return 0 anyway in that case.
9023 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
9025 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
9027 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
9028 possible collision with system files.
9029 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
9030 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
9031 WCHAR_MIN and WCHAR_MAX in this case.
9032 (<stddef.h>): Do not include; no longer needed.
9033 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
9034 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
9035 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
9036 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
9037 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
9038 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
9039 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
9040 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
9041 !defined(__c99))]: Include in this case too, since it's harmless
9043 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
9045 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
9046 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
9047 (_STDINT_MIN, _STDINT_MAX): New macros.
9048 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
9049 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
9050 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
9051 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
9052 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
9053 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
9054 macros, not typedefs; this simplifies things quite a bit.
9055 Use long int for all types narrower than int64_t.
9056 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
9057 Define in terms of long long int or int64_t or long int,
9058 not int64_t or int32_t. This saves some compile-time testing.
9059 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
9060 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
9061 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
9062 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
9063 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
9064 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
9065 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
9066 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
9067 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
9068 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
9069 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9070 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9071 undef any previous version and define our own version, for
9072 simplicity and consistency with the new macros for types.
9073 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
9074 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
9075 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
9076 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
9077 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
9078 @WINT_T_SUFFIX@ to keep things simple here.
9079 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
9080 Simplify by assuming typical 8/16/32/64 host, since we're
9081 already doing that elsewhere anyway.
9082 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
9083 and assume long long int is 64 bits if available. This
9084 speeds up 'configure'.
9086 2006-07-01 Eric Blake <ebb9@byu.net>
9088 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
9089 Reported by Andreas Buening.
9091 2006-07-01 Eric Blake <ebb9@byu.net>
9093 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
9095 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
9097 * lib/getaddrinfo.c: fixed typo
9099 2006-06-29 Jim Meyering <jim@meyering.net>
9101 * modules/strftime (Maintainer): Add my name, since with the
9102 FPRINTFTIME changes strftime.c has forked from glibc.
9104 2006-06-29 Eric Blake <ebb9@byu.net>
9106 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
9108 2006-06-29 Eric Blake <ebb9@byu.net>
9110 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
9112 2006-06-29 Eric Blake <ebb9@byu.net>
9114 * lib/stat_.h: New file.
9116 2006-06-29 Eric Blake <ebb9@byu.net>
9118 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
9119 unused static function.
9121 2006-06-29 Eric Blake <ebb9@byu.net>
9123 * doc/functions.texi (Function Portability): Document missing lstat
9126 2006-06-29 Eric Blake <ebb9@byu.net>
9128 * MODULES.html.sh: Add sys_stat.
9129 * modules/sys_stat: New module.
9130 * modules/mkstemp (Depends-on): Add sys_stat.
9132 2006-06-29 Derek R. Price <derek@ximbiot.com>
9134 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
9136 2006-06-29 Derek R. Price <derek@ximbiot.com>
9138 * m4/c-bs-a.m4: Removed.
9140 2006-06-29 Derek R. Price <derek@ximbiot.com>
9142 * lib/strftime.c: Assume strftime() exists.
9144 2006-06-29 Derek Price <derek@ximbiot.com>
9146 * modules/c-bs-a: Removed - \a is C89.
9147 * MODULES.html.sh: Remove c-bs-a.
9149 2006-06-29 Bruno Haible <bruno@clisp.org>
9151 * modules/wcwidth (License): Change to LGPL.
9153 2006-06-28 Simon Josefsson <jas@extundo.com>
9155 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
9158 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
9161 2006-06-28 Simon Josefsson <jas@extundo.com>
9163 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
9165 2006-06-28 Simon Josefsson <jas@extundo.com>
9167 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
9168 functions there. It will succeed on Windows XP, but on Windows
9169 2000 and (presumably) earlier, it will fail, and use the internal
9171 (use_win32_p): New function.
9172 (getaddrinfo): Use strtoul on servname, to support numeric ports.
9173 Support AI_NUMERICSERV to disable getservbyname.
9174 (getnameinfo): New function, only supports
9175 NI_NUMERICHOST|NI_NUMERICSERV for now.
9177 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
9178 only have some of them. Add AI_NUMERICSERV. Add prototype for
9181 2006-06-28 Eric Blake <ebb9@byu.net>
9183 * modules/wcwidth: New file.
9184 * modules/mbchar (Depends-on): Add wcwidth.
9185 * modules/mbswidth (Depends-on): Add wcwidth.
9186 * MODULES.html.sh: Add wcwidth.
9188 2006-06-28 Eric Blake <ebb9@byu.net>
9190 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
9191 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
9193 2006-06-28 Eric Blake <ebb9@byu.net>
9195 * lib/xvasprintf.h: Fix comments.
9197 2006-06-28 Eric Blake <ebb9@byu.net>
9199 * lib/mbchar.h (wcwidth): Include wcwidth.h.
9200 * lib/mbswidth.c (wcwidth): Move from here...
9201 * lib/wcwidth.h: ...to this new file.
9203 2006-06-28 Derek R. Price <derek@ximbiot.com>
9205 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
9207 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
9209 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
9211 2006-06-28 Derek R. Price <derek@ximbiot.com>
9213 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
9214 Autoconf 2.60 says this stuff was obsolete.
9216 2006-06-28 Bruno Haible <bruno@clisp.org>
9218 * modules/wcwidth (Files): Add m4/wchar_t.m4.
9220 2006-06-28 Bruno Haible <bruno@clisp.org>
9222 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
9225 2006-06-28 Bruno Haible <bruno@clisp.org>
9227 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
9228 declaration for wcwidth.
9229 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
9231 2006-06-28 Bruno Haible <bruno@clisp.org>
9233 * lib/mkdtemp.c [MINGW]: Include <io.h>.
9234 (mkdir): Define using _mkdir.
9236 2006-06-28 Bruno Haible <bruno@clisp.org>
9238 * lib/getaddrinfo.h: Fix POSIX URL.
9239 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
9241 (use_win32_p): Make static.
9242 (getaddrinfo): Reject service name if it is empty or does not consist
9243 solely of decimal digits, or if its value is > 65535.
9244 (getnameinfo): Remove useless casts.
9246 2006-06-27 Simon Josefsson <jas@extundo.com>
9248 * modules/sys_select: New file, suggested by Bruno Haible, Paul
9249 Eggert and Martin Lambers.
9251 2006-06-27 Simon Josefsson <jas@extundo.com>
9253 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
9254 Eggert and Martin Lambers.
9256 2006-06-27 Bruno Haible <bruno@clisp.org>
9258 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
9259 result to 0, not to empty.
9260 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
9262 2006-06-27 Bruno Haible <bruno@clisp.org>
9264 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
9266 2006-06-26 Simon Josefsson <jas@extundo.com>
9268 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
9271 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
9273 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
9274 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
9275 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
9277 2006-06-26 Mark D. Baushke <mdb@gnu.org>
9279 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
9281 2006-06-26 Bruno Haible <bruno@clisp.org>
9283 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
9285 2006-06-26 Bruno Haible <bruno@clisp.org>
9287 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
9289 2006-06-26 Bruno Haible <bruno@clisp.org>
9291 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
9292 SGI C compiler in pre-C99 mode.
9293 Suggested by Mark D. Baushke and Larry Jones.
9295 2006-06-26 Bruno Haible <bruno@clisp.org>
9297 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
9299 Reported by Mark D. Baushke and Larry Jones.
9301 2006-06-26 Bruno Haible <bruno@clisp.org>
9303 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
9305 Suggested by Mark D. Baushke and Larry Jones.
9307 2006-06-23 Simon Josefsson <jas@extundo.com>
9308 Bruno Haible <bruno@clisp.org>
9310 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
9311 Emit mostlyclean-local rule.
9312 (func_emit_tests_Makefile_am): Likewise.
9313 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
9315 2006-06-23 Mark D. Baushke <mdb@gnu.org>
9317 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
9319 2006-06-23 Bruno Haible <bruno@clisp.org>
9321 * tests/test-stdint.c: Update to match ISO C 99 Technical
9324 2006-06-23 Bruno Haible <bruno@clisp.org>
9326 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
9328 2006-06-23 Bruno Haible <bruno@clisp.org>
9330 * lib/stdint_.h: Treat IRIX like OpenBSD.
9332 2006-06-23 Bruno Haible <bruno@clisp.org>
9334 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
9335 ISO C 99 Technical Corrigendum 1.
9337 2006-06-22 Simon Josefsson <jas@extundo.com>
9339 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
9342 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
9344 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
9345 needed. Some compiler complained about some of them. Problem reported
9347 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
9349 2006-06-21 Simon Josefsson <jas@extundo.com>
9351 * tests/test-getaddrinfo.c: New file.
9353 * modules/getaddrinfo-tests: New file.
9355 * MODULES.html.sh: Add inet_pton.
9357 * modules/inet_pton: New file.
9359 2006-06-21 Simon Josefsson <jas@extundo.com>
9361 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
9362 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
9363 of using the (limited) gnulib implementation on Windows XP.
9365 * m4/inet_pton.m4: New file.
9367 2006-06-21 Simon Josefsson <jas@extundo.com>
9369 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
9372 * lib/socket_.h: Don't define WINVER.
9374 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
9375 slightly modified to work in gnulib.
9377 2006-06-21 Simon Josefsson <jas@extundo.com>
9379 * doc/gnulib.texi (Windows sockets): Add.
9381 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
9383 * lib/read-file.c (fread_file): Start with buffer allocation of
9384 0 bytes rather than 1 byte; this simplifies the code.
9385 Don't invoke feof; it's not needed. Refactor to avoid duplicate
9386 code to free buffer and save/restore errno.
9387 (internal_read_file): Remove unused local.
9389 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
9391 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
9392 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
9393 Problem reported by Denis Excoffier in
9394 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
9396 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9398 * modules/sys_socket, modules/socklen: Include sys/types since
9399 FreeBSD 4.x's sys/socket.h needs it.
9401 2006-06-19 Simon Josefsson <jas@extundo.com>
9403 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
9405 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
9407 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
9409 2006-06-19 Bruno Haible <bruno@clisp.org>
9411 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
9412 and FULL_PATH_INTTYPES_H in angle brackets.
9413 Reported by Mark D. Baushke <mdb@gnu.org>.
9415 2006-06-17 Eric Blake <ebb9@byu.net>
9417 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
9420 2006-06-17 Bruno Haible <bruno@clisp.org>
9422 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
9425 2006-06-17 Bruno Haible <bruno@clisp.org>
9427 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
9428 whether errno is declared. Assume <errno.h> declares errno.
9430 2006-06-17 Bruno Haible <bruno@clisp.org>
9432 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
9434 2006-06-17 Bruno Haible <bruno@clisp.org>
9436 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
9437 problem on Solaris 2.5.1.
9439 2006-06-16 Eric Blake <ebb9@byu.net>
9441 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
9442 * lib/unicodeio.c [!defined errno]: Likewise.
9443 * lib/strtol.c [!defined errno]: Likewise.
9444 * lib/strtod.c [!defined errno]: Likewise.
9446 2006-06-15 Eric Blake <ebb9@byu.net>
9448 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
9450 2006-06-15 Eric Blake <ebb9@byu.net>
9452 * config/srclist.txt (ssize_t.m4): Lose sync.
9454 2006-06-15 Bruno Haible <bruno@clisp.org>
9456 * modules/stdint (Files): Include m4/full-header-path.m4,
9457 m4/size_max.m4, m4/wchar_t.m4.
9458 (Makefile.am): Many more substitutions.
9459 * modules/stdint-tests: New file.
9460 * tests/test-stdint.c: New file.
9462 2006-06-15 Bruno Haible <bruno@clisp.org>
9464 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
9465 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
9466 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
9467 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
9468 gl_CHECK_TYPE_SAME): New macros.
9470 2006-06-15 Bruno Haible <bruno@clisp.org>
9472 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
9474 2006-06-15 Bruno Haible <bruno@clisp.org>
9476 * lib/stdint_.h: Rewritten to be fully auto-configured.
9477 Fixes bug on HP-UX/IA64.
9479 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
9481 * lib/getdate.y (__attribute__): Don't define if already defined.
9482 Problem reported by Larry Jones.
9483 * lib/utimens.c (__attribute__): Likewise.
9485 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
9487 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
9488 reported by Andreas Schwab.
9490 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9491 Bruno Haible <bruno@clisp.org>
9493 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
9494 check for the declaration of strnlen and a run test that exposes the
9495 AIX 5.1 strnlen bug. In the failure case, #define strndup to
9498 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9499 Bruno Haible <bruno@clisp.org>
9501 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
9503 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9505 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
9506 compile test, for Tru64 4.0D.
9508 2006-05-28 Karl Berry <karl@gnu.org>
9510 * config/srclist.txt (printf-args.c): lose sync.
9512 2006-05-26 Martin Lambers <marlam@marlam.de>
9514 * lib/getpass.c: Updates the test for the native W32 API, and adds
9515 missing includes, thus fixing compilation warnings.
9517 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
9519 * lib/exclude.c (exclude_fnmatch): New function.
9520 (excluded_file_name): Call exclude_fnmatch.
9521 * lib/exclude.h (excluded_file_name): New prototype
9523 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
9525 * lib/tempname.c (small_open, large_open): New macros.
9526 (__open, __open64) [!_LIBC]: Remove.
9527 (__gen_tempname): Use small_open and large_open instead of __open
9528 and __open64. This fixes a portability bug on HP-UX 11.11i
9529 reported by Simon Wing-Tang in
9530 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
9532 2006-05-24 Bruno Haible <bruno@clisp.org>
9534 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
9535 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
9536 Reported by Thorsten Maerz <torte@netztorte.de> via
9537 Aaron Stone <aaron@serendipity.cx>.
9539 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
9541 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
9542 gl_ rather than jm_. Link, don't run, so that cross-compiles are
9543 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
9544 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
9545 not really conditional on the cache.
9546 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
9548 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
9550 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
9551 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
9552 (my_usleep): Don't mishandle maximum value.
9554 2006-05-19 Jim Meyering <jim@meyering.net>
9556 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
9558 2006-05-17 Bruno Haible <bruno@clisp.org>
9561 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
9563 2006-05-17 Bruno Haible <bruno@clisp.org>
9565 * lib/stdint_.h: Fix recognition of Cygwin.
9567 2006-05-15 Bruno Haible <bruno@clisp.org>
9569 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
9570 on libtool patch by Ralf Wildenhues.
9572 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
9574 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
9575 test for C99 conformance; (bool) 0.5 is an integer constant
9576 expression, but (bool) -0.5 is not. Problem reported by Fedor
9577 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
9579 2006-05-11 Simon Josefsson <jas@extundo.com>
9581 * m4/xvasprintf.m4: Fix obvious typo.
9583 2006-05-11 Jim Meyering <jim@meyering.net>
9585 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
9588 2006-05-10 Simon Josefsson <jas@extundo.com>
9590 * lib/md4.c: Typo fix, update copyright years.
9591 (K1, K2): Don't use L because it turn computations into 64-bit on
9594 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
9596 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
9597 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
9598 unwanted sign propagation, e.g., on hosts with 64-bit int.
9599 There still are some problems with reeelly weird theoretical hosts
9600 (e.g., 33-bit int) but it's not worth worrying about now.
9601 * lib/sha1.c (rol): Likewise.
9602 (K1, K2, K3, K4): Remove unnecessary L suffix.
9604 2006-05-10 Bruno Haible <bruno@clisp.org>
9606 * lib/des.c: Cast to avoid warnings.
9608 2006-05-09 Bruno Haible <bruno@clisp.org>
9610 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
9611 (Depends-on): Depend also on xsize, stdarg.
9612 (configure.ac): Add gl_XVASPRINTF.
9614 2006-05-09 Bruno Haible <bruno@clisp.org>
9616 * m4/xvasprintf.m4: New file.
9618 2006-05-09 Bruno Haible <bruno@clisp.org>
9620 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
9621 (EOVERFLOW): Define fallback value.
9622 (xstrcat): New function.
9623 (xvasprintf): Recognize the special case of a string concatenation.
9625 2006-05-08 Eric Blake <ebb9@byu.net>
9627 * gnulib-tool (func_version): Base copyright year on CVS date.
9628 (func_emit_copyright_notice): New function.
9629 (func_emit_lib_Makefile_am): Use it.
9630 (func_emit_tests_Makefile_am): Likewise.
9631 (func_import): Likewise.
9633 2006-05-08 Bruno Haible <bruno@clisp.org>
9635 * modules/stdarg: New file.
9636 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
9638 2006-05-08 Bruno Haible <bruno@clisp.org>
9640 * m4/stdarg.m4: New file, from GNU gettext.
9642 2006-05-08 Bruno Haible <bruno@clisp.org>
9644 * config/srclist.txt (build-aux/config.rpath): different from latest
9647 2006-05-08 Bruno Haible <bruno@clisp.org>
9649 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
9651 2006-05-05 Jim Meyering <jim@meyering.net>
9653 * m4/warning.m4: New file, derived from bison's file by the same name.
9655 2006-05-03 Bruno Haible <bruno@clisp.org>
9657 * lib/stdint_.h: Shorter URL.
9658 * lib/inttypes.h: Likewise.
9660 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9662 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
9664 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9666 * lib/verify.h: Document the internals better. Most of this change
9667 was written by Bruno Haible.
9669 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9671 * doc/verify.texi: New file, partly based on a proposal by
9674 2006-05-02 Bruno Haible <bruno@clisp.org>
9676 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
9678 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
9680 2006-04-29 Bruno Haible <bruno@clisp.org>
9682 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
9683 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
9685 2006-04-29 Bruno Haible <bruno@clisp.org>
9687 * gnulib-tool: Make --update option actually work.
9689 2006-04-29 Bruno Haible <bruno@clisp.org>
9691 * doc/gcd.texi: New file.
9692 * doc/gnulib.texi: Include it.
9694 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
9696 * lib/getdate.y (get_date): When adding relative date, start with the
9697 initial time, not with the result of the first mktime call.
9699 2006-04-25 Bruno Haible <bruno@clisp.org>
9701 * gnulib-tool (func_import): Output the include directives in three
9702 blocks, sorted separately.
9703 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9705 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
9707 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
9708 to define main with arguments, for C++. Reported by Eric Blake.
9709 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9710 Prefer 'int main ()' to 'int main (void)', for C++.
9711 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9712 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
9713 for 'main', for C99 and C++.
9715 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
9717 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
9718 Don't assume that exit status -1 is valid.
9719 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9720 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9721 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9722 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
9723 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
9724 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
9725 not AC_TRY_RUN. Use return, not exit. Don't assume that
9726 functions can be used without declaring them, or that you can
9727 exit with status -1.
9728 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9730 2006-04-24 Karl Berry <karl@gnu.org>
9732 * config/srclist.txt (longdouble.m4): sync lost.
9734 2006-04-24 Eric Blake <ebb9@byu.net>
9736 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
9738 2006-04-24 Bruno Haible <bruno@clisp.org>
9740 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
9741 poll() implementation in AIX.
9742 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9744 2006-04-24 Bruno Haible <bruno@clisp.org>
9746 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
9747 assigned exactly once.
9749 2006-04-23 Claudio Fontana <claudio@gnu.org>
9750 Bruno Haible <bruno@clisp.org>
9752 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
9753 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
9756 2006-04-23 Bruno Haible <bruno@clisp.org>
9758 * modules/copy-file: Depend on unistd.
9759 * modules/execute: Likewise.
9760 * modules/fatal-signal: Likewise.
9761 * modules/findprog: Likewise.
9762 * modules/mkdtemp : Likewise.
9763 * modules/pipe: Likewise.
9764 * modules/wait-process: Likewise.
9766 2006-04-23 Bruno Haible <bruno@clisp.org>
9768 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
9769 condition was already detected.
9770 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9772 2006-04-23 Bruno Haible <bruno@clisp.org>
9774 * lib/copy-file.c: Include <unistd.h> unconditionally.
9775 * lib/execute.c: Likewise.
9776 * lib/fatal-signal.c: Likewise.
9777 * lib/findprog.c: Likewise.
9778 * lib/mkdtemp.c: Likewise.
9779 * lib/pipe.h: Likewise.
9780 * lib/pipe.c: Likewise.
9781 * lib/wait-process.h: Likewise.
9783 2006-04-23 Bruno Haible <bruno@clisp.org>
9785 * gnulib-tool (func_usage): Fix --import description. Document
9787 (func_import): Create temporary file in a temporary directory, if
9788 --dry-run is specified. Silence errors from 'grep' when there are no
9790 (func_create_testdir): Silence errors from 'grep' when there are no
9792 Reported by Karl Berry <karl@freefriends.org>.
9794 2006-04-20 Bruno Haible <bruno@clisp.org>
9796 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
9797 one argument, so that the code will be portable to Autoconf 2.60.
9798 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
9799 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9800 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
9802 2006-04-19 Derek Price <derek@ximbiot.com>
9803 Eric Blake <ebb9@byu.net>
9805 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
9806 rather than "/full/path.h". Update comment to match. Shorten &
9807 generalize m4_translit call via AS_TR_CPP.
9809 2006-04-19 Derek Price <derek@ximbiot.com>
9810 Eric Blake <ebb9@byu.net>
9812 * lib/inttypes.h: Correct grammar in comment.
9814 2006-04-18 Derek Price <derek@ximbiot.com>
9815 Paul Eggert <eggert@cs.ucla.edu>
9817 * modules/inttypes: New file.
9818 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
9820 2006-04-18 Derek Price <derek@ximbiot.com>
9821 Paul Eggert <eggert@cs.ucla.edu>
9823 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
9826 2006-04-18 Derek Price <derek@ximbiot.com>
9827 Paul Eggert <eggert@cs.ucla.edu>
9829 * lib/inttypes.h: New file.
9830 * lib/strtoimax.c: Assume <inttypes.h>.
9832 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
9834 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
9835 isn't mounted. Problem reported by Kir Kolyshkin.
9837 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
9839 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
9840 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
9842 * lib/regex.h (RE_DUP_MAX): Update comment to match current
9845 2006-04-12 Eric Blake <ebb9@byu.net>
9847 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
9848 is now done automatically by the corresponding Autoconf macro.
9850 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
9852 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
9855 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9857 Merge regex changes from libc, removing some of our
9858 POSIX-conformance changes that were rejected and redoing them in a
9861 * lib/regcomp.c (re_compile_internal, init_dfa):
9862 Length arg is now size_t, not Idx. All uses changed.
9863 (peek_token): Forward decl now says internal_function.
9864 (__re_error_msgid, __re_error_msgid_idx):
9865 Now static rather than extern with attribute_hidden.
9866 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
9867 For some reason libc prefers K&R style defns for external functions.
9868 (regerror) [!defined _LIBC]: Likewise.
9869 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
9870 (seek_collating_symbol_entry, lookup_collation_sequence_value):
9871 (build_range_exp, build_collating_symbol):
9873 (re_compile_fastmap): Use '\0' to memset, not 0.
9874 (utf8_sb_map): Make the calculations more obvious.
9875 (init_dfa, parse_bracket_exp, build_charclass_op):
9876 Call calloc and cast result, as glibc does.
9877 (init_word_char, fetch_token, peek_token, peek_token_bracket):
9878 (build_range_exp, build_collating_symbol):
9879 Now internal functions.
9881 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
9883 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
9884 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
9885 Don't depend on VMS; depend on __VMS instead, for POSIX
9886 namespace cleanness.
9887 (regoff_t): Define to ssize_t, not long int.
9889 Remove the REG_ macros named below. Instead, make the old names
9890 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
9892 (REG_BACKSLASH_ESCAPE_IN_LISTS):
9893 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
9894 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
9895 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
9896 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
9897 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
9898 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
9899 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
9900 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
9901 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
9902 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
9903 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
9904 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
9905 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
9906 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
9907 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
9908 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
9910 Remove. All uses replaced by the old RE_* names.
9911 (RE_BACKSLASH_ESCAPE_IN_LISTS):
9912 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
9913 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
9914 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
9915 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
9916 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
9917 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
9918 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
9919 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
9920 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
9921 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
9922 Don't bother having these macros be independent of each others'
9923 values, since they no longer exist in the POSIX name space.
9925 Rename the following member names back to their old names,
9926 unless !__USE_GNU_REGEX. All uses changed back.
9927 (buffer): Renamed from re_buffer.
9928 (allocated): Renamed from re_allocated.
9929 (used): Renamed from re_used.
9930 (syntax): Renamed from re_syntax.
9931 (fastmap): Renamed from re_fastmap.
9932 (translate): Renamed from re_translate.
9933 (can_be_null): Renamed from re_can_be_null.
9934 (regs_allocated): Renamed from re_regs_allocated.
9935 (fastmap_accurate): Renamed from re_fastmap_accurate.
9936 (no_sub): Renamed from re_no_sub.
9937 (not_bol): Renamed from re_not_bol.
9938 (not_eol): Renamed from re_not_eol.
9939 (newline_anchor): Renamed from re_newline_anchor.
9940 (num_regs): Renamed from rm_num_regs.
9941 (start): Renamed from rm_start.
9942 (end): Renamed from rm_end.
9944 (free_state): Move up a bit.
9946 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
9947 #define to be empty.
9948 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
9949 when that is what is intended.
9950 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
9951 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
9953 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
9954 All uses changed back to re_malloc, etc. It's now the caller's
9955 responsibility to check for overflow; all callers changed.
9956 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
9957 (re_x2nrealloc): Remove.
9958 (free_state): Remove decl.
9960 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
9961 (re_set_registers, re_exec):
9964 2006-01-31 Roland McGrath <roland@redhat.com>
9966 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
9967 Reported by Mike Frysinger <vapier@gentoo.org>.
9969 2006-01-15 Andreas Jaeger <aj@suse.de>
9972 * lib/regex_internal.c (re_string_reconstruct): Adjust for
9973 build_wcs_upper_buffer change.
9974 (build_wcs_upper_buffer): Change return type.
9976 2005-12-10 Ulrich Drepper <drepper@redhat.com>
9978 * lib/regex_internal.h: Include <stdint.h> if available.
9980 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
9982 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
9984 2005-10-14 Ulrich Drepper <drepper@redhat.com>
9986 * lib/regcomp.c: Adjust for changed secondary hash function.
9988 2005-09-30 Ulrich Drepper <drepper@redhat.com>
9990 * lib/regex.h: Pretty printing.
9991 Clean up namespace a bit.
9993 2005-09-30 Jakub Jelinek <jakub@redhat.com>
9995 * lib/regexec.c (update_cur_sifted_state, check_arrival,
9996 check_arrival_add_next_nodes): Avoid using uninitialized variable.
9998 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
9999 Ulrich Drepper <drepper@redhat.com>
10002 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
10004 (bitset_word_t): Renamed from bitset_word. All uses changed.
10006 2005-09-22 Ulrich Drepper <drepper@redhat.com>
10009 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
10010 * lib/regcomp.c: Remove unnecessary uses of
10011 unsigned RE_TRANSLATE_TYPE.
10012 * lib/regex_internal.h: Likewise.
10013 * lib/regex_internal.c: Likewise.
10014 * lib/regexec.c: Likewise.
10015 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
10017 2005-09-07 Ulrich Drepper <drepper@redhat.com>
10019 * lib/regexec.c (find_recover_state): Remove unnecessary
10021 (transit_state_bkref): Make DFA a const pointer.
10022 (get_subexp): Likewise.
10023 (check_arrival): Likewise.
10024 (update_cur_sifted_state): Likewise.
10025 (re_search_internal): Likewise.
10026 (prune_impossible_nodes): Likewise.
10027 (acquire_init_state_context): Likewise.
10028 (proceed_next_node): Likewise.
10029 (set_regs): Likewise.
10030 (free_fail_stack_return): Likewise.
10031 (check_arrival_expand_ecl): Mark DFA parameter as const.
10032 (check_arrival_expand_ecl_sub): Likewise.
10033 (check_subexp_limits): Likewise.
10034 (sub_epsilon_src_nodes): Likewise.
10035 (add_epsilon_src_nodes): Likewise.
10036 (merge_state_array): Likewise.
10037 (update_regs): Likewise.
10038 (build_trtable): Likewise.
10039 (sift_states_backward): Mark MCTX parameter as const.
10040 (build_sifted_states): Likewise.
10041 (update_cur_sifted_state): Likewise.
10042 (sift_states_mkref): Likewise.
10043 (check_arrival_expand_ecl): Mark eclosure as const.
10044 (check_dst_limits_calc_pos_1): Likewise.
10045 * lib/regex_internal.h (re_match_context_t): Make dfa a const
10048 2005-09-06 Ulrich Drepper <drepper@redhat.com>
10050 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
10051 (transit_state_sb): Likewise.
10052 (transit_state_mb): Likewise.
10053 (sift_states_iter_mb): Likewise.
10054 (check_arrival_add_next_nodes): Likewise.
10055 (check_node_accept_bytes): Change first parameter to pointer-to-const.
10056 [_LIBC] (re_search_2_stub): Use mempcpy.
10058 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
10059 mbrtowc for very simple UTF-8 case.
10061 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
10062 a pointer-to-const.
10063 (re_acquire_state_context): Likewise.
10064 * lib/regex_internal.h: Adjust prototypes.
10066 * lib/regex.c: Prevent using C++ compilers.
10068 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
10069 (re_acquire_state_context): Likewise.
10071 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10073 * modules/regex (Depends-on): Add ssize_t.
10075 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10077 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
10080 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
10082 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
10084 2006-03-29 Mark D. Baushke <mdb@gnu.org>
10085 Bruno Haible <bruno@clisp.org>
10087 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
10088 <sys/types.h> and <inttypes.h>.
10090 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10092 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
10093 `__error_t_defined', so argp.h will not typedef the former.
10095 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
10097 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
10098 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
10099 glibc names. Even if glibc is changed to conform to POSIX, the
10100 traditional names will be available anyway, since regex depends on
10101 the extensions module. Also, fix a longstanding typo in the
10102 implementation of Spencer ERE test #75 from grep 2.3. Problems
10103 reported by Emanuele Giaquinta. Also, change sense of cached
10104 variable, so that the message makes sense.
10106 2006-03-24 Simon Josefsson <jas@extundo.com>
10108 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
10109 including some doc fixes.
10110 (base64_encode_alloc): Fix +1 bug on allocation failures.
10112 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10114 * lib/base64.c (base64_encode): Do not read past end of array with
10115 unsanitized input on systems with CHAR_BIT > 8.
10117 2006-03-24 Eric Blake <ebb9@byu.net>
10119 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
10121 2006-03-22 Karl Berry <karl@gnu.org>
10123 * config/srclist.txt (*setenv.[ch]): get from coreutils.
10124 * config/srclistvars.sh (COREUTILS): new var.
10126 2006-03-17 Jim Meyering <jim@meyering.net>
10128 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
10129 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
10131 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
10133 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
10134 no longer needs it. Instead, check that regoff_t is as least
10135 as wide as ptrdiff_t.
10137 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
10138 so that our regex.h stays compatible with the installed regex.
10139 This is helpful for installers who configure --without-included-regex.
10140 Problem reported by Emanuele Giaquinta.
10142 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
10144 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
10145 Typedef to long int, not to off_, as POSIX will likely change
10148 2006-03-15 Eric Blake <ebb9@byu.net>
10150 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
10152 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
10154 * lib/argp-help.c (validate_uparams): Fix typo
10155 * lib/argp-parse.c (argp_default_options): Consistently begin help
10156 messages with a lowercase letter.
10158 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
10160 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
10161 overrun buffers and shouldn't be used (much as gets shouldn't be
10163 * lib/time_r.c (asctime_r, ctime_r): Likewise.
10165 2006-03-08 Simon Josefsson <jas@extundo.com>
10167 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
10168 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10170 2006-03-08 Simon Josefsson <jas@extundo.com>
10172 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
10173 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10175 2006-03-08 Simon Josefsson <jas@extundo.com>
10177 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
10178 signal that configure disabled the device.
10180 2006-03-08 Simon Josefsson <jas@extundo.com>
10182 * build-aux/maint.mk: Fix refresh-po, to handle no translated
10185 2006-03-07 Simon Josefsson <jas@extundo.com>
10187 * modules/getopt (Depends-on): Add unistd.
10189 * modules/unistd: New file.
10191 2006-03-07 Simon Josefsson <jas@extundo.com>
10193 * modules/gc-random: New file.
10195 2006-03-07 Simon Josefsson <jas@extundo.com>
10197 * m4/unistd_h.m4: New file.
10199 2006-03-07 Simon Josefsson <jas@extundo.com>
10201 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
10202 test to be side-effect free by storing the result in the cache
10203 variable gl_cv_lib_readline, and moving the assignment of
10204 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
10205 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10207 2006-03-07 Simon Josefsson <jas@extundo.com>
10209 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
10210 error on missing devices (the functions will return an error).
10212 * m4/gc.m4: Move random stuff to gc-random.m4
10214 2006-03-07 Simon Josefsson <jas@extundo.com>
10216 * lib/unistd_.h: New file.
10218 2006-03-07 Simon Josefsson <jas@extundo.com>
10220 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
10222 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10224 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
10225 Problem reported by Juan Manuel Guerrero.
10227 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10229 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
10231 * lib/getlogin_r.c: Likewise.
10232 * lib/getlogin_r.h: Likewise.
10233 * lib/glob.c: Likewise.
10234 * lib/pagealign_alloc.c: Likewise.
10235 * lib/unistd_.h: Remove; no longer needed.
10237 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
10239 * MODULES.html.sh (Support for systems lacking POSIX:2001):
10241 * modules/c-stack (Depends-on): Add unistd.
10242 * modules/getlogin_r: Likewise.
10243 * modules/glob: Likewise.
10244 * modules/pagealign_alloc: Likewise.
10245 * modules/unistd (Files): Remove lib/unistd_.h.
10246 (EXTRA_DIST): Remove.
10247 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
10249 (MOSTLYCLEANFILES): Remove unistd.h-t.
10251 2006-03-03 Simon Josefsson <jas@extundo.com>
10253 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
10255 2006-03-03 Simon Josefsson <jas@extundo.com>
10257 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
10260 2006-03-03 Simon Josefsson <jas@extundo.com>
10262 * build-aux/maint.mk: Add indent target.
10264 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10266 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
10267 our replacement poll.h in any case, to avoid a differing
10268 declaration from a system header. Seen on AIX.
10270 2006-03-01 Simon Josefsson <jas@extundo.com>
10272 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
10275 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
10277 * modules/gettime (Depends-on): Add extensions module.
10278 * modules/nanosleep (Depends-on): Likewise.
10279 * modules/settime (Depends-on): Likewise.
10281 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
10283 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
10284 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
10286 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10287 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
10289 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
10290 not "==". Reported by Ralf Wildenhues.
10292 2006-03-01 Karl Berry <karl@gnu.org>
10294 * doc/Copyright/request-*: new files, synced from gnuorg.
10296 2006-03-01 Karl Berry <karl@gnu.org>
10298 * config/srclist.txt (Copyright/*): new entries.
10300 2006-02-28 Simon Josefsson <jas@extundo.com>
10302 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
10304 2006-02-27 Simon Josefsson <jas@extundo.com>
10306 * lib/base64.h: Indent #define's. From Jim Meyering
10307 <jim@meyering.net>.
10309 2006-02-27 Jim Meyering <jim@meyering.net>
10311 Revert the change of 2006-02-24, so these files can continue
10312 to be sync'd from gettext.
10313 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
10316 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
10318 * modules/intprops: New file.
10319 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
10321 * modules/getloadavg (Files): Remove lib/intprops.h.
10322 (Depends-on): Add intprops.
10323 * modules/human: Likewise.
10324 * modules/inttostr: Likewise.
10325 * modules/openat: Likewise.
10326 * modules/sig2str: Likewise.
10327 * modules/userspec: Likewise.
10328 * modules/utimecmp: Likewise.
10329 * modules/xnanosleep: Likewise.
10330 * modules/xstrtol: Likewise.
10332 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
10334 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
10335 * modules/lock-tests (TESTS): Use $(EXEEXT).
10336 * modules/tls-tests: Likewise.
10337 * modules/argp-tests: Likewise.
10338 (check_PROGRAMS): New var, replacing...
10339 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
10341 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10343 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
10346 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
10348 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
10350 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10352 Sync from coreutils.
10353 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
10356 2006-02-22 Jim Meyering <jim@meyering.net>
10358 Sync from coreutils.
10359 * m4/chdir-safer.m4: New file.
10361 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
10363 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
10364 AT_FDCWD exceeds INT_MAX.
10365 * lib/openat.h (AT_FDCWD): Likewise.
10367 2006-02-17 Eric Blake <address@hidden>
10369 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
10371 2006-02-16 Simon Josefsson <jas@extundo.com>
10373 * modules/getaddrinfo (Depends-on): Add sys_socket.
10375 2006-02-15 Simon Josefsson <jas@extundo.com>
10377 * build-aux/maint.mk: Add dsyntax-check rule.
10379 2006-02-15 Eric Blake <ebb9@byu.net>
10381 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
10382 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
10383 'present but cannot compile' warnings on cygwin.
10384 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
10385 use ws2tcpip.h if sys/socket.h works.
10386 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
10387 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
10389 2006-02-14 Simon Josefsson <jas@extundo.com>
10391 * modules/maintainer-makefile (Files): Rename.
10393 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
10394 and (the local) Makefile.cfg to maint-cfg.mk.
10396 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
10399 * modules/maintainer-makefile: New module.
10401 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
10402 severaly stripped to make it possible to build it up from scratch
10403 with reliable tests.
10405 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
10406 fixes to permit overriding the default actions when configure and
10407 makefile are not available.
10409 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
10411 Sync from coreutils.
10412 * modules/lstat (Depends-on): Don't depend on xalloc.
10413 (License): Change from GPL to LGPL, since this is now simply a
10414 replacement for a libc function.
10416 2006-02-14 Jim Meyering <jim@meyering.net>
10418 Sync from coreutils.
10420 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
10421 failure on deficient systems, and simplify gnulib lgpl dependencies.
10422 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
10423 xmalloc/lstat combination. Based on a patch from Bruno Haible.
10425 * lib/xalloc-die.c: Remove unused definition of N_.
10427 2006-02-14 Jim Meyering <jim@meyering.net>
10429 Sync from coreutils.
10430 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
10431 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
10432 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
10433 double-quote uses of that variable, to accommodate the rare case in
10434 which getmntent is available in none of the libraries checked. This
10435 happens at least on FreeBSD 5.0.
10437 2006-02-13 Simon Josefsson <jas@extundo.com>
10439 * gnulib-tool (Usage): Fix --import, from
10440 karl@freefriends.org (Karl Berry).
10442 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
10444 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
10446 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
10448 * lib/argp-namefrob.h: Restore changes accidentally lost during the
10449 "autoupdate" on 2005-12-12.
10451 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
10453 * modules/closeout (Depends-on): Remove atexit.
10455 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
10457 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
10458 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
10460 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
10462 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
10463 __EXTENSIONS__ if this causes compilation to fail. Problem
10464 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
10465 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
10467 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
10469 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
10470 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
10471 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
10474 2006-01-26 Simon Josefsson <jas@extundo.com>
10476 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
10477 prototype is visible on mingw32.
10479 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
10482 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
10485 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
10487 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
10488 attempt to open for write; this always fails, at least on POSIX
10489 hosts. This reinstates the 2006-01-09 change, which was
10490 inadvertently removed.
10492 2006-01-26 Bruno Haible <bruno@clisp.org>
10494 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
10495 Reported by Paul Eggert.
10497 2006-01-26 Bruno Haible <bruno@clisp.org>
10498 Paul Eggert <eggert@cs.ucla.edu>
10500 * lib/stdbool_.h (_Bool)
10501 [(! (defined __cplusplus || defined __BEOS__)
10502 && !defined __GNUC__
10503 && !(defined __HP_cc || defined __xlc__
10504 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
10505 || defined __sgi))]:
10506 #define to signed char in these cases too; this simplifies
10507 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
10508 etc., separately) and makes it more conservative.
10510 2006-01-25 Simon Josefsson <jas@extundo.com>
10512 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
10513 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
10514 ws2tcpip.h with WINVER=0x0501. All for mingw32.
10516 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
10518 * lib/argp-namefrob.h: Bugfix. Remove stray #
10520 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
10522 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
10523 so that we test the test.
10524 Check for yet another HP-UX cc bug involving *bool |= bool.
10526 2006-01-25 Karl Berry <karl@gnu.org>
10528 * config/srclist.txt (vasnprintf.c): sync lost.
10530 2006-01-25 Jim Meyering <jim@meyering.net>
10532 Sync from the stable (b5) branch of coreutils:
10534 * lib/fts.c (fts_children): Don't let close() clobber errno from
10537 * lib/fts.c (fts_stat): When following a symlink-to-directory,
10538 don't necessarily interpret stat-fails+lstat-succeeds as indicating
10539 a dangling symlink. That can also happen at least for ELOOP.
10540 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
10541 FYI, this bug predates the inclusion of fts.c in coreutils.
10543 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
10544 in their own block, so pre-c99 compilers don't object.
10546 Avoid the double-free (first in fts_read, second in fts_close) that
10547 would occur when an `active' directory is made inaccessible (e.g.,
10548 via chmod a-x) during a traversal.
10549 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
10550 before returning. Reproduce this failure by
10551 mkdir -p a/b; cd a; chmod a-x . b
10552 Reported by Stavros Passas.
10554 2006-01-25 Jim Meyering <jim@meyering.net>
10556 * lib/fileblocks.c: Remove more useless parentheses.
10557 * lib/readutmp.h: Likewise.
10559 2006-01-25 Bruno Haible <bruno@clisp.org>
10561 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
10563 Reported by Paul Eggert.
10565 2006-01-25 Bruno Haible <bruno@clisp.org>
10567 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
10568 rid of a trap command. For Solaris sh.
10569 Reported by Mark D. Baushke <mdb@gnu.org>.
10571 2006-01-24 Simon Josefsson <jas@extundo.com>
10573 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
10576 2006-01-24 Karl Berry <karl@gnu.org>
10578 * config/srclist.txt (argp-namefrob.h): sync lost.
10580 2006-01-24 Jim Meyering <jim@meyering.net>
10582 * modules/openat (Files): Add lib/intprops.h.
10583 From Mark D. Baushke.
10585 2006-01-24 Jim Meyering <jim@meyering.net>
10587 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
10588 Reported by Mark D. Baushke.
10590 2006-01-24 Jim Meyering <jim@meyering.net>
10592 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
10594 2006-01-24 Bruno Haible <bruno@clisp.org>
10596 * modules/strnlen (Maintainer): Change from glibc to all.
10598 2006-01-24 Bruno Haible <bruno@clisp.org>
10600 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
10601 Patch by Paul Eggert.
10603 2006-01-24 Bruno Haible <bruno@clisp.org>
10605 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
10607 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
10610 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
10611 'signed char' to avoid problems with the built-in _Bool type.
10612 Reported by Paul Eggert on 2005-11-26.
10614 2006-01-24 Bruno Haible <bruno@clisp.org>
10616 * gnulib-tool (func_import): Avoid constructing complicated sed
10617 expressions inside backquote.
10618 Report and solution by Mark D. Baushke <mdb@gnu.org>.
10620 2006-01-23 Ulrich Drepper <drepper@redhat.com>
10622 These changes imported from libc.
10623 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
10624 test and two separate function calls.
10625 * lib/strndup.c (__strndup): Add libc_hidden_def.
10627 2006-01-23 Simon Josefsson <jas@extundo.com>
10629 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
10630 Remove the test_*_SOURCES variable: automake infers it by default.
10631 * modules/tls-tests: Likewise.
10633 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10635 Work around porting bugs reported by Dieter in
10636 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
10637 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
10638 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
10639 Include "getopt.h" first, to check interface.
10640 (getenv): Declare only if defined HAVE_DECL_GETENV &&
10642 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
10643 (__strndup): Revert to K&R-style function dfns, the glibc style.
10644 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
10645 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
10646 Include strnlen.h first, to get prototype properly.
10647 (strnlen): Renamed from __strnlen.
10650 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10652 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
10654 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10656 * config/srclist.txt: Adjust to reflect glibc reorganization.
10657 This affects only comments.
10659 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10661 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
10662 Reported by Bruce Korb <bkorb@gnu.org>.
10664 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
10666 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
10667 to pacify gcc -Wswitch-default.
10669 2006-01-22 Bruno Haible <bruno@clisp.org>
10671 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
10672 temporary buffer for sprintf, take into account the precision also
10673 for 'd', 'i', 'u', 'o', 'x', 'X'.
10675 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
10677 * modules/argp-tests: New module
10678 * tests/test-argp.c: New file
10679 * tests/test-argp-2.sh: New file
10681 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
10683 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
10684 (__argp_base_name): Removed
10685 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
10687 (__argp_base_name): Provide macro definition or extern declaration
10688 depending on the configuration
10690 2006-01-20 Simon Josefsson <jas@extundo.com>
10692 * modules/inet_ntop (Depends-on): Depend on sys_socket.
10694 2006-01-20 Simon Josefsson <jas@extundo.com>
10696 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
10698 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
10700 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
10701 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
10702 Suggested by Bruno Haible.
10704 2006-01-20 Karl Berry <karl@gnu.org>
10706 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
10707 until changes propagate, I guess.
10709 2006-01-19 Simon Josefsson <jas@extundo.com>
10711 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
10713 2006-01-19 Simon Josefsson <jas@extundo.com>
10715 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
10717 2006-01-19 Simon Josefsson <jas@extundo.com>
10719 * gnulib-tool: Set check_PROGRAMS.
10721 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
10722 modules/des-tests, modules/gc-arcfour-tests,
10723 modules/gc-arctwo-tests, modules/gc-des-tests,
10724 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
10725 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
10726 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
10727 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
10728 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
10729 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
10730 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
10733 2006-01-18 Simon Josefsson <jas@extundo.com>
10735 * modules/socklen (Depends-on): Depend on sys_socket.
10737 2006-01-18 Simon Josefsson <jas@extundo.com>
10739 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
10740 modules/des-tests, modules/gc-arcfour-tests,
10741 modules/gc-arctwo-tests, modules/gc-des-tests,
10742 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
10743 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
10744 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
10745 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
10746 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
10747 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
10748 $(EXEEXT) to automake TESTS variable, for mingw32.
10750 2006-01-17 Simon Josefsson <jas@extundo.com>
10752 * modules/socklen (Include): Need sys/socket.h.
10754 2006-01-17 Bruno Haible <bruno@clisp.org>
10756 * modules/ssize_t (Include): Add <sys/types.h>.
10758 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
10760 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
10761 it's not portable and it doesn't work with cross-compiles.
10762 Problem reported by Bruno Haible. Fix missing-$ typo in
10763 'test "gl_cv_ignore_unused_libraries" ...' that prevented
10764 -zignore from being used with Sun's C compiler.
10766 2006-01-12 Simon Josefsson <jas@extundo.com>
10768 * lib/base64.c: Fix warning, reported by Bruno Haible
10769 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
10771 2006-01-12 Bruno Haible <bruno@clisp.org>
10773 * modules/ldd: New file.
10774 * build-aux/ldd.sh.in: New file.
10775 * MODULES.html.sh (Support for building libraries and executables): Add
10778 2006-01-12 Bruno Haible <bruno@clisp.org>
10780 * m4/ldd.m4: New file.
10782 2006-01-12 Bruno Haible <bruno@clisp.org>
10784 * gnulib-tool (func_import, func_create_testdir): Don't go into an
10785 endless loop while replacing $auxdir with build-aux.
10787 2006-01-11 Simon Josefsson <jas@extundo.com>
10789 * lib/stdint_.h (SIZE_MAX): Add missing (.
10791 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
10793 Sync from coreutils.
10794 * lib/md5.c: Fix commentary typos.
10795 (alignof, UNALIGNED_P): No need for a GCC-specific version.
10796 * lib/md5.h (__attribute__): Remove; unused.
10797 * lib/sha1.c: Fix commentary to match md5 better.
10798 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
10799 so that we don't need to worry about alignment. All uses changed.
10800 This merges the 2005-10-28 md5 change into sha1.
10802 2006-01-11 Jim Meyering <jim@meyering.net>
10804 Sync from coreutils.
10805 * lib/md5.c (OP): Fix spacing.
10807 2006-01-11 Bruno Haible <bruno@clisp.org>
10809 Ensure automatic ordering between gl_LOCK and gl_ARGP.
10810 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
10811 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
10813 2006-01-11 Bruno Haible <bruno@clisp.org>
10815 Ensure automatic ordering between gl_LOCK and gl_ARGP.
10816 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
10817 the "early" section as well.
10819 2006-01-11 Bruno Haible <bruno@clisp.org>
10821 Avoid "ar: no archive members specified" error on MacOS X.
10822 * gnulib-tool (func_modules_add_dummy): New function.
10823 (func_import, func_create_testdir): Invoke it.
10825 2006-01-11 Bruno Haible <bruno@clisp.org>
10827 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
10828 with $auxdir in AC_CONFIG_FILES statements.
10830 2006-01-11 Bruno Haible <bruno@clisp.org>
10832 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10833 Initialize also noinst_HEADERS to empty.
10835 2006-01-11 Bruno Haible <bruno@clisp.org>
10837 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
10839 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
10842 2006-01-11 Bruno Haible <bruno@clisp.org>
10844 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
10845 overridable by the user.
10846 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10848 2006-01-10 Simon Josefsson <jas@extundo.com>
10850 * modules/sys_socket: New file.
10852 2006-01-10 Simon Josefsson <jas@extundo.com>
10854 * m4/sys_socket_h.m4: New file.
10856 2006-01-10 Simon Josefsson <jas@extundo.com>
10858 * lib/socket_.h: New file.
10860 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10862 * modules/readutmp (Maintainer): Add myself.
10864 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10866 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
10867 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
10868 People who are still concerned with buggy memcmp implementations
10869 can invoke gl_FUNC_MEMCMP themselves.
10871 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10873 * lib/regex_internal.h (BITSET_WORD_BITS):
10874 Work around a bug in 64-bit PGC (before version 6.1-2), where the
10875 preprocessor mishandles large unsigned values as if they were signed.
10876 Problem reported by Claudio Fontana in
10877 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
10879 2006-01-10 Jim Meyering <jim@meyering.net>
10881 Avoid the double-free (first in fts_read, second in fts_close) that
10882 would occur when an `active' directory is made inaccessible (e.g.,
10883 via chmod a-x) during a traversal.
10884 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
10885 before returning. Reproduce this failure by
10886 mkdir -p a/b; cd a; chmod a-x . b
10887 Reported by Stavros Passas.
10889 Sync from coreutils.
10890 * lib/sha1.c: Tweak grammar in a comment.
10892 2006-01-10 Jim Meyering <jim@meyering.net>
10894 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
10895 Patch by Joerg Sonnenberger.
10897 2006-01-10 Bruno Haible <bruno@clisp.org>
10899 * modules/readutmp: Depend on module free.
10900 * modules/strtok_r: Depend on module restrict.
10902 2006-01-10 Bruno Haible <bruno@clisp.org>
10904 * modules/gettext (configure.ac): Add an invocation of
10905 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
10907 2006-01-10 Bruno Haible <bruno@clisp.org>
10909 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
10910 Reported by Werner Lemberg <wl@gnu.org>.
10912 2006-01-10 Bruno Haible <bruno@clisp.org>
10914 * lib/localcharset.c: Update from GNU gettext.
10916 2006-01-10 Bruno Haible <bruno@clisp.org>
10918 * lib/argp.h (__const): Remove macro. Use const instead.
10919 * lib/argp-fmtstream.h (__const): Likewise.
10920 * lib/glob_.h (__const): Remove macro.
10921 * lib/glob-libc.h: Use const instead of __const.
10923 2006-01-10 Bruno Haible <bruno@clisp.org>
10925 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
10927 Needed to avoid an automake error regarding the 'gettext' module.
10929 2006-01-09 Simon Josefsson <jas@extundo.com>
10931 * modules/inet_ntop (Depends-on): Add restrict.
10933 2006-01-09 Simon Josefsson <jas@extundo.com>
10935 * modules/gc-rijndael-tests (License): Put under LGPL.
10937 * modules/gc-des-tests (License): Likewise.
10939 * modules/gc-arcfour-tests (License): Likewise.
10941 * modules/gc-arctwo-tests (License): Likewise.
10943 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
10945 * modules/gc-hmac-sha1-tests (Files): Likewise.
10947 * modules/gc-hmac-md5-tests (License): Likewise.
10949 * modules/gc-sha1-tests (License): Likewise.
10951 * modules/gc-md5-tests (License): Likewise.
10953 * modules/gc-md4-tests (License): Likewise.
10955 * modules/gc-md2-tests (License): Likewise.
10957 * modules/gc-tests (License): Likewise.
10959 * modules/des-tests (License): Likewise.
10961 * modules/md4-tests (License): Likewise.
10963 * modules/md2-tests (License): Likewise.
10965 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10967 Sync from coreutils:
10969 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
10970 * modules/lib-ignore: New file.
10971 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
10972 chdir-safer.m4, lchmod.m4.
10973 * modules/openat: Add mkdirat.c, openat-priv.h.
10975 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10977 Sync from coreutils.
10978 * m4/lib-ignore.m4: New file.
10979 * m4/lchmod.m4: New file.
10981 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10983 Sync from coreutils.
10984 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
10985 for write access: POSIX says that must fail.
10986 * lib/fts.c (diropen): Likewise.
10987 * lib/save-cwd.c (save_cwd): Likewise.
10988 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
10989 well, for minor improvements on hosts that lack O_DIRECTORY.
10990 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
10991 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
10992 Fall back on chown if open failed with EACCES.
10994 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
10995 Report an error at compile-time if only a 1-second nominal clock
10996 resolution is found.
10998 * lib/lchmod.h: New file.
10999 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
11000 (make_dir_parents): Use lchown rather than chown, and
11001 lchmod rather than chmod.
11003 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
11004 dummies too. Problem with "none" reported by Bob Proulx. Problem with
11005 "proc" reported by n0dalus.
11007 * lib/mountlist.c: Include <limits.h>.
11008 (dev_from_mount_options)
11009 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
11010 New function. It no longer assumes "dev=" has the System V meaning
11011 on Linux (since it doesn't). It also parses "dev=" more carefully.
11012 (read_file_system_list)
11013 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
11014 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
11017 * lib/posixtm.h (PDS_PRE_2000): New macro.
11018 * lib/posixtm.c (year): Arg is now syntax_bits rather than
11019 allow_century. All usages changed. Reject dates outside the range
11020 1969-1999 if PDS_PRE_2000 is used.
11022 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
11024 Sync from coreutils.
11025 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
11026 (Time of day items): Mention the possibility of leap seconds.
11027 Problem reported by Dr. David Alan Gilbert.
11029 2006-01-09 Jim Meyering <jim@meyering.net>
11031 Sync from coreutils.
11033 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
11035 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
11037 * lib/modechange.c (mode_compile): Reject an invalid mode string
11038 that starts with an octal digit. From Andreas Gruenbacher.
11040 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
11041 and dup to open_safer and dup_safer, respectively.
11042 (openat_permissive): Fix typo in comment.
11044 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
11045 "gettext.h"; either no longer needed or are guaranteed by openat.h.
11046 (_): Remove; no longer needed.
11047 (openat): Renamed from rpl_openat; no need for rpl_openat
11048 since openat.h renames openat for us.
11049 Replace most of the body with a call to openat_permissive,
11050 to avoid duplicate code.
11051 Port to (probably hypothetical) environments were mode_t is
11053 (openat_permissive): Require mode arg, so that we can check
11054 types better. Put it just after flags. Change cwd failure
11055 indicator from pointer-to-bool to pointer-to-errno-value.
11056 All callers changed.
11057 Invoke openat_save_fail and/or openat_restore_fail if
11058 cwd_errno is null, so that openat can call us.
11059 (openat_permissive, fdopendir, fstatat, unlinkat):
11060 Simplify errno handling to avoid some duplicate code,
11061 as it's OK to set errno on success.
11062 * lib/openat.h: Revamp code so that function macros depend on
11063 __OPENAT_PREFIX only, not also on AT_FDCWD.
11064 (openat_ro): Remove. Caller changed to use openat_permissive.
11065 (openat_permissive): Now a macro, if not a function.
11066 (openat_restore_fail, openat_save_fail): Now always functions,
11067 since mkdirat needs them even if __OPENAT_PREFIX is defined.
11069 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
11071 * lib/mkdirat.c: Include openat-priv.h.
11072 Remove definitions of macros defined therein.
11073 * lib/openat.c: Likewise.
11075 * lib/mkdirat.c (mkdirat): New file and function.
11076 * lib/openat.h (mkdirat): Declare.
11078 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
11080 * lib/openat.h (openat_permissive): Declare.
11081 (openat_ro): Define.
11083 * lib/openat.c (EXPECTED_ERRNO): New macro.
11084 (openat_permissive): New function -- used in remove.c rewrite.
11085 (all functions): Set errno just before returning, only if there
11086 was an actual failure.
11087 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
11089 Emulate openat-family functions using Linux's procfs, if possible.
11090 Idea and some code based on Ulrich Drepper's glibc changes.
11092 * lib/openat.c: (BUILD_PROC_NAME): New macro.
11093 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
11094 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
11095 before falling back on save_cwd and restore_cwd.
11096 (fdopendir, fstatat, unlinkat): Likewise.
11098 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
11099 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
11101 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
11102 as second argument to va_arg. Otherwise, some versions of gcc
11103 warn that `if this code is reached, the program will abort'.
11105 2006-01-09 Jim Meyering <jim@meyering.net>
11107 Sync from coreutils.
11108 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
11109 Require openat-priv.h.
11111 2006-01-09 Bruno Haible <bruno@clisp.org>
11113 * modules/strnlen (Include): Use strnlen.h.
11115 2006-01-09 Bruno Haible <bruno@clisp.org>
11117 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
11119 2006-01-09 Bruno Haible <bruno@clisp.org>
11121 * lib/sysexit_.h (EX_OK): New macro.
11122 Suggested by Martin Lambers <marlam@marlam.de>.
11124 2006-01-09 Bruno Haible <bruno@clisp.org>
11126 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
11127 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
11129 2006-01-09 Bruno Haible <bruno@clisp.org>
11131 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
11134 2006-01-09 Bruno Haible <bruno@clisp.org>
11136 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
11137 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
11138 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
11139 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
11141 2006-01-09 Bruno Haible <bruno@clisp.org>
11143 * build-aux/javacomp.sh.in: New file, moved from lib/.
11144 * modules/javacomp-script (Files): Update.
11145 (configure.ac): Add AC_CONFIG_FILES invocation.
11146 (EXTRA_DIST): Remove variable.
11148 * build-aux/javaexec.sh.in: New file, moved from lib/.
11149 * modules/javaexec (Files): Update.
11150 (configure.ac): Add AC_CONFIG_FILES invocation.
11151 (EXTRA_DIST): Remove javaexec.sh.in.
11153 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
11154 * modules/csharpcomp-script (Files): Update.
11155 (configure.ac): Add AC_CONFIG_FILES invocation.
11156 (EXTRA_DIST): Remove variable.
11158 * build-aux/csharpexec.sh.in: New file, moved from lib/.
11159 * modules/csharpexec (Files): Update.
11160 (configure.ac): Add AC_CONFIG_FILES invocation.
11161 (EXTRA_DIST): Remove csharpexec.sh.in.
11163 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
11165 Sync from coreutils.
11167 Add POSIX ACL support
11168 * lib/acl.h (copy_acl, set_acl): Add declarations.
11169 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
11170 systems other than Linux.
11171 (chmod_or_fchmod): New function: use fchmod when possible,
11172 and chmod otherwise.
11173 (file_has_acl): Add a POSIX ACL implementation, with a
11174 Linux-specific subcase.
11175 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
11176 S_ISVTX from one file to another. Fall back to fchmod/chmod when
11177 acls are unsupported.
11178 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
11179 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
11182 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
11184 Sync from coreutils.
11185 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
11187 2006-01-07 Bruno Haible <bruno@clisp.org>
11189 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
11192 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
11194 * lib/strftime.c (tzname): Don't declare if it is already #defined.
11195 Problem reported for Mingw by Mark Junker.
11197 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
11199 * README: Gnulib normally doesn't generate a tarball.
11201 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
11203 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
11204 long int, not int, for nanosecond counts, so that people who are
11205 used to POSIX struct timespec won't be surprised. Reported by Jim
11208 2005-12-28 Bruno Haible <bruno@clisp.org>
11210 * build-aux/config.rpath: Update from GNU gettext.
11212 2005-12-16 Jim Meyering <jim@meyering.net>
11214 * modules/fprintftime: New module.
11215 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
11217 2005-12-16 Jim Meyering <jim@meyering.net>
11219 * m4/fprintftime.m4: New file.
11221 2005-12-16 Jim Meyering <jim@meyering.net>
11223 * lib/fprintftime.c, lib/fprintftime.h: New files.
11225 2005-12-15 Simon Josefsson <jas@extundo.com>
11227 * modules/socklen (configure.ac): Fix M4 macro name, to align with
11230 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
11232 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
11233 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
11235 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
11237 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
11238 * lib/argp-help.c (fill_in_uparams): Check if the constructed
11239 struct uparams is valid. Fall back to the default values if it is
11242 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11244 * modules/argp (Files): Add argp-pin.c
11245 (Depends-on): dirname
11246 (lib_SOURCES): Add argp-pin.c
11248 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11250 * m4/argp.m4: Check if program_invocation_name and
11251 program_invocation_short_name are declared and define appropriate
11252 macros if they are not.
11254 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
11256 * lib/argp-help.c (__argp_base_name): New function
11257 (__argp_short_program_name): Rewrite using __argp_base_name
11258 * lib/argp-namefrob.h: Define program_invocation_name and
11259 program_invocation_short_name if requested
11260 (__argp_base_name): Add prototype
11261 * lib/argp-parse.c (argp_def): Use gettext wrappers
11262 (argp_default_parser): Use __argp_base_name
11263 * lib/argp-pin.c: New file. Defines program_invocation_name and
11264 program_invocation_short_name on systems that lack them.
11266 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
11268 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
11269 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11270 porting problem reported by Georg Schwarz in
11271 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11273 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
11275 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
11276 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
11277 porting problem reported by Georg Schwarz in
11278 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
11280 2005-12-05 Bruno Haible <bruno@clisp.org>
11282 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
11283 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
11284 Reported by Mark Junker <mjscod@gmx.de>.
11286 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
11288 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
11289 Use implementation from Albert Chin, with some
11290 comments/corrections by Stepan Kasal and myself.
11292 2005-12-02 Bruno Haible <bruno@clisp.org>
11294 * gnulib-tool (func_import): Accept GPLed build tool modules when
11296 * modules/csharpcomp-script: New file.
11297 * modules/csharpcomp: Depend on it.
11298 * modules/javacomp-script: New file.
11299 * modules/javacomp: Depend on it.
11300 Suggested by Simon Josefsson.
11302 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
11304 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
11305 statement, to work around an HP-UX 10.20 compiler bug reported by
11308 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
11310 * modules/savedir (Depends-on): Add openat.
11312 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
11314 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
11315 (uintmax_t) [defined uintmax_t]: Do not declare.
11316 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
11317 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
11318 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
11319 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
11320 sake of portability to weird hosts that C allows (though we don't
11321 know of any practical examples).
11323 * lib/savedir.h (fdsavedir): New decl.
11324 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
11325 contains most of the former guts of savedir.
11326 (savedir): Use savedirstream.
11327 Include "openat.h".
11329 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
11331 * modules/obstack (Files): Add m4/ulonglong.m4.
11332 Problem reported by Davide Angelocola.
11334 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
11336 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
11337 coreutils no longer futzes with rounding modes.
11339 2005-11-14 Jim Meyering <jim@meyering.net>
11341 * lib/mkstemp-safer.c: Include <config.h>, required for possible
11342 replacement of mkstemp.
11344 2005-11-10 Simon Josefsson <jas@extundo.com>
11346 * lib/readline.c: Remove EOL.
11348 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11350 * modules/gethrxtime (Depends-on): Add gettime.
11352 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11354 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
11355 or gettimeofday; no longer needed.
11357 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
11359 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
11361 (gethrxtime) [! (HAVE_NANOUPTIME
11362 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
11363 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
11364 our own approximation.
11366 2005-11-08 Eric Blake <ebb9@byu.net>
11368 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11370 2005-11-08 Eric Blake <ebb9@byu.net>
11372 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
11374 2005-11-04 Bruno Haible <bruno@clisp.org>
11376 * gnulib-tool: Implement --update mode.
11378 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
11380 Fix porting problem reported by Theodoros V. Kalamatianos.
11381 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
11382 Don't assume that futimes failing means we must fail.
11384 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
11386 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
11387 variables to suggest the intended function of the PATH_MAX check.
11389 2005-10-30 Kean Johnston <jkj@sco.com>
11391 Trivial changes to support SCO systems.
11392 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
11394 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
11395 where __ptr is null when no I/O is pending.
11397 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
11399 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
11400 leave errno alone. Problem reported by Dmitry V. Levin.
11402 2005-10-28 Simon Josefsson <jas@extundo.com>
11404 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
11407 * tests/test-gc-md2.c, tests/test-md2.c: New files.
11409 * modules/md2, modules/md2-tests: New files.
11411 2005-10-28 Simon Josefsson <jas@extundo.com>
11413 * m4/inet_ntop.m4: More tests.
11415 * m4/gc-md2.m4, md2.m4: New file.
11417 2005-10-28 Simon Josefsson <jas@extundo.com>
11419 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
11420 "restrict" keywords, as per POSIX. Protect the function
11421 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
11422 Don't use K&R prototypes. Check the sprintf return values.
11423 Re-define EAFNOSUPPORT if not present. Indent.
11425 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
11426 suggested by Bruno Haible <bruno@clisp.org>.
11428 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
11430 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
11432 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
11435 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
11437 * lib/md2.h, lib/md2.c: New files.
11439 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
11441 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
11442 errno alone. Problem reported by Frederic Jolliton.
11444 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
11446 * modules/verify (License): Change from GPL to LGPL. This is a
11447 tiny module and there are apparently near-equivalents that are
11448 under the BSD license.
11450 2005-10-24 Simon Josefsson <jas@extundo.com>
11452 * modules/sha1: Relicense to LGPL.
11454 2005-10-24 Simon Josefsson <jas@extundo.com>
11456 * lib/md4.h: Shrink buffer size, now that we changed the type.
11458 2005-10-23 Simon Josefsson <jas@extundo.com>
11460 * gnulib-tool (func_import): Fix --tests-base.
11462 2005-10-22 Simon Josefsson <jas@extundo.com>
11464 * modules/arcfour (Depends-on): Need stdint.
11466 2005-10-22 Simon Josefsson <jas@extundo.com>
11468 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
11469 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
11471 2005-10-22 Simon Josefsson <jas@extundo.com>
11473 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
11474 suggested by Bruno Haible <bruno@clisp.org>.
11476 2005-10-22 Simon Josefsson <jas@extundo.com>
11478 * lib/crc.h: Include stddef.h, for size_t.
11480 2005-10-22 Simon Josefsson <jas@extundo.com>
11482 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
11483 arcfour_context struct (simplify test vector testing in GNU
11486 2005-10-21 Simon Josefsson <jas@extundo.com>
11488 * modules/des, modules/des-tests: New files.
11490 * modules/gc-des, modules/gc-des-tests: New files.
11492 * tests/test-des.c, tests/test-gc-des.c: New file.
11494 2005-10-21 Simon Josefsson <jas@extundo.com>
11496 * modules/arctwo, modules/arctwo-tests: New files.
11498 * tests/test-arctwo.c: New file.
11500 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
11502 * tests/test-gc-arctwo.c: New file.
11504 2005-10-21 Simon Josefsson <jas@extundo.com>
11506 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
11507 Bruno Haible <bruno@clisp.org>.
11509 * m4/gc-des.m4: New file.
11511 2005-10-21 Simon Josefsson <jas@extundo.com>
11513 * m4/arctwo.m4: New file.
11515 * m4/gc-arctwo.m4: New file.
11517 2005-10-21 Simon Josefsson <jas@extundo.com>
11519 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
11522 2005-10-21 Simon Josefsson <jas@extundo.com>
11524 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
11527 * lib/hmac-sha1.c (hmac_sha1): Likewise.
11529 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
11530 Bruno Haible <bruno@clisp.org>.
11532 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
11535 2005-10-21 Simon Josefsson <jas@extundo.com>
11537 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
11539 2005-10-21 Simon Josefsson <jas@extundo.com>
11541 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
11543 2005-10-21 Simon Josefsson <jas@extundo.com>
11545 * lib/des.h, lib/des.c: New files.
11547 * lib/gc-gnulib.c: Support DES.c
11549 2005-10-21 Simon Josefsson <jas@extundo.com>
11551 * lib/arctwo.h, lib/arctwo.c: New files.
11553 * lib/gc-gnulib.c: Support ARCTWO.
11555 2005-10-21 Simon Josefsson <jas@extundo.com>
11557 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
11558 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11560 2005-10-21 Simon Josefsson <jas@extundo.com>
11562 * gnulib-tool (func_import, func_create_testdir): Define automake
11563 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
11564 Makefile.am snippet),
11565 suggested by Bruno Haible <bruno@clisp.org>.
11567 * modules/gc (Makefile.am): Use it.
11569 2005-10-21 Bruno Haible <bruno@clisp.org>
11571 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
11574 2005-10-19 Simon Josefsson <jas@extundo.com>
11576 * tests/test-gc-rijndael.c: New file.
11578 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
11580 2005-10-19 Simon Josefsson <jas@extundo.com>
11582 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
11585 2005-10-19 Simon Josefsson <jas@extundo.com>
11587 * tests/test-gc-arcfour.c: New file.
11589 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
11591 2005-10-19 Simon Josefsson <jas@extundo.com>
11593 * modules/gc-md4, modules/gc-md4-tests: New file.
11595 * tests/test-gc-md4.c: New file.
11597 2005-10-19 Simon Josefsson <jas@extundo.com>
11599 * m4/gc-md4.m4: New file.
11601 2005-10-19 Simon Josefsson <jas@extundo.com>
11603 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
11604 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
11607 2005-10-19 Simon Josefsson <jas@extundo.com>
11609 * m4/gc-arcfour.m4: New file.
11611 * m4/gc-rijndael.m4: New file.
11613 2005-10-19 Simon Josefsson <jas@extundo.com>
11615 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
11617 2005-10-19 Simon Josefsson <jas@extundo.com>
11619 * lib/gc-gnulib.c: Support ARCFOUR.
11621 2005-10-19 Simon Josefsson <jas@extundo.com>
11623 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
11626 * lib/gc.h: Add ECB enum type.
11628 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
11630 2005-10-18 Simon Josefsson <jas@extundo.com>
11632 * tests/test-md5.c: New file.
11634 * modules/md5-tests: New file.
11636 2005-10-18 Simon Josefsson <jas@extundo.com>
11638 * tests/test-md4.c: New file.
11640 * modules/md4, modules/md4-tests: New files.
11642 2005-10-18 Simon Josefsson <jas@extundo.com>
11644 * m4/md4.m4: New file.
11646 2005-10-18 Simon Josefsson <jas@extundo.com>
11648 * lib/md4.h, lib/md4.c: New files, based on md5.?.
11650 2005-10-17 Stepan Kasal <kasal@ucw.cz>
11652 * gnulib-tool (func_create_testdir): Omit the second check whether
11653 BUILT_SOURCES in nonempty.
11655 2005-10-17 Simon Josefsson <jas@extundo.com>
11657 * tests/test-rijndael.c: New file.
11659 2005-10-17 Simon Josefsson <jas@extundo.com>
11661 * modules/sha1: Depend on stdint instead of md5.
11663 * modules/md5: Depend on stdint, remove uint32_t.
11665 2005-10-17 Simon Josefsson <jas@extundo.com>
11667 * modules/gc-sha1-tests: New file.
11669 * tests/test-gc-sha1.c: New file.
11671 2005-10-17 Simon Josefsson <jas@extundo.com>
11673 * m4/md5.m4: Remove call to uint32_t.m4.
11675 2005-10-17 Simon Josefsson <jas@extundo.com>
11677 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
11679 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
11682 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
11684 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
11686 2005-10-17 Simon Josefsson <jas@extundo.com>
11688 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
11690 2005-10-17 Simon Josefsson <jas@extundo.com>
11692 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
11694 2005-10-17 Simon Josefsson <jas@extundo.com>
11696 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
11698 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
11700 2005-10-17 Bruno Haible <bruno@clisp.org>
11702 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
11703 that it can also be used in a test.
11705 2005-10-16 Bruno Haible <bruno@clisp.org>
11707 * gnulib-tool (func_emit_tests_Makefile_am): Also define
11708 TESTS_ENVIRONMENT, so that individual tests can augment it.
11710 * gnulib-tool (func_create_testdir): Use an intermediate target for
11711 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
11712 macros, like $(ALLOCA_H), which cannot be passed through the command
11715 2005-10-15 Simon Josefsson <jas@extundo.com>
11717 * modules/rijndael-tests: New file.
11719 * modules/rijndael: New file.
11721 2005-10-15 Simon Josefsson <jas@extundo.com>
11723 * m4/rijndael.m4: New file.
11725 2005-10-15 Simon Josefsson <jas@extundo.com>
11727 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
11729 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
11731 2005-10-14 Simon Josefsson <jas@extundo.com>
11733 * tests/test-arcfour.c: New file.
11735 * modules/arcfour, modules/arcfour-tests: New files.
11737 2005-10-14 Simon Josefsson <jas@extundo.com>
11739 * m4/arcfour.m4: New file.
11741 2005-10-14 Simon Josefsson <jas@extundo.com>
11743 * lib/arcfour.h, lib/arcfour.c: New files.
11745 2005-10-14 Roland McGrath <roland@redhat.com>
11747 Import from libc. [BZ #1331]
11748 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
11750 Reported by Matej Vela <vela@debian.org>.
11752 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
11754 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
11755 include <wchar.h>; no longer needed.
11757 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
11759 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
11761 2005-10-14 Jakub Jelinek <jakub@redhat.com>
11762 and Ulrich Drepper <drepper@redhat.com>
11765 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
11766 instead of inline stream orientation test and two separate
11767 function calls. Pay no attention to USE_IN_LIBIO.
11769 2005-10-13 Simon Josefsson <jas@extundo.com>
11771 * modules/gc-hmac-md5-tests: New file.
11773 * tests/test-gc-hmac-sha1.c: New file.
11775 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
11777 * modules/gc-hmac-md5-tests: New file.
11779 * tests/test-gc-md5.c: New file.
11781 * modules/gc-md5-tests: New file.
11783 2005-10-13 Simon Josefsson <jas@extundo.com>
11785 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
11786 Move memory allocation outside of loop.
11788 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
11790 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
11791 intermediate directory is in a read-only file system. Problem
11792 reported by Eric Blake.
11794 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
11796 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
11798 2005-10-12 Simon Josefsson <jas@extundo.com>
11800 * tests/test-hmac-sha1.c: New file.
11802 * modules/hmac-sha1-tests: New file.
11804 * modules/hmac-sha1: New file.
11806 2005-10-12 Simon Josefsson <jas@extundo.com>
11808 * modules/gc-sha1: New file.
11810 2005-10-12 Simon Josefsson <jas@extundo.com>
11812 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
11814 * tests/test-gc-pbkdf2-sha1.c: New file.
11816 2005-10-12 Simon Josefsson <jas@extundo.com>
11818 * modules/gc-md5, modules/gc-hmac-md5: New files.
11820 * modules/gc (Files): Remove md5, memxor and hmac files.
11822 2005-10-12 Simon Josefsson <jas@extundo.com>
11824 * m4/gc-pbkdf2-sha1.m4: New file.
11826 * m4/gc-hmac-sha1.m4: New file.
11828 * m4/gc-sha1: New file.
11830 * m4/hmac-sha1.m4: New file.
11832 2005-10-12 Simon Josefsson <jas@extundo.com>
11834 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
11836 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
11838 2005-10-12 Simon Josefsson <jas@extundo.com>
11840 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
11841 suggested by Bruno Haible <bruno@clisp.org>.
11843 2005-10-12 Simon Josefsson <jas@extundo.com>
11845 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
11847 2005-10-12 Simon Josefsson <jas@extundo.com>
11849 * lib/gc-pbkdf2-sha1.c: New file.
11851 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
11853 2005-10-12 Simon Josefsson <jas@extundo.com>
11855 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
11857 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
11859 2005-10-12 Simon Josefsson <jas@extundo.com>
11861 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
11862 GC_USE_HMAC_MD5, respectively.
11864 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
11865 (gc_md5): Fix typo.
11867 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
11869 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
11871 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
11873 2005-10-12 Bruno Haible <bruno@clisp.org>
11875 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
11876 Reported by Stepan Kasal <kasal@ucw.cz>.
11878 2005-10-11 Simon Josefsson <jas@extundo.com>
11880 * tests/test-crc.c: New file.
11882 * modules/crc, modules/crc-tests: New files.
11884 2005-10-11 Simon Josefsson <jas@extundo.com>
11886 * m4/crc.m4: New file.
11888 2005-10-11 Simon Josefsson <jas@extundo.com>
11890 * lib/gc.h: Add gc_hash and gc_hash_buffer.
11892 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
11894 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
11896 2005-10-11 Simon Josefsson <jas@extundo.com>
11898 * lib/crc.h, lib/crc.c: New files.
11900 * lib/gc.h (gc_hash_buffer): Add doc.
11902 2005-10-11 Bruno Haible <bruno@clisp.org>
11904 * modules/c-strcasestr: New file.
11905 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
11907 2005-10-11 Bruno Haible <bruno@clisp.org>
11909 * modules/c-strcase: New file.
11910 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
11912 2005-10-11 Bruno Haible <bruno@clisp.org>
11914 * lib/strcasecmp.c: Include limits.h.
11915 (strcasecmp): Avoid integer overflow on exotic platforms.
11916 * lib/strncasecmp.c: Include limits.h.
11917 (strncasecmp): Avoid integer overflow on exotic platforms.
11918 Reported by Paul Eggert.
11920 2005-10-11 Bruno Haible <bruno@clisp.org>
11922 * lib/c-strcasestr.h: New file, from GNU gettext.
11923 * lib/c-strcasestr.c: New file, from GNU gettext.
11925 2005-10-11 Bruno Haible <bruno@clisp.org>
11927 * lib/c-strcase.h: New file, from GNU gettext.
11928 * lib/c-strcasecmp.c: New file, from GNU gettext.
11929 * lib/c-strncasecmp.c: New file, from GNU gettext.
11931 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
11933 * modules/mempcpy (License): GPL -> LGPL.
11934 * modules/strchrnul (License): Likewise.
11935 * modules/sysexits (License): Likewise.
11937 2005-10-08 Simon Josefsson <jas@extundo.com>
11939 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
11941 2005-10-07 Simon Josefsson <jas@extundo.com>
11943 * m4/memxor.m4: Remove gl_C_RESTRICT call.
11945 2005-10-06 Simon Josefsson <jas@extundo.com>
11947 * tests/test-hmac-md5.c: New file.
11949 * modules/hmac-md5-tests: New file.
11951 * modules/hmac-md5: New file.
11953 2005-10-06 Simon Josefsson <jas@extundo.com>
11955 * m4/hmac-md5.m4: New file.
11957 * m4/memxor.m4: Require gl_C_RESTRICT.
11959 2005-10-06 Simon Josefsson <jas@extundo.com>
11961 * lib/memxor.c (memxor): Avoid casts and warnings.
11963 2005-10-06 Simon Josefsson <jas@extundo.com>
11965 * lib/hmac-md5.c: New file.
11967 * lib/hmac.h: New file.
11969 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
11971 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
11972 promotes to int, not unsigned int, to catch the AIX 5.3
11975 2005-10-05 Simon Josefsson <jas@extundo.com>
11977 * modules/memxor: New file.
11979 * modules/iconv (Files): Move config.rpath to havelib, it is used
11982 * modules/havelib (Files): Add config.rpath.
11984 2005-10-05 Simon Josefsson <jas@extundo.com>
11986 * m4/memxor.m4: New file.
11988 2005-10-05 Simon Josefsson <jas@extundo.com>
11990 * lib/memxor.c (memxor): Fix compiler error.
11992 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
11993 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
11995 * lib/memxor.h, lib/memxor.c: New files.
11997 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
11998 we assume all systems have it, suggested by Jim Meyering
11999 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
12000 any systems lack sys/socket.h; mingw32 is known to lack it, but we
12001 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
12004 2005-10-05 Simon Josefsson <jas@extundo.com>
12006 * config/srclist.txt: Add glibc bug 1423 for md5.h.
12008 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
12010 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
12011 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
12012 needed, since the source code now assumes these .h files.
12014 2005-10-05 Derek Price <derek@ximbiot.com>
12016 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
12018 2005-10-05 Bruno Haible <bruno@clisp.org>
12020 * modules/stdint (License): Change to LGPL.
12022 2005-10-04 Simon Josefsson <jas@extundo.com>
12024 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
12025 D. Baushke" <mdb@gnu.org>.
12027 2005-10-04 Bruno Haible <bruno@clisp.org>
12029 * lib/verify.h (verify_true): Provide alternative definition for C++.
12031 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
12033 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
12034 (SSIZE_MAX): New macro, if not already defined.
12035 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
12038 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12040 Sync from coreutils.
12041 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
12042 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
12043 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
12044 ULLONG_MAX doesn't work with 2.7.2.1.
12046 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12048 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
12051 * modules/exclude (Depends-on): Depend on verify.
12052 * modules/strtoimax (Depends-on): Likewise.
12053 * modules/utimecmp (Depends-on): Likewise.
12055 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
12057 * lib/exclude.c: Include verify.h.
12058 (verify): Remove. All callers changed to use verify.h's version.
12059 * lib/strtoimax.c: Likewise.
12060 * lib/utimecmp.c: Likewis.e
12062 Sync from coreutils.
12063 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
12064 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
12065 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
12066 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
12067 bother returning ENOSYS if settimeofday or stime fails; just let
12068 them return whatever errno they want to return.
12069 * lib/utimens.c: Include unistd.h, for dup2.
12070 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
12071 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
12073 2005-10-02 Jim Meyering <jim@meyering.net>
12075 Sync from coreutils.
12076 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
12077 from glibc-2.2.5 that fails for read-only files.
12079 2005-10-02 Jim Meyering <jim@meyering.net>
12081 Sync from coreutils.
12082 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
12083 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
12084 `#if HAVE_CONFIG_H'.
12085 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
12086 Remove AT_FDCWD test.
12087 Do not consume the fd unless successful.
12088 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
12089 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
12090 block, so that we don't even try to compile it if settimeofday is
12091 available. This works around a compilation failure on OSF1 V5.1,
12092 due to stime requiring a `long int*' while tv_sec is `int'.
12094 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
12096 Sync from coreutils.
12097 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
12098 against `yes', rather than just testing for nonempty.
12100 2005-10-01 Simon Josefsson <jas@extundo.com>
12102 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
12105 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
12106 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
12107 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
12108 freeaddrinfo and gai_strerror are declared by the POSIX headers.
12109 Check if struct addrinfo is declared.
12111 2005-10-01 Simon Josefsson <jas@extundo.com>
12113 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
12114 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
12115 AI_* and EAI_* definitions. Protect function declarations.
12117 2005-10-01 Jim Meyering <jim@meyering.net>
12119 Sync from coreutils.
12121 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
12122 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
12123 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
12124 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12125 in the inet and nsl libraries. Required on Solaris 5.7.
12127 2005-10-01 Jim Meyering <jim@meyering.net>
12129 Sync from coreutils.
12130 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
12131 in the inet and nsl libraries. Required on Solaris 5.7.
12133 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
12135 * lib/getdelim.c (getdelim): Remove unused variables.
12137 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
12139 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
12140 so that the code works even with ancient cpp. Portability problem
12141 with GCC 2.7.2.1 reported by Thomas M.Ott.
12143 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
12145 * modules/regex (Depends-on): Add strcase.
12147 * modules/gethostname (Licence): Change from GPL to LGPL, since
12148 gethostname.c is a trivial implementation of a standard library
12150 * modules/poll (License): Change from GPL to LGPL, since it's
12151 derived from LGPL code.
12153 2005-09-27 Jim Meyering <jim@meyering.net>
12155 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
12158 * lib/intprops.h (signed_type_or_expr__): Define.
12159 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
12160 for unsigned types.
12162 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
12164 * lib/verify.h (verify_expr): Remove, replacing with:
12165 (verify_true): New macro that returns true instead of void.
12166 (verify_type__): Remove.
12167 (verify): Use verify_true rather than verify_type__.
12169 2005-09-26 Bruno Haible <bruno@clisp.org>
12171 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
12173 (lib_SOURCES): Remove mbchar.c.
12174 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
12175 (Files): Add m4/mbrtowc.m4.
12176 * modules/mbiter: Likewise.
12177 * modules/mbuiter: Likewise.
12179 2005-09-26 Bruno Haible <bruno@clisp.org>
12181 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
12182 compile mbchar.c if they are not both present.
12183 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
12184 * m4/mbiter.m4 (gl_MBITER): Likewise.
12185 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
12186 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
12187 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
12189 2005-09-25 Jim Meyering <jim@meyering.net>
12191 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
12192 also uses socklen_t.
12194 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
12196 * lib/utimens.c (ENOSYS): Define if not already defined.
12197 (futimens): Support having a null PATH if the file descriptor
12200 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
12202 (__attribute): Define to empty unless GCC 3.1 or later.
12203 This works around a core dump on OpenBSD 3.4, which has GCC
12204 2.95.3, which dumps core when given __attribute__(()). It also
12205 simplifies other tests, since we really don't want to bother with
12206 worrying about which ancient version of GCC supported what.
12207 Original problem reported by Yoann Vandoorselaere, with part of
12208 the fix suggested by Derek Price.
12210 2005-09-24 Jim Meyering <jim@meyering.net>
12212 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
12213 so we can once again use a positive bitfield width of 1 -- now we
12214 don't have to explain why we were using a bitfield width of 2.
12216 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
12218 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
12219 and similarly for the other external symbols. Problem reported
12222 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
12223 bug reported by Jim Meyering.
12225 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
12226 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
12227 not needed, since socklen is a prerequisite module.
12229 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
12231 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
12232 Problem reported by Eric Blake.
12233 (getaddrinfo): Initialize se so that it's not garbage.
12234 Redo internal storage allocation so that it doesn't make unportable
12235 assumptions about alignment.
12238 * lib/utimens.c (futimens): Use futimesat if available.
12239 Prefer it to futimes since it doesn't have the futimes bug.
12241 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
12242 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
12243 Instead, declare a function that returns a pointer to an array,
12244 and use verify_type__ to declare the size of the array.
12245 Problem and germ of a solution reported by Bruno Haible.
12246 (verify_type__): Use 2, not 1, for bitfield size, to avoid
12247 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
12249 2005-09-23 Jim Meyering <jim@meyering.net>
12251 Sync from coreutils.
12252 Correct build failure (socklen_t not defined) on at least
12253 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
12254 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
12256 2005-09-23 Jim Meyering <jim@meyering.net>
12258 * modules/getaddrinfo (Depends-on): Add socklen.
12260 2005-09-23 Bruno Haible <bruno@clisp.org>
12262 * tests/test-verify.c: New file.
12264 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12266 Sync from coreutils.
12268 * modules/argmatch (Depends-on): Add verify.
12269 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
12271 * modules/save-cwd (Depends-on): Likewise.
12273 * modules/openat (Files): Add lib/openat-die.c.
12274 (Depends-on): Remove error, exitfail.
12277 * modules/verify: New file.
12278 * MODULES.html.sh (Diagnostics <assert.h>): New section,
12279 with "verify" module.
12281 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12283 Sync from coreutils.
12285 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
12286 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
12287 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
12288 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
12289 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
12290 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
12291 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
12292 Don't bother checking for string.h, stdlib.h, unistd.h.
12293 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
12294 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
12296 * m4/jm-macros.m4 (gl_MACROS): Likewise.
12297 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
12299 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
12300 (gl_GETDATE): Use it.
12302 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
12304 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12306 Sync from coreutils.
12308 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
12310 * lib/argmatch.h: Include verify.h
12311 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
12312 (ARGMATCH_ASSERT): Remove; unused.
12313 * lib/canonicalize.c: Assume STDC_HEADERS.
12314 * lib/exclude.c: Include "strcase.h".
12315 * lib/regex_internal.h [!defined _LIBC]: Likewise.
12316 * lib/getusershell.c: Include stdio--.h rather than stdio.h
12318 (getusershell): Call fopen, not fopen_safer.
12319 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
12320 Do not include unistd-safer.h.
12321 (save_cwd): Don't call fd_safer; no longer needed
12322 now that we include fcntl--.h.
12324 * lib/getdate.y (relative_time): New type.
12325 (RELATIVE_TIME_0): New constant.
12326 (parser_control): Use relative_time instead of doing it ourselves.
12327 (%union): Add new relative_time rel member.
12328 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
12330 (relunit, relunit_snumber): Now of type rel.
12331 (zone, rel, relunit, get_date): Adjust to above changes.
12333 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
12334 Do not include unistd-safer.h.
12335 (getloadavg): Don't call fd_safer; no longer needed
12336 now that we include fcntl--.h.
12338 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
12339 (make_dir_parents): Treat ENOSYS like EEXIST.
12341 Improve quality of diagnostics on restore_cwd failure.
12342 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
12343 (make_dir_parents): Last arg is now int * (for errno), not bool *.
12344 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
12345 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
12346 each time through the loop. Do not diagnose restore_cwd failure;
12347 that is the caller's job (and perhaps the caller does not care).
12349 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
12350 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
12351 If the file already exists but is not a directory, don't bother
12352 to try to make its parents.
12353 Close potential file descriptor leak if we can't chdir("/") (!).
12354 Don't always return true if chdir($PWD) fails; return true only
12355 if the requested action was done successfully (except for the
12357 Don't log final directory unless we actually made it.
12358 Refactor to avoid duplicate code to fix up permissions.
12359 Don't attempt to fix up parent permissions if chdir($PWD) fails.
12361 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
12362 to make it a bit faster and (I hope) clearer.
12363 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
12364 Fix bug in formats like %2N.
12366 * lib/verify.h: New file.
12368 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
12370 Sync from coreutils.
12371 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
12373 2005-09-22 Jim Meyering <jim@meyering.net>
12375 Sync from coreutils.
12377 * m4/lstat.m4 (gl_FUNC_LSTAT):
12378 Use AC_LIBSOURCES to require lstat.c and lstat.h.
12379 Remove obsolete comment.
12380 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
12381 * m4/xstrtod.m4: Likewise.
12383 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
12385 2005-09-22 Jim Meyering <jim@meyering.net>
12387 Sync from coreutils.
12389 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
12391 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
12392 the .tm_year member, since otherwise gcc-4.0 would now warn about
12393 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
12395 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
12396 order to avoid an unsuppressible warning from gcc on 64-bit systems.
12398 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
12399 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
12400 when run in a time zone for which daylight savings time is in effect
12401 for the starting date.
12403 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
12404 stop us from restricting permissions of just-created absolute-named
12406 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
12407 to restore initial working directory.
12408 * lib/mkdir-p.c (make_dir_parents): New parameter:
12409 different_working_dir, to tell caller if/when we change the working
12410 directory and are unable to return to the initial one.
12411 * lib/mkdir-p.h (make_dir_parents): Update prototype.
12412 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
12413 `return false'. This fixes a bug introduced on 2004-07-30.
12415 * lib/openat.c (fdopendir): Be sure to close the supplied
12416 file descriptor before returning. This makes our replacement
12417 implementation a little closer to Solaris's, where fdopendir
12418 ties the file descriptor to the returned DIR* pointer.
12419 * lib/openat.c (unlinkat): New function.
12420 * lib/openat.h (unlinkat): Add prototype.
12421 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
12422 (openat_restore_fail): Rename from openat_restore_die.
12423 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
12425 Provide an alternative to exiting immediately upon save_cwd or
12426 restore_cwd failure. Now, an application can arrange e.g.,
12427 to perform a longjump in that case.
12428 * lib/openat.c: Include dirname.h.
12429 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
12430 (rpl_openat, fdopendir, fstatat): Call openat_save_die
12431 and openat_restore_die rather than calling error directly.
12432 Don't include "error.h" or "exitfail.h"; they're no longer needed.
12434 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
12435 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
12438 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
12439 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
12440 int utc, int nanoseconds);
12442 date should not have to allocate a megabyte of virtual memory to
12443 handle a format argument like +%1048575T. When implemented with
12444 strftime, it must allocate such a buffer, use strftime to fill it
12445 in, print it, then free it.
12446 With fprintftime, it simply prints everything and exits.
12447 With no need for memory allocation, that's one fewer way to fail.
12448 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
12449 optional field width, not before, so we accept %9:z, not %:9z.
12450 (my_strftime): Be sure to use L_('x') for literals.
12452 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
12453 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
12454 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
12455 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
12456 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
12457 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
12458 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
12459 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
12460 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
12461 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
12462 * lib/xgethostname.c, lib/xreadlink.c:
12463 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
12465 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
12466 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
12467 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
12468 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12469 and don't include <sys/file.h>).
12471 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
12473 Sync from coreutils.
12475 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
12476 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
12477 [!LDAV_DONE]: Avoid unused variable warning.
12479 2005-09-21 Bruno Haible <bruno@clisp.org>
12481 * lib/unicodeio.h (unicode_to_mb): New declaration.
12483 2005-09-20 Derek Price <derek@ximbiot.com>
12485 * lib/getaddrinfo.c: Don't include <netdb.h> included from
12488 2005-09-20 Bruno Haible <bruno@clisp.org>
12490 * gnulib-tool: Remove trailing slashes from the values specified for
12491 --source-base, --m4-base, --tests-base, --aux-dir.
12492 Suggested by Simon Josefsson <jas@extundo.com>.
12494 2005-09-20 Bruno Haible <bruno@clisp.org>
12496 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
12497 func_modules_to_filelist, func_import, func_create_testdir): Make all
12498 sorting results locale-independent, so that gnulib-cache.m4 doesn't
12499 change when gnulib-tool is invoked in a different locale.
12501 2005-09-19 Simon Josefsson <jas@extundo.com>
12503 * m4/socklen.m4: Fix typo.
12505 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12507 Use a consistent style for including <config.h>.
12508 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
12509 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
12510 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
12511 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
12512 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
12513 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
12514 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
12515 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
12516 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
12517 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
12518 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
12519 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
12520 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
12521 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
12522 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
12523 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
12524 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
12525 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
12526 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
12527 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
12528 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
12529 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
12530 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
12531 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
12532 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
12533 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
12534 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
12535 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
12536 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
12537 lib/xstrtoumax.c, lib/yesno.c:
12538 Standardize inclusion of config.h.
12539 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
12540 lib/inttostr.h: Removed inclusion of config.h from header files.
12541 * lib/inttostr.c: Adjusted in-tree users.
12542 * lib/timespec.h: Remove superfluous warning to include config.h.
12543 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
12544 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
12545 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
12546 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
12547 config.h with HAVE_CONFIG_H.
12549 2005-09-19 Jim Meyering <jim@meyering.net>
12551 * modules/pathmax (License): Change to LGPL.
12553 2005-09-19 Derek Price <derek@ximbiot.com>
12555 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
12557 2005-09-19 Bruno Haible <bruno@clisp.org>
12559 * gnulib-tool (import): Provide default for --tests-base.
12561 2005-09-19 Bruno Haible <bruno@clisp.org>
12563 * doc/quote.texi: New file, extracted from gnulib.texi.
12564 * doc/ctime.texi: New file, extracted from gnulib.texi.
12565 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
12566 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
12567 * doc/gnulib.texi: Include them.
12569 2005-09-18 Bruno Haible <bruno@clisp.org>
12572 * gnulib-tool (func_readlink): New function.
12573 (func_ln_if_changed): Use it.
12575 2005-09-18 Bruno Haible <bruno@clisp.org>
12577 * gnulib-tool: Support --with-tests also with --import.
12578 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
12579 (func_import): Use variables $testsbase and $inctests. Emit a
12580 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
12581 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
12582 SUBDIRS += $testsdir.
12583 (func_create_testdir): Update.
12585 2005-09-18 Bruno Haible <bruno@clisp.org>
12587 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
12588 instead of $dry_run.
12589 (func_cp_if_changed, func_mv_if_changed): Remove functions.
12590 (func_ln_if_changed): Don't handle dry-run here.
12591 (func_import): In dry-run mode, detect more precisely which actions
12592 would be performed, and don't use "...ing" verbs.
12594 2005-09-18 Bruno Haible <bruno@clisp.org>
12596 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
12597 (func_import): Use join on two temporary files instead of three nested
12598 loops, in order to determine which files are new or old.
12600 2005-09-18 Bruno Haible <bruno@clisp.org>
12602 * gnulib-tool (func_import): Comment out code that spits out the
12603 new files with --dry-run.
12605 2005-09-18 Bruno Haible <bruno@clisp.org>
12607 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
12609 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12611 * lib/stat-time.h: New file.
12612 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
12613 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
12614 in a different way.
12615 (timespec_cmp): New function.
12616 * lib/utimecmp.c: Include stat-time.h.
12617 (SYSCALL_RESOLUTION): Depend on whether various struct stat
12618 members exist, not on the obsolescent ST_MTIM_NSEC.
12619 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
12621 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12623 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
12625 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12627 * MODULES.html.sh (File system functions): Add stat-time.
12628 * modules/stat-time: New file.
12629 * modules/timespec (Files): Remove m4/st_mtim.m4; this
12630 is now done in a different way, by the stat-time module.
12631 * modules/utimecmp (Depends-on): Add stat-time.
12633 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
12635 * m4/st_mtim.m4: Remove. Superseded by...
12636 * m4/stat-time.m4: New file.
12637 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
12638 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
12640 2005-09-15 Derek Price <derek@ximbiot.com>
12642 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
12644 2005-09-15 Derek Price <derek@ximbiot.com>
12646 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
12647 * lib/regex_internal.c: Ditto, using this...
12648 (__GNUC_PREREQ): ...new macro.
12649 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
12651 (__GNUC_PREREQ): ...this new macro.
12653 * lib/strstr.h: Include string.h. Define strstr as a macro here.
12655 2005-09-15 Derek Price <derek@ximbiot.com>
12656 Paul Eggert <eggert@cs.ucla.edu>
12658 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
12659 changes, consolidating in...
12660 * lib/regex_internal.h: ...this file.
12662 2005-09-13 Jim Meyering <jim@meyering.net>
12664 * lib/canon-host.c: Filter through gnu indent and reword comments
12666 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
12668 2005-09-13 Derek Price <derek@ximbiot.com>
12670 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
12672 Reported by Jim Meyering <jim@meyering.net>.
12674 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
12676 * lib/base64.c: Typo.
12677 (base64_encode): Put b64str in initialized data section.
12679 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
12681 Merge glibc and coreutils changes into gnulib, plus a few
12683 * lib/md5.c: Use #error rather than a string.
12684 (CYCLIC): New macro, from glibc source. Use it instead of rol.
12685 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
12686 (__attribute__): Define to empty for non recent-GCC.
12687 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
12688 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
12689 Renamed from their non-__ counterparts, with new macros replacing
12690 them if not _LIBC. Add __THROW attribute.
12692 (struct md5_ctx): Align buffer if using GCC.
12693 * lib/sha1.h (struct sha1_ctx): Likewise.
12694 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
12695 The old name was backwards.
12696 (NOTSWAP): Remove; not used.
12697 (rol): New macro, moved here from md5.h.
12698 (sha1_process_block): Remove a FIXME that doesn't make sense.
12700 2005-09-12 Derek Price <derek@ximbiot.com>
12702 Return usable errors from canon-host.
12703 * lib/canon-host.h: New file.
12704 * lib/canon-host.c (canon_host): Wrap...
12705 (canon_host_r): ...this new function, which now relies exclusively on
12707 (ch_strerror): New function.
12708 (last_cherror): New global.
12709 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
12711 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
12713 (freeaddrinfo): Free ai->ai_canonname when set.
12715 2005-09-12 Derek Price <derek@ximbiot.com>
12717 Make canon-host require getaddrinfo.
12718 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
12719 AC_LIBSOURCE canon-host.h. Call...
12720 (gl_PREREQ_CANON_HOST): ...this new function, which requires
12722 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
12724 2005-09-12 Derek Price <derek@ximbiot.com>
12726 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
12728 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
12730 2005-09-12 Derek Price <derek@ximbiot.com>
12732 * lib/gai_strerror.c: Include config.h when available. Include
12733 getaddrinfo.h before other headers to test interface.
12734 Reported by Larry Jones <lawrence.jones@ugs.com>.
12736 2005-09-12 Derek Price <derek@ximbiot.com>
12737 Paul Eggert <eggert@cs.ucla.edu>
12739 * modules/glob (Files): Add glob-libc.h.
12741 2005-09-12 Derek Price <derek@ximbiot.com>
12742 Paul Eggert <eggert@cs.ucla.edu>
12744 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
12745 glob_.h, glob-libc.h.
12746 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
12748 2005-09-12 Derek Price <derek@ximbiot.com>
12749 Paul Eggert <eggert@cs.ucla.edu>
12751 * lib/glob-libc.h: Renamed from glob_.h. The new version is
12752 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
12753 protecting things that should be done only in gnulib contexts.
12754 * lib/glob_.h: New file, containing only the glob things needed for
12756 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
12757 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
12758 (glob, globfree, glob_pattern_p): Now defined simply in terms of
12759 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
12760 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
12761 and to respect the namespace rules better.
12763 2005-09-08 Simon Josefsson <jas@extundo.com>
12765 * modules/socklen: New file.
12767 2005-09-08 Simon Josefsson <jas@extundo.com>
12769 * m4/socklen.m4: New file.
12771 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12773 * modules/utimens (Files): Add m4/utimbuf.m4, since
12774 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
12775 Reported by Sergey Poznyakoff.
12777 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12779 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
12780 definitions, since that's the preferred style in glibc.
12781 Fix a minor spacing issue, and update copyright notice to match
12784 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12786 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
12788 2005-09-06 Simon Josefsson <jas@extundo.com>
12790 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
12791 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
12793 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12795 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
12798 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12800 * config/srclist.txt: Add glibc bug 1302.
12802 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
12804 Change bitset word type from unsigned int to unsigned long int,
12805 as this has better performance on typical 64-bit hosts.
12806 Port bitset code to hosts with unusual word sizes.
12807 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
12808 (build_collating_symbol):
12809 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
12810 argument is a bitset. This is merely a style issue, but it makes
12811 it clearer that an entire array is expected.
12812 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
12813 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
12814 Port to the case where bitset_word is not the same as unsigned int.
12815 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
12816 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
12818 * lib/regexec.c (check_dst_limits_calc_pos_1,
12819 check_subexp_matching_top):
12820 (build_trtable, group_nodes_into_DFAstates):
12822 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
12823 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
12824 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
12825 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
12826 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
12827 * lib/regcomp.c (optimize_subexps, lower_subexp):
12828 Work even if bitset_word has holes in its bitwise representation.
12829 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
12830 * lib/regexec.c (check_dst_limits_calc_pos_1,
12831 check_subexp_matching_top):
12833 * lib/regex_internal.c (re_string_reconstruct):
12834 Don't assume UCHAR_MAX == 255.
12835 * lib/regex_internal.h (bitset_set_all): Likewise.
12836 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
12838 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
12839 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
12841 (BITSET_WORD_MAX): New macro.
12842 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
12843 (bitset_set_all, bitset_copy): Now inline functions, not macros.
12844 (bitset_empty, bitset_copy):
12845 Prefer sizeof (bitset) to multiplying it out ourselves.
12846 (bitset_not_merge): Remove; unused.
12847 (bitset_contain): Return bool, not unsigned int with one bit on.
12848 All callers changed.
12849 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
12850 alignment than re_node_set; do this by defining a new internal
12851 type struct dests_alloc and using it to allocate memory.
12853 2005-09-05 Bruno Haible <bruno@clisp.org>
12855 * gnulib-tool (func_import): Fix comparison in handling of symbolic
12858 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
12860 * modules/size_max (Makefile.am): Add size_max.h
12862 2005-09-04 Derek Price <derek@ximbiot.com>
12864 * gnulib-tool (func_import): Fix reversed $symbolic logic.
12866 2005-09-03 Simon Josefsson <jas@extundo.com>
12868 * gnulib-tool: Fix typo.
12870 2005-09-03 Simon Josefsson <jas@extundo.com>
12872 * config/srclist.txt: Add glibc bug 1293.
12874 2005-09-03 Derek Price <derek@ximbiot.com>
12876 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
12877 From Larry Jones <lawrence.jones@ugs.com>.
12879 2005-09-02 Simon Josefsson <jas@extundo.com>
12881 * modules/socklen: New file.
12883 2005-09-02 Simon Josefsson <jas@extundo.com>
12885 * modules/havelib: New module.
12887 * modules/gettext, modules/iconv, modules/lock, modules/readline:
12890 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
12892 Check for arithmetic overflow when calculating sizes, to prevent
12893 some buffer-overflow issues. These patches are conservative, in the
12894 sense that when I couldn't determine whether an overflow was possible,
12895 I inserted a run-time check.
12896 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
12898 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
12899 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
12900 (re_xnrealloc, re_x2nrealloc): New inline functions.
12901 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
12902 parse_bracket_exp):
12903 (build_equiv_class, build_charclass): Check for arithmetic overflow
12904 in size expression calculations.
12905 * lib/regex_internal.c (re_string_realloc_buffers):
12906 (build_wcs_upper_buffer, re_node_set_add_intersect):
12907 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
12908 (re_dfa_add_node, register_state): Likewise.
12909 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
12910 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
12911 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
12912 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
12914 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
12916 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
12917 m4/ulonglong.m4. Problem reported by Martin Lambers.
12919 2005-09-02 Bruno Haible <bruno@clisp.org>
12921 Support for lib vs. lib64 distinction on biarch platforms.
12922 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
12923 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
12924 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
12926 2005-09-02 Bruno Haible <bruno@clisp.org>
12928 * gnulib-tool (import): In the other first-use case, provide defaults
12931 2005-09-02 Bruno Haible <bruno@clisp.org>
12933 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
12934 patches not yet found in the latest gettext release.
12936 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
12938 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
12939 to avoid a collision with bits/local_lim.h in glibc.
12940 All uses changed. Problem reported by Dmitry V. Levin in
12941 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
12943 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
12944 bugs in int versus size_t comparisons.
12945 (re_string_context_at): Fix bug where the code assumed that
12948 Use bool where appropriate.
12949 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
12950 All callers changed.
12951 (calc_eclosure_iter): Likewise, for ROOT arg.
12952 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
12953 (build_charclass_op): Likewise, for NON_MATCH arg.
12954 * lib/regex_internal.c (re_string_allocate, re_string_construct):
12955 (re_string_construct_common): Likewise, for ICASE arg.
12956 * lib/regexec.c (re_search_2_stub, re_search_stub):
12957 Likewise, for RET_LEN arg.
12958 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
12959 (set_regs): Likewise, for FL_BACKTRACK arg.
12960 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
12961 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
12962 (calc_eclosure_iter, parse_bracket_exp):
12963 Use bool for internal variables that are booleans.
12964 * lib/regexec.c (re_search_internal, check_matching,
12965 proceed_next_node):
12966 (set_regs, build_sifted_states, sift_states_bkref):
12967 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
12968 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12969 (find_collation_sequence_value):
12971 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
12972 (re_node_set_compare):
12973 Return bool, not int. All callers changed.
12974 * lib/regexec.c (check_halt_node_context, check_dst_limits):
12975 (build_trtable, check_node_accept): Likewise.
12976 * lib/regex_internal.h: Include stdbool.h.
12978 Fix bugs uncovered when converting to bool.
12979 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
12980 failure instead of charging ahead blindly.
12981 * lib/regex_internal.c (register_state): Likewise.
12982 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
12983 for freeing internal storage.
12984 (group_nodes_into_DFA_states): Use unsigned int, not int, for
12985 bitset pieces used as boolean, to avoid undefined behavior
12986 on hosts that do int overflow checking.
12988 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
12990 * config/srclist.txt: Add glibc bugs 1285-1287.
12992 2005-09-01 Jim Meyering <jim@meyering.net>
12994 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
12995 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
12996 Require gl_STAT_MACROS, too.
12998 2005-09-01 Bruno Haible <bruno@clisp.org>
13000 * gnulib-tool (import): In the first-use case, provide defaults.
13002 2005-09-01 Bruno Haible <bruno@clisp.org>
13004 * gnulib-tool (func_import): Remove the .tmp files.
13006 2005-09-01 Bruno Haible <bruno@clisp.org>
13008 * gnulib-tool (func_import): Fix handling of symbolic links.
13010 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13012 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
13013 old glibc regex code mishandles strings longer than 2**31 bytes.
13014 This patch fixes this when the regex code is used in gnulib
13015 (i.e., outside glibc).
13017 This patch should not affect the use of the regex code inside
13018 glibc. No doubt this problem also needs to be handled for glibc
13019 as well, but the result will be an incompatible change to the
13020 glibc ABI, and the old ABI will have to be supported too. That
13021 can be the the subject for another patch.
13023 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
13024 governing whether the rest of this patch is active. By default,
13025 the macro is disabled and the patch has no effect.
13026 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
13027 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
13028 (struct re_pattern_buffer, re_search, re_search_2, re_match):
13029 (re_match_2, re_set_registers): Use the new types.
13030 * lib/regex_internal.h (Idx, re_hashval_t): New types.
13031 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
13033 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
13034 (re_string_context_at, bin_tree_t, re_dfastate_t):
13035 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
13036 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
13037 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
13038 (re_string_char_size_at, re_string_wchar_at):
13039 (re_string_elem_size_at):
13040 Use the new types and macros to port to 64-bit hosts.
13041 Use unsigned types for internal values, so that the code
13042 mostly works even for arrays larger than SSIZE_MAX.
13043 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
13044 (search_duplicated_node, calc_eclosure_iter, fetch_number):
13045 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
13046 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
13047 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
13048 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
13049 (calc_inveclosure, parse_dup_op, build_range_exp):
13050 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
13051 (fetch_number, create_token_tree, mark_opt_subexp):
13053 * lib/regex_internal.c (re_string_construct_common,
13054 create_ci_newstate):
13055 (create_cd_newstate, re_string_allocate, re_string_construct):
13056 (re_string_realloc_buffers, build_wcs_upper_buffer):
13057 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
13058 (re_string_reconstruct, re_string_peek_byte_case):
13059 (re_string_fetch_byte_case, re_string_context_at):
13060 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
13061 (re_node_set_init_copy, re_node_set_add_intersect):
13062 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13063 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13064 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
13065 (re_acquire_state, re_acquire_state_context, register_state):
13067 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
13068 search_cur_bkref_entry):
13069 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
13070 (re_search_internal, re_search_2_stub, re_search_stub)
13071 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
13072 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
13073 (update_cur_sifted_state, check_dst_limits):
13074 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13075 (check_subexp_limits, sift_states_bkref, merge_state_array):
13076 (check_subexp_matching_top, get_subexp, get_subexp_sub):
13077 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
13078 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
13079 (expand_bkref_cache, check_node_accept_bytes):
13080 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
13081 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
13082 (acquire_init_state_context, check_halt_node_context):
13083 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
13084 (sift_states_backward, clean_state_log_if_needed):
13085 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
13086 (find_recover_state, transit_state_sb, transit_state_mb):
13087 (transit_state_bkref, build_trtable, match_ctx_clean):
13089 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
13090 to work around an assumption that REG_MISSING is negative.
13092 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
13093 (seek_collating_symbol_entry) [defined _LIBC]:
13094 (lookup_collation_sequence_value) [defined _LIBC]:
13095 (build_range_exp, build_collating_symbol) [defined _LIBC]:
13096 Use prototypes rather than old-style function definitions.
13097 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
13098 (transit_state_sb) [0]:
13099 (find_collation_sequence_value) [defined _LIBC]: Likewise.
13101 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
13104 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
13105 (optimize_subexps, lower_subexp):
13106 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
13107 since the signed shift might overflow. Use 1u<<31 instead.
13108 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
13110 * lib/regexec.c (check_dst_limits_calc_pos_1,
13111 check_subexp_matching_top): Likewise.
13113 * lib/regcomp.c (optimize_subexps, lower_subexp):
13114 Use CHAR_BIT rather than 8, for clarity.
13115 * lib/regexec.c (check_dst_limits_calc_pos_1):
13116 (check_subexp_matching_top): Likewise.
13117 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
13118 have to worry about portability issues when shifting it left.
13119 Remove no-longer-needed test for table_size > 0.
13120 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
13121 in a word, as the resulting behavior is undefined.
13122 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
13123 in one case, a <= should have been an <, and in another case the
13124 whole test was missing.
13125 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
13126 the standard name CHAR_BIT.
13127 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
13128 this is not true on one's complement and signed-magnitude hosts.
13130 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
13132 (struct re_dfa_t): Remove unused member states_alloc.
13133 * lib/regcomp.c (init_dfa): Don't initialize unused members.
13135 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13137 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
13138 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
13139 and large-file glibc and in 32-bit large-file Solaris.
13141 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13143 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
13144 lengths fit in regoff_t; this isn't true if regoff_t is the same
13146 * lib/regex.c (re_search_internal): 5th arg is LAST_START
13147 (= START + RANGE) instead of RANGE. This avoids overflow
13148 problems when regoff_t is the same width as size_t.
13149 All callers changed.
13150 (re_search_2_stub): Check for overflow when adding the
13151 sizes of the two strings.
13152 (re_search_stub): Check for overflow when adding START
13153 to RANGE; if it occurs, substitute the extreme value.
13155 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
13157 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
13159 2005-08-31 Jim Meyering <jim@meyering.net>
13161 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
13162 a pointer-to-const.
13163 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
13164 (register_state): Likewise.
13165 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
13166 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
13167 (group_nodes_into_DFAstates): Likewise.
13169 2005-08-31 Jim Meyering <jim@meyering.net>
13171 * check-module: Add a FIXME comment.
13173 2005-08-31 Eric Blake <ebb9@byu.net>
13175 * modules/unistd-safer (Files): Add unistd--.h.
13176 * modules/stdio-safer (Files): Add stdio--.h.
13178 2005-08-31 Derek Price <derek@ximbiot.com>
13180 * lib/getdelim.c (getdelim): Return EOF on EOF.
13181 Reported by Larry Jones <lawrence.jones@ugs.com>.
13183 2005-08-31 Bruno Haible <bruno@clisp.org>
13185 Avoid unnecessary diffs in the generated lib/Makefile.am.
13186 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
13187 the generated files.
13188 (func_import): Don't set cmd.
13190 2005-08-31 Bruno Haible <bruno@clisp.org>
13192 * lib/strstr.c: Include <stddef.h>, for NULL.
13193 * lib/strcasestr.c: Likewise.
13194 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13196 2005-08-31 Bruno Haible <bruno@clisp.org>
13198 * gnulib-tool: New option --macro-prefix.
13199 (func_import): Use macro_prefix.
13200 (import): Handle option --macro-prefix.
13202 2005-08-31 Bruno Haible <bruno@clisp.org>
13204 * gnulib-tool (import): Rename most ac_* variables to cached_*.
13205 Also use new variables cached_lgpl, cached_libtool.
13207 2005-08-31 Bruno Haible <bruno@clisp.org>
13209 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
13210 always instantiating them.
13212 2005-08-31 Bruno Haible <bruno@clisp.org>
13214 * gnulib-tool (func_import): Read the previous cached settings
13215 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
13216 earlier added by gnulib but are now dropped. Warn when a gnulib file
13217 overwrites a non-gnulib file.
13219 2005-08-31 Bruno Haible <bruno@clisp.org>
13221 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
13222 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
13223 projects that don't keep autogenerated files in CVS. Put into
13224 actioncmd only the specified modules, not the transitive closure.
13226 2005-08-31 Bruno Haible <bruno@clisp.org>
13228 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
13229 Create directories that shall be filled.
13230 (import): Don't look for gl_* macros in configure.ac. Recurse across
13231 all directories containing a gnulib-cache.m4 files, if meaningful.
13233 2005-08-31 Bruno Haible <bruno@clisp.org>
13235 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
13236 (import): Set seen_libtool when we see gl_LIBTOOL.
13238 2005-08-31 Bruno Haible <bruno@clisp.org>
13240 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
13241 declaration macro definitions from generated gnulib.m4.
13243 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
13245 * lib/iconvme.h: Add prototype for iconv_alloc.
13247 2005-08-29 Simon Josefsson <jas@extundo.com>
13249 * lib/iconvme.c: Fix errno.
13251 2005-08-29 Bruno Haible <bruno@clisp.org>
13253 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
13254 that it works when the directory contains spaces.
13256 2005-08-29 Bruno Haible <bruno@clisp.org>
13258 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
13260 2005-08-29 Bruno Haible <bruno@clisp.org>
13262 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
13265 2005-08-29 Bruno Haible <bruno@clisp.org>
13266 and Stepan Kasal <kasal@ucw.cz>
13268 * check-module: If more parameters are given, check each of them
13269 separately; add more exceptions, as noted by Jim Meyering.
13270 (check_module): New procedure.
13271 (%exempt_header): Now contains all exceptions.
13273 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
13275 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
13277 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
13279 * lib/iconvme.c: Split iconv_string into iconv_alloc.
13281 2005-08-28 Bruno Haible <bruno@clisp.org>
13283 * m4/gnulib-tool.m4: New file.
13285 2005-08-27 Jim Meyering <jim@meyering.net>
13287 * modules/unistd-safer (Files): Add pipe-safer.c.
13288 * modules/fcntl-safer (Files): Add creat-safer.c.
13290 2005-08-27 Jim Meyering <jim@meyering.net>
13292 * m4/stdlib-safer.m4: New file. From coreutils.
13293 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
13294 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
13295 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
13296 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
13297 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
13299 2005-08-27 Jim Meyering <jim@meyering.net>
13301 * lib/fopen-safer.c: Merge minor changes from coreutils.
13302 * lib/dup-safer.c: Likewise.
13303 * lib/fd-safer.c: Likewise.
13305 Merge from coreutils.
13306 * lib/stdio--.h: New file.
13307 * lib/stdlib--.h: New file.
13308 * lib/mkstemp-safer.c: New file.
13310 GNU tar needs these.
13311 * lib/pipe-safer.c: New file.
13312 * lib/creat-safer.c: New file.
13313 * lib/fcntl--.h (creat): Define to creat_safer.
13314 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
13315 * lib/unistd--.h (pipe): Define to pipe_safer.
13316 * lib/unistd-safer.h: Declare pipe_safer.
13318 2005-08-26 Simon Josefsson <jas@extundo.com>
13320 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
13321 Haible <bruno@clisp.org>.
13323 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
13325 * lib/regex_internal.h: Remove all references to
13326 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
13328 (bitset_not, bitset_merge, bitset_not_merge):
13329 (bitset_mask, re_string_allocate, re_string_construct):
13330 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
13331 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
13332 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
13333 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
13334 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13335 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13336 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
13337 (re_acquire_state_context):
13338 Remove unnecessary forward decls.
13339 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
13340 Put __attribute at function definition,
13341 now that the function decl has been removed.
13342 * lib/regex_internal.c (re_string_peek_byte_case):
13343 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
13346 2005-08-25 Stepan Kasal <kasal@ucw.cz>
13348 * m4/regex.m4: Add AC_PREREQ(2.50).
13349 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
13351 2005-08-25 Simon Josefsson <jas@extundo.com>
13353 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
13356 2005-08-25 Simon Josefsson <jas@extundo.com>
13358 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
13359 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
13360 GLIBC specific code.
13362 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13364 Make regex safe for g++. This fixes one real bug (an "err"
13365 that should have been "*err"). g++ problem reported by
13367 * lib/regex_internal.h (re_calloc): New macro, consistent with
13368 re_malloc etc. All callers of calloc changed to use re_calloc.
13369 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
13370 not int. All callers changed.
13371 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
13372 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
13373 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
13374 (find_recover_state): Change "err" to "*err"; this fixes what
13375 appears to be a real bug.
13376 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
13379 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13381 * modules/regex (Depends-on): Add malloc, since the code
13382 assumes that !malloc(0) means failure.
13384 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13386 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
13388 alloca modernization/simplification for regex.
13389 * lib/regex.c: Remove portability cruft for alloca. This no longer
13390 needs to be at the start of the file, and can be moved into
13391 regex_internal.h and simplified.
13392 * lib/regex_internal.h: Include <alloca.h>.
13393 (__libc_use_alloca) [!defined _LIBC]: New macro.
13394 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
13395 now works outside glibc.
13397 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
13399 * config/srclist.txt: Add glibc bugs 1241, 1245.
13401 2005-08-25 Jim Meyering <jim@meyering.net>
13403 * lib/open-safer.c: Include <config.h>.
13404 Otherwise, we'd lose LARGEFILE support in any file using
13407 2005-08-25 Bruno Haible <bruno@clisp.org>
13409 * m4/minmax.m4: Require autoconf 2.52.
13410 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
13411 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
13412 alternatives of translit over the alphabet.
13413 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
13415 2005-08-24 Simon Josefsson <jas@extundo.com>
13417 * tests/test-getpass.c: New file.
13419 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
13421 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
13422 for GNU regex features.
13424 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
13426 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
13427 * lib/regex.h (regerror): Likewise.
13429 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
13430 requires this. (The code never needed it.)
13432 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
13433 All uses of recently-renamed identifiers changed to use the new,
13434 POSIX-compliant names. The code will build and run just fine
13435 without these changes, but it's better to eat our own dog food
13436 and use the standard-conforming names.
13438 * lib/regex.h: Fix a multitude of POSIX name space violations.
13439 These changes have an effect only for programs that define
13440 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
13441 do not change anything for programs compiled in the normal way.
13442 Also, there is no effect on the ABI.
13444 (_REGEX_SOURCE): New macro.
13445 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
13446 defined and _GNU_SOURCE is not; this fixes a name space violation.
13448 Rename the following macros to obey POSIX requirements.
13449 The old names are still visible as macros if _REGEX_SOURCE is defined.
13450 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
13451 RE_BACKSLASH_ESCAPE_IN_LISTS.
13452 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
13453 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
13454 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
13455 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
13456 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
13457 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
13458 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
13459 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
13460 (REG_INTERVALS): renamed from RE_INTERVALS.
13461 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
13462 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
13463 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
13464 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
13465 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
13466 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
13467 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
13468 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
13469 RE_UNMATCHED_RIGHT_PAREN_ORD.
13470 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
13471 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
13472 (REG_DEBUG): renamed from RE_DEBUG.
13473 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
13474 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
13475 unusual, since we can't clash with the POSIX REG_ICASE.
13476 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
13477 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
13478 (REG_NO_SUB): renamed from RE_NO_SUB.
13479 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
13480 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
13481 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
13482 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
13483 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
13484 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
13485 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
13486 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
13487 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
13488 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
13489 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
13490 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
13491 RE_SYNTAX_POSIX_MINIMAL_BASIC.
13492 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
13493 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
13494 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
13495 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
13496 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
13497 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
13498 (REG_FIXED): Renamed from REGS_FIXED.
13499 (REG_NREGS): Renamed from RE_NREGS.
13501 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
13502 of other REG_* macros, since POSIX says the user is allowed to
13503 #undef these macros selectively.
13505 (reg_errcode_t): Update comment stating what other tables need
13508 Rename the following enum values to obey POSIX requirements.
13509 The old names are still visible as macros.
13510 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
13511 is not defined, since GNU is supposed to be a superset of POSIX as
13512 much as possible, and since we want reg_errcode_t to be a signed
13513 type for implementation consistency.
13514 (_REG_NOERROR): Renamed from REG_NOERROR.
13515 (_REG_NOMATCH): Renamed from REG_NOMATCH.
13516 (_REG_BADPAT): Renamed from REG_BADPAT.
13517 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
13518 (_REG_ECTYPE): Renamed from REG_ECTYPE.
13519 (_REG_EESCAPE): Renamed from REG_EESCAPE.
13520 (_REG_ESUBREG): Renamed from REG_ESUBREG.
13521 (_REG_EBRACK): Renamed from REG_EBRACK.
13522 (_REG_EPAREN): Renamed from REG_EPAREN.
13523 (_REG_EBRACE): Renamed from REG_EBRACE.
13524 (_REG_BADBR): Renamed from REG_BADBR.
13525 (_REG_ERANGE): Renamed from REG_ERANGE.
13526 (_REG_ESPACE): Renamed from REG_ESPACE.
13527 (_REG_BADRPT): Renamed from REG_BADRPT.
13528 (_REG_EEND): Renamed from REG_EEND.
13529 (_REG_ESIZE): Renamed from REG_ESIZE.
13530 (_REG_ERPAREN): Renamed from REG_ERPAREN.
13531 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
13532 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
13533 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
13534 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
13536 (_REG_RE_NAME, _REG_RM_NAME): New macros.
13537 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
13538 changed. But support the old name if the new one is not defined
13539 and if _REGEX_SOURCE.
13541 Change the following member names in struct re_pattern_buffer.
13542 The old names are still supported if !_REGEX_SOURCE.
13543 The new names are always supported, regardless of _REGEX_SOURCE.
13544 (re_buffer): Renamed from buffer.
13545 (re_allocated): Renamed from allocated.
13546 (re_used): Renamed from used.
13547 (re_syntax): Renamed from syntax.
13548 (re_fastmap): Renamed from fastmap.
13549 (re_translate): Renamed from translate.
13550 (re_can_be_null): Renamed from can_be_null.
13551 (re_regs_allocated): Renamed from regs_allocated.
13552 (re_fastmap_accurate): Renamed from fastmap_accurate.
13553 (re_no_sub): Renamed from no_sub.
13554 (re_not_bol): Renamed from not_bol.
13555 (re_not_eol): Renamed from not_eol.
13556 (re_newline_anchor): Renamed from newline_anchor.
13558 Change the following member names in struct re_registers.
13559 The old names are still supported if !_REGEX_SOURCE.
13560 The new names are always supported, regardless of _REGEX_SOURCE.
13561 (rm_num_regs): Renamed from num_regs.
13562 (rm_start): Renamed from start.
13563 (rm_end): Renamed from end.
13565 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
13566 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
13567 Prepend __ to parameter names.
13569 Undo yesterday's changes.
13571 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
13573 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
13574 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
13577 2005-08-24 Jim Meyering <jim@meyering.net>
13579 Sync from coreutils.
13580 * m4/fcntl-safer.m4: New file.
13582 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
13583 and object files for this module.
13585 2005-08-24 Jim Meyering <jim@meyering.net>
13587 Sync from coreutils.
13588 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
13590 2005-08-24 Jim Meyering <jim@meyering.net>
13592 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
13593 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
13595 2005-08-24 Jim Meyering <jim@meyering.net>
13597 * modules/fcntl-safer: New module.
13598 * modules/fts (Depends-on): Add fcntl-safer.
13599 * MODULES.html.sh (File descriptor based Input/Output):
13602 2005-08-24 Bruno Haible <bruno@clisp.org>
13604 Support for unit test modules.
13605 * modules/README: Mention tests modules.
13606 * modules/TEMPLATE-TESTS: New file.
13607 * gnulib-tool: New options --extract-tests-module, --with-tests and
13608 --tests-base (unused for the moment).
13609 (testsbase, inctests): New variables.
13610 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
13611 (func_verify_module): Exclude TEMPLATE-TESTS.
13612 (func_verify_nontests_module, func_verify_tests_module): New functions.
13613 (func_get_dependencies): Add implicit dependency for tests modules.
13614 (func_get_tests_module): New function.
13615 (func_modules_transitive_closure): When --with-tests was specified,
13616 include the unit tests as well, unless explicitly avoided.
13617 (func_emit_lib_Makefile_am): Ignore the tests modules here.
13618 (func_emit_tests_Makefile_am): New function.
13619 (func_create_testdir): When --with-tests was specified, emit a
13621 * MODULES.html.sh (Future developments): Update.
13623 2005-08-24 Bruno Haible <bruno@clisp.org>
13625 * modules/tls-tests: New file.
13626 * tests/test-tls.c: New file, from GNU gettext.
13628 2005-08-24 Bruno Haible <bruno@clisp.org>
13630 * modules/lock-tests: New file.
13631 * tests/test-lock.c: New file, from GNU gettext.
13633 2005-08-24 Bruno Haible <bruno@clisp.org>
13635 * lib/lock.h: Add multiple inclusion guard.
13636 * lib/tls.h: Add multiple inclusion guard.
13638 2005-08-24 Bruno Haible <bruno@clisp.org>
13640 * gnulib-tool: Add support for the --aux-dir option to
13641 --create-testdir, --create-megatestdir, --test, --megatest.
13642 (func_create_testdir, func_create_megatestdir): Optionally emit a
13643 AC_CONFIG_AUX_DIR directive.
13644 (create-testdir, create-megatestdir, test, megatest): Provide a
13645 default value for $auxdir.
13647 2005-08-24 Bruno Haible <bruno@clisp.org>
13649 * gnulib-tool (import): Use compound statement instead of subshell
13652 2005-08-24 Bruno Haible <bruno@clisp.org>
13654 * gnulib-tool (import): Change --aux-dir default to "build-aux".
13656 2005-08-24 Bruno Haible <bruno@clisp.org>
13658 * gnulib-tool (func_version): Update.
13660 2005-08-24 Bruno Haible <bruno@clisp.org>
13662 * gnulib-tool (func_import, func_create_testdir,
13663 func_create_megatestdir): Quote all autoconf macro arguments.
13665 2005-08-24 Bruno Haible <bruno@clisp.org>
13667 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
13668 option --force, because --force causes the aclocal.m4 of each
13669 subdirectory to be newer than the corresponding config.h.in.
13671 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
13673 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
13674 All contents moved to gl_REGEX.
13675 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
13676 assume that it does.
13678 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
13680 * lib/regex.h (REG_NOSYS)
13681 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
13682 Define, since POSIX requires it as of 2001.
13684 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
13685 New private symbol, used to keep the enum signed in all cases.
13686 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
13688 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
13690 * lib/regex_internal.c (re_string_skip_chars, register_state):
13692 Remove forward decls; no longer needed now that we use prototypes.
13693 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
13694 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
13695 (clean_state_log_if_needed): Likewise.
13697 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
13699 * config/srclist.txt: Add glibc bugs 1231-1233.
13701 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
13703 Fix problems reported by Sam Steingold in
13704 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
13705 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
13706 assumed that reg_errcode_t is a signed type, which is not
13707 necessarily true if _XOPEN_SOURCE is not defined.
13708 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
13709 since some compilers warn about it otherwise.
13711 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
13713 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
13714 (init_word_char, create_initial_state, duplicate_node_closure):
13715 (fetch_token, peek_token_bracket, build_range_exp):
13716 (build_collating_symbol): Remove forward decls; no longer needed
13717 now that we use prototypes.
13720 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
13721 (re_compile_fastmap_iter, regcomp, regerror, regfree):
13722 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
13723 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
13724 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
13725 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
13726 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
13727 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
13728 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
13729 (build_range_exp, build_collating_symbol, parse_bracket_exp):
13730 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
13731 (build_charclass, build_charclass_op, fetch_number, create_tree):
13732 (create_token_tree, mark_opt_subexp, duplicate_tree):
13733 Use prototypes rather than old-style definitions.
13735 * lib/regex_internal.c:
13736 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
13737 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
13738 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
13739 (re_string_reconstruct, re_string_peek_byte_case):
13740 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
13741 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
13742 (re_node_set_init_copy, re_node_set_add_intersect):
13743 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13744 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13745 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
13746 (re_acquire_state, re_acquire_state_context, register_state):
13747 (create_ci_newstate, create_cd_newstate, free_state):
13749 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
13751 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
13752 (re_search_internal, prune_impossible_nodes):
13753 (acquire_init_state_context, check_matching, static):
13754 (check_halt_node_context, check_halt_state_context, proceed_next_node):
13755 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
13756 (update_regs, sift_states_backward, build_sifted_states):
13757 (clean_state_log_if_needed, merge_state_array):
13758 (update_cur_sifted_state, add_epsilon_src_nodes):
13759 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
13760 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
13761 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
13762 (find_recover_state, check_subexp_matching_top, transit_state_mb):
13763 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
13764 (check_arrival, check_arrival_add_next_nodes):
13765 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
13766 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
13767 (check_node_accept_bytes, check_node_accept, extend_buffers):
13768 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
13769 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
13773 * lib/regex_internal.h:
13774 (re_string_allocate, re_string_construct, re_string_reconstruct):
13775 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
13776 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
13777 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
13778 (re_string_context_at, re_string_peek_byte_case):
13779 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
13780 is defined, since we now use prototypes always.
13782 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
13783 C89 or better. All uses removed.
13785 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
13787 * config/srclist.txt: Add glibc bugs 1220-1227.
13789 2005-08-20 Jim Meyering <jim@meyering.net>
13791 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
13792 of unused local, dfa.
13794 2005-08-20 Bruno Haible <bruno@clisp.org>
13796 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
13798 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13800 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
13801 (re_node_set_insert_last, re_dfa_add_node):
13802 Rename local variables to avoid GCC shadowing warnings.
13804 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13806 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
13807 [defined lint]: Suppress bogus uninitialized-variable warnings.
13809 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
13810 and let the caller return REG_ESPACE if out of space. This
13811 removes an uninitialied-variable warning with GCC 4.0.1, and also
13812 avoids taking the address of a local variable. All callers
13815 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13817 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
13818 $LIBCSRC/posix/regexec.c.
13819 Add glibc bug 1217 for regcomp.c.
13821 2005-08-19 Jim Meyering <jim@meyering.net>
13823 * lib/regexec.c (proceed_next_node): Redo local variables to
13824 avoid GCC shadowing warnings.
13826 2005-08-18 Bruno Haible <bruno@clisp.org>
13828 * lib/strstr.c (strstr): Fix return value in multibyte case.
13829 * lib/strcasestr.c (strcasestr): Likewise.
13831 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
13833 * lib/regex.h: Remove useless space-before-tab. From coreutils.
13835 2005-08-17 Jim Meyering <jim@meyering.net>
13837 Make the %s format (seconds since the epoch) work for a negative
13838 number and when used with a zero-padded field width, e.g. %015s.
13840 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
13841 label so that it precedes the code to set `digits'. Otherwise,
13842 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
13843 print `00-22'. Now, it prints `-0022', as it should.
13845 2005-08-17 Bruno Haible <bruno@clisp.org>
13847 * modules/strstr (Files): Add m4/mbrtowc.m4.
13848 (Depends-on): Add mbuiter.
13850 2005-08-17 Bruno Haible <bruno@clisp.org>
13852 * modules/strcasestr: New file.
13853 * MODULES.html.sh (String handling, based on ANSI C 89): Add
13856 2005-08-17 Bruno Haible <bruno@clisp.org>
13858 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
13860 2005-08-17 Bruno Haible <bruno@clisp.org>
13862 * modules/mbuiter: New file.
13863 * MODULES.html.sh (Extended multibyte and wide character utilities):
13866 2005-08-17 Bruno Haible <bruno@clisp.org>
13868 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
13869 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
13871 2005-08-17 Bruno Haible <bruno@clisp.org>
13873 * m4/strcasestr.m4: New file.
13875 2005-08-17 Bruno Haible <bruno@clisp.org>
13877 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
13878 * lib/strstr.c: Completely rewritten, with multibyte locale support.
13880 2005-08-17 Bruno Haible <bruno@clisp.org>
13882 * lib/strcasestr.h: New file.
13883 * lib/strcasestr.c: New file.
13885 2005-08-17 Bruno Haible <bruno@clisp.org>
13887 * lib/strcasecmp.c: Use mbuiter.h.
13889 2005-08-17 Bruno Haible <bruno@clisp.org>
13891 * lib/mbuiter.h: New file.
13893 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
13895 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
13896 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
13897 and gl_GETOPT are both invoked via different paths (as happens
13898 with GNU tar CVS because it uses both argp and getopt), the former
13901 2005-08-16 Bruno Haible <bruno@clisp.org>
13903 * modules/tls: New file.
13904 * MODULES.html.sh (Multithreading): Add tls.
13906 2005-08-16 Bruno Haible <bruno@clisp.org>
13908 * modules/strnlen1: New file.
13909 * MODULES.html.sh (String handling): Add strnlen1.
13911 2005-08-16 Bruno Haible <bruno@clisp.org>
13913 * modules/strcase (Files): Add m4/mbrtowc.m4.
13914 (Depends-on): Add strnlen1, mbchar.
13916 2005-08-16 Bruno Haible <bruno@clisp.org>
13918 * modules/mbiter: New file.
13919 * MODULES.html.sh (Extended multibyte and wide character utilities):
13922 2005-08-16 Bruno Haible <bruno@clisp.org>
13924 * modules/mbfile: New file.
13925 * MODULES.html.sh (Extended multibyte and wide character utilities):
13928 2005-08-16 Bruno Haible <bruno@clisp.org>
13930 * modules/mbchar: New file.
13931 * MODULES.html.sh (Extended multibyte and wide character utilities):
13934 2005-08-16 Bruno Haible <bruno@clisp.org>
13936 * m4/tls.m4: New file, from GNU gettext.
13938 2005-08-16 Bruno Haible <bruno@clisp.org>
13940 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
13942 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
13944 2005-08-16 Bruno Haible <bruno@clisp.org>
13946 * m4/mbiter.m4: New file.
13948 2005-08-16 Bruno Haible <bruno@clisp.org>
13950 * m4/mbfile.m4: New file.
13952 2005-08-16 Bruno Haible <bruno@clisp.org>
13954 * m4/mbchar.m4: New file.
13956 2005-08-16 Bruno Haible <bruno@clisp.org>
13958 * lib/tls.h: New file, from GNU gettext.
13959 * lib/tls.c: New file, from GNU gettext.
13961 2005-08-16 Bruno Haible <bruno@clisp.org>
13963 * lib/strnlen1.h: New file.
13964 * lib/strnlen1.c: New file.
13966 2005-08-16 Bruno Haible <bruno@clisp.org>
13968 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
13969 (mbi_init): Update.
13970 (mbi_avail, mbi_advance): Let the iteration end before the terminating
13971 NUL byte, not after it.
13973 2005-08-16 Bruno Haible <bruno@clisp.org>
13975 * lib/strcase.h (strcasecmp): Add note in comments.
13976 * lib/strncasecmp.c: Use code from strcasecmp.c.
13977 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
13978 (strcasecmp): Work correctly in multibyte locales.
13980 2005-08-16 Bruno Haible <bruno@clisp.org>
13982 * lib/mbiter.h: New file.
13984 2005-08-16 Bruno Haible <bruno@clisp.org>
13986 * lib/mbfile.h: New file.
13988 2005-08-16 Bruno Haible <bruno@clisp.org>
13990 * lib/mbchar.h: New file.
13991 * lib/mbchar.c: New file.
13993 2005-08-16 Bruno Haible <bruno@clisp.org>
13995 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
13996 the valid ones. Makes the comparison operations transitive:
13997 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
13998 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
14000 2005-08-15 Simon Josefsson <jas@extundo.com>
14002 * modules/ssize_t (License): Change to 'unlimited'.
14004 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
14006 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
14008 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
14009 Add comments for each pending glibc patch.
14011 2005-08-15 Bruno Haible <bruno@clisp.org>
14013 * lib/regex.h (__restrict_arr): Don't define to __restrict if
14014 __cplusplus is defined.
14016 2005-08-14 Jim Meyering <jim@meyering.net>
14018 Sync from coreutils.
14020 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
14021 Use the hash-table-based cycle-detection code not just when
14022 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
14023 Reported by James Youngman in
14024 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
14025 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
14026 FTS_TIGHT_CYCLE_CHECK.
14027 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
14028 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
14030 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
14031 * lib/fts.c (fd_safer): Remove decl.
14032 Include fcntl--.h rather than unistd-safer.h
14033 (fts_safe_changedir): Don't call fd_safer; no longer needed
14034 now that we include fcntl--.h.
14036 2005-08-12 Simon Josefsson <jas@extundo.com>
14038 * modules/getndelim2: Use ssize_t module.
14039 * modules/getnline: Likewise.
14040 * modules/safe-read: Likewise.
14041 * modules/xreadlink: Likewise.
14043 * modules/ssize_t: New file.
14045 2005-08-12 Simon Josefsson <jas@extundo.com>
14047 * m4/readline.m4: Look for termcap, curses or ncurses if required.
14049 2005-08-12 Simon Josefsson <jas@extundo.com>
14051 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14054 2005-08-12 Simon Josefsson <jas@extundo.com>
14056 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
14057 readline, getdelim and check_version.
14058 (Support for systems lacking ISO C 99: Sizes of integer types):
14061 2005-08-12 Bruno Haible <bruno@clisp.org>
14063 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
14065 2005-08-11 Simon Josefsson <jas@extundo.com>
14067 * modules/readline: New file.
14069 * modules/strnlen (Files): Add strnlen.h.
14071 2005-08-11 Simon Josefsson <jas@extundo.com>
14073 * m4/readline.m4: New file.
14075 2005-08-11 Simon Josefsson <jas@extundo.com>
14077 * lib/readline.h, readline.c: New file.
14079 2005-08-11 Simon Josefsson <jas@extundo.com>
14081 * doc/gnulib.texi (Initial import, Finishing touches): Mention
14084 2005-08-11 Bruno Haible <bruno@clisp.org>
14086 * lib/strnlen.h (strnlen): Change parameter name to match comment.
14088 2005-08-10 Stepan Kasal <kasal@ucw.cz>
14090 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
14092 2005-08-10 Simon Josefsson <jas@extundo.com>
14094 * tests/test-iconvme.c: New file.
14096 2005-08-10 Simon Josefsson <jas@extundo.com>
14098 * m4/strnlen.m4: New file.
14100 * m4/strndup.m4: Don't check for strnlen declaration, done in
14103 2005-08-10 Simon Josefsson <jas@extundo.com>
14105 * lib/strndup.c: Use strnlen.h.
14107 * lib/strnlen.h: New file.
14109 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
14113 2005-08-02 Simon Josefsson <jas@extundo.com>
14115 * modules/readline: New file.
14117 2005-08-02 Simon Josefsson <jas@extundo.com>
14119 * modules/getdelim: New file.
14121 * modules/getline: Rewrite, don't use getndelim2.
14123 2005-08-02 Simon Josefsson <jas@extundo.com>
14125 * m4/getline.m4: Separate out getdelim stuff into separate module.
14127 * m4/getdelim.m4: New file.
14129 2005-08-02 Simon Josefsson <jas@extundo.com>
14131 * lib/getline.h, getline.c: Rewrite.
14133 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
14135 2005-07-31 Bruno Haible <bruno@clisp.org>
14137 * lib/lock.h (gl_lock_initializer): New macro.
14138 (gl_lock_define_initialized): Use it.
14139 (gl_rwlock_initializer): New macro.
14140 (gl_rwlock_define_initialized): Use it.
14141 (gl_recursive_lock_initializer): New macro.
14142 (gl_recursive_lock_define_initialized): Use it.
14144 2005-07-30 Karl Berry <karl@gnu.org>
14146 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
14147 Report from Ben Pfaff, regarding getopt.
14149 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
14151 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
14153 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
14154 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
14155 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
14156 (gl_GETOPT): Use the new macros. Most of the implementation
14157 is moved to the new macros. This is for programs like Emacs
14158 that don't want all the functionality of gl_GETOPT.
14160 2005-07-26 Bruno Haible <bruno@clisp.org>
14162 * m4/lock.m4: Update from GNU gettext.
14164 2005-07-26 Bruno Haible <bruno@clisp.org>
14166 * lib/lock.h: Update from GNU gettext.
14167 * lib/lock.c: Update from GNU gettext.
14169 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
14171 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
14172 obsolescent AC_TRY_RUN. Include the default includes files, for
14175 2005-07-24 Bruno Haible <bruno@clisp.org>
14177 * modules/visibility: New file.
14178 * MODULES.html.sh (Misc): Add visibility.
14180 2005-07-24 Bruno Haible <bruno@clisp.org>
14182 * m4/visibility.m4: New file.
14184 2005-07-24 Bruno Haible <bruno@clisp.org>
14186 * doc/visibility.texi: New file.
14188 2005-07-22 Bruno Haible <bruno@clisp.org>
14190 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
14191 $(ALLOCA_H), redundant through BUILT_SOURCES.
14192 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
14193 redundant through BUILT_SOURCES.
14194 * modules/byteswap (Makefile.am): Remove explicit dependency on
14195 $(BYTESWAP_H), redundant through BUILT_SOURCES.
14196 * modules/fnmatch (Makefile.am): Remove explicit dependency on
14197 $(FNMATCH_H), redundant through BUILT_SOURCES.
14198 * modules/getopt (Makefile.am): Remove explicit dependency on
14199 $(GETOPT_H), redundant through BUILT_SOURCES.
14200 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
14201 redundant through BUILT_SOURCES.
14202 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
14203 redundant through BUILT_SOURCES.
14204 * modules/stdbool (Makefile.am): Remove explicit dependency on
14205 $(STDBOOL_H), redundant through BUILT_SOURCES.
14206 * modules/stdint (Makefile.am): Remove explicit dependency on
14207 $(STDINT_H), redundant through BUILT_SOURCES.
14208 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
14209 Remove explicit dependency on $(SYSEXITS_H).
14210 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
14212 2005-07-18 Simon Josefsson <jas@extundo.com>
14214 * lib/check-version.c (check_version): Accept identical versions too.
14216 2005-07-18 Bruno Haible <bruno@clisp.org>
14218 * modules/lock: New file.
14219 * MODULES.html.sh (Multithreading): New section.
14221 2005-07-18 Bruno Haible <bruno@clisp.org>
14223 * m4/lock.m4: New file, from GNU gettext.
14225 2005-07-18 Bruno Haible <bruno@clisp.org>
14227 * lib/lock.h: New file, from GNU gettext.
14228 * lib/lock.c: New file, from GNU gettext.
14230 2005-07-18 Bruno Haible <bruno@clisp.org>
14232 * lib/lock.h (gl_once_t): New type.
14233 (gl_once_define, gl_once): New macros.
14234 * lib/lock.c (fresh_once): New variable.
14235 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
14238 2005-07-16 Simon Josefsson <jas@extundo.com>
14240 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
14241 workaround, suggested by Bruno.
14243 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
14245 * modules/xalloc (Depends-on): Add xalloc-die.
14246 * modules/xvasprintf (Depends-on): Add xalloc-die.
14248 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
14250 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
14251 with a minor change.
14253 2005-07-15 Bruno Haible <bruno@clisp.org>
14255 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
14256 When using lib/poll.c, define poll as rpl_poll.
14258 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
14260 * modules/argp (Depends-on): Remove unlocked-io.
14262 2005-07-14 Derek Price <derek@ximbiot.com>
14264 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
14265 for glob symlink bug.
14267 2005-07-14 Bruno Haible <bruno@clisp.org>
14269 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
14270 Instead, test for *_unlocked function declarations directly.
14272 2005-07-11 Simon Josefsson <jas@extundo.com>
14274 * modules/size_max: New file.
14276 * modules/xsize: Depend on size_max module for size_max.m4.
14278 2005-07-11 Simon Josefsson <jas@extundo.com>
14280 * lib/size_max.h: New file.
14282 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
14284 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
14285 copyright symbol and the year.
14286 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
14287 (version_etc_va): Use parameterized copyright notice.
14288 Reword to conform to the current GNU coding standards.
14290 2005-07-11 Karl Berry <karl@gnu.org>
14292 * doc/gnulib.texi (Quoting): new node.
14293 (Initial import): more info, from Patrice.
14295 2005-07-11 Bruno Haible <bruno@clisp.org>
14297 * gnulib-tool (func_usage): Document option --avoid.
14298 (Command line options): Handle --avoid.
14299 (func_acceptable): New function.
14300 (func_modules_transitive_closure): Use it.
14302 2005-07-11 Bruno Haible <bruno@clisp.org>
14304 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
14305 Reported by Jim Meyering.
14307 2005-07-10 Bruno Haible <bruno@clisp.org>
14309 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
14310 Needed when size_t is smaller than 'unsigned int'.
14311 Reported by Paul Eggert.
14313 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
14315 * modules/argp (Depends-on): Add unlocked-io
14317 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
14319 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
14322 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
14324 * config/srclist.txt: Comment out regcomp.c, since we have a porting
14327 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
14328 and Paul Eggert <eggert@cs.ucla.edu>
14330 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
14331 in wint_t, not wchar_t. Remove now-unnecessary cast.
14333 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14335 * modules/regex (Files): Add lib/regex_internal.c,
14336 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
14337 (Depends-on): Add extensions.
14338 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
14340 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14342 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
14344 * m4/same.m4 (gl_SAME): Likewise.
14345 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
14347 * m4/regex.m4: Adjust to new libc regex implementation.
14348 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
14349 all the .c and .h parts of (the new) regex.
14350 Quote the m4 stuff better.
14351 Check for RE_ICASE bug of old gnulib.
14352 Check for REG_STARTEND of recent libc.
14353 Rename local variables from jm_* to gl_*.
14354 Quote operand of "test -f".
14355 Say "recent enough" version of libc, not "version 2".
14356 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
14357 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
14358 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
14359 Remove check for btowc, isascii.
14360 Require AM_LANGINFO_CODESET.
14362 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14364 * lib/regex.c, regex.h: Sync from libc.
14365 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
14367 New files, synced from libc, except that regex_internal.h
14368 currently has a small porting fix.
14370 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
14372 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
14373 regex_internal.c, regexec.c.
14374 Add regex_internal.h too, but as a comment, since the libc version
14375 is currently broken in gnulib mode.
14377 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
14379 Support programs like Emacs that use gnulib but not gettext.
14380 * MODULES.html.sh (Internationalization functions): Add gettext-h.
14381 * modules/gettext-h: New file.
14382 * modules/gettext (Files): Remove lib/gettext.h.
14383 (Depends-on): Add gettext-h.
14384 (Makefile.am): Remove lib_SOURCES.
14385 * modules/argmatch, modules/c-stack, modules/closeout:
14386 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
14387 * modules/execute, modules/file-type, modules/getaddrinfo:
14388 * modules/getopt, modules/human, modules/javacomp:
14389 * modules/javaexec, modules/mkdir-p, modules/obstack:
14390 * modules/openat, modules/pagealign_alloc, modules/pipe:
14391 * modules/quotearg, modules/regex, modules/rpmatch:
14392 * modules/unicodeio, modules/userspec, modules/version-etc:
14393 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
14395 Depend on gettext-h, not gettext.
14397 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
14399 * gnulib-tool (func_import): Add support for 'public domain' license.
14400 * modules/alloca, modules/atexit, modules/memmove:
14401 Now public domain, not GPL.
14402 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
14403 * modules/realloc, modules/strerror, modules/strtod:
14406 2005-07-05 Bruno Haible <bruno@clisp.org>
14408 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
14409 autoconf CVS. Needed for mingw.
14411 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
14413 Remove the dependency of the strftime module on the tzset module.
14414 * modules/strftime (Depends-on): Remove dependency on tzset.
14416 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
14418 Remove the dependency of the strftime module on the tzset module.
14419 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
14420 gl_FUNC_TZSET_CLOBBER.
14422 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
14424 Remove the dependency of the strftime module on the tzset module.
14425 * lib/strftime.c (my_strftime)
14426 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
14427 Copy the input structure, to work around some of the bug with
14428 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
14429 Solaris releases, you should also use the tzset module, but we won't
14430 require it as a dependency any more since we don't want LGPLed code
14431 to depend on GPLed code.
14433 2005-07-02 Jim Meyering <jim@meyering.net>
14435 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
14436 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
14437 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
14438 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
14440 2005-07-02 Jim Meyering <jim@meyering.net>
14442 * lib/backupfile.c (backup_args): Change a `0' to NULL.
14444 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
14446 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
14447 declares only 'struct timespec;' (!).
14449 2005-07-01 Jim Meyering <jim@meyering.net>
14451 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
14452 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
14453 * lib/save-cwd.c, tempname.c:
14454 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
14455 and don't include <sys/file.h>).
14457 2005-06-29 Jim Meyering <jim@meyering.net>
14459 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
14460 type name. Use the variable name instead.
14461 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
14464 2005-06-28 Simon Josefsson <jas@extundo.com>
14466 * modules/check-version (Files): Add check-version.m4.
14468 2005-06-28 Simon Josefsson <jas@extundo.com>
14470 * m4/check-version.m4: New file, suggested by Jim Meyering
14471 <jim@meyering.net>.
14473 2005-06-28 Simon Josefsson <jas@extundo.com>
14475 * lib/check-version.h, lib/check-version.c: New files.
14477 2005-06-28 Simon Josefsson <jas@extundo.com>
14479 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
14480 collision with global variable. Better indentation. Don't
14481 increment buffer pointer beyond buffer end. Based on comments
14482 from Paul Eggert <eggert@cs.ucla.edu>.
14484 * lib/base64.h: Indent.
14486 2005-06-28 Simon Josefsson <jas@extundo.com>
14488 * doc/gnulib.texi (Library version handling): New section.
14490 2005-06-28 Jim Meyering <jim@meyering.net>
14492 * check-module (find_included_lib_files): Hard-code another
14493 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
14494 but modules/fts-lgpl (correctly) does not list those files.
14496 * modules/canonicalize (Files): Add lib/pathmax.h.
14498 2005-06-25 Simon Josefsson <jas@extundo.com>
14500 * modules/check-version: New file.
14502 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
14504 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
14505 initializer of struct addrinfo, as an indication that we don't
14506 care how many members the structure has.
14508 2005-06-24 Derek Price <derek@ximbiot.com>
14509 and Bruno Haible <bruno@clisp.org>
14511 Remove stat module & update lstat.
14512 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
14513 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14514 * m4/stat.m4: Remove this file.
14516 2005-06-24 Derek Price <derek@ximbiot.com>
14517 and Bruno Haible <bruno@clisp.org>
14519 Remove stat module & update lstat.
14520 * lib/stat.c: Remove this file...
14521 (slash_aware_lstat): ...moving this content and its support...
14522 * lib/lstat.c (rpl_lstat): ...into here.
14523 * lib/lstat.h: New file.
14525 2005-06-24 Derek Price <derek@ximbiot.com>
14526 and Bruno Haible <bruno@clisp.org>
14528 Remove stat module & update lstat.
14529 * config/srclist.txt (libc sources): Remove stat.
14531 2005-06-24 Derek Price <derek@ximbiot.com>
14532 and Bruno Haible <bruno@clisp.org>
14534 Remove stat module & update lstat.
14535 * MODULES.html.sh (stat): Remove.
14536 * MODULES.html: Regenerated.
14537 * modules/lstat (Description): Correct function name.
14538 (Files): Add "lstat.h".
14539 (Depends-on): Remove stat, add xalloc, stat-macros.
14540 * modules/stat: Remove this file.
14541 (Include): Add "lstat.h", remove <sys/stat.h>.
14543 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
14545 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
14546 (ranged_convert): Don't save conversion in a temporary struct.
14547 This causes a warning with GCC 4.0.0, and anyway in the typical
14548 case it's not worth the extra 100 bytes or so of code.
14549 (ranged_convert, __mktime_internal): When calling a function via a
14550 pointer P, use P () rather than (*P) (), as we now assume C89 or
14553 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
14555 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
14556 "who -r" failed to give output. Problem reported by Tim Waugh.
14558 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
14559 (xcalloc): Use it to avoid needless tests.
14560 Problem reported by Jim Meyering.
14562 2005-06-20 Derek Price <derek@ximbiot.com>
14564 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
14565 unnecessary for Autoconfs > 2.59c.
14567 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14569 * lib/argp.h (__option_is_short): Check upper limit of
14570 __key. Isprint() requires its argument to have the value
14571 of an unsigned char or EOF.
14573 2005-06-16 Jim Meyering <jim@meyering.net>
14575 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
14576 when either N or S is zero.
14578 2005-06-16 Derek Price <derek@ximbiot.com>
14580 * m4/bison.m4: Declare YACC & YFLAGS precious.
14582 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
14584 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
14585 multibyte string or pattern, fall back on unibyte matching.
14586 Problem reported by James Youngman.
14588 2005-06-08 Bruno Haible <bruno@clisp.org>
14590 * modules/csharpcomp: New file.
14591 * MODULES.html.sh (C#): Add csharpcomp.
14593 2005-06-08 Bruno Haible <bruno@clisp.org>
14595 * m4/csharpcomp.m4: New file, from GNU gettext.
14597 2005-06-08 Bruno Haible <bruno@clisp.org>
14599 * lib/csharpcomp.h: New file, from GNU gettext.
14600 * lib/csharpcomp.c: New file, from GNU gettext.
14601 * lib/csharpcomp.sh.in: New file, from GNU gettext.
14603 2005-06-08 Bruno Haible <bruno@clisp.org>
14605 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
14608 2005-06-07 Derek Price <derek@ximbiot.com>
14611 * lib/glob_.h: Indent nested #ifdef.
14613 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14615 Sync from coreutils.
14616 Use "file name" when talking about file names, instead of "filename"
14617 or "path", as per the GNU coding standards.
14618 * lib/mkdir-p.c: Renamed from makepath.c.
14619 (make_dir_parents): Renamed from make_path. All callers changed.
14620 * lib/mkdir-p.h: Likewise. All includers changed.
14621 * lib/filenamecat.c: Renamed from path-concat.c.
14622 (file_name_concat): Renamed from path_concat. All callers changed.
14623 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
14624 * lib/filenamecat.h: Likewise. All includers changed.
14625 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
14626 in comments or local variable names.
14627 * lib/basename.c: Likewise.
14628 * lib/canonicalize.c, canonicalize.h: Likewise.
14629 * lib/dirname.c, dirname.h: Likewise.
14630 * lib/euidaccess.c: Likewise.
14631 * lib/exclude.c: Likewise
14632 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
14633 * lib/fsusage.c, fsuage.h: Likewise.
14634 * lib/fts.c, fts_.h: Likewise.
14635 * lib/getcwd.c: Likewise.
14636 * lib/getloadavg.c: Likewise.
14637 * lib/mkstemp.c: Likewise.
14638 * lib/mountlist.c, mountlist.h: Likewise.
14639 * lib/openat.c, openat.h: Likewise.
14640 * lib/readlink-stub.c: Likewise.
14641 * lib/readutmp.c, readutmp.h: Likewise.
14642 * lib/rename.c: Likewise.
14643 * lib/rmdir.c: Likewise.
14644 * lib/same.c: Likewise.
14645 * lib/savedir.c: Likewise.
14646 * lib/stripslash.c: Likewise.
14647 * lib/tempname.c: Likewise.
14648 * lib/xreadlink.c: Likewise.
14649 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
14651 * lib/exclude.h: Likewise.
14653 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
14654 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14655 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
14656 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14657 * lib/pathmax.h: Include <limits.h> unconditionally, since other
14658 files have been getting away with it for years (MORE/BSD 4.3
14660 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
14661 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14663 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
14664 Define to 256, not 255, as per modern POSIX.
14666 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14668 Sync from coreutils.
14669 Use "file name" when talking about file names, instead of "filename"
14670 or "path", as per the GNU coding standards.
14671 * MODULES.html.sh: mkdir-p renamed from makepath.
14672 filenamecat renamed from path-concat.
14673 * modules/filenamecat: Renamed from modules/path-concat.
14674 (Files): filenamecat.h and filenamecat.c renamed from
14675 path-concat.h and path-concat.c.
14676 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
14677 (Include): filenamecat.h, not path-concat.h.
14678 * modules/mkdir-p: Renamed from modules/makepath.
14679 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
14681 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
14682 (Include): mkdir-p.h, not makepath.h.
14684 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14686 Sync from coreutils.
14687 * m4/mkdir-p.m4: Renamed from makepath.m4.
14688 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
14689 Rename files from makepath.c to mkdir-p.c, and from
14690 makepath.h to mkdir-p.h.
14691 * m4/filenamecat.m4: Renamed from path-concat.m4.
14692 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
14693 Rename files from path-concat.c to filenamecat.c,
14694 and from path-concat.h to filenamecat.h.
14695 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
14696 "file name" in local variables or comments.
14697 * m4/rename.m4: Likewise.
14699 2005-06-01 Bruno Haible <bruno@clisp.org>
14701 * modules/csharpexec: New file.
14702 * MODULES.html.sh (C#): New section.
14704 2005-06-01 Bruno Haible <bruno@clisp.org>
14706 * m4/csharp.m4: New file, from GNU gettext.
14707 * m4/csharpexec.m4: New file, from GNU gettext.
14709 2005-06-01 Bruno Haible <bruno@clisp.org>
14711 * lib/csharpexec.h: New file, from GNU gettext.
14712 * lib/csharpexec.c: New file, from GNU gettext.
14713 * lib/csharpexec.sh.in: New file, from GNU gettext.
14715 2005-05-31 Derek Price <derek@ximbiot.com>
14716 Paul Eggert <eggert@cs.ucla.edu>
14719 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
14721 2005-05-31 Derek Price <derek@ximbiot.com>
14722 Paul Eggert <eggert@cs.ucla.edu>
14725 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
14727 2005-05-29 Derek Price <derek@ximbiot.com>
14729 * config/srclist.txt (glob_.h, glob.c): Add these files.
14731 2005-05-29 Derek Price <derek@ximbiot.com>
14733 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
14734 * modules/glob: New file.
14735 * modules/getlogin_r: Add link to POSIX spec in description.
14737 2005-05-29 Derek Price <derek@ximbiot.com>
14738 Paul Eggert <eggert@cs.ucla.edu>
14740 * m4/glob.m4: New file.
14742 2005-05-29 Derek Price <derek@ximbiot.com>
14743 Paul Eggert <eggert@cs.ucla.edu>
14745 * lib/glob_.h, lib/glob.c: New files.
14747 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
14749 * modules/fts (Files): Remove m4/inttypes-pri.m4.
14750 * modules/fts-lgpl (Depends-on): Remove gettext.
14752 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
14754 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
14755 and don't require gt_INTTYPES_PRI.
14757 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
14759 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
14761 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
14762 the configuration hassle isn't worth it.
14763 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
14764 (LONGEST_MODIFIER, PRIuMAX): Remove.
14766 2005-05-27 Bruno Haible <bruno@clisp.org>
14768 * lib/getlogin_r.h: Remove second include of <stddef.h>.
14770 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
14772 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
14773 _POSIX_PTHREAD_SEMANTICS for Solaris.
14775 2005-05-25 Derek Price <derek@ximbiot.com>
14777 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
14779 2005-05-25 Derek Price <derek@ximbiot.com>
14780 Paul Eggert <eggert@cs.ucla.edu>
14782 * modules/getlogin_r, m4/getlogin_r.m4: New files.
14783 * lib/getlogin_r.c, getlogin_r.h: New files.
14785 2005-05-25 Bruno Haible <bruno@clisp.org>
14786 Derek Price <derek@ximbiot.com>
14788 * lib/getlogin_r.h: Simplify API documentation.
14790 2005-05-23 Derek Price <derek@ximbiot.com>
14792 * modules/minmax (Files): Add m4/minmax.m4.
14793 (configure.ac): Add gl_MINMAX.
14795 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
14797 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
14798 so that unistd-safer.h (GPL'ed code) need not be included.
14800 2005-05-22 Bruno Haible <bruno@clisp.org>
14802 * m4/minmax.m4: New file.
14803 Based on a patch by Derek Price <derek@ximbiot.com>.
14805 2005-05-22 Bruno Haible <bruno@clisp.org>
14807 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
14808 (INT64_MIN): Fix definition.
14809 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
14811 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
14812 NEED_SIGNED_INT_TYPES.
14814 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
14815 HAVE_SYSTEM_INTTYPES.
14817 2005-05-22 Bruno Haible <bruno@clisp.org>
14819 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
14820 Also include <sys/param.h> if it defines MIN, MAX.
14821 Based on a patch by Derek Price <derek@ximbiot.com>.
14823 2005-05-21 Jim Meyering <jim@meyering.net>
14825 * modules/fts (Files): Add m4/inttypes-pri.m4.
14826 (Depends-on): Add lstat and remove gettext. Alphabetize.
14828 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14831 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
14832 (setup_dir, free_dir): New functions.
14833 (enter_dir, leave_dir): Define trivial
14834 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
14835 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
14836 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
14837 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
14838 Move to fts-cycle.c.
14839 (fts_open): Use setup_dir.
14840 (fts_close): Use free_dir.
14841 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
14842 This adds a label and some gotos, but the alternatives were messier.
14843 Check for memory allocation failure when entering a dir.
14844 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
14845 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
14846 (FTS): New member fts_cycle, that is a union that contains the
14847 old active_dir_ht and cycle_state. All uses changed to mention
14848 fts_cycle.ht and fts_cycle.state.
14849 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
14850 fts.c, with the following changes:
14851 (setup_dir, free_dir): New functions.
14852 (enter_dir): Now returns bool. Return true if successful, false
14853 if memory exhausted. All callers changed.
14854 Do not bother partly cleaning up on
14855 memory allocation failure; that is free_dir's job.
14856 However, free ad if hash_insert fails, to avoid memory leak.
14857 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
14858 fts->fts_options to see which union member to use.
14860 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14862 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
14863 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
14865 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14867 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
14869 2005-05-20 Jim Meyering <jim@meyering.net>
14871 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
14872 Now a macro, to pacify GCC.
14874 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
14876 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
14879 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
14881 * lib/chown.c (rpl_chown): Return -1 on failure.
14883 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
14885 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
14886 Don't check for stddef.h.
14887 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
14888 don't use its results.
14889 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
14890 since we include them unconditionally. Don't require
14891 AM_STDBOOL_H, since stdbool is a prerequisite.
14892 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
14893 since we assume C89 or better.
14894 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
14895 as we don't use their results.
14896 Don't check for fchdir, memmove, memset, strrchr, as we use
14897 them unconditionally.
14898 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
14899 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
14901 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
14903 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
14904 Include <stddef.h> unconditionally, since we assume C89 now.
14905 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
14906 * lib/fts.c: Include fts_.h first, to check interface.
14907 Do not include intprops.h; no longer needed.
14908 Include cycle-check.h and hash.h, since fts_.h no longer does.
14909 Remove unnecessary casts of closedir to void.
14910 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
14911 decide whether to decrement nlinks.
14912 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
14913 (FTS): Use struct hash_table * instead of Hash_table, so that
14914 we no longer need to include hash.h here.
14916 2005-05-18 Jim Meyering <jim@meyering.net>
14918 * modules/dirfd (License): Change to LGPL. Most of the code
14919 is already in the public domain.
14921 2005-05-18 Jim Meyering <jim@meyering.net>
14923 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
14924 Reported by Yoann Vandoorselaere.
14926 2005-05-17 Jim Meyering <jim@meyering.net>
14928 * m4/fts.m4: New file, from coreutils.
14930 2005-05-17 Jim Meyering <jim@meyering.net>
14932 * lib/fts.c, lib/fts_.h: New files, from coreutils.
14934 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14936 Sync from coreutils.
14937 * m4/unlinkdir.m4: New file.
14939 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14941 Sync from coreutils.
14942 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
14943 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
14944 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
14945 White space changes only.
14946 * lib/makepath.c (make_path): Port to hosts where leading "//" is
14948 * lib/yesno.c: Include getline.h, not ctype.h.
14949 (yesno): Don't remove leading white space; POSIX doesn't allow it.
14950 Use getline to remove arbitrary restriction on response length.
14952 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14954 * config/srclist-update: Spell out "Street" in FSF postal
14955 mail address; this is the style the FSF seems to prefer.
14957 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
14958 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
14959 this updates FSF postal mail address.
14961 Sync from coreutils.
14962 * modules/unlinkdir: New file.
14963 * modules/yesno (Depends-on): Add getline.
14964 * MODULES.html.sh (File system functions): Add unlinkdir.
14966 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
14968 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
14970 Change the initial comment to refer to GPL, not LGPL.
14971 gnulib-tool will change it to LGPL as needed.
14973 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
14974 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
14975 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
14976 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
14977 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
14978 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
14979 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
14980 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
14981 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
14982 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
14983 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
14984 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
14985 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
14986 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
14987 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
14988 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
14989 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
14990 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
14991 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
14992 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
14993 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
14994 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
14995 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
14996 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
14997 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
14998 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
14999 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
15000 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
15001 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
15002 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
15003 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
15004 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
15005 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
15006 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
15007 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
15008 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
15009 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
15010 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
15011 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
15012 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
15013 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
15014 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
15015 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
15016 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
15017 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
15018 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
15019 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
15020 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
15021 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
15022 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
15023 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15024 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
15025 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
15026 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
15027 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
15028 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
15029 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
15030 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
15031 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
15032 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
15033 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
15034 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
15035 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
15036 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
15037 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
15038 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
15039 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
15040 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
15041 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
15042 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
15043 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
15044 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
15045 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
15046 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
15047 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
15048 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
15049 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
15050 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
15051 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
15052 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
15053 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
15054 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
15055 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
15056 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
15057 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
15058 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
15059 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
15060 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
15061 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
15062 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
15063 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
15064 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
15065 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
15066 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
15067 lib/yesno.c, lib/yesno.h:
15068 Update FSF postal mail address.
15070 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
15072 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
15073 tests/test-memmem.c, tests/test-stpncpy.c:
15074 Update FSF postal mail address.
15076 2005-05-13 Bruno Haible <bruno@clisp.org>
15078 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
15079 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
15080 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
15081 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
15082 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
15083 Add support for 64-bit integers in the MSVC compiler.
15085 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15087 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
15089 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
15091 * gnulib-tool (func_import): Sort and uniquify recommended includes.
15093 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
15095 * doc/getdate.texi (General date syntax): Don't say that date
15096 date --iso-8601=ns generates acceptable dates; it doesn't yet.
15097 Problem reported by Nic Ferrier.
15099 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15101 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
15102 specified in ai_socktype. Fix invalid ai_protocol
15103 check. ai_protocol is usually set to 0 or depending on
15104 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
15105 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
15106 ai_socktype / ai_protocol in the returned addrinfo structure.
15108 2005-05-10 Simon Josefsson <jas@extundo.com>
15110 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
15111 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15113 2005-05-10 Karl Berry <karl@gnu.org>
15115 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
15116 (from http://www.gnu.org/licenses).
15117 * doc/COPYING.LIB: also rename to COPYING.LESSER.
15118 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
15121 2005-05-10 Karl Berry <karl@gnu.org>
15123 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
15124 (COPYING.DOC): remove.
15126 * config/srclist-update: new FSF address.
15128 2005-05-10 Derek Price <derek@ximbiot.com>
15130 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
15133 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15134 Bruno Haible <bruno@clisp.org>
15136 * modules/inet_ntop: New file.
15137 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15140 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15141 Bruno Haible <bruno@clisp.org>
15143 * m4/inet_ntop.m4: New file.
15145 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15146 Bruno Haible <bruno@clisp.org>
15148 * lib/inet_ntop.h: New file.
15149 * lib/inet_ntop.c: New file, from glibc with modifications.
15151 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
15153 * modules/time_r (License): Change to LGPL.
15154 * modules/extensions (License): Change to LGPL. Actually,
15155 the license is more permissive than that, but currently gnulib-tool
15156 doesn't know how to handle more-permissive licenses.
15158 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
15159 Problem reported by Dave Love.
15161 2005-05-08 Jim Meyering <jim@meyering.net>
15163 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
15166 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
15168 * modules/argmatch (Depends-on): Add stdbool.
15169 * modules/backupfile (Depends-on): Likewise.
15170 * modules/chdir-long (Depends-on): Likewise.
15171 * modules/closeout (Depends-on): Likewise.
15172 * modules/cycle-check (Depends-on): Likewise.
15173 * modules/dirname (Depends-on): Likewise.
15174 * modules/fnmatch (Depends-on): Likewise.
15175 * modules/fsusage (Depends-on): Likewise.
15176 * modules/fwriteerror (Depends-on): Likewise.
15177 * modules/getcwd (Depends-on): Likewise.
15178 * modules/getloadavg (Depends-on): Likewise.
15179 * modules/hard-locale (Depends-on): Likewise.
15180 * modules/makepath (Depends-on): Likewise.
15181 * modules/mountlist (Depends-on): Likewise.
15182 * modules/nanosleep (Depends-on): Likewise.
15183 * modules/posixtm (Depends-on): Likewise.
15184 * modules/quotearg (Depends-on): Likewise.
15185 * modules/readtokens (Depends-on): Likewise.
15186 * modules/readtokens0 (Depends-on): Likewise.
15187 * modules/readutmp (Depends-on): Likewise.
15188 * modules/save-cwd (Depends-on): Likewise.
15189 * modules/strftime (Depends-on): Likewise.
15190 * modules/userspec (Depends-on): Likewise.
15191 * modules/utimecmp (Depends-on): Likewise.
15192 * modules/xgetcwd (Depends-on): Likewise.
15193 * modules/xnanosleep (Depends-on): Likewise.
15194 * modules/xstrtod (Depends-on): Likewise.
15195 * modules/yesno (Depends-on): Likewise.
15197 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
15199 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
15202 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15204 Merge from coreutils. Among other things,
15205 add bulletproofing for cases where stdin, stdout, or stderr are closed.
15206 * lib/fd-safer.c: New file.
15207 * lib/fcntl-safer.h, open-safer.c: Remove.
15208 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
15209 * lib/dup-safer.c: Include unistd-safer.h first.
15210 Don't include errno.h.
15211 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
15212 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
15213 * lib/file-type.c: Rely on file-type.h change.
15214 * lib/getloadavg.c: Include unistd-safer.h.
15215 (getloadavg): Use safer open.
15216 * lib/getusershell.c: Include "stdio-safer.h".
15217 (getusershell): Use safer fopen.
15218 * lib/long-options.c (long_options): Use NULL rather than 0.
15219 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
15221 * lib/modechange.c: Likewise.
15222 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
15223 (MODE_DONE): New constant.
15224 (struct mode_change): Remove 'next' member.
15225 (make_node_op_equals): New function; like the old one of the
15226 same name, except it allocates an array.
15227 (mode_compile, mode_create_from_ref): Use it.
15228 (mode_compile): Allocate result as an array, not a linked list.
15229 Parse octal string ourself, so that we catch mistakes like "+0".
15230 (mode_adjust): Arg is an array, not a linked list.
15231 * lib/modechange.c: Include stat-macros.h, xalloc.h.
15232 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
15233 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
15234 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
15235 Remove. This is now stat-macros.h's job.
15236 (talloc): Remove. All callers replaced by xalloc, so that
15237 our invokers don't have to worry about reporting memory failures.
15238 (make_node_op_equals): Remove.
15239 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15241 (struct mode_change): Moved here from modechange.h.
15242 (mode_append_entry): Remove.
15243 (mode_compile): Remove MASKED_OPS arg, since it encouraged
15244 apps to have incorrect behavior. Use simpler algorithm for head
15245 and tail. Don't futz with umask; that's now the job of mode_adjust.
15246 Detect more invalid usages rather than having somewhat-random behavior.
15247 Don't insert an "a=" action, as that leads to incorrect behavior.
15248 (mode_compile, mode_create_from_ref): Return NULL on error instead
15249 of an enum, since now there's only one way to have an error. All
15251 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
15252 at the correct time. Simplify calculation of "+u" and its ilk.
15253 Don't mishandle "+X".
15254 (mode_free): Remove "register" and localize decls.
15255 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
15256 (struct mode_change): Move to modechange.c; callers don't
15257 need to see this stuff.
15258 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
15259 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
15260 (mode_change, mode_adjust): Reflect the new signatures noted above.
15261 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
15262 that might redefine system include files.
15263 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
15264 (my_usleep): Use NULL rather than (void *) 0.
15265 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
15266 Use siginterrupt to specify that system calls should be interrupted.
15267 (rpl_nanosleep): Move initialization of suspended closer to call of
15269 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
15270 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
15271 (desirable_utmp_entry): New function.
15272 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
15273 using x2nrealloc, to simplify logic.
15274 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
15275 size calculation. Do not assume utmp file is a regular file.
15276 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
15277 (READ_UTMP_CHECK_PIDS): New constant.
15278 * lib/save-cwd.c: Include unistd-safer.h.
15279 (save_cwd): Use fd_safer.
15280 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
15281 [!_LIBC] Include "stat-macros.h" instead.
15282 * lib/unistd-safer.h (fd_safer): New decl.
15284 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15286 * modules/getloadavg (Depends-on): Add unistd-safer.
15287 * modules/getusershell (Depends-on): Add stdio-safer.
15288 * modules/lstat (Depends-on): Remove xalloc.
15289 * modules/mkstemp (Depends-on): Add stat-macros.
15290 * modules/modechange (Depends-on): Remove xstrtol.
15291 Add stat-macros, xalloc.
15292 * modules/save-cwd (Depends-on): Add unistd-safer.
15293 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
15294 * modules/unistd-safer (Files): Add lib/fd-safer.c
15295 (Makefile.am): Remove lib_SOURCES.
15297 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
15298 Remove fcntl-safer; unistd-safer supersedes it.
15300 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15302 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
15304 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
15305 (gl_PREREQ_CHOWN): Remove.
15306 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
15307 it. Don't require AC_HEADER_STAT.
15308 (gl_PREREQ_LSTAT): Remove.
15309 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
15310 Don't require AC_HEADER_STAT.
15311 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
15312 (gl_PREREQ_RMDIR): Remove.
15313 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
15314 mention stat-macros.h or AC_HEADER_STAT, since we'll make
15315 the stat-macros module a prerequisite.
15316 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
15317 * m4/filemode.m4 (gl_FILEMODE): Likewise.
15318 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
15319 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
15320 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
15322 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
15323 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
15325 * m4/fcntl-safer.m4: Remove.
15326 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
15327 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
15328 Invoke gl_PREREQ_FD_SAFER.
15329 (gl_PREREQ_FD_SAFER): New macro.
15330 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
15331 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
15332 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
15333 Remove duplicate call to AC_LIBOBJ(readutmp).
15334 (gl_PREREQ_READUTMP): Remove. All uses inlined.
15336 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
15337 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
15339 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
15341 * MODULES.html.sh (Misc): Add byteswap.
15343 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15345 * modules/getcwd (Depends-on): Add extensions.
15346 * modules/openat (Depends-on): Likewise.
15348 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15350 * modules/byteswap: New file.
15352 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15354 * m4/byteswap.m4: New file.
15356 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
15358 * lib/byteswap_.h: New file.
15360 2005-04-25 Karl Berry <karl@gnu.org>
15362 * m4/gettext.m4: Update from GNU gettext 0.14.4.
15364 2005-04-25 Albert Chin <china@thewrittenword.com>
15366 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
15369 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
15371 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
15372 (func_ln_if_changed) Remove forcibly for no error message
15373 in case file does not exist.
15375 2005-04-19 Simon Josefsson <jas@extundo.com>
15377 * gnulib-tool (Options): Make --symlink mean --symbolic.
15379 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
15381 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
15383 2005-04-16 Simon Josefsson <jas@extundo.com>
15385 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
15387 2005-04-15 Simon Josefsson <jas@extundo.com>
15389 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
15391 2005-04-15 Simon Josefsson <jas@extundo.com>
15393 * gnulib-tool: Rename --symlink to --symbolic.
15395 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
15397 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
15398 symbolic links to files instead of copying/moving. Add --aux-dir,
15399 specifying directory relative --dir where auxiliary build tools
15402 2005-04-14 Bruno Haible <bruno@clisp.org>
15404 * modules/allocsa (License): Change to LGPL.
15405 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
15407 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
15409 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
15410 that "UTC +1 second" continues to work. Problem reported
15411 by Dmitry V. Levin.
15412 (relunit_snumber): New rule.
15415 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
15417 * lib/getdate.y (universal_time_zone_table): New constant.
15418 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
15419 universal_time_zone_table.
15420 (lookup_zone): Prefer universal_time_zone_table to
15421 local_time_zone_table, so that "GMT" time stamps are allowed in
15422 London during the summer. Problem reported by Ian Abbott.
15424 2005-04-12 Jim Meyering <jim@meyering.net>
15426 * lib/human.c (humblock): Set *options even when returning due to
15427 xstrtoumax conversion failure. Thanks to a used-uninitialized
15428 warning from gcc-4.
15430 2005-04-09 Jim Meyering <jim@meyering.net>
15432 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
15433 -Wuninitialized: initialize tm0.tm_year.
15435 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
15437 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
15438 count, since there's no maximum. All uses changed.
15439 Add member dsts_seen.
15440 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
15442 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
15443 Use pc_rels_seen to decide whther a date is absolute.
15445 * lib/getdate.y (number): Don't overwrite year.
15446 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
15449 2005-04-02 Simon Josefsson <jas@extundo.com>
15451 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
15452 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
15454 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
15456 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
15457 where no absolute path name can be longer than PATH_MAX.
15459 2005-03-27 Jim Meyering <jim@meyering.net>
15461 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
15463 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
15465 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
15466 "one's complement" -> "ones' complement" in comment, as per Knuth.
15467 "value of type" -> "type or expression" in comment.
15468 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
15470 2005-03-26 Jim Meyering <jim@meyering.net>
15473 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
15474 Correct typos: s/or/of/.
15476 2005-03-26 Jim Meyering <jim@meyering.net>
15478 * modules/check-include-files: Move to ../ and rename to...
15479 * check-module: ...this.
15481 2005-03-25 Jim Meyering <jim@meyering.net>
15483 * modules/xvasprintf (Files): Add xalloc.h.
15485 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
15487 * modules/gettext (Files): config/config.rpath ->
15488 build-aux/config.rpath
15489 * modules/iconv (Files): Likewise.
15490 Problem reported by Oskar Liljeblad.
15492 2005-03-23 Jim Meyering <jim@meyering.net>
15494 * modules/check-include-files: New script to check for
15495 missing dependencies, multiple includes, etc.
15497 * modules/c-strtold (Depends-on): Add xalloc.
15498 * modules/c-strtod (Depends-on): Add xalloc.
15499 * modules/hash (Depends-on): Add xalloc.
15500 (Files): Remove lib/xalloc.h.
15502 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
15503 * modules/userspec (Files): Add lib/inttostr.h.
15505 2005-03-23 Jim Meyering <jim@meyering.net>
15507 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
15509 2005-03-22 Jim Meyering <jim@meyering.net>
15511 * modules/stat-macros: New module.
15512 * modules/canonicalize, modules/euidaccess, modules/file-type,
15513 * modules/filemode, modules/lchown, modules/makepath,
15514 * modules/rmdir, modules/stat: Depend on new stat-macros module
15515 rather than listing lib/stat-macros.h manually.
15516 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
15518 2005-03-22 Jim Meyering <jim@meyering.net>
15520 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
15522 2005-03-22 Bruno Haible <bruno@clisp.org>
15524 * config/srclist.txt: Replace target directory 'config' with
15526 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
15527 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
15530 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
15532 * modules/chdir-long (Depends-on): Add mempcpy.
15534 * modules/acl, modules/backupfile, modules/c-strtod,
15535 modules/c-strtold, modules/canon-host, modules/canonicalize,
15536 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
15537 modules/exclude, modules/exitfail, modules/file-type,
15538 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
15539 modules/getdate, modules/getline, modules/getpagesize,
15540 modules/getpass, modules/getugroups, modules/group-member,
15541 modules/hard-locale, modules/hash, modules/human, modules/idcache,
15542 modules/inttostr, modules/long-options, modules/makepath,
15543 modules/md5, modules/memcasecmp, modules/memcoll,
15544 modules/modechange, modules/mountlist, modules/path-concat,
15545 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
15546 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
15547 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
15548 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
15549 modules/strftime, modules/strndup, modules/strverscmp,
15550 modules/timespec, modules/unlocked-io, modules/userspec,
15551 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
15553 Remove lib_SOURCES line from Makefile.am section, as this is now
15554 done automatically by the corresponding Autoconf macro.
15556 2005-03-21 Jim Meyering <jim@meyering.net>
15558 Changes imported from coreutils.
15560 * lib/cycle-check.c: Don't include xalloc.h.
15562 * lib/path-concat.c: Don't include assert.h.
15563 (path_concat): Remove assertion that would have triggered
15564 for ABASE starting with more than one slash.
15565 Reported by Andreas Schwab.
15567 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
15568 properly when ABASE is an absolute file name.
15569 Correct the description of this function.
15570 Include <assert.h>.
15571 Add an assertion and a test driver.
15572 This fixes a bug introduced on 2004-07-02.
15573 Andreas Schwab reported the resulting failure of cp --parents:
15574 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
15576 2005-03-21 Jim Meyering <jim@meyering.net>
15578 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
15579 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
15581 2005-03-21 Jim Meyering <jim@meyering.net>
15582 and Paul Eggert <eggert@cs.ucla.edu>
15584 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
15585 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
15586 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
15587 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
15588 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
15589 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
15590 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
15591 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
15592 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
15593 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
15594 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
15595 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
15596 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
15597 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
15598 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
15599 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
15600 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
15603 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
15605 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
15606 (which shouldn't happen), generate nothing instead of returning 0
15607 immediately, so that nstrftime (NULL, ...) doesn't return 0.
15609 2005-03-16 Bruno Haible <bruno@clisp.org>
15611 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
15612 HAVE_LONGLONG_64BIT.
15614 2005-03-16 Bruno Haible <bruno@clisp.org>
15616 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
15617 HAVE_LONGLONG_64BIT.
15619 2005-03-16 Bruno Haible <bruno@clisp.org>
15621 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
15622 HAVE_LONGLONG_64BIT.
15624 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
15626 * lib/strftime.c (my_strftime): Prepend space to format so that we can
15627 reliably distinguish strftime failure from empty output on POSIX
15630 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
15632 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
15633 (iconv_string): Don't guess a size-zero buffer, as that might cause
15634 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
15635 result would be 'too large', where 'too large' is (heuristically)
15636 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
15637 overflow concerns. This will prevent some unwanted malloc failures
15638 when the inputs are very large.
15640 2005-03-15 Karl Berry <karl@gnu.org>
15642 * config/srclist.txt (config.rpath): from gettext.
15643 * config/config.rpath: update.
15645 2005-03-15 Bruno Haible <bruno@clisp.org>
15647 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
15650 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
15653 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
15656 2005-03-14 Simon Josefsson <jas@extundo.com>
15658 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
15661 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
15663 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
15664 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
15666 * lib/strtol.c: Likewise.
15668 2005-03-14 Jim Meyering <jim@meyering.net>
15670 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
15671 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
15672 to be nonzero so that we (and caller) can detect the difference
15673 between a valid zero-length expansion and an error return, even
15674 when the underlying strftime fails before writing anything into
15677 2005-03-14 Bruno Haible <bruno@clisp.org>
15679 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
15680 Update from GNU gettext 0.14.3.
15682 2005-03-10 Jim Meyering <jim@meyering.net>
15684 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
15686 2005-03-10 Jim Meyering <jim@meyering.net>
15688 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
15689 so that this module works on systems without fchdir.
15691 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
15693 Factor int-properties macros into a single file, except for
15694 glibc-related files.
15695 * lib/intprops.h: New file.
15696 * lib/getloadavg.c: Include it instead of limits.h.
15697 (INT_STRLEN_BOUND): Remove.
15698 * lib/human.c: Include intprops.h.
15699 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
15700 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
15702 * lib/inttostr.h: Include intprops.h instead of limits.h.
15703 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
15704 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
15705 for consistency with intprops.h.
15706 (time_t_is_integer, twos_complement_arithmetic): Use them.
15707 * lib/sig2str.h: Include <signal.h>, intprops.h.
15708 (INT_STRLEN_BOUND): Remove.
15709 * lib/strftime.c (TYPE_SIGNED): Remove.
15710 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
15711 * lib/strtol.c: Adjust comments to match intprops.h.
15712 * lib/userspec.c: Include intprops.h.
15713 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
15714 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
15715 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
15716 instead of rolling our own expressions.
15717 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
15719 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
15721 (my_strftime): Do not mishandle years close to INT_MAX, by doing
15722 the right thing even if adding 1900 would overflow. Similarly
15723 for tm_mon + 1 and tm_yday + 1.
15724 Make %Y always equivalent to %C%y, and similarly for %G and %g.
15725 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
15726 (DO_SIGNED_NUMBER): New macro.
15727 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
15729 2005-03-07 Bruno Haible <bruno@clisp.org>
15731 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
15733 2005-03-07 Bruno Haible <bruno@clisp.org>
15735 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
15737 2005-03-04 Derek R. Price <derek@ximbiot.com>
15739 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
15740 (func_import): Only replace files via --import when they have actually
15743 2005-03-03 Derek R. Price <derek@ximbiot.com>
15745 * m4/mmap-anon.m4: New file.
15746 * m4/pagealign_alloc.m4: New file.
15748 2005-03-03 Derek R. Price <derek@ximbiot.com>
15749 Bruno Haible <bruno@clisp.org>
15751 * modules/pagealign_alloc: New file.
15752 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
15754 2005-03-03 Derek R. Price <derek@ximbiot.com>
15755 Bruno Haible <bruno@clisp.org>
15757 * lib/pagealign_alloc.h: New file.
15758 * lib/pagealign_alloc.c: New file.
15760 2005-03-03 Bruno Haible <bruno@clisp.org>
15762 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
15763 Use an all-permissive copyright notice, recommended by RMS.
15765 2005-03-02 Bruno Haible <bruno@clisp.org>
15767 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
15768 of AIX, the replacement has to be done only after <string.h> is
15769 included, therefore not in config.h. stpncpy.h does the replacement,
15770 and stpncpy.c uses it.
15772 2005-03-02 Bruno Haible <bruno@clisp.org>
15774 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
15777 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15779 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
15780 The workaround isn't strictly needed for POSIX conformance, and
15781 it's too much of a pain to configure and maintain. We'll ask
15782 people to fix their kernels instead.
15783 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
15784 (NANOSLEEP_BUG_WORKAROUND): Remove.
15785 (xnanosleep): Remove the workaround.
15787 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15789 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
15790 Reported by Derek Price.
15791 (Include): Add "timespec.h".
15793 * modules/xnanosleep (Depends-on): Remove gethrxtime.
15795 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15797 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
15798 to detect nanosleep bug.
15800 2005-03-01 Bruno Haible <bruno@clisp.org>
15802 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
15804 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
15806 * modules/gethrxtime: New file.
15807 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
15808 (Depends-on): Add gethrxtime.
15809 (configure.ac): Add gl_XNANOSLEEP.
15810 (Makefile.am): Remove lib_SOURCES line.
15812 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
15814 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
15815 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
15817 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
15819 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
15820 * lib/timespec.h (gettime): Return void, since it always
15821 succeeds now. All uses changed.
15822 * lib/gettime.c (gettime) Likewise.
15823 [HAVE_NANOTIME]: Prefer nanotime.
15824 Assume gettimeofday succeeds, as POSIX requires.
15825 Assime time () succeeds, since other code already does.
15826 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
15827 (timespec_subtract): Remove.
15828 (NANOSLEEP_BUG_WORKAROUND): New constant.
15829 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
15830 things considerably. Use it only on GNU/Linux hosts, since the
15831 workaround shouldn't be needed elsewhere.
15833 2005-02-24 Bruno Haible <bruno@clisp.org>
15835 * modules/gettext (Files): Add m4/glibc2.m4.
15837 2005-02-24 Bruno Haible <bruno@clisp.org>
15839 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
15840 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
15842 Update from GNU gettext 0.14.2.
15843 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
15845 2005-02-24 Bruno Haible <bruno@clisp.org>
15847 * lib/localcharset.c: Update from GNU gettext 0.14.2.
15848 * lib/config.charset: Update from GNU gettext 0.14.2.
15850 2005-02-24 Bruno Haible <bruno@clisp.org>
15852 * lib/gettext.h: Update from GNU gettext 0.14.2.
15854 2005-02-23 Simon Josefsson <jas@extundo.com>
15856 * m4/iconvme.m4: New file.
15858 2005-02-23 Jim Meyering <jim@meyering.net>
15860 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
15862 Thanks to Bruno Haible for catching it.
15864 2005-02-22 Simon Josefsson <jas@extundo.com>
15866 * modules/iconvme: New file.
15868 * MODULES.html.sh: Add iconvme.
15870 2005-02-22 Simon Josefsson <jas@extundo.com>
15872 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
15874 2005-02-22 Simon Josefsson <jas@extundo.com>
15876 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
15878 2005-02-22 Jim Meyering <jim@meyering.net>
15880 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
15883 2005-02-20 Neil Conway <neilc@samurai.com>
15885 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
15886 returned by OSX/Darwin if the specified buffer is not large
15887 enough for the hostname.
15889 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15891 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
15892 pass it to _help, otherwise the latter coredumps trying to
15893 dereference state.root_argp.
15895 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15897 * modules/chdir-long (Depends-on): Add memrchr.
15898 * modules/memrchr (Files): Add lib/memrchr.h.
15899 (Include): "memrchr.h".
15901 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15903 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
15905 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15907 * lib/memrchr.h: New file.
15908 * lib/chdir-long.c: Include it.
15909 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
15910 Don't bother including stddef.h.
15912 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
15914 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
15916 Include <sys/types.h>, for dev_t.
15917 (ME_DUMMY, ME_REMOTE): Move from here....
15918 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
15919 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
15921 Include mountlist.h first, to test the interface.
15923 2005-01-29 Bruno Haible <bruno@clisp.org>
15925 * lib/progname.c (program_name): Initialize.
15926 Needed when linking statically on MacOS X.
15928 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
15930 Sync from coreutils.
15931 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
15932 (Depends-on): Add c-strtod.
15933 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
15935 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
15937 Sync from coreutils.
15938 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
15940 Remove files that are specific to coreutils.
15941 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
15943 2005-01-28 Bruno Haible <bruno@clisp.org>
15945 * modules/javacomp: New file.
15946 * MODULES.html.sh (Java): Add javacomp.
15948 2005-01-28 Bruno Haible <bruno@clisp.org>
15950 * m4/javacomp.m4: New file, from GNU gettext.
15952 2005-01-28 Bruno Haible <bruno@clisp.org>
15954 * lib/javacomp.sh.in: New file, from GNU gettext.
15955 * lib/javacomp.h: New file, from GNU gettext.
15956 * lib/javacomp.c: New file, from GNU gettext.
15958 2005-01-26 Simon Josefsson <jas@extundo.com>
15960 * lib/gai_strerror.c: Use GPL in header.
15962 2005-01-26 Bruno Haible <bruno@clisp.org>
15964 * modules/javaexec: New file.
15965 * MODULES.html.sh (Java): Add javaexec.
15967 2005-01-26 Bruno Haible <bruno@clisp.org>
15969 * m4/javaexec.m4: New file, from GNU gettext.
15971 2005-01-26 Bruno Haible <bruno@clisp.org>
15973 * lib/javaexec.sh.in: New file, from GNU gettext.
15974 * lib/javaexec.h: New file, from GNU gettext.
15975 * lib/javaexec.c: New file, from GNU gettext.
15977 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15979 * modules/lchown (Depends-on): Remove lchown.h
15981 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15983 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
15984 must be defined if the header file was not found, in order
15985 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
15987 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15989 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
15990 initializers for struct pentry_state.
15991 (__argp_error): Check return value of __asprintf
15992 (__argp_failure): Translate error message
15994 * lib/argp-parse.c: Removed braces around the expansion of N_()
15996 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
15998 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
15999 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
16000 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
16001 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
16002 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
16003 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
16004 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
16005 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
16006 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
16007 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
16008 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
16009 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
16010 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
16011 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
16012 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
16013 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
16014 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
16015 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
16016 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
16017 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
16018 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
16019 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
16020 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
16021 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
16022 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
16023 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
16024 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
16025 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
16026 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
16027 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
16028 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
16029 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
16030 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
16031 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
16032 xstrtol.m4, xstrtoumax.m4, yesno.m4:
16033 Use an all-permissive copyright notice, recommended by RMS.
16035 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
16037 * modules/chdir-long (Depends-on): Remove mempcpy.
16039 2005-01-21 Jim Meyering <jim@meyering.net>
16041 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
16042 same value as for Solaris 9.
16044 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
16045 component length. This included changing the parameter to be
16046 of type `char *' rather than `char const *'.
16047 * lib/chdir-long.h (chdir_long): Update prototype.
16049 * lib/openat.c (fdopendir, fstatat): New functions.
16050 * lib/openat.h: Include headers required for use of DIR and struct
16052 [AT_SYMLINK_NOFOLLOW]: Define.
16053 (fdopendir, fstatat): Add prototypes.
16055 2005-01-21 Bruno Haible <bruno@clisp.org>
16057 * modules/classpath: New file.
16058 * MODULES.html.sh (Java): Add classpath.
16060 2005-01-21 Bruno Haible <bruno@clisp.org>
16062 * lib/classpath.h: New file, from GNU gettext.
16063 * lib/classpath.c: New file, from GNU gettext.
16065 2005-01-20 Simon Josefsson <jas@extundo.com>
16067 * modules/version-etc-fsf: New file.
16069 2005-01-20 Simon Josefsson <jas@extundo.com>
16071 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
16072 * lib/version-etc.c: Remove version_etc_copyright.
16073 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
16074 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
16076 2005-01-20 Simon Josefsson <jas@extundo.com>
16078 * lib/base64.h (isbase64): Add.
16080 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
16081 using a unsigned prototype, don't inline.
16082 (base64_decode): Use it.
16084 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16086 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
16089 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16091 * lib/save-cwd.c (save_cwd): Remove code to support the case
16092 where fchdir is missing or flaky.
16094 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
16096 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
16098 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
16100 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
16101 AC_LIBSOURCES now does this.
16102 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
16103 with new ullong_max module.
16105 2005-01-19 Bruno Haible <bruno@clisp.org>
16107 * modules/sh-quote: New file.
16108 * MODULES.html.sh (Executing programs): Add sh-quote.
16110 2005-01-19 Bruno Haible <bruno@clisp.org>
16112 * lib/sh-quote.h: New file, from GNU gettext.
16113 * lib/sh-quote.c: New file, from GNU gettext.
16115 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16117 Merge from coreutils.
16118 * m4/ullong_max.m4: New file.
16119 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
16120 (gl_MACROS): Assume localeconv exists.
16122 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16124 Merge changes from coreutils, as described below in several
16125 changelogs dated today.
16127 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
16128 (O_DIRECTORY): Remove; not needed here, since "." must be
16129 a directory. All uses removed.
16130 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
16131 universal on Suns, and we also need to test for IRIX.
16132 Revamp code to use 'if' rather than '#if'.
16133 Avoid unnecessary comparison of cwd->desc to 0.
16135 * lib/utimens.c (futimens): Robustify the previous patch, by checking
16136 for known valid error numbers rather than observed invalid ones.
16138 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
16140 * modules/ullong_max: New file.
16142 * modules/chdir-long, modules/openat: New files.
16143 * modules/save-cwd (Depends-on): Depend on chdir-long.
16144 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
16146 2005-01-18 Jim Meyering <jim@meyering.net>
16148 Merge from coreutils.
16149 * m4/chdir-long.m4, m4/openat.m4: New files.
16150 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
16151 save-cwd.h. Add AC_LIBOBJ for save-cwd.
16152 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
16153 is sane and DOES follow symlinks. Besides, testing 20 different
16154 systems found no broken chown implementations.
16155 Prompted by a change in rsync's copy of this macro.
16156 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
16158 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
16160 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
16161 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
16162 NULL-means-set-to-current-time semantics.
16163 Remove temporary file immediately, rather than waiting
16164 for configure's at-exit trap code to do it.
16166 2005-01-18 Jim Meyering <jim@meyering.net>
16168 * lib/version-etc.c (version_etc_copyright): Update copyright date.
16170 * lib/utimens.c (futimens): Account for the fact that futimes
16171 can also fail with errno == ENOSYS or errno == ENOENT.
16172 Patch from Dmitry V. Levin.
16174 Change the name of the robust chdir function from chdir to chdir_long.
16175 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
16176 (restore_cwd): Use chdir_long, not chdir.
16177 * lib/chdir-long.c: Renamed from chdir.c.
16178 * lib/chdir-long.h: Renamed from chdir.h.
16179 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
16182 2005-01-18 Bruno Haible <bruno@clisp.org>
16184 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
16185 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
16186 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
16187 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
16188 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
16189 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
16190 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
16191 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
16192 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
16193 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
16194 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
16195 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
16196 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
16197 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
16198 Use an all-permissive copyright notice, recommended by RMS.
16200 2005-01-18 Bob Proulx <bob@proulx.com>
16202 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
16203 simplify offsetof() macro construct to avoid compile failure with
16204 native HP-UX 11.0 ANSI C compiler.
16206 2005-01-17 Bruno Haible <bruno@clisp.org>
16208 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
16209 redundant because stpncpy.m4 takes care of it.
16211 2005-01-17 Bruno Haible <bruno@clisp.org>
16213 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
16215 2005-01-17 Bruno Haible <bruno@clisp.org>
16217 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
16220 2005-01-17 Bruno Haible <bruno@clisp.org>
16222 * lib/fwriteerror.h (fwriteerror): Change specification to include
16224 * lib/fwriteerror.c: Include <stdbool.h>.
16225 (fwriteerror): At the end, close the file stream. Record whether
16226 stdout was already closed.
16228 2005-01-17 Bruno Haible <bruno@clisp.org>
16230 * lib/execute.c (environ): Declare if needed.
16231 * lib/pipe.c (environ): Likewise.
16232 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
16234 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16236 * modules/argp: Depend on vsnprintf
16238 2005-01-10 Jim Meyering <jim@meyering.net>
16240 * modules/closeout (Depends-on): Add atexit.
16242 2005-01-06 Bruno Haible <bruno@clisp.org>
16244 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
16246 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
16248 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
16249 definitions to be after all include files, to avoid collisions.
16250 Problem reported by Bob Proulx.
16252 2005-01-04 Jim Meyering <jim@meyering.net>
16254 Changes imported from coreutils.
16255 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
16256 as the mkstemp template, use a temporary directory and an
16257 8.3-friendly template to avoid trouble on systems like DJGPP.
16258 Reported by Juan M. Guerrero via Stepan Kasal.
16259 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
16260 close. Remove the temporary directory right away, rather than waiting
16261 for configure's at-exit trap code to do it.
16262 Suggestion from Stepan Kasal.
16264 2005-01-01 Simon Josefsson <jas@extundo.com>
16266 * gnulib-tool: Print #include directives when --import'ing.
16268 2004-12-28 Simon Josefsson <jas@extundo.com>
16270 * tests/test-base64.c: Include required header files. Remove
16273 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
16275 * modules/error (Depends-on): Remove gettext.
16277 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
16279 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
16280 not needed. This removes a dependency on the gettext module.
16281 [defined _LIBC]: Do not include <libintl.h>; not needed.
16283 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
16285 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
16286 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
16288 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
16290 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
16293 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16295 * modules/getdate (Depends-on): Remove alloca-opt.
16297 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16299 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
16301 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
16303 * lib/argp-parse.c: Include <stddef.h>.
16304 (alignof, alignto): New macros.
16305 (parser_init): Don't assume that void * is aligned sufficiently
16308 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
16309 need to extend the stack.
16310 (YYINITDEPTH): New macro, so that the initial stack isn't overly
16313 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16315 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
16317 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
16319 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
16320 (2004-10-24) change. Apparently this was a false alarm.
16322 * modules/getdate: Depend on alloca-opt, not alloca.
16324 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
16326 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
16327 Remove now-obsolete comment about AIX.
16328 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
16329 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
16330 (YYMAXDEPTH): New macro.
16332 2004-12-18 Simon Josefsson <jas@extundo.com>
16334 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
16336 2004-12-18 Bruno Haible <bruno@clisp.org>
16338 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
16340 2004-12-18 Bruno Haible <bruno@clisp.org>
16342 * lib/fatal-signal.c (fatal_signals): Make non-const.
16343 (init_fatal_signals): New function.
16344 (uninstall_handlers, install_handlers): Ignore signals that were set to
16346 (at_fatal_signal): Call init_fatal_signals.
16347 (init_fatal_signal_set): Likewise. Ignore signals that were set to
16349 Reported by Paul Eggert.
16351 2004-12-18 Bruno Haible <bruno@clisp.org>
16353 * doc/alloca.texi: New file.
16354 * doc/alloca-opt.texi: New file.
16356 2004-12-17 Jim Meyering <jim@meyering.net>
16358 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
16359 Otherwise, install-sh could exit with improper exit status when
16360 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
16362 2004-12-16 Simon Josefsson <jas@extundo.com>
16364 * tests/test-base64.c: Add license.
16366 2004-12-15 Stepan Kasal <address@hidden>
16368 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
16370 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
16372 * modules/getcwd (Files): Add m4/d-ino.m4.
16373 Suggested by Mark D. Baushke.
16375 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
16377 * lib/getdate.y (textint): New member "negative".
16378 (time_zone_hhmm): New function.
16379 Expect 14 shift-reduce conflicts, not 13.
16380 (o_colon_minutes): New rule.
16381 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
16382 (yylex): Set the "negative" member of signed numbers.
16384 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
16386 * doc/getdate.texi (Time of day items, Time zone items):
16387 Describe new formats +00:00, UTC+00:00.
16389 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
16391 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
16392 spurious "-l"s. Problem reported by Stepan Kasal.
16394 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
16396 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
16397 in Autoconf 2.59. Problem reported by Mark D. Baushke.
16399 2004-12-04 Simon Josefsson <jas@extundo.com>
16401 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
16402 Vandoorselaere <yoann@prelude-ids.org>.
16404 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
16406 Changes imported from coreutils.
16407 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
16409 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
16411 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
16413 Changes imported from coreutils.
16414 * lib/hard-locale.c: Assume <locale.h> exists.
16415 Include "strdup.h".
16416 (GLIBC_VERSION): New macro.
16417 (hard_locale): Assume setlocale exists.
16418 Rewrite to avoid #ifdef.
16419 Use strdup rather than malloc + strcpy.
16420 * lib/human.c: Assume <locale.h> exists.
16421 (human_readable): Assume localeconv exists.
16423 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
16425 * modules/hard-locale (Depends-on): Add strdup.
16427 2004-12-01 Jakub Jelinek <jakub@redhat.com>
16429 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
16430 convert T2, not T. (Imported from libc.)
16432 2004-11-30 Simon Josefsson <jas@extundo.com>
16434 * modules/restrict (License): Change to LGPL.
16436 2004-11-30 Simon Josefsson <jas@extundo.com>
16438 * m4/restrict.m4: Add copyright and copying conditions.
16440 2004-11-30 Simon Josefsson <jas@extundo.com>
16442 * m4/base64.m4: New file.
16444 2004-11-30 Simon Josefsson <jas@extundo.com>
16446 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
16449 * tests/test-base64.c: New file.
16451 * modules/base64: New file.
16453 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
16455 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16456 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
16458 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
16460 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
16462 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
16463 (__getcwd.c): Don't restore errno; glibc doesn't.
16464 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
16465 first, falling back to our code only if its results look suspicious.
16466 Ensure that the resulting buffer is only as large as necessary.
16468 * lib/readutmp.c: Include readutmp.h first.
16469 Include <errno.h>, since readutmp.h no longer does that.
16470 * lib/readutmp.h: Don't include <errno.h>,
16471 <sys/param.h>, <time.h>; not needed to establish interface.
16472 (errno): Remove decl.
16473 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
16474 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
16475 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
16477 2004-11-28 Simon Josefsson <jas@extundo.com>
16479 * lib/base64.h, base64.c: New file.
16481 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
16483 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
16485 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
16487 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
16488 (Depends-on): Remove pathmax, same. Add mempcpy.
16489 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
16490 (Makefile.am): Append getcwd.h to lib_SOURCES.
16491 (Include): Add getcwd.h.
16492 (Maintainer): Change from Jim Meyering to "all, glibc",
16493 since getdate now uses intended-for-glibc code.
16494 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
16495 (Depends-on): Depend on getcwd. Do not depend on pathmax.
16497 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
16499 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
16500 HP's ANSI C compiler.
16501 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
16502 Declaring int functions causes warnings on some modern systems and
16503 shouldn't be needed to compile on ancient ones.
16504 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
16507 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
16508 with the following changes.
16509 (__set_errno): Parenthesize properly.
16510 Include <stdbool.h>.
16511 (MIN, MAX, MATCHING_INO): New macros.
16512 (__getcwd): Define with prototype, not K&R form.
16513 Use heuristics to allocate default buffer on stack if possible.
16514 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
16515 behavior, and to avoid the PATH_MAX limit when computing
16517 Use MATCHING_INO to compare inode number to file.
16518 Check for arithmetic overflow in size calculations.
16519 Fix bug in reallocation of dot array that caused getcwd to fail
16520 on directories nested deeper than 75.
16521 Be more careful about saving errno on error.
16522 Do not use realloc; use only free+malloc, as this is a bit
16523 more flexible and avoids a needless copy operation.
16524 Do not inspect st_dev and st_ino for symbolic links; POSIX
16525 doesn't specify the latter.
16526 Check for closedir errors.
16527 Avoid needless casts.
16528 Use "#ifdef weak_alias" around weak_alias, to be like other
16530 The following changes to getcwd.c have effect only when used in
16531 gnulib; they have no effect inside glibc proper.
16532 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
16533 as alloca isn't used.
16534 (alloca, __alloca): Likewise.
16535 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
16536 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16537 unconditionally, as gnulib assumes C89 or better.
16538 Do not include <sys/param.h>.
16539 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
16540 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
16542 (NULL) [!defined NULL]: Remove; we assume C89 or better.
16543 Include <dirent.h> in a way that is compatible with modern Autoconf.
16544 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
16545 New macros, if not already defined.
16546 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
16547 Use "_LIBC", not "defined _LIBC", for consistency.
16548 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
16550 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
16551 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
16552 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
16553 credit only to Jim Meyering and adjust the copyright dates.
16554 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
16555 <stdlib.h>, <unistd.h>, "pathmax.h".
16556 Instead, include "xgetcwd.h" (first) and "getcwd.h".
16557 (INITIAL_BUFFER_SIZE): Remove.
16558 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
16560 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
16562 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
16563 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
16564 Use the _ONCE methods, for efficiency.
16565 Check for fcntl.h. In test program, include <errno.h>
16566 and <fcntl.h> if available. Remove old K&R cruft from
16567 test program. Check for common errors in GNU/Linux,
16568 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
16569 don't do AC_LIBOBJ, as that's getcwd.m4's job.
16570 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
16571 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
16573 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
16574 accommodate new getcwd.c.
16575 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
16576 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
16577 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
16578 that's all we need now.
16580 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16582 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
16583 argp-parse.c depends on getopt internals, that means we should
16584 always use our getopt, to be on the safe side.
16585 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
16586 order not to spoil the result of an eventual previous invocation
16587 of gl_GETOPT_SUBSTITUTE.
16589 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16591 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
16592 redefinition warnings. To avoid them, include the defines
16593 in `#if !defined __need_getopt ... #endif'. The only place
16594 where __getopt_argv_const is used is in definitions
16595 of getopt_long and getopt_long_only below, which are as well
16596 protected by `#ifndef __need_getopt'.
16597 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
16598 __need_getopt after including <stdio.h> and <unistd.h> These
16599 headers might have defined it.
16601 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
16603 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
16605 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
16607 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
16608 (futimens): New function, which uses futimes if available.
16609 (futimens, utimens): Support timespec==NULL, with same semantics
16610 as utime and utimens.
16611 * lib/utimens.h (futimens): New decl.
16613 2004-11-23 Jim Meyering <jim@meyering.net>
16615 * lib/getopt_.h: Remove trailing blanks.
16617 2004-11-23 Jim Meyering <jim@meyering.net>
16619 * lib/__fpending.c: Add comment.
16621 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
16623 * modules/canonicalize (Depends-on): Add xreadlink.
16624 Problem reported by James Youngman.
16626 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
16628 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
16630 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
16631 optopt): Use them instead of invoking ## directly; otherwise, the
16632 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
16634 2004-11-19 Bruno Haible <bruno@clisp.org>
16636 * lib/strtok_r.c: Move comments from here...
16637 * lib/strtok_r.h: ... to here.
16639 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
16641 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
16642 implementations that mishandle size_t overflow.
16644 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
16646 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
16647 might fail. Problem reported by Yoann Vandoorselaere.
16648 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
16649 implementations that mishandle size_t overflow.
16651 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16653 * modules/canon-host (Depends-on): Add strdup.
16655 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16657 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
16659 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16661 * lib/canon-host.c: Include "strdup.h".
16662 (canon_host): Use getaddrinfo if available, so that IPv6 works.
16663 Use strdup instead of malloc/strcpy to duplicate strings.
16665 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
16666 (human_space_before_unit): New constant.
16667 * lib/human.c (human_readable): Support it.
16669 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
16670 (xgetcwd): Set errno correctly when failing.
16671 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
16672 the failure is actually due to a PATH_MAX problem.
16674 Further getopt changes to make it more likely that glibc will
16675 buy the changes back.
16676 * lib/getopt.c (POSIXLY_CORRECT): New constant.
16677 (getopt): Use it, so to preserve glibc semantic
16678 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
16679 when compiling for libc.
16680 * lib/getopt_.h (__getopt_argv_const): Bring it back.
16681 (getopt_long, getopt_long_only): Use it.
16683 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
16684 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
16685 (getopt): Argv is now char * const *, as per standard.
16686 (_getopt_internal_r, _getopt_internal): Argv is now char **,
16687 not char *__getopt_argv_const *.
16688 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
16689 _getopt_long_only_r): Likewise.
16690 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
16691 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
16692 _getopt_long_r, _getopt_long_only_r): Likewise.
16693 * lib/getopt_.h (__getopt_argv_const): Remove.
16694 (getopt): Argv is now char * const *, as per standard.
16696 * lib/getdate.y (tORDINAL): New token.
16697 (day, relunit): Allow it for relative times.
16698 (relative_time_table): Use tORDINAL for ordinals.
16700 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16702 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
16703 Document that "second" isn't allowed as an ordinal number.
16705 2004-11-16 Jim Meyering <jim@meyering.net>
16707 * modules/closeout (Depends-on): Add fpending.
16709 2004-11-15 Jim Meyering <jim@meyering.net>
16711 * lib/closeout.c: Include "__fpending.h" once again.
16712 Include <stdbool.h>.
16713 (close_stdout): Don't fail just because stdout was closed initially,
16714 since some programs don't write to stdout in the normal course of
16715 operation (other than --version and --help), and we don't want this
16716 function to make e.g. `touch file >&-' fail.
16717 But do fail if it was closed and someone has tried to write to it.
16718 E.g., `printf foo >&-' must fail.
16720 2004-11-13 Jim Meyering <jim@meyering.net>
16722 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
16724 2004-11-12 Simon Josefsson <jas@extundo.com>
16726 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
16727 small doc fix is still pending.
16729 2004-11-11 Simon Josefsson <jas@extundo.com>
16731 * modules/strtok_r: New file.
16733 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16736 2004-11-11 Simon Josefsson <jas@extundo.com>
16738 * m4/strtok_r.m4: New file.
16740 * m4/getopt.m4: Replace opterr.
16742 2004-11-11 Simon Josefsson <jas@extundo.com>
16744 * lib/strtok_r.h, strtok_r.c: New file.
16746 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
16748 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
16749 of replacing opterr, getopt, etc. This should handle the
16750 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
16752 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
16754 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
16755 we can stop lying to compilers about the constness of argv when we
16756 are compiled outside glibc.
16757 (getopt, getopt_long, getopt_long_only): Use it.
16758 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
16759 _getopt_internal, getopt): Likewise.
16760 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
16761 _getopt_long_only_r): Likewise.
16762 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
16763 _getopt_long_r, _getopt_long_only_r): Likewise.
16765 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
16766 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
16767 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
16768 the other external symbols.
16769 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
16770 declaration, since the above renaming now works around collisions.
16772 2004-11-11 Jim Meyering <jim@meyering.net>
16774 * lib/linebreak.c: Remove trailing blanks.
16775 * lib/alloca_.h: Likewise.
16776 * lib/acosl.c: Likewise.
16777 * lib/euidaccess.c: Likewise.
16778 * lib/allocsa.h: Likewise.
16780 2004-11-10 Simon Josefsson <jas@extundo.com>
16782 * m4/getaddrinfo.m4: New file.
16784 2004-11-10 Simon Josefsson <jas@extundo.com>
16786 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
16788 2004-11-10 Simon Josefsson <jas@extundo.com>
16790 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16793 * modules/getaddrinfo: New file.
16795 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
16797 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
16799 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
16801 * lib/mktime.c (SHR): New macro, which is a portable
16802 substitute for >> that should work even on Crays.
16803 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
16804 Problem reported by Mark D. Baushke in
16805 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
16806 * lib/getdate.y (SHR): Likewise.
16808 * lib/strftime.c (SHR): Likewise.
16810 * lib/quotearg.c (struct quoting_options): Use unsigned int for
16811 quote_these_too, so that right shifts are well defined. All uses
16814 2004-11-10 Jim Meyering <jim@meyering.net>
16816 Ensure that no close failure goes unreported.
16817 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
16818 return early when it seems there's nothing to flush.
16819 Don't include __fpending.h.
16821 2004-11-10 Jim Meyering <jim@meyering.net>
16823 * modules/closeout (Depends-on): Remove fpending.
16825 2004-11-10 Jim Meyering <jim@meyering.net>
16827 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
16829 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
16831 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
16833 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
16834 and AC_REQUIRE when possible, to avoid duplicate checks.
16835 Check for <wchar.h>.
16837 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
16839 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
16841 2004-11-09 Bruno Haible <bruno@clisp.org>
16843 * m4/sockpfaf.m4: New file.
16845 2004-11-05 Bruno Haible <bruno@clisp.org>
16847 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
16848 Reported by Mark D. Baushke <mdb@cvshome.org>.
16850 2004-11-04 Bruno Haible <bruno@clisp.org>
16852 2004-09-11 Bruno Haible <bruno@clisp.org>
16853 * allocsa.valgrind: New file.
16854 2004-02-06 Bruno Haible <bruno@clisp.org>
16855 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
16856 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
16857 Reported by Christopher Seip <chris.seip@hp.com>.
16859 2004-11-04 Bruno Haible <bruno@clisp.org>
16861 * modules/allocsa (Files): Add lib/allocsa.valgrind.
16862 (Makefile.am): Distribute it.
16864 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
16866 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
16867 with errno == ERANGE if the buffer is too small.
16868 Problem reported by Mark D. Baushke.
16870 2004-11-03 Albert Chin <china@thewrittenword.com>
16871 Paul Eggert <eggert@cs.ucla.edu>
16873 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
16874 equivalent, substitute $ac_type for equivalent type rather than
16875 blindly using uint32_t *always* which won't work if uint32_t is not
16876 available. Define _UINT32_T to work around typedef of uint32_t if
16877 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
16880 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16882 * m4/jm-macros.m4: Sync from coreutils.
16883 (gl_MACROS): Check for mbrlen, for pathchk.
16884 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
16886 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16888 * lib/xreadlink.c (MAXSIZE): New macro.
16889 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
16890 size does not exceed MAXSIZE. Avoid cast.
16891 As suggested by Mark D. Baushke in
16892 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
16893 if readlink fails with buffer size just under MAXSIZE, try again
16896 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16898 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
16900 2004-11-02 Derek R. Price <derek@ximbiot.com>
16901 and Paul Eggert <eggert@cs.ucla.edu>
16903 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
16904 (get_date): Overparenthesize to avoid GCC warning.
16906 2004-11-02 Bruno Haible <bruno@clisp.org>
16908 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
16911 2004-11-02 Bruno Haible <bruno@clisp.org>
16913 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
16914 function returns void.
16916 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
16918 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
16919 fflush_unlocked, flockfile, funlockfile, funlockfile,
16920 fputs_unlocked, putc_unlocked.
16922 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
16924 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
16925 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
16928 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16930 * modules/getdate (Files): Add doc/getdate.texi.
16931 (Depends-on): Add setenv, xalloc.
16933 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16935 * lib/getdate.y: Add support for TZ="foo" within a date string.
16936 Fix some bugs near time_t boundaries. Reject dates with
16937 out-of-range components, e.g., "Sept 31".
16938 Include <stdlib.h>, "setenv.h", "xalloc.h".
16939 (ISDIGIT_LOCALE): Remove; unused.
16940 Note that the TZ and time functions used here are not reentrant.
16941 (mktime_ok, get_tz): New functions.
16942 (TZBUFSIZE): New constant.
16943 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
16944 This requires that we sometimes generate our own TZ="XXX..." setting.
16946 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16948 * doc/getdate.texi: New file, from coreutils with modifications for
16949 the new TZ parsing.
16951 2004-10-27 Derek R. Price <derek@ximbiot.com>
16953 * lib/mktime.c (not_equal_tm): Remove redundant check.
16955 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
16957 * modules/regex (lib_SOURCES): Add regex.c.
16958 Reported by James Youngman in
16959 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
16961 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
16963 * lib/getdate.y: Use Bison 1.875 features, and some minor
16964 code cleanups. This change does not affect semantics.
16965 Don't include <stdlib.h>; no longer needed.
16966 Don't include unlocked-io.h; only the "#if TEST" code uses
16967 stdio, and performance isn't crucial there.
16968 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
16969 Bison 1.875 features as described below.
16970 All uses of "PC." replaced by "pc->".
16971 (YYSTYPE): Add a forward declaration.
16972 (yylex, yyerror): Use full prototypes in forward decls.
16973 Use "%pure-parser" rather than obsolescent "%pure_parser".
16974 Use %parse-param and %lex-param instead of obsolescent
16975 YYPARSE_PARAM and YYLEX_PARAM.
16976 (meridian_table, month_and_day_table, time_units_table,
16977 relative_time_table, time_zone_table, military_table,
16978 lookup_zone, lookup_word, get_date):
16979 Use NULL instead of 0 where appropriate.
16980 (to_hour): Avoid abort (), to avoid a dependency on
16982 (yyerror, yylex): Now accepts parser_control * arg.
16983 (main) [TEST]: Use '\0' rather than 0 for char.
16985 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
16987 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
16989 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
16991 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
16992 It's now the caller's responsibility to handle the case where
16993 !HAVE_GETPAGESIZE && !defined getpagesize.
16995 * lib/mktime.c (leapyear): Arg is long int, not int.
16997 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
16999 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
17001 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
17003 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
17004 missing. Problem reported by James Youngman.
17006 2004-10-16 Simon Josefsson <jas@extundo.com>
17008 * gnulib-tool: Fix comments. Fix parse problem.
17009 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
17011 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
17013 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
17014 implementation of getopt_long. Problem reported by Alexander Taler in:
17015 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
17017 2004-10-15 Bruno Haible <bruno@clisp.org>
17019 * gnulib-tool: Untabify. Initialize supplied_libname.
17020 (func_usage): More homogenous output.
17021 (func_modules_transitive_closure, func_modules_to_filelist,
17022 func_emit_lib_Makefile_am): New functions.
17023 (func_import): New function, extracted from big case statement. Use
17024 func_get_license, func_modules_transitive_closure,
17025 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
17026 opt_lgpl. Don't use test -a, as it's not portable.
17027 (func_create_testdir): Use func_modules_transitive_closure,
17028 func_modules_to_filelist, func_emit_lib_Makefile_am.
17030 2004-10-15 Bruno Haible <bruno@clisp.org>
17032 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
17034 2004-10-15 Bruno Haible <bruno@clisp.org>
17036 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
17037 the portions belonging to each module.
17038 Suggested by Derek Robert Price <derek@ximbiot.com>.
17040 2004-10-12 Simon Josefsson <jas@extundo.com>
17042 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
17043 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
17046 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17048 * modules/vsnprintf: New file.
17050 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17052 * m4/vsnprintf.m4: New file.
17054 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17056 * lib/vsnprintf.h: New file.
17057 * lib/vsnprintf.c: New file.
17059 2004-10-11 Bruno Haible <bruno@clisp.org>
17061 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
17064 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
17066 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
17068 2004-10-07 Bruno Haible <bruno@clisp.org>
17070 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
17071 fits into the provided buffer.
17073 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
17075 * lib/diacrit.c, diacrit.h: Add GPL notice.
17077 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
17079 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
17080 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
17081 This avoids a potential constant-folding bug.
17083 2004-10-05 Bruno Haible <bruno@clisp.org>
17085 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
17086 for the declaration of strsep.
17088 2004-10-05 Bruno Haible <bruno@clisp.org>
17090 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
17092 2004-10-04 Simon Josefsson <jas@extundo.com>
17094 * modules/memmem: New file.
17095 * tests/test-memmem.c: New file.
17096 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
17098 2004-10-04 Simon Josefsson <jas@extundo.com>
17100 * m4/memmem.m4: New file.
17102 2004-10-04 Simon Josefsson <jas@extundo.com>
17104 * lib/memmem.h: New file.
17105 * lib/memmem.c: New file, taken from glibc.
17107 2004-10-04 Simon Josefsson <jas@extundo.com>
17109 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
17110 '#ifdef USE_UNLOCKED_IO'.
17112 2004-10-04 Simon Josefsson <jas@extundo.com>
17114 * config/srclist.txt: Add memmem from glibc.
17116 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17118 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
17120 * modules/argmatch, modules/argp, modules/closeout, modules/error,
17121 modules/exclude, modules/getdate, modules/getline,
17122 modules/getndelim2, modules/getpass, modules/getpass-gnu,
17123 modules/getusershell, modules/linebuffer, modules/md5,
17124 modules/mountlist, modules/posixtm, modules/readtokens,
17125 modules/readutmp, modules/regex, modules/sha1,
17126 modules/version-etc, modules/yesno:
17127 Remove dependency on unlocked-io.
17129 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17131 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
17133 * m4/unlocked-io.m4: Add copyright notice.
17134 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
17136 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17138 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
17139 * lib/xmalloc.c (xmemdup): Likewise.
17140 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
17141 XFREE): Remove these long-obsolescent macros.
17142 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
17143 * lib/xstrdup.c: Remove.
17145 * lib/regex.c (re_comp): Cast gettext return value to char *,
17146 Problem reported by Martin Neitzel via Mark D. Baushke.
17148 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
17150 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
17151 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
17152 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
17153 regex.c, sha1.c, version-etc.c, yesno.c:
17154 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
17155 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
17156 the includer's responsibility.
17158 Sync from coreutils.
17160 * lib/modechange.c (mode_compile): Don't decrement a pointer that
17161 points to the start of a string, as the C Standard says the
17162 resulting behavior is undefined.
17164 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
17165 simple -> simple_backups, numbered_existing ->
17166 numbered_existing_backups, numbered -> numbered_backups
17167 to avoid shadowing problems. All uses changed.
17168 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
17169 * lib/backupfile.c (check_extension, numbered_backup):
17170 Rename locals to avoid shadowing 'basename'.
17171 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
17174 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
17175 * lib/.cvsignore: Add getopt.h.
17177 2004-10-04 Bruno Haible <bruno@clisp.org>
17179 * modules/README: New file.
17180 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
17183 2004-10-02 Jim Meyering <jim@meyering.net>
17185 * lib/dirfd.h, getpagesize.h: Add copyright notice.
17187 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17189 * modules/strsep: New file.
17191 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17193 * m4/strsep.m4: New file.
17195 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
17197 * lib/strsep.h: New file.
17198 * lib/strsep.c: New file.
17200 2004-10-01 Simon Josefsson <jas@extundo.com>
17202 * lib/snprintf.c (snprintf): Handle size==0.
17204 2004-10-01 Simon Josefsson <jas@extundo.com>
17205 Bruno Haible <bruno@clisp.org>
17207 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
17208 (snprintf): Declare 'args'.
17210 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
17212 * lib/snprintf.c: Remove comments as to why each header is needed.
17214 2004-10-01 Bruno Haible <bruno@clisp.org>
17216 * MODULES.html.sh: Add strsep.
17218 2004-09-30 Simon Josefsson <jas@extundo.com>
17220 * modules/snprintf: New file.
17222 2004-09-30 Simon Josefsson <jas@extundo.com>
17224 * m4/snprintf.m4: New file.
17226 2004-09-30 Simon Josefsson <jas@extundo.com>
17228 * lib/snprintf.h, lib/snprintf.c: New files.
17230 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
17232 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
17233 (hol_entry_help): Never translate an empty string.
17234 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
17235 * lib/argp.h (OPTION_NO_TRANS): New option.
17237 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17239 * modules/argp (Maintainer): Replace Simon Josefsson
17240 by Sergey Poznyakoff.
17242 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17244 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
17245 changes merged back into glibc.
17247 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
17249 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
17251 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
17253 * lib/xvasprintf.c: Include xalloc.h.
17254 (xvasprintf): Use xalloc_die, not xmalloc_die.
17256 2004-09-29 Bruno Haible <bruno@clisp.org>
17258 * modules/alloca-opt: New file, derived from modules/alloca.
17259 * modules/allocsa: Depend on alloca-opt instead of alloca.
17260 * modules/setenv: Likewise.
17261 * modules/vasnprintf: Likewise.
17262 * MODULES.html.sh: Add alloca-opt.
17264 2004-09-28 Simon Josefsson <jas@extundo.com>
17266 * gnulib-tool: New parameter --lgpl, to asseert that modules are
17267 LGPL, and to replace license template from GPL to LGPL.
17269 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
17271 * modules/dummy: Change license to LGPL.
17273 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
17275 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
17277 2004-09-24 Simon Josefsson <jas@extundo.com>
17279 * modules/minmax (License): Change from GPL to LGPL.
17281 2004-09-23 Simon Josefsson <jas@extundo.com>
17283 * gnulib-tool (--import): Typo.
17285 2004-09-23 Simon Josefsson <jas@extundo.com>
17287 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
17289 2004-09-22 Bruno Haible <bruno@clisp.org>
17291 * modules/*: Add 'License' field.
17292 * gnulib-tool: Accept --extract-license option.
17293 (func_get_license): New function.
17295 2004-09-21 Bruno Haible <bruno@clisp.org>
17297 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
17298 Reported by Simon Josefsson.
17300 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
17302 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
17303 gl_AC_TYPE_LONG_LONG.
17305 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
17307 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
17309 2004-09-18 Simon Josefsson <jas@extundo.com>
17310 and Paul Eggert <eggert@cs.ucla.edu>
17312 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
17313 calls with autoreconf. Define GL_LIB.
17315 2004-09-14 Karl Berry <karl@gnu.org>
17317 * config/srclist.txt: unsync setenv.c, sigh.
17319 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
17321 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
17322 Problem reported by Bruno Haible in:
17323 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
17325 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
17327 * config/srclist.txt: Comment out argp-pvh.c.
17329 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
17331 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
17332 in case some system header has #define'd it. Problem reported by
17333 Soeren D. Schulze in
17334 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
17336 2004-09-09 Karl Berry <karl@gnu.org>
17338 * regex.[ch]: delete from the root. These were supposed to be
17339 synced with emacs cvs, but this has not happened for about
17340 a year, and anyway nothing else uses emacs regex.[ch].
17341 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
17342 lib/regex[.ch] is untouched.
17344 2004-09-09 Bruno Haible <bruno@clisp.org>
17346 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
17348 2004-09-09 Bruno Haible <bruno@clisp.org>
17350 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
17352 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
17354 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
17356 * modules/xvasprintf: New file.
17357 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
17359 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
17361 * lib/xvasprintf.h: New file.
17362 * lib/xvasprintf.c: New file.
17363 * lib/xasprintf.c: New file.
17365 2004-09-08 Bruno Haible <bruno@clisp.org>
17367 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
17369 2004-09-08 Bruno Haible <bruno@clisp.org>
17371 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
17372 length is > INT_MAX.
17373 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
17376 2004-09-08 Bruno Haible <bruno@clisp.org>
17378 * lib/stdint_.h: New file, taken from GNU clisp.
17380 2004-09-08 Bruno Haible <bruno@clisp.org>
17381 Oskar Liljeblad <oskar@osk.mine.nu>
17383 * modules/stdint: New file.
17384 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
17386 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
17388 Import from coreutils.
17389 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
17390 strings on unbounded length. alloca's performance benefits aren't
17391 that important here.
17392 (V_STRDUP): Remove.
17393 (parse_with_separator): New function, with most of the internals
17394 of the old parse_user_spec. Allow user to omit both user and group,
17395 for compatibility with FreeBSD.
17396 Clone only the user name, not the entire spec.
17397 Do not set *uid, *gid unless entirely successful.
17398 Avoid memory leak in some failing cases.
17399 Fix regression for USER.GROUP reported by Dmitry V. Levin in
17400 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
17401 (parse_user_spec): Rewrite to use parse_with_separator.
17403 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
17405 * modules/userspec: Don't depend on alloca.
17407 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
17409 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
17411 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
17413 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
17414 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
17415 utimecmp, utimens, xnanosleep. Rename sha to sha1.
17417 2004-08-16 Simon Josefsson <jas@extundo.com>
17419 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
17420 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
17421 Add --dry-run for --import.
17422 Let user provided command line parameters override configure.ac
17425 2004-08-12 Simon Josefsson <jas@extundo.com>
17427 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
17428 as discussed with Paul Eggert in threads rooted at
17429 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
17431 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
17432 Before, the test was empty, and relied on ELIDE_CODE in source
17434 (gl_PREREQ_GETOPT): New macro.
17435 (gl_GETOPT): Use them.
17437 2004-08-12 Simon Josefsson <jas@extundo.com>
17439 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
17440 * lib/getopt_.h: Renamed from getopt.h.
17442 2004-08-12 Simon Josefsson <jas@extundo.com>
17444 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
17445 Change default library name from libfoo to libgnu.
17446 Now, if you have a configure.ac that says:
17449 gl_MODULES(error getopt etcetera)
17451 you can import all you need by running:
17452 ../gnulib/gnulib-tool --import
17454 * modules/getopt (Files): Rename getopt.h to getopt_.h.
17455 (Makefile.am): Rewrite, use logic from argz.
17456 (Include): Use <getopt.h> instead of "getopt.h".
17458 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17460 * modules/argp (Files): Add m4/unlocked-io.m4.
17461 (Depends-on): Add extensions.
17463 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17465 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
17466 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
17467 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
17468 Check for program_invocation_name, program_invocation_short_name,
17469 flockfile, funlockfile, features.h, _getopt_long_only_r.
17471 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17473 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
17474 its complicated substitute.
17475 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
17476 and program_invocation_name.
17477 (__argp_basename) [!_LIBC]: Remove; the only use was
17478 replaced by its body.
17479 (__argp_short_program_name): Change condition from
17480 !defined __argp_short_program_name to
17481 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
17482 to match argp-namefrob.h.
17483 (__argp_failure): Don't assume strerror_r returns char *.
17484 * lib/argp-parse.c (N_): Define unconditionally.
17485 (argp_default_options): Fill out initializers with 0 to avoid
17488 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
17490 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
17493 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
17495 Merge from coreutils.
17497 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
17499 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
17500 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
17502 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
17504 Merge from coreutils.
17506 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
17507 wmemchr or wmemcpy. Problem reported by Robert Dahlem
17508 for Reliant Unix 5.43.
17510 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
17511 (union fooround): Use uintmax_t, not long int.
17512 The rest is a merge from libc:
17513 [defined _LIBC]: Include <shlib-compat.h>.
17514 (_obstack) [defined _LIBC]: Remove after 2.3.4.
17516 * lib/settime.c (settime): Recode to avoid warning with
17519 * lib/strverscmp.c: Convert to UTF-8.
17521 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
17523 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17526 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17528 * modules/xalloc-die: New file.
17529 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
17531 * modules/md5 (Files): Add m4/uint32_t.m4.
17532 * modules/sha1: Renamed from modules/sha.
17534 Rename lib/sha.h to lib/sha1.h.
17535 Rename lib/sha.c to lib/sha1.c.
17536 Rename m4/sha.m4 to m4/sha1.m4.
17537 (lib_SOURCES): Likewise.
17538 (configure.ac): Rename gl_SHA to gl_SHA1.
17539 (Include): sha.h -> sha1.h.
17541 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17543 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
17544 * m4/sha1.m4: Renamed from sha.m4.
17545 (gl_SHA1): Renamed from gl_SHA. All uses changed.
17547 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17549 * lib/obstack.h (obstack_empty_p):
17550 Don't assume that chunk->contents is suitably aligned.
17551 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
17552 Likewise. Problem reported by Benno in
17553 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
17555 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
17556 readable. This could be improved further but it'd take some work.
17558 2004-08-08 Simon Josefsson <jas@extundo.com>
17560 * modules/xgethostname (Depends-on): Remove exit and error (not
17563 * modules/getpass-gnu: Add getpass.h.
17564 (Depends-on): Add stdbool.
17565 * modules/getpass: Add getpass.h.
17567 2004-08-08 Simon Josefsson <jas@extundo.com>
17569 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
17570 Check getpass declaration.
17572 2004-08-08 Simon Josefsson <jas@extundo.com>
17574 * lib/xgethostname.c: Don't include error.h (not used).
17576 * lib/getpass.h: Add.
17577 * lib/getpass.c: Include getpass.h first.
17579 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
17581 * lib/xalloc-die.c: New file.
17582 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
17584 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
17585 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
17587 (_, N_, xalloc_die): Move to xalloc-die.c.
17588 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
17589 so that we needn't mess with xalloc_msg_memory_exhausted.
17591 * lib/sha1.h: Renamed from sha.h.
17592 (SHA1_H): Renamed from _SHA_H.
17593 (sha1_ctx): Renamed from sha_ctx.
17594 (sha1_init_ctx): Renamed from sha_init_ctx.
17595 (sha1_process_block): Renamed from sha_process_block.
17596 (sha1_process_bytes): Renamed from sha_process_bytes.
17597 (sha1_finish_ctx): Renamed from sha_finish_ctx.
17598 (sha1_read_ctx): Renamed from sha_read_ctx.
17599 (sha1_stream): Renamed from sha_stream.
17600 (sha1_buffer): Renamed from sha_buffer.
17601 * lib/sha1.c: Likewise; renamed from sha.c.
17602 Do not include <sys/types.h>.
17603 Include <stddef.h> rather than <stdlib.h>.
17605 2004-08-08 Bruno Haible <bruno@clisp.org>
17607 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
17608 FILESYSTEM_PREFIX_LEN.
17609 * lib/progreloc.c: Likewise.
17610 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
17612 2004-08-06 Simon Josefsson <jas@extundo.com>
17614 * modules/progname (Depends-on): Don't depend on stdbool.
17616 2004-08-06 Simon Josefsson <jas@extundo.com>
17618 * modules/getsubopt: New file.
17619 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17622 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17624 More merge from coreutils.
17626 * m4/utimens.m4, m4/utimecmp.m4: New files.
17627 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
17628 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
17629 prereq.m4, sha.m4: Import changes from coreutils.
17631 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17633 More merge from coreutils.
17634 * modules/raise, modules/readtokens0, modules/utimens:
17635 * modules/utimecmp, module/xnanosleep: New files.
17636 * modules/strftime: Add lib/strftime.h.
17637 Change include from <time.h> to "strftime.h".
17638 * modules/yesno: Add lib/yesno.h.
17639 * modules/backupfile: Remove lib/addext.c.
17640 * modules/euidaccess: Add stat-macros.h.
17641 * modules/canonicalize, modules/euidaccess,
17642 modules/filemode, modules/lchown, modules/makepath,
17643 modules/rmdir, modules/stat: Likewise.
17645 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17648 * lib/argp-help.c (make_hol, hol_append): Don't assume that
17649 SIZE_MAX is a valid preprocessor constant.
17650 (__argp_basename): Change from "#ifndef _LIBC"
17651 to "#ifndef __argp_short_program_name", so that
17652 we don't compile these functions for tar.
17654 More merges from coreutils.
17655 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
17656 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
17657 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
17658 * lib/addext.c: Remove; no longer needed.
17659 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
17660 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
17661 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
17662 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
17663 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
17664 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
17665 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
17666 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
17667 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
17668 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
17669 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
17670 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
17671 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
17672 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
17673 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
17674 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
17675 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
17676 Import changes from coreutils.
17678 2004-08-05 Simon Josefsson <jas@extundo.com>
17680 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
17682 2004-08-05 Simon Josefsson <jas@extundo.com>
17684 * m4/getsubopt.m4: New file.
17686 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
17688 Merge from coreutils.
17690 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
17691 * m4/getcwd-path-max.m4: New files.
17693 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
17694 FILESYSTEM_PREFIX_LEN ->
17695 FILE_SYSTEM_PREFIX_LEN.
17696 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
17697 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
17698 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
17699 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
17701 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
17702 prerequisite modules now handle the DOS stuff.
17703 Don't check for unistd.h.
17705 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
17707 Merge from coreutils.
17709 * lib/.gdb-history: Remove; this doesn't belong here.
17711 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
17712 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
17713 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
17714 * lib/getcwd.c: New files.
17716 * lib/dirname.h: Include <stdbool.h>.
17717 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
17718 for consistency with POSIX terminology. All uses changed.
17719 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
17720 (strip_trailing_slashes): Use bool for booleans.
17721 * lib/stripslash.c (strip_trailing_slashes): Likewise.
17723 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
17724 sometimes returns a positive errno value even when it succeeds.
17725 (print_errno_message) [!LIBC]: Fall back on strerror if
17726 __strerror_r fails.
17728 * lib/path-concat.c (mempcpy): Don't define if a system header defines
17729 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
17730 (longest_relative_suffix): New function.
17731 (path_concat): Use it. Assume first argument is not NULL.
17732 Port to DOS. Omit redundant separators.
17733 Report an error instead of returning NULL.
17734 Use mempcpy instead of memcpy.
17735 (xpath_concat): Remove: not declared or used.
17737 * lib/same.h: Include <stdbool.h>
17738 (same_name): Return bool, not int.
17739 * lib/same.c (same_name): Likewise.
17740 (errno): Don't declare; we assume C89 or better now.
17742 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
17743 if not already defined.
17745 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
17746 * lib/dup-safer.c (errno): Likewise.
17748 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
17750 Merge from coreutils.
17751 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
17752 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
17753 * modules/path-concat: Don't depend on strdup.
17755 2004-08-03 Simon Josefsson <jas@extundo.com>
17757 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
17758 * lib/progname.h: Don't include stdbool.h.
17760 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
17762 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
17763 * MODULES.html.sh (func_all_modules): Remove fatal.
17765 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
17767 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
17769 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
17771 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
17774 2004-08-02 Simon Josefsson <jas@extundo.com>
17776 * lib/getsubopt.h: New file, with comments from Bruno Haible.
17777 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
17778 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
17780 2004-08-01 Simon Josefsson <jas@extundo.com>
17782 * lib/xgetdomainname.c: Include stdlib.h, for free().
17784 2004-07-19 Bruno Haible <bruno@clisp.org>
17786 * MODULES.html.sh (func_all_modules): Add dummy.
17788 2004-07-16 Simon Josefsson <jas@extundo.com>
17790 * modules/dummy: New file.
17792 2004-07-16 Simon Josefsson <jas@extundo.com>
17794 * lib/dummy.c: New file.
17796 2004-07-16 Bruno Haible <bruno@clisp.org>
17798 * lib/backupfile.h: Add extern "C" for C++.
17799 * lib/closeout.h: Likewise.
17800 * lib/copy-file.h: Likewise.
17801 * lib/findprog.h: Likewise.
17802 * lib/full-write.h: Likewise.
17803 * lib/pathname.h: Likewise.
17804 * lib/progname.h: Likewise.
17805 * lib/stpcpy.h: Likewise.
17806 * lib/stpncpy.h: Likewise.
17807 * lib/strcase.h: Likewise.
17808 * lib/strstr.h: Likewise.
17809 * lib/xalloc.h: Likewise.
17811 * lib/mbswidth.h: Add extern "C" for C++.
17812 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
17814 2004-07-13 Robert Millan <robertmh@gnu.org>
17816 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
17818 2004-07-09 Simon Josefsson <jas@extundo.com>
17820 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
17821 failed without this.)
17823 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
17825 * modules/chown (Files): Add lib/fchown-stub.c, since
17826 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
17828 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
17830 * lib/fchown-stub.c: New file.
17832 2004-06-24 Jim Meyering <jim@meyering.net>
17834 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
17836 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17838 * modules/argz: Omit "#include".
17840 * MODULES.html.sh (func_all_modules): Add calloc, to match
17841 2004-06-01 addition of calloc module.
17843 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17845 * m4/argz.m4: New file, which is autoupdated from libtool.
17847 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17849 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
17852 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17854 * config/srclist-update: Don't insist on "USA." before the
17855 close-comment, as libtool omits the period and puts the */ on a
17857 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
17858 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
17860 2004-06-22 Gary V. Vaughan <gary@gnu.org>
17862 * modules/argz: New file.
17863 * MODULES.html.sh (func_all_modules): Add argz.
17865 2004-06-12 Jim Meyering <jim@meyering.net>
17866 and Paul Eggert <eggert@cs.ucla.edu>
17868 * modules/hash (Files): Add lib/xalloc.h.
17869 * modules/pipe (Depends-on): Add wait-process.
17870 * modules/stat (Depends-on): Add xalloc.
17871 * modules/userspec (Files): Add lib/userspec.h.
17874 Upgrade from gettext-0.13.
17875 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
17876 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
17877 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
17879 2004-06-10 Jim Meyering <jim@meyering.net>
17881 * lib/calloc.c: New file.
17883 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
17885 * lib/getdate.y (yylex): Allow space between sign and number.
17886 Problem reported by Dan Jacobson.
17888 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
17890 Merge from coreutils CVS.
17892 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
17893 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
17894 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
17895 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
17896 xstrtol.m4: Fix copyright date and/or serial number.
17898 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
17899 See if we need an fchown replacement.
17900 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
17901 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
17902 and use the replacement function if we detect either defect.
17904 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
17907 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
17908 and Jim Meyering <jim@meyering.net>
17910 Merge from coreutils CVS.
17912 * lib/stat-macros.h: New file, with contents from file-type.h
17913 and coreutils' system.h.
17914 * lib/file-type.c: Include "stat-macros.h".
17915 * lib/file-type.h (file_type): Move all macro definitions to new file,
17918 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
17919 Wrap old code with this conditional.
17920 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
17921 function that does not dereference symlinks.
17922 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
17924 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
17925 dependency problems.
17926 (xreadlink): Accept new arg SIZE, for efficiency.
17927 All decls and uses changed.
17928 * lib/xreadlink.h: Include <stddef.h>, for size_t.
17930 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
17931 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
17933 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
17936 2004-06-01 Jim Meyering <jim@meyering.net>
17938 * m4/calloc.m4: New file.
17940 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
17942 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
17943 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
17944 Also, fix a typo in a diagnostic.
17946 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
17948 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
17949 or AC_FUNC_REALLOC.
17951 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
17953 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
17954 macros to be defined.
17955 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
17956 the allocator returns NULL because the requested size is zero.
17958 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
17960 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
17961 var. Add comment explaining why libc still defines it. This
17962 merges the following patch from glibc:
17963 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
17965 2004-05-20 Andreas Schwab <schwab@suse.de>
17967 * m4/free.m4: Replace free if it not known to work, not the other
17970 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
17972 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
17973 present in glibc since revision 1.1 of this file.
17974 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
17975 obstack_alignment_mask, obstack_alloc, obstack_base,
17976 obstack_blank, obstack_blank_fast, obstack_chunk_size,
17977 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
17978 obstack_grow0, obstack_init, obstack_int_grow,
17979 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
17980 obstack_next_free, obstack_object_size, obstack_ptr_grow,
17981 obstack_ptr_grow_fast, obstack_room): Remove declarations of
17982 nonexistent functions.
17984 2004-05-18 Karl Berry <karl@gnu.org>
17986 * config/srclist.txt: break link for vasnprintf.c.
17988 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
17990 Port obstack to the AS/400, where pointers are 16 bytes wide and
17991 you cannot cast an integer to a valid pointer. This patch is
17992 currently waiting to be integrated into glibc; see
17993 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
17995 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
17996 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
17997 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
17998 (struct obstack): temp member is now a union of a pointer and
17999 an integer, instead of an integer. All integer uses changed.
18000 This does not affect the physical layout of struct obstack,
18001 except on hosts (like the AS/400) where the size or alignment of
18002 void * is greater than that of ptrdiff_t.
18003 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
18004 __STDC__)]: Store temporary in pointer member of union, not
18006 * lib/obstack.c: Include <stddef.h>, for offsetof.
18007 (struct fooalign): Remove; it doesn't need a name.
18008 (union fooround): Change double to long double, and add void *.
18009 (DEFAULT_ALIGNMENT): Use offsetof to compute.
18010 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
18011 not a macro. Hence the values are always int; so remove all
18012 casts-to-int in uses.
18014 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
18016 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
18017 we can get this patch merged into glibc.
18019 2004-05-17 Derek R. Price <derek@ximbiot.com>
18020 Paul Eggert <eggert@cs.ucla.edu>
18022 * m4/argp: Depend on alloca.
18024 2004-05-17 Derek R. Price <derek@ximbiot.com>
18025 Paul Eggert <eggert@cs.ucla.edu>
18027 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
18030 2004-05-17 Bruno Haible <bruno@clisp.org>
18032 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
18033 precision that consists of a '.' followed by an empty digit string.
18034 Patch by Tor Lillqvist <tml@iki.fi>.
18036 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
18038 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
18039 for backward compatibility with older code. We need our own
18040 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
18041 it under some other name, and our alloca.h will define it.
18043 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
18044 Derek Price <derek@ximbiot.com>
18046 * lib/alloca.c: Include <alloca.h>, to get our interface.
18047 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
18048 include <alloca.h> first. Use C89 prototype for alloca; this
18049 requires including <stddef.h> for size_t. Use extern "C" if C++.
18050 Use #elif for simplicity, since we can assume C89 now.
18051 Don't try to source the system alloca.h since it will not be found
18052 and to prevent recursively including its replacement.
18053 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
18054 * lib/regex.c: Likewise.
18056 2004-05-16 Derek Price <derek@ximbiot.com>
18057 Paul Eggert <eggert@cs.ucla.edu>
18059 getline cleanup. This changes the getndelim2 API: both order of
18060 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
18063 * lib/getline.c: Don't include stddef.h or stdio.h, since our
18064 interface does that.
18065 (getline): Always use getdelim, so that we don't have two
18066 copies of this code.
18067 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
18069 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
18070 (GETNDELIM2_MAXIMUM): New macro.
18071 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
18072 instead of the old practice of delim2==0. All callers changed.
18073 Return -1 on overflow, instead of returning junk.
18074 Do not set *linesize unless allocation succeeds.
18075 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
18076 that we include sys/types.h.
18077 * lib/getnline.h: Likewise.
18078 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
18079 (getndelim2): Reorder arguments.
18080 * lib/getnline.c (getnline, getndelim):
18081 Don't discard the NMAX argument.
18082 (getnline): Invoke getndelim, to avoid code duplication.
18083 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
18084 of (size_t) -1 by callers of the getnline family.
18086 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
18088 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
18089 Check for gettimeofday.
18090 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
18091 Check for settimeofday, stime.
18093 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
18095 * lib/nanosleep.c (suspended): Change its type from int to
18096 sig_atomic_t volatile.
18097 (first_call): Make it private to rpl_nanosleep, and have it
18098 be zero initially as that's a bit faster.
18099 (my_usleep): Round up fractional times instead of truncating them,
18100 as this is the usual meaning for 'sleep'.
18102 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
18104 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
18105 (ENOSYS): Define if not defined.
18106 (settime): Fall back on stime if it exists and settimeofday fails.
18107 But don't bother with fallbacks if a method fails with errno == EPERM.
18109 2004-05-11 Jim Meyering <jim@meyering.net>
18111 Prior to this change, the save_cwd caller required read access to the
18112 current directory on most systems (ones with the fchdir function).
18114 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
18115 fails, try write-only, and finally, resort to using xgetcwd.
18117 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
18119 * lib/obstack.c, obstack.h: Import changes from libc.
18121 2004-04-28 Bruno Haible <bruno@clisp.org>
18123 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
18124 also implicitly appends .exe to executables.
18125 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
18126 accepts Windows pathnames.
18127 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18128 Treat Cygwin like Windows, since it now accepts Windows pathnames.
18129 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
18130 Treat Cygwin like Windows, since it now accepts Windows pathnames.
18131 Reported by Derek Robert Price <derek@ximbiot.com>.
18133 2004-04-21 Karl Berry <karl@gnu.org>
18135 * config/srclist.txt (localcharset.c): break sync.
18137 2004-04-20 Paul Eggert <eggert@twinsun.com>
18139 * m4/host-os.m4: Add a copyright notice.
18141 2004-04-20 Jim Meyering <jim@meyering.net>
18143 Change UTILS_ to gl_ in AC_DEFINE'd names.
18144 Change utils_- and jm_-prefixed variables, too.
18145 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
18146 UTILS_FUNC_MKDIR_TRAILING_SLASH.
18147 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
18149 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
18150 Don't emit trailing blanks.
18151 Also rename jm_-prefixed variables to have gl_ prefix.
18153 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
18154 Also rename jm_-prefixed variables to have gl_ prefix.
18156 * m4/jm-macros.m4: Reflect the renamings.
18157 * m4/prereq.m4: Likewise.
18159 2004-04-20 Jim Meyering <jim@meyering.net>
18161 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
18164 2004-04-20 Jim Meyering <jim@meyering.net>
18165 Bruno Haible <bruno@clisp.org>
18167 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
18168 memory when realloc fails.
18170 2004-04-19 Jim Meyering <jim@meyering.net>
18172 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
18173 now that readutmp.c may call `free (0)'.
18175 2004-04-19 Bruno Haible <bruno@clisp.org>
18177 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
18178 * m4/inttypes_h.m4: Likewise.
18179 * m4/stdint_h.m4: Likewise.
18180 * m4/intmax_t.m4: Likewise.
18181 * m4/uintmax_t.m4: Likewise.
18183 2004-04-18 Jim Meyering <jim@meyering.net>
18185 * m4/prereq.m4: Don't forbid jm_ prefix.
18187 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
18188 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
18189 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
18190 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
18191 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
18192 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
18193 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
18194 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
18195 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
18196 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
18197 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
18198 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
18199 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
18200 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
18201 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
18202 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
18203 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
18204 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
18205 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
18207 2004-04-18 Jim Meyering <jim@meyering.net>
18209 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
18210 failure, don't leak memory and do call END_UTMP_ENT.
18212 2004-04-16 Jim Meyering <jim@meyering.net>
18214 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
18215 coreutils' stat program.
18216 (gl_PREREQ): Don't require jm_PREREQ_STAT.
18218 2004-04-11 Paul Eggert <eggert@twinsun.com>
18220 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
18222 (CHAR_BIT): Remove, since we assume C89.
18223 Include <stdint.h> if available, as per current Autoconf CVS advice.
18225 2004-03-31 Jim Meyering <jim@meyering.net>
18227 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
18228 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
18229 * m4/xalloc.m4: Likewise.
18231 2004-03-30 Paul Eggert <eggert@twinsun.com>
18233 Merge from coreutils.
18235 * m4/inttostr.m4: New file.
18236 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
18237 Require AM_STDBOOL_H and gl_TIMESPEC instead.
18238 Require gl_CLOCK_TIME.
18239 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
18241 2004-03-30 Paul Eggert <eggert@twinsun.com>
18243 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
18244 not bool, to be more consistent with Unix conventions.
18245 Suggested by Bruno Haible.
18247 Merge from coreutils.
18249 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
18250 * lib/umaxtostr.c: New files.
18252 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
18253 the usual <time.h> dance.
18254 (get_date): Change signature to support fractional time stamps.
18255 All callers changed.
18256 * lib/getdate.y: Include "getdate.h" first, as we can now
18257 assume C89 and don't need to worry about 'const'.
18258 Similarly, include "unlocked-io.h" near start, not in middle.
18259 Include <limits.h>.
18260 (textint.value): Use long int rather than int.
18261 (textint.digits): Use size_t rather than int.
18262 (BILLION, LOG10_BILLION): New constants.
18263 (parser_control): New member rel_ns. Members day_ordinal,
18264 time_zone, month, day, hour, minutes, rel_year, rel_month,
18265 rel_day, rel_hour, rel_minutes, rel_seconds
18266 are now long int, not int. Member seconds is now struct timespec,
18267 not int. New member timespec_seen. Members dates_seen, days_seen,
18268 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
18270 (%union.intval): Now long int, not int.
18271 New member timespec.
18272 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
18273 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
18274 (spec): Now is a timespec or an item list.
18275 (timespec, items): New nonterminals.
18276 (time, rel, relunit, number, get_date):
18277 Add support for fractional seconds.
18278 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
18279 (gmtime, localtime, mktime): Remove decls; not needed with C89.
18280 (to_hour): First arg is now long int, not int.
18281 (to_year): Returns long int, not int.
18282 Don't treat year -70 like 70.
18283 (tm_diff): Returns long int, not int.
18284 (lookup_word): Use bool instead of int when appropriate.
18285 (yylex): Use size_t for count, not int.
18286 Detect overflow when parsing large integer constants.
18287 Add support for fractions.
18288 (get_date): Make pointers 'const' if possible.
18289 Use more-portable code to detect integer overflow.
18290 (main) [TEST]: Adjust to above changes. Test for localtime failure.
18291 Don't use ctime; it's not reliable if the year has >4 digits.
18293 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
18294 This is for compatibility with BSD.
18296 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
18297 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
18298 From coreutils' system.h.
18300 * lib/userspec.c: Don't include "posixver.h".
18301 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
18302 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
18303 compatible extension. Simplify code by removing a boolean int
18304 that was always nonzero if a string was nonnull.
18306 2004-03-30 Jim Meyering <jim@meyering.net>
18308 Merge from coreutils.
18310 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
18311 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
18312 on some systems one must include <grp.h> before it.
18313 Reported by Christian Krackowizer.
18315 2004-03-30 Jim Meyering <jim@meyering.net>
18317 Merge from coreutils.
18319 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
18321 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
18322 an empty input stream.
18324 * lib/readtokens.c: Include <stdbool.h>.
18325 (readtoken): Use `size_t' rather than int/long.
18326 All callers adjusted.
18327 Use `bool' rather than `int' where appropriate.
18328 Use memset rather than an explicit loop.
18329 Use x2nrealloc rather than xrealloc.
18330 Allow the use of `\0' as a delimiter.
18331 (readtokens): Likewise.
18332 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
18334 2004-03-30 Jim Meyering <jim@meyering.net>
18336 * m4/realloc.m4: Remove file, since now it does no more than
18337 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
18338 the `configure.ac' section of module/realloc.
18339 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
18341 2004-03-30 Bruno Haible <bruno@clisp.org>
18343 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
18346 2004-03-29 Paul Eggert <eggert@twinsun.com>
18348 Merge changes to getloadavg.c from coreutils and Emacs.
18350 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
18351 Define to an expression, not to the empty string.
18352 Include cloexec.h and xalloc.h.
18353 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
18354 Use set_cloexec_flag rather than rolling our own.
18355 * lib/cloexec.c, lib/cloexec.h: New files.
18357 2004-03-29 Paul Eggert <eggert@twinsun.com>
18359 * m4/cloexec.m4: New file.
18361 2004-03-18 Paul Eggert <eggert@twinsun.com>
18363 * lib/getopt.h: Sync with libc CVS.
18365 2004-03-18 Paul Eggert <eggert@twinsun.com>
18366 Bruno Haible <bruno@clisp.org>
18368 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
18371 2004-03-18 Paul Eggert <eggert@twinsun.com>
18372 Bruno Haible <bruno@clisp.org>
18374 * lib/mbswidth.h: Include <wchar.h> only if
18375 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
18377 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
18379 2004-03-09 Paul Eggert <eggert@twinsun.com>
18381 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
18382 Sync with libc CVS.
18383 * lib/getopt_int.h: New file, also synced from libc.
18385 2004-03-09 Paul Eggert <eggert@twinsun.com>
18387 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
18388 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
18389 Bring back getopt.c, getopt.h, getopt1.c.
18391 2004-03-07 Paul Eggert <eggert@twinsun.com>
18393 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
18394 All uses changed. Check for sa_sigaction member; this fixes
18395 a bug first reported by Jason Andrade in
18396 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
18398 2004-03-07 Paul Eggert <eggert@twinsun.com>
18400 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
18401 '#if' expressions. Unlike the code it replaces, it does not
18402 depend on (defined _SC_PAGESIZE). However, it does depend on
18403 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
18404 first reported by Jason Andrade in
18405 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
18407 2004-02-25 Simon Josefsson <jas@extundo.com>
18409 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
18411 2004-02-25 Simon Josefsson <jas@extundo.com>
18413 * lib/strdup.h: New file.
18414 * lib/strdup.c: Include it.
18415 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
18416 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
18418 2004-02-23 Karl Berry <karl@gnu.org>
18420 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
18421 (from fencepost.gnu.org:/gd/gnuorg).
18423 2004-02-23 Karl Berry <karl@gnu.org>
18425 * config/srclistvars.sh (GNUORG) [karl]: redefine.
18426 * config/srclist.txt: add maintain/standards documents.
18428 2004-02-18 Bruno Haible <bruno@clisp.org>
18430 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
18431 Reported by Derek Robert Price <derek@ximbiot.com>.
18433 2004-02-16 Karl Berry <karl@gnu.org>
18435 * config/mkinstalldirs, install-sh: update from automake.
18437 2004-02-06 Karl Berry <karl@gnu.org>
18439 * m4/po.m4: update from gettext 0.14.1.
18441 2004-02-06 Karl Berry <karl@gnu.org>
18443 * lib/config.charset: update from gettext 0.14.1.
18445 2004-02-05 Paul Eggert <eggert@twinsun.com>
18447 Add comments and code, prompted by suggestions from Bruno Haible
18449 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
18450 describing the enum quoting_style values.
18451 * lib/quotearg.c (quotearg_alloc): New function.
18452 (quotearg_buffer_restyled): Treat lone { and } as special.
18453 Treat = as special. Work around bug with older shells
18454 that "see" a '\' that is really the 2nd byte of a multibyte char.
18455 Quote empty string with shell_quoting_style.
18457 2004-02-03 Bruno Haible <bruno@clisp.org>
18459 * m4/pipe.m4: New file, from GNU gettext.
18461 2004-02-03 Bruno Haible <bruno@clisp.org>
18463 * lib/pipe.h: New file, from GNU gettext.
18464 * lib/pipe.c: New file, from GNU gettext.
18466 2004-01-27 Bruno Haible <bruno@clisp.org>
18468 * m4/execute.m4: New file, from GNU gettext.
18470 2004-01-27 Bruno Haible <bruno@clisp.org>
18472 * lib/execute.h: New file, from GNU gettext.
18473 * lib/execute.c: New file, from GNU gettext.
18474 * lib/w32spawn.h: New file, from GNU gettext.
18476 2004-01-24 Paul Eggert <eggert@twinsun.com>
18478 Merge from diffutils.
18480 * lib/file-type.c (file_type): Add typed memory objects.
18481 * lib/file-type.h (S_TYPEISTMO): New macro.
18483 * lib/c-stack.h (c_stack_action): Remove argv argument.
18484 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
18485 (die): Don't calculate message unless segv_action returns.
18486 (get_stack_location, min_address_from_argv, max_address_from_argv,
18487 volatile stack_base, volatile_stack_size): Remove.
18488 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
18489 that every segmentation violation is a stack overflow. (Ouch!)
18490 See Debian bug 136249 (still outstanding) for more info about why
18491 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
18493 2004-01-24 Paul Eggert <eggert@twinsun.com>
18495 Exit-status fix from coreutils.
18497 Use exit_failure consistently in place of EXIT_FAILURE,
18498 so that program exit statuses are consistent on failure.
18500 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
18501 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
18502 * lib/argmatch.h: Comment fix to match the above.
18503 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
18504 Now a macro referring to exit_failure, instead of a separate
18505 variable. Include "exitfail.h" to get it.
18506 * lib/xstrtol.h: Include "exitfail.h".
18507 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
18509 * lib/long-options.c (parse_long_options): Use prototype
18510 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
18513 2004-01-21 Jim Meyering <jim@meyering.net>
18515 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
18516 so as not to conflict with a different-sized __mktime_internal
18517 function in GNU libc.
18518 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
18519 Problem building statically-linked `ls' reported by Michael Brunnbauer.
18521 2004-01-20 Karl Berry <karl@gnu.org>
18523 * config/config.guess: update from config.
18525 * config/srclistvars.sh: GNUWWWLICENSES for karl.
18527 2004-01-20 Bruno Haible <bruno@clisp.org>
18529 Safer stack allocation.
18530 * lib/setenv.c: Include allocsa.h.
18531 (alloca): Remove fallback definition.
18532 (freea): Remove macro.
18533 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
18536 2004-01-20 Bruno Haible <bruno@clisp.org>
18538 * m4/eealloc.m4: New file, from GNU gettext.
18540 2004-01-20 Bruno Haible <bruno@clisp.org>
18542 * m4/allocsa.m4: New file, from GNU gettext.
18544 2004-01-20 Bruno Haible <bruno@clisp.org>
18546 * lib/xallocsa.h: New file, from GNU gettext.
18547 * lib/xallocsa.c: New file, from GNU gettext.
18549 2004-01-20 Bruno Haible <bruno@clisp.org>
18551 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
18553 2004-01-20 Bruno Haible <bruno@clisp.org>
18555 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
18556 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
18559 2004-01-20 Bruno Haible <bruno@clisp.org>
18561 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
18564 2004-01-20 Bruno Haible <bruno@clisp.org>
18566 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
18568 2004-01-20 Bruno Haible <bruno@clisp.org>
18570 * lib/eealloc.h: New file.
18572 2004-01-20 Bruno Haible <bruno@clisp.org>
18574 * lib/binary-io.h: Avoid warnings on Cygwin.
18576 2004-01-20 Bruno Haible <bruno@clisp.org>
18578 * lib/allocsa.h: New file, from GNU gettext.
18579 * lib/allocsa.c: New file, from GNU gettext.
18581 2004-01-18 Karl Berry <karl@gnu.org>
18583 * doc/gpl.texi, doc/lgpl.texi: new files.
18585 2004-01-18 Karl Berry <karl@gnu.org>
18587 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
18588 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
18590 2004-01-15 Paul Eggert <eggert@twinsun.com>
18592 Merge from coreutils.
18594 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
18595 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
18596 (gl_DEFAULT_POSIX2_VERSION): Move
18597 the documentation from 'configure' into 'config.hin',
18598 so that 'configure --help' isn't burdened by it and
18599 we don't have to worry about its formatting there.
18600 Reword the documentation so that it's more succinct
18601 and can be run together into a single paragraph.
18602 * m4/same.m4 (gl_SAME): Check for pathconf.
18604 2004-01-15 Paul Eggert <eggert@twinsun.com>
18606 Merge from coreutils.
18608 * lib/posixver.c: Include posixver.h.
18610 * lib/same.c: Include <stdbool.h>, <limits.h>.
18611 (_POSIX_NAME_MAX): Define if not defined.
18613 (same_name): If file names are silently truncated, report
18614 that the file names are the same if they are the same after
18615 the silent truncation.
18617 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
18618 conversion function.
18619 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
18620 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
18623 2004-01-15 Jim Meyering <jim@meyering.net>
18625 Merge from coreutils.
18627 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
18628 if no library is required.
18629 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
18630 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
18631 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
18632 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
18633 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
18634 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
18635 value, $ac_cv_search_crypt, if it's "none required".
18636 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
18637 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
18638 not gl_FUNC_GETLOADAVG.
18639 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
18640 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
18642 2004-01-15 Jim Meyering <jim@meyering.net>
18644 Merge from coreutils.
18646 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
18647 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
18648 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
18650 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
18651 optional configure-time default.
18653 * lib/version-etc.c (version_etc_copyright): Update copyright date.
18655 * lib/xreadlink.c (xreadlink): Correct outdated comment.
18657 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
18659 Merge from coreutils.
18661 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
18662 value, $ac_cv_search_nanosleep, if it's "none required".
18664 2004-01-14 Paul Eggert <eggert@twinsun.com>
18666 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
18667 with like-named macro in fnmatch.c.
18668 (EXT): Use an internal constant instead.
18670 Merge fnmatch patches from glibc.
18671 * lib/fnmatch.c (mbsinit): Remove define.
18672 Add libc_hidden_ver (__fnmatch, fnmatch).
18673 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
18674 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
18676 2004-01-14 Karl Berry <karl@gnu.org>
18678 * config/install-sh: update from automake.
18680 2004-01-13 Karl Berry <karl@gnu.org>
18682 * config/install-sh: update from automake.
18684 2004-01-09 Karl Berry <karl@gnu.org>
18686 * config/install-sh: update from automake.
18688 2004-01-05 Karl Berry <karl@gnu.org>
18690 * config/config.{sub,guess}: update from config.
18692 2003-12-31 Karl Berry <karl@gnu.org>
18694 * config/depcomp: update from automake.
18696 2003-12-14 Karl Berry <karl@gnu.org>
18698 * lib/config.charset: update from gettext-runtime.
18700 2003-12-03 Paul Eggert <eggert@twinsun.com>
18702 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
18703 Bug reported by Alfred M. Szmidt.
18705 2003-12-03 Bruno Haible <bruno@clisp.org>
18707 * m4/gettext.m4: Upgrade from gettext-0.13.
18708 * m4/po.m4: Upgrade from gettext-0.13.
18709 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
18710 * m4/intmax.m4: New file, from gettext-0.13.
18711 * m4/printf-posix.m4: New file, from gettext-0.13.
18713 2003-11-29 Karl Berry <karl@gnu.org>
18715 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
18717 2003-11-25 Paul Eggert <eggert@twinsun.com>
18718 Bruno Haible <bruno@clisp.org>
18720 * lib/printf-parse.h: Don't include sys/types.h.
18721 (ARG_NONE): New macro.
18722 (char_directive): Change type of *arg_index fields to size_t.
18723 * lib/printf-parse.c: Don't include sys/types.h.
18724 (SSIZE_MAX): Remove macro.
18725 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
18726 Remove unnecessary overflow check.
18727 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
18730 2003-11-25 Bruno Haible <bruno@clisp.org>
18732 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
18734 2003-11-25 Bruno Haible <bruno@clisp.org>
18736 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
18739 2003-11-24 Paul Eggert <eggert@twinsun.com>
18741 * modules/alloca: Remove dependency on xalloc.
18743 2003-11-24 Paul Eggert <eggert@twinsun.com>
18745 * lib/alloca.c: Remove dependency on xalloc module.
18746 (xalloc_die): Remove.
18747 (memory_full) [!defined emacs]: New macro.
18748 [!defined emacs]: Don't include xalloc.h.
18749 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
18750 address arithmetic overflows. Change datatypes a bit to avoid
18753 2003-11-22 Jim Meyering <jim@meyering.net>
18755 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
18758 2003-11-21 Karl Berry <karl@gnu.org>
18760 * config/config.{sub,guess}: update from config.
18762 2003-11-18 Karl Berry <karl@gnu.org>
18764 * config/config.{sub,guess}: update from config.
18766 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
18768 2003-11-17 Paul Eggert <eggert@twinsun.com>
18770 * README: Mention that S+T cannot overflow if S is the size of
18771 an existing object and T is sufficiently small.
18773 2003-11-17 Jim Meyering <jim@meyering.net>
18775 On systems without utime and without a utimes function capable of
18776 dealing with a NULL struct utimbuf* argument, this utime replacement
18777 could -- in unusual circumstances -- leak a file descriptor.
18778 * lib/utime.c: Include <unistd.h> and <errno.h>.
18779 (utime_null): Be sure to close `fd' and to preserve errno.
18780 Reported by Geoff Collyer via Arnold Robbins.
18782 2003-11-17 Bruno Haible <bruno@clisp.org>
18784 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
18785 (Depends-on): Add xsize.
18787 2003-11-17 Bruno Haible <bruno@clisp.org>
18789 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
18791 2003-11-17 Bruno Haible <bruno@clisp.org>
18793 * lib/vasnprintf.c (alloca): Remove fallback definition.
18794 (freea): Remove definition.
18795 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
18796 Reported by Paul Eggert.
18798 2003-11-16 Paul Eggert <eggert@twinsun.com>
18799 Bruno Haible <bruno@clisp.org>
18801 Protect against address arithmetic overflow.
18802 * lib/printf-args.h: Include stddef.h.
18803 (arguments): Change type of field 'count' to size_t.
18804 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
18805 'unsigned int' where appropriate.
18806 * lib/printf-parse.h: Include sys/types.h.
18807 (char_directive): Change type of *arg_index fields to ssize_t.
18808 (char_directives): Change type of fields 'count', max_*_length to
18810 * lib/printf-parse.c: Include sys/types.h and xsize.h.
18811 (SSIZE_MAX): Define fallback value.
18812 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
18813 instead of 'int' where appropriate. Check a_allocated, d_allocated
18814 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
18815 * lib/vasnprintf.c: Include xsize.h.
18816 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
18817 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
18818 overflow. Avoid wraparound when converting a width or precision from
18821 2003-11-16 Bruno Haible <bruno@clisp.org>
18823 Update from GNU gettext.
18824 * lib/printf-parse.c: Generalize to it can be compiled for wide
18826 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
18827 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
18828 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
18829 SNPRINTF): New macros.
18830 Don't include <alloca.h> if the file is used inside libintl.
18831 (local_wcslen): New function, for Solaris 2.5.1.
18832 (VASNPRINTF): Use it instead of wcslen.
18834 2003-11-16 Bruno Haible <bruno@clisp.org>
18836 * lib/xsize.h (xmax): New function.
18837 (xsum, xsum3, xsum4): Declare as "pure" functions.
18839 2003-11-12 Paul Eggert <eggert@twinsun.com>
18841 * modules/xalloc (Files): Undo latest change, since xalloc.h
18842 no longer needs SIZE_MAX or PTRDIFF_MAX.
18844 2003-11-12 Paul Eggert <eggert@twinsun.com>
18846 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
18849 2003-11-12 Paul Eggert <eggert@twinsun.com>
18851 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
18852 "return", to pacify some unknown compiler. Problem reported
18853 by Joerg Schilling.
18855 2003-11-12 Paul Eggert <eggert@twinsun.com>
18857 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
18858 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
18859 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
18860 heuristic is just as accurate as far as we know, and it removes a
18861 dependency on size_max.m4 and ptrdiff_max.m4.
18863 2003-11-11 Bruno Haible <bruno@clisp.org>
18865 * modules/xsize (Files): Add m4/size_max.m4.
18866 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
18868 2003-11-11 Bruno Haible <bruno@clisp.org>
18870 * m4/size_max.m4: New file.
18871 * m4/ptrdiff_max.m4: New file.
18872 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
18873 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
18874 (gl_XALLOC): Invoke it.
18876 2003-11-11 Bruno Haible <bruno@clisp.org>
18878 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
18879 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
18882 2003-11-10 Paul Eggert <eggert@twinsun.com>
18884 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
18885 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
18886 rejected some allocations of exactly SIZE_MAX - 2 bytes.
18888 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
18889 not (size_t) -1, since it's defined here.
18891 2003-11-09 Karl Berry <karl@gnu.org>
18893 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
18895 2003-11-06 Paul Eggert <eggert@twinsun.com>
18897 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
18898 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
18899 Reject sizes of exactly SIZE_MAX bytes.
18900 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
18901 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
18903 2003-11-05 Bruno Haible <bruno@clisp.org>
18905 * lib/xsize.h: Include limits.h, to avoid a possible collision with
18906 SIZE_MAX defined in <limits.h> on Solaris.
18908 2003-11-04 Jim Meyering <jim@meyering.net>
18910 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
18911 variable names, rather than @VAR@.
18912 * modules/poll: Likewise.
18914 2003-11-04 Bruno Haible <bruno@clisp.org>
18916 * modules/xsize: New file.
18917 * modules/linebreak: Depend on xsize.
18918 * MODULES.html.sh (func_all_modules): Add xsize.
18920 2003-11-04 Bruno Haible <bruno@clisp.org>
18922 * m4/xsize.m4: New file.
18924 2003-11-04 Bruno Haible <bruno@clisp.org>
18926 * lib/xsize.h: New file.
18927 * lib/linebreak.c: Include xsize.h.
18928 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
18929 argument for overflow.
18930 Suggested by Paul Eggert.
18932 2003-11-03 Karl Berry <karl@gnu.org>
18934 * config/config.{guess,sub}: update from config.
18936 2003-11-03 Jim Meyering <jim@meyering.net>
18938 * modules/userspec (lib_SOURCES): Add userspec.h.
18939 (Include): Add "userspec.h".
18940 Improve description.
18942 2003-11-03 Jim Meyering <jim@meyering.net>
18944 * lib/userspec.c: Include "userspec.h".
18945 * lib/userspec.h: New file.
18947 2003-11-03 Bruno Haible <bruno@clisp.org>
18949 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
18951 2003-11-03 Bruno Haible <bruno@clisp.org>
18953 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
18954 available, to avoid (extremely rare) race condition.
18955 Suggested by Paul Eggert.
18957 2003-11-02 Karl Berry <karl@gnu.org>
18959 * config/srclist.txt (vasprintf.c): sync broken, sigh.
18961 2003-10-31 Paul Eggert <eggert@twinsun.com>
18963 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
18964 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
18965 (read_filesystem_list): Set and use me_type_malloced.
18966 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
18967 whatever the type happens to be), for brevity and consistency.
18968 Check for size calculation overflow on Alphas running OSF/1.
18970 2003-10-31 Jim Meyering <jim@meyering.net>
18972 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
18974 * lib/linebuffer.c: Include <string.h> for declaration of memset.
18976 2003-10-30 Paul Eggert <eggert@twinsun.com>
18977 Bruno Haible <bruno@clisp.org>
18979 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
18980 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
18982 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
18984 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
18985 netbsd*-gnu*. Suggested by Robert Millan.
18987 2003-10-29 Paul Eggert <eggert@twinsun.com>
18989 * modules/group-member: Depend on stdbool.
18991 2003-10-29 Paul Eggert <eggert@twinsun.com>
18993 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
18995 2003-10-29 Paul Eggert <eggert@twinsun.com>
18997 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
18998 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
18999 after the 'gnu' in these cases. This fixes some bugs in the
19000 previous change, and is based on suggestions by Robert Millan.
19002 2003-10-29 Paul Eggert <eggert@twinsun.com>
19004 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
19005 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
19007 * lib/quotearg.c (quotearg_n_options): Use it.
19008 * lib/group-member.c: Include <stdbool.h>.
19009 (free_group_info): Arg is now const *; don't free arg.
19010 (get_group_info): Now returns bool and accepts struct group_info *,
19011 rather than returning a malloc'ed struct group_info *.
19012 All uses changed. Check for overflow in internal size calculation.
19014 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
19015 rather than xmalloc/xrealloc.
19016 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
19017 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
19018 conformance bug: the old code used a pointer after freeing the
19019 storage that it addressed.
19020 * lib/hash.c (hash_initialize): Simplify the code by using
19021 xalloc_oversized rather than doing it by hand.
19022 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
19023 the buffer preserved. Use free and xmalloc instead.
19024 * lib/quotearg.c (quotearg_n_options): Likewise.
19025 Use a simpler test for size overflow. Don't use xalloc_oversized
19026 because unsigned int might be wider than size_t (!); this suggests
19027 that we should switch from unsigned int to size_t for slot numbers.
19029 2003-10-28 Paul Eggert <eggert@twinsun.com>
19031 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
19032 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
19033 NetBSD kernels. Requested by Richard Stallman.
19035 2003-10-27 Paul Eggert <eggert@twinsun.com>
19037 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
19038 to allocate the returned structure. Do not allocate a subarray,
19039 as x2nrealloc will do that.
19040 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
19041 instead of xnrealloc.
19042 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
19044 2003-10-27 Bruno Haible <bruno@clisp.org>
19046 * lib/stdbool_.h: Better support for BeOS.
19048 2003-10-26 Paul Eggert <eggert@twinsun.com>
19050 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
19053 2003-10-26 Paul Eggert <eggert@twinsun.com>
19055 * lib/xalloc.h (xalloc_oversized): New static inline function, for
19056 callers that want to do their own size-overflow checking. Include
19057 <stdbool.h>, since xalloc_oversized returns bool.
19058 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
19059 to use xalloc_oversized.
19061 Add two functions x2realloc, x2nrealloc, for programs that grow
19062 arrays dynamically by doubling their sizes.
19063 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
19064 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
19067 Port to C99 semantics for 'inline' of external functions.
19068 Bug reported by Bruno Haible.
19069 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
19070 with the old contents of xnmalloc.
19071 (xnmalloc, xmalloc): Use it.
19072 (xnrealloc_inline): New static inline function,
19073 with the old contents of xnrealloc.
19074 (xnrealloc, xrealloc): Use it.
19076 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
19079 2003-10-26 Karl Berry <karl@gnu.org>
19081 * config/srclist.txt (COPYING.DOC): no longer available from
19082 /gd/gnuorg; don't know where the ultimate source is.
19084 2003-10-25 Paul Eggert <eggert@twinsun.com>
19086 Fix several address-calculation bugs in the hash modules,
19087 plus some minor code cleanup.
19089 * lib/hash.h: Include <stdbool.h>, for bool.
19090 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
19091 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
19092 hash_get_n_entries, hash_get_max_bucket_length,
19093 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
19094 hash_rehash): Use size_t rather than unsigned.
19095 * lib/hash.c (struct hash_table, hash_get_n_buckets,
19096 hash_get_n_buckets_used, hash_get_n_entries,
19097 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
19098 hash_get_entries, hash_do_for_each, hash_string, is_prime,
19099 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
19101 (SIZE_MAX): Define if not defined.
19102 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
19103 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
19105 Use const * when possible.
19106 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
19107 (check_tuning): Fix bug: if tuning parameters were very close to
19108 0 or 1, rounding errors could have caused subscript violations.
19109 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
19110 (hash_initialize): Add 'fail:' label
19111 to free table and return NULL, and use it to simplify code.
19112 Use calloc rather than clearing the storage ourself.
19113 (hash_initialize, hash_rehash): Check for arithmetic overflow in
19114 buffer size calculations.
19115 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
19116 Include <stddef.h>, for size_t.
19117 * lib/hash-pjw.c (hash_pjw): Likewise.
19118 Switch to method described by Bruno Haible.
19119 Include <limits.h>, for CHAR_BIT.
19120 (SIZE_BITS): New macro.
19122 2003-10-23 Paul Eggert <eggert@twinsun.com>
19124 * m4/getline.m4 (AM_FUNC_GETLINE):
19125 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
19126 hosts. Problem reported by Derek Robert Price in
19127 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
19128 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
19129 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
19131 2003-10-21 Paul Eggert <eggert@twinsun.com>
19133 * lib/getndelim2.c (getndelim2): When size calculation overflows,
19134 ceiling the allocation at NMAX bytes rather than silently
19135 discarding input bytes before NMAX is reached. This makes
19136 a difference only if NMAX exceeds SIZE_MAX / 2.
19138 * lib/obstack.c: Merge from glibc.
19139 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
19140 Add libc_hidden_def (_obstack_newchunk).
19141 (_obstack_free) [! defined _LIBC]: Remove.
19142 [defined _LIBC]: Make a strong alias from obstack_free, rather than
19143 a clone of the function body.
19144 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
19145 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
19147 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
19149 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
19152 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
19153 (obstack_ptr_grow_fast, obstack_int_grow_fast):
19154 Don't use lvalue casts, as GCC plans to remove support for them
19155 in GCC 3.5. Reported by Joseph S. Myers. This bug
19156 was also present in the non-GCC version, indicating that this
19157 code had always been buggy and had never been widely used.
19158 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
19159 Use the fast variant of each macro, rather than copying the
19160 definiens of the fast variant; that way, we'll be more likely to
19161 catch future bugs in the fast variants.
19163 2003-10-20 Bruno Haible <bruno@clisp.org>
19165 * modules/wait-process: New file.
19166 * MODULES.html.sh (func_all_modules): Add wait-process.
19168 2003-10-20 Bruno Haible <bruno@clisp.org>
19170 * m4/wait-process.m4: New file.
19172 2003-10-20 Bruno Haible <bruno@clisp.org>
19174 * lib/wait-process.h: New file, from GNU gettext.
19175 * lib/wait-process.c: New file, from GNU gettext.
19177 2003-10-19 Jim Meyering <jim@meyering.net>
19179 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
19182 2003-10-18 Karl Berry <karl@gnu.org>
19184 * config/config.guess: update from config.
19186 2003-10-16 Paul Eggert <eggert@twinsun.com>
19188 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
19189 (getgroups): First arg is int, not size_t.
19190 Don't let 'free' mangle errno.
19192 2003-10-16 Paul Eggert <eggert@twinsun.com>
19194 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
19196 2003-10-16 Karl Berry <karl@gnu.org>
19198 * config/config.{guess,sub}: update from config.
19200 2003-10-16 Jim Meyering <jim@meyering.net>
19202 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
19205 2003-10-15 Paul Eggert <eggert@twinsun.com>
19207 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
19208 (SIZE_MAX): Remove.
19209 (new_exclude, add_exclude_file): Initial size no longer needs to
19211 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
19212 our own address arithmetic overflow checking.
19214 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
19215 (fnmatch): Do not alloca more than 2000 wide characters;
19216 instead, use malloc for large buffers.
19217 Check for address arithmetic overflow, and return -1
19218 with errno set to ENOMEM in that case.
19219 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
19220 (NEW_PATTERN): Do not alloca more than 8000 bytes;
19221 instead, return -1. Check for address arithmetic overflow.
19223 2003-10-14 Paul Eggert <eggert@twinsun.com>
19225 Handle invalid suffixes and overflow independently, so that
19226 callers can treat them independently as needed. Fix some bugs in
19227 suffix handling, e.g., "100k@" was not diagnosed as an invalid
19228 suffix for a human-readable blocksize. The major caller-visible
19229 change is the addition of a new
19230 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
19231 that both overflow and suffix chars were found.
19233 * lib/human.c (humblock): Don't check separately for invalid suffix
19234 char; that is xstrtoumax's job (now that its bug is fixed).
19235 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
19236 INTMAX_MAX]: New macros.
19237 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
19238 TYPE_MAXIMUM): New macros.
19239 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
19240 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
19241 if overflow occurs, as it's what __strtol does and it's more useful
19243 (__xstrtol): If __strtol reports some error other than ERANGE,
19244 reflect it to the caller as LONGINT_INVALID. If it reports
19245 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
19246 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
19247 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
19249 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
19250 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
19251 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
19252 [defined UINTMAX_MAX]: New macros.
19254 2003-10-14 Bruno Haible <bruno@clisp.org>
19256 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
19258 2003-10-14 Bruno Haible <bruno@clisp.org>
19260 * m4/sig_atomic_t: New file, from GNU gettext.
19261 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
19263 2003-10-14 Bruno Haible <bruno@clisp.org>
19265 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
19266 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
19267 Also use volatile where needed.
19269 2003-10-12 Paul Eggert <eggert@twinsun.com>
19271 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
19272 Change maintainer from Bruno Haible to 'all'.
19274 2003-10-12 Paul Eggert <eggert@twinsun.com>
19276 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
19278 2003-10-12 Paul Eggert <eggert@twinsun.com>
19280 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
19281 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
19282 and define in terms of the other primitives.
19283 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
19284 (SIZE_MAX): Define if not already defined.
19285 (array_size_overflow): New function.
19286 (xalloc_die): Abort instead of exiting if 'error' returns.
19287 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
19288 (xmalloc, xrealloc): Use them.
19289 (xcalloc): Check for address arithmetic overflow.
19290 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
19291 a bit faster than strcpy.
19293 2003-10-10 Simon Josefsson <jas@extundo.com>
19295 * modules/argp (Depends-on): Add restrict and strcase.
19297 2003-10-10 Simon Josefsson <jas@extundo.com>
19299 * m4/argp.m4: Add AC_C_INLINE.
19301 2003-10-08 Paul Eggert <eggert@twinsun.com>
19303 Merge getpass from libc, plus a few fixes.
19305 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
19306 Include <stdbool.h>.
19307 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
19308 __fsetlocking to empty.
19309 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
19310 do include <bits/libc-lock.h>.
19311 Do not include <fcntl.h>; not needed.
19312 [_LIBC]: Include <wchar.h>.
19313 (NOTCANCEL_MODE): New macro.
19314 (flockfile, funlockfile) [_LIBC]: New macros.
19315 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
19316 [!_LIBC]: New macros.
19317 (call_fclose): New function.
19318 (getpass): Use it. Save tty stream separately; this simplifies the
19319 code and makes it more reliable if stdin happens to equal stdout.
19320 Invoke __fsetlocking on tty.
19321 Handle thread cancellation if needed.
19322 Namespace cleanup (use __tcgetattr, __getline).
19323 Use bool for Booleans.
19324 [USE_IN_LIBIO]: Handle wide streams.
19325 [!_LIBC]: Unconditionally do the fseek, since we don't know what
19326 stream might go where.
19328 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
19329 doesn't have to include <stdio.h> before us.
19330 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
19331 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
19332 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
19333 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
19334 if not declared, so that we can use getpass.c code from libc without
19336 (flockfile, ftrylockfile, funlockfile): New macros.
19338 2003-10-08 Paul Eggert <eggert@twinsun.com>
19340 * modules/getpass: Depend on stdbool.
19342 2003-10-08 Paul Eggert <eggert@twinsun.com>
19344 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
19346 2003-10-07 Karl Berry <karl@gnu.org>
19348 * config/config.{guess,sub}: update from config.
19350 2003-10-06 Jim Meyering <jim@meyering.net>
19351 Bruno Haible <bruno@clisp.org>
19353 This lets translators provide better translations for the
19354 "Written by ..." part of --version output.
19355 * lib/version-etc.h: Include stdarg.h.
19356 (version_etc_copyright): Declare as readonly.
19357 (version_etc): Make this function variadic with a NULL-terminated list
19358 of author name strings.
19359 (version_etc_va): New declaration.
19360 * lib/version-etc.c: Include stdarg.h, stdlib.h.
19361 (version_etc_copyright): Declare as readonly.
19362 (version_etc_va): New function. Provide a different translatable string
19363 for each possible number of authors < 10. Abbreviate when there are 10
19365 (version_etc): Make this function variadic. Call version_etc_va.
19366 Suggestion from Gary V. Vaughan.
19368 * lib/long-options.h (parse_long_options): Change prototype: the
19369 authors string is moved to the end and becomes variadic.
19370 * lib/long-options.c: Include stdarg.h.
19371 (parse_long_options): Make this function variadic, too.
19372 Call version_etc_va, not version_etc.
19374 2003-10-06 Bruno Haible <bruno@clisp.org>
19376 * modules/version-etc-2: Remove file.
19377 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
19379 2003-10-06 Bruno Haible <bruno@clisp.org>
19381 * modules/fatal-signal: New file.
19382 * MODULES.html.sh (func_all_modules): Add fatal-signal.
19384 2003-10-06 Bruno Haible <bruno@clisp.org>
19386 * m4/fatal-signal.m4: New file.
19387 * m4/signalblocking.m4: New file, from GNU gettext.
19389 2003-10-06 Bruno Haible <bruno@clisp.org>
19391 * lib/version-etc-2.h: Remove file.
19392 * lib/version-etc-2.c: Remove file.
19394 2003-10-06 Bruno Haible <bruno@clisp.org>
19396 * lib/fatal-signal.h: New file, from GNU gettext.
19397 * lib/fatal-signal.c: New file, from GNU gettext.
19399 2003-10-05 Paul Eggert <eggert@twinsun.com>
19401 * README: Rework advice for preventing empty .o files.
19402 Don't recommend ELIDE constructs. Recommend <stddef.h>,
19405 2003-10-04 Karl Berry <karl@gnu.org>
19407 * lib/argp*: update from libc.
19409 2003-10-04 Karl Berry <karl@gnu.org>
19411 * config/config.{guess,sub}: update from config.
19413 2003-10-02 Bruno Haible <bruno@clisp.org>
19415 * modules/lchown (Include): Add lchown.h.
19416 * modules/time_r (Include): Use "..." syntax.
19417 * modules/xgetdomainname (Include): Add xgetdomainname.h.
19419 2003-10-01 Simon Josefsson <jas@extundo.com>
19421 * MODULES.html.sh (func_all_modules): Move gethostname from section
19422 'based on' to section 'lacking' POSIX:2001.
19424 2003-10-01 Larry Jones <lawrence.jones@eds.com>
19426 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
19427 to output mode on the same stream.
19429 2003-09-29 Paul Eggert <eggert@twinsun.com>
19431 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
19432 Fix arg typo in previous patch.
19434 2003-09-28 Jim Meyering <jim@meyering.net>
19436 * lib/error.c: Correct cpp indentation.
19438 2003-09-27 Paul Eggert <eggert@twinsun.com>
19440 * modules/free: New file.
19442 2003-09-27 Paul Eggert <eggert@twinsun.com>
19444 * m4/free.m4: New file.
19446 2003-09-27 Paul Eggert <eggert@twinsun.com>
19448 * lib/minmax.h (MIN, MAX)
19449 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
19450 Omit the special code that used __typeof__, since we worry that
19451 it could be more trouble than it's worth. See:
19452 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
19453 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
19455 * lib/free.c: New file.
19457 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
19459 Trivial fixes to Makefile.am parts of module listings.
19460 * modules/strstr: Append strstr.h to lib_SOURCES.
19461 * modules/strcase: Likewise, for strcase.h.
19463 2003-09-27 Karl Berry <karl@gnu.org>
19465 * config/mkinstalldirs: update from automake.
19467 2003-09-26 Paul Eggert <eggert@twinsun.com>
19469 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
19470 (error_tail): Do not loop, reallocating temporary buffer, since
19471 the output cannot contain more wide characters than the input
19472 contains bytes, the size must be big enough already. This avoids
19473 one potential size overflow calculation. Check for size overflow
19474 when calculating temporary buffer size. Free temporary buffer
19475 when done, if it was allocated with malloc; this plugs a memory
19476 leak. Remove casts from void * to pointers, that are no longer
19477 needed now that we're assuming C89 or better.
19479 Merge error changes from glibc.
19481 * lib/error.c, error.h: Update copyright notice header to match glibc.
19482 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
19483 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
19484 Disable cancellation while printing error.
19485 * lib/error.h: Prepend __ to parameter names.
19487 2003-09-26 Jim Meyering <jim@meyering.net>
19489 * lib/error.c (error_tail): Move some declarations
19490 into inner scope where the local variables are used.
19492 2003-09-26 Bruno Haible <bruno@clisp.org>
19494 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
19496 Don't define stpncpy through config.h; it's now done through stpncpy.h.
19498 2003-09-26 Bruno Haible <bruno@clisp.org>
19500 * lib/stpncpy.h (gnu_stpncpy): New declaration.
19501 (stpncpy): Define as alias for gnu_stpncpy.
19502 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
19504 2003-09-25 Simon Josefsson <jas@extundo.com>
19506 * lib/xgetdomainname.h: New file.
19507 * lib/xgetdomainname.c: New file.
19509 2003-09-25 Simon Josefsson <jas@extundo.com>
19510 Bruno Haible <bruno@clisp.org>
19512 * modules/getdomainname: New file.
19513 * modules/xgetdomainname: New file.
19514 * MODULES.html.sh (func_all_modules): Add getdomainname,
19517 2003-09-25 Simon Josefsson <jas@extundo.com>
19518 Bruno Haible <bruno@clisp.org>
19520 * m4/getdomainname.m4: New file.
19522 2003-09-25 Simon Josefsson <jas@extundo.com>
19523 Bruno Haible <bruno@clisp.org>
19525 * lib/getdomainname.h: New file.
19526 * lib/getdomainname.c: New file.
19528 2003-09-25 Karl Berry <karl@gnu.org>
19530 * lib/argp-fmtstream.c, argp-help.c: update from libc.
19532 2003-09-25 Karl Berry <karl@gnu.org>
19534 * config/install-sh: update from automake.
19536 2003-09-25 Bruno Haible <bruno@clisp.org>
19538 * modules/version-etc-2: New file, from modules/version-etc with
19540 * MODULES.html.sh (func_all_modules): Add version-etc-2.
19542 2003-09-25 Bruno Haible <bruno@clisp.org>
19544 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
19545 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
19547 2003-09-24 Simon Josefsson <jas@extundo.com>
19549 * modules/xgethostname: Add xgethostname.h.
19551 2003-09-24 Paul Eggert <eggert@twinsun.com>
19553 * lib/linebuffer.c (freebuffer): Don't free the argument, just
19554 the buffer associated with the argument. Bug reported by
19557 2003-09-24 Paul Eggert <eggert@twinsun.com>
19559 * README: Document assumptions that 'int' is at least 32 bits
19560 wide, that integer arithmetic is 2's complement without overflow,
19561 that there are no holes in integer values, that adding sizes of
19562 two nonoverlapping objects can't overflow, and that all-bits-zero
19563 yields scalar zero. Fix spelling and capitalization typos.
19565 2003-09-19 Karl Berry <karl@gnu.org>
19567 * lib/argp.h: update from libc.
19569 2003-09-17 Paul Eggert <eggert@twinsun.com>
19571 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
19572 to avoid spurious warnings like "AC_RUN_IFELSE was called before
19573 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
19575 2003-09-17 Paul Eggert <eggert@twinsun.com>
19577 * gnulib-tool: Use "test -h", not "test -L", for portability
19578 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
19579 (tags_regexp): Remove, since \| doesn't conform to POSIX.
19580 (sed_extract_prog): Issue s commands one-by-one, rather than
19581 using \| in one s command.
19583 2003-09-16 Paul Eggert <eggert@twinsun.com>
19585 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
19586 input error, instead of returning NULL the next time we are called
19587 (and therefore losing track of errno).
19589 2003-09-16 Bruno Haible <bruno@clisp.org>
19591 * gnulib-tool (func_create_testdir): Warn about duplicated
19594 2003-09-15 Paul Eggert <eggert@twinsun.com>
19596 * modules/argmatch, modules/fatal, modules/obstack,
19597 modules/xalloc, modules/xgethostname: Sort dependencies by
19598 importance, not alphabetically.
19600 2003-09-15 Paul Eggert <eggert@twinsun.com>
19602 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
19603 fails, so that the caller gets the proper errno.
19605 * lib/readutmp.c (read_utmp): Likewise.
19606 Check for fstat error. Close stream and free storage
19609 2003-09-14 Karl Berry <karl@gnu.org>
19611 * config/srclist.txt (strdup.c): disable for c89 changes.
19613 2003-09-14 Jim Meyering <jim@meyering.net>
19615 * lib/getloadavg.c: Correct cpp indentation.
19616 * lib/strdup.c: Likewise.
19617 * lib/vasnprintf.c: Likewise.
19619 2003-09-14 Bruno Haible <bruno@clisp.org>
19621 * modules/fwriteerror: New file.
19622 * MODULES.html.sh (func_all_modules): Add fwriteerror.
19624 2003-09-14 Bruno Haible <bruno@clisp.org>
19626 * lib/fwriteerror.h: New file.
19627 * lib/fwriteerror.c: New file.
19629 2003-09-12 Paul Eggert <eggert@twinsun.com>
19631 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
19632 modules/xgethostname, modules/xalloc: Depend on exit.
19634 2003-09-12 Paul Eggert <eggert@twinsun.com>
19636 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
19638 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
19639 and AC_MINIX, too, so that their extensions are available.
19641 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
19642 This macro has been superseded by gl_BACKUPFILE.
19644 More patches to assume C89 or better.
19646 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
19648 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
19650 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
19651 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
19652 Include <string.h>, <stdlib.h> unconditionally.
19653 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
19654 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
19655 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
19656 headers or for string.h.
19657 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
19660 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
19662 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
19663 * m4/userspec.m4 (gl_USERSPEC): Likewise.
19664 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
19665 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
19666 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19667 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
19669 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
19670 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
19671 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
19673 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
19674 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
19675 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
19678 2003-09-12 Paul Eggert <eggert@twinsun.com>
19680 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
19681 * lib/obstack.c [!defined _LIBC]: Likewise.
19682 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
19683 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
19684 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
19686 More changes to assume C89 or better.
19688 * lib/error.c (error_tail): Assume vprintf.
19690 * lib/argmatch.c (getenv): Remove decl.
19691 * lib/progreloc.c (get_full_program_name): Define via prototype.
19692 * lib/setenv.c (clearenv): Likewise.
19693 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
19695 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
19696 (malloc, memcpy): Remove decls.
19697 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
19698 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
19699 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
19700 (memcpy): Remove macro.
19701 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
19702 (__P): Remove. All uses removed.
19703 (PTR): Remove. All uses changed to void *.
19704 (CHAR_BIT, NULL): Remove.
19705 (spaces, zeros, memset_space, memset_zero)
19706 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
19708 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
19709 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
19710 Define with prototype.
19711 Remove now-unnecessary prototype decl.
19712 (extra_args_spec): Assume ANSI C. All uses changed.
19713 (extra_args_spec_iso): Remove.
19714 (my_strftime, emacs_strftimeu): Define via prototype.
19715 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
19717 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
19718 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
19719 (strtoul, strtol): Remove decls.
19720 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
19722 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
19723 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
19724 (LOCALE_PARAM_PROTO): New macro.
19725 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
19726 (INTERNAL (strtol), strtol): Define with a prototype.
19727 (PARAMS): Remove. All uses removed.
19728 * lib/tempname.c: Include <string.h> unconditionally.
19729 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
19730 * lib/xgethostname.c (main): Define with a prototype.
19731 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
19732 Include <stdlib.h> unconditionally.
19733 (calloc, malloc, realloc, free): Remove decls.
19734 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
19735 Include <stdlib.h> unconditionally. Sort include file names.
19737 (xstrtod): Define with a prototype.
19738 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
19739 (strtol, strtoul): Remove decls.
19741 2003-09-11 Paul Eggert <eggert@twinsun.com>
19743 More patches to assume C89 or better.
19744 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
19745 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
19746 string.h, memchr, STDC_HEADERS.
19748 2003-09-11 Paul Eggert <eggert@twinsun.com>
19750 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
19751 Include <stdlib.h>, <string.h> unconditionally.
19752 Remove now-unnecessary cast to char *.
19753 * lib/strnlen.c: Include <string.h> unconditionally.
19754 * lib/yesno.c (yesno): Define with a prototype.
19756 2003-09-11 Bruno Haible <bruno@clisp.org>
19758 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
19760 2003-09-10 Jim Meyering <jim@meyering.net>
19762 * lib/error.c: Correct indentation of cpp directives.
19764 2003-09-10 Bruno Haible <bruno@clisp.org>
19766 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
19767 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
19768 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
19769 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
19770 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
19771 <stdlib.h> and <string.h> checks.
19772 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
19773 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
19775 2003-09-10 Bruno Haible <bruno@clisp.org>
19777 * lib/strcspn.c: Include <string.h> unconditionally.
19778 * lib/strpbrk.c: Include <string.h> unconditionally.
19779 * lib/strstr.c: Include <string.h> unconditionally.
19780 * lib/unicodeio.c: Include <string.h> unconditionally.
19781 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
19782 * lib/unsetenv.c: Likewise.
19783 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
19784 * lib/yesno.c: Include <stdlib.h> unconditionally.
19785 (rpmatch): Add prototype.
19787 2003-09-09 Paul Eggert <eggert@twinsun.com>
19789 More patches to assume C89 or better.
19790 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
19791 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
19792 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
19794 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
19796 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
19798 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
19800 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
19801 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
19802 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
19804 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
19805 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
19807 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
19809 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
19810 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
19811 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
19812 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
19813 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
19814 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
19816 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
19817 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
19818 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
19819 C headers, or for string.h.
19820 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
19821 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
19822 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
19823 headers, memory.h, stdlib.h, string.h, strings.h.
19824 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
19825 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
19826 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
19828 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
19829 headers, memory.h, string.h.
19830 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
19831 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
19833 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
19835 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
19836 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
19837 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
19838 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
19839 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
19841 2003-09-09 Paul Eggert <eggert@twinsun.com>
19845 * lib/acosl.c (main): Use a prototype.
19846 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
19849 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
19851 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
19852 (getopt, etopt_long, getopt_long_only, _getopt_internal)
19853 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
19855 * lib/getopt.c (const): Remove macro.
19856 Include <string.h> unconditionally.
19857 (my_index): Remove; all uses changed to strchr.
19858 (strlen): Remove decl.
19859 (exchange): Remove forward decl; no longer needed.
19860 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
19861 Define with prototype.
19862 * lib/getopt1.c (const): Remove macro.
19863 (getopt_long, getopt_long_only, main): Define with prototype.
19865 * lib/getugroups.c: Include <string.h> unconditionally.
19867 * lib/getusershell.c: Include <stdlib.h> unconditionally.
19868 (getusershell, setusershell, endusershell, readname, main):
19869 Define with prototypes.
19871 * lib/group-member.c: Include group-member.h first.
19872 Include <stdlib.h> unconditionally.
19874 * lib/hard-locale.c: Include hard-locale.h first.
19875 Include <stdlib.h>, <string.h> unconditionally.
19877 * lib/hash.c (free, malloc): Remove decls.
19878 Include <stdlib.h> unconditionally.
19880 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
19881 (getenv): Do not declare.
19883 * lib/idcache.c: Include <string.h> unconditionally.
19885 * lib/long-options.c: Include long-options.h first, to test interface.
19886 Include <stdlib.h> unconditionally.
19888 * lib/makepath.c: Include makepath.h first, to test interface.
19889 Include <stdlib.h> and <string.h> unconditionally.
19891 * lib/linebuffer.c: Include <stdlib.h>.
19892 (free): Remove decl.
19894 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
19895 stddef.h. rpl_malloc returns void *, not char *.
19896 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
19899 * lib/md5.h: Include <limits.h> unconditionally.
19900 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
19901 (__P): Remove; all uses removed.
19902 * lib/md5.c: Include "md5.h" first.
19903 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
19904 md5_buffer, md5_process_bytes, md5_process_block):
19905 Define with prototypes.
19906 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
19907 * lib/sha.c: Include "sha.h" first.
19908 Include <stdlib.h>, <string.h> unconditionally.
19910 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
19911 * lib/memcmp.c (__ptr_t): Likewise.
19912 * lib/memrchr.c (__ptr_t): Likewise.
19913 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
19914 Include <string.h> unconditionally.
19915 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
19916 * lib/memchr.c: Include <stdlib.h> unconditionally.
19917 * lib/memchr.c (LONG_MAX): Remove.
19918 * lib/memrchr.c (LONG_MAX): Likewise.
19919 * lib/memchr.c (__memchr): Define via a prototype.
19920 * lib/memrchr.c (__memrchr): Likewise.
19921 * lib/memcmp.c (__P): Remove, and remove all uses.
19922 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
19923 Remove forward decls; no longer needed.
19924 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
19925 Use types required by C89 in prototype.
19927 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
19928 * lib/savedir.c: Likewise.
19929 * lib/mkdir.c (free): Remove decl.
19930 * lib/rmdir.c (rmdir): Define with a prototype.
19931 * lib/savedir.c: Include savedir.h first, to test interface.
19933 * lib/mktime.c (STDC_HEADERS): Remove.
19934 Include <stdlib.h>, <string.h> unconditionally.
19936 * lib/modechange.c: Include <stdlib.h> unconditionally.
19937 (malloc): Remove decl.
19939 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
19940 (free): Remove decl.
19942 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
19943 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
19944 (This type really should be intptr_t, but that's a C99ism.)
19945 (_obstack_memcpy): Remove: all uses changed to memcpy.
19946 Include <string.h> unconditionally.
19947 (struct obstack): Assume __STDC__ for types of members
19948 chunkfun, freefun, extra_arg.
19949 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
19950 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
19951 obstack_begin, obstack_specify_allocation,
19952 obstack_specify_allocation_with_arg, obstack_chunkfun,
19953 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
19954 Remove unprototyped decls and the macros that use them.
19955 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
19956 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
19957 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
19958 (defined __STDC__ && __STDC__)]:
19959 Remove nonprototyped code.
19960 Include <stdlib.h> unconditionally.
19961 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
19962 _obstack_allocated_p, _obstack_free, obstack_free,
19963 _obstack_memory_used, print_and_abort):
19964 Define using prototypes.
19965 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
19966 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
19967 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
19968 obstack_next_free, obstack_object_size, obstack_room) [0]:
19969 Remove unused, unprototyped code.
19971 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
19973 * lib/physmem.c (physmem_total, physmem_available, main): Define
19976 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
19977 (main): Define with a prototype.
19979 * lib/posixver.c (getenv): Remove decl.
19981 * lib/putenv.c (malloc): Returns void *, not char *.
19982 Include <string.h> unconditionally.
19983 (strchr, memcpy, NULL): Do not define.
19985 * lib/readtokens.c: Include readtokens.h first, to test interface.
19986 Include <stdlib.h>, <string.h> unconditionally.
19987 (init_tokenbuffer): Define with a prototype.
19989 * lib/regex.c (PARAMS): Remove. All uses removed.
19990 All uses of _RE_ARGS removed, too.
19991 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
19993 (bzero): Assume memset exists.
19994 (memcmp, memcpy, NULL): Remove.
19995 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
19996 char, or assignments to local vars of type signed char.
19997 (init_syntax_once, PREFIX(extract_number_and_incr),
19998 PREFIX(print_partial_compiled_pattern),
19999 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
20000 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
20001 PREFIX(regex_grow_registers), PREFIX(regex_compile),
20002 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
20003 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
20004 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
20005 wcs_compile_range, byte_compile_range, truncate_wchar,
20006 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
20007 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
20008 count_mbs_length, wcs_re_match_2_internal,
20009 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
20010 PREFIX(alt_match_null_string_p),
20011 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
20012 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
20013 regfree, PREFIX(extract_number)): Define with prototype. Remove
20014 now-unnecessary declaration, if any.
20015 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
20017 Remove now-unnecessary casts among pointer types.
20018 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
20020 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
20021 (free): Remove decl.
20023 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
20025 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
20026 (free): Remove decl.
20028 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
20029 * lib/xgetcwd.c: Likewise.
20031 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
20032 (free): Remove decl.
20034 * lib/strchrnul.c (strchrnul): Define with a prototype.
20035 Fix bug: c_in was not converted to char before searching.
20037 The following changes are not K&R related:
20039 * lib/group-member.h: Include <sys/types.h>, so that this file is
20041 * lib/makepath.h: Likewise.
20043 * lib/getusershell.c (readname, default_index, line_size, readname):
20044 Use size_t, not int, for sizes.
20045 (readname): If the size overflows, report an error instead of
20048 2003-09-09 Paul Eggert <eggert@twinsun.com>
20050 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
20053 2003-09-09 Paul Eggert <eggert@twinsun.com>
20055 * README: New section: portability guidelines.
20057 2003-09-09 Derek Robert Price <derek@ximbiot.com>
20059 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
20062 2003-09-09 Derek Robert Price <derek@ximbiot.com>
20064 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
20066 2003-09-08 Paul Eggert <eggert@twinsun.com>
20068 Assume C89 or better; remove K&R cruft.
20069 A few of these changes were first proposed by Derek Robert Price
20070 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
20072 * lib/addext.c: Include <string.h> unconditionally.
20073 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
20074 Don't declare getenv or malloc.
20076 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
20077 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
20079 (find_stack_direction, alloca): Use prototypes.
20081 * lib/atexit.c (atexit): Define using a prototype.
20083 * lib/basename.c, dirname.c, stripslash.c:
20084 Include <string.h> unconditionally.
20086 * lib/bcopy.c: Include <stddef.h>.
20087 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
20089 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
20091 * lib/error.h (error, error_at_line, error_print_progname)
20092 [! (defined (__STDC__) && __STDC__)]: Remove decls.
20093 * lib/error.c: Include error.h first, to check interface.
20094 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20095 (VA_START): Remove; all uses changeed to va_start.
20096 (exit, strerror): Remove decls.
20097 (error_print_progname): Prototype uncondionally.
20098 Don't include <errno.h>; no longer needed.
20099 (private_strerror): Remove.
20100 (error_tail): Always define.
20101 (error, error_at_line): Assume C89 or better; always use prototypes.
20102 * lib/fatal.c: Include "fatal.h" first, to test interface.
20103 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
20104 (VA_START): Remove; all uses changed to va_start.
20105 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
20107 (exit): Remove decl.
20108 (fatal): Prototype unconditionally. Assume va_start works.
20109 Abort at end, to pacify gcc.
20111 * lib/euidaccess.c (main): Define with a prototype.
20113 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
20115 * lib/exitfail.c: Include <stdlib.h> unconditionally.
20117 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
20119 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
20120 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
20121 (getenv): Remove decl.
20122 (fnmatch): Define using a prototype.
20123 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
20124 (FCT): Define using a prototype.
20126 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
20128 * lib/gethostname.c: Include <stddef.h>.
20129 (gethostname): Define with prototype. Length is size_t, not int.
20131 2003-09-08 Paul Eggert <eggert@twinsun.com>
20133 Assume C89 or better; remove K&R cruft.
20134 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
20135 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
20136 string.h, getenv, malloc.
20137 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
20139 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
20140 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
20141 do not check for strerror.
20142 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
20143 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
20144 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
20145 do not check for doprnt or vprintf.
20146 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
20147 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
20149 2003-09-08 Paul Eggert <eggert@twinsun.com>
20151 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
20152 getversion.c should have been removed then, but was accidentally
20155 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
20156 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
20158 2003-09-08 Karl Berry <karl@gnu.org>
20160 * config/config.sub, config.guess, srclistvars.sh: update from savannah
20161 config, forget about prep.
20163 * config/depcomp, missing: update from automake.
20165 2003-09-07 Paul Eggert <eggert@twinsun.com>
20167 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
20168 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20170 2003-09-07 Paul Eggert <eggert@twinsun.com>
20172 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
20173 copy_tm_result. Bug reported by Simon Josefsson in
20174 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
20176 2003-09-06 Paul Eggert <eggert@twinsun.com>
20178 * m4/time_r.m4: New file.
20179 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
20180 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
20181 is. Check for timegm declaration.
20182 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
20183 Do not check for gmtime_r.
20184 Replace mktime if __mktime_internal does not exist and if mktime
20185 hasn't been replaced already.
20187 2003-09-06 Paul Eggert <eggert@twinsun.com>
20189 * lib/time_r.c, lib/time_r.h: New files.
20191 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
20193 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
20194 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
20196 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
20198 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
20199 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
20200 Include <time_r.h>.
20202 * lib/timegm.c: Switch to glibc implementation, with the following
20204 [defined HAVE_CONFIG_H]: Include <config.h>.
20205 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
20206 (__mktime_internal) [!defined _LIBC]: New decl.
20207 (__gmtime_r) [!defined _LIBC]: New macro and function.
20208 (timegm): Use a prototype, since gnulib assumes C89.
20209 Do not bother declaring tmp to be const, as it's not really usefu.
20210 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
20211 (timegm): Declare only if HAVE_DECL_TIMEGM.
20213 2003-09-06 Paul Eggert <eggert@twinsun.com>
20215 * MODULES.html.sh (func_all_modules): Add time_r.
20216 * modules/time_r: New file.
20217 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
20218 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
20220 2003-09-03 Paul Eggert <eggert@twinsun.com>
20222 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
20223 Bug reported by Lute Kamstra in
20224 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
20226 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
20227 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
20228 course with correspondingly smaller numbers for tomorrow and
20229 yesterday. From Tadayoshi Funaba. Originally installed into
20230 sh-utils on 1999-08-07, but the patch got lost (I guess during the
20233 2003-08-31 Simon Josefsson <jas@extundo.com>
20235 * modules/timegm: New file.
20236 * MODULES.html.sh (func_all_modules): Add timegm.
20238 2003-08-31 Simon Josefsson <jas@extundo.com>
20240 * m4/timegm.m4: New file.
20242 2003-08-31 Simon Josefsson <jas@extundo.com>
20244 * lib/timegm.h: New file.
20245 * lib/timegm.c: New file. Based on
20246 wget-1.8.2/src/http.c:mktime_from_utc.
20248 2003-08-31 Karl Berry <karl@gnu.org>
20250 * lib/argp.h: update from libc.
20252 2003-08-28 Bruno Haible <bruno@clisp.org>
20254 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
20255 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
20256 followed by '#define fnmatch fnmatch_posix' gives an error.
20258 2003-08-28 Bruno Haible <bruno@clisp.org>
20260 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
20261 warning on QNX, which defines O_BINARY to 000000.
20263 2003-08-27 Jim Meyering <jim@meyering.net>
20265 * m4/mkstemp.m4: Require that the system mkstemp be able to create
20266 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
20267 would fail after 32. Reported by Danny Levinson. Details here:
20268 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
20270 2003-08-24 Bruno Haible <bruno@clisp.org>
20272 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
20273 MSVC7 <stdio.h> is included later.
20275 2003-08-22 Simon Josefsson <jas@extundo.com>
20277 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
20279 2003-08-20 Karl Berry <karl@gnu.org>
20281 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
20283 2003-08-20 Bruno Haible <bruno@clisp.org>
20285 * modules/progname: New file.
20286 * MODULES.html.sh (func_all_modules): Add progname.
20288 2003-08-20 Bruno Haible <bruno@clisp.org>
20290 * lib/progname.h: New file, from GNU gettext.
20291 * lib/progname.c: New file, from GNU gettext.
20292 * lib/progreloc.c: New file, from GNU gettext.
20294 2003-08-19 Jim Meyering <jim@meyering.net>
20296 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
20297 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
20299 2003-08-19 Bruno Haible <bruno@clisp.org>
20301 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
20304 2003-08-19 Bruno Haible <bruno@clisp.org>
20306 * lib/xstrdup.c: Assume <string.h> exists.
20308 2003-08-18 Paul Eggert <eggert@twinsun.com>
20310 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
20313 2003-08-18 Jim Meyering <jim@meyering.net>
20315 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
20316 * m4/lib-ld.m4: Likewise.
20318 2003-08-18 Jim Meyering <jim@meyering.net>
20320 * lib/setenv.h: Indent nested cpp directive.
20321 * lib/vasnprintf.c: Remove trailing blanks.
20323 2003-08-17 Simon Josefsson <jas@extundo.com>
20325 * modules/xstrndup: New file.
20326 * MODULES.html.sh (func_all_modules): Add xstrndup.
20328 2003-08-17 Simon Josefsson <jas@extundo.com>
20330 * modules/argp: Fix autoconf macro name. Add more dependencies.
20332 2003-08-17 Simon Josefsson <jas@extundo.com>
20334 * m4/xstrndup.m4: New file.
20336 2003-08-17 Simon Josefsson <jas@extundo.com>
20338 * m4/argp.m4: New file.
20340 2003-08-17 Simon Josefsson <jas@extundo.com>
20341 Bruno Haible <bruno@clisp.org>
20343 * lib/xstrndup.h: New file.
20344 * lib/xstrndup.c: New file.
20346 2003-08-17 Bruno Haible <bruno@clisp.org>
20348 * modules/strndup (Files, Include): Add lib/strndup.h.
20350 2003-08-17 Bruno Haible <bruno@clisp.org>
20352 * modules/euidaccess (Files): Add lib/euidaccess.h.
20354 2003-08-17 Bruno Haible <bruno@clisp.org>
20356 * lib/strndup.h: New file.
20358 2003-08-17 Bruno Haible <bruno@clisp.org>
20360 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
20361 like AC_GNU_SOURCE.
20362 * modules/extensions (configure.ac): Comment out the invocation of
20363 gl_USE_SYSTEM_EXTENSIONS.
20365 2003-08-16 Paul Eggert <eggert@twinsun.com>
20367 Merges from coreutils, etc.
20368 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
20369 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
20370 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
20372 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
20373 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
20375 2003-08-16 Paul Eggert <eggert@twinsun.com>
20377 Document merge from coreutils.
20378 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
20379 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
20380 * modules/utime: Add m4/utimes-null.m4.
20382 2003-08-16 Paul Eggert <eggert@twinsun.com>
20384 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
20385 space, undoing this 2003-08-12 change:
20386 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
20388 2003-08-16 Paul Eggert <eggert@twinsun.com>
20390 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
20391 strtoul.c from libc, undoing this 2003-08-12 change:
20392 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
20394 2003-08-16 Jim Meyering <jim@meyering.net>
20396 Merges from coreutils.
20397 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
20398 prefix. Adjust cache variables similarly. Create 500 rather than
20399 just 300 files, to exercise bug on Darwin6.5, too.
20400 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
20402 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
20403 AM_SYS_POSIX_TERMIOS.
20404 Reported by mkc@mathdogs.com.
20405 Also change use of $am_cv_sys_posix_termios
20406 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
20407 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
20408 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
20409 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
20410 in /proc/mounts until it finds one with matching device number. This
20411 is unnecessary when the FILE argument *is* a mount point. No stat call
20412 is necessary in that case. So, disable the statvfs-testing code on
20413 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
20414 as RedHat bug# 84846.
20415 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
20416 to 1MB, so as not to render systems with no stack size limit (e.g.,
20417 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
20418 Include <unistd.h>. On some systems,
20419 it is required for the definition of _SC_PAGESIZE.
20421 2003-08-16 Jim Meyering <jim@meyering.net>
20423 Merge from coreutils.
20424 * lib/xstrtoimax.c: #else #if -> #elif.
20425 * lib/xstrtoumax.c: Likewise.
20427 2003-08-16 Jim Meyering <jim@meyering.net>
20429 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
20430 * m4/utimes.m4: Removed.
20431 * m4/utimes-null.m4: Renamed from utimes.m4.
20433 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
20434 to 1MB, so as not to render systems with no stack size limit (e.g.,
20435 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
20436 Include <unistd.h>. On some systems,
20437 it is required for the definition of _SC_PAGESIZE.
20439 2003-08-16 Jim Meyering <jim@meyering.net>
20440 and Paul Eggert <eggert@cs.ucla.edu>
20442 Merges from coreutils, etc.
20444 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
20445 using the latest version from cvs. This avoids problems with #line
20446 directives using a vendor (Sun) compiler.
20447 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
20448 Don't set GETGROUPS_LIB here; now it's
20449 done via getgroups.m4's wrapper function.
20450 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
20451 rather than just in sh-util/configure.in, so that the
20452 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
20454 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
20455 AC_FUNC_GETLOADAVG where to find getloadavg.c.
20456 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
20457 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
20458 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
20459 Remove code that is now done by the newly-required macros.
20460 Append $(EXEEXT) to DF_PROG.
20461 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
20462 Do not invoke or require the following here,
20463 since prereq.m4 or some gnulib .m4 now does this for us:
20464 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
20465 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
20466 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
20467 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
20468 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
20469 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
20470 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
20472 Do not replace the following functions, as this is now the job
20473 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
20474 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
20475 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
20476 atexit getpass, strdup, getpagesize.
20478 Do not check for the following functions, as this is now the job
20479 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
20480 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
20482 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
20483 Check for sys/sysctl.h.
20484 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
20485 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
20486 of checking for ssize_t ourselves.
20488 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
20489 Require every macro that gnulib/modules/* suggests for us.
20490 (jm_PREREQ_ADDEXT): New macro.
20491 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
20492 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
20494 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
20495 (gl_PHYSMEM): Use it.
20496 Also check for `table' function.
20497 Check for new headers and functions.
20498 Add check for sys/sysmp.h.
20499 With suggestions from Kaveh Ghazi.
20500 Ignore headers that are present but cannot be compiled. This
20501 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
20504 2003-08-15 Paul Eggert <eggert@twinsun.com>
20506 Document merge from coreutils.
20507 * modules/userspec: Depend on posixver.
20508 * modules/strftime: Depend on tzset.
20510 2003-08-15 Paul Eggert <eggert@twinsun.com>
20512 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
20513 rather than tab, after '#' in shell-script copyright notices.
20514 Suggested by Bruno Haible.
20516 2003-08-15 Paul Eggert <eggert@twinsun.com>
20518 * config/srclist-update: Use three spaces, rather than tab, after '#'
20519 in shell-script copyright notices. Suggested by Bruno Haible.
20520 Remove unnecessary parenthesization in regular expression.
20522 2003-08-15 Jim Meyering <jim@meyering.net>
20524 Merge from coreutils.
20525 * lib/xgethostname.c: Include <stdlib.h>.
20526 (xghostname): Don't exit for anything other than memory-related
20527 failure; just return NULL.
20528 * lib/userspec.c: Include "posixver.h".
20529 (parse_user_spec): Accept `.' as a separator only
20530 in pre-POSIX-200112 mode.
20531 * lib/strtoimax.c: Use #elif rather than #else #if.
20532 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
20533 Remove function, now that we can rely on a working tzset function.
20534 [!_LIBC]: Ensure that the required autoconf test has been run.
20535 [!defined _NL_CURRENT && HAVE_STRFTIME]:
20536 Use underlying_strftime for %r.
20537 * lib/sha.c: Merge in some clean-up and optimization changes from
20539 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
20540 Ensure that it is a multiple of 64.
20541 Rearrange loop exit tests so as to avoid performing an
20542 additional fread after encountering an error or EOF.
20543 * lib/realloc.c: Update copyright date.
20545 2003-08-15 Jim Meyering <jim@meyering.net>
20546 and Paul Eggert <eggert@twinsun.com>
20548 Merge from coreutils.
20549 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
20550 member but strut utmpx does not. Needed for AIX 4.3.3.
20551 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
20553 2003-08-15 Jim Meyering <jim@meyering.net>
20554 and Paul Eggert <eggert@cs.ucla.edu>
20556 Merges from coreutils, etc.
20557 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
20558 Require gl_FUNC_TZSET_CLOBBER.
20559 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
20560 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
20563 2003-08-14 Paul Eggert <eggert@twinsun.com>
20565 Help the merge from coreutils.
20566 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
20567 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
20568 * m4/tzset.m4: Use it too.
20570 2003-08-14 Paul Eggert <eggert@twinsun.com>
20572 * modules/tzset: New file.
20574 2003-08-14 Jim Meyering <jim@meyering.net>
20576 Merges from coreutils.
20577 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
20578 variable names, rather than @FNMATCH_H@.
20579 * modules/alloca: Likewise for $(ALLOCA_H).
20581 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
20582 the three copies of the literal target, `fnmatch.h'.
20583 * modules/alloca (alloca.h): Likewise.
20585 2003-08-14 Jim Meyering <jim@meyering.net>
20587 Merge from coreutils.
20588 * m4/tzset.m4: New file.
20589 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
20590 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
20591 otherwise, AIX 5.1 systems would end up using the latter.
20592 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
20593 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
20594 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
20595 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
20597 2003-08-14 Jim Meyering <jim@meyering.net>
20599 Merge from coreutils.
20600 * lib/obstack.h: Whitespace changes.
20601 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
20602 and xcalloc return values.
20603 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
20604 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
20605 hang on OSF/1 5.1 for DIR on both local and remote file systems.
20606 Reported by (and fix confirmed by) Nelson H. F. Beebe.
20607 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20609 Use mntctl's return value to drive the entry-processing loop, since
20610 we can't rely on the value of the vmt_length member in the last
20611 entry. On some systems doing so could result in exhausting
20612 virtual memory. Based in part on a patch from Mike Jetzer.
20614 2003-08-14 Jim Meyering <jim@meyering.net>
20615 and Paul Eggert <eggert@twinsun.com>
20617 Merges from coreutils, plus other fixes.
20618 * lib/physmem.c: Merge in portability changes from gcc/libiberty
20619 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
20620 for credits and details. Thanks to Kaveh Ghazi for helping
20621 to keep these files in sync.
20622 (ARRAY_SIZE): Define it.
20623 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
20624 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
20625 (memcasecmp): Don't assume size_t fits in unsigned int.
20626 Remove casts and duplicate code.
20627 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
20628 (memcpy): Remove definition.
20629 Merge in some clean-up and optimization changes from glibc.
20630 [BLOCKSIZE]: Move definition to top of file.
20631 Ensure that it is a multiple of 64.
20632 Rearrange loop exit tests so as to avoid performing an
20633 additional fread after encountering an error or EOF.
20634 * lib/md5.h (md5_uintptr): Define.
20635 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
20636 return to the initial working directory. Preserve errno
20638 * lib/idcache.c: Include "xalloc.h".
20639 (xmalloc, xrealloc): Remove decls.
20640 (getuser): Remove casts no longer required in C89.
20641 * lib/human.c: Include stdio.h, for sprintf.
20642 * lib/group-member.c: Include "xalloc.h".
20643 (xmalloc, xrealloc): Remove decls.
20644 (get_group_info): Remove casts no longer required in C89.
20645 * lib/getusershell.c (readname): Remove casts no longer required in
20647 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
20648 * lib/getline.c: Whitespace fix, from coreutils.
20650 2003-08-13 Paul Eggert <eggert@twinsun.com>
20652 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
20655 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
20656 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
20657 Undo previous (whitespace-only) change.
20659 2003-08-13 Paul Eggert <eggert@twinsun.com>
20661 * lib/exclude.c: Include <ctype.h>
20662 (IN_CTYPE_DOMAIN): New macro.
20663 (is_space): New fn.
20664 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
20667 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
20668 Undo previous (whitespace-only) change.
20670 2003-08-13 Paul Eggert <eggert@twinsun.com>
20672 * config/srclist-update: Change update back to the old behavior,
20673 leaving whitespace alone. Use one 'sed' command rather than a
20675 (fixlicense): Now a variable, not a function.
20676 (remove_trailing_blanks): Remove.
20677 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
20678 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
20679 Undo previous (whitespace-only) change.
20681 2003-08-12 Paul Eggert <eggert@twinsun.com>
20683 Merge from coreutils.
20684 * modules/euidaccess: Add lib_SOURCES, include for new
20687 2003-08-12 Paul Eggert <eggert@twinsun.com>
20689 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
20690 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
20691 Normalize leading white space and remove trailing white space.
20693 Merge from coreutils
20694 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
20696 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
20697 0.12.1. These files are now being upgraded automatically by
20698 ../config/srclist-update.
20700 2003-08-12 Paul Eggert <eggert@twinsun.com>
20702 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
20703 Normalize leading white space and remove trailing white space.
20704 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
20705 notice, as per ../config/srclist-update.
20707 Merge from coreutils.
20708 * lib/euidaccess.h: New file.
20709 * lib/euidaccess.c: Include it.
20710 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
20711 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
20712 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
20714 2003-08-12 Paul Eggert <eggert@twinsun.com>
20716 * config/srclist-update: Add copyright notice.
20717 (remove_id_lines, remove_trailing_blanks): New constants.
20718 (fixfile): Use them to normalize spacing a bit in copied files.
20719 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
20720 Normalize leading white space and remove trailing white space.
20722 * config/texinfo.tex: Sync with texinfo.
20724 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
20725 strtoul.c from libc, to merge coreutils whitespace changes.
20727 * config/srclist.txt: Get the following m4 files from gettext:
20728 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
20729 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
20730 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
20733 2003-08-12 Karl Berry <karl@gnu.org>
20735 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
20738 2003-08-11 Paul Eggert <eggert@twinsun.com>
20740 * modules/gnu-source, m4/gnu-source.m4:
20741 Remove; we're assuming Autoconf 2.54 or later now.
20742 Suggested by Bruno Haible.
20743 * MODULES.html.sh (func_all_modules): Remove gnu-source.
20745 2003-08-11 Bruno Haible <bruno@clisp.org>
20747 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
20749 2003-08-11 Bruno Haible <bruno@clisp.org>
20751 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
20752 (vasnprintf): Use it instead of wcslen.
20754 2003-08-11 Bruno Haible <bruno@clisp.org>
20756 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
20757 value to ensure that _Bool promotes to int. Use #define for _Bool when
20758 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
20760 2003-08-10 Karl Berry <karl@gnu.org>
20762 * lib/regex.h: update from libc (whitespace fix).
20764 2003-08-09 Paul Eggert <eggert@twinsun.com>
20766 Merge some files from coreutils. These changes were
20767 originally made by Jim Meyering.
20768 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
20769 many older Unixes require this.
20770 * lib/alloca.c (alloca): Remove cast to argument of free;
20771 no longer needed in C89.
20772 * lib/alloca_.h, regex.h: Fix white space to match
20773 what GNU indent does.
20775 2003-08-09 Paul Eggert <eggert@twinsun.com>
20777 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
20778 apparently Emacs's Unicode mode got confused before my 2003-08-05
20781 2003-08-08 Paul Eggert <eggert@twinsun.com>
20783 * m4/extensions.m4: New file.
20784 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
20785 Require gl_USE_SYSTEM_EXTENSIONS.
20786 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
20787 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
20789 2003-08-08 Paul Eggert <eggert@twinsun.com>
20791 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
20792 * modules/extensions, modules/gnu-source: New files.
20793 * modules/timespec, modules/unlocked-io: Depend on extensions.
20795 2003-08-07 Paul Eggert <eggert@twinsun.com>
20797 * modules/restrict: New file.
20798 * MODULES.html.sh (func_all_modules): Add restrict.
20799 * modules/regex: Depend on restrict.
20801 2003-08-07 Paul Eggert <eggert@twinsun.com>
20803 * m4/restrict.m4: New file.
20804 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
20806 2003-08-07 Bruno Haible <bruno@clisp.org>
20808 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
20809 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
20811 2003-08-07 Bruno Haible <bruno@clisp.org>
20813 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
20814 makes the module 'getndelim2' compatible with the module 'getline'.
20816 2003-08-05 Paul Eggert <eggert@twinsun.com>
20818 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
20819 byte with "\201" to avoid glitches when editing that source file
20820 with multi-gnome-terminal.
20822 2003-08-05 Paul Eggert <eggert@twinsun.com>
20824 * lib/bumpalloc.h: Remove.
20826 2003-08-05 Paul Eggert <eggert@twinsun.com>
20828 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
20829 * modules/bumpalloc: Remove.
20831 2003-08-04 Paul Eggert <eggert@twinsun.com>
20833 * lib/getloadavg.c: Change copyright notice and spacing to conform to
20836 Merge from coreutils.
20837 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
20839 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
20840 from Karl Berry, implemented by Jim Meyering.
20841 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
20842 from Dmitry V. Levin.
20843 Remove anachronistic cast of xrealloc.
20844 * lib/fnmatch_.h (__const): Remove. Use 'const'.
20845 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
20846 type. Otherwise, it wouldn't compile with at least /bin/cc on
20847 ymp-cray-unicos9.0.2.X.
20848 Combine two mostly-identical uses of alloca into one.
20849 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
20851 2003-08-04 Dave Love <d.love@dl.ac.uk>
20855 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
20856 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
20857 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
20858 obsolete NLIST_NAME_UNION.
20859 [__GNU__]: Undef BSD and FSCALE.
20860 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
20862 2003-08-03 Paul Eggert <eggert@twinsun.com>
20864 * lib/stdbool_.h (_Bool): Make it signed char, instead of
20865 an enum type, so that it's guaranteed to promote to int. See:
20866 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
20868 2003-08-03 Karl Berry <karl@gnu.org>
20870 * config/depcomp: update from automake.
20872 2003-07-31 Paul Eggert <eggert@twinsun.com>
20874 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
20875 (strerror): Don't assume that a printable int fits in 14 bytes.
20877 2003-07-31 Bruno Haible <bruno@clisp.org>
20879 * modules/getpass-gnu: New file.
20880 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
20882 2003-07-31 Bruno Haible <bruno@clisp.org>
20884 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
20886 2003-07-24 Karl Berry <karl@gnu.org>
20888 * config/missing: update from automake.
20890 2003-07-24 Derek Robert Price <derek@ximbiot.com>
20891 Bruno Haible <bruno@clisp.org>
20893 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
20894 * lib/getline.c (getline, getdelim): Likewise.
20895 Remove _GNU_SOURCE define; now it's defined in config.h through
20898 2003-07-23 Karl Berry <karl@gnu.org>
20900 * config/config.sub: update from prep.
20902 2003-07-22 Paul Eggert <eggert@twinsun.com>
20904 * modules/xalloc (Depends-on): Add exitfail.
20905 * modules/xmemcoll: Likewise.
20907 2003-07-22 Paul Eggert <eggert@twinsun.com>
20909 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
20910 over-parenthesization in macros.
20912 Sync with coreutils.
20914 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
20917 Use `exit_failure' for xalloc and xmemcoll instead of their own
20918 private exit-failure variables.
20919 * lib/xalloc.h (xalloc_exit_failure): Remove.
20920 * lib/xmalloc.c: Likewise. Include exitfail.h.
20921 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
20922 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
20923 * lib/xmemcoll.c: Likewise. Include exitfail.h.
20924 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
20926 2003-07-20 Jim Meyering <jim@meyering.net>
20928 * modules/closeout (Depends-on): Add exitfail.
20929 Suggestion from Bruno Haible.
20931 2003-07-19 Karl Berry <karl@gnu.org>
20933 * config/config.sub: update from prep.
20935 2003-07-18 Paul Eggert <eggert@twinsun.com>
20937 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
20939 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
20940 to test that it can stand by itself. Include "exitfail.h".
20941 Clients should set exit_failure instead.
20942 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
20944 2003-07-18 Bruno Haible <bruno@clisp.org>
20946 * modules/getndelim2: New file.
20947 * modules/getline: Share files with module getndelim2.
20948 * modules/getnline: Depend on getndelim2 instead of sharing files with
20949 it. Add getnline.c to lib_SOURCES.
20950 * MODULES.html.sh (func_all_modules): Add getndelim2.
20952 2003-07-18 Bruno Haible <bruno@clisp.org>
20954 * m4/getndelim2.m4: New file.
20955 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
20956 invoke gl_PREREQ_GETNDELIM2.
20957 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
20958 gl_PREREQ_GETNDELIM2.
20959 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
20962 2003-07-18 Bruno Haible <bruno@clisp.org>
20964 * lib/getndelim2.h: New file.
20965 * lib/getndelim2.c: Make into a module of its own. Include config.h,
20967 (getndelim2): Make non-static. Change return type to ssize_t.
20968 * lib/getline.h: Change argument names.
20969 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
20970 * lib/getnline.c: Include getndelim2.h.
20972 2003-07-18 Andreas Schwab <schwab@suse.de>
20974 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
20976 2003-07-17 Karl Berry <karl@gnu.org>
20978 * config/config.sub: update from prep.
20980 2003-07-17 Bruno Haible <bruno@clisp.org>
20982 * modules/getnline: New file.
20983 * modules/getline: Add lib/getndelim2.c to source file list.
20984 * MODULES.html.sh (func_all_modules): Add getnline.
20986 2003-07-17 Bruno Haible <bruno@clisp.org>
20988 * m4/getnline.m4: New file.
20990 2003-07-17 Bruno Haible <bruno@clisp.org>
20992 * m4/Makefile.am.in: Remove file.
20993 * m4/Makefile.am: Remove file.
20994 * m4/Makefile.in: Remove file.
20996 2003-07-17 Bruno Haible <bruno@clisp.org>
20998 * lib/getnline.h: New file.
20999 * lib/getnline.c: New file.
21000 * lib/getndelim2.c: New file, extracted from getline.c.
21001 (getndelim2): Renamed from getdelim2, with added nmax argument.
21002 * lib/getline.c: Include getndelim2.c.
21003 (getdelim2): Moved out to getndelim2.c.
21004 (getline, getdelim): Update.
21006 2003-07-17 Bruno Haible <bruno@clisp.org>
21008 * lib/Makefile.am: Remove file.
21009 * lib/Makefile.in: Remove file.
21011 2003-07-17 Bruno Haible <bruno@clisp.org>
21013 * configure.in: Remove file.
21014 * Makefile.in: Remove file.
21016 2003-07-17 Bruno Haible <bruno@clisp.org>
21018 * MODULES.html.sh: Put the </BODY> right before </HTML>.
21020 2003-07-16 Karl Berry <karl@gnu.org>
21022 * config/srclist-update: was running fixlicense twice, which caused
21023 texinfo.tex to be nullified for some reason. Simplify,
21024 $gplsrc is no longer needed as far as I can see?
21026 2003-07-16 Jim Meyering <jim@meyering.net>
21028 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
21030 2003-07-15 Paul Eggert <eggert@twinsun.com>
21032 * config/srclist.txt: Get the following files from gettext-runtime/intl
21033 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
21034 ref-del.sin. From Bruno Haible.
21035 * config/srclist-update (fixfile): Change grep pattern again, since the
21036 previous fix didn't work (there was another trailing $). Use
21037 '[$]' to escape the $s.
21039 2003-07-15 Karl Berry <karl@gnu.org>
21041 * lib/vasnprintf.c: update from gettext.
21043 2003-07-15 Karl Berry <karl@gnu.org>
21045 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
21046 gets expanded when surrounded by '$'.
21048 2003-07-15 Jim Meyering <jim@meyering.net>
21050 * modules/save-cwd: Don't depend on error. From Derek Price.
21052 2003-07-15 Jim Meyering <jim@meyering.net>
21054 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
21056 2003-07-14 Simon Josefsson <jas@extundo.com>
21058 * modules/mempcpy: New file.
21059 * MODULES.html.sh (func_all_modules): Add mempcpy.
21061 2003-07-14 Simon Josefsson <jas@extundo.com>
21063 * m4/mempcpy.m4: New file.
21065 2003-07-14 Simon Josefsson <jas@extundo.com>
21067 * lib/mempcpy.h: New file.
21068 * lib/mempcpy.c: New file.
21070 2003-07-14 Paul Eggert <eggert@twinsun.com>
21072 * modules/getdate, modules/posixtm: Depend on mktime.
21074 2003-07-14 Paul Eggert <eggert@twinsun.com>
21076 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
21077 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
21078 unicodeio.c, unicodeio.h, unlocked-io.h:
21079 Switch from LGPL to GPL.
21081 2003-07-14 Paul Eggert <eggert@twinsun.com>
21083 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
21084 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
21085 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
21086 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
21087 vasprintf.c, vasprintf.h: Regenerate. These files are now being
21088 updated automatically by ../config/srclist-update. This changes
21089 their license from LPGL to GPL.
21091 2003-07-14 Paul Eggert <eggert@twinsun.com>
21093 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
21094 assumed to refer to the root of the most recent stable gettext version.
21095 * config/srclistvars.sh: Add defaults for eggert.
21096 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
21097 Match "This program" as well as "The program". This is needed
21100 2003-07-14 Jim Meyering <jim@meyering.net>
21102 Don't emit diagnostics. Let callers do that.
21103 * lib/save-cwd.c: Don't include "error.h".
21104 (save_cwd): Don't call error. Ensure that errno is valid
21105 when returning nonzero.
21107 * lib/save-cwd.h (restore_cwd): Update prototype.
21108 * lib/save-cwd.c (restore_cwd): Remove two parameters.
21109 Simplify. Don't call error upon failure. Let callers do that.
21110 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
21111 when auditing is enabled. But don't bother updating the #if.
21113 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
21115 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
21116 it breaks C++ compilation.
21117 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
21119 2003-07-10 Simon Josefsson <jas@extundo.com>
21121 * modules/strchrnul (Makefile.am): Add strchrnul.h.
21123 2003-07-10 Jim Meyering <jim@meyering.net>
21125 * m4/clock_time.m4: Remove trailing blank.
21126 * m4/intmax_t.m4: Likewise.
21128 2003-07-10 Jim Meyering <jim@meyering.net>
21130 * lib/vasnprintf.c: Remove trailing blanks.
21131 Make cpp indentation consistent.
21133 2003-07-09 Paul Eggert <eggert@twinsun.com>
21135 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
21136 posixver.c, strftime.c, strnlen.c, strverscmp.c:
21137 Switch from LGPL to GPL.
21139 2003-07-09 Paul Eggert <eggert@twinsun.com>
21141 * config/srclist.txt: Sort sublists. Add
21142 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
21143 that differ from gnulib for one reason or another; we'd like this list
21144 to be smaller but for now let's document what we have.
21146 2003-07-08 Paul Eggert <eggert@twinsun.com>
21148 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
21149 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
21150 and sweeter "eval x=$x".
21151 * config/srclist.txt: Get lib/argp* from glibc.
21153 2003-07-07 Paul Eggert <eggert@twinsun.com>
21155 * lib/mktime.c: Fix some boundary cases and remove need for floating
21158 Issue a compile-time diagnostic if time_t is floating point, or if
21159 two's complement arithmetic is not in effect, or if arithmetic
21160 right shift does not propagate the sign. These assumptions were
21161 all in the original code but they weren't checked.
21163 (TIME_T_MIDPOINT, verify): New macros.
21164 (__isleap): Remove; it has integer overflow problems.
21165 (leapyear): New function, without those problems.
21166 (ydhms_tm_diff): Remove; splitting into two parts.
21167 (ydhms_diff): New function, containing the arithmetic part of
21168 the old ydhms_tm_diff function. Issue a compile-time
21169 diagnostic if we are not using C99 integer division.
21170 Avoid casts when possible.
21171 (guess_time_tm): New function, containing the checking part of
21172 the old ydhms_tm_diff function. Return the new value, rather than
21173 the difference between it and the old. Accept a new argument T
21174 so that *T specifies the old value. Check for overflow in the result.
21176 (__mktime_internal): Use a time_t offset, not a long int offset.
21177 This undoes the 2003-06-04 change, which is no longer needed now
21178 that we have better overflow checking.
21179 (localtime_offset): Likewise.
21181 (__mktime_internal): Avoid harmful overflow on hosts where time_t
21182 and long are 64-bit but int is only 32-bit.
21183 (ydhms_diff): Use long int to store year1 and yday1.
21184 Issue a compile-time diagnostic if long int is not wide enough.
21186 (__mktime_internal): Use long int to store adjusted year and yday.
21187 Use plain C rather than preprocessor commands, if that doesn't
21189 Check for overflow (and try to repair) after each probe
21190 rather than checking only at the very end. This avoids some bugs
21191 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
21192 does not equal GMT offset at maximum time).
21193 Use integer to check for overflow rather than floating point; this
21194 is more portable to non-IEEE hosts, and is a tad faster.
21195 When we detect that we are oscillating between two values,
21196 don't check whether tm_isdst has the requested value, since
21197 we already know the answer. When tm_isdst has the wrong value,
21198 use a different heuristic to find the right one, based on the
21199 extreme values actually observed in practice in tz2003a,
21200 rather than the (overly optimistic) "previous 3 calendar quarters".
21202 (not_equal_tm, print_tm, check_result): Use "const T" rather than
21203 "T const" to accommodate glibc style.
21204 (check_result): Use less-confusing report format. "long" -> "long int.
21206 Don't loop if the iteration overflows time_t.
21207 Allow a negative step in the iteration.
21209 2003-07-06 Karl Berry <karl@gnu.org>
21211 * config/depcomp: update from automake.
21212 * config/config.sub: update from prep.
21214 2003-07-03 Karl Berry <karl@gnu.org>
21216 * config/config.guess: update from prep.
21218 2003-07-01 Paul Eggert <eggert@twinsun.com>
21220 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
21221 xreadlink.c now includes it unconditionally.
21223 2003-07-01 Paul Eggert <eggert@twinsun.com>
21225 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
21226 having it depend on HAVE_SYS_TYPES_H.
21228 2003-07-01 Bruno Haible <bruno@clisp.org>
21230 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
21231 <sys/types.h> should be sufficient.
21232 Reported by Paul Eggert.
21234 2003-06-26 Karl Berry <karl@gnu.org>
21236 * config/depcomp: update from automake.
21238 2003-06-26 Bruno Haible <bruno@clisp.org>
21240 * modules/human: Depend on module stdbool.
21242 2003-06-25 Bruno Haible <bruno@clisp.org>
21244 * modules/readlink: New file.
21245 * modules/xreadlink: Depend on it.
21246 * MODULES.html.sh (func_all_modules): Add readlink.
21248 2003-06-25 Bruno Haible <bruno@clisp.org>
21250 * m4/readlink.m4: New file.
21252 2003-06-25 Bruno Haible <bruno@clisp.org>
21254 * lib/readlink.c: New file.
21256 2003-06-22 Karl Berry <karl@gnu.org>
21258 * config/srclist.txt: update mkinstalldirs from automake.
21259 * config/mkinstalldirs: update.
21261 2003-06-22 Bruno Haible <bruno@clisp.org>
21263 Portability to mingw32.
21264 * m4/ssize_t.m4: New file, from GNU gettext.
21265 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
21266 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
21268 2003-06-22 Bruno Haible <bruno@clisp.org>
21270 * modules/safe-read: Add m4/ssize_t.m4.
21271 * modules/xreadlink: Add m4/ssize_t.m4.
21273 2003-06-20 Bruno Haible <bruno@clisp.org>
21275 Assume C89, so PARAMS isn't needed.
21276 * lib/unicodeio.h (PARAMS): Remove.
21277 * lib/unicodeio.c: Don't use PARAMS.
21279 2003-06-18 Karl Berry <karl@gnu.org>
21281 * config/config.{guess,sub}: update from prep.
21283 2003-06-18 Jim Meyering <jim@meyering.net>
21285 Merge changes from coreutils.
21286 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
21287 Remove explicit declarations of xmalloc and realloc.
21289 (read_utmp): Remove anachronistic cast of xmalloc.
21291 2003-06-17 Paul Eggert <eggert@twinsun.com>
21293 Assume C89, so PARAMS isn't needed.
21294 * lib/backupfile.h (PARAMS): Remove. All uses removed.
21295 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
21296 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
21297 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
21298 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
21299 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
21300 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
21301 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
21302 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
21303 lib/xstrtod.h, lib/xstrtol.h: Likewise.
21304 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
21305 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
21306 no longer needed. Anyway, config.h should always be included before any
21309 2003-06-11 Simon Josefsson <jas@extundo.com>
21311 * modules/sysexits: New file.
21312 * MODULES.html.sh (func_all_modules): Add sysexits.
21314 2003-06-11 Simon Josefsson <jas@extundo.com>
21316 * lib/sysexit_.h: New file.
21318 2003-06-11 Derek Price <derek@ximbiot.com>
21320 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
21323 2003-06-11 Bruno Haible <bruno@clisp.org>
21325 * m4/sysexits.m4: New file.
21327 2003-06-10 Simon Josefsson <jas@extundo.com>
21329 * lib/argp.h: New file, from glibc.
21330 * lib/argp-ba.c: New file, from glibc.
21331 * lib/argp-eexst.c: New file, from glibc.
21332 * lib/argp-fmtstream.c: New file, from glibc.
21333 * lib/argp-fmtstream.h: New file, from glibc.
21334 * lib/argp-fs-xinl.c: New file, from glibc.
21335 * lib/argp-help.c: New file, from glibc.
21336 * lib/argp-namefrob.h: New file, from glibc.
21337 * lib/argp-parse.c: New file, from glibc.
21338 * lib/argp-pv.c: New file, from glibc.
21339 * lib/argp-pvh.c: New file, from glibc.
21340 * lib/argp-xinl.c: New file, from glibc.
21342 2003-06-10 Simon Josefsson <jas@extundo.com>
21344 * modules/strchrnul: New file.
21346 2003-06-10 Simon Josefsson <jas@extundo.com>
21348 * modules/argp: New file.
21350 2003-06-10 Simon Josefsson <jas@extundo.com>
21352 * m4/strchrnul.m4: New file.
21354 2003-06-10 Simon Josefsson <jas@extundo.com>
21356 * lib/strchrnul.h: New file.
21357 * lib/strchrnul.c: New file.
21359 2003-06-10 Bruno Haible <bruno@clisp.org>
21361 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
21363 2003-06-07 Karl Berry <karl@gnu.org>
21365 * config/config.{guess,sub}: update from prep.
21367 2003-06-07 Jim Meyering <jim@meyering.net>
21369 * modules/strtod: Use $(...) notation, not @...@ for
21370 AC_REPLACE'd variables.
21371 * modules/localcharset: Likewise.
21373 2003-06-07 Jim Meyering <jim@meyering.net>
21375 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
21376 in place of my name in the copyright comment.
21377 Remove definition and uses of __P.
21380 * lib/stat.c: Don't declare xmalloc explicitly.
21381 Instead, include "xalloc.h".
21382 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
21383 xrealloc, and xcalloc return values.
21384 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
21386 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
21388 2003-06-07 Bruno Haible <bruno@clisp.org>
21390 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
21391 avoid AC_CONFIG_LINKS.
21392 * modules/fnmatch (Makefile.am): Use explicit creation rule for
21393 fnmatch.h, to avoid AC_CONFIG_LINKS.
21394 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
21396 2003-06-07 Bruno Haible <bruno@clisp.org>
21398 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
21399 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
21400 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
21402 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
21403 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
21406 2003-06-06 Jim Meyering <jim@meyering.net>
21408 Merge from coreutils.
21409 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
21410 Consolidate declarations and initializations of *_base* locals.
21412 Merge from coreutils.
21413 This avoids a core dump on systems without GNU putenv,
21414 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
21415 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
21416 (unsetenv): New static function, from GNU libc.
21417 (rpl_putenv): Use it.
21419 * lib/modechange.c: Remove trailing blanks.
21421 Merge from coreutils.
21422 * lib/fsusage.c: Remove declaration of statfs.
21423 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
21425 * lib/posixtm.c: Include <stdbool.h> unconditionally.
21427 2003-06-06 Jim Meyering <jim@meyering.net>
21429 * lib/stdbool_.h: Renamed from stdbool.h.in.
21431 2003-06-06 Jim Meyering <jim@meyering.net>
21432 Bruno Haible <bruno@clisp.org>
21434 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
21435 Adjust Makefile.am snippet not to redirect directly to target.
21436 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
21438 2003-06-05 Paul Eggert <eggert@twinsun.com>
21440 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
21441 mismatch, look in future quarters as well as past. This fixes a
21442 bug when processing fall-backwards gaps immediately after a long
21443 period of daylight-saving time.
21445 * lib/mktime.c: Assume freestanding C89 or better.
21446 (HAVE_LIMITS_H): Remove. Assume it's 1.
21447 (__P): Remove; not used.
21448 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
21449 (mktime, not_equal_tm, print_tm, check_result,
21450 main): Use prototypes. Use const * where appropriate.
21451 (main): Fix typo in testing code that uncovered by above changes.
21452 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
21454 2003-06-04 Paul Eggert <eggert@twinsun.com>
21456 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
21457 locale.h, localeconv. This merges changes from coreutils.
21459 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
21460 It can be removed after the next Autoconf is released.
21461 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
21464 2003-06-04 Paul Eggert <eggert@twinsun.com>
21466 * lib/mktime.c: Fix Debian bug 177940
21467 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
21468 (localtime_offset): Now long int, not time_t, because we want it
21469 to be guaranteed to be signed. All uses changed.
21470 (__mktime_internal): If overflow would occur when adding offset,
21473 Merge 'human' changes from coreutils. Rewrite to support
21474 locale-specific notations like thousands separators.
21475 * lib/human.c: Simplify authorship notice.
21476 Include human.h immediately after config.h.
21477 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
21478 <limits.h>: Do not include, since human.h does.
21479 (SIZE_MAX, UINTMAX_MAX): New macros.
21480 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
21481 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
21482 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
21483 (power_letter): Renamed from suffixes.
21484 (generate_suffix_backwards): Remove.
21485 (adjust_value): Now takes int style (because of human.h changes)
21486 and long double value (for greater precision on some platforms).
21487 (group_number): New function.
21488 (human_readable): Use it. Use integer options, not enum.
21489 Put the options before the sizes in the arg list.
21490 Support all the new options.
21491 The old human_readable function has been removed;
21492 use inttostr.h instead.
21493 (human_readable, default_block_size, humblock):
21494 Use uintmax_t, not int, for block sizes.
21495 (human_readable_inexact, block_size_types): Remove.
21496 (block_size_opts): New constant.
21497 (human_options): Renamed from human_block_size, with new signature
21498 that allows block sizes up to UINTMAX_MAX. All callers changed.
21499 * lib/human.h: Add copyright and authorship notice.
21500 Include <limits.h> and <stdbool.h> unconditionally.
21501 (PARAMS): Remove. All uses removed.
21502 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
21503 (enum human_inexact_style): Remove tag; now a nameless enum.
21504 (human_floor, human_ceiling, human_round_to_even): Now have
21505 values 2, 0, 1 rather than -1, 1, 0.
21506 (human_group_digits, human_suppress_point_zero, human_autoscale,
21507 human_base_1024, human_SI, human_B): New constants.
21508 (human_readable_inexact, human_block_size): Remove.
21509 (human_readable): Size args are now uintmax_t, not int.
21510 (human_options): New decl.
21512 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
21513 unnecessary now that we assume C89 or better. This change
21514 imported from coreutils.
21516 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
21517 arbitrarily. This is the same patch as 2003-05-28, but it got lost
21518 in the 2003-05-30 sync from glibc.
21520 .h files should stand alone, but we shouldn't include <sys/types.h>
21521 if we can get away with just <stddef.h>.
21523 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
21524 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
21525 rather than <sys/types.h>, as we merely need size_t.
21526 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
21528 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
21529 Include <stdio.h>, to get FILE.
21530 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
21531 memcasecmp.h has included <stddef.h> and all we need is size_t.
21532 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
21533 our interface, instead of including <sys/types.h>
21535 2003-06-04 Paul Eggert <eggert@twinsun.com>
21537 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
21538 now, as glibc mktime is buggy on non-glibc systems.
21540 2003-06-03 Karl Berry <karl@gnu.org>
21542 * config/config.sub: update from prep.
21544 2003-06-02 Paul Eggert <eggert@twinsun.com>
21547 Fix some minor time-related bugs with POSIX time arguments.
21548 Some valid time stamps were being rejected (notably -1, and
21549 time stamps before 1900 on 64-bit hosts). And some invalid
21550 time stamps were being accepted, e.g. September 31.
21552 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
21553 that we can return (time_t) -1 successfully.
21554 * lib/posixtm.c: Likewise.
21555 [HAVE_STDBOOL_H]: Include <stdbool.h>.
21556 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
21557 (t): Remove static var.
21558 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
21559 of static var. All uses changed.
21560 (year): Do not reject years before 1900; they can occur with
21562 (posix_time_parse): Do not check for out-of-range components;
21563 that is now the caller's responsibility, since our checks were
21564 only approximations.
21565 (posixtime): Use mktime to check for out-of-range components,
21566 since it knows them exactly.
21567 If mktime returns (time_t) -1, check whether an error actually occurred
21568 by invoking localtime on -1.
21569 (main) [TEST_POSIXTIME]: Check for input data errors, and report
21570 posixtime failures better.
21571 Improve the test data (in comments only).
21573 2003-06-02 Karl Berry <karl@gnu.org>
21575 * config/mkinstalldirs (version): new variable.
21576 (--version): new option.
21577 (usage): improve message.
21579 2003-05-30 Karl Berry <karl@gnu.org>
21581 * lib/mktime.c: update from libc.
21583 2003-05-30 Bruno Haible <bruno@clisp.org>
21585 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
21586 * config/config.rpath: Upgrade to gettext-0.12.1.
21588 2003-05-30 Bruno Haible <bruno@clisp.org>
21590 * m4/gettext.m4: Upgrade to gettext-0.12.1.
21591 * m4/nls.m4: New file, from gettext-0.12.1.
21592 * m4/po.m4: New file, from gettext-0.12.1.
21593 * m4/progtest.m4: Upgrade to gettext-0.12.1.
21595 2003-05-30 Bruno Haible <bruno@clisp.org>
21597 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
21598 * lib/localcharset.h: Likewise.
21599 * lib/localcharset.c: Likewise.
21601 2003-05-29 Karl Berry <karl@gnu.org>
21603 * config/config.rpath: update from gettext.
21605 2003-05-28 Paul Eggert <eggert@twinsun.com>
21607 Assume the headers required for C89 freestanding compilers.
21608 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
21609 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
21610 * m4/human.m4 (gl_HUMAN): Likewise.
21611 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
21612 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
21613 * m4/userspec.m4 (gl_USERSPEC): Likewise.
21614 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
21615 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21616 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
21618 2003-05-28 Paul Eggert <eggert@twinsun.com>
21620 Assume the headers required for C89 freestanding compilers.
21621 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
21622 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
21623 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
21624 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
21625 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
21626 define, since <limits.h> is guaranteed to do that.
21627 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
21628 * lib/exclude.c: Include <stdbool.h> unconditionally.
21629 * lib/tempname.c: Include <stddef.h> unconditionally.
21630 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
21631 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
21632 <stddef.h> does that.
21633 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
21634 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
21635 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
21637 * lib/xstrtol.c: Likewise.
21638 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
21639 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
21641 * lib/addext.c (addext): Use assignment rather than cast, to avoid
21642 warnings on some platforms.
21644 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
21647 2003-05-26 Jim Meyering <jim@meyering.net>
21649 Merge in a change from coreutils:
21650 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
21651 that is guaranteed to be `no'. Use `no_such_member' to indicate
21652 that condition, rather than `-1' which is slightly misleading.
21653 Change the name of the cache variable to have the gl_ prefix.
21654 Prompted by a patch from Richard Dawe for DJGPP.
21656 2003-05-24 Karl Berry <karl@gnu.org>
21658 * config/config.guess: update from prep.
21660 2003-05-22 Karl Berry <karl@gnu.org>
21662 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
21664 2003-05-20 Karl Berry <karl@gnu.org>
21666 * config/config.guess: update from prep.
21668 2003-05-18 Karl Berry <karl@gnu.org>
21670 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
21671 might actually be set by the user.
21673 * config/depcomp, install-sh, mdate-sh: update from automake.
21675 2003-05-17 Bruno Haible <bruno@clisp.org>
21677 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
21678 invalid expansion for AC_EGREP_CPP.
21679 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21680 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21681 Suggested by Akim Demaille <akim@epita.fr> in
21682 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
21684 2003-05-12 Jim Meyering <jim@meyering.net>
21686 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
21687 the space-padded-by-default conversion specifiers, %e, %k, %l.
21689 2003-05-12 Bruno Haible <bruno@clisp.org>
21691 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
21692 the string is longer than 4 KB.
21694 2003-05-11 Karl Berry <karl@gnu.org>
21696 * config/config.{guess,sub}: update from prep.
21698 2003-05-09 Bruno Haible <bruno@clisp.org>
21700 * modules/error: Add m4/strerror_r.m4 to file list.
21702 2003-05-03 Bruno Haible <bruno@clisp.org>
21704 Upgrade to Unicode-4.0.
21705 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
21706 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
21707 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
21708 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
21709 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
21710 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
21711 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
21712 Change width of U+E0100..U+E01EF from 1 to 0.
21714 2003-04-25 Jim Meyering <jim@meyering.net>
21716 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
21717 of type size_t, not int.
21719 2003-04-25 Bruno Haible <bruno@clisp.org>
21721 * lib/copy-file.c: Include <stddef.h>, for size_t.
21723 2003-04-21 Paul Eggert <eggert@twinsun.com>
21725 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
21726 code which expansion is under static control. Patch imported from
21727 Akim Demaille's patch to Bison; see
21728 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
21730 2003-04-14 Bruno Haible <bruno@clisp.org>
21732 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
21734 2003-04-11 Jim Meyering <jim@meyering.net>
21736 Merge changes from Coreutils.
21738 2003-03-22 Jim Meyering <jim@meyering.net>
21740 * lib/strftime.c (widen): Cast alloca return value to proper type.
21742 2003-01-19 Ulrich Drepper <drepper@redhat.com>
21745 * lib/strftime.c (my_strftime): Handle very large width
21746 specifications for numeric values correctly. Improve checks for
21749 2003-01-19 Jim Meyering <jim@meyering.net>
21751 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
21753 (nl_get_alt_digit) [! defined my_strftime]: Define.
21754 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
21755 _nl_get_alt_digit and _nl_get_walt_digit.
21757 * lib/strftime.c (my_strftime): Merge in locale-related changes from
21758 libc. These changes have no effect outside of _LIBC.
21760 2003-04-10 Bruno Haible <bruno@clisp.org>
21762 * modules/findprog: New file.
21763 * MODULES.html.sh (func_all_modules): Add it.
21765 2003-04-10 Bruno Haible <bruno@clisp.org>
21767 * m4/findprog.m4: New file.
21768 * m4/eaccess.m4: New file.
21770 2003-04-10 Bruno Haible <bruno@clisp.org>
21772 * lib/findprog.h: New file, from GNU gettext.
21773 * lib/findprog.c: New file, from GNU gettext.
21775 2003-04-05 Jim Meyering <jim@meyering.net>
21777 Merge changes from Coreutils.
21779 * lib/exclude.h (PARAMS): Remove definition and uses.
21780 * lib/exclude.c: Remove uses of `PARAMS'.
21782 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
21783 Add test-cases for DOS filenames. Declare program_name.
21784 (main): Set up program_name. Patch by Rich Dawe.
21786 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
21788 Use mntctl's return value to drive the entry-processing loop, since
21789 we can't rely on the value of the vmt_length member in the last
21790 entry. On some systems doing so could result in exhausting
21791 virtual memory. Based in part on a patch from Mike Jetzer.
21793 2003-04-04 Bruno Haible <bruno@clisp.org>
21795 * modules/linebreak: New file.
21796 * MODULES.html.sh (func_all_modules): Add it.
21798 2003-04-04 Bruno Haible <bruno@clisp.org>
21800 * m4/linebreak.m4: New file.
21802 2003-04-04 Bruno Haible <bruno@clisp.org>
21804 * lib/linebreak.h: New file, from GNU gettext.
21805 * lib/linebreak.c: New file, from GNU gettext with slight
21807 * lib/lbrkprop.h: New file, from GNU gettext.
21809 2003-04-03 Bruno Haible <bruno@clisp.org>
21811 * modules/utf8-ucs4: New file.
21812 * modules/utf16-ucs4: New file.
21813 * modules/ucs4-utf8: New file.
21814 * modules/ucs4-utf16: New file.
21815 * MODULES.html.sh (func_all_modules): Add them.
21817 2003-04-03 Bruno Haible <bruno@clisp.org>
21819 * m4/utf-ucs4.m4: New file.
21820 * m4/ucs4-utf.m4: New file.
21822 2003-04-03 Bruno Haible <bruno@clisp.org>
21824 * lib/utf8-ucs4.h: New file, from GNU gettext.
21825 * lib/utf16-ucs4.h: New file, from GNU gettext.
21826 * lib/ucs4-utf8.h: New file, from GNU gettext.
21827 * lib/ucs4-utf16.h: New file, from GNU gettext.
21829 2003-04-02 Bruno Haible <bruno@clisp.org>
21831 * modules/binary-io: New file.
21832 * MODULES.html.sh (func_all_modules): Add it.
21834 2003-04-02 Bruno Haible <bruno@clisp.org>
21836 * lib/binary-io.h: New file, from GNU gettext.
21838 2003-04-01 Bruno Haible <bruno@clisp.org>
21840 * modules/pathname: New file.
21841 * MODULES.html.sh (func_all_modules): Add it.
21843 2003-04-01 Bruno Haible <bruno@clisp.org>
21845 * lib/pathname.h: New file, from GNU gettext.
21846 * lib/concatpath.c: New file, from GNU gettext.
21848 2003-03-30 Bruno Haible <bruno@clisp.org>
21850 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
21852 2003-03-30 Bruno Haible <bruno@clisp.org>
21854 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
21855 function chown() doesn't exist.
21857 2003-03-28 Bruno Haible <bruno@clisp.org>
21859 * modules/copy-file: New file.
21860 * MODULES.html.sh (func_all_modules): Add it.
21862 2003-03-28 Bruno Haible <bruno@clisp.org>
21864 * m4/copy-file.m4: New file.
21866 2003-03-28 Bruno Haible <bruno@clisp.org>
21868 * lib/copy-file.h: New file, from GNU gettext.
21869 * lib/copy-file.c: New file, from GNU gettext.
21871 2003-03-18 Jim Meyering <jim@meyering.net>
21873 * lib/quote.c (quote_n): Fix typo in comment.
21875 2003-03-18 Bruno Haible <bruno@clisp.org>
21877 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
21879 * m4/onceonly_2_57.m4: Likewise.
21881 2003-03-17 Bruno Haible <bruno@clisp.org>
21883 * m4/onceonly.m4: Require autoconf 2.54 or newer.
21884 (m4_quote): Remove macro.
21885 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
21887 2003-03-14 Jim Meyering <jim@meyering.net>
21889 Merge changes from Coreutils.
21890 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
21891 to be const, in order to avoid warnings.
21892 (obstack_room): Likewise.
21893 (obstack_empty_p): Likewise.
21895 2003-03-14 Bruno Haible <bruno@clisp.org>
21897 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
21898 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
21900 2003-03-13 Paul Eggert <eggert@twinsun.com>
21902 Merge changes from Bison.
21903 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
21904 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
21905 when compiling Bison 1.875's `bitset bset = obstack_alloc
21906 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
21907 * lib/hash.c: Include <stdbool.h> unconditionally.
21909 2003-03-13 Paul Eggert <eggert@twinsun.com>
21911 * m4/onceonly.m4 (m4_quote): New macro.
21912 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
21913 Quote AC_FOREACH variable-expansions properly.
21915 2003-03-13 Paul Eggert <eggert@twinsun.com>
21917 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
21919 2003-03-09 Paul Eggert <eggert@twinsun.com>
21921 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
21922 Reported by Bruce Becker; see:
21923 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
21925 2003-03-03 Paul Eggert <eggert@twinsun.com>
21926 Bruno Haible <bruno@clisp.org>
21928 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
21929 Reported by John Hughes, see
21930 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
21932 2003-02-20 Bruno Haible <bruno@clisp.org>
21934 * MODULES.html.sh (func_all_modules): Add poll.
21936 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21938 * modules/poll: New file.
21940 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21942 * lib/poll_.h: New file.
21943 * lib/poll.c: New file.
21945 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21947 * m4/poll.m4: New file.
21949 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21951 * modules/mathl: New file.
21953 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21955 * lib/mathl.h: New file.
21956 * lib/acosl.c: New file.
21957 * lib/asinl.c: New file.
21958 * lib/atanl.c: New file.
21959 * lib/ceill.c: New file.
21960 * lib/cosl.c: New file.
21961 * lib/expl.c: New file.
21962 * lib/floorl.c: New file.
21963 * lib/frexpl.c: New file.
21964 * lib/ldexpl.c: New file.
21965 * lib/logl.c: New file.
21966 * lib/sincosl.c: New file.
21967 * lib/sinl.c: New file.
21968 * lib/sqrtl.c: New file.
21969 * lib/tanl.c: New file.
21970 * lib/trigl.c: New file.
21971 * lib/trigl.h: New file.
21973 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21975 * m4/mathl.m4: New file.
21977 2003-02-18 Bruno Haible <bruno@clisp.org>
21979 * MODULES.html.sh (func_all_modules): Add mathl.
21981 2003-02-17 Bruno Haible <bruno@clisp.org>
21983 * modules/mkdtemp: New module.
21984 * MODULES.html.sh (func_all_modules): Add it.
21986 2003-02-17 Bruno Haible <bruno@clisp.org>
21988 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
21990 2003-02-17 Bruno Haible <bruno@clisp.org>
21992 * lib/mkdtemp.h: New file, from GNU gettext.
21993 * lib/mkdtemp.c: New file, from GNU gettext.
21995 2003-02-02 Jim Meyering <jim@meyering.net>
21997 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
22000 2003-01-31 Bruno Haible <bruno@clisp.org>
22002 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
22004 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
22006 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
22008 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
22011 2003-01-31 Bruno Haible <bruno@clisp.org>
22013 * lib/rename.c: #undef rename before defining rpl_rename.
22014 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
22016 2003-01-30 Bruno Haible <bruno@clisp.org>
22018 * modules/vasnprintf, modules/vasprintf: New modules.
22019 * MODULES.html.sh (func_all_modules): Add them.
22021 2003-01-30 Bruno Haible <bruno@clisp.org>
22023 * m4/signed.m4: New file, from GNU gettext.
22024 * m4/longdouble.m4: New file, from GNU gettext.
22025 * m4/wchar_t.m4: New file, from GNU gettext.
22026 * m4/wint_t.m4: New file, from GNU gettext.
22027 * m4/vasnprintf.m4: New file.
22028 * m4/vasprintf.m4: New file.
22030 2003-01-30 Bruno Haible <bruno@clisp.org>
22032 * lib/printf-args.h: New file, from GNU gettext.
22033 * lib/printf-args.c: New file, from GNU gettext.
22034 * lib/printf-parse.h: New file, from GNU gettext.
22035 * lib/printf-parse.c: New file, from GNU gettext.
22036 * lib/vasnprintf.h: New file, from GNU gettext.
22037 * lib/vasnprintf.c: New file, from GNU gettext.
22038 * lib/asnprintf.c: New file, from GNU gettext.
22039 * lib/vasprintf.h: New file, from GNU gettext with modifications.
22040 * lib/vasprintf.c: New file, from GNU gettext.
22041 * lib/asprintf.c: New file, from GNU gettext.
22043 2003-01-29 Bruno Haible <bruno@clisp.org>
22045 * modules/stpncpy: New module.
22046 * MODULES.html.sh (func_all_modules): Add it.
22048 2003-01-29 Bruno Haible <bruno@clisp.org>
22050 * m4/stpncpy.m4: New file.
22052 2003-01-29 Bruno Haible <bruno@clisp.org>
22054 * lib/stpncpy.h: New file, from GNU gettext with modifications.
22055 * lib/stpncpy.c: New file, from GNU gettext with modifications.
22057 2003-01-28 Bruno Haible <bruno@clisp.org>
22059 * modules/c-ctype: New module.
22060 * MODULES.html.sh (func_all_modules): Add it.
22062 2003-01-28 Bruno Haible <bruno@clisp.org>
22064 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
22066 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
22069 2003-01-27 Bruno Haible <bruno@clisp.org>
22071 * modules/xsetenv: New module.
22072 * MODULES.html.sh (func_all_modules): Add it.
22074 2003-01-27 Bruno Haible <bruno@clisp.org>
22076 * lib/xsetenv.h: New file, from GNU gettext.
22077 * lib/xsetenv.c: New file, from GNU gettext.
22079 2003-01-23 Jim Meyering <jim@meyering.net>
22081 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
22082 from working on systems without dirfd (at least Irix and OSF1/Tru64).
22084 2003-01-23 Bruno Haible <bruno@clisp.org>
22086 * modules/minmax: New module.
22087 * MODULES.html.sh (func_all_modules): Add it.
22089 2003-01-23 Bruno Haible <bruno@clisp.org>
22091 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
22094 2003-01-22 Bruno Haible <bruno@clisp.org>
22096 * modules/exit: New module.
22097 * MODULES.html.sh (func_all_modules): Add it.
22099 2003-01-22 Bruno Haible <bruno@clisp.org>
22101 * lib/exit.h: New file, from GNU gettext.
22103 2003-01-19 Bruno Haible <bruno@clisp.org>
22105 * gnulib-tool: Recognize option --extract-maintainer.
22106 (func_get_maintainer): New function.
22107 * modules/*: Add Maintainer entry.
22109 2003-01-16 Jim Meyering <jim@meyering.net>
22111 * m4/regex.m4: The `regex' struct is both input and output.
22112 Initialize it before each use. Patch by Tim Waugh.
22114 2003-01-16 Bruno Haible <bruno@clisp.org>
22116 * MODULES.html.sh: Add a table of contents. Add the module name as
22117 leftmost column. Add hyperlinks.
22119 2003-01-15 Bruno Haible <bruno@clisp.org>
22121 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
22123 2003-01-15 Bruno Haible <bruno@clisp.org>
22125 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
22126 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
22129 2003-01-15 Bruno Haible <bruno@clisp.org>
22131 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
22133 2003-01-15 Bruno Haible <bruno@clisp.org>
22135 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
22136 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
22138 2003-01-14 Jim Meyering <jim@meyering.net>
22140 * lib/same.c (same_name): Tweak a comment.
22142 2003-01-14 Bruno Haible <bruno@clisp.org>
22144 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
22145 when a string comparison is sufficient.
22147 2003-01-14 Bruno Haible <bruno@clisp.org>
22149 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
22152 2003-01-14 Bruno Haible <bruno@clisp.org>
22154 * lib/hash-pjw.c: Add comment about low quality of this function.
22156 2003-01-13 Bruno Haible <bruno@clisp.org>
22158 * modules/stpcpy: Distribute lib/stpcpy.h.
22159 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
22161 2003-01-13 Bruno Haible <bruno@clisp.org>
22163 * modules/*: Add a description.
22164 * modules/strpbrk: Fix Makefile.am snippet.
22165 * modules/strtoimax: Fix dependencies.
22166 * modules/strtoumax: Likewise.
22168 2003-01-13 Bruno Haible <bruno@clisp.org>
22170 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
22171 * modules/alloca (Makefile.am): All object files depend on alloca.h.
22172 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
22174 2003-01-13 Bruno Haible <bruno@clisp.org>
22176 * gnulib-tool (func_create_testdir): Store config/* files in the main
22178 * config.rpath: Move to ...
22179 * config/config.rpath: ... here.
22180 * modules/gettext: Contains config/config.rpath, not config.rpath.
22181 * modules/iconv: Likewise.
22183 2003-01-12 Paul Eggert <eggert@twinsun.com>
22185 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22186 to avoid collisions with libcurses and libreadline.
22188 * m4/getstr.m4: Remove.
22189 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
22191 2003-01-12 Paul Eggert <eggert@twinsun.com>
22193 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22194 to avoid collisions with libcurses and libreadline.
22196 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
22197 * lib/getstr.h, getstr.c: Remove.
22198 * lib/getline.c: Include "getline.h", to check interface.
22199 Move body of old getstr.c here: this defines MIN_CHUNK and
22200 declares getdelim2, which is renamed from getstr.
22201 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
22203 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
22205 * lib/linebuffer.h: Likewise.
22206 (readline): Remove backward-compatibility macro.
22208 2003-01-12 Paul Eggert <eggert@twinsun.com>
22210 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
22211 to avoid collisions with libcurses and libreadline.
22213 * MODULES.html.sh: Remove getstr.
22214 * modules/getline: Depend on unlocked-io, not getstr.
22216 2003-01-12 Jim Meyering <jim@meyering.net>
22218 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
22220 2003-01-10 Bruno Haible <bruno@clisp.org>
22222 * modules/alloca: Change Makefile.am requirements. Simplify Include
22223 requirements. Add lib/alloca_.h to file list.
22225 2003-01-10 Bruno Haible <bruno@clisp.org>
22227 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
22229 2003-01-10 Bruno Haible <bruno@clisp.org>
22231 * lib/alloca_.h: New file.
22232 * lib/getdate.y: Unconditionally include alloca.h.
22233 * lib/makepath.c: Likewise.
22234 * lib/setenv.c: Likewise.
22235 * lib/userspec.c: Likewise.
22237 2003-01-09 Karl Berry <karl@gnu.org>
22239 * MODULES.html.sh: include `dirname $0` in PATH, to find
22242 2003-01-09 Bruno Haible <bruno@clisp.org>
22244 * modules/stdbool: Change configure.ac, Makefile.am requirements.
22245 Simplify Include requirements. Add lib/stdbool.h.in to file list.
22247 2003-01-09 Bruno Haible <bruno@clisp.org>
22249 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
22251 2003-01-09 Bruno Haible <bruno@clisp.org>
22253 * lib/stdbool.h.in: New file.
22255 2003-01-09 Bruno Haible <bruno@clisp.org>
22257 * gnulib-tool (func_all_modules): Ignore files ending in ~.
22258 * MODULES.html.sh: Likewise.
22260 2003-01-08 Jim Meyering <jim@meyering.net>
22262 * lib/full-write.c: Undefine and define-away `const' after inclusion
22263 of errno.h, not before. Suggestion from Bruno Haible.
22265 2003-01-08 Bruno Haible <bruno@clisp.org>
22267 * modules/full-read: Depend on full-write.
22269 2003-01-08 Bruno Haible <bruno@clisp.org>
22271 * lib/safe-read.c: Include specification header first, to ensure its
22273 * lib/full-write.c: Likewise.
22275 2003-01-07 Jim Meyering <jim@meyering.net>
22277 * lib/full-write.c: Rework so that it may serve to define full_read,
22279 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
22281 2003-01-07 Bruno Haible <bruno@clisp.org>
22283 * lib/strtoimax.c: Include <stdint.h> as an alternative to
22285 * lib/xstrtol.h: Likewise.
22286 * lib/xstrtoimax.c: Likewise.
22287 * lib/xstrtoumax.c: Likewise.
22288 * lib/human.h: Likewise.
22290 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
22291 on systems that have <inttypes.h> but not <stdint.h>.
22293 2003-01-07 Bruno Haible <bruno@clisp.org>
22295 * MODULES.html.sh: Add copyright notice.
22296 (missed_files): Omit CVS directory entries.
22297 (func_module): Make it work with sed-3.02.
22298 * MODULES.txt: Remove file.
22300 2003-01-06 Jim Meyering <jim@meyering.net>
22302 * lib/version-etc.c: Update year in translatable copyright string.
22304 2003-01-03 Karl Berry <karl@gnu.org>
22306 * config/config.{guess,sub}: update from prep.
22308 2003-01-02 Karl Berry <karl@gnu.org>
22310 * doc/COPYING.DOC: belatedly updated to 1.2.
22312 2003-01-01 Karl Berry <karl@gnu.org>
22314 * gnulib-tool (func_verify_module): report module name $module in
22315 error message, not $1.
22316 * gnulib-tool (create-testdir): don't complain if destdir couldn't
22317 be created, only if it doesn't exist.
22318 * gnulib-tool (last_checkin_date): don't expand the $Date here.
22320 2002-12-31 Paul Eggert <eggert@twinsun.com>
22322 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
22324 2002-12-31 Paul Eggert <eggert@twinsun.com>
22326 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
22327 memcmp if strcoll doesn't work.
22329 2002-12-31 Bruno Haible <bruno@clisp.org>
22331 * lib/utime.c (utime_null): No need to call ftruncate if the file was
22334 2002-12-31 Bruno Haible <bruno@clisp.org>
22336 * lib/memcoll.c (STRCOLL): New macro.
22339 2002-12-31 Bruno Haible <bruno@clisp.org>
22341 * lib/localcharset.h: New file.
22342 * lib/localcharset.c: Include it.
22343 * lib/unicodeio.c: Likewise.
22345 2002-12-31 Bruno Haible <bruno@clisp.org>
22347 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
22348 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
22350 2002-12-31 Bruno Haible <bruno@clisp.org>
22352 * lib/getline.h: Include <stddef.h>, for size_t.
22354 * lib/unicodeio.h: Include <stddef.h>, for size_t.
22355 * lib/unicodeio.c: Don't include <stddef.h>.
22357 2002-12-31 Bruno Haible <bruno@clisp.org>
22359 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
22362 2002-12-24 Karl Berry <karl@gnu.org>
22364 * config/config.guess: update from prep.
22366 2002-12-24 Bruno Haible <bruno@clisp.org>
22368 General infrasructure.
22369 * m4/README: Rewritten.
22370 * m4/onceonly.m4: New file.
22371 * m4/onceonly_2_57.m4: New file.
22374 * m4/atexit.m4: New file.
22377 * m4/strtod.m4: New file.
22380 * m4/strtol.m4: New file.
22383 * m4/strtoul.m4: New file.
22386 * m4/memchr.m4: New file.
22389 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
22390 (jm_FUNC_MEMCMP): Invoke it.
22393 * m4/memcpy.m4: New file.
22396 * m4/memmove.m4: New file.
22399 * m4/memset.m4: New file.
22402 * m4/strcspn.m4: New file.
22405 * m4/strpbrk.m4: New file.
22408 * m4/strstr.m4: New file.
22411 * m4/strerror.m4: New file.
22414 * m4/mktime.m4: Renamed from jm-mktime.m4.
22415 (gl_PREREQ_MKTIME): New macro.
22416 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
22419 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
22420 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
22421 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
22424 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
22425 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
22426 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
22429 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
22430 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
22431 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
22433 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
22436 * m4/xalloc.m4: New file.
22439 * m4/alloca.m4: New file.
22442 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
22443 (jm_FUNC_PUTENV): Invoke it.
22446 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
22447 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
22448 when invoked twice.
22449 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
22453 * m4/memrchr.m4: New file.
22456 * m4/stpcpy.m4: New file.
22459 * m4/strcase.m4: New file.
22462 * m4/strdup.m4: New file.
22465 * m4/strnlen.m4: New file.
22468 * m4/strndup.m4: New file.
22471 * m4/xstrtod.m4: New file.
22474 * m4/xstrtol.m4: New file.
22477 * m4/getdate.m4: New file.
22479 Module unlocked-io.
22480 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
22481 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
22482 * m4/jm-glibc-io.m4n: Remove file.
22484 Module long-options.
22485 * m4/long-options.m4: New file.
22488 * m4/md5.m4: New file.
22491 * m4/sha.m4: New file.
22494 * m4/getstr.m4: New file.
22497 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
22498 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
22499 <sys/types.h>, for size_t. Use the function name gnu_getline, not
22500 simply getline. Infoke gl_PREREQ_GETLINE.
22503 * m4/obstack.m4: New file.
22506 * m4/hash.m4: New file.
22509 * m4/readtokens.m4: New file.
22512 * m4/strverscmp.m4: New file.
22515 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
22519 * m4/strtoll.m4: New file.
22522 * m4/strtoull.m4: New file.
22525 * m4/strtoimax.m4: New file.
22528 * m4/strtoumax.m4: New file.
22531 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
22532 jm_AC_PREREQ_XSTRTOIMAX.
22533 Moved the strtol prerequisites to strtol.m4.
22534 Moved the strtoll prerequisites to strtoll.m4.
22535 Moved the strtoimax prerequisites to strtoimax.m4.
22538 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
22539 jm_AC_PREREQ_XSTRTOUMAX.
22540 Moved the strtoul prerequisites to strtoul.m4.
22541 Moved the strtoull prerequisites to strtoull.m4.
22542 Moved the strtoumax prerequisites to strtoumax.m4.
22545 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
22546 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
22549 * m4/dup2.m4: New file.
22552 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
22553 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
22556 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
22557 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
22559 Module gettimeofday.
22560 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
22561 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
22562 gl_PREREQ_GETTIMEOFDAY.
22565 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
22566 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
22569 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
22570 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
22571 jm_AC_TYPE_UINTMAX_T.
22572 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
22575 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
22576 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
22579 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
22580 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
22583 * m4/timespec.m4 (gl_TIMESPEC): New macro.
22584 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
22585 * m4/st_mtim.m4: Indentation.
22588 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
22589 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
22590 gl_PREREQ_NANOSLEEP.
22593 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
22594 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
22595 (gl_REGEX): New macro.
22598 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
22599 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
22602 * m4/rmdir.m4: New file.
22605 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
22606 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
22607 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
22610 * m4/dirname.m4: New file.
22613 * m4/getopt.m4: New file.
22615 Module unistd-safer.
22616 * m4/unistd-safer.m4: New file.
22619 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
22621 (gl_PREREQ_FNMATCH_EXTRA): New macro.
22622 (gl_FUNC_FNMATCH_POSIX): New macro.
22623 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
22624 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
22628 * m4/exclude.m4: New file.
22631 * m4/human.m4: New file.
22637 * m4/backupfile.m4: New file.
22638 * m4/d-ino.m4: Indentation.
22641 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
22642 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
22643 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
22646 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
22650 * m4/euidaccess.m4: New file.
22653 * m4/file-type.m4: New file.
22656 * m4/fileblocks.m4: New file.
22659 * m4/filemode.m4: New file.
22662 * m4/isdir.m4: New file.
22665 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
22666 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
22669 * m4/makepath.m4: New file.
22672 * m4/modechange.m4: New file.
22675 * m4/mountlist.m4: New file.
22676 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
22679 Module path-concat.
22680 * m4/path-concat.m4: New file.
22683 * m4/pathmax.m4: New file.
22686 * m4/same.m4: New file.
22689 * m4/save-cwd.m4: New file.
22692 * m4/savedir.m4: New file.
22695 * m4/xgetcwd.m4: New file.
22696 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
22699 * m4/xreadlink.m4: New file.
22702 * m4/safe-read.m4: New file.
22705 * m4/safe-write.m4: New file.
22708 * m4/closeout.m4: New file.
22710 Module stdio-safer.
22711 * m4/stdio-safer.m4: New file.
22714 * m4/getpass.m4: New file.
22717 * m4/getugroups.m4: New file.
22719 Module group-member.
22720 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
22721 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
22724 * m4/idcache.m4: New file.
22727 * m4/userspec.m4: New file.
22730 * m4/clock_time.m4: New file.
22731 * m4/gettime.m4: New file.
22734 * m4/settime.m4: New file.
22737 * m4/posixtm.m4: New file.
22739 Module gethostname.
22740 * m4/gethostname.m4: New file.
22743 * m4/canon-host.m4: New file.
22746 * m4/codeset.m4: New file, from gettext-0.11.5.
22747 * m4/gettext.m4: New file, from gettext-0.11.5.
22748 * m4/glibc21.m4: New file, from gettext-0.11.5.
22749 * m4/iconv.m4: New file, from gettext-0.11.5.
22750 * m4/intdiv0.m4: New file, from gettext-0.11.5.
22751 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
22752 * m4/inttypes.m4: New file, from gettext-0.11.5.
22753 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
22754 * m4/isc-posix.m4: New file, from gettext-0.11.5.
22755 * m4/lcmessage.m4: New file, from gettext-0.11.5.
22756 * m4/lib-ld.m4: New file, from gettext-0.11.5.
22757 * m4/lib-link.m4: New file, from gettext-0.11.5.
22758 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
22759 * m4/progtest.m4: New file, from gettext-0.11.5.
22760 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
22761 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
22762 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
22764 Module localcharset.
22765 * m4/localcharset.m4: New file.
22767 Module hard-locale.
22768 * m4/hard-locale.m4: New file.
22771 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
22773 * m4/mbrtowc.m4: Add comment.
22776 * m4/memcasecmp.m4: New file.
22779 * m4/memcoll.m4: New file.
22782 * m4/unicodeio.m4: New file.
22785 * m4/rpmatch.m4: New file.
22788 * m4/yesno.m4: New file.
22791 * m4/exitfail.m4: New file.
22794 * m4/c-stack.m4 (gl_C_STACK): New macro.
22795 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
22798 * m4/error.m4 (gl_ERROR): New macro.
22799 (jm_PREREQ_ERROR): Use onceonly macros.
22802 * m4/fatal.m4: New file.
22805 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
22806 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
22808 Module getpagesize.
22809 * m4/getpagesize.m4: New file.
22811 Module getusershell.
22812 * m4/getusershell.m4: New file.
22815 * m4/physmem.m4: New file.
22818 * m4/posixver.m4: New file.
22821 * m4/quotearg.m4: New file.
22824 * m4/quote.m4: New file.
22827 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
22830 * m4/sig2str.m4: New file.
22833 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
22835 * m4/intmax_t.m4: New file.
22836 * m4/d-type.m4: Indentation.
22837 * m4/jm-macros.m4: Update.
22838 * m4/prereq.m4 (jm_PREREQ): Update.
22839 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
22840 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
22841 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
22842 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
22843 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
22844 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
22845 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
22846 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
22847 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
22848 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
22849 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
22850 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
22851 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
22852 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
22853 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
22854 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
22855 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
22856 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
22857 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
22859 2002-12-24 Bruno Haible <bruno@clisp.org>
22861 * MODULES.txt: Update according to m4/ changes.
22864 * config.rpath: New file, from gettext-0.11.5.
22866 * modules/*: New module descriptions.
22867 * gnulib-tool: New file.
22868 * MODULES.html.sh: New file.
22870 2002-12-21 Karl Berry <karl@gnu.org>
22872 * doc/fdl.texi: update to version 1.2.
22874 2002-12-19 Karl Berry <karl@gnu.org>
22876 * config/config.guess: update from prep.
22878 2002-12-18 Bruno Haible <bruno@clisp.org>
22880 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
22881 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
22883 2002-12-17 Bruno Haible <bruno@clisp.org>
22885 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
22886 stdlib.h, string.h.
22888 2002-12-17 Bruno Haible <bruno@clisp.org>
22890 * lib/canon-host.c (strdup): Remove unused declaration.
22892 * lib/fsusage.c: Include full_read.h.
22893 (get_fs_usage): Use full_read instead of safe_read.
22895 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
22897 2002-12-12 Karl Berry <karl@gnu.org>
22899 * config/config.guess: update from prep.
22901 2002-12-11 Bruno Haible <bruno@clisp.org>
22903 * m4/setenv.m4: New file, from gettext-0.11.5.
22905 2002-12-11 Bruno Haible <bruno@clisp.org>
22907 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
22909 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
22912 2002-12-11 Bruno Haible <bruno@clisp.org>
22914 * setenv.c (alloca): Fall back to malloc.
22915 (freea): New macro.
22916 (setenv): Use freea() to free memory allocated with alloca().
22918 2002-11-13 Bruno Haible <bruno@clisp.org>
22920 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
22921 function declarations.
22922 * unsetenv.c (unsetenv): Likewise.
22924 2002-03-04 Bruno Haible <bruno@clisp.org>
22926 Portability to AIX 4.3.3.
22927 * unsetenv.c: New file, extracted from setenv.c.
22928 * setenv.c: Move the unsetenv() function to unsetenv.c.
22930 2001-12-20 Bruno Haible <bruno@clisp.org>
22932 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
22933 use malloc instead. For SunOS 4.
22935 2001-12-11 Bruno Haible <bruno@clisp.org>
22937 * setenv.c: Declare alloca.
22938 (compar_fn_t): New typedef.
22939 (KNOWN_VALUE, STORE_VALUE): Use it.
22941 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
22944 2002-12-10 Paul Eggert <eggert@twinsun.com>
22946 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
22947 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
22948 Choose values that are less likely to collide with system fnmatch
22950 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
22951 defined (e.g., a pure POSIX system).
22952 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
22953 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
22955 2002-12-06 Paul Eggert <eggert@twinsun.com>
22957 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
22958 a pain in practice to deal with generated m4 files. This change
22959 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
22961 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
22962 and jm-glibc-io.m4, as they are no longer a special case.
22963 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
22964 kludge and the auto-generation stuff. Check only whether the
22965 functions are declared, not whether they exist, since older hosts
22966 that don't declare the functions can't use the optimization anyway.
22968 2002-12-06 Jim Meyering <jim@meyering.net>
22970 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
22972 Merge in changes from libc's misc/error.c, in preparation
22973 for the merge of gnulib's changes back into libc.
22975 * lib/error.c (_): Define only if not already defined.
22976 Move definition to follow all #include directives.
22977 Include unlocked-io.h only if !_LIBC.
22978 [_LIBC]: Include <libio/libioP.h>.
22979 [USE_IN_LIBIO]: Include <libio/iolibio.h>
22980 (fflush): Tweak definition to use INTUSE.
22983 2002-12-05 Paul Eggert <eggert@twinsun.com>
22985 * lib/alloca.c [defined emacs]: Include "lisp.h".
22986 (xalloc_die) [defined emacs]: New macro.
22987 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
22988 [! defined emacs]: Include <xalloc.h>.
22989 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
22990 (pointer): Typedef to POINTER_TYPE *.
22991 (malloc): Remove decl; we now always use xmalloc.
22992 (alloca): Use old-style definition, since Emacs needs this.
22993 Check for arithmetic overflow when computing combined size.
22995 2002-12-04 Paul Eggert <eggert@twinsun.com>
22997 Do not generate unlocked-io.h automatically, since it's easier to
22998 maintain it by hand.
23000 * lib/unlocked-io.h: New file, from GNU diffutils,
23001 but with proper copyright notice and attribution.
23002 * lib/gen-uio: Remove.
23003 * lib/Makefile.am: Add copyright notice.
23004 (libfetish_a_SOURCES): Add unlocked-io.h.
23005 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
23006 (DISTCLEANFILES, io_functions): Remove macros.
23007 (EXTRA_DIST): Remove gen_uio.
23008 (unlocked-io.h): Remove rule.
23010 2002-12-04 Jim Meyering <jim@meyering.net>
23012 Reflect the fact that stat.c and lstat.c are no longer generated.
23013 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
23014 (DISTCLEANFILES): Likewise.
23015 (EXTRA_DIST): Likewise.
23016 (all_local): Don't depend on stat.c or lstat.c.
23017 (stat.c, lstat.c): Remove rules.
23018 (EXTRA_DIST): Remove xstat.in.
23020 * lib/xstat.in: Remove file. Contents moved into stat.c.
23021 * lib/stat.c: New file. Contents mostly from xstat.in.
23022 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
23023 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
23025 * lib/safe-read.c: Rework so that it may serve to define safe_write,
23027 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
23029 2002-12-03 Jim Meyering <jim@meyering.net>
23031 * lib/safe-read.c, safe-write.c: Change variable names and comments,
23032 but not semantics, to minimize the differences between these two files.
23033 (safe_read): Change comment to mention SAFE_READ_ERROR.
23035 * lib/safe-read.c (IS_EINTR): Define.
23036 (safe_read): Use IS_EINTR in place of in-function cpp directives.
23038 2002-12-02 Jim Meyering <jim@meyering.net>
23040 * lib/safe-read.c (EINTR): Define.
23041 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23042 (INT_MAX): Provide fallback.
23043 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
23045 * lib/safe-read.h (SAFE_READ_ERROR): Define.
23047 2002-12-02 Bruno Haible <bruno@clisp.org>
23049 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
23050 Define, taken from safe-read.c.
23051 (INT_MAX): Provide fallback.
23052 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
23053 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
23055 * lib/safe-read.c (EINTR): Remove definition.
23056 (safe_read): Don't use EINTR if it is absent.
23058 2002-12-01 Jim Meyering <jim@meyering.net>
23060 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
23062 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
23064 2002-11-27 Paul Eggert <eggert@twinsun.com>
23066 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
23067 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
23068 with `if (! (value < limit)) abort ();', for readability.
23070 2002-11-26 Karl Berry <karl@gnu.org>
23072 * lib/strdup.c: copy from libc again, with jim's ok.
23073 * lib/.cppi-disable: re-add strdup.c
23075 2002-11-25 Karl Berry <karl@gnu.org>
23077 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
23078 instead of "strtol.c".
23080 2002-11-25 Karl Berry <karl@gnu.org>
23082 * config/install-sh: update from automake for variable quoting, $0 in
23085 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
23086 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
23089 2002-11-25 Jim Meyering <jim@meyering.net>
23091 * lib/mktime.c: Sync from libc, now that it has the latest fix.
23093 2002-11-24 Karl Berry <karl@gnu.org>
23095 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
23096 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
23098 2002-11-24 Jim Meyering <jim@meyering.net>
23100 Update from coreutils:
23102 * lib/mktime.c: Merge in changes from libc.
23104 Avoid a link-time failure on some Linux systems.
23105 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
23107 (__mon_yday): Declare with the STATIC attribute.
23108 (__mktime_internal): Likewise.
23109 Based on a report from Greg Schafer.
23111 2002-11-23 Jim Meyering <jim@meyering.net>
23113 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
23114 Use `unsigned', not `int', as type of index.
23116 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
23118 * lib/fsusage.c: Remove unneeded parentheses around operands of
23121 2002-11-22 Paul Eggert <eggert@twinsun.com>
23123 * lib/quotearg.h: Allow multiple inclusion by surrounding with
23124 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
23125 so that we can be included first.
23126 (PARAMS): Remove; we now assume C89 or later. All uses removed.
23127 * lib/quotearg.c: Include quotearg.h immediately after config.h.
23128 No need to include stddef.h or sys/types.h any more.
23129 Surround local include files with "", not "<>".
23130 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
23131 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
23132 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
23133 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
23134 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
23135 (ISPRINT): Remove; no longer needed now that we assume C89.
23137 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
23140 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
23141 quotearg_char): Use SIZE_MAX rather than
23142 (size_t) -1 when we are talking about "infinity".
23144 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
23146 2002-11-22 Paul Eggert <eggert@twinsun.com>
23148 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
23149 hint that one should use `if (! x) abort ();' rather than `assert
23150 (x);', and anyway it's one less thing to worry about configuring.
23151 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
23152 hash_rehash, hash_insert): Use abort rather than assert.
23154 2002-11-22 Bruno Haible <bruno@clisp.org>
23156 * lib/safe-read.h: Assume C89. Add comments.
23157 (safe_read): Change return type to size_t.
23158 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
23159 byte counts > SSIZE_MAX correctly.
23160 * lib/safe-write.h: New file.
23161 * lib/safe-write.c: New file.
23162 * lib/full-read.h: New file.
23163 * lib/full-read.c: New file.
23164 * lib/full-write.h: Assume C89. Add comments.
23165 * lib/full-write.c: Include safe-write.h.
23166 (full_write): Rewritten to use safe_write.
23167 Suggested by Jim Meyering and Paul Eggert.
23169 2002-11-21 Jim Meyering <jim@meyering.net>
23171 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
23173 Merge in changes from the coreutils.
23175 2002-09-25 Paul Eggert <eggert@twinsun.com>
23176 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
23178 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
23179 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
23180 int. Work more efficiently if X is the same width as uintmax_t.
23181 Do not compare X to -1, to avoid bogus compiler warning.
23182 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
23183 Don't assume that f_frsize and f_bsize are the same type.
23185 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
23186 warning on FreeBSD.
23188 * lib/makepath.c (make_path): Restore umask *before* creating the final
23190 (make_path): Minor reformatting.
23192 * lib/xmalloc.c: Adjust to work with new autoconf macros,
23193 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
23194 HAVE_MALLOC/HAVE_REALLOC.
23196 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
23197 dummy ones. At least on GNU/Linux systems, `auto' means something
23199 From Michael Stone.
23201 2002-11-21 Bruno Haible <bruno@clisp.org>
23203 Remove case insensitive option matching.
23204 * lib/argmatch.h (argcasematch): Remove declaration.
23205 (ARGCASEMATCH): Remove macro.
23206 (__xargmatch_internal): Remove case_sensitive argument.
23207 (XARGMATCH): Update.
23208 (XARGCASEMATCH): Remove macro.
23209 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
23210 case_sensitive argument.
23211 (argcasematch): Remove function.
23212 (__xargmatch_internal): Remove case_sensitive argument.
23213 (main): Use XARGMATCH instead of XARGCASEMATCH.
23215 * lib/xmalloc.c: Change compile-time error message. Add comment about
23216 required autoconf version.
23218 2002-11-20 Paul Eggert <eggert@twinsun.com>
23220 Merge argmatch cleanups from Bison. Assume C89.
23222 * lib/argmatch.c: Include config.h here, not in argmatch.h.
23223 Include stdlib.h, for EXIT_FAILURE.
23224 Always include <string.h>, since we assume C89.
23225 (EXIT_FAILURE): Remove pre-C89 bug workaround.
23226 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
23227 Include <stddef.h> instead, since it's all we need for size_t.
23228 (PARAMS): Remove. All uses removed.
23229 (ARRAY_CARDINALITY): Do not bother to #undef.
23230 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
23231 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23232 Remove unnecessary parentheses.
23233 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
23234 Insert necessary parentheses.
23235 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
23236 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
23238 2002-11-19 Bruno Haible <bruno@clisp.org>
23240 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
23241 * lib/mbswidth.h: Include <stddef.h>, for size_t.
23243 * lib/mbswidth.h (PARAMS): Remove macro.
23244 (mbswidth, mbsnwidth): Use ANSI C function declarations.
23245 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
23247 * lib/gcd.h (PARAMS): Remove macro.
23248 (gcd): Use ANSI C function declarations.
23249 * lib/gcd.c (gcd): Likewise.
23251 2002-11-15 Bruno Haible <bruno@clisp.org>
23253 * lib/strcspn.c: Include <stddef.h>.
23254 (strcspn): Use ANSI C function declaration. Change return type to
23256 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
23257 (strpbrk): Use NULL.
23258 * lib/strpbrk.h (PARAMS): Remove macro.
23259 (strpbrk): Use ANSI C function declaration.
23260 * lib/strstr.c: Don't include <sys/types.h>.
23261 * lib/strstr.h (PARAMS): Remove macro.
23262 (strstr): Use ANSI C function declarations.
23264 2002-11-14 Karl Berry <karl@gnu.org>
23266 * config/mkinstalldirs: `do' on separate line, instead of
23269 2002-11-06 Bruno Haible <bruno@clisp.org>
23271 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
23272 * lib/gcd.c (gcd): Likewise.
23274 2002-11-05 Bruno Haible <bruno@clisp.org>
23276 * lib/gcd.h: New file, from gettext-0.11.5.
23277 * lib/gcd.c: New file, from gettext-0.11.5.
23279 2002-11-05 Bruno Haible <bruno@clisp.org>
23281 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23282 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23283 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23284 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
23286 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
23288 * lib/makepath.c: Include gettext.h instead of <locale.h> and
23291 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
23292 * lib/human.c: Include gettext.h instead of <libintl.h>.
23293 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
23294 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
23295 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
23296 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
23297 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
23298 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
23299 (textdomain): Remove definition.
23300 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
23302 * lib/long-options.c: Remove include of <libintl.h> and definition of
23304 * lib/same.c: Remove include of <libintl.h> and definition of _.
23306 2002-11-04 Owen Taylor <otaylor@redhat.com>
23308 * lib/config.charset: A few additions for Solaris.
23310 2002-11-04 Bruno Haible <haible@clisp.cons.org>
23312 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
23313 * lib/localcharset.c (locale_charset): Declare as extern "C".
23315 2002-11-04 Bruno Haible <haible@clisp.cons.org>
23317 * lib/config.charset: msdos in uk_UA uses CP1125.
23319 2002-11-04 Bruno Haible <bruno@clisp.org>
23321 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
23322 * lib/strcase.h: New file, from GNU gettext-0.11.5.
23323 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
23324 * lib/strstr.h: New file, from GNU gettext-0.11.5.
23325 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
23327 2002-11-04 Bruno Haible <bruno@clisp.org>
23329 * lib/localcharset.c (locale_charset): Don't return an empty string.
23331 2002-11-04 Bruno Haible <bruno@clisp.org>
23333 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
23336 2002-11-04 Bruno Haible <bruno@clisp.org>
23338 * lib/config.charset: Update for newest glibc. Add canonical names
23339 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
23341 2002-11-04 Bruno Haible <bruno@clisp.org>
23343 * lib/config.charset: Add support for NetBSD.
23345 2002-11-04 Bruno Haible <bruno@clisp.org>
23347 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
23349 2002-11-01 Bruno Haible <bruno@clisp.org>
23351 * configure.in: Add AC_CONFIG_AUX_DIR call.
23352 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
23354 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
23356 2002-09-28 Karl Berry <karl@gnu.org>
23358 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
23359 installed automake until the next release, since changes have been
23362 2002-09-25 Karl Berry <karl@gnu.org>
23364 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
23365 * lib/getopt*: copy from libc/posix.
23366 * lib/gettext.h: copy from gettext.
23367 * lib/.cppi-disable: add strdup.c, gettext.h.
23369 2002-09-25 Karl Berry <karl@gnu.org>
23371 * config/srclist.txt: enable gettext.h check.
23372 * config/config.{guess,sub}: update from prep.
23373 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
23374 from automake 1.6.3.
23377 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
23379 * regex.c (PATFETCH): Remove the translating fetch.
23380 (PATFETCH_RAW): Rename to PATFETCH.
23381 (set_image_of_range): New fun.
23382 (SET_RANGE_TABLE_WORK_AREA): Use it.
23383 (regex_compile): Don't translate the pattern chars so eagerly.
23384 Only do it when inserting an `exactn' bytecode or when handling
23386 (mutually_exclusive_p): Avoid empty statement.
23388 2002-07-06 Jim Meyering <meyering@lucent.com>
23390 * m4/README: Don't mention Makefile.am.in.
23391 Outline how I've tested changes to .m4 files. Yep, it's a pain.
23393 2002-07-01 Jim Meyering <meyering@lucent.com>
23395 * lib/c-stack.c: Include sys/time.h.
23396 From Volker Borchert.
23398 2002-06-26 Paul Eggert <eggert@twinsun.com>
23400 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
23402 2002-06-26 Paul Eggert <eggert@twinsun.com>
23404 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
23405 New macro. Use it uniformly instead of
23406 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
23407 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
23408 reported by Vin Shelton.
23410 2002-06-22 Paul Eggert <eggert@twinsun.com>
23412 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
23413 Do not assume SA_SIGINFO behavior.
23414 Bug reported by Jim Meyering on NetBSD 1.5.2.
23416 2002-06-22 Jim Meyering <meyering@lucent.com>
23418 * m4/c-stack.m4: New file, from diffutils-2.8.2.
23419 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
23421 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
23422 now that configure.ac uses AC_GNU_SOURCE.
23423 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
23424 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
23426 Update to latest tools. Suggestions from Paul Eggert.
23427 * m4/stdbool.m4: New file, from diffutils-2.8.2.
23428 * m4/gnu-source.m4: Update from diffutils-2.8.2.
23429 * m4/fnmatch.m4: Likewise.
23430 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
23431 to AC_HEADER_STDBOOL
23433 2002-06-22 Jim Meyering <meyering@lucent.com>
23435 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
23436 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
23438 2002-06-22 Jim Meyering <meyering@lucent.com>
23440 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
23442 * lib/exitfail.c, exitfail.h: Likewise.
23443 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
23445 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
23447 (EXTRA_DIST): Add fnmatch_loop.c.
23448 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
23450 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
23451 * lib/fnmatch.c: Update from diffutils-2.8.2.
23452 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
23453 * lib/fnmatch.h: Remove file.
23455 2002-06-21 Jim Meyering <meyering@lucent.com>
23457 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
23458 * m4/mbrtowc.m4: Likewise.
23460 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
23461 * m4/mbswidth.m4: Reflect name change:
23462 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
23463 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23465 * m4/lib-link.m4: Update from gettext-0.11.2.
23466 * m4/gettext.m4: Likewise.
23468 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
23469 From Alfred M. Szmidt.
23471 2002-06-18 Paul Eggert <eggert@twinsun.com>
23473 * lib/file-type.h: Report an error if neither S_ISREG nor
23474 S_IFREG is defined, instead of using a test specific to glibc
23475 2.2. This should be safe, since POSIX requires S_ISREG and
23476 Unix Version 7 had S_IFREG. We don't need to check for
23477 <sys/types.h> since we don't use any symbols that it defines.
23479 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
23481 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
23482 $@-t, so that each temporary file name is unique and valid in the first
23483 8 characters, for operation under DOS.
23485 2002-06-15 Paul Eggert <eggert@twinsun.com>
23487 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
23489 2002-06-15 Jim Meyering <meyering@lucent.com>
23491 Work even with DJGPP 2.03, which lacks support for symlinks.
23493 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
23495 * lib/lchown.c (S_ISLNK): Likewise.
23497 2002-06-15 Jim Meyering <meyering@lucent.com>
23499 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
23500 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
23501 have been included before this file.
23503 2002-06-14 Jim Meyering <meyering@lucent.com>
23505 * lib/file-type.h: Use the version from diffutils-2.8.2.
23506 * lib/file-type.c: Likewise.
23508 2002-06-07 Jim Meyering <meyering@lucent.com>
23510 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
23511 They're needed at least for NetBSD 1.5.2.
23512 ($statxfs_includes): Include those same headers.
23513 ($statxfs_includes): Include sys/vfs.h if available.
23514 ($statxfs_includes): Likewise for sys/statvfs.h.
23515 Check for the following members in both structs statfs and statvfs:
23516 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
23518 2002-06-01 Jim Meyering <meyering@lucent.com>
23520 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
23521 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
23523 2002-05-28 Jim Meyering <meyering@lucent.com>
23525 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
23526 Reported by Volker Borchert.
23528 2002-05-27 Jim Meyering <meyering@lucent.com>
23530 Fix a problem seen only on nonconforming systems whereby ls.c's
23531 use of localtime, and then of gettimeofday would cause trouble:
23532 the localtime call used to initialize rpl_gettimeofday's save
23533 mechanism would clobber ls's current local time information so
23534 that in any long listing the first file would always be listed
23535 with date 1970-01-01. Analysis by Volker Borchert.
23537 * lib/gettimeofday.c (localtime): Undefine.
23538 (rpl_localtime): New function.
23540 2002-05-27 Jim Meyering <meyering@lucent.com>
23542 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
23545 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
23546 use the replacement function; it wouldn't resolve at link time.
23547 Reported by Volker Borchert.
23549 2002-05-22 Jim Meyering <meyering@lucent.com>
23551 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
23553 * lib/file-type.h: New file.
23554 * lib/file-type.c (file_type): New file/function. Extracted from
23557 2002-04-30 Jim Meyering <meyering@lucent.com>
23559 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
23561 2002-04-29 Paul Eggert <eggert@twinsun.com>
23563 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
23565 2002-04-29 Paul Eggert <eggert@twinsun.com>
23567 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
23568 Do not check for alloca.h (no longer used) or stdbool.h (was never
23569 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
23571 2002-04-29 Paul Eggert <eggert@twinsun.com>
23573 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
23575 2002-04-29 Jim Meyering <meyering@lucent.com>
23577 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
23578 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
23579 Use AC_FUNC_STRNLEN here instead.
23581 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
23582 With autoconf-2.53a, it's part of AC_PROG_CC.
23584 2002-04-28 Paul Eggert <eggert@twinsun.com>
23586 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
23587 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
23589 2002-04-28 Paul Eggert <eggert@twinsun.com>
23591 * lib/sig2str.h, lib/sig2str.c: New files.
23592 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
23594 2002-04-28 Paul Eggert <eggert@twinsun.com>
23596 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
23597 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
23598 of 127, since 64 is the largest conceivable number for ancient
23600 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
23602 2002-04-28 Jim Meyering <meyering@lucent.com>
23604 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
23606 2002-04-24 Jim Meyering <meyering@lucent.com>
23608 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
23609 (jm_PREREQ): Use it.
23611 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
23612 mach/mach.h fcntl.h.
23613 Check for this function: setlocale.
23615 2002-04-24 Jim Meyering <meyering@lucent.com>
23617 * lib/gettext.h: New file, from Gettext.
23618 * lib/Makefile.am (INCLUDES): Remove -I../intl.
23619 (libfetish_a_SOURCES): Add gettext.h.
23621 2002-04-16 Jim Meyering <meyering@lucent.com>
23623 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
23624 ut_pid, ut_id, ut_exit.
23626 2002-04-16 Jim Meyering <meyering@lucent.com>
23628 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
23629 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
23630 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
23632 2002-04-12 Jim Meyering <meyering@lucent.com>
23634 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
23635 now-bogus check for f_type in sys/mount.h. Instead, just test for the
23636 existence of the getmntinfo function. Needed for Darwin 5.3.
23638 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
23639 This is necessary at least on Darwin 5.3.
23641 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
23642 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
23643 strnlen.o in the library, and that makes some versions of ranlib
23646 2002-04-12 Jim Meyering <meyering@lucent.com>
23648 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
23650 2002-04-09 Jim Meyering <meyering@lucent.com>
23652 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
23653 to be more precise. Rather than saying we're checking whether the
23654 function `works', say what we're testing.
23655 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
23656 Reported by Bruno Haible.
23658 2002-03-10 Jim Meyering <meyering@lucent.com>
23660 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
23661 Suggestion from Santiago Vila.
23663 2002-03-08 Jim Meyering <meyering@lucent.com>
23665 * lib/rename.c: Mention that this wrapper is needed also on
23666 mips-dec-ultrix4.4 systems.
23668 2002-03-02 Jim Meyering <meyering@lucent.com>
23670 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
23671 not HAVE_CLOCK_SETTIME.
23673 2002-02-27 Paul Eggert <eggert@twinsun.com>
23675 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
23676 Check for clock_settime.
23678 2002-02-27 Paul Eggert <eggert@twinsun.com>
23680 * lib/nanosleep.h: Rename to....
23681 * lib/timespec.h: New name for nanosleep.h. All uses changed.
23683 * lib/gettime.c: New file.
23684 * lib/settime.c: New file.
23685 * lib/stime.c: Remove.
23687 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
23688 timespec.h. Remove nanosleep.h.
23690 2002-02-25 Paul Eggert <eggert@twinsun.com>
23692 * m4/acl.m4: New file.
23693 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
23694 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
23696 2002-02-25 Paul Eggert <eggert@twinsun.com>
23698 * lib/acl.c, lib/acl.h: New files.
23699 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
23701 2002-02-24 Jim Meyering <meyering@lucent.com>
23703 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
23704 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
23705 cause trouble. Reported by Nelson Beebe.
23707 2002-02-23 Paul Eggert <eggert@twinsun.com>
23709 * lib/path-concat.c (xpath_concat): Reorder code to pacify
23710 compilers that don't know that xalloc_die never returns.
23712 2002-02-20 Jim Meyering <meyering@lucent.com>
23714 * lib/getdate.c: Regenerate using bison-1.33.
23716 2002-02-17 Jim Meyering <meyering@lucent.com>
23718 * config/config.guess (main): Don't use `head -1'; it's no longer
23719 portable. Use `sed 1q' instead.
23721 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
23723 * m4/codeset.m4: Upgrade to gettext-0.11.
23724 * m4/gettext.m4: Upgrade to gettext-0.11.
23725 * m4/glibc21.m4: Upgrade to gettext-0.11.
23726 * m4/iconv.m4: Upgrade to gettext-0.11.
23727 * m4/isc-posix.m4: Upgrade to gettext-0.11.
23728 * m4/lcmessage.m4: Upgrade to gettext-0.11.
23729 * m4/lib-ld.m4: New file, from gettext-0.11.
23730 * m4/lib-link.m4: New file, from gettext-0.11.
23731 * m4/lib-prefix.m4: New file, from gettext-0.11.
23732 * m4/progtest.m4: Upgrade to gettext-0.11.
23734 2002-02-15 Paul Eggert <eggert@twinsun.com>
23736 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
23737 (jm_PREREQ): Use it.
23739 2002-02-15 Paul Eggert <eggert@twinsun.com>
23741 * lib/posixver.c, lib/posixver.h: New files.
23742 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
23744 2002-02-02 Paul Eggert <eggert@twinsun.com>
23745 Bruno Haible <bruno@clisp.org>
23747 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
23748 (fwrite_success_callback): New declaration.
23749 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
23750 print_unicode_char. Call failure callback instead of error.
23751 (fwrite_success_callback): New function.
23752 (exit_failure_callback): New function.
23753 (fallback_failure_callback): New function.
23754 (print_unicode_char): Call unicode_to_mb.
23756 2002-01-26 Jim Meyering <meyering@lucent.com>
23758 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
23759 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
23761 2002-01-26 Jim Meyering <meyering@lucent.com>
23763 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
23765 2002-01-22 Paul Eggert <eggert@twinsun.com>
23767 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
23769 2002-01-22 Jim Meyering <meyering@lucent.com>
23771 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
23772 Otherwise, some versions of automake would omit the rule that makes
23773 Makefile from Makefile.in.
23775 2002-01-21 Paul Eggert <eggert@twinsun.com>
23777 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
23778 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
23779 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
23780 (memcoll): Set errno to zero if there is no error.
23782 * lib/quotearg.c (quotearg_buffer_restyled):
23783 Fix bug with quoting buffers containing NUL when backslashing escapes.
23784 This bug was exposed by the other changes in this patch.
23785 (quotearg_n_options): New arg ARGSIZE.
23786 All callers changed.
23787 (quoting_options_from_style): New function.
23788 (quotearg_n_style): Use it.
23789 (quotearg_n_style_mem): New function.
23791 * lib/quotearg.h (quotearg_n_style_mem): New function.
23793 2002-01-19 Jim Meyering <meyering@lucent.com>
23795 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
23796 Remove useless quotes: DF_PROG="df".
23797 * m4/strnlen.m4: New file.
23799 2002-01-16 Paul Eggert <eggert@twinsun.com>
23801 * lib/backupfile.c (ISDIGIT): Comment fix.
23802 * lib/getdate.y (ISDIGIT): Likewise.
23803 * lib/posixtm.c (ISDIGIT, year): Likewise.
23804 * lib/strverscmp.c (ISDIGIT): Likewise.
23805 * lib/userspec.c (ISDIGIT): Likewise.
23807 2002-01-16 Jim Meyering <meyering@lucent.com>
23809 * lib/getdate.y: Add three semicolons, each just before a closing
23810 brace. Bison (as of version 1.31) no longer papers over that mistake.
23812 2002-01-05 Jim Meyering <meyering@lucent.com>
23814 * lib/version-etc.c (version_etc_copyright): Update copyright year.
23816 2001-12-19 Paul Eggert <eggert@twinsun.com>
23818 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
23819 not silently exit merely because the output buffer happens to
23820 have nothing pending.
23822 2001-12-18 Paul Eggert <eggert@twinsun.com>
23824 See the big note in ../ChangeLog.
23825 * lib/human.c (suffixes): Prefer K to k for 1024.
23826 (generate_suffix_backwards): New function.
23827 (human_readable_inexact): Use it.
23828 * lib/xstrtol.c (__xstrtol): If there is no number but there
23829 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
23830 Accept 'K' as well as 'k'.
23832 2001-12-15 Jim Meyering <meyering@lucent.com>
23834 * lib/regex.h (__restrict_arr): Update from libc.
23836 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
23837 as `remote' if the name starts with `//'. Suggested by Michael Stone.
23840 2001-12-14 Jim Meyering <meyering@lucent.com>
23842 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
23843 Suggestion from Bruno Haible.
23845 2001-12-10 Jim Meyering <meyering@lucent.com>
23847 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
23848 xrealloc, Instead, include "xalloc.h".
23849 (initbuffer): Don't cast xmalloc return value to char*.
23850 (readline): Reword comment.
23851 Don't cast xrealloc return value to char*
23852 Return NULL, not 0.
23854 2001-12-09 Jim Meyering <meyering@lucent.com>
23856 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
23857 about `signed and unsigned type in conditional expression'.
23858 * lib/posixtm.c (posix_time_parse): Likewise.
23860 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
23862 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
23863 to avoid a pedantic warning.
23865 * lib/getstr.c: Don't include assert.h.
23866 (getstr): Remove warning-evoking assertions.
23867 Return -1 if offset parameter is out of bounds.
23868 Change the type of a local from int to size_t.
23870 * lib/strftime.c (my_strftime_localtime_r): Include this function
23871 definition in the `#if ! HAVE_TM_GMTOFF' block.
23873 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
23874 Include xalloc.h instead.
23876 2001-12-02 Jim Meyering <meyering@lucent.com>
23878 * lib/tempname.c: Don't declare getenv, thus reverting the change of
23879 2001-11-18. It's no longer necessary, now that stdlib.h is always
23882 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
23883 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
23885 2001-11-30 Akim Demaille <akim@epita.fr>
23887 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
23888 before being defined.
23890 2001-11-27 Paul Eggert <eggert@twinsun.com>
23892 * lib/quotearg.h (quotearg_n, quotearg_n_style):
23893 First arg is int, not unsigned.
23894 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
23895 (SIZE_MAX, UINT_MAX): New macros.
23896 (quotearg_n_options): Abort if N is negative.
23897 Avoid overflow check on hosts where size_t is 64 bits and int
23898 is 32 bits, as overflow is impossible there.
23899 Fix off-by-one typo that caused unnecessary reallocation.
23901 2001-11-27 Jim Meyering <meyering@lucent.com>
23903 * lib/tempname.c: Merge with version from libc.
23904 * lib/regex.c: Likewise.
23906 * lib/tempname.c: Include stdlib.h unconditionally. On some old
23907 systems for which STDC_HEADERS is 0, it was not included, resulting in
23908 a warning about an integer-to-pointer conversion problem with getenv.
23909 Reported by Volker Borchert.
23911 2001-11-26 Jim Meyering <meyering@lucent.com>
23913 * lib/gtod.h: Remove file.
23914 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
23915 * lib/gettimeofday.c: Don't include gtod.h.
23916 (GTOD_init): Remove function.
23917 (rpl_gettimeofday): Do its job here instead, rather than aborting.
23918 Suggestion from Volker Borchert.
23920 2001-11-23 Jim Meyering <meyering@lucent.com>
23922 * lib/hash.h (struct hash_table): Don't define here. Merely declare
23924 * lib/hash.c (struct hash_table): Define it here instead.
23926 2001-11-22 Jim Meyering <meyering@lucent.com>
23928 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
23930 2001-11-20 Jim Meyering <meyering@lucent.com>
23932 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
23933 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
23935 2001-11-19 Jim Meyering <meyering@lucent.com>
23937 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
23938 directory. Use "conftestXXXXXX" as the template.
23939 Suggestion from Paul Eggert.
23941 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
23942 immediately, so the test doesn't mistakenly hit the max-open-files
23945 2001-11-18 Paul Eggert <eggert@twinsun.com>
23947 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
23948 (TEMPORARIES): New macro.
23949 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
23950 removes an artificial limitation (e.g. HP-UX 10.20, where
23953 2001-11-18 Jim Meyering <meyering@lucent.com>
23955 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
23957 2001-11-18 Jim Meyering <meyering@lucent.com>
23959 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
23962 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
23963 files will be created before anything else.
23965 2001-11-17 Paul Eggert <eggert@twinsun.com>
23967 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
23968 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
23970 2001-11-17 Jim Meyering <meyering@lucent.com>
23972 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
23973 Prompted by a report from Bob Proulx.
23975 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
23976 Instead, require UTILS_FUNC_MKSTEMP.
23978 2001-11-17 Jim Meyering <meyering@lucent.com>
23980 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
23981 Now, that's done as part of AC_FUNC_STRTOD.
23983 2001-11-17 Jim Meyering <meyering@lucent.com>
23985 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
23986 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
23987 rather than group writable. Patch by Juan F. Codagnone.
23989 * lib/readtokens.c: Remove explicit declarations of xmalloc and
23990 xrealloc, Instead, include "xalloc.h".
23992 * lib/mountlist.c: Include unlocked-io.h after all system headers.
23993 Remove explicit declarations of xmalloc, xrealloc,
23994 and xstrdup. Instead, include "xalloc.h".
23996 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
23998 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
24000 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
24002 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
24003 Reported by Padraig Brady.
24005 * lib/mkstemp.c: #undef mkstemp.
24007 (rpl_mkstemp): Rename from mkstemp.
24010 2001-11-16 Jim Meyering <meyering@lucent.com>
24012 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
24013 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
24014 determine the amount of total physical memory, use pstat_getstatic.
24015 HPUX-11 doesn't define _SC_PHYS_PAGES.
24016 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
24017 If sysconf couldn't be used to determine the amount of available
24018 physical memory, use both pstat_getstatic and pstat_getdynamic.
24019 Based on a patch from Bob Proulx.
24021 2001-11-10 Jim Meyering <meyering@lucent.com>
24023 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
24024 (jm_PREREQ): Use it.
24026 2001-11-09 Jim Meyering <meyering@lucent.com>
24028 * m4/jm-macros.m4: Require autoconf-2.52f.
24029 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
24030 Use these AC_-prefixed names, not the AM_-prefixed ones.
24032 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
24034 2001-11-05 Jim Meyering <meyering@lucent.com>
24036 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
24038 2001-11-04 Jim Meyering <meyering@lucent.com>
24040 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
24043 2001-11-03 Jim Meyering <meyering@lucent.com>
24045 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
24048 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
24049 know the name of the variable in the macro definition.
24051 2001-11-03 Jim Meyering <meyering@lucent.com>
24053 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
24054 in argmatch_to_argument call.
24056 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
24059 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
24060 e.g., a fault due to an attempt to free a NULL pointer.
24062 2001-11-01 Jim Meyering <meyering@lucent.com>
24064 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
24065 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
24067 2001-11-01 Jim Meyering <meyering@lucent.com>
24069 * lib/dirfd.c, lib/dirfd.h: New files.
24070 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
24072 * lib/hash.c (hash_print) [TESTING]: Clean up.
24074 2001-10-22 Paul Eggert <eggert@twinsun.com>
24076 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
24077 to avoid a warning if -Wall.
24079 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
24082 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
24083 (per RMS's instructions, this is now the canonical source)
24084 * lgpl/, gpl/: New directories.
24086 2001-10-21 Paul Eggert <eggert@twinsun.com>
24088 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
24090 2001-10-21 Jim Meyering <meyering@lucent.com>
24092 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
24093 this code would end up calling gettext even in packages built
24094 with --disable-nls.
24095 * lib/getopt.c (_): Likewise.
24096 * lib/regex.c (_): Likewise.
24098 2001-10-20 Paul Eggert <eggert@twinsun.com>
24100 * m4/error.m4 (jm_PREREQ_ERROR):
24101 Do not invoke AC_CHECK_FUNCS with strerror_r, as
24102 AC_FUNC_STRERROR_R does that.
24103 Check for strerror declaration.
24105 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
24106 are supposed to have them these days.
24107 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
24108 Merge changes from latest Autoconf CVS.
24109 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
24110 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
24111 POSIX decided to standardize on the int flavor of strerror_r.
24113 2001-10-20 Paul Eggert <eggert@twinsun.com>
24115 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
24116 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
24117 Use strerror_r that is only a macro, even if it is not a function.
24118 (strerror): Check for HAVE_DECL_STRERROR before declaring.
24119 (private_strerror): Use prototypes, not old-style function definition.
24120 (print_errno_message): New function.
24121 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
24122 char*-flavored one.
24123 (error_tail, error, error_at_line): Use it.
24125 2001-10-11 Jim Meyering <meyering@lucent.com>
24127 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
24128 and quote_n (1, ... to avoid clobbering a buffer.
24130 2001-10-05 Jim Meyering <meyering@lucent.com>
24132 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
24134 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
24135 * lib/hash-pjw.h: New file.
24137 2001-09-30 Jim Meyering <meyering@lucent.com>
24139 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
24140 `struct fsstat' has the `f_fstypename' member.
24141 Use that to define FS_TYPE, which is now used to make
24142 the getfsstat link test tighter.
24144 2001-09-30 Jim Meyering <meyering@lucent.com>
24146 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
24147 Include <sys/ucred.h>, for Apple Darwin.
24148 Include sys/mount.h and sys/fs_types.h only if available.
24150 (read_filesystem_list): Use FS_TYPE.
24152 2001-09-29 Paul Eggert <eggert@twinsun.com>
24154 * lib/exclude.c (excluded_filename): 0 -> false, since it's
24157 2001-09-29 Jim Meyering <meyering@lucent.com>
24159 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24160 [one-argument getmntent function]): Include stdio.h before mntent.h.
24161 SunOS 4.1.x needs it for the declaration of `FILE'.
24162 Patch by Volker Borchert.
24164 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
24165 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
24166 sys/fs_types.h, and make the link-test for getfsstat guard #include
24167 directives with appropriate #if HAVE_*_H tests so that we can
24168 detect getfsstat on Apple Darwin1.3.7 systems.
24169 Reported by Nelson Beebe.
24170 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
24172 2001-09-28 Paul Eggert <eggert@twinsun.com>
24174 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24175 #defines strtoimax. Also treat the other strto* functions
24178 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
24179 Check for strtoul and strtoumax,
24180 as those declarations are made even in the signed case.
24181 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
24182 Likewise, for strtol and strtoimax.
24184 2001-09-28 Paul Eggert <eggert@twinsun.com>
24186 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
24187 #defines strtoimax. Also treat the other strto* functions
24190 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
24191 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
24192 (strtoimax, strtoumax): Do not declare if already defined as a macro.
24194 2001-09-26 Jim Meyering <meyering@lucent.com>
24196 Most macros in unlocked-io.h had the wrong number of arguments.
24197 * lib/gen-uio: New script.
24198 (USE_UNLOCKED_IO): Define to 1 if not already defined.
24199 * lib/unlocked-io.hin: Remove file.
24200 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
24201 rather than trying to embed it here.
24202 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
24203 Reported by Padraig Brady.
24205 2001-09-25 Volker Borchert <bt@teknon.de>
24207 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
24210 2001-09-24 Jim Meyering <meyering@lucent.com>
24212 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
24214 2001-09-23 Jim Meyering <meyering@lucent.com>
24216 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
24217 instead of the mere test for existence of mntent.h. The latter
24218 would get a false-positive on AIX 3.4 systems.
24219 In the outer getmntent if-block, don't die if neither of the getmntent
24220 tests succeeds. Instead, just fall through and continue with the
24223 2001-09-23 Jim Meyering <meyering@lucent.com>
24225 * lib/mountlist.c: Remove useless parentheses in #if directives.
24226 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
24227 the deprecated MOUNTED symbol is no longer defined in mntent.h.
24229 2001-09-22 Jim Meyering <meyering@lucent.com>
24231 * m4/gettext.m4: New file. From gettext.
24232 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
24233 * m4/progtest.m4: Likewise
24234 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
24235 * m4/glibc21.m4: Likewise.
24237 * m4/libintl.m4: Remove. No longer used.
24239 2001-09-22 Jim Meyering <meyering@lucent.com>
24241 * lib/localcharset.c: Update from latest gettext.
24242 * lib/config.charset: Likewise.
24244 2001-09-20 Jim Meyering <meyering@lucent.com>
24246 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
24248 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
24251 2001-09-20 Jim Meyering <meyering@lucent.com>
24253 * lib/xstrtol.c (strtoimax): Guard declaration with
24254 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
24255 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
24256 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
24257 (strtoumax): Likewise, for completeness (it wasn't necessary).
24259 2001-09-17 Paul Eggert <eggert@twinsun.com>
24261 * lib/strtoimax.c (HAVE_LONG_LONG):
24262 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
24263 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
24264 to work around bug in IBM C compiler.
24266 2001-09-17 Jim Meyering <meyering@lucent.com>
24268 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
24269 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
24270 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
24271 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
24272 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
24273 whenever the right hand side need not be expanded by the shell.
24275 2001-09-16 Paul Eggert <eggert@twinsun.com>
24277 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
24278 library. It's not correct, as some older glibcs are buggy.
24279 fnmatch wasn't fixed until glibc 2.2.
24281 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
24282 special shell magic here.
24284 2001-09-16 Jim Meyering <meyering@lucent.com>
24286 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
24287 * m4/jm-macros.m4: Require it.
24289 2001-09-16 Jim Meyering <meyering@lucent.com>
24291 * lib/mkdir.c: New file.
24293 2001-09-15 Jim Meyering <meyering@lucent.com>
24295 * m4/jm-macros.m4: Check for help2man.
24297 2001-09-11 Jim Meyering <meyering@lucent.com>
24299 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
24300 The body, by Paul Eggert, was moved here from configure.in.
24301 * m4/jm-macros.m4: Require UTILS_HOST_OS.
24303 2001-09-04 Paul Eggert <eggert@twinsun.com>
24305 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
24306 (jm_PREREQ): Use it.
24308 2001-09-04 Paul Eggert <eggert@twinsun.com>
24310 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
24311 Use ssize_t, not int, to store result of readlink.
24312 Check for ssize_t overflow as well as size_t overflow,
24313 as POSIX says the result of readlink is implementation-defined
24314 when ssize_t overflows.
24315 Remove unnecessary cast to char*.
24316 Use free+malloc instead of realloc, as the storage doesn't need
24317 to be preserved and it's clearer and can be more efficient that way.
24318 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
24319 * lib/xreadlink.h (xreadlink): Update prototype.
24321 2001-09-04 Paul Eggert <eggert@twinsun.com>
24323 * lib/xgetcwd.c: Revert some of the previous change; intead,
24324 fix the HAVE_GETCWD_NULL code to behave more like the
24325 !HAVE_GETCWD_NULL code used to.
24327 Include "xalloc.h".
24328 (xgetcwd): Do not return NULL when memory is exhausted; instead,
24331 2001-09-03 Paul Eggert <eggert@twinsun.com>
24333 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
24334 sys/param.h, as pathmax.h includes them.
24336 2001-09-03 Paul Eggert <eggert@twinsun.com>
24338 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
24339 (jm_PREREQ_XGETCWD): New macro.
24341 * m4/getcwd.m4: New file.
24343 2001-09-03 Paul Eggert <eggert@twinsun.com>
24345 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
24346 like the HAVE_GETCWD_NULL code.
24347 Include pathmax.h if not HAVE_GETCWD.
24348 Do not include xalloc.h.
24349 (INITIAL_BUFFER_SIZE): New symbol.
24350 Do not use xmalloc / xrealloc, since the caller is responsible for
24351 handling errors. Preserve errno around `free' during failure.
24352 Do not overrun buffer when using getwd.
24354 2001-09-03 Paul Eggert <eggert@twinsun.com>
24356 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
24357 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
24360 2001-09-03 Paul Eggert <eggert@twinsun.com>
24362 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
24363 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
24364 spotted by Jim Meyering.
24366 2001-09-03 Jim Meyering <meyering@lucent.com>
24368 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
24371 2001-09-02 Jim Meyering <meyering@lucent.com>
24373 * lib/error.c: Update from GNU libc.
24375 2001-09-01 Jim Meyering <meyering@lucent.com>
24377 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
24380 2001-09-01 Jim Meyering <meyering@lucent.com>
24382 * lib/xreadlink.c: New file.
24383 * lib/xreadlink.h: New file.
24384 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
24387 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
24388 doesn't conflict with sparc Solaris 7's definition in
24389 /usr/include/sys/int_types.h.
24391 * lib/exclude.c: Use `""', not `<>' to #include non-system header
24393 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
24394 and strncasecmp as r-values. Unixware didn't have declarations.
24396 2001-08-31 Paul Eggert <eggert@twinsun.com>
24398 * lib/xstrtol.h: Add copyright notice.
24399 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
24400 LONGINT_INVALID_SUFFIX_CHAR.
24402 2001-08-31 Paul Eggert <eggert@twinsun.com>
24404 * lib/xstrtol.c (strtoimax): New decl.
24406 2001-08-31 Paul Eggert <eggert@twinsun.com>
24408 * lib/xgetcwd.c: Don't include pathmax.h.
24409 Include stdlib.h and unistd.h if available.
24411 (xmalloc, xstrdup, free): Remove decls.
24412 (xgetcwd): Don't assume sizes fit in unsigned.
24413 Check for overflow when computing sizes.
24414 Simplify reallocation code.
24416 2001-08-31 Paul Eggert <eggert@twinsun.com>
24418 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
24419 a directory's st_size can have an arbitrary value, so the old
24420 usage could waste an arbitrary amount of memory. All uses
24422 * lib/savedir.h: Update prototype.
24424 2001-08-31 Paul Eggert <eggert@twinsun.com>
24426 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
24428 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
24431 Also, make the following further changes to make this file's
24432 configuration more similar to that of strtol.c:
24433 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
24434 (strtoumax, uintmax_t, strtoull, strtol): Remove.
24435 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
24436 (strtoimax): Renamed from strtoumax. All uses of unsigned values
24437 changed to signed values.
24439 And make the following changes as well:
24440 Fix copyright notice, as 1999 was missing.
24441 (verify): New macro.
24442 (strtoimax): Check sizes at compile-time, not run-time.
24443 Prefer strtol to strtoll if both work.
24444 (main): Remove; it was not that useful and was a pain to maintain.
24446 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
24448 2001-08-31 Jim Meyering <meyering@lucent.com>
24450 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
24451 Use an initial, malloc'd, buffer of length 128 rather than
24452 a statically allocated one of length 1024.
24454 2001-08-30 Paul Eggert <eggert@twinsun.com>
24456 Simplify code, partly by assuming autoconf 2.52 semantics.
24458 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
24460 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
24461 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
24463 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
24464 Move AC_REQUIRE to next-to-top level, to avoid confusion.
24465 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
24466 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
24467 jm_AC_HEADER_INTTYPES_H.
24468 * m4/jm-macros.m4 (jm_MACROS): Likewise.
24470 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
24472 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
24473 Quote first arg of AC_DEFUN.
24474 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
24475 since they are needed to parse the include file even if we need
24476 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
24477 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
24478 but with opposite signedness.
24480 2001-08-30 Paul Eggert <eggert@twinsun.com>
24482 Merge 'exclude' changes from tar 1.13.22.
24483 This fixes one or two unlikely storage allocation overflow bugs,
24484 but doesn't change user-visible behavior otherwise.
24486 2001-08-30 Paul Eggert <eggert@twinsun.com>
24488 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
24489 (jm_PREREQ_EXCLUDE): New macro.
24491 2001-08-30 Paul Eggert <eggert@twinsun.com>
24493 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
24496 2001-08-30 Paul Eggert <eggert@twinsun.com>
24498 * lib/hash.c: Remove '2001' from copyright notice.
24500 2001-08-30 Paul Eggert <eggert@twinsun.com>
24502 * lib/full-write.h: New file.
24503 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
24504 * lib/full-write.c: Correct credits, as cccp.c no longer
24505 exists and anyway it was so heavily changed from the old cccp
24506 code as to be unrecognizable. Include full-write.h.
24507 (full_write) Return size_t, with short writes meaning failure.
24508 All callers changed. This fixes a bug with large buffers
24510 * lib/utime.c: Include full-write.h.
24512 2001-08-30 Paul Eggert <eggert@twinsun.com>
24514 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
24515 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
24516 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
24517 Include if available.
24518 (<xalloc.h>): Include
24519 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
24520 (verify): New macro. Use it to verify that EXCLUDE macros do not
24521 collide with FNM macros.
24522 (struct patopts): New struct.
24523 (struct exclude): Use it, as exclude patterns now come with options.
24524 (new_exclude): Support above changes.
24525 (new_exclude, add_exclude_file):
24526 Initial size must now be a power of two to simplify overflow checking.
24527 (free_exclude, fnmatch_no_wildcards): New function.
24528 (excluded_filename): No longer requires options arg, as the options
24529 are determined by add_exclude. Now returns bool, not int.
24530 (excluded_filename, add_exclude):
24531 Add support for the fancy new exclusion options.
24532 (add_exclude, add_exclude_file): Now takes int options arg.
24533 Check for arithmetic overflow when computing sizes.
24534 (add_exclude_file): xrealloc might modify errno, so don't
24535 realloc until after errno might be used.
24537 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
24539 (free_exclude): New decl.
24540 (add_exclude, add_exclude_file): Now takes int options arg.
24541 (excluded_filename): No longer requires options arg, as the options
24542 are determined by add_exclude. Now returns bool, not int.
24544 2001-08-30 Paul Eggert <eggert@twinsun.com>
24546 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
24548 2001-08-27 Jim Meyering <meyering@lucent.com>
24550 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
24552 * lib/version-etc.c (N_): Remove definition.
24553 Revert most of last change.
24554 Instead, simply don't mark the `Copyright...' string for translation.
24555 Based on advice from Paul Eggert.
24557 * lib/strtoxmax.c: Tweak comment.
24559 2001-08-26 Jim Meyering <meyering@lucent.com>
24561 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
24563 * m4/xstrtoimax.m4: New file.
24564 * m4/xstrtoumax.m4: Add comments explaining why we
24565 AC_REPLACE_FUNCS(strtol).
24567 2001-08-26 Jim Meyering <meyering@lucent.com>
24569 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
24570 of copyright with `%s' so translators don't get an untranslated
24572 (COPYRIGHT_YEAR): Define.
24573 (version_etc): Use fprintf rather than fputs.
24574 Suggestion from Ulrich Drepper.
24576 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
24578 * lib/strtoll.c: New file, from GNU libc.
24579 * lib/xstrtoimax.c: New file.
24581 * lib/xstrtol.h: Add xstrtoimax.
24582 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
24583 * lib/strtoimax.c: New file. Likewise, but first define
24586 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
24588 * lib/strtoxmax.c: ... then renamed to this.
24590 2001-08-18 Paul Eggert <eggert@twinsun.com>
24592 * m4/inttypes.m4: Add AC_PREREQ(2.13).
24593 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
24594 (jm_AC_TYPE_INTMAX_T): New macro.
24595 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
24597 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
24599 * m4/longlong.m4: Renamed from ulonglong.m4.
24600 * m4/inttypes.m4: Renamed from inttypes_h.m4.
24601 * m4/uintmax_t.m4: Removed.
24603 2001-08-13 Paul Eggert <eggert@twinsun.com>
24605 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
24606 Port to Solaris 8, where 'sed' requires a space after the 'r'
24607 command, and where sh dislikes "$/". Clean up the spacing a bit.
24608 Redirect output to $tmp just once.
24610 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
24612 * lib/addext.c (<errno.h>): Include.
24613 (errno): Declare if not defined.
24614 (addext): Work correctly when pathconf returns -1 and leaves
24615 errno alone because there is no limit. Also, work even if
24616 pathconf returns a value greater than SIZE_MAX.
24618 2001-08-12 Jim Meyering <meyering@lucent.com>
24620 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
24621 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
24622 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
24623 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
24624 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
24625 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
24626 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
24627 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
24628 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
24629 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
24630 utime.m4, utimes.m4, xstrtoumax.m4:
24631 Quote the first argument in each use of AC_DEFUN.
24633 2001-08-12 Jim Meyering <meyering@lucent.com>
24635 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
24636 Simply `return getcwd (NULL, 0);'.
24637 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
24638 Use 1300 as initial value for length, not PATH_MAX.
24640 * lib/pathmax.h: Clean up cpp syntax.
24642 2001-08-12 Jim Meyering <meyering@lucent.com>
24644 * lib/gettimeofday.c: New file.
24645 * lib/gtod.h: New file.
24646 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
24648 2001-08-05 Jim Meyering <meyering@lucent.com>
24650 * m4/jm-macros.m4: Require autoconf-2.52.
24652 2001-08-04 Jim Meyering <meyering@lucent.com>
24654 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
24655 stmt, to get in sync with glibc.
24657 2001-08-03 Paul Eggert <eggert@twinsun.com>
24659 The following changes are from gettext 0.10.39 as maintained by
24662 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
24663 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
24664 with inverted sense. All uses changed.
24666 * lib/mbswidth.c: Don't include <limits.h>.
24667 Include <stdlib.h> and <string.h> unconditionally.
24668 (iswcntrl, mbsinit, ISCNTRL): New macros.
24669 (mbsnwidth): Use K&R style function declarations.
24670 Don't bother checking for MB_LEN_MAX == 1, since the compiler
24671 can optimize it when MB_CUR_MAX == 1.
24672 The width of control characters is zero, not 1.
24674 2001-08-03 Paul Eggert <eggert@twinsun.com>
24676 The following changes are from gettext 0.10.39 as maintained by
24677 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
24679 * m4/codeset.m4: Upgrade to serial AM1.
24680 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
24681 all uses changed. Quote first arg of AC_DEFUN.
24682 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
24684 * m4/iconv.m4: Upgrade to serial AM2.
24685 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
24686 Add --with-libconv-prefix.
24687 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
24688 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
24689 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
24690 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
24691 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
24693 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
24694 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
24695 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
24696 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
24697 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
24698 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
24699 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24700 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
24701 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
24703 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
24706 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
24707 not the default value.
24709 2001-06-25 Bruno Haible <haible@clisp.cons.org>
24710 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
24711 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
24712 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
24713 Also check for iswcntrl, used for wcwidth fallback.
24714 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
24717 2001-08-03 Jim Meyering <meyering@lucent.com>
24719 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
24720 as it was in the original. Reported by Paul Eggert.
24722 2001-07-16 Jim Meyering <meyering@lucent.com>
24724 * m4/gettimeofday.m4: New file.
24725 Prompted by a report from Bernhard Baehr.
24727 2001-07-15 Jim Meyering <meyering@lucent.com>
24729 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
24730 stuff. Now it's in ../Makefile.cfg.
24732 2001-07-15 Jim Meyering <meyering@lucent.com>
24734 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
24735 (BUILT_SOURCES): Add unlocked-io.h.
24736 (io_functions): Define.
24737 (unlocked-io.h): New rule.
24738 (DISTCLEANFILES): Add unlocked-io.h.
24739 (all-local): Depend on unlocked-io.h, to ensure it is created.
24741 * lib/unlocked-io.hin: New file
24743 * lib/regex.c: Update from glibc.
24745 2001-07-05 Jim Meyering <meyering@lucent.com>
24747 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
24749 (libfetish_a_SOURCES): Put all .h files here instead.
24750 Remove a thus-exposed (better checks in automake) duplicate and
24751 two unnecessary .h files.
24753 2001-07-04 Jim Meyering <meyering@lucent.com>
24755 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
24756 that generates jm-glibc-io.m4 so that it doesn't trigger any make
24759 2001-07-02 Jim Meyering <meyering@lucent.com>
24761 The following changes were prompted by suggestions from Bruno Haible.
24763 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
24765 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
24766 definition of EXTRA_DIST.
24767 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
24768 ensure that the generated file is created/updated whenever the list
24769 of $(unlocked_functions) is changed.
24770 (jm-glibc-io.m4): New rule.
24771 (unlocked-io.h): New rule -- currently unused.
24773 2001-06-24 Jim Meyering <meyering@lucent.com>
24775 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
24776 unmatched right bracket, rather than kludging it with an extra,
24777 falsely-matching quote in a comment. Patch by Akim Demaille.
24779 2001-06-11 Jim Meyering <meyering@lucent.com>
24781 * lib/regex.c: Update from GNU libc.
24783 2001-05-27 Jim Meyering <meyering@lucent.com>
24785 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
24786 Check for ut_type in struct utmp.
24788 2001-05-27 Jim Meyering <meyering@lucent.com>
24790 * lib/readutmp.h (UT_TYPE): Define.
24792 2001-05-24 Jim Meyering <meyering@lucent.com>
24794 * lib/argmatch.c: Include "quote.h".
24795 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
24796 quote function. Reported by Göran Uddeborg.
24798 2001-05-22 Jim Meyering <meyering@lucent.com>
24800 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
24801 now that we use the package-supplied version unconditionally.
24802 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
24804 2001-05-21 Jim Meyering <meyering@lucent.com>
24806 * m4/regex.m4: Change a couple backticks to single quotes to avoid
24807 shell syntax errors.
24809 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
24811 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
24813 2001-05-20 Paul Eggert <eggert@twinsun.com>
24815 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
24816 Don't bother to check library strftime, since
24817 we'll be using our own my_strftime function anyway.
24818 Define my_strftime instead of strftime.
24820 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
24822 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
24823 which is not yet declared.
24825 2001-05-15 Jim Meyering <meyering@lucent.com>
24827 * m4/regex.m4: Use proper quoting so brackets appear in the test
24829 Reported by, and with help from, Bruno Haible.
24831 2001-05-13 Jim Meyering <meyering@lucent.com>
24833 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
24836 2001-05-11 Paul Eggert <eggert@twinsun.com>
24838 dirname code cleanup. base_name now behaves more compatibly
24839 with POSIX basename when given file names that have trailing
24840 slashes, and similarly for dir_name. Add new primitives
24841 base_len and dir_len. Put the directory-name-related decls
24844 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
24845 * lib/backupfile.c (base_name): Likewise.
24846 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
24847 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
24848 * lib/makepath.c (strip_trailing_slashes): Likewise.
24849 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
24850 ISSLASH): Likewise.
24851 * lib/rename.c (strip_trailing_slashes): Likewise.
24852 * lib/same.c (base_name): Likewise.
24853 * lib/stripslash.c (ISSLASH): Likewise.
24855 * lib/addext.c: Include <dirname.h> after size_t is defined.
24856 * lib/backupfile.c: Likewise.
24858 * lib/addext.c (addext): Use base_len to trim redundant
24859 trailing slashes instead of doing it ourselves.
24860 But do not trim the last slash if it is not redundant.
24862 * lib/backupfile.c (find_backup_file_name,
24863 max_backup_version): Use base_len instead of rolling it ourselves.
24864 Handle the case of "" and (on DOS) "C:" correctly.
24866 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
24867 needed. Include <string.h>, <dirname.h>.
24868 (base_name): Allow file names ending in slashes, other than names
24869 that are all slashes. In this case, return the basename followed
24870 by the slashes. This is more general, and can be used in places
24871 where the original base_name purposely had an assertion failure.
24872 (base_len): New function.
24874 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
24875 Do not include <assert.h>; no longer needed.
24877 (memrchr): Remove decl.
24878 (dir_name_r): Remove.
24879 (dir_len): Renamed from dirlen. All callers changed.
24880 Rewrite in terms of base_name, for simplicity and consistency.
24881 (dir_name): Never return NULL. All callers changed.
24882 Do not include <stdlib.h> in test program; no longer needed.
24883 return 0; is fine for test program.
24885 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
24887 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
24889 * lib/path-concat.c (path_concat): Use base_len to compute
24890 base length, not strlen; this means we cannot rely on memcpy
24893 * lib/same.c (STREQ): Remove.
24894 (same_name): Handle the case where the basename ends in trailing '/'.
24896 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
24897 a slash was stripped. Do not strip the last slash after a
24898 file system prefix.
24900 2001-05-11 Paul Eggert <eggert@twinsun.com>
24902 * lib/Makefile.am (libfetish_a_SOURCES):
24903 Add strftime.c, since we now compile it on all hosts.
24905 * lib/strftime.c (my_strftime):
24906 Define to nstrftime if emacs, but only if my_strftime is not defined.
24907 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
24908 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
24909 Add one more extra argument: a nanoseconds value.
24912 (my_strftime function): Add %N format.
24913 (emacs_strftimeu): Renamed from emacs_strftime,
24914 with extra ut argument.
24916 2001-05-09 Paul Eggert <eggert@twinsun.com>
24918 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
24920 2001-04-21 Jim Meyering <meyering@lucent.com>
24922 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
24925 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
24927 * m4/ftruncate.m4: Check for chsize.
24928 Link with ftruncate.o unconditionally if ftruncate is missing.
24929 This was required when cross-compiling to i586-mingw32msvc.
24931 2001-04-08 Jim Meyering <meyering@lucent.com>
24933 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
24934 recomputed; that's necessary when the offset spans a DST transition.
24935 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
24937 2001-04-02 Jim Meyering <meyering@lucent.com>
24939 * lib/regex.h, regex.c: Update from GNU libc.
24941 2001-03-24 Jim Meyering <meyering@lucent.com>
24943 * m4/jm-macros.m4: Require autoconf-2.49d.
24945 2001-03-20 Bruno Haible <haible@clisp.cons.org>
24947 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
24949 2001-03-19 Paul Eggert <eggert@twinsun.com>
24951 * lib/version-etc.c (version_etc_copyright): Update to 2001.
24953 2001-03-17 Jim Meyering <meyering@lucent.com>
24955 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
24956 now that the version in autoconf is equivalent.
24957 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
24959 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
24960 Suggestion from Akim Demaille.
24962 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
24963 (jm_PREREQ_TEMPNAME): New function.
24965 2001-03-16 Paul Eggert <eggert@twinsun.com>
24967 * lib/tempname.c (uint64_t): Define to uintmax_t if
24968 not defined, and if UINT64_MAX is not defined.
24969 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
24970 Reported by John David Anglin.
24972 2001-03-15 Bruno Haible <haible@clisp.cons.org>
24974 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
24975 resolve alias if codeset is empty.
24976 * lib/config.charset (BeOS): Use wildcard syntax.
24978 2001-03-13 Jim Meyering <meyering@lucent.com>
24980 * lib/path-concat.c (path_concat)
24981 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
24982 concatenating e.g., `C:' and `foo'.
24985 2001-03-06 Bruno Haible <haible@clisp.cons.org>
24987 * lib/localcharset.c (locale_charset): Don't use
24988 setlocale(LC_CTYPE,NULL). Don't return NULL.
24989 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
24991 2001-03-06 Bruno Haible <haible@clisp.cons.org>
24993 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
24994 support for DOS/DJGPP.
24996 2001-03-01 Paul Eggert <eggert@twinsun.com>
24998 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
24999 lacks mkstemp. Compile our own tempname.c if we compile our own
25000 mkstemp.c, as mkstemp relies on tempname.
25002 2001-03-01 Jim Meyering <meyering@lucent.com>
25004 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
25005 AH_VERBATIM really does output its argument verbatim.
25007 2001-02-28 Paul Eggert <eggert@twinsun.com>
25009 * lib/Makefile.am (libfetish_a_SOURCES):
25010 Add dup-safer.c, fopen-safer.c.
25011 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
25013 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
25014 * lib/unistd-safer.h: New files.
25016 2001-02-25 Paul Eggert <eggert@twinsun.com>
25018 The mkstemp replacement is taken from glibc 2.2.2, with some
25019 portability fixes for use outside glibc, as follows:
25021 * lib/tempname.c (struct_stat64): New macro.
25022 (direxists, __gen_tempname): Use it.
25023 This avoids a portability problem with Solaris 8.
25025 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
25026 (<stddef.h>, <stdint.h>, <string.h>):
25027 Include only if STDC_HEADERS || _LIBC.
25028 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
25029 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
25030 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
25031 (__set_errno): Define this macro if <errno.h> doesn't.
25032 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
25033 Define these macros if <stdio.h> doesn't.
25034 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
25035 Define these macros if <sys/stat.h>
25036 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
25037 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
25038 __xstat64): Define if not _LIBC.
25039 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
25040 (__gen_tempname): Invoke gettimeofday only if
25041 HAVE_GETTIMEOFDAY || _LIBC;
25042 otherwise, fall back on plain "time".
25043 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
25045 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
25047 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
25049 2001-02-18 Paul Eggert <eggert@twinsun.com>
25051 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
25053 2001-02-17 Paul Eggert <eggert@twinsun.com>
25055 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
25056 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
25057 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
25058 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
25060 2001-02-17 Paul Eggert <eggert@twinsun.com>
25062 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
25063 Remove workaround macros for hosts that have mbrtowc but not
25064 mbstate_t, as we now insist on proper declarations for both
25065 before using mbrtowc.
25067 2001-02-17 Jim Meyering <meyering@lucent.com>
25069 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
25070 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
25071 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
25074 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
25075 rather than AC_CACHE_VAL.
25077 2001-02-17 Jim Meyering <meyering@lucent.com>
25079 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
25080 around included file name.
25082 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
25084 * lib/strftime.c: Update from GNU libc (the only changes were to
25087 2001-02-17 Jim Meyering <meyering@lucent.com>
25089 * lib/regex.c: Update from libc.
25091 2001-02-17 Bruno Haible <haible@clisp.cons.org>
25093 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
25096 2001-02-16 Paul Eggert <eggert@twinsun.com>
25098 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
25099 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
25100 Reported by Mark Hounschell via Paul Eggert.
25102 2001-02-07 Jim Meyering <meyering@lucent.com>
25104 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
25106 2001-02-05 Jim Meyering <meyering@lucent.com>
25108 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
25109 it includes the patch required for `large file' support with at least
25110 HP-UX's 10.20 /bin/cc.
25112 2001-02-03 Jim Meyering <meyering@lucent.com>
25114 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
25115 AS_IF, now that it works once again (mysteriously).
25116 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25118 2001-01-30 Jim Meyering <meyering@lucent.com>
25120 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
25121 * m4/chown.m4: Rename conftestchown to conftest.chown.
25122 * m4/rename.m4: s/conftestdir/conftest.d1/ and
25123 s/conftestdir2/conftest.d2/.
25124 * m4/utimes.m4: s/conftestdata/conftest.data/
25125 Inspired by Pavel Roskin's change in autoconf.
25127 2001-01-30 Bruno Haible <haible@clisp.cons.org>
25129 * lib/config.charset: Update for FreeBSD 4.2.
25131 2001-01-27 Jim Meyering <meyering@lucent.com>
25133 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
25135 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
25137 2001-01-26 Jim Meyering <meyering@lucent.com>
25139 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
25140 quotearg.c includes it.
25142 2001-01-26 Jim Meyering <meyering@lucent.com>
25144 * lib/quotearg.c: Include stddef.h.
25145 * lib/quote.c: Include stddef.h.
25146 Reported by Axel Kittenberger.
25148 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
25149 line in double quotes so that it evokes a better diagnostic.
25150 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
25151 Reported by Axel Kittenberger.
25153 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
25155 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
25156 as if it was a `charset'.
25158 2001-01-21 Bruno Haible <haible@clisp.cons.org>
25160 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
25163 2001-01-21 Bruno Haible <haible@clisp.cons.org>
25165 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
25166 to avoid a warning. Add back 'const' to inptr.
25168 2001-01-20 Jim Meyering <meyering@lucent.com>
25170 Be sure that headers are checked before used in code compiled
25171 for the type checks.
25172 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
25173 In place of that, invoke jm_CHECK_ALL_TYPES.
25174 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
25175 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
25176 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
25177 The check for ssize_t was mistakenly run before the test for unistd.h.
25179 The configure-time check for stdbool.h was missing.
25180 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
25181 (jm_PREREQ_HASH): New function.
25183 2001-01-17 Jim Meyering <meyering@lucent.com>
25185 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
25186 for autoconf-2.49c.
25187 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
25189 2001-01-16 Jim Meyering <meyering@lucent.com>
25191 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
25194 2001-01-14 Jim Meyering <meyering@lucent.com>
25196 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
25197 foo and bar. Create conftestdir/ in the script, not in the C code.
25198 Remove directories in the script, not in the C code.
25199 Remove conftestdir{,2} before trying to create the directory.
25200 Make the entire configure script fail if the mkdir fails.
25202 2001-01-14 Jim Meyering <meyering@lucent.com>
25204 * lib/rename.c: New file. From Volker Borchert.
25205 Include stdlib.h, string.h or strings.h, and xalloc.h.
25206 Use strip_trailing_slashes rather than open-coding it.
25208 2001-01-03 Paul Eggert <eggert@twinsun.com>
25210 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
25212 2001-01-03 Jim Meyering <meyering@lucent.com>
25214 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
25215 of local `inptr' to avoid warning with some system declarations of
25218 2001-01-02 Volker Borchert <bt@teknon.de>
25220 * m4/rename.m4: New file.
25221 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
25223 2001-01-01 Jim Meyering <meyering@lucent.com>
25225 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
25226 even on systems with utmpx.h. It's necessary for the declaration of
25227 utmp's ut_user member. Reported by Andreas Jaeger.
25229 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
25230 available. They are required for the declarations of getgrgid and
25232 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
25233 Reported by Andreas Jaeger.
25235 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
25237 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
25238 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
25239 so `make install' also works in VPATH builds.
25241 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
25243 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
25244 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
25245 can be used in subdirectories.
25247 2000-12-29 Paul Eggert <eggert@twinsun.com>
25249 * lib/modechange.c: Do not assume that mode_t uses the
25250 traditional octal encoding. E.g. "chmod 1 FOO" should set
25251 the other-execute bit of FOO even if S_IXOTH != 1.
25253 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
25254 WOTH, XOTH, ALLM): New macros.
25255 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
25256 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
25258 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
25259 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
25261 No need to use uintmax_t; unsigned long is long enough.
25262 Don't bother to get suffix since we don't use it.
25264 2000-12-26 Jim Meyering <meyering@lucent.com>
25266 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
25267 better with autoheader.
25269 2000-12-24 Jim Meyering <meyering@lucent.com>
25271 * lib/hash.c (is_prime): Return explicit boolean values.
25272 (hash_get_first): Return NULL to appease Irix5.6's 89.
25273 Reported by Nelson Beebe.
25275 2000-12-19 Bruno Haible <haible@clisp.cons.org>
25277 * lib/localcharset.c (locale_charset): Add support for Win32.
25279 2000-12-18 Paul Eggert <eggert@twinsun.com>
25281 * lib/physmem.h, lib/physmem.c: New files.
25283 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
25284 (noinst_HEADERS): Add physmem.h.
25286 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
25287 't' for compatibility with Solaris 8 sort.
25289 2000-12-18 Bruno Haible <haible@clisp.cons.org>
25291 * lib/config.charset: Add support for BeOS.
25293 2000-12-17 Jim Meyering <meyering@lucent.com>
25295 * m4/dos.m4 (jm_AC_DOS): New file and macro.
25296 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
25298 2000-12-16 Jim Meyering <meyering@lucent.com>
25300 This bug had a serious impact on chown: `chown N:M FILE' (for integer
25301 N and M) would have treated it like `chown N:N FILE'.
25303 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
25305 2000-12-16 Jim Meyering <meyering@lucent.com>
25307 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
25308 SHELLS_FILE to a file name that's useful on djgpp systems.
25310 (ADDITIONAL_DEFAULT_SHELLS): Define.
25311 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
25312 Based mostly on a patch from Prashant TR.
25314 2000-12-16 Bruno Haible <haible@clisp.cons.org>
25316 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
25317 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
25318 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
25320 2000-12-08 Andreas Schwab <schwab@suse.de>
25322 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
25323 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
25325 2000-12-07 Jim Meyering <meyering@lucent.com>
25327 * lib/stripslash.c (ISSLASH): Define.
25328 (strip_trailing_slashes): Use ISSLASH rather than comparing against
25332 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
25333 (dir_name_r): Declare this function as static.
25334 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
25335 manifest itself on a name containing a mix of slashes and
25337 Make this function work with names starting with a DOS-style
25338 drive letter and colon prefix.
25339 (dir_name): Append `.' if necessary.
25340 Based mostly on patches from Prashant TR and Eli Zaretskii.
25342 * lib/dirname.h (dir_name_r): Remove prototype.
25344 2000-12-06 Paul Eggert <eggert@twinsun.com>
25346 * m4/off_t-format.m4: Remove this file.
25347 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
25349 2000-12-06 Jim Meyering <meyering@lucent.com>
25351 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
25352 replacement strtoull, we may well need the replacement strtoul, too.
25353 Check for declarations of strtoul and strtoull.
25354 Check for strtol. Mainly as a cue to cause automake to include
25355 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
25356 Check for limits.h -- strtol.c needs it.
25358 2000-12-05 Jim Meyering <meyering@lucent.com>
25360 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
25362 2000-12-04 Jim Meyering <meyering@lucent.com>
25364 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
25365 Also include memory.h, stdlib.h, unistd.h if appropriate.
25366 Reported by Andreas Jaeger (conflicting declaration of malloc).
25368 2000-12-02 Jim Meyering <meyering@lucent.com>
25370 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
25371 * m4/jm-macros.m4 (jm_MACROS): require it.
25373 2000-12-02 Jim Meyering <meyering@lucent.com>
25375 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
25377 2000-12-01 Paul Eggert <eggert@twinsun.com>
25379 * lib/memrchr.c: Include <config.h> before any system include file.
25381 2000-11-30 Jim Meyering <meyering@lucent.com>
25383 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
25385 2000-11-30 Jim Meyering <meyering@lucent.com>
25387 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
25389 2000-11-29 Paul Eggert <eggert@twinsun.com>
25391 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
25393 2000-11-26 Jim Meyering <meyering@lucent.com>
25395 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
25397 2000-11-22 Paul Eggert <eggert@twinsun.com>
25399 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
25400 size of (size_t) -1; it's not portable.
25402 2000-11-17 Jim Meyering <meyering@lucent.com>
25404 * lib/strstr.c: Update from GNU libc.
25406 2000-11-17 Akim Demaille <akim@epita.fr>
25408 * lib/obstack.h: Formatting changes.
25409 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
25410 prevent type checking.
25411 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
25412 cast the value to (void *): assigning a `foo *' to a `void *'
25414 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
25416 2000-11-16 Jim Meyering <meyering@lucent.com>
25418 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
25420 2000-11-11 Jim Meyering <meyering@lucent.com>
25422 * lib/error.c: Add a couple #includes, merging from GNU libc version.
25424 2000-11-10 Jim Meyering <meyering@lucent.com>
25426 * lib/obstack.h: Update from GNU libc.
25427 * lib/obstack.c: Likewise.
25429 2000-11-08 Bruno Haible <haible@clisp.cons.org>
25431 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
25433 2000-11-06 Paul Eggert <eggert@twinsun.com>
25435 * lib/getusershell.c (setusershell): Use rewind rather than
25436 fseek/fseeko, to avoid configuration hassles with fseeko.
25437 Don't bother opening SHELLS_FILE if shellstream is NULL;
25438 it's not necessary.
25440 2000-11-05 Jim Meyering <meyering@lucent.com>
25442 * lib/makepath.h (make_dir): Declare.
25443 * lib/makepath.c (make_dir): Remove `static' attribute.
25446 2000-11-04 Jim Meyering <meyering@lucent.com>
25448 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
25450 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
25452 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
25453 last one in a bucket, advance to the next bucket.
25455 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
25457 * lib/fnmatch.c: Do not comment out all the code if we are using
25458 the GNU C library, because in some cases we are replacing buggy
25459 code in the GNU C library itself.
25461 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
25463 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
25464 (regex_compile): Catch bogus \(\1\).
25466 2000-10-30 Paul Eggert <eggert@twinsun.com>
25468 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
25469 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
25470 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
25472 2000-10-30 Paul Eggert <eggert@twinsun.com>
25474 * lib/error.h, getline.h, modechange.h:
25475 Remove "2000" from Copyright line, as the file hasn't been
25476 changed this year other than in the copyright notice.
25478 * lib/xalloc.h: Add "2000" to Copyright line, as this file
25479 was changed this year.
25481 2000-10-29 Jim Meyering <meyering@lucent.com>
25483 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
25485 * m4/ls-mntd-fs.m4: Likewise
25487 2000-10-29 Jim Meyering <meyering@lucent.com>
25489 * lib/xstat.in: Fix grammar in comment.
25491 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
25493 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
25494 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
25495 doesn't define __restrict_arr.
25497 2000-10-28 Jim Meyering <meyering@lucent.com>
25499 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
25500 (jm_PREREQ_MEMCHR): New function.
25502 2000-10-28 Jim Meyering <meyering@lucent.com>
25504 * lib/memchr.c: Update from libc.
25505 Adjust for portability:
25506 [HAVE_STDLIB_H]: Include stdlib.h.
25507 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
25508 Undef __memchr, too.
25509 [!weak_alias]: Define __memchr to memchr.
25511 * lib/regex.c: Update from libc.
25512 * lib/regex.h: Likewise.
25513 * lib/getopt1.c: Likewise.
25514 * lib/memcmp.c: Likewise.
25516 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
25517 Avoid using fseek, when possible -- it's broken by design.
25518 Patch by Ulrich Drepper.
25520 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
25522 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
25523 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
25524 Giving in to popular pressure to shut up the compiler with casts.
25526 2000-10-26 Jim Meyering <meyering@lucent.com>
25528 * lib/strftime.c: Update from libc.
25530 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
25532 * regex.c: More `unsigned char' -> `re_char' changes.
25533 Also change several `int' into `re_wchar_t'.
25534 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
25535 (PUSH_FAILURE_POINTER): Don't cast any more.
25536 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
25537 We want GCC to complain, since this piece of code makes
25538 re_match non-reentrant, which *should* be fixed.
25539 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
25540 (EXTEND_BUFFER): Use RETALLOC.
25541 (SET_LIST_BIT): Don't cast.
25542 (re_wchar_t): New type.
25543 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
25544 that those two functions will always properly return.
25545 (IMMEDIATE_QUIT_CHECK): Cast to void.
25546 (analyse_first): Use recursion rather than an explicit stack.
25547 (re_compile_fastmap): Can't fail anymore.
25548 (re_search_2): Don't check re_compile_fastmap for failure.
25549 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
25550 Now also sets the new value (passed in a new argument).
25551 (re_match_2_internal): Use it.
25552 Also, use a new var `reg' of type size_t when looping through regs
25553 rather than reuse the inappropriate `mcnt'.
25555 2000-10-25 Jim Meyering <meyering@lucent.com>
25557 * lib/obstack.c: Update from libc.
25559 2000-10-24 Kenichi Handa <handa@etl.go.jp>
25561 * regex.c (regex_compile): Change the way of handling a range from
25562 a char less than 256 to a char not less than 256.
25564 2000-10-24 Andrew Innes <andrewi@gnu.org>
25566 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
25568 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
25569 so that re_search functions only quit when callers expect them to.
25571 2000-10-23 Jim Meyering <meyering@lucent.com>
25573 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
25574 wrong. That set_locale call must not have any side effects.
25577 2000-10-22 Jim Meyering <meyering@lucent.com>
25579 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
25580 [CYCLIC]: Remove now-unused definition.
25582 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
25583 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
25584 Suggestion from Ulrich Drepper.
25586 2000-10-21 Jim Meyering <meyering@lucent.com>
25588 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
25589 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
25590 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
25592 2000-10-21 Jim Meyering <meyering@lucent.com>
25594 * lib/dirname.c (memrchr): Declare if necessary.
25595 (dir_name): Remove the restriction that there be no
25596 trailing slashes. Now, this code skips past them, effectively
25598 [TEST_DIRNAME] (main): New unit tests.
25600 * lib/memrchr.c: New file from GNU libc.
25601 Undef __memrchr, too.
25602 [!weak_alias]: Define __memrchr to memrchr.
25603 Guard weak_alias use with `#ifdef weak_alias'.
25605 2000-10-21 Jim Meyering <meyering@lucent.com>
25607 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
25608 (dir_name): Use dir_name_r.
25609 * lib/dirname.h (dir_name_r): Declare it.
25611 2000-10-17 Jim Meyering <meyering@lucent.com>
25613 * lib/quote.h (PARAMS): Define and use.
25614 Reported by Akim Demaille.
25616 * lib/getopt.c: Update from libc.
25618 2000-10-16 Jim Meyering <meyering@lucent.com>
25620 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
25624 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
25626 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
25628 2000-09-25 Jim Meyering <meyering@lucent.com>
25630 * lib/md5.h (rol): Define (from GnuPG).
25632 * lib/sha.c: Give credit (GnuPG) where due.
25633 (M): Use rol rather than open-coding it.
25634 Add a FIXME comment.
25636 2000-09-21 Jim Meyering <meyering@lucent.com>
25638 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
25639 Reported by Michael Stone.
25641 2000-09-20 Jim Meyering <meyering@lucent.com>
25643 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
25644 (noinst_HEADERS): Add sha.h.
25645 Based on code from Scott G. Miller and from GnuPG.
25647 2000-09-18 Jim Meyering <meyering@lucent.com>
25649 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
25650 LIBS. Otherwise, everyone ends up linking with -lelf for some
25652 Reported by Mike Stone.
25654 2000-09-15 Jim Meyering <meyering@lucent.com>
25656 * lib/regex.c: Update from libc.
25658 2000-09-10 Jim Meyering <meyering@lucent.com>
25660 * lib/getopt.c (_getopt_internal): Update from glibc.
25662 2000-09-09 Jim Meyering <meyering@lucent.com>
25664 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
25665 think it should be used as a general replacement for isascii.
25666 * lib/fnmatch.c: Likewise.
25667 * lib/mbswidth.c: Likewise
25668 * lib/regex.c: Likewise.
25671 * lib/userspec.c: Include sys/param.h and limits.h.
25673 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
25674 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
25675 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
25676 UID, GID. Check range.
25678 2000-09-06 Jim Meyering <meyering@lucent.com>
25680 * lib/getopt.c (_getopt_internal): Update from glibc.
25682 2000-08-30 Jim Meyering <meyering@lucent.com>
25684 * lib/strftime.c: Merge in changes from GNU libc.
25686 2000-08-26 Jim Meyering <meyering@lucent.com>
25688 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
25689 * m4/fpending.m4: New file.
25691 2000-08-26 Jim Meyering <meyering@lucent.com>
25693 * lib/closeout.c: Include "__fpending.h".
25694 (close_stdout_status): Return right away if there's nothing to flush.
25696 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
25697 * lib/__fpending.c: New file.
25698 * lib/__fpending.h: New file.
25700 2000-08-20 Jim Meyering <meyering@lucent.com>
25702 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
25703 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
25704 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
25706 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
25708 Improve fileutils installation on systems where running
25709 programs (like install) can't be unlinked.
25710 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
25711 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
25713 2000-08-07 Paul Eggert <eggert@twinsun.com>
25715 Standardize on "memory exhausted" instead of "Memory exhausted"
25716 or "virtual memory exhausted".
25717 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
25718 "virtual memory exhausted".
25719 * lib/same.c (same_name): Invoke xalloc_die instead of printing
25721 * lib/userspec.c (parse_user_spec): Likewise.
25722 * lib/bumpalloc.h: comment fix
25723 * lib/same.c, userspec.c: Include xalloc.h.
25725 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
25726 not char *const and pointing to a constant array.
25727 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
25728 (xrealloc): Comment fix.
25730 * lib/userspec.c (parse_user_spec):
25731 Don't translate a message until just before returning,
25732 to avoid unnecessary translation.
25734 2000-08-07 Jim Meyering <meyering@lucent.com>
25736 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
25737 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
25738 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
25739 getgroups.c, gethostname.c, getopt.h, group-member.c,
25740 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
25741 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
25742 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
25743 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
25744 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
25745 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
25746 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
25747 yesno.c: Back out Copyright date changes for each file with no change
25748 this year. This eases coordination with other programs using the same
25749 source code modules. From Paul Eggert.
25751 2000-08-06 Paul Eggert <eggert@twinsun.com>
25753 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
25754 not char, for compatibility with glibc 2.1.3 strftime.c.
25756 2000-08-03 Greg McGary <greg@mcgary.org>
25758 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
25759 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
25760 (EXTEND_BUFFER): Use them.
25762 2000-08-01 Jim Meyering <meyering@lucent.com>
25764 * lib/dirname.c (ISSLASH): Define.
25765 (BACKSLASH_IS_PATH_SEPARATOR): Define.
25766 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
25767 both `\' and `/' may be use as path separators.
25768 Based on a patch from Prashant TR.
25770 2000-07-31 Paul Eggert <eggert@twinsun.com>
25772 * lib/quotearg.c (quotearg_n_options): Don't make the initial
25773 slot vector a constant, since it might get modified.
25775 2000-07-31 Jim Meyering <meyering@lucent.com>
25777 * lib/xmalloc.c: Use `virtual memory exhausted', not
25778 `Memory exhausted'.
25779 * lib/obstack.c (print_and_abort): Likewise.
25781 2000-07-30 Paul Eggert <eggert@twinsun.com>
25783 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
25784 buffer, so that the caller can always quote one small
25785 component of a "memory exhausted" message in slot 0.
25786 From a suggestion by Jim Meyering.
25788 2000-07-30 Jim Meyering <meyering@lucent.com>
25790 * lib/makepath.c (make_path): Quote the other instance, too.
25792 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
25793 (STATIC_BUF_SIZE): Define.
25794 (quotearg_n_options): Use only statically allocated storage when
25795 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
25796 than STATIC_BUF_SIZE.
25798 2000-07-29 Jim Meyering <meyering@lucent.com>
25800 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
25801 * lib/dirname.c (dir_name): Likewise.
25803 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
25806 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
25807 (dir_name): Assert that there are no trailing slashes.
25809 2000-07-29 Bruno Haible <haible@clisp.cons.org>
25811 * lib/mbswidth.h (mbswidth): Add a flags argument.
25812 (mbswidth): New declaration.
25813 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
25814 * lib/mbswidth.c (mbswidth): Add a flags argument.
25815 (mbsnwidth): New function.
25817 2000-07-24 Jim Meyering <meyering@lucent.com>
25819 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
25821 2000-07-23 Paul Eggert <eggert@twinsun.com>
25823 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
25825 2000-07-23 Paul Eggert <eggert@twinsun.com>
25827 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
25828 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
25829 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
25830 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
25831 invoke multibyte primitives.
25833 2000-07-23 Paul Eggert <eggert@twinsun.com>
25836 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
25837 so that mbstate_t is always defined.
25839 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
25840 be 1 in at least one GCC installation, and this configuration
25841 error is likely to be common. Ignoring MB_LEN_MAX hurts
25842 performance on hosts that have mbrtowc but have only unibyte
25843 locales, but I assume these hosts are rare.
25845 2000-07-23 Paul Eggert <eggert@twinsun.com>
25847 * lib/mbswidth.c (_XOPEN_SOURCE):
25848 Don't define; this causes problems on Solaris 7.
25849 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
25851 2000-07-23 Jim Meyering <meyering@lucent.com>
25853 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
25854 too: getgrgid, getpwuid, getuid.
25856 2000-07-23 Jim Meyering <meyering@lucent.com>
25858 * lib/basename.c (base_name): Add an assertion.
25860 2000-07-23 Bruno Haible <haible@clisp.cons.org>
25862 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
25863 shadow its mbsinit function.
25865 2000-07-17 Bruno Haible <haible@clisp.cons.org>
25867 * lib/mbswidth.h: New file.
25868 * lib/mbswidth.c: New file.
25869 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
25870 (noinst_HEADERS): Add mbswidth.h.
25872 2000-07-17 Bruno Haible <haible@clisp.cons.org>
25874 * lib/config.charset: Add support for FreeBSD. Improve support for
25877 2000-07-16 Bruno Haible <haible@clisp.cons.org>
25879 * m4/mbswidth.m4: New file.
25880 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
25882 2000-07-15 Jim Meyering <meyering@lucent.com>
25884 * lib/makepath.c: Include quote.h.
25885 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
25886 corresponding argument in a `quote (...)' call.
25887 Give better diagnostics.
25889 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
25890 (noinst_HEADERS): Add quote.h.
25892 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
25893 from tar's src/misc.c.
25894 * lib/quote.h: New file. Prototypes for same.
25896 2000-07-14 Paul Eggert <eggert@twinsun.com>
25898 From a suggestion by Bruno Haible.
25899 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
25900 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
25901 to decide whether to define the BeOS workaround macro;
25902 this adjusts to the change to AC_MBSTATE_T.
25904 2000-07-14 Jim Meyering <meyering@lucent.com>
25906 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
25907 jm_AC_TYPE_UINTMAX_T.
25909 2000-07-13 Paul Eggert <eggert@twinsun.com>
25911 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
25913 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
25914 quotearg_buffer_restyled): Add support for
25915 clocale_quoting_style. Undo previous change to
25916 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
25917 and "{RIGHT QUOTATION MARK}" msgids.
25919 2000-07-10 Paul Eggert <eggert@twinsun.com>
25921 From a suggestion by Bruno Haible.
25922 * m4/mbstate_t.m4 (AC_MBSTATE_T):
25923 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
25924 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
25925 and mbstate_t, to a single-part test that simply defines mbstate_t.
25926 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
25927 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
25929 2000-07-10 Jim Meyering <meyering@lucent.com>
25931 * m4/strerror_r.m4: Mirror the correction made in autoconf.
25933 * m4/gnu-source.m4: Output to confdefs.h directly.
25934 Suggestion from Akim Demaille.
25936 2000-07-09 Paul Eggert <eggert@twinsun.com>
25938 The old behavior of quoting `like this' doesn't look good with
25939 newer, ISO-style fonts. See:
25940 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
25942 Instead, quote "like this" by default. Let the translator
25943 tailor the locale-specific quoting behavior by providing
25944 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
25946 * lib/quotearg.c (N_): New macro.
25947 (gettext_default): New function.
25948 (quotearg_buffer_restyled): Use
25949 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
25950 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
25952 2000-07-09 Jim Meyering <meyering@lucent.com>
25954 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
25955 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
25957 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
25958 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
25960 2000-07-09 Jim Meyering <meyering@lucent.com>
25962 * lib/Most files: Update copyright dates to include 2000.
25964 2000-07-08 Jim Meyering <meyering@lucent.com>
25966 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
25968 (xgethostname): Remove now-unnecessary #ifdef.
25969 Move declaration of `err' into loop where it's used.
25971 2000-07-05 Paul Eggert <eggert@twinsun.com>
25972 and Bruno Haible <haible@clisp.cons.org>
25974 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
25975 only if the test for an object-type mbstate_t fails. This
25976 prevents us from mistakenly reporting that mbstate_t is a
25977 system object type after we "#define mbstate_t int" to work
25980 2000-07-05 Paul Eggert <eggert@twinsun.com>
25981 and Bruno Haible <haible@clisp.cons.org>
25983 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
25985 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25987 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
25989 Include <ctype.h> for use of isalpha.
25991 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25993 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
25994 by allocating a larger buffer. Test the gethostname return value for
25995 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
25996 returns an error and ENAMETOOLONG isn't defined.
25998 2000-07-05 Bruno Haible <haible@clisp.cons.org>
26000 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
26003 2000-07-04 Jim Meyering <meyering@lucent.com>
26005 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
26006 of the deprecated AC_CHECKING.
26008 2000-07-04 Jim Meyering <meyering@lucent.com>
26010 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
26011 Reported by Bruno Haible.
26013 2000-07-04 Jim Meyering <meyering@lucent.com>
26015 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
26016 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
26019 2000-07-03 Paul Eggert <eggert@twinsun.com>
26021 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
26022 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
26024 2000-07-03 Paul Eggert <eggert@twinsun.com>
26025 and Bruno Haible <haible@clisp.cons.org>
26027 * lib/quotearg.c (mbrtowc):
26028 Assign to *pwc, and return 1 only if result is nonzero.
26029 (iswprint): Use ISPRINT when substituting our own mbrtowc.
26031 2000-07-03 Jim Meyering <meyering@lucent.com>
26033 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
26035 2000-07-03 Jim Meyering <meyering@lucent.com>
26037 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
26038 This is necessary to get a definition of e.g., UTMP_FILE on
26042 2000-07-02 Jim Meyering <meyering@lucent.com>
26044 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
26046 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
26047 AC_LIBOBJ(function_name).
26048 * m4/chown.m4: Likewise.
26049 * m4/fnmatch.m4: Likewise.
26050 * m4/ftruncate.m4: Likewise.
26051 * m4/getgroups.m4: Likewise.
26052 * m4/getline.m4: Likewise.
26053 * m4/group-member.m4: Likewise.
26054 * m4/jm-macros.m4: Likewise.
26055 * m4/lstat.m4: Likewise.
26056 * m4/malloc.m4: Likewise.
26057 * m4/memcmp.m4: Likewise.
26058 * m4/nanosleep.m4: Likewise.
26059 * m4/putenv.m4: Likewise.
26060 * m4/realloc.m4: Likewise.
26061 * m4/regex.m4: Likewise.
26062 * m4/stat.m4: Likewise.
26063 * m4/strftime.m4: Likewise.
26065 2000-07-02 Jim Meyering <meyering@lucent.com>
26067 * lib/quotearg.c (mbstate_t): Don't define here.
26069 2000-07-02 Jim Meyering <meyering@lucent.com>
26071 * lib/nanosleep.c (SIGCONT): Define if not already defined.
26073 2000-07-01 Jim Meyering <meyering@lucent.com>
26075 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
26077 2000-07-01 Jim Meyering <meyering@lucent.com>
26079 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
26082 2000-07-01 Bruno Haible <haible@clisp.cons.org>
26084 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
26085 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
26087 2000-07-01 Bruno Haible <haible@clisp.cons.org>
26089 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
26090 per change in ../m4/ls-mntd-fs.m4.
26091 (read_filesystem_list): Ignore symbolic links.
26093 2000-06-29 Jim Meyering <meyering@lucent.com>
26095 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
26096 for declaration of strcmp.
26098 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
26100 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
26101 Avoid warning by casting result to `char *' to remove `const'.
26103 2000-06-28 Jim Meyering <meyering@lucent.com>
26105 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
26106 included by quotearg.c, for which we perform this test. From
26109 2000-06-27 Bruno Haible <haible@clisp.cons.org>
26111 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
26112 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
26113 <utmpx.h> exists, put readutmp.o into LIBOBJS.
26115 2000-06-27 Bruno Haible <haible@clisp.cons.org>
26117 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
26119 2000-06-26 Paul Eggert <eggert@twinsun.com>
26121 savedir now sets errno on failure and invokes xmalloc to get memory.
26122 Fix a couple of other minor bugs while we're at it.
26124 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
26125 (NAMLEN): Remove macro.
26126 (malloc, realloc): Remove decls.
26127 (stpcpy): Likewise.
26128 ("xalloc.h"): Include.
26129 (NAME_SIZE_DEFAULT): New macro.
26130 (savedir): Use xmalloc / xrealloc to allocate memory.
26131 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
26132 Skip "" directory entries.
26133 Use strlen to calculate directory entry length, since the old method
26134 is rarely used these days and isn't worth supporting.
26135 Don't use a pointer after freeing it.
26136 Check for integer overflow when calculating allocation size.
26137 Use memcpy to copy entries, instead of stpcpy.
26138 Set errno properly when returning NULL.
26139 Check for readdir error.
26141 2000-06-26 Jim Meyering <meyering@lucent.com>
26143 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
26145 2000-06-25 Jim Meyering <meyering@lucent.com>
26147 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
26148 Linux header bug when _XOPEN_SOURCE is defined to 500.
26150 2000-06-25 Bruno Haible <haible@clisp.cons.org>
26152 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
26155 2000-06-25 Bruno Haible <haible@clisp.cons.org>
26157 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
26159 Don't include <stdlib.h>. Don't declare malloc, realloc.
26161 2000-06-24 Jim Meyering <meyering@lucent.com>
26163 * m4/strerror_r.m4: Revive this file -- to try out an experimental
26164 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
26165 for which strerror does return char*, but which lacks a conveniently
26166 accessible declaration of the function. If the compile-test says
26167 strerror_r doesn't work, then resort to a `run'-test that works on
26168 BeOS and segfaults on DEC Unix.
26170 2000-06-24 Jim Meyering <meyering@lucent.com>
26172 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
26174 2000-06-23 Paul Eggert <eggert@twinsun.com>
26176 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
26177 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
26179 2000-06-23 Paul Eggert <eggert@twinsun.com>
26181 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
26182 (mbrtowc, mbstate_t): Define substitutes if
26183 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
26184 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
26185 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
26187 2000-06-23 Jim Meyering <meyering@lucent.com>
26189 * m4/afs.m4: Add missing AC_MSG_RESULT.
26190 Reported by Bruno Haible.
26192 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
26193 Suggestion from Bruno Haible.
26195 2000-06-23 Jim Meyering <meyering@lucent.com>
26197 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
26199 2000-06-21 Jim Meyering <meyering@lucent.com>
26201 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
26203 2000-06-21 Jim Meyering <meyering@lucent.com>
26205 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
26206 (noinst_HEADERS): Add getstr.h.
26208 * lib/getline.c (getstr): Move into a separate file.
26209 * lib/getstr.c (getstr): New file, extracted from getline.c, with
26210 the following changes: new parameter, delim2; both delim[12]
26211 parameters have type `int', not `char'. The latter would lose
26212 with 8-bit delimiters.
26213 * lib/getstr.h: New file.
26215 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26217 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
26218 than 1024, return a memory chunk of least possible size, instead
26219 of size PATH_MAX + 2. In the loop, increment the size proportionally.
26220 Use free/xmalloc instead of xrealloc to avoid copying for very long
26223 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26225 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
26228 2000-06-21 Bruno Haible <haible@clisp.cons.org>
26230 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
26231 address, not strdup. Include <stdlib.h> and don't declare free().
26233 2000-06-19 Jim Meyering <meyering@lucent.com>
26235 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
26237 2000-06-18 Jim Meyering <meyering@lucent.com>
26239 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
26241 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
26242 `checking whether...' message to be consistent with that of the
26245 2000-06-18 Jim Meyering <meyering@lucent.com>
26247 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
26248 Besides, these days every porting target provides a mkdir function.
26250 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
26251 needed. (this snippet comes from src/system.h).
26253 2000-06-16 Bruno Haible <haible@clisp.cons.org>
26255 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
26257 2000-06-15 Paul Eggert <eggert@twinsun.com>
26259 * lib/human.c (adjust_value): New function.
26260 (human_readable_inexact): Apply rounding style even when
26261 printing approximate values.
26263 2000-06-14 Paul Eggert <eggert@twinsun.com>
26265 * lib/human.c (human_readable_inexact): Allow an input block
26266 size that is not a multiple of the output block size, and vice versa.
26267 Reported by Piergiorgio Sartor.
26269 2000-06-14 Paul Eggert <eggert@twinsun.com>
26271 * lib/getdate.y (get_date): Apply relative times after time
26272 zone indicator, not before. Reported by Todd A. Jacobs.
26274 2000-06-13 Jim Meyering <meyering@lucent.com>
26276 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
26278 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
26280 2000-06-12 Paul Eggert <eggert@twinsun.com>
26282 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
26284 2000-06-12 Jim Meyering <meyering@lucent.com>
26286 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
26287 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
26289 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
26290 the optional argument, `lib'.
26292 2000-06-08 Jim Meyering <meyering@lucent.com>
26294 * m4/largefile.m4: Remove file (now that it's part of autoconf).
26296 2000-06-04 Paul Eggert <eggert@twinsun.com>