1 2007-10-03 Bruno Haible <bruno@clisp.org>
3 Port the stdio extensions to QNX (untested).
4 * lib/fseterr.c (fseterr): Add support for QNX.
5 * lib/fbufmode.c (fbufmode): Likewise.
6 * lib/freadable.c (freadable): Likewise.
7 * lib/fwritable.c (fwritable): Likewise.
8 * lib/freading.c (freading): Likewise.
9 * lib/fwriting.c (fwriting): Likewise.
10 * lib/freadahead.c (freadahed): Likewise.
11 * lib/fpurge.c (fpurge): Likewise.
12 * lib/fseeko.c (rpl_fseeko): Likewise.
14 2007-10-03 Bruno Haible <bruno@clisp.org>
15 Jim Meyering <jim@meyering.net>
16 Eric Blake <ebb9@byu.net>
18 * doc/relocatable.texi: Use @command instead of @program.
20 2007-10-02 Jim Meyering <jim@meyering.net>
22 Perform one more "_.h" -> ".in.h" substitution.
23 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
24 instead of unistd_.h here, too.
26 2007-10-01 Bruno Haible <bruno@clisp.org>
28 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29 Needed for the alloca-opt module.
31 2007-09-30 Bruno Haible <bruno@clisp.org>
33 * lib/alloca.in.h: Renamed from lib/alloca_.h.
34 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36 * lib/argz.in.h: Renamed from lib/argz_.h.
37 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41 * lib/dirent.in.h: Renamed from lib/dirent_.h.
42 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47 * lib/float.in.h: Renamed from lib/float_.h.
48 * modules/float (Files, Makefile.am): Use float.in.h instead of
50 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53 * lib/getopt.in.h: Renamed from lib/getopt_.h.
54 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56 * lib/glob.in.h: Renamed from lib/glob_.h.
57 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58 * lib/iconv.in.h: Renamed from lib/iconv_.h.
59 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64 * lib/locale.in.h: Renamed from lib/locale_.h.
65 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67 * lib/math.in.h: Renamed from lib/math_.h.
68 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
69 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
70 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
71 of netinet_in_.h. Add dependency.
72 * lib/poll.in.h: Renamed from lib/poll_.h.
73 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
74 * lib/search.in.h: Renamed from lib/search_.h.
75 * modules/search (Files, Makefile.am): Use search.in.h instead of
77 * lib/signal.in.h: Renamed from lib/signal_.h.
78 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
80 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
81 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
83 * lib/stdint.in.h: Renamed from lib/stdint_.h.
84 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
86 * lib/stdio.in.h: Renamed from lib/stdio_.h.
87 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
89 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
90 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
92 * lib/string.in.h: Renamed from lib/string_.h.
93 * modules/string (Files, Makefile.am): Use string.in.h instead of
95 * doc/gnulib-tool.texi (Initial import): Update.
96 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
98 of sys_select_.h. Add dependency.
99 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
102 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
103 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
105 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
106 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
108 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
109 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
111 * lib/time.in.h: Renamed from lib/time_.h.
112 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
113 * lib/unistd.in.h: Renamed from lib/unistd_.h.
114 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
116 * lib/wchar.in.h: Renamed from lib/wchar_.h.
117 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
119 * lib/wctype.in.h: Renamed from lib/wctype_.h.
120 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
122 * build-aux/bootstrap (slurp): Update.
123 * lib/.cppi-disable: Update.
125 2007-09-30 Bruno Haible <bruno@clisp.org>
127 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
130 2007-09-30 Bruno Haible <bruno@clisp.org>
132 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
134 2007-09-29 Bruno Haible <bruno@clisp.org>
136 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
138 2007-09-29 Bruno Haible <bruno@clisp.org>
140 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
141 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
142 * build-aux/install-reloc: Compile also areadlink.c.
143 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
145 2007-09-29 Bruno Haible <bruno@clisp.org>
147 * gnulib-tool (func_emit_initmacro_done): Indentation.
149 2007-09-29 Bruno Haible <bruno@clisp.org>
151 * README: Add CVS checkout update instructions.
152 Info from Bob Proulx <bob@proulx.com>.
154 2007-09-28 Eric Blake <ebb9@byu.net>
156 Provide move-if-change.
157 * build-aux/move-if-change: New file, based on best practice
158 rather than any canonical upstream location.
160 2007-09-28 Jim Meyering <jim@meyering.net>
162 Fix canonicalize loop-detection corner case.
163 Do not attempt to stat the symlink values stored via seen_triple.
164 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
165 on linux-2.6.18, (but not 2.6.22).
166 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
167 triple_compare. The former compares dev,ino,filename, while the latter
168 would actually stat dirname(filename) when dev and ino were equal.
169 * lib/hash-triple.c: Install <string.h>.
171 (triple_compare_ino_str): New function.
172 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
174 2007-09-28 Eric Blake <ebb9@byu.net>
176 Enforce that AC_REPLACE_FUNCS files exist.
177 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
178 override check for typos.
180 Fix test-closein on Solaris 10.
181 * tests/test-closein.c (main): Don't assume stdin can be inherited
182 closed on all systems.
183 * tests/test-closein.sh: Likewise.
184 Reported by Piotr Tarnowski.
186 2007-09-28 Jim Meyering <jim@meyering.net>
188 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
190 2007-09-27 Jim Meyering <jim@meyering.net>
192 canonicalize: Avoid a false-positive cycle failure.
193 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
194 Sort. Remove cycle-check.
195 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
197 (seen_triple): New function.
198 (canonicalize_filename_mode): Use it instead of cycle-check.
199 * tests/test-canonicalize.c: Add a test for this bug.
200 * tests/test-canonicalize.sh: Set up and run the test.
202 New module, file-set, from coreutils.
203 * modules/file-set: Define it.
204 * lib/file-set.c, lib/file-set.h: Implement.
206 New module, hash-triple, from coreutils.
207 * modules/hash-triple: Define it.
208 * lib/hash-triple.c, lib/hash-triple.h: Implement.
210 2007-09-25 Eric Blake <ebb9@byu.net>
212 Fix strerror on Interix.
213 * lib/string_.h (strerror): Declare replacement.
214 * doc/functions/strerror.texi (strerror): Document the Interix
216 * modules/string (Makefile.am): Support new hooks.
217 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
218 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
219 gl_FUNC_STRERROR_SEPARATE.
220 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
221 * lib/strerror.c (rpl_strerror): Provide replacement.
222 * modules/strerror (Depends-on): Add string.
223 (configure.ac): Detect use of module.
224 * tests/test-strerror.c: New file.
225 * modules/strerror-tests: New test module.
226 * modules/argp (Depends-on): Add strerror.
227 * modules/error (Depends-on): Likewise.
228 Reported by Martin Koeppe.
230 2007-09-24 Bruno Haible <bruno@clisp.org>
232 * README: Update git instructions.
234 2007-09-24 Eric Blake <ebb9@byu.net>
236 Revert fpending breakage from 2007-09-08.
237 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
240 2007-09-24 Jim Meyering <jim@meyering.net>
242 filenamecat.c: Add a test.
243 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
244 showing how the function works when DIR is the empty string.
246 2007-09-21 Simon Josefsson <simon@josefsson.org>
248 * tests/test-canonicalize.sh: Turn on executable bit.
250 2007-09-19 Eric Blake <ebb9@byu.net>
252 * README: Update CVS instructions.
254 2007-09-18 Bruno Haible <bruno@clisp.org>
256 * modules/areadlink: New file.
257 * lib/areadlink.h (areadlink): New declaration.
258 * lib/areadlink.c: New file, based on lib/xreadlink.c.
260 2007-09-17 Jim Meyering <jim@meyering.net>
262 * lib/savewd.c (ESTALE) [!defined]: Define.
263 Reported to be required on Interix by Martin Koeppe.
265 2007-09-17 Bruno Haible <bruno@clisp.org>
267 * gnulib-tool (func_version): Use $version.
269 2007-09-16 Bruno Haible <bruno@clisp.org>
271 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
272 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
273 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
274 Reported by Greg Schafer <gschafer@zip.com.au>.
276 2007-09-15 Bruno Haible <bruno@clisp.org>
278 * gnulib-tool (sed): Try a little harder to make bash understand the
280 Reported by Bruce Korb <bruce.korb@gmail.com>.
282 2007-09-13 Eric Blake <ebb9@byu.net>
284 * ChangeLog: Remove conflict markers.
286 2007-09-13 Simon Josefsson <simon@josefsson.org>
288 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
289 Reported by Bruno Haible <bruno@clisp.org>.
291 2007-09-12 Bruno Haible <bruno@clisp.org>
293 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
294 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
297 2007-09-12 Eric Blake <ebb9@byu.net>
299 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
300 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
302 * modules/euidaccess (Depends-on): Add extensions, for
303 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
304 * modules/fnmatch (Depends-on): Likewise.
305 * modules/getaddrinfo (Depends-on): Likewise.
306 * modules/getdelim (Depends-on): Likewise.
307 * modules/getline (Depends-on): Likewise.
308 * modules/getsubopt (Depends-on): Likewise.
309 * modules/gettext (Depends-on): Likewise.
310 * modules/group-member (Depends-on): Likewise.
311 * modules/mbchar (Depends-on): Likewise.
312 * modules/memmem (Depends-on): Likewise.
313 * modules/mempcpy (Depends-on): Likewise.
314 * modules/memrchr (Depends-on): Likewise.
315 * modules/pagealign_alloc (Depends-on): Likewise.
316 * modules/readutmp (Depends-on): Likewise.
317 * modules/stpcpy (Depends-on): Likewise.
318 * modules/stpncpy (Depends-on): Likewise.
319 * modules/strchrnul (Depends-on): Likewise.
320 * modules/strndup (Depends-on): Likewise.
321 * modules/strsep (Depends-on): Likewise.
322 * modules/strverscmp (Depends-on): Likewise.
323 * modules/vasprintf (Depends-on): Likewise.
324 * modules/wcwidth (Depends-on): Likewise.
325 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
326 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
327 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
328 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
329 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
330 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
331 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
332 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
333 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
334 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
335 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
336 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
337 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
338 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
339 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
340 * m4/readutmp.m4 (gl_READUTMP): Likewise.
341 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
342 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
343 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
344 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
345 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
346 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
347 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
348 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
349 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
350 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
351 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
352 so that lock.m4 can be used in gettext without extensions module.
354 2007-09-11 Bruno Haible <bruno@clisp.org>
356 * m4/isc-posix.m4: Remove file.
357 Suggested by Eric Blake.
359 2007-09-11 Eric Blake <ebb9@byu.net>
361 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
363 2007-09-10 Bruno Haible <bruno@clisp.org>
365 * posix-modules: Fix typo in error message.
366 Reported by Matt <mkraai@beckman.com>.
368 2007-09-09 Bruno Haible <bruno@clisp.org>
370 * doc/functions/getdelim.texi: Update list of platforms lacking the
372 * doc/functions/getline.texi: Likewise.
374 2007-09-09 Jim Meyering <jim@meyering.net>
376 * lib/hash.c (hash_initialize): Detect calloc failure.
377 Reported by Bruno Haible.
379 2007-09-09 Bruno Haible <bruno@clisp.org>
381 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
382 malloc or realloc fails.
384 2007-09-09 Bruno Haible <bruno@clisp.org>
386 * modules/getcwd (Depends-on): Add malloc-posix.
387 * modules/glob (Depends-on): Likewise.
388 * modules/putenv (Depends-on): Likewise.
389 * modules/strdup (Depends-on): Likewise.
390 * modules/getdelim (Depends-on): Add realloc-posix.
391 * modules/read-file (Depends-on): Likewise.
393 2007-09-09 Bruno Haible <bruno@clisp.org>
395 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
396 (gl_FUNC_MALLOC_POSIX): Require it.
397 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
398 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
399 * modules/realloc (Files): Add m4/malloc.m4.
400 * modules/calloc (Files): Likewise.
402 2007-09-09 Bruno Haible <bruno@clisp.org>
404 * modules/malloc-posix: New file.
405 * modules/malloc (Depends-on): Add malloc-posix.
406 * lib/malloc.c: Include errno.h.
407 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
408 and a POSIX-compatible malloc into a single function. Set ENOMEM
410 * m4/malloc.m4: New file.
411 * doc/functions/malloc.texi: Mention the malloc-posix module.
412 * lib/stdlib_.h (malloc): New declaration.
413 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
414 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
415 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
416 and HAVE_MALLOC_POSIX.
418 2007-09-09 Bruno Haible <bruno@clisp.org>
420 * modules/realloc-posix: New file.
421 * modules/realloc (Depends-on): Add realloc-posix.
422 * lib/realloc.c: Include errno.h.
423 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
424 and a POSIX-compatible realloc into a single function. Set ENOMEM
426 * m4/realloc.m4: New file.
427 * doc/functions/realloc.texi: Mention the realloc-posix module.
428 * lib/stdlib_.h (realloc): New declaration.
429 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
430 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
431 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
432 and HAVE_REALLOC_POSIX.
434 2007-09-09 Bruno Haible <bruno@clisp.org>
436 * modules/calloc-posix: New file.
437 * modules/calloc (Depends-on): Add calloc-posix.
438 * lib/calloc.c: Include errno.h.
439 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
440 and a POSIX-compatible calloc into a single function. Set ENOMEM
442 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
443 * doc/functions/calloc.texi: Mention the calloc-posix module.
444 * lib/stdlib_.h (calloc): New declaration.
445 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
446 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
447 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
448 and HAVE_CALLOC_POSIX.
450 2007-09-09 Bruno Haible <bruno@clisp.org>
452 Allow for modules to show an arbitrary notice.
453 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
454 * gnulib-tool: New option --extract-notice.
455 (func_usage): Document it.
456 (sed_extract_prog): Update.
457 (func_get_notice): New function.
458 (func_modules_notice): New function.
459 (func_import, func_create_testdir): Invoke it.
460 Suggested by Jim Meyering.
462 2007-09-09 Bruno Haible <bruno@clisp.org>
464 * gnulib-tool: New options --verbose, --quiet.
465 (func_usage): Document them.
466 (verbose): New variable.
467 (func_execute_command): New function.
468 (func_import): Don't show the module list and the file list if
470 (func_create_testdir): Likewise. Use func_execute_command.
471 (func_create_megatestdir): Use func_execute_command.
473 2007-09-08 Bruno Haible <bruno@clisp.org>
475 * gnulib-tool (func_import): Prefer rsync over wget when available,
476 for fetching the PO files.
478 2007-09-08 Bruno Haible <bruno@clisp.org>
480 * posix-modules: New file. Portions copied from gnulib-tool.
481 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
483 2007-09-08 Jim Meyering <jim@meyering.net>
485 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
486 * lib/fpending.h: Rename from __fpending.h.
487 * lib/fpending.c: Rename from __fpending.c.
488 Include "fpending.h", not "__fpending.h".
489 * lib/__fpending.h, lib/__fpending.c: Remove files.
490 * modules/fpending (Files): Reflect new file names.
491 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
493 2007-09-08 Bruno Haible <bruno@clisp.org>
495 * m4/inttypes-h.m4: Remove stub file.
497 2007-09-07 Simon Josefsson <simon@josefsson.org>
499 * doc/headers/stdint.texi: Discuss #include_next issue.
501 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
503 * build-aux/bootstrap: Remove obsolete comment about wget --help.
505 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
507 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
510 2007-09-03 Jim Meyering <jim@meyering.net>
512 New module: git-version-gen.
513 * modules/git-version-gen: New file.
515 Import changes from coreutils for bootstrap script.
517 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
519 bootstrap: uses rsync to download the .po files
520 * build-aux/bootstrap (po_download_command_format): New global.
521 (download_po_files): Use rsync.
522 (update_po_files): Don't remove .po files after download,
523 so future rsync runs can take advantage of the copies.
525 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
527 Solve the unnecessary-.po-file-regeneration problem once and for all.
528 * build-aux/bootstrap (download_po_files): New function, renamed from
529 get_translations. Now, downloads, but doesn't update LINGUAS.
530 (update_po_files): New function.
532 bootstrap: Ignore more.
533 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
534 uniwidth to e.g., lib/.gitignore.
535 (slurp): Handle the sys_stat_.h -> sys mapping, too.
537 * build-aux/bootstrap: New setting: vc_ignore.
538 (insert_sorted_if_absent): Create $file if absent.
539 Adapt to new, possibly empty, list: $vc_ignore.
541 bootstrap: generate more ignorable names
542 * build-aux/bootstrap (slurp): When generating ignorable names,
543 also map .sin to .sed, .gperf to .c, and .y to .c.
545 2007-09-03 Jim Meyering <jim@meyering.net>
547 * build-aux/git-version-gen: New file, from coreutils. For details, see
548 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
550 2007-09-02 Bruno Haible <bruno@clisp.org>
552 Fix mis-recognition of 'mcs' on QNX 6.
553 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
554 output contains the string "Mono".
555 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
556 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
558 2007-09-01 Bruno Haible <bruno@clisp.org>
560 Fix collision between uniwidth/* and linebreak modules.
561 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
562 u32_width): Remove declarations.
563 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
564 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
565 streq3, streq2, streq1, streq0): Remove functions.
566 (STREQ): Remove macro.
567 (is_cjk_encoding): Remove function.
568 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
569 (uc_width, u8_width, u16_width, u32_width): Remove functions.
570 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
571 * NEWS: Document the change.
573 2007-09-01 Bruno Haible <bruno@clisp.org>
575 * lib/streq.h: Add double-inclusion guard.
577 2007-09-01 Karl Berry <karl@gnu.org>
579 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
581 2007-08-28 Jim Meyering <jim@meyering.net>
583 Rename mreadlink_with_size to areadlink_with_size.
584 * NEWS: Document the change.
585 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
586 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
587 * lib/mreadlink.h: Rename this to...
588 * lib/areadlink.h: ...this.
589 * modules/mreadlink-with-size: Rename this to...
590 * modules/areadlink-with-size: ...this.
591 * lib/canonicalize.c: Reflect the renaming.
592 * modules/canonicalize: Likewise.
594 2007-08-26 Bruno Haible <bruno@clisp.org>
596 * gnulib-tool (func_import): When deciding which files to remove,
597 consider also dangling symbolic links.
598 Reported by Eric Blake.
600 2007-08-26 Bruno Haible <bruno@clisp.org>
602 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
604 2007-08-23 Simon Josefsson <simon@josefsson.org>
606 * lib/readline.c: Don't include getline.h, the prototype is now
609 2007-08-23 Jim Meyering <jim@meyering.net>
612 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
613 around the funlockfile call, since funlockfile never sets errno.
614 Don't set errno upon failed realloc.
616 2007-08-22 Eric Blake <ebb9@byu.net>
619 * lib/getdelim.c (getdelim): Revert regression that required *n to
620 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
621 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
622 getdelim, rather than whether implementation is missing.
623 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
624 * lib/stdio_.h (getline): Also declare if replacement is
626 * doc/functions/getdelim.texi: New file.
627 * doc/functions/getline.texi: Likewise.
628 * doc/gnulib.texi (Function Substitutes): Add new files.
629 Reported by Bruno Haible.
631 2007-08-22 Ludovic Courtès <ludo@gnu.org>
633 * users.txt: Add Guile.
635 2007-08-22 Eric Blake <ebb9@byu.net>
637 * tests/test-getdelim.c (main): Use remove, not unlink.
638 * tests/test-getline.c (main): Likewise.
640 Move getline and getdelim into stdio.h, per POSIX 200x.
641 * modules/getline (Files): Remove getline.h.
642 (Depends-on): Add stdio.
643 (configure.ac): Add module indicator.
644 * modules/getdelim (Files): Remove getdelim.h.
645 (Depends-on): Add stdio.
646 (configure.ac): Add module indicator.
647 * modules/stdio (Makefile.am): Work with new indicators.
648 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
649 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
650 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
651 * lib/getdelim.h: Delete.
652 * lib/getline.h: Delete.
653 * lib/stdio_.h (getdelim, getline): Declare.
654 * modules/getdelim-tests: New module.
655 * modules/getline-tests: Likewise.
656 * tests/test-getdelim.c: New file.
657 * tests/test-getline.c: Likewise.
658 * NEWS: Document the change.
659 * lib/getline.c: Update choice of header.
660 * lib/csharpcomp.c: Likewise.
661 * lib/getpass.c: Likewise.
662 * lib/javacomp.c: Likewise.
663 * lib/javaversion.c: Likewise.
664 * lib/yesno.c: Likewise.
665 * lib/getdelim.c: Likewise.
666 (getdelim): Set errno on failure, and avoid memory leak.
668 2007-08-19 Bruno Haible <bruno@clisp.org>
670 * modules/closein (Depends-on): Add freadahead.
671 * lib/closein.c: Include freadahead.h.
672 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
675 2007-08-19 Bruno Haible <bruno@clisp.org>
677 * modules/freadahead-tests: New file.
678 * tests/test-freadahead.sh: New file.
679 * tests/test-freadahead.c: New file.
681 * modules/freadahead: New file.
682 * lib/freadahead.h: New file.
683 * lib/freadahead.c: New file.
684 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
685 fbufmode, fpurge, freadable, fwritable.
687 2007-08-19 Eric Blake <ebb9@byu.net>
689 Test yesno in combination with closein.
690 * lib/yesno.c (yesno): Document use of stdin.
691 * modules/yesno-tests (Files): New module.
692 * tests/test-yesno.c (main): New file.
693 * tests/test-yesno.sh: Likewise.
695 2007-08-19 Bruno Haible <bruno@clisp.org>
697 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
698 * lib/fseeko.c (rpl_fseeko): Likewise.
699 * lib/fseterr.c (fseterr): Likewise.
701 2007-08-19 Bruno Haible <bruno@clisp.org>
703 * tests/test-lseek.c (main): Disable a test for BeOS.
704 * doc/functions/lseek.texi: Document the BeOS bug.
706 2007-08-19 Bruno Haible <bruno@clisp.org>
707 Eric Blake <ebb9@byu.net>
709 * lib/lseek.c: Include <sys/stat.h>.
710 (rpl_lseek): Add workaround code also for Unix platforms.
712 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
713 * doc/functions/lseek.texi: Document BeOS definiency.
715 2007-08-18 Bruno Haible <bruno@clisp.org>
717 * modules/fstrcmp-tests: New file.
718 * tests/test-fstrcmp.c: New file.
720 2007-08-18 Bruno Haible <bruno@clisp.org>
722 * modules/fstrcmp: New file, from GNU gettext with modifications.
723 * lib/fstrcmp.h: New file, from GNU gettext.
724 * lib/fstrcmp.c: New file, from GNU gettext.
725 * MODULES.html.sh (String handling): Add fstrcmp.
727 2007-08-18 Bruno Haible <bruno@clisp.org>
729 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
731 (diag, compareseq): Remove const from the ctxt argument.
732 (USE_HEURISTIC): Undefine at the end.
734 2007-08-18 Jim Meyering <jim@meyering.net>
736 New file: lib/idcache.h
737 * NEWS: Mention the addition.
738 * modules/idcache (Files): Add lib/idcache.h
739 * lib/idcache.c: Include "idcache.h".
740 Don't include <sys/types.h>.
742 Move file-scoped "static" declarations to the top.
743 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
745 2007-08-17 Bruno Haible <bruno@clisp.org>
746 and Paul Eggert <eggert@cs.ucla.edu>
748 * MODULES.html.sh: Add diffseq.
749 * modules/diffseq: New file.
750 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
751 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
753 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
755 Import changes from coreutils for bootstrap script.
757 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
759 * build-aux/bootstrap (slurp): Work even in environments where
760 "ls" defaults to "ls -A". Put in a FIXME, though, since the
761 current code does not slurp files whose names start with ".", and
762 this looks like it might be a troublesome area.
764 2007-07-11 Jim Meyering <jim@meyering.net>
766 If there's a GPL vN copyright comment, require that N == 3.
768 2007-07-08 Jim Meyering <jim@meyering.net>
770 Run the coreutils-specific code only if tests/Makefile.am.in exists.
771 * build-aux/bootstrap (mam_template): Move definition out of loop.
773 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
775 * build-aux/bootstrap (symlink_to_dir): Rename function from
776 symlink_to_gnulib. Add a directory parameter. Update all
778 (cp_mark_as_generated): Also check for -- and link to -- files in
781 2007-07-08 Jim Meyering <jim@meyering.net>
783 Adapt to deeper hierarchy in gnulib.
784 * build-aux/bootstrap (symlink_to_dir): If the destination
785 directory doesn't exist, create it. This is required at least for
786 "lib/uniwidth/cjk.h".
788 2007-05-15 Jim Meyering <jim@meyering.net>
790 * build-aux/bootstrap: Now that generated Makefile.am files
791 are no longer under version control, they must be created at
794 2007-08-14 Ben Pfaff <blp@gnu.org>
796 * lib/count-one-bits.h: Add comments. From Bruno Haible.
798 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
800 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
801 given the changes below.
802 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
803 even on hosts that have padding bits beyond the supported 64.
805 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
807 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
808 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
809 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
811 (xstrtol_error): Remove.
812 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
813 but with a different signature.
814 (ATTRIBUTE_NORETURN, __attribute__): New macros.
815 * lib/xstrtol-error.c: Include exitfail.h.
816 (xstrtol_fatal): New function, with a different signature from the
817 old xstrtol_error, so that the caller need not worry about passing
818 in an exit status, or about storage management of the option argument.
819 (xstrtol_error): Now a static function. Redo signature to
820 implement xstrtol_fatal. Output the correct number of hyphens in
821 front of the option so that the caller need not worry about
824 (_): Remove; not used now.
825 * modules/xstrtol: Depend on getopt.
826 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
827 of old STRTOL_FATAL_ERROR macro.
828 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
830 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
831 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
833 2007-08-08 Eric Blake <ebb9@byu.net>
835 * lib/xstrtol-error.c: Add missing include.
837 Move xstrtol messages into gnulib domain, when --pobase is used.
838 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
839 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
840 * modules/xstrtol (Files): Distribute new file.
841 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
842 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
843 * tests/test-xstrtol.c: ...into new file.
844 * tests/test-xstrtoul.c: Also test xstrtoul.
845 * tests/test-xstrtoimax.c: Also test xstrtoimax.
846 * tests/test-xstrtoumax.c: Also test xstrtoumax.
847 * tests/test-xstrtol.sh: Drive the tests.
848 * tests/test-xstrtoimax.sh: Likewise.
849 * tests/test-xstrtoumax.sh: Likewise.
850 * modules/xstrtol-tests: New module.
851 * modules/xstrtoimax-tests: Likewise.
852 * modules/xstrtoumax-tests: Likewise.
854 2007-08-08 Jim Meyering <jim@meyering.net>
856 New function: mfile_name_concat.
857 * lib/filenamecat.c (mfile_name_concat): New function, just like
858 file_name_concat, but return NULL upon failure rather than exiting
860 * lib/filenamecat.h: Declare it.
862 2007-08-07 Bruno Haible <bruno@clisp.org>
864 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
865 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
867 Reported by Eric Blake.
869 2007-08-07 Simon Josefsson <simon@josefsson.org>
871 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
872 * modules/crypto/arcfour (License): Likewise.
873 * modules/crypto/des-tests (License): Likewise.
874 * modules/crypto/gc-arctwo-tests (License): Likewise.
875 * modules/crypto/gc-des-tests (License): Likewise.
876 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
877 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
878 * modules/crypto/gc-md2-tests (License): Likewise.
879 * modules/crypto/gc-md4-tests (License): Likewise.
880 * modules/crypto/gc-md5-tests (License): Likewise.
881 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
882 * modules/crypto/gc-rijndael-tests (License): Likewise.
883 * modules/crypto/gc-sha1-tests (License): Likewise.
884 * modules/crypto/gc-tests (License): Likewise.
885 * modules/crypto/hmac-md5 (License): Likewise.
886 * modules/crypto/hmac-sha1 (License): Likewise.
887 * modules/crypto/md2-tests (License): Likewise.
888 * modules/crypto/md4-tests (License): Likewise.
889 * modules/crypto/md5 (License): Likewise.
890 * modules/crypto/rijndael (License): Likewise.
891 * modules/crypto/sha1 (License): Likewise.
892 * modules/memxor (License): Likewise.
894 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
895 and Bruno Haible <bruno@clisp.org>
897 * NEWS: Describe interface changes to human, xstrtol.
898 * lib/human.h: Include <xstrtol.h>.
899 (human_options): Return enum strtol_error, not int. Remove
900 bool arg; take int * instead.
901 * lib/human.c: Don't include "gettext.h".
902 (_): Remove; no longer used.
903 Don't include <xstrtol.h>, since human.h does it.
904 (human_options): Adjust to abovementioned interface changes.
905 Do not report error to stderr; that's now the caller's
907 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
909 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
910 Str, Argument_type_string. All uses changed. Put " argument"
911 in diagnostics to make them clearer. Change wording of suffix
913 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
914 Argument_type_string.
915 (STRTOL_FATAL_WARN): Remove; no longer used.
916 * modules/human (Depends-on): Remove gettext-h.
918 2007-08-06 Simon Josefsson <simon@josefsson.org>
920 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
922 2007-07-31 Bruno Haible <bruno@clisp.org>
924 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
925 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
926 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
928 2007-07-31 Bruno Haible <bruno@clisp.org>
930 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
931 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
933 2007-07-30 Bruno Haible <bruno@clisp.org>
935 * modules/base64 (License): Use the synonymous term "LGPLv2+".
936 * modules/c-ctype (License): Likewise.
937 * modules/c-strcase (License): Likewise.
938 * modules/check-version (License): Likewise.
939 * modules/iconv (License): Likewise.
940 * modules/iconv_open (License): Likewise.
941 * modules/read-file (License): Likewise.
942 * modules/striconv (License): Likewise.
943 * modules/strverscmp (License): Likewise.
944 * modules/vasprintf (License): Likewise.
945 * modules/crypto/des (License): Likewise.
946 * modules/crypto/gc (License): Likewise.
947 * modules/crypto/gc-arcfour (License): Likewise.
948 * modules/crypto/gc-arctwo (License): Likewise.
949 * modules/crypto/gc-des (License): Likewise.
950 * modules/crypto/gc-hmac-md5 (License): Likewise.
951 * modules/crypto/gc-hmac-sha1 (License): Likewise.
952 * modules/crypto/gc-md2 (License): Likewise.
953 * modules/crypto/gc-md4 (License): Likewise.
954 * modules/crypto/gc-md5 (License): Likewise.
955 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
956 * modules/crypto/gc-random (License): Likewise.
957 * modules/crypto/gc-rijndael (License): Likewise.
958 * modules/crypto/gc-sha1 (License): Likewise.
959 * modules/crypto/md2 (License): Likewise.
960 * modules/crypto/md4 (License): Likewise.
962 2007-07-30 Jim Meyering <jim@meyering.net>
964 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
965 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
966 it has valid stat data. This bug would cause du not to count the
967 sizes of inaccessible directories.
968 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
969 in <http://bugzilla.redhat.com/250077>.
971 2007-07-25 Peter O'Gorman <peter@pogma.com>
972 Bruno Haible <bruno@clisp.org>
974 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
975 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
976 #include_next, gives a diagnostic about it, but reports no error in
978 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
980 2007-07-24 Ben Pfaff <blp@gnu.org>
982 Improve name: "count-one-bits" is better than "popcount".
983 * MODULES.html.sh: Update name.
984 * lib/popcount.h: Renamed lib/count-one-bits.h.
985 (popcount): Renamed count_one_bits.
986 (popcountl): Renamed count_one_bits_l.
987 (popcountll): Renamed count_one_bits_ll.
988 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
989 * modules/popcount: Renamed module/count-one-bits.
990 * modules/popcount-tests: Renamed module/count-one-bits-tests.
991 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
993 2007-07-23 Ben Pfaff <blp@gnu.org>
995 * lib/popcount.h (popcount32): Reduce size of constants, to allow
996 better code generation, and add U to large constants to avoid
997 warnings, in non-GCC case.
998 Suggested by Bruno Haible.
1000 2007-07-23 Ben Pfaff <blp@gnu.org>
1002 * lib/popcount.h: Use verify_true instead of if...abort.
1003 * modules/popcount: Depend on verify module.
1004 Suggested by Jim Meyering.
1006 2007-07-23 Bruno Haible <bruno@clisp.org>
1008 * gnulib-tool (func_import): Create a .cvsignore file also when the
1009 directory is not yet in CVS but the toplevel directory is. When
1010 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
1011 Reported by Karl Berry.
1013 2007-07-22 Ben Pfaff <blp@gnu.org>
1015 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
1017 Suggested by Eric Blake.
1019 2007-07-22 Ben Pfaff <blp@gnu.org>
1021 New module: popcount.
1022 * MODULES.html.sh: Add popcount.
1023 * modules/popcount: New file.
1024 * modules/popcount-tests: New file.
1025 * tests/test-popcount.c: New file.
1026 * lib/popcount.h: New file.
1027 * m4/popcount.m4: New file.
1029 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
1031 * build-aux/announce-gen: Update to GPLv3.
1033 * build-aux/config.guess: Update from config.
1035 2007-07-21 Bruno Haible <bruno@clisp.org>
1037 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
1038 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
1040 2007-07-20 Jim Meyering <jim@meyering.net>
1042 * check-module: Diagnose a self-dependency.
1044 2007-07-19 Bruno Haible <bruno@clisp.org>
1046 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
1048 Reported by Eric Blake.
1050 2007-07-18 Bruno Haible <bruno@clisp.org>
1052 * gnulib-tool: New options --po-base, --po-domain.
1053 (func_usage): Document them.
1054 (pobase, po_domain): New variables.
1055 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
1056 DEFAULT_TEXT_DOMAIN.
1057 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
1058 (func_import): Consider pobase and po_domain. Create a po/ directory.
1059 (func_create_testdir): Set pobase and po_domain to empty.
1060 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
1061 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
1063 2007-07-18 Bruno Haible <bruno@clisp.org>
1065 * gnulib-tool (func_get_automake_snippet): Synthesize also an
1066 EXTRA_DIST augmentation for files in build-aux/.
1068 2007-07-16 Bruno Haible <bruno@clisp.org>
1070 * modules/lseek (License): Use the synonymous term "LGPLv2+".
1071 * modules/getdelim (License): Likewise.
1073 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1075 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
1076 * modules/d-type (License): Likewise.
1077 * modules/extensions (License): Likewise.
1078 * modules/fnmatch (License): Likewise.
1079 * modules/fseeko (License): Likewise.
1080 * modules/getaddrinfo (License): Likewise.
1081 * modules/getline (License): Likewise.
1082 * modules/getlogin_r (License): Likewise.
1083 * modules/getpass (License): Likewise.
1084 * modules/gettimeofday (License): Likewise.
1085 * modules/glob (License): Likewise.
1086 * modules/inet_ntop (License): Likewise.
1087 * modules/malloc (License): Likewise.
1088 * modules/malloca (License): Likewise.
1089 * modules/memmem (License): Likewise.
1090 * modules/mempcpy (License): Likewise.
1091 * modules/memset (License): Likewise.
1092 * modules/minmax (License): Likewise.
1093 * modules/mktime (License): Likewise.
1094 * modules/netinet_in (License): Likewise.
1095 * modules/pathmax (License): Likewise.
1096 * modules/poll (License): Likewise.
1097 * modules/regex (License): Likewise.
1098 * modules/snprintf (License): Likewise.
1099 * modules/stdbool (License): Likewise.
1100 * modules/stdint (License): Likewise.
1101 * modules/stdio (License): Likewise.
1102 * modules/strcase (License): Likewise.
1103 * modules/strcasestr (License): Likewise.
1104 * modules/strdup (License): Likewise.
1105 * modules/string (License): Likewise.
1106 * modules/strndup (License): Likewise.
1107 * modules/strnlen (License): Likewise.
1108 * modules/strpbrk (License): Likewise.
1109 * modules/strptime (License): Likewise.
1110 * modules/strsep (License): Likewise.
1111 * modules/sys_select (License): Likewise.
1112 * modules/sys_socket (License): Likewise.
1113 * modules/sys_stat (License): Likewise.
1114 * modules/sys_time (License): Likewise.
1115 * modules/time (License): Likewise.
1116 * modules/time_r (License): Likewise.
1117 * modules/timegm (License): Likewise.
1118 * modules/unistd (License): Likewise.
1119 * modules/vsnprintf (License): Likewise.
1120 * modules/wctype (License): Likewise.
1122 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1124 * modules/argz (License): LGPLv2+.
1126 2007-07-15 Karl Berry <karl@gnu.org>
1128 * doc/gnulib.texi: revise node structure per new fdl.texi.
1130 2007-07-14 Bruno Haible <bruno@clisp.org>
1132 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
1134 * lib/uniname/uninames.h: Regenerated.
1136 2007-07-14 Karl Berry <karl@gnu.org>
1138 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
1139 omitting sectioning and index commands.
1141 2007-07-13 Bruno Haible <bruno@clisp.org>
1143 New gnulib-tool option --more-symlinks.
1144 * gnulib-tool (func_usage): Document --more-symlinks.
1145 (do_copyrights): New variable.
1146 Recognize option --more-symlinks.
1147 (func_import): Don't add a copyright notice transform to
1148 sed_transform_lib_file if do_copyrights is empty.
1150 2007-07-13 Bruno Haible <bruno@clisp.org>
1152 * lib/vasnprintf.c (decimal_point_char): Define also if
1153 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
1154 && !NEED_PRINTF_DIRECTIVE_A.
1155 Reported by Clemens Koller <clemens.koller@anagramm.de> via
1156 Gary V. Vaughan <gary@gnu.org>.
1158 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
1160 * lib/inttypes_.h: Undo previous change, since it was fixed
1161 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
1163 2007-07-13 Bruno Haible <bruno@clisp.org>
1165 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
1166 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
1168 2007-07-13 Jim Meyering <jim@meyering.net>
1170 df: Don't fail for Tru64's "file-on-file mount".
1171 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
1172 so we fall through and use statfs instead. Details here:
1173 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
1174 Reported by Albert Chin.
1176 2007-07-13 Bruno Haible <bruno@clisp.org>
1178 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
1179 * modules/configmake (License): Likewise.
1180 * modules/gettext (License): Likewise.
1181 * modules/gettext-h (License): Likewise.
1182 * modules/include_next (License): Likewise.
1183 * modules/link-warning (License): Likewise.
1184 * modules/localcharset (License): Likewise.
1185 * modules/localename (License): Likewise.
1186 * modules/lock (License): Likewise.
1187 * modules/relocatable-lib-lgpl (License): Likewise.
1188 * modules/size_max (License): Likewise.
1189 * modules/vasnprintf (License): Likewise.
1190 * modules/wchar (License): Likewise.
1191 * modules/xsize (License): Likewise.
1193 2007-07-13 Bruno Haible <bruno@clisp.org>
1195 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
1196 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
1198 2007-07-12 Bruno Haible <bruno@clisp.org>
1200 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
1201 in the modules files.
1203 2007-07-11 Karl Berry <karl@gnu.org>
1205 * MODULES.html.sh (func_module): use
1206 sed -e '\|^'"${includefile}"'$|d'
1207 instead of /.../d, to avoid errors on $includefile's containing /.
1209 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
1211 * gnulib-tool (func_import): Avoid duplication of --avoid
1213 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
1214 names to `_' in variable names.
1216 2007-07-10 Eric Blake <ebb9@byu.net>
1218 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
1219 * NEWS: Document this change.
1221 2007-07-08 Bruno Haible <bruno@clisp.org>
1223 Update to Unicode 5.0.
1224 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
1225 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
1226 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
1227 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
1228 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
1229 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
1230 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
1231 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
1232 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
1233 U+10A3F, U+1D242..U+1D244.
1234 (nonspacing_table_ind): Update.
1235 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
1236 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
1238 2007-07-08 Bruno Haible <bruno@clisp.org>
1240 Update to Unicode 5.0.
1241 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
1242 code transform. Extend the name index field of unicode_name_to_code and
1243 unicode_code_to_name from 16 to 24 bits.
1244 * lib/uniname/uniname.c (unicode_character_name,
1245 unicode_name_character): Add the range 0x12xxx to the code transform.
1246 * lib/uniname/uninames.h: Regenerated.
1247 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
1249 2007-07-07 Bruno Haible <bruno@clisp.org>
1251 * modules/wcwidth-tests: New file.
1252 * tests/test-wcwidth.c: New file.
1254 Work around MacOS X wcwidth() bug.
1255 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
1256 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
1257 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
1258 original wcwidth in non-UTF-8 locales.
1259 * modules/wcwidth (Depends-on): Add localcharset, streq,
1261 * doc/functions/wcwidth.texi: Update.
1263 2007-07-07 Bruno Haible <bruno@clisp.org>
1265 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
1266 (wcwidth): New declaration.
1267 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
1269 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
1270 here. Prepare for creating <wchar.h> unconditionally.
1271 * modules/wchar (Depends-on): Add link-warning.
1272 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
1273 REPLACE_WCWIDTH, and GL_LINK_WARNING.
1274 * lib/wcwidth.h: Remove file.
1275 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
1276 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
1277 * modules/wcwidth (Files): Remove lib/wcwidth.h.
1278 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
1279 (Include): Replace wcwidth.h with <wchar.h>.
1280 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
1281 * lib/mbchar.h: Don't include wcwidth.h.
1282 * lib/mbswidth.c: Likewise.
1283 * NEWS: Mention the change.
1285 2007-07-07 Bruno Haible <bruno@clisp.org>
1287 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
1288 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
1289 definition with an external declaration.
1290 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
1291 defined as a function. Remove AC_C_INLINE requirement.
1292 * modules/wcwidth (Files): Add lib/wcwidth.c.
1293 (Makefile.am): Remove redundant statement.
1295 2007-07-07 Bruno Haible <bruno@clisp.org>
1297 * MODULES.html.sh (Unicode string functions): Add the new modules.
1299 * tests/uniwidth/test-u32-strwidth.c: New file.
1300 * modules/uniwidth/u32-strwidth-tests: New file.
1302 * lib/uniwidth/u32-strwidth.c: New file.
1303 * modules/uniwidth/u32-strwidth: New file.
1305 * tests/uniwidth/test-u16-strwidth.c: New file.
1306 * modules/uniwidth/u16-strwidth-tests: New file.
1308 * lib/uniwidth/u16-strwidth.c: New file.
1309 * modules/uniwidth/u16-strwidth: New file.
1311 * tests/uniwidth/test-u8-strwidth.c: New file.
1312 * modules/uniwidth/u8-strwidth-tests: New file.
1314 * lib/uniwidth/u8-strwidth.c: New file.
1315 * modules/uniwidth/u8-strwidth: New file.
1317 * tests/uniwidth/test-u32-width.c: New file.
1318 * modules/uniwidth/u32-width-tests: New file.
1320 * lib/uniwidth/u32-width.c: New file.
1321 * modules/uniwidth/u32-width: New file.
1323 * tests/uniwidth/test-u16-width.c: New file.
1324 * modules/uniwidth/u16-width-tests: New file.
1326 * lib/uniwidth/u16-width.c: New file.
1327 * modules/uniwidth/u16-width: New file.
1329 * tests/uniwidth/test-u8-width.c: New file.
1330 * modules/uniwidth/u8-width-tests: New file.
1332 * lib/uniwidth/u8-width.c: New file.
1333 * modules/uniwidth/u8-width: New file.
1335 * tests/uniwidth/test-uc_width.c: New file.
1336 * modules/uniwidth/width-tests: New file.
1338 * lib/uniwidth/width.c: New file, from GNU libiconv.
1339 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
1340 * modules/uniwidth/width: New file.
1342 * lib/uniwidth.h: New file, from GNU libiconv.
1343 * modules/uniwidth/base: New file.
1345 2007-07-07 Bruno Haible <bruno@clisp.org>
1347 * lib/uniname.h: New file, from GNU gettext.
1348 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
1349 * lib/uniname/uninames.h: New file, from GNU gettext.
1350 * lib/uniname/uniname.c: New file, from GNU gettext.
1351 * tests/uniname/test-uninames.sh: New file.
1352 * tests/uniname/test-uninames.c: New file, from GNU gettext.
1353 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
1354 * modules/uniname/base: New file.
1355 * modules/uniname/uniname: New file.
1356 * modules/uniname/uniname-tests: New file.
1357 * MODULES.html.sh (Unicode string functions): Add the new modules.
1359 2007-07-06 Bruno Haible <bruno@clisp.org>
1361 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
1363 2007-07-06 Bruno Haible <bruno@clisp.org>
1365 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
1366 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
1367 includes <cygwin/sys_time.h> which includes <sys/select.h> which
1368 include <sys/time.h>.
1369 Reported by Eric Blake.
1371 2007-07-06 Eric Blake <ebb9@byu.net>
1373 Fix testing canonicalize on cygwin.
1374 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1375 Revert patch from 2007-06-19.
1376 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
1377 canonicalize module is also in use.
1378 * tests/test-canonicalize.c: New file.
1379 * tests/test-canonicalize.sh: Likewise.
1380 * modules/canonicalize-tests: Likewise.
1382 2007-07-06 Jim Meyering <jim@meyering.net>
1384 * lib/getugroups.c (getugroups): Detect getgrent failure.
1385 Adjust comment to reflect reality: this function may return -1.
1387 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
1389 * build-aux/bootstrap (TP_URL,get_translations): Update to use
1392 (gnulib_mk): New variable.
1394 2007-07-05 Jim Meyering <jim@meyering.net>
1396 Don't let endgrent clobber errno, no matter how improbable.
1397 * lib/getugroups.c (getugroups): Save and restore errno around
1400 Close the group DB even when failing with 2^31 or more members.
1401 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
1403 2007-07-04 Jim Meyering <jim@meyering.net>
1405 * lib/getugroups.h: New file.
1406 * lib/getugroups.c: Include "getugroups.h".
1407 Remove uses of "register" keyword.
1408 Move local variable, "cp", down into scope where used.
1409 Give "username" parameter the "const" attribute.
1410 * modules/getugroups (Files): Add lib/getugroups.h
1412 2007-07-04 Karl Berry <karl@gnu.org>
1414 * MODULES.html.sh (func_all_modules): Complete rename of
1415 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
1417 2007-07-02 Bruno Haible <bruno@clisp.org>
1419 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
1420 mode, when inttypes.h comes from gnulib.
1421 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1423 2007-07-02 Simon Josefsson <simon@josefsson.org>
1425 * NEWS: Mention lgpl module name change.
1427 * modules/lgpl-2.1: Renamed from lgpl.
1429 * NEWS: Mention gpl module name change.
1431 * modules/gpl-3.0: New file, based on gpl-2.0.
1433 * modules/gpl-2.0: Renamed from gpl.
1435 * modules/gpl: Fix filename, doc/gpl.texi is now found at
1438 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
1440 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
1441 #define __STDC_LIMIT_MACROS temporarily while including
1442 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
1443 Problem reported by Joel E. Denny in
1444 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
1446 2007-07-01 Bruno Haible <bruno@clisp.org>
1448 * lib/unistdio.h: New file.
1449 * lib/unistdio/u-asnprintf.h: New file.
1450 * lib/unistdio/u-asprintf.h: New file.
1451 * lib/unistdio/u-printf-args.c: New file.
1452 * lib/unistdio/u-printf-args.h: New file.
1453 * lib/unistdio/u-printf-parse.h: New file.
1454 * lib/unistdio/u-snprintf.h: New file.
1455 * lib/unistdio/u-sprintf.h: New file.
1456 * lib/unistdio/u-vasprintf.h: New file.
1457 * lib/unistdio/u-vsnprintf.h: New file.
1458 * lib/unistdio/u-vsprintf.h: New file.
1459 * lib/unistdio/ulc-asnprintf.c: New file.
1460 * lib/unistdio/ulc-asprintf.c: New file.
1461 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
1462 * lib/unistdio/ulc-printf-parse.c: New file.
1463 * lib/unistdio/ulc-snprintf.c: New file.
1464 * lib/unistdio/ulc-sprintf.c: New file.
1465 * lib/unistdio/ulc-vasnprintf.c: New file.
1466 * lib/unistdio/ulc-vasprintf.c: New file.
1467 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
1468 * lib/unistdio/ulc-vsnprintf.c: New file.
1469 * lib/unistdio/ulc-vsprintf.c: New file.
1470 * lib/unistdio/u8-asnprintf.c: New file.
1471 * lib/unistdio/u8-asprintf.c: New file.
1472 * lib/unistdio/u8-printf-parse.c: New file.
1473 * lib/unistdio/u8-snprintf.c: New file.
1474 * lib/unistdio/u8-sprintf.c: New file.
1475 * lib/unistdio/u8-vasnprintf.c: New file.
1476 * lib/unistdio/u8-vasprintf.c: New file.
1477 * lib/unistdio/u8-vsnprintf.c: New file.
1478 * lib/unistdio/u8-vsprintf.c: New file.
1479 * lib/unistdio/u8-u8-asnprintf.c: New file.
1480 * lib/unistdio/u8-u8-asprintf.c: New file.
1481 * lib/unistdio/u8-u8-snprintf.c: New file.
1482 * lib/unistdio/u8-u8-sprintf.c: New file.
1483 * lib/unistdio/u8-u8-vasnprintf.c: New file.
1484 * lib/unistdio/u8-u8-vasprintf.c: New file.
1485 * lib/unistdio/u8-u8-vsnprintf.c: New file.
1486 * lib/unistdio/u8-u8-vsprintf.c: New file.
1487 * lib/unistdio/u16-asnprintf.c: New file.
1488 * lib/unistdio/u16-asprintf.c: New file.
1489 * lib/unistdio/u16-printf-parse.c: New file.
1490 * lib/unistdio/u16-snprintf.c: New file.
1491 * lib/unistdio/u16-sprintf.c: New file.
1492 * lib/unistdio/u16-vasnprintf.c: New file.
1493 * lib/unistdio/u16-vasprintf.c: New file.
1494 * lib/unistdio/u16-vsnprintf.c: New file.
1495 * lib/unistdio/u16-vsprintf.c: New file.
1496 * lib/unistdio/u16-u16-asnprintf.c: New file.
1497 * lib/unistdio/u16-u16-asprintf.c: New file.
1498 * lib/unistdio/u16-u16-snprintf.c: New file.
1499 * lib/unistdio/u16-u16-sprintf.c: New file.
1500 * lib/unistdio/u16-u16-vasnprintf.c: New file.
1501 * lib/unistdio/u16-u16-vasprintf.c: New file.
1502 * lib/unistdio/u16-u16-vsnprintf.c: New file.
1503 * lib/unistdio/u16-u16-vsprintf.c: New file.
1504 * lib/unistdio/u32-asnprintf.c: New file.
1505 * lib/unistdio/u32-asprintf.c: New file.
1506 * lib/unistdio/u32-printf-parse.c: New file.
1507 * lib/unistdio/u32-snprintf.c: New file.
1508 * lib/unistdio/u32-sprintf.c: New file.
1509 * lib/unistdio/u32-vasnprintf.c: New file.
1510 * lib/unistdio/u32-vasprintf.c: New file.
1511 * lib/unistdio/u32-vsnprintf.c: New file.
1512 * lib/unistdio/u32-vsprintf.c: New file.
1513 * lib/unistdio/u32-u32-asnprintf.c: New file.
1514 * lib/unistdio/u32-u32-asprintf.c: New file.
1515 * lib/unistdio/u32-u32-snprintf.c: New file.
1516 * lib/unistdio/u32-u32-sprintf.c: New file.
1517 * lib/unistdio/u32-u32-vasnprintf.c: New file.
1518 * lib/unistdio/u32-u32-vasprintf.c: New file.
1519 * lib/unistdio/u32-u32-vsnprintf.c: New file.
1520 * lib/unistdio/u32-u32-vsprintf.c: New file.
1521 * tests/unistdio/test-ulc-asnprintf1.c: New file.
1522 * tests/unistdio/test-ulc-asnprintf1.h: New file.
1523 * tests/unistdio/test-ulc-printf1.h: New file.
1524 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
1525 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
1526 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
1527 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
1528 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
1529 * tests/unistdio/test-ulc-vasprintf1.c: New file.
1530 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
1531 * tests/unistdio/test-ulc-vsprintf1.c: New file.
1532 * tests/unistdio/test-u8-asnprintf1.c: New file.
1533 * tests/unistdio/test-u8-asnprintf1.h: New file.
1534 * tests/unistdio/test-u8-printf1.h: New file.
1535 * tests/unistdio/test-u8-vasnprintf1.c: New file.
1536 * tests/unistdio/test-u8-vasnprintf2.c: New file.
1537 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
1538 * tests/unistdio/test-u8-vasnprintf3.c: New file.
1539 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
1540 * tests/unistdio/test-u8-vasprintf1.c: New file.
1541 * tests/unistdio/test-u8-vsnprintf1.c: New file.
1542 * tests/unistdio/test-u8-vsprintf1.c: New file.
1543 * tests/unistdio/test-u16-asnprintf1.c: New file.
1544 * tests/unistdio/test-u16-asnprintf1.h: New file.
1545 * tests/unistdio/test-u16-printf1.h: New file.
1546 * tests/unistdio/test-u16-vasnprintf1.c: New file.
1547 * tests/unistdio/test-u16-vasnprintf2.c: New file.
1548 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
1549 * tests/unistdio/test-u16-vasnprintf3.c: New file.
1550 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
1551 * tests/unistdio/test-u16-vasprintf1.c: New file.
1552 * tests/unistdio/test-u16-vsnprintf1.c: New file.
1553 * tests/unistdio/test-u16-vsprintf1.c: New file.
1554 * tests/unistdio/test-u32-asnprintf1.c: New file.
1555 * tests/unistdio/test-u32-asnprintf1.h: New file.
1556 * tests/unistdio/test-u32-printf1.h: New file.
1557 * tests/unistdio/test-u32-vasnprintf1.c: New file.
1558 * tests/unistdio/test-u32-vasnprintf2.c: New file.
1559 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
1560 * tests/unistdio/test-u32-vasnprintf3.c: New file.
1561 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
1562 * tests/unistdio/test-u32-vasprintf1.c: New file.
1563 * tests/unistdio/test-u32-vsnprintf1.c: New file.
1564 * tests/unistdio/test-u32-vsprintf1.c: New file.
1565 * modules/unistdio/base: New file.
1566 * modules/unistdio/u-printf-args: New file.
1567 * modules/unistdio/ulc-asnprintf: New file.
1568 * modules/unistdio/ulc-asprintf: New file.
1569 * modules/unistdio/ulc-fprintf: New file.
1570 * modules/unistdio/ulc-printf-parse: New file.
1571 * modules/unistdio/ulc-snprintf: New file.
1572 * modules/unistdio/ulc-sprintf: New file.
1573 * modules/unistdio/ulc-vasnprintf: New file.
1574 * modules/unistdio/ulc-vasprintf: New file.
1575 * modules/unistdio/ulc-vfprintf: New file.
1576 * modules/unistdio/ulc-vsnprintf: New file.
1577 * modules/unistdio/ulc-vsprintf: New file.
1578 * modules/unistdio/u8-asnprintf: New file.
1579 * modules/unistdio/u8-asprintf: New file.
1580 * modules/unistdio/u8-printf-parse: New file.
1581 * modules/unistdio/u8-snprintf: New file.
1582 * modules/unistdio/u8-sprintf: New file.
1583 * modules/unistdio/u8-vasnprintf: New file.
1584 * modules/unistdio/u8-vasprintf: New file.
1585 * modules/unistdio/u8-vsnprintf: New file.
1586 * modules/unistdio/u8-vsprintf: New file.
1587 * modules/unistdio/u8-u8-asnprintf: New file.
1588 * modules/unistdio/u8-u8-asprintf: New file.
1589 * modules/unistdio/u8-u8-snprintf: New file.
1590 * modules/unistdio/u8-u8-sprintf: New file.
1591 * modules/unistdio/u8-u8-vasnprintf: New file.
1592 * modules/unistdio/u8-u8-vasprintf: New file.
1593 * modules/unistdio/u8-u8-vsnprintf: New file.
1594 * modules/unistdio/u8-u8-vsprintf: New file.
1595 * modules/unistdio/u16-asnprintf: New file.
1596 * modules/unistdio/u16-asprintf: New file.
1597 * modules/unistdio/u16-printf-parse: New file.
1598 * modules/unistdio/u16-snprintf: New file.
1599 * modules/unistdio/u16-sprintf: New file.
1600 * modules/unistdio/u16-vasnprintf: New file.
1601 * modules/unistdio/u16-vasprintf: New file.
1602 * modules/unistdio/u16-vsnprintf: New file.
1603 * modules/unistdio/u16-vsprintf: New file.
1604 * modules/unistdio/u16-u16-asnprintf: New file.
1605 * modules/unistdio/u16-u16-asprintf: New file.
1606 * modules/unistdio/u16-u16-snprintf: New file.
1607 * modules/unistdio/u16-u16-sprintf: New file.
1608 * modules/unistdio/u16-u16-vasnprintf: New file.
1609 * modules/unistdio/u16-u16-vasprintf: New file.
1610 * modules/unistdio/u16-u16-vsnprintf: New file.
1611 * modules/unistdio/u16-u16-vsprintf: New file.
1612 * modules/unistdio/u32-asnprintf: New file.
1613 * modules/unistdio/u32-asprintf: New file.
1614 * modules/unistdio/u32-printf-parse: New file.
1615 * modules/unistdio/u32-snprintf: New file.
1616 * modules/unistdio/u32-sprintf: New file.
1617 * modules/unistdio/u32-vasnprintf: New file.
1618 * modules/unistdio/u32-vasprintf: New file.
1619 * modules/unistdio/u32-vsnprintf: New file.
1620 * modules/unistdio/u32-vsprintf: New file.
1621 * modules/unistdio/u32-u32-asnprintf: New file.
1622 * modules/unistdio/u32-u32-asprintf: New file.
1623 * modules/unistdio/u32-u32-snprintf: New file.
1624 * modules/unistdio/u32-u32-sprintf: New file.
1625 * modules/unistdio/u32-u32-vasnprintf: New file.
1626 * modules/unistdio/u32-u32-vasprintf: New file.
1627 * modules/unistdio/u32-u32-vsnprintf: New file.
1628 * modules/unistdio/u32-u32-vsprintf: New file.
1629 * modules/unistdio/ulc-asnprintf-tests: New file.
1630 * modules/unistdio/ulc-vasnprintf-tests: New file.
1631 * modules/unistdio/ulc-vasprintf-tests: New file.
1632 * modules/unistdio/ulc-vsnprintf-tests: New file.
1633 * modules/unistdio/ulc-vsprintf-tests: New file.
1634 * modules/unistdio/u8-asnprintf-tests: New file.
1635 * modules/unistdio/u8-vasnprintf-tests: New file.
1636 * modules/unistdio/u8-vasprintf-tests: New file.
1637 * modules/unistdio/u8-vsnprintf-tests: New file.
1638 * modules/unistdio/u8-vsprintf-tests: New file.
1639 * modules/unistdio/u16-asnprintf-tests: New file.
1640 * modules/unistdio/u16-vasnprintf-tests: New file.
1641 * modules/unistdio/u16-vasprintf-tests: New file.
1642 * modules/unistdio/u16-vsnprintf-tests: New file.
1643 * modules/unistdio/u16-vsprintf-tests: New file.
1644 * modules/unistdio/u32-asnprintf-tests: New file.
1645 * modules/unistdio/u32-vasnprintf-tests: New file.
1646 * modules/unistdio/u32-vasprintf-tests: New file.
1647 * modules/unistdio/u32-vsnprintf-tests: New file.
1648 * modules/unistdio/u32-vsprintf-tests: New file.
1649 * MODULES.html.sh (Unicode string functions): Add the new modules.
1651 2007-07-01 Bruno Haible <bruno@clisp.org>
1653 * lib/sprintf.c (sprintf): Limit the available length estimation,
1654 to avoid address wraparound.
1655 * lib/vsprintf.c (vsprintf): Likewise.
1656 * modules/sprintf-posix (Dependencies): Add stdint.
1657 * modules/vsprintf-posix (Dependencies): Likewise.
1659 2007-07-01 Bruno Haible <bruno@clisp.org>
1661 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
1662 Windows PATH as well. Conservative double-quoting. Comments.
1664 2007-07-01 Bruno Haible <bruno@clisp.org>
1665 Eric Blake <ebb9@byu.net>
1666 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1668 * gnulib-tool (self_abspathname): Fix algorithm to cope with
1669 empty components in $PATH, denoting '.'.
1671 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1673 * gnulib-tool: Fix indentation.
1674 (func_create_megatestdir): Likewise.
1675 Report by Bruno Haible.
1677 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1680 * build-aux/gnupload: Fix shell portability issues with for loops.
1681 Report by Karl Berry.
1683 2007-06-29 Simon Josefsson <simon@josefsson.org>
1685 * build-aux/maint.mk (POURL): Use translationproject.org.
1687 2007-06-27 Simon Josefsson <simon@josefsson.org>
1688 Bruno Haible <bruno@clisp.org>
1690 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
1691 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
1692 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
1693 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
1694 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
1696 2007-06-27 Bruno Haible <bruno@clisp.org>
1698 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
1699 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
1701 2007-06-26 Karl Berry <karl@gnu.org>
1703 * MODULES.html.sh: remove xreadlink-with-size.
1705 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1707 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
1708 method that I hope also handles the double-include problem noted
1710 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
1712 2007-06-23 Bruno Haible <bruno@clisp.org>
1714 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1715 Don't let the 'mostlyclean' target fail if the last subdirectory could
1717 Reported by Karl Berry.
1719 2007-06-23 Bruno Haible <bruno@clisp.org>
1721 * gnulib-tool (echo): Add a speedier workaround for ksh.
1722 * tests/test-echo.sh: Likewise.
1724 2007-06-23 Bruno Haible <bruno@clisp.org>
1726 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1727 * tests/test-echo.sh: Likewise.
1729 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1731 * gnulib-tool (IFS): Initialize early, so we don't set it to
1733 (self_abspathname): Rewrite algorithm to set it, reindent.
1734 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1735 (func_create_megatestdir): Merge some sed scripts.
1737 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1739 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1740 exposed by Sun Studio 11 cc on Solaris 8.
1742 2007-06-22 Bruno Haible <bruno@clisp.org>
1744 * gnulib-tool (echo): Ensure the echo primitive does not interpret
1746 * tests/test-echo.sh: New file.
1748 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1750 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1751 simplify `sed_replace_build_aux' scripts, they are portable but
1752 echoing them with `echo' is not.
1753 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1755 2007-06-21 Karl Berry <karl@gnu.org>
1757 * config/srclist.txt: guess we can't handle the licenses via
1758 srclist at the moment.
1760 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
1762 * MODULES.html.sh: Add include_next.
1763 * modules/include_next: New file.
1765 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
1767 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1769 (gl_CHECK_NEXT_HEADERS): New macro.
1770 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1771 the obsolescent gl_ABSOLUTE_HEADER.
1772 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1773 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1774 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1775 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1776 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1777 * m4/math_h.m4 (gl_MATH_H): Likewise.
1778 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1779 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1780 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1781 * m4/stdint.m4 (gl_STDINT_H): Likewise.
1782 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1783 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1784 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1785 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1786 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1787 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1788 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1789 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1790 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1791 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1792 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1793 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1794 * m4/inttypes.m4 (gl_INTTYPES_H): Define
1795 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
1796 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
1797 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
1798 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
1799 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
1800 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
1801 * lib/float_.h: Likewise.
1802 * lib/inttypes_.h: Likewise.
1803 * lib/math_.h: Likewise.
1804 * lib/search_.h: Likewise.
1805 * lib/signal_.h: Likewise.
1806 * lib/stdint_.h: Likewise.
1807 * lib/stdio_.h: Likewise.
1808 * lib/stdlib_.h: Likewise.
1809 * lib/string_.h: Likewise.
1810 * lib/sys_stat_.h: Likewise.
1811 * lib/sys_time_.h: Likewise.
1812 * lib/time_.h: Likewise.
1813 * lib/unistd_.h: Likewise.
1814 * lib/wchar_.h: Likewise.
1815 * lib/wctype_.h: Likewise.
1816 * lib/dirent_.h: Likewise.
1817 * lib/iconv_.h: Likewise.
1818 * lib/locale_.h: Likewise.
1819 * lib/netinet_in_.h: Likewise.
1820 * lib/sys_select_.h: Likewise.
1821 * lib/sys_socket_.h: Likewise.
1822 * lib/sysexits_.h: Likewise.
1823 * modules/fcntl (Depends-on): Depend on include_next, not
1825 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
1826 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
1827 * modules/fchdir: Likewise.
1828 * modules/float: Likewise.
1829 * modules/iconv_open: Likewise.
1830 * modules/inttypes: Likewise.
1831 * modules/locale: Likewise.
1832 * modules/math: Likewise.
1833 * modules/netinet_in: Likewise.
1834 * modules/search: Likewise.
1835 * modules/signal: Likewise.
1836 * modules/stdint: Likewise.
1837 * modules/stdio: Likewise.
1838 * modules/stdlib: Likewise.
1839 * modules/string: Likewise.
1840 * modules/sys_select: Likewise.
1841 * modules/sys_socket: Likewise.
1842 * modules/sys_stat: Likewise.
1843 * modules/sys_time: Likewise.
1844 * modules/sysexits: Likewise.
1845 * modules/time: Likewise.
1846 * modules/unistd: Likewise.
1847 * modules/wchar: Likewise.
1848 * modules/wctype: Likewise.
1849 * modules/sys_stat: Change maintainer to "all".
1850 * modules/unistd: Likewise.
1852 2007-06-20 Karl Berry <karl@gnu.org>
1854 * config/srclist.txt: track www changes in license files.
1856 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
1858 * build-aux/bootstrap: Remove stray dot.
1859 Make sure build_aux settings are honored when linking
1862 2007-06-19 Eric Blake <ebb9@byu.net>
1864 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1865 Allow compilation on cygwin.
1867 2007-06-19 Jim Meyering <jim@meyering.net>
1869 xreadlink-with-size: Remove module. No longer used.
1870 Ex-callers now use xreadlink or mreadlink-with-size.
1871 * modules/xreadlink-with-size: Remove module.
1872 * lib/xreadlink-with-size.c: Remove file.
1873 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
1874 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
1875 just before the function definition *is* accurate.
1877 Eliminate one way canonicalize_filename_mode could exit.
1878 * lib/canonicalize.c (canonicalize_filename_mode):
1879 Use mreadlink_with_size, not xreadlink_with_size.
1881 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
1883 Detect porting problems to FreeBSD/arm, which has time_t wider than
1884 long int. Original problem reported for GNU diff by Xin Li in
1885 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
1886 * modules/getdate (Depends-on): Add intprops, verify.
1887 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
1888 is an integer type no wider than long int.
1890 2007-06-18 Jim Meyering <jim@meyering.net>
1892 New module: mreadlink-with-size.
1893 * MODULES.html.sh: Add mreadlink-with-size.
1894 * modules/mreadlink-with-size: New module
1895 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
1896 not xreadlink-with-size.
1897 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
1899 2007-06-16 Bruno Haible <bruno@clisp.org>
1901 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
1902 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
1903 Reported by Gary V. Vaughan <gary@gnu.org>.
1905 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
1907 Revamp lchown so that it lives in unistd.h where it belongs.
1908 * lib/lchown.h: Remove.
1909 * lib/dirchownmod.c: Don't include lib/lchown.h.
1910 * lib/fchownat.c: Likewise.
1911 * lib/openat.c: Likewise.
1912 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
1913 does not follow symlinks.
1914 (EOPNOTSUPP): Define if not defined.
1915 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
1918 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
1919 Do not check for lchown decl.
1921 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
1923 * modules/chown: Make it clear it follows symlinks.
1924 * modules/lchown: Make it clear it doesn't follow symlinks.
1925 (Files): Remove lib/lchown.h
1926 (Depends-on): Add unistd.
1927 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
1928 (Include): Include <unistd.h>, not "lchown.h".
1929 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
1932 2007-06-15 Jim Meyering <jim@meyering.net>
1934 Change license (GPL to LGPL) of fsusage and dependents.
1935 * modules/fsusage (License): Change to LGPL.
1936 * modules/full-read (License): Likewise.
1937 * modules/full-write (License): Likewise.
1938 * modules/safe-read (License): Likewise.
1939 * modules/safe-write (License): Likewise.
1941 2007-06-14 Ben Pfaff <blp@gnu.org>
1943 Missing part of allocsa -> malloca transition.
1944 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
1947 2007-06-12 Bruno Haible <bruno@clisp.org>
1949 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
1950 to ia64, x86_64, i386.
1951 Reported by Eric Blake.
1953 2007-06-12 Bruno Haible <bruno@clisp.org>
1955 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
1956 cross-compiling to x86_64.
1958 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
1960 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
1961 glitch reported by Ralf Wildenhues in
1962 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
1964 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
1967 2007-06-11 Bruno Haible <bruno@clisp.org>
1969 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
1971 Reported by Eric Blake.
1973 2007-06-10 Bruno Haible <bruno@clisp.org>
1975 Prepare vasnprintf code for use with Unicode strings.
1976 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
1977 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
1979 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
1980 a_u32_string variants.
1981 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1982 * lib/printf-args.c: Don't include config.h and the specification
1983 header if PRINTF_FETCHARGS is already defined.
1984 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1985 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
1986 TYPE_U16_STRING, TYPE_U32_STRING.
1987 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
1988 u16_directive, u16_directives, u32_directive, u32_directives): New
1990 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
1992 * lib/printf-parse.c: Don't include config.h and the specification
1993 header if PRINTF_PARSE is already defined. Eliminate the set of
1994 parameters for WIDE_CHAR_VERSION; the user of this file must provide
1995 them now. Include c-ctype.h.
1996 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
1997 directive and CHAR_T_ONLY_ASCII.
1998 * lib/vasnprintf.c: Don't include config.h and the specification header
1999 if VASNPRINTF is already defined.
2000 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
2001 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
2002 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
2003 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
2004 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
2005 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
2007 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
2008 pad_ourselves also in this case, with the 'c' and 's' directives, and
2009 with a different notion of "width".
2010 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
2012 2007-06-10 Bruno Haible <bruno@clisp.org>
2014 * modules/unistr/u32-mbsnlen: New file.
2015 * lib/unistr/u32-mbsnlen.c: New file.
2017 * modules/unistr/u16-mbsnlen: New file.
2018 * lib/unistr/u16-mbsnlen.c: New file.
2020 * modules/unistr/u8-mbsnlen: New file.
2021 * lib/unistr/u8-mbsnlen.c: New file.
2023 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
2026 2007-06-10 Bruno Haible <bruno@clisp.org>
2028 * lib/string_.h (mbsnlen): New declaration.
2029 * lib/mbsnlen.c: New file.
2030 * m4/mbsnlen.m4: New file.
2031 * modules/mbsnlen: New file.
2032 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
2033 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
2034 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
2036 2007-06-10 Bruno Haible <bruno@clisp.org>
2038 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
2040 2007-06-10 Bruno Haible <bruno@clisp.org>
2042 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
2043 * lib/mbuiter.h: Likewise.
2045 2007-06-10 Bruno Haible <bruno@clisp.org>
2047 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
2050 2007-06-10 Karl Berry <karl@gnu.org>
2052 * config/srclist.txt: remove gettext entries, Bruno prefers
2053 to update individually.
2055 2007-06-10 Bruno Haible <bruno@clisp.org>
2057 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
2058 'maxlen'. Ensure only length + width bytes are allocated, not
2061 2007-06-09 Bruno Haible <bruno@clisp.org>
2063 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
2064 (CHAR_T): Remove macro.
2065 (VASNPRINTF): Update.
2067 2007-06-09 Bruno Haible <bruno@clisp.org>
2069 * MODULES.html.sh (Unicode string functions): Add the new modules.
2071 * modules/uniconv/u32-conv-to-enc: New file.
2072 * lib/uniconv/u32-conv-to-enc.c: New file.
2073 * modules/uniconv/u32-conv-to-enc-tests: New file.
2074 * tests/uniconv/test-u32-conv-to-enc.c: New file.
2076 * modules/uniconv/u16-conv-to-enc: New file.
2077 * lib/uniconv/u16-conv-to-enc.c: New file.
2078 * lib/uniconv/u-conv-to-enc.h: New file.
2079 * modules/uniconv/u16-conv-to-enc-tests: New file.
2080 * tests/uniconv/test-u16-conv-to-enc.c: New file.
2082 * modules/uniconv/u8-conv-to-enc: New file.
2083 * lib/uniconv/u8-conv-to-enc.c: New file.
2084 * modules/uniconv/u8-conv-to-enc-tests: New file.
2085 * tests/uniconv/test-u8-conv-to-enc.c: New file.
2087 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
2088 u32_conv_to_encoding): New declarations.
2090 2007-06-09 Bruno Haible <bruno@clisp.org>
2092 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
2094 2007-06-09 Bruno Haible <bruno@clisp.org>
2096 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
2097 * modules/malloca: Renamed from modules/allocsa, updated.
2098 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
2099 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
2100 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
2101 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
2102 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
2103 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
2104 * modules/xmalloca: Renamed from modules/xallocsa, updated.
2105 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
2106 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
2107 * modules/c-strcasestr (Depends-on): Update.
2108 * lib/c-strcasestr.c: Update.
2109 * modules/c-strstr (Depends-on): Update.
2110 * lib/c-strstr.c: Update.
2111 * modules/canonicalize-lgpl (Depends-on): Update.
2112 * lib/canonicalize-lgpl.c: Update.
2113 * modules/clean-temp (Depends-on): Update.
2114 * lib/clean-temp.c: Update.
2115 * modules/csharpcomp (Depends-on): Update.
2116 * lib/csharpcomp.c: Update.
2117 * modules/csharpexec (Depends-on): Update.
2118 * lib/csharpexec.c: Update.
2119 * modules/javacomp (Depends-on): Update.
2120 * lib/javacomp.c: Update.
2121 * modules/javaexec (Depends-on): Update.
2122 * lib/javaexec.c: Update.
2123 * modules/mbscasestr (Depends-on): Update.
2124 * lib/mbscasestr.c: Update.
2125 * modules/mbsstr (Depends-on): Update.
2126 * lib/mbsstr.c: Update.
2127 * modules/setenv (Depends-on): Update.
2128 * lib/setenv.c: Update.
2129 * modules/strcasestr (Depends-on): Update.
2130 * lib/strcasestr.c: Update.
2131 * modules/striconveha (Depends-on): Update.
2132 * lib/striconveha.c: Update.
2133 * modules/relocatable-prog-wrapper (Files): Update.
2134 * lib/relocwrapper.c: Update.
2135 * build-aux/install-reloc: Update.
2136 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
2138 2007-06-08 Bruno Haible <bruno@clisp.org>
2141 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
2142 * lib/fpurge.c (fpurge): Likewise.
2143 * lib/freading.c (freading): Likewise.
2144 * lib/fseeko.c (rpl_fseeko): Likewise.
2145 * lib/fseterr.c (fseterr): Likewise.
2146 * lib/fwriting.c (fwriting): Likewise.
2147 * tests/test-fflush.c (main): Avoid a failure on uClibc.
2149 2007-06-08 Bruno Haible <bruno@clisp.org>
2151 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
2152 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
2153 * modules/gettext (Files): Add m4/intlmacosx.m4.
2155 2007-06-07 Bruno Haible <bruno@clisp.org>
2157 * modules/localename-tests: New file.
2158 * tests/test-localename.c: New file.
2160 New module 'localename'.
2161 * lib/localename.h: New file.
2162 * lib/localename.c: New file, from GNU gettext.
2163 * m4/localename.m4: New file.
2164 * modules/localename: New file.
2166 2007-06-07 Bruno Haible <bruno@clisp.org>
2168 Work around the lack of <wchar.h> on some builds of uClibc.
2169 * doc/headers/wchar.texi: Update.
2170 * lib/wchar_.h: Include <wchar.h> only if it exists.
2171 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
2172 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
2173 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
2175 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
2176 * modules/mbfile (Depends-on): Add wchar.
2177 * modules/mbiter (Depends-on): Likewise.
2178 * modules/mbuiter (Depends-on): Likewise.
2179 Reported by Simon Josefsson.
2181 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
2183 Work around problem reported by Steven M. Schweda in
2184 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
2185 Tru64 5.1B with the Compaq compiler environment installed declares
2186 an 'isblank' function but does not define it in the C library.
2187 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
2188 * lib/regex_internal.h (isblank): Likewise.
2189 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
2190 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2192 2007-06-05 Bruno Haible <bruno@clisp.org>
2194 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
2196 * modules/printf-safe: New file.
2197 * modules/fprintf-posix (Depends-on): Add printf-safe.
2198 * modules/printf-posix (Depends-on): Likewise.
2199 * modules/snprintf-posix (Depends-on): Likewise.
2200 * modules/sprintf-posix (Depends-on): Likewise.
2201 * modules/vasnprintf-posix (Depends-on): Likewise.
2202 * modules/vasprintf-posix (Depends-on): Likewise.
2203 * modules/vfprintf-posix (Depends-on): Likewise.
2204 * modules/vprintf-posix (Depends-on): Likewise.
2205 * modules/vsnprintf-posix (Depends-on): Likewise.
2206 * modules/vsprintf-posix (Depends-on): Likewise.
2207 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2208 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
2209 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
2210 "no" on i386, x86_64, ia64.
2211 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
2212 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2213 on i386, x86_64, ia64.
2214 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
2215 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2216 on i386, x86_64, ia64.
2217 * tests/test-vasnprintf-posix.c: Include float.h.
2218 (LDBL80_WORDS): New macro.
2219 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2220 on i386, x86_64, ia64.
2221 * tests/test-vasprintf-posix.c: Include float.h.
2222 (LDBL80_WORDS): New macro.
2223 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2224 on i386, x86_64, ia64.
2225 * tests/test-snprintf-posix.c: Include float.h.
2226 * tests/test-sprintf-posix.c: Likewise.
2227 * tests/test-vsnprintf-posix.c: Likewise.
2228 * tests/test-vsprintf-posix.c: Likewise.
2230 2007-06-05 Bruno Haible <bruno@clisp.org>
2232 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
2233 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
2234 non-IEEE numbers on i386, x86_64, ia64.
2235 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
2236 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
2237 * tests/test-isnanl.h: Include float.h.
2238 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
2240 2007-06-05 Bruno Haible <bruno@clisp.org>
2242 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
2243 also the %a / %A. Handle the %a / %A code before this extra handling.
2245 2007-06-05 Bruno Haible <bruno@clisp.org>
2247 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
2248 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
2250 2007-06-05 Bruno Haible <bruno@clisp.org>
2252 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
2253 typo in variable name.
2255 2007-06-05 Eric Blake <ebb9@byu.net>
2257 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
2258 Reported by Simon Josefsson.
2260 2007-06-04 Bruno Haible <bruno@clisp.org>
2262 Avoid test failures on some PowerPC platforms.
2263 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
2264 Define differently for PowerPC.
2265 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
2266 Reported by Gary V. Vaughan <gary@gnu.org>.
2268 2007-06-02 Bruno Haible <bruno@clisp.org>
2270 Fix test-stdint failure on FreeBSD/ia64.
2271 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
2272 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
2273 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
2274 * doc/headers/stdint.texi: Update.
2276 2007-06-01 Bruno Haible <bruno@clisp.org>
2278 * tests/test-binary-io.c (main): Pass a third argument to open().
2279 Reported by Gary V. Vaughan <gary@gnu.org>.
2281 2007-06-01 Bruno Haible <bruno@clisp.org>
2283 * doc/functions/frexpl.texi: Update for mingw.
2285 2007-06-01 Bruno Haible <bruno@clisp.org>
2287 * tests/test-lseek.c (main): Disable test of errno for invalid third
2289 * doc/functions/lseek.texi: Update.
2290 Reported by Gary V. Vaughan <gary@gnu.org>.
2292 2007-05-28 Bruno Haible <bruno@clisp.org>
2294 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
2296 2007-05-31 Eric Blake <ebb9@byu.net>
2298 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
2301 2007-05-30 Eric Blake <ebb9@byu.net>
2302 and Bruno Haible <bruno@clisp.org>
2304 Work around mingw test failures exposed by m4-1.4.9b.
2305 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
2306 * tests/test-unistd.c: Disable uid_t and git_t tests for the
2309 2007-05-30 Bruno Haible <bruno@clisp.org>
2311 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
2312 assuming that they are closed. Needed on HP-UX 11.
2314 2007-05-29 Bruno Haible <bruno@clisp.org>
2316 Fix a problem with #include_next.
2317 * lib/dirent_.h: Split the double-inclusion guard.
2318 * lib/fcntl_.h: Likewise.
2319 * lib/float_.h: Likewise.
2320 * lib/iconv_.h: Likewise.
2321 * lib/inttypes_.h: Likewise.
2322 * lib/locale_.h: Likewise.
2323 * lib/math_.h: Likewise.
2324 * lib/netinet_in_.h: Likewise.
2325 * lib/search_.h: Likewise.
2326 * lib/signal_.h: Likewise.
2327 * lib/stdint_.h: Likewise.
2328 * lib/stdio_.h: Likewise.
2329 * lib/stdlib_.h: Likewise.
2330 * lib/string_.h: Likewise.
2331 * lib/sys_select_.h: Likewise.
2332 * lib/sys_socket_.h: Likewise.
2333 * lib/sys_stat_.h: Likewise.
2334 * lib/sys_time_.h: Likewise.
2335 * lib/sysexits_.h: Likewise.
2336 * lib/time_.h: Likewise.
2337 * lib/unistd_.h: Likewise.
2338 * lib/wchar_.h: Likewise.
2339 * lib/wctype_.h: Likewise.
2341 2007-05-29 Bruno Haible <bruno@clisp.org>
2343 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
2346 2007-05-29 Bruno Haible <bruno@clisp.org>
2348 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
2350 Reported by Eric Blake.
2352 2007-05-29 Bruno Haible <bruno@clisp.org>
2354 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
2357 2007-05-29 Eric Blake <ebb9@byu.net>
2358 Bruno Haible <bruno@clisp.org>
2360 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
2363 2007-05-28 Eric Blake <ebb9@byu.net>
2365 * modules/closein-tests (test_closein_LDADD): Support test on
2366 cygwin with libtool.
2368 2007-05-28 Bruno Haible <bruno@clisp.org>
2370 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
2371 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2372 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2373 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2374 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2375 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2376 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2377 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2378 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2380 2007-05-28 Eric Blake <ebb9@byu.net>
2382 Unconditionally include <config.h> in unit tests.
2383 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
2384 * tests/test-allocsa.c, tests/test-arcfour.c,
2385 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
2386 tests/test-array_list.c, tests/test-array_oset.c,
2387 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
2388 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
2389 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
2390 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
2391 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
2392 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
2393 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
2394 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
2395 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
2396 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
2397 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
2398 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
2399 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
2400 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
2401 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
2402 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
2403 test-md5.c, test-memmem.c, test-printf-posix.c,
2404 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
2405 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
2406 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
2407 test-strcasestr.c, test-striconv.c, test-striconveh.c,
2408 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
2409 test-vasnprintf-posix2.c, test-vasnprintf.c,
2410 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
2411 test-vfprintf-posix.c, test-vprintf-posix.c,
2412 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
2413 test-xvasprintf.c: Likewise.
2415 2007-05-28 Bruno Haible <bruno@clisp.org>
2417 * gnulib-tool (func_import): Remember the --with-tests command-line
2418 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
2419 Reported by Eric Blake.
2421 2007-05-28 Bruno Haible <bruno@clisp.org>
2423 * modules/ftell-tests: New file.
2424 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
2425 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
2427 * lib/ftell.c: New file.
2428 * modules/ftell: New file.
2429 * m4/ftell.m4: New file.
2430 * doc/functions/ftell.texi: Update.
2431 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
2433 * lib/stdio_.h (rpl_ftell): New declaration.
2434 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
2437 2007-05-28 Eric Blake <ebb9@byu.net>
2439 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
2441 2007-05-28 Bruno Haible <bruno@clisp.org>
2443 * modules/fseek-tests: New file.
2444 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
2445 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
2447 * lib/fseek.c: New file.
2448 * modules/fseek: New file.
2449 * m4/fseek.m4: New file.
2450 * doc/functions/fseek.texi: Update.
2451 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
2453 * lib/stdio_.h (rpl_fseek): New declaration.
2454 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
2457 2007-05-28 Bruno Haible <bruno@clisp.org>
2459 * lib/stdio_.h (fflush): More comments.
2461 2007-05-28 Bruno Haible <bruno@clisp.org>
2463 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
2466 2007-05-28 Eric Blake <ebb9@byu.net>
2468 Improve lseek module.
2469 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
2470 * lib/unistd_.h (lseek): Scale back link warning message.
2471 * tests/test-lseek.c: Beef up test.
2472 * tests/test-lseek.sh: Exercise more facets of lseek.
2473 Reported by Bruno Haible.
2475 2007-05-28 Bruno Haible <bruno@clisp.org>
2477 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
2480 2007-05-27 Bruno Haible <bruno@clisp.org>
2482 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
2484 2007-05-27 Bruno Haible <bruno@clisp.org>
2486 * modules/openmp: New file.
2487 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
2490 2007-05-26 Bruno Haible <bruno@clisp.org>
2492 * modules/chdir-long (Depends-on): Add fchdir.
2493 * modules/chdir-safer (Depends-on): Likewise.
2494 * modules/fts (Depends-on): Likewise.
2495 * modules/fts-lgpl (Depends-on): Likewise.
2496 * modules/openat (Depends-on): Likewise.
2497 * modules/savewd (Depends-on): Likewise.
2499 2007-05-24 Eric Blake <ebb9@byu.net>
2502 * modules/lseek: New module.
2503 * m4/lseek.m4: New file.
2504 * lib/lseek.c: New file.
2505 * modules/lseek-tests: New file.
2506 * tests/test-lseek.c: New file.
2507 * tests/test-lseek.sh: New file.
2508 * MODULES.html.sh: Document lseek module.
2509 * modules/fflush (Depends-on): Add lseek, fseeko.
2510 * modules/fseeko (Depends-on): Likewise.
2511 * modules/ftello (Depends-on): Likewise.
2512 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
2514 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
2516 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
2517 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
2518 * lib/ftello.c (rpl_ftello): Likewise.
2519 * tests/test-fseeko.c (main): Test this.
2520 * tests/test-fseeko.sh: Likewise.
2521 * tests/test-ftello.c (main): Likewise.
2522 * tests/test-ftello.sh: Likewise.
2523 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
2524 implies replacing fseek.
2525 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
2527 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
2528 * modules/unistd (Makefile.am): Likewise.
2529 * lib/unistd_.h (lseek): Declare a replacement.
2530 * doc/functions/lseek.texi (lseek): Document this fix.
2531 * doc/functions/fseek.texi (fseek): Likewise.
2532 * doc/functions/ftell.texi (ftell): Likewise.
2534 2007-05-24 Bruno Haible <bruno@clisp.org>
2536 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
2537 in the printed representation of a NaN.
2538 * tests/test-vasprintf-posix.c (test_function): Likewise.
2539 * tests/test-snprintf-posix.h (test_function): Likewise.
2540 * tests/test-sprintf-posix.h (test_function): Likewise.
2541 Reported by Eric Blake.
2543 2007-05-23 Eric Blake <ebb9@byu.net>
2545 Fix fseeko/ftello on cygwin 1.5.24.
2546 * doc/functions/fseeko.texi (fseeko): Document the fix.
2547 * doc/functions/ftello.texi (ftello): Document the fix.
2548 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
2549 * doc/functions/stdout.text (stdout): New file.
2550 * doc/functions/stderr.text (stderr): New file.
2551 * doc/gnulib.texi (Function Substitutes): Use new files.
2552 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
2554 * tests/test-ftello.c (main): Likewise for ftello.
2555 * tests/test-fseeko.sh: New file.
2556 * tests/test-ftello.sh: New file.
2557 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
2558 with seekable stdin.
2559 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
2560 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
2561 (gl_REPLACE_FSEEKO): New macro.
2562 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
2563 * modules/fseeko (Files): Distribute fseeko.c.
2564 * modules/ftello (Files): Distribute ftello.c.
2565 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
2567 * lib/ftello.c (rpl_ftello): New file.
2568 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
2570 (gl_STDIN_LARGE_OFFSET): New macro.
2571 * modules/stdio (Makefile.am): Perform the replacement.
2572 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
2574 2007-05-23 Bruno Haible <bruno@clisp.org>
2576 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
2577 GNULIB_POSIXCHECK is defined.
2579 2007-05-21 Bruno Haible <bruno@clisp.org>
2581 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
2582 Check also the output for NaN arguments. When cross-compiling, guess
2584 * lib/vasnprintf.c: Update comments.
2585 * tests/test-vasnprintf-posix.c (strisnan): New function.
2586 (test_function): Use it.
2587 * tests/test-vasprintf-posix.c (strisnan): New function.
2588 (test_function): Use it.
2589 * tests/test-snprintf-posix.h (strisnan): New function.
2590 (test_function): Use it.
2591 * tests/test-sprintf-posix.h (strisnan): New function.
2592 (test_function): Use it.
2593 Reported by Eric Blake.
2595 2007-05-20 Bruno Haible <bruno@clisp.org>
2597 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
2598 numbers that fails on BeOS.
2599 * doc/functions/frexpl.texi: Update.
2601 2007-05-20 Jim Meyering <jim@meyering.net>
2603 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
2604 forced upon us by glibc-2.6.
2606 2007-05-20 Bruno Haible <bruno@clisp.org>
2608 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
2609 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
2610 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
2611 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
2612 NEED_PRINTF_INFINITE.
2613 (is_infinitel): New function.
2614 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
2615 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
2616 gl_PREREQ_VASNPRINTF_INFINITE.
2617 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
2618 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2619 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
2620 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
2621 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
2622 gl_PREREQ_VASNPRINTF_INFINITE.
2623 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2624 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2625 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2626 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2627 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2628 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2629 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2630 * doc/functions/fprintf.texi: Update.
2631 * doc/functions/printf.texi: Update.
2632 * doc/functions/snprintf.texi: Update.
2633 * doc/functions/sprintf.texi: Update.
2634 * doc/functions/vfprintf.texi: Update.
2635 * doc/functions/vprintf.texi: Update.
2636 * doc/functions/vsnprintf.texi: Update.
2637 * doc/functions/vsprintf.texi: Update.
2639 2007-05-20 Bruno Haible <bruno@clisp.org>
2641 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
2642 was not found in libc.
2643 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2645 2007-05-20 Bruno Haible <bruno@clisp.org>
2647 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2648 printed as "-nan" instead of "nan".
2649 * tests/test-vasprintf-posix.c (test_function): Likewise.
2650 * tests/test-snprintf-posix.h (test_function): Likewise.
2651 * tests/test-sprintf-posix.h (test_function): Likewise.
2652 Needed for HP-UX 11.
2654 2007-05-20 Jim Meyering <jim@meyering.net>
2656 Fix buggy test for the fchownat-deref bug.
2657 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
2658 symlink required for the run-test. Without it, this test would
2659 always declare that fchownat doesn't work, and client code would
2660 unnecessarily use the replacement function with fixed libc.
2661 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
2662 Reported by Greg Schafer.
2664 2007-05-19 Bruno Haible <bruno@clisp.org>
2666 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
2667 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
2668 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
2669 Needed for IRIX 6.5 and Solaris 2.5.1.
2671 2007-05-19 Bruno Haible <bruno@clisp.org>
2673 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
2674 (test_function): Skip tests involving -0.0 on platforms where
2676 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
2677 (test_function): Skip tests involving -0.0 on platforms where
2679 * tests/test-snprintf-posix.h (have_minus_zero): New function.
2680 (test_function): Skip tests involving -0.0 on platforms where
2682 * tests/test-sprintf-posix.h (have_minus_zero): New function.
2683 (test_function): Skip tests involving -0.0 on platforms where
2685 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
2687 * tests/test-printf-posix.h (test_function): Likewise.
2688 * tests/test-printf-posix.output: Remove all -0.0 related results.
2689 Needed for IRIX 6.5.
2691 2007-05-19 Bruno Haible <bruno@clisp.org>
2693 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2694 printed as "nan0x7fffffff" instead of "nan".
2695 * tests/test-vasprintf-posix.c (test_function): Likewise.
2696 * tests/test-snprintf-posix.h (test_function): Likewise.
2697 * tests/test-sprintf-posix.h (test_function): Likewise.
2698 * tests/test-fprintf-posix.h (NaN): Remove macro.
2699 (test_function): Remove all NaN related tests.
2700 * tests/test-printf-posix.h (NaN): Remove macro.
2701 (test_function): Remove all NaN related tests.
2702 * tests/test-printf-posix.output: Remove all NaN related results.
2703 Needed for IRIX 6.5.
2705 2007-05-19 Bruno Haible <bruno@clisp.org>
2707 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
2708 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2710 2007-05-19 Bruno Haible <bruno@clisp.org>
2712 * lib/float_.h: New file.
2713 * m4/float_h.m4: New file.
2714 * modules/float: New file.
2715 * modules/isnanl (Dependencies): Add float.
2716 * modules/isnanl-nolibm (Dependencies): Likewise.
2717 * modules/mathl (Dependencies): Likewise.
2718 * modules/printf-frexpl (Dependencies): Likewise.
2719 * modules/signbit (Dependencies): Likewise.
2720 * modules/vasnprintf (Dependencies): Likewise.
2721 * doc/headers/float.texi: Update.
2723 2007-05-19 Jim Meyering <jim@meyering.net>
2725 * lib/utimens.c (gl_futimens): Rename from futimens,
2726 now that glibc-2.6 declares futimens.
2727 * lib/utimens.h: Likewise.
2729 2007-05-19 Bruno Haible <bruno@clisp.org>
2731 Avoid test failures on mingw.
2732 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2733 * tests/test-printf-posix.sh: Likewise.
2734 * tests/test-vfprintf-posix.sh: Likewise.
2735 * tests/test-vprintf-posix.sh: Likewise.
2737 2007-05-19 Bruno Haible <bruno@clisp.org>
2739 Fix *printf result for NaN, Inf, -0.0 on mingw.
2740 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2741 * lib/vasnprintf.c: Include math.h and isnan.h.
2742 (is_infinite_or_zero): New function.
2743 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2744 values in the %f, %F, %e, %E, %g, %G directives.
2745 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2746 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2747 gl_PRINTF_INFINITE and test its result. Invoke
2748 gl_PREREQ_VASNPRINTF_INFINITE.
2749 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2750 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2751 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2752 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2753 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2754 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2755 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2756 * doc/functions/fprintf.texi: Update.
2757 * doc/functions/printf.texi: Update.
2758 * doc/functions/snprintf.texi: Update.
2759 * doc/functions/sprintf.texi: Update.
2760 * doc/functions/vfprintf.texi: Update.
2761 * doc/functions/vprintf.texi: Update.
2762 * doc/functions/vsnprintf.texi: Update.
2763 * doc/functions/vsprintf.texi: Update.
2765 2007-05-19 Bruno Haible <bruno@clisp.org>
2767 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2768 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2769 Instead of multiplying with 10^k, set extra_zeroes to k.
2770 (scale10_round_long_double): Remove function.
2772 2007-05-18 Bruno Haible <bruno@clisp.org>
2774 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2775 introduced on 2007-05-06.
2777 2007-05-18 Bruno Haible <bruno@clisp.org>
2779 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2781 * tests/test-vasprintf-posix.c (test_function): Likewise.
2782 * tests/test-snprintf-posix.h (test_function): Likewise.
2783 * tests/test-sprintf-posix.h (test_function): Likewise.
2785 2007-05-18 Bruno Haible <bruno@clisp.org>
2787 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
2788 (strmatch): New function.
2789 (test_function): Test the %f directive on numbers of various exponents.
2790 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
2791 (strmatch): New function.
2792 (test_function): Test the %f directive on numbers of various exponents.
2793 * tests/test-snprintf-posix.h (strmatch): New function.
2794 (test_function): Test the %f directive on numbers of various exponents.
2795 * tests/test-sprintf-posix.h (strmatch): New function.
2796 (test_function): Test the %f directive on numbers of various exponents.
2797 * tests/test-snprintf-posix.c (SIZEOF): New macro.
2798 * tests/test-sprintf-posix.c (SIZEOF): New macro.
2799 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
2800 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
2802 2007-05-18 Bruno Haible <bruno@clisp.org>
2804 Add support for 'long double' number output.
2805 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
2806 * lib/vasnprintf.c: Include math.h and float+.h.
2807 (mp_limb_t): New type.
2808 (GMP_LIMB_BITS): New macro.
2809 (mp_twolimb_t): New type.
2810 (GMP_TWOLIMB_BITS): New macro.
2812 (multiply, divide, convert_to_decimal, decode_long_double,
2813 scale10_round_long_double, scale10_round_decimal_long_double,
2814 floorlog10l): New functions.
2815 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
2816 for the %f, %F, %e, %E, %g, %G directives.
2817 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
2818 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2819 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
2820 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
2821 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2822 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2823 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2824 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2825 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2826 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2827 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2828 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
2829 * modules/snprintf-posix (Depends-on): Likewise.
2830 * modules/sprintf-posix (Depends-on): Likewise.
2831 * modules/vasnprintf-posix (Depends-on): Likewise.
2832 * modules/vasprintf-posix (Depends-on): Likewise.
2833 * modules/vfprintf-posix (Depends-on): Likewise.
2834 * modules/vsnprintf-posix (Depends-on): Likewise.
2835 * modules/vsprintf-posix (Depends-on): Likewise.
2836 * modules/vasnprintf (Files): Add lib/float+.h.
2837 * doc/functions/fprintf.texi: Update.
2838 * doc/functions/printf.texi: Update.
2839 * doc/functions/snprintf.texi: Update.
2840 * doc/functions/sprintf.texi: Update.
2841 * doc/functions/vfprintf.texi: Update.
2842 * doc/functions/vprintf.texi: Update.
2843 * doc/functions/vsnprintf.texi: Update.
2844 * doc/functions/vsprintf.texi: Update.
2846 2007-05-18 Bruno Haible <bruno@clisp.org>
2848 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
2850 2007-05-18 Bruno Haible <bruno@clisp.org>
2852 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
2853 for printing 64-bit integers. Needed for mingw.
2855 2007-05-18 Bruno Haible <bruno@clisp.org>
2857 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2858 gl_FUNC_FREXPL_WORKS.
2859 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
2861 2007-05-18 Bruno Haible <bruno@clisp.org>
2863 * modules/frexpl-nolibm-tests: New file.
2865 * modules/frexpl-nolibm: New file.
2866 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
2868 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
2870 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
2871 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2872 GCC 4.2, which otherwise issues a lot of warnings.
2873 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
2874 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
2876 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
2877 * modules/iconv_open (iconv.h): Likewise.
2878 * modules/locale (locale.h): Likewise.
2879 * modules/netinet_in (netinet/in.h): Likewise.
2880 * modules/sys_select (sys_select.h): Likewise.
2881 * modules/sys_socket (sys/socket.h): Likewise.
2882 * modules/sys_stat (sys/stat.h): Likewise.
2883 * modules/sysexits (sysexits.h): Likewise.
2884 * modules/unistd (unistd.h): Likewise.
2886 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2888 * modules/closein-tests (Makefile.am): Distribute
2891 2007-05-17 Bruno Haible <bruno@clisp.org>
2893 * tests/test-printf-posix.output: Renamed from
2894 tests/test-fprintf-posix.out.
2895 * modules/fprintf-posix-tests: Update.
2896 * modules/printf-posix-tests: Update.
2897 * modules/vfprintf-posix-tests: Update.
2898 * modules/vprintf-posix-tests: Update.
2899 * tests/test-fprintf-posix.sh: Update.
2900 * tests/test-printf-posix.sh: Update.
2901 * tests/test-vfprintf-posix.sh: Update.
2902 * tests/test-vprintf-posix.sh: Update.
2903 Reported by Ralf Wildenhues.
2905 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
2907 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
2908 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2909 GCC 4.2, which otherwise issues a lot of warnings.
2910 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
2911 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
2912 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
2913 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
2914 it should no longer be needed.
2915 * lib/string_.h: Likewise.
2916 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
2917 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
2918 * modules/inttypes (inttypes.h): Likewise.
2919 * modules/math (math.h): Likewise.
2920 * modules/search (search.h): Likewise.
2921 * modules/signal (signal.h): Likewise.
2922 * modules/stdint (stdint.h): Likewise.
2923 * modules/stdio (stdio.h): Likewise.
2924 * modules/stdlib (stdlib.h): Likewise.
2925 * modules/string (string.h): Likewise.
2926 * modules/sys_time (sys/time.h): Likewise.
2927 * modules/time (time.h): Likewise.
2928 * modules/wchar (wchar.h): Likewise.
2929 * modules/wctype (wtype.h): Likewise.
2931 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
2933 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
2935 2007-05-13 Bruno Haible <bruno@clisp.org>
2937 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
2938 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2939 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
2940 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2941 (gl_PREREQ_STRTOK_R): Don't require it here.
2943 2007-05-13 Bruno Haible <bruno@clisp.org>
2945 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
2946 when used in C++ mode.
2948 2007-05-12 Bruno Haible <bruno@clisp.org>
2950 * lib/linebuffer.h: Tweak doc.
2951 * lib/linebuffer.c: Likewise.
2953 2007-05-12 James Youngman <jay@gnu.org>
2955 * lib/linebuffer.c (readlinebuffer_delim): New function,
2956 like readlinebuffer, but use a caller-specified delimiter.
2957 (readlinebuffer): Just call readlinebuffer_delim with '\n'
2959 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
2961 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
2963 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
2964 * modules/openat (Files): Remove openat-die.c.
2965 (Depends-on): Add openat-die.
2966 * modules/openat-die: New module.
2968 2007-05-06 Bruno Haible <bruno@clisp.org>
2970 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
2971 Update with info about Cygwin.
2972 * doc/functions/fprintf.texi: Update.
2973 * doc/functions/printf.texi: Update.
2974 * doc/functions/snprintf.texi: Update.
2975 * doc/functions/sprintf.texi: Update.
2976 * doc/functions/vfprintf.texi: Update.
2977 * doc/functions/vprintf.texi: Update.
2978 * doc/functions/vsnprintf.texi: Update.
2979 * doc/functions/vsprintf.texi: Update.
2980 Reported by Eric Blake.
2982 2007-05-06 Bruno Haible <bruno@clisp.org>
2984 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
2985 padding ourselves for the floating-point directives.
2986 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
2987 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
2988 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2989 gl_PRINTF_FLAG_ZERO and test its result. Invoke
2990 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
2991 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2992 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2993 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2994 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2995 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2996 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2997 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2998 * tests/test-snprintf-posix.h (test_function): Also check the width
2999 and some flags in the %f directive.
3000 * tests/test-sprintf-posix.h (test_function): Likewise.
3001 * tests/test-vasnprintf-posix.c (test_function): Likewise.
3002 * tests/test-vasprintf-posix.c (test_function): Likewise.
3003 * doc/functions/fprintf.texi: Update.
3004 * doc/functions/printf.texi: Update.
3005 * doc/functions/snprintf.texi: Update.
3006 * doc/functions/sprintf.texi: Update.
3007 * doc/functions/vfprintf.texi: Update.
3008 * doc/functions/vprintf.texi: Update.
3009 * doc/functions/vsnprintf.texi: Update.
3010 * doc/functions/vsprintf.texi: Update.
3012 2007-05-06 Bruno Haible <bruno@clisp.org>
3014 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
3015 pass the ' flag character to sprintf or snprintf.
3016 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
3017 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
3018 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3019 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
3020 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
3021 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3022 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
3023 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3024 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3025 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3026 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3027 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3028 * tests/test-snprintf-posix.h (test_function): Also check the grouping
3030 * tests/test-sprintf-posix.h (test_function): Likewise.
3031 * tests/test-vasnprintf-posix.c (test_function): Likewise.
3032 * tests/test-vasprintf-posix.c (test_function): Likewise.
3033 * doc/functions/fprintf.texi: Update.
3034 * doc/functions/printf.texi: Update.
3035 * doc/functions/snprintf.texi: Update.
3036 * doc/functions/sprintf.texi: Update.
3037 * doc/functions/vfprintf.texi: Update.
3038 * doc/functions/vprintf.texi: Update.
3039 * doc/functions/vsnprintf.texi: Update.
3040 * doc/functions/vsprintf.texi: Update.
3042 2007-05-01 Bruno Haible <bruno@clisp.org>
3044 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
3046 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
3048 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
3049 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
3051 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
3053 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
3054 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
3055 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
3057 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
3059 * lib/argp-help.c (struct hol_entry): New member `ord'.
3060 (HOL_ENTRY_PTRCMP): Use ord for comparison
3061 (hol_sort): Initialize ord.
3063 2007-05-01 Bruno Haible <bruno@clisp.org>
3065 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
3066 Reported by Eric Blake.
3067 * doc/gnulib.texi (Function Substitutes): Update.
3069 2007-05-01 Bruno Haible <bruno@clisp.org>
3071 * doc/functions.texi: Remove file, now redundant through
3072 doc/functions/*.texi.
3074 2007-05-01 Bruno Haible <bruno@clisp.org>
3076 * modules/argp (Depends-on): Add sleep.
3078 2007-05-01 Bruno Haible <bruno@clisp.org>
3080 * modules/sleep-tests: New file.
3081 * tests/test-sleep.c: New file.
3083 * modules/sleep: New file.
3084 * lib/sleep.c: New file.
3085 * m4/sleep.m4: New file.
3086 * lib/unistd_.h (sleep): New declaration.
3087 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
3089 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
3090 * doc/functions/sleep.texi: Document the sleep module.
3092 2007-05-01 Bruno Haible <bruno@clisp.org>
3094 * lib/sigprocmask.h: Remove file.
3095 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
3096 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
3097 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
3098 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
3099 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3100 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
3101 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
3102 HAVE_SIGSET_T as a shell variable.
3103 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
3104 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
3105 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
3106 (Depends-on): Add signal. Remove verify.
3107 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
3108 (Include): Mention <signal.h> instead of sigprocmask.h.
3109 * NEWS: Mention the change.
3110 * lib/fatal-signal.c: Don't include sigprocmask.h.
3112 2007-05-01 Bruno Haible <bruno@clisp.org>
3114 * modules/signal: New file.
3115 * lib/signal_.h: New file.
3116 * m4/signal_h.m4: New file.
3118 2007-05-01 Bruno Haible <bruno@clisp.org>
3120 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
3121 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
3122 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
3123 HAVE_WCTYPE_CTMP_BUG into wctype.h.
3125 2007-05-01 Bruno Haible <bruno@clisp.org>
3127 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
3129 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
3130 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
3131 * modules/sys_stat (Makefile.am): Substitute their values into
3134 2007-05-01 Bruno Haible <bruno@clisp.org>
3136 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
3137 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
3138 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
3140 2007-05-01 Bruno Haible <bruno@clisp.org>
3142 * doc/header/assert.texi: Undo last change: don't mention the gnulib
3143 'assert' module here.
3145 2007-05-01 Bruno Haible <bruno@clisp.org>
3147 * doc/functions/*.texi: New files.
3148 * doc/functions/google-ranking.txt: New file.
3149 * doc/gnulib.texi (Function Substitutes): New chapter.
3150 (ctime, inet_ntoa): Remove sections.
3151 * doc/ctime.texi: Remove file.
3152 * doc/inet_ntoa.texi: Remove file.
3153 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
3155 (%.info): New rule, specifying a --reference-limit.
3157 2007-05-01 Bruno Haible <bruno@clisp.org>
3159 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
3161 2007-05-01 Bruno Haible <bruno@clisp.org>
3163 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
3164 the portability of 'mkdir' to mingw systems.
3166 2007-05-01 Bruno Haible <bruno@clisp.org>
3168 * doc/headers/google-ranking.txt: New file.
3170 2007-04-30 Eric Blake <ebb9@byu.net>
3172 Prefer fseeko to fseek.
3173 * modules/getpass (Depends-on): Add fseeko.
3174 * lib/getpass.c (getpass): Use fseeko, not fseek.
3176 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
3178 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
3179 assumes the sorting is stable, while most qsort implementations
3180 are not. Use argument addresses to ensure they never compare as
3183 * tests/test-argp-2.sh (usage-indent test): Fix output
3184 (func_compare): Restore diff options
3185 * tests/test-argp.c: Restore #include "progname.h"
3187 2007-04-29 Bruno Haible <bruno@clisp.org>
3189 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
3190 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3191 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
3192 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3193 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
3194 (configure.ac): Define CHECK_SNPRINTF_POSIX.
3195 (TESTS, check_PROGRAMS): Add test-snprintf.
3196 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
3197 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
3198 (TESTS, check_PROGRAMS): Add test-vsnprintf.
3199 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
3200 assertions that fail on HP-UX, OSF/1, or IRIX.
3201 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
3203 2007-04-29 Bruno Haible <bruno@clisp.org>
3205 * MODULES.html.sh (posix_functions): Remove 'contents'.
3207 2007-04-29 Karl Berry <karl@gnu.org>
3209 * config/srclist.txt (gendocs_template_min): new entry.
3211 2007-04-29 Bruno Haible <bruno@clisp.org>
3213 Work around fpurge bug on BSD systems.
3214 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
3215 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
3216 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
3217 fpurge to rpl_fpurge if the system already has this function.
3218 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
3219 the case where the system already has this function. Correct invariants
3221 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
3224 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
3226 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
3227 proposed by Sven Verdoolaege.
3229 * tests/test-argp.c: Fix option ordering. Test deeply clustered
3231 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
3232 (usage and help tests): Update
3234 2007-04-29 Bruno Haible <bruno@clisp.org>
3236 * tests/test-fflush.c (main): Use a file of size 17, not 10.
3237 Print more information in case of failure. Disable a test on BeOS.
3239 2007-04-29 Bruno Haible <bruno@clisp.org>
3241 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
3242 This helps debugging on systems on which no gdb is available.
3244 2007-04-29 Bruno Haible <bruno@clisp.org>
3246 * lib/freading.h: Improve comments.
3247 * lib/fwriting.h: Likewise.
3248 * tests/test-freading.c (main): Don't check freading immediately after
3249 repositioning. Needed for glibc.
3251 2007-04-29 Bruno Haible <bruno@clisp.org>
3253 * lib/freading.c (freading): Trivial simplification.
3255 2007-04-28 Bruno Haible <bruno@clisp.org>
3257 * tests/test-fwriting.c (main): Also test the interaction between
3258 fflush and fwriting.
3259 * modules/fwriting-tests (Depends-on): Add fflush.
3261 * tests/test-freading.c (main): Also test the interaction between
3262 fflush and freading.
3263 * modules/freading-tests (Depends-on): Add fflush.
3265 2007-04-28 Bruno Haible <bruno@clisp.org>
3267 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
3269 Suggested by Eric Blake.
3271 2007-04-28 Jim Meyering <jim@meyering.net>
3273 Avoid false-negative in gl_STDINT_H's C99 conformance test.
3274 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
3275 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
3277 2007-04-27 Eric Blake <ebb9@byu.net>
3279 * doc/headers/assert.texi (assert.h): Document assert module use.
3281 2007-04-27 Bruno Haible <bruno@clisp.org>
3283 * doc/headers/*.texi: New files.
3284 * doc/gnulib.texi (Header File Substitutes): New chapter.
3285 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
3287 (standards.info ,standards.html, standards.dvi): Update dependencies.
3288 (mostlyclean, clean): New targets.
3290 2007-04-27 Bruno Haible <bruno@clisp.org>
3292 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
3293 * modules/sysexits (Files, Makefile.am): Update.
3295 * lib/sys_socket_.h: Renamed from lib/socket_.h.
3296 * modules/sys_socket (Files, Makefile.am): Update.
3298 * lib/sys_stat_.h: Renamed from lib/stat_.h.
3299 * modules/sys_stat (Files, Makefile.am): Update.
3301 2007-04-27 Eric Blake <ebb9@byu.net>
3303 * lib/freading.h: Improve comments.
3304 * lib/fwriting.h: Likewise.
3305 * lib/fflush.c: Likewise.
3307 Fix closein for mingw.
3308 * modules/closein-tests: Add tests for closein.
3309 * tests/test-closein.c: New file.
3310 * tests/test-closein.sh: Likewise.
3311 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
3312 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
3314 2007-04-27 Bruno Haible <bruno@clisp.org>
3316 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
3318 * lib/math_.h [__DECC]: Likewise.
3319 * lib/stdio_.h [__DECC]: Likewise.
3320 * lib/stdlib_.h [__DECC]: Likewise.
3321 * lib/string_.h [__DECC]: Likewise.
3322 * lib/time_.h [__DECC]: Likewise.
3323 * lib/wchar_.h [__DECC]: Likewise.
3324 * lib/wctype_.h [__DECC]: Likewise.
3326 2007-04-27 Bruno Haible <bruno@clisp.org>
3328 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
3330 2007-04-27 Bruno Haible <bruno@clisp.org>
3332 * lib/fflush.c: Add comments.
3333 * modules/fpurge-tests (Depends-on): Add fflush.
3334 * modules/freadable-tests (Depends-on): Likewise.
3335 * modules/fwritable-tests (Depends-on): Likewise.
3337 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
3339 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
3340 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
3341 Report by Bruno Haible <bruno@clisp.org>.
3343 2007-04-26 Eric Blake <ebb9@byu.net>
3345 Fix fflush on mingw.
3346 * modules/fflush (Depends-on): Add freading.
3347 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
3350 2007-04-26 Eric Blake <ebb9@byu.net>
3351 and Bruno Haible <bruno@clisp.org>
3353 Implement freading and fwriting.
3354 * lib/freading.c: New file.
3355 * lib/freading.h: Likewise.
3356 * m4/freading.m4: Likewise.
3357 * modules/freading: Likewise.
3358 * modules/freading-tests: Likewise.
3359 * tests/test-freading.c: Likewise.
3360 * lib/fwriting.c: New file.
3361 * lib/fwriting.h: Likewise.
3362 * m4/fwriting.m4: Likewise.
3363 * modules/fwriting: Likewise.
3364 * modules/fwriting-tests: Likewise.
3365 * tests/test-fwriting.c: Likewise.
3366 * MODULES.html.sh (File stream based Input/Output): Mention them.
3368 2007-04-26 Bruno Haible <bruno@clisp.org>
3370 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
3371 'long' when we assume it.
3372 Suggested by Eric Blake.
3374 2007-04-26 Bruno Haible <bruno@clisp.org>
3376 Ensure fseeko, ftello are declared on glibc systems.
3377 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
3378 * modules/fseeko (configure.ac-early): Likewise.
3379 * modules/ftello (configure.ac-early): Likewise.
3380 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
3381 AC_FUNC_FSEEKO for this.
3382 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
3383 (gl_CHECK_FSEEKO): Remove macro.
3385 2007-04-26 Bruno Haible <bruno@clisp.org>
3387 * tests/test-fflush.c (main): Also check the ftell result after
3388 fflush and fseek/fseeko.
3389 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
3390 file descriptor position cache in the stream.
3391 * lib/fseeko.c (rpl_fseeko): Likewise.
3393 2007-04-26 Bruno Haible <bruno@clisp.org>
3395 * modules/fflush-tests (Depends-on): Add fseeko.
3397 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
3398 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3400 * lib/argz_.h: ensure error_t definition is obtained in same
3401 mechanism system argz.h would have.
3402 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
3403 argz facilities are known bad. Err on the side of caution if
3406 2007-04-25 Eric Blake <ebb9@byu.net>
3408 * lib/fpurge.c (includes): Use stdlib.h for free.
3409 * tests/test-fflush.c (main): Also test fflush-fseeko.
3411 2007-04-25 Bruno Haible <bruno@clisp.org>
3413 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
3414 * lib/fseeko.c: New file.
3415 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
3416 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
3417 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
3419 (gl_FUNC_FSEEKO): Invoke it.
3420 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
3421 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
3422 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
3424 2007-04-25 Bruno Haible <bruno@clisp.org>
3426 * modules/fflush (Depends-on): Add ftello.
3428 2007-04-25 Bruno Haible <bruno@clisp.org>
3430 * modules/ftello-tests: New file.
3431 * tests/test-ftello.c: New file.
3433 * modules/ftello: New file.
3434 * m4/ftello.m4: New file.
3435 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
3437 * lib/stdio_.h (ftello): New declaration.
3438 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
3441 2007-04-25 Bruno Haible <bruno@clisp.org>
3443 * modules/fseeko-tests: New file.
3444 * tests/test-fseeko.c: New file.
3446 * modules/fseeko: New file.
3447 * m4/fseeko.m4: New file.
3448 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
3450 * lib/stdio_.h (fseeko): New declaration.
3451 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
3454 2007-04-25 Bruno Haible <bruno@clisp.org>
3456 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
3458 2007-04-25 Bruno Haible <bruno@clisp.org>
3460 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
3461 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
3462 * tests/test-unistd.c: Likewise.
3463 * tests/test-fcntl.c: Likewise.
3465 2007-04-23 Eric Blake <ebb9@byu.net>
3467 * lib/fflush.c: Fix missing include.
3468 Reported by Bruno Haible.
3470 2007-04-23 Bruno Haible <bruno@clisp.org>
3472 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
3473 Reported by Eric Blake.
3475 2007-04-23 Bruno Haible <bruno@clisp.org>
3477 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
3479 2007-04-23 Bruno Haible <bruno@clisp.org>
3481 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
3483 2007-04-23 Bruno Haible <bruno@clisp.org>
3485 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
3488 2007-04-16 Eric Blake <ebb9@byu.net>
3490 Make fflush rely on fpurge.
3491 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
3492 open coding all variants.
3493 * modules/fflush (Depends-on): Add fpurge and unistd.
3494 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
3495 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
3497 Fix --with-tests compilation on cygwin.
3498 * modules/argmatch-tests (Makefile.am): List gnulib library first
3500 * modules/argp-tests (Makefile.am): Likewise.
3501 * modules/array-list-tests (Makefile.am): Likewise.
3502 * modules/array-oset-tests (Makefile.am): Likewise.
3503 * modules/avltree-list-tests (Makefile.am): Likewise.
3504 * modules/avltree-oset-tests (Makefile.am): Likewise.
3505 * modules/avltreehash-list-tests (Makefile.am): Likewise.
3506 * modules/carray-list-tests (Makefile.am): Likewise.
3507 * modules/dirname-tests (Makefile.am): Likewise.
3508 * modules/frexp-tests (Makefile.am): Likewise.
3509 * modules/isnanl-tests (Makefile.am): Likewise.
3510 * modules/linked-list-tests (Makefile.am): Likewise.
3511 * modules/linkedhash-list-tests (Makefile.am): Likewise.
3512 * modules/lock-tests (Makefile.am): Likewise.
3513 * modules/rbtree-list-tests (Makefile.am): Likewise.
3514 * modules/rbtree-oset-tests (Makefile.am): Likewise.
3515 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3516 * modules/tls-tests (Makefile.am): Likewise.
3517 * modules/tsearch-tests (Makefile.am): Likewise.
3518 * modules/xvasprintf-tests (Makefile.am): Likewise.
3520 Fix fpurge for cygwin.
3521 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
3523 * modules/fpurge-tests (Depends-on): Clean up trash.
3525 2007-04-16 Simon Josefsson <simon@josefsson.org>
3527 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
3529 * m4/autobuild.m4: Re-indent.
3531 2007-04-13 Bruno Haible <bruno@clisp.org>
3533 * modules/fpurge-tests: New file.
3534 * tests/test-fpurge.c: New file.
3536 * modules/fpurge: New file.
3537 * lib/fpurge.h: New file.
3538 * lib/fpurge.c: New file.
3539 * m4/fpurge.m4: New file.
3541 2007-04-13 Bruno Haible <bruno@clisp.org>
3543 * modules/fbufmode-tests: New file.
3544 * tests/test-fbufmode.c: New file.
3546 * modules/fbufmode: New file.
3547 * lib/fbufmode.h: New file.
3548 * lib/fbufmode.c: New file.
3549 * m4/fbufmode.m4: New file.
3551 2007-04-13 Bruno Haible <bruno@clisp.org>
3553 * modules/fwritable-tests: New file.
3554 * tests/test-fwritable.c: New file.
3556 * modules/fwritable: New file.
3557 * lib/fwritable.h: New file.
3558 * lib/fwritable.c: New file.
3559 * m4/fwritable.m4: New file.
3561 2007-04-13 Bruno Haible <bruno@clisp.org>
3563 * modules/freadable-tests: New file.
3564 * tests/test-freadable.c: New file.
3566 * modules/freadable: New file.
3567 * lib/freadable.h: New file.
3568 * lib/freadable.c: New file.
3569 * m4/freadable.m4: New file.
3571 2007-04-13 Bruno Haible <bruno@clisp.org>
3573 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
3576 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
3578 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
3579 gzip bootstrap.conf to avoid dragging in i18n machinery.
3580 (gnulib_tool_option): Use it.
3582 2007-04-13 Bruno Haible <bruno@clisp.org>
3584 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
3586 * tests/test-vasprintf-posix.c (test_function): Likewise.
3587 * tests/test-snprintf-posix.h (test_function): Likewise.
3588 * tests/test-sprintf-posix.h (test_function): Likewise.
3589 * tests/test-fprintf-posix.h (test_function): Likewise.
3590 * tests/test-printf-posix.h (test_function): Likewise.
3591 * tests/test-fprintf-posix.out: Likewise.
3593 2007-04-13 Bruno Haible <bruno@clisp.org>
3595 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
3596 * modules/tls-tests (configure.ac): Likewise.
3597 Reported by Arto C. Nirkko <anirkko@insel.ch>.
3599 2007-04-13 Bruno Haible <bruno@clisp.org>
3601 * lib/tls.c (glthread_tls_get): Fix return type.
3602 Patch by Arto C. Nirkko <anirkko@insel.ch>.
3604 2007-04-12 Eric Blake <ebb9@byu.net>
3606 * modules/gettime (Depends-on): Remove gettime.
3607 Reported by Dmitry V. Levin.
3609 2007-04-12 Bruno Haible <bruno@clisp.org>
3611 * modules/fflush (Include): Mention <stdio.h>.
3612 * modules/strtoimax (Include): Mention <inttypes.h>.
3613 * modules/strtoumax (Include): Likewise.
3615 2007-04-12 Eric Blake <ebb9@byu.net>
3617 * .cvsignore: New file.
3618 * .gitignore: Likewise.
3620 2007-04-12 Bruno Haible <bruno@clisp.org>
3622 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
3623 not before, since $(LDADD) often contains libgnu.a.
3624 * modules/striconv-tests (test_striconv_LDADD): Likewise.
3625 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
3626 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
3629 2007-04-12 Eric Blake <ebb9@byu.net>
3631 Work around glibc's failure to flush stdin on fclose.
3632 * lib/closein.c (close_stdin): Flush stdin before closing.
3634 Work around glibc's failure to reset seekable stdin on exit.
3635 * modules/closein: New module.
3636 * lib/closein.c: New file.
3637 * lib/closein.h: Likewise.
3638 * m4/closein.m4: Likewise.
3639 * MODULES.html.sh (File stream based Input/Output): Document it.
3641 2007-04-12 Simon Josefsson <simon@josefsson.org>
3643 * gnulib-tool: Rename generated 'autobuild' script to
3644 'do-autobuild' in --create-megatestdir output.
3646 * doc/gnulib.texi (Build robot for gnulib): Fix.
3648 2007-04-12 Simon Josefsson <simon@josefsson.org>
3650 * modules/sysexits (Depends-on): Add absolute-header.
3652 2007-04-12 Eric Blake <ebb9@byu.net>
3654 No need to preserve errno on success.
3655 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
3656 Reported by Bruno Haible.
3658 2007-04-12 Simon Josefsson <simon@josefsson.org>
3660 * MODULES.html.sh (Support for maintaining and releasing
3661 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
3663 2007-04-12 Simon Josefsson <simon@josefsson.org>
3665 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
3667 2007-04-12 Simon Josefsson <simon@josefsson.org>
3669 * modules/autobuild: New module.
3671 * m4/autobuild.m4: New file.
3673 2007-04-11 Bruno Haible <bruno@clisp.org>
3675 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
3676 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
3677 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
3678 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
3679 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3680 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3681 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3682 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3683 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3684 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3685 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
3686 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3687 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3688 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
3689 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3690 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3691 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
3692 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3693 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3694 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
3695 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3696 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3697 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
3698 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3699 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3700 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
3701 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3702 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3703 Reported by Eric Blake.
3705 2007-04-11 Bruno Haible <bruno@clisp.org>
3707 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
3709 2007-04-10 Bruno Haible <bruno@clisp.org>
3711 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
3712 for NaN and Infinity. Needed on FreeBSD 6.1.
3713 * tests/test-vasnprintf-posix.c (test_function): Undo last change
3714 regarding results for "%010a" of Infinity and NaN.
3715 * tests/test-vasprintf-posix.c (test_function): Likewise.
3716 * tests/test-snprintf-posix.h (test_function): Likewise.
3717 * tests/test-sprintf-posix.h (test_function): Likewise.
3718 * tests/test-fprintf-posix.h (test_function): Likewise.
3719 * tests/test-printf-posix.h (test_function): Likewise.
3720 * tests/test-fprintf-posix.out: Likewise.
3722 2007-04-10 Bruno Haible <bruno@clisp.org>
3724 * modules/locale-tests: New file.
3725 * tests/test-locale.c: New file.
3727 * modules/locale: New file.
3728 * lib/locale_.h: New file.
3729 * m4/locale_h.m4: New file.
3731 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
3732 Bruno Haible <bruno@clisp.org>
3734 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3735 be determined, test for availability of the copysignf, copysign,
3736 copysignl functions.
3737 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3738 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3739 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3741 2007-04-09 Eric Blake <ebb9@byu.net>
3743 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3744 * modules/stdio (Makefile.am): Support fflush.
3745 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3746 * modules/fflush: New file.
3747 * lib/fflush.c: Likewise.
3748 * m4/fflush.m4: Likewise.
3749 * modules/fflush-tests: New test.
3750 * tests/test-fflush.c: Likewise.
3751 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3753 2007-04-06 Bruno Haible <bruno@clisp.org>
3755 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3756 (VASNPRINTF): Use signbit for faster determination whether to print a
3758 * modules/vasnprintf (Files): Remove lib/float+.h.
3759 * modules/fprintf-posix (Depends-on): Add signbit.
3760 * modules/snprintf-posix (Depends-on): Likewise.
3761 * modules/sprintf-posix (Depends-on): Likewise.
3762 * modules/vasnprintf-posix (Depends-on): Likewise.
3763 * modules/vasprintf-posix (Depends-on): Likewise.
3764 * modules/vfprintf-posix (Depends-on): Likewise.
3765 * modules/vsnprintf-posix (Depends-on): Likewise.
3766 * modules/vsprintf-posix (Depends-on): Likewise.
3768 2007-04-06 Bruno Haible <bruno@clisp.org>
3770 * tests/test-frexp.c (main): Test also the sign bit of zero results.
3771 * tests/test-frexpl.c (main): Likewise.
3772 * tests/test-ldexpl.c (main): Likewise.
3773 * modules/frexp-tests (Depends-on): Add signbit.
3774 * modules/frexpl-tests (Depdends-on): Likewise.
3775 * modules/ldexpl-tests (Depdends-on): Likewise.
3777 2007-04-06 Bruno Haible <bruno@clisp.org>
3779 * modules/signbit-tests: New file.
3780 * tests/test-signbit.c: New file.
3782 * modules/signbit: New file.
3783 * lib/signbitf.c: New file.
3784 * lib/signbitd.c: New file.
3785 * lib/signbitl.c: New file.
3786 * m4/signbit.m4: New file.
3787 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
3788 (signbit): New macro.
3789 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
3791 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
3792 REPLACE_FREXPL into math.h.
3794 2007-04-06 Bruno Haible <bruno@clisp.org>
3796 * modules/isnanf-nolibm-tests: New file.
3797 * tests/test-isnanf.c: New file.
3799 * modules/isnanf-nolibm: New file.
3800 * lib/isnanf.h: New file.
3801 * lib/isnanf.c: New file.
3802 * lib/isnan.c: Consider the USE_FLOAT macro.
3803 * m4/isnanf.m4: New file.
3805 2007-04-06 Bruno Haible <bruno@clisp.org>
3807 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
3808 (Link): New section.
3810 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
3812 2007-04-06 Bruno Haible <bruno@clisp.org>
3814 Assume the 'long double' type.
3815 * m4/longdouble.m4: Remove file.
3816 * config/srclist.txt: Don't mention longdouble.m4.
3817 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
3818 * lib/float+.h: Likewise.
3819 * lib/frexp.c: Likewise.
3820 * lib/printf-args.h: Likewise.
3821 * lib/printf-args.c: Likewise.
3822 * lib/printf-frexp.c: Likewise.
3823 * lib/printf-parse.c: Likewise.
3824 * lib/vasnprintf.c: Likewise.
3825 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
3826 * m4/intl.m4: Likewise.
3827 * m4/isnanl.m4: Likewise.
3828 * m4/printf.m4: Likewise.
3829 * m4/printf-frexpl.m4: Likewise.
3830 * m4/vasnprintf.m4: Likewise.
3831 * modules/allocsa (Files): Remove m4/longdouble.m4.
3832 * modules/gettext (Files): Likewise.
3833 * modules/relocatable-prog-wrapper (Files): Likewise.
3834 * modules/vasnprintf (Files): Likewise.
3835 * modules/isnanl (Files): Likewise.
3836 (Include): Simplify.
3837 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
3838 (Include): Simplify.
3839 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
3840 (Include): Simplify.
3841 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
3842 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3843 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
3844 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3845 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3846 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3847 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
3848 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3849 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3850 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3851 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
3852 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3853 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
3854 * tests/test-isnanl.c: Likewise.
3855 * tests/test-snprintf-posix.h: Likewise.
3856 * tests/test-sprintf-posix.h: Likewise.
3857 * tests/test-vasnprintf-posix.c: Likewise.
3858 * tests/test-vasnprintf-posix2.c: Likewise.
3859 * tests/test-vasprintf-posix.c: Likewise.
3861 2007-04-06 Bruno Haible <bruno@clisp.org>
3863 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
3864 * lib/math_.h [__DECC]: Include the overridden include file through
3865 #include_next, outside the double-inclusion guard.
3866 * lib/stdio_.h [__DECC]: Likewise.
3867 * lib/stdlib_.h [__DECC]: Likewise.
3868 * lib/string_.h [__DECC]: Likewise.
3869 * lib/time_.h [__DECC]: Likewise.
3870 * lib/wchar_.h [__DECC]: Likewise.
3871 * lib/wctype_.h [__DECC]: Likewise.
3872 * lib/inttypes_.h [__DECC]: Likewise.
3873 Reported by Albert Chin <china@thewrittenword.com> in
3874 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
3876 2007-04-04 Eric Blake <ebb9@byu.net>
3878 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
3881 2007-04-04 Bruno Haible <bruno@clisp.org>
3883 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
3884 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
3886 2007-04-04 Bruno Haible <bruno@clisp.org>
3888 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
3889 results for "%010a" of Infinity and NaN.
3890 * tests/test-vasprintf-posix.c (test_function): Likewise.
3891 * tests/test-snprintf-posix.h (test_function): Likewise.
3892 * tests/test-sprintf-posix.h (test_function): Likewise.
3893 * tests/test-fprintf-posix.h (test_function): Remove these tests.
3894 * tests/test-printf-posix.h (test_function): Likewise.
3895 * tests/test-fprintf-posix.out: Update.
3896 Needed for FreeBSD 6.1.
3898 2007-04-04 Bruno Haible <bruno@clisp.org>
3900 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
3901 directly used by the gnulib modules nor by gnulib-tool.
3903 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
3905 * DEPENDENCIES: Give overall description of version dependency
3906 desirability. Use more-typical names for apps.
3907 Add shell, coreutils, diffutils, grep, tar, gzip.
3909 2007-04-04 Simon Josefsson <simon@josefsson.org>
3911 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
3913 2007-04-04 Karl Berry <karl@gnu.org>
3915 * MODULES.html.sh (func_module): missing '.
3917 2007-04-03 Bruno Haible <bruno@clisp.org>
3919 * modules/argmatch-tests (Makefile.am): New variable
3920 test_argmatch_LDADD.
3921 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
3922 * modules/array-list-tests (Makefile.am): New variable
3923 test_array_list_LDADD.
3924 * modules/array-oset-tests (Makefile.am): New variable
3925 test_array_oset_LDADD.
3926 * modules/avltree-list-tests (Makefile.am): New variable
3927 test_avltree_list_LDADD.
3928 * modules/avltree-oset-tests (Makefile.am): New variable
3929 test_avltree_oset_LDADD.
3930 * modules/avltreehash-list-tests (Makefile.am): New variable
3931 test_avltreehash_list_LDADD.
3932 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
3933 test_canonicalize_lgpl_LDADD.
3934 * modules/carray-list-tests (Makefile.am): New variable
3935 test_carray_list_LDADD.
3936 * modules/dirname-tests (Makefile.am): New variable
3938 * modules/linked-list-tests (Makefile.am): New variable
3939 test_linked_list_LDADD.
3940 * modules/linkedhash-list-tests (Makefile.am): New variable
3941 test_linkedhash_list_LDADD.
3942 * modules/rbtree-list-tests (Makefile.am): New variable
3943 test_rbtree_list_LDADD.
3944 * modules/rbtree-oset-tests (Makefile.am): New variable
3945 test_rbtree_oset_LDADD.
3946 * modules/rbtreehash-list-tests (Makefile.am): New variable
3947 test_rbtreehash_list_LDADD.
3948 * modules/xvasprintf-tests (Makefile.am): New variable
3949 test_xvasprintf_LDADD.
3950 Reported by Eric Blake.
3952 2007-04-03 Eric Blake <ebb9@byu.net>
3954 * DEPENDENCIES: Weaken m4 requirements.
3956 2007-04-03 Bruno Haible <bruno@clisp.org>
3958 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
3959 * modules/isnanl-tests (configure.ac): Likewise.
3961 2007-04-03 Ben Pfaff <blp@gnu.org>
3963 * modules/iconv_open: Add $(srcdir)/ to source directory
3964 references in Makefile fragments that call gperf, to fix VPATH
3967 2007-04-03 Bruno Haible <bruno@clisp.org>
3969 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
3970 * lib/ldexpl.c: Undo last change.
3972 2007-04-03 Bruno Haible <bruno@clisp.org>
3974 * modules/printf-frexpl (Depends-on): Undo last change.
3975 (Files): Add m4/ldexpl.m4.
3977 2007-04-03 Bruno Haible <bruno@clisp.org>
3979 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
3980 * modules/isnanl (Link): New section.
3982 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
3983 * modules/frexp (Link): New section.
3985 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
3986 * modules/frexpl (Link): New section.
3988 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
3989 * modules/ldexpl (Link): New section.
3991 2007-04-03 Bruno Haible <bruno@clisp.org>
3993 * modules/TEMPLATE-EXTENDED: New file.
3994 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
3996 2007-04-03 Bruno Haible <bruno@clisp.org>
3998 * DEPENDENCIES: New file.
3999 Suggested by Simon Josefsson.
4001 2007-04-03 Bruno Haible <bruno@clisp.org>
4003 * doc/gnulib.texi: Escape @.
4005 2007-04-03 James Youngman <jay@gnu.org>
4006 and Paul Eggert <eggert@cs.ucla.edu>
4008 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
4009 birthtime on all systems that have birthtime, not just those which
4010 use st_birthtimensec rather than st_birthtim. Putting zero in
4011 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
4012 that the birth time is not available for files on an NFS mount.
4014 2007-04-03 Simon Josefsson <simon@josefsson.org>
4016 * modules/memxor: Move back from crypto/, suggested by Bruno.
4017 * modules/crypto/hmac-sha1: Fix memxor dependency.
4019 * modules/crypto/gc: Moved from ../.
4021 2007-04-02 Eric Blake <ebb9@byu.net>
4023 * lib/ldexpl.c (includes): Avoid libm.
4025 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
4027 2007-04-02 Bruno Haible <bruno@clisp.org>
4029 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
4032 2007-04-02 Bruno Haible <bruno@clisp.org>
4034 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
4035 x86 or x86_64 platforms running MacOS X.
4036 Reported by Ryan Schmidt <@ryandesign.com>.
4038 2007-04-02 Bruno Haible <bruno@clisp.org>
4040 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
4043 2007-04-01 Simon Josefsson <simon@josefsson.org>
4045 * modules/crypto/arcfour: Moved from ../.
4046 * modules/crypto/arcfour-tests: Moved from ../.
4047 * modules/crypto/arctwo: Moved from ../.
4048 * modules/crypto/arctwo-tests: Moved from ../.
4049 * modules/crypto/des: Moved from ../.
4050 * modules/crypto/des-tests: Moved from ../.
4051 * modules/crypto/gc-arcfour: Moved from ../.
4052 * modules/crypto/gc-arcfour-tests: Moved from ../.
4053 * modules/crypto/gc-arctwo: Moved from ../.
4054 * modules/crypto/gc-arctwo-tests: Moved from ../.
4055 * modules/crypto/gc-des: Moved from ../.
4056 * modules/crypto/gc-des-tests: Moved from ../.
4057 * modules/crypto/gc-hmac-md5: Moved from ../.
4058 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
4059 * modules/crypto/gc-hmac-sha1: Moved from ../.
4060 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
4061 * modules/crypto/gc-md2: Moved from ../.
4062 * modules/crypto/gc-md2-tests: Moved from ../.
4063 * modules/crypto/gc-md4: Moved from ../.
4064 * modules/crypto/gc-md4-tests: Moved from ../.
4065 * modules/crypto/gc-md5: Moved from ../.
4066 * modules/crypto/gc-md5-tests: Moved from ../.
4067 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
4068 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
4069 * modules/crypto/gc-random: Moved from ../.
4070 * modules/crypto/gc-rijndael: Moved from ../.
4071 * modules/crypto/gc-rijndael-tests: Moved from ../.
4072 * modules/crypto/gc-sha1: Moved from ../.
4073 * modules/crypto/gc-sha1-tests: Moved from ../.
4074 * modules/crypto/gc-tests: Moved from ../.
4075 * modules/crypto/hmac-md5: Moved from ../.
4076 * modules/crypto/hmac-md5-tests: Moved from ../.
4077 * modules/crypto/hmac-sha1: Moved from ../.
4078 * modules/crypto/hmac-sha1-tests: Moved from ../.
4079 * modules/crypto/md2: Moved from ../.
4080 * modules/crypto/md2-tests: Moved from ../.
4081 * modules/crypto/md4: Moved from ../.
4082 * modules/crypto/md4-tests: Moved from ../.
4083 * modules/crypto/md5: Moved from ../.
4084 * modules/crypto/md5-tests: Moved from ../.
4085 * modules/crypto/memxor: Moved from ../.
4086 * modules/crypto/rijndael: Moved from ../.
4087 * modules/crypto/rijndael-tests: Moved from ../.
4088 * modules/crypto/sha1: Moved from ../.
4090 2007-03-30 James Youngman <jay@gnu.org>
4092 * tests/test-stat-time.c (prepare_test): use chmod() rather than
4093 rename() to change the ctime of a file (because ctime is unaffected
4094 by rename on jfs2 on AIX 5.1).
4095 (main): Start by doing cleanup, in case a previous run failed leaving
4098 2007-03-31 Bruno Haible <bruno@clisp.org>
4100 Support old proprietary implementations of iconv.
4101 * modules/iconv_open: New file.
4102 * lib/iconv_.h: New file.
4103 * m4/iconv_h.m4: New file.
4104 * lib/iconv_open.c: New file.
4105 * lib/iconv_open-aix.gperf: New file.
4106 * lib/iconv_open-hpux.gperf: New file.
4107 * lib/iconv_open-irix.gperf: New file.
4108 * lib/iconv_open-osf.gperf: New file.
4109 * m4/iconv_open.m4: New file.
4110 * modules/linebreak (Depends-on): Add iconv_open.
4111 * modules/striconv (Depends-on): Likewise.
4112 * modules/striconveh (Depends-on): Likewise.
4113 * modules/unicodeio (Depends-on): Likewise.
4114 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
4116 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
4117 conversion if cd is (iconv_t)(-1).
4118 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
4121 2007-03-31 Bruno Haible <bruno@clisp.org>
4123 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4124 work on Solaris either. Protect also second use of "autodetect_jp".
4126 2007-03-31 Bruno Haible <bruno@clisp.org>
4128 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
4129 the function is not present.
4131 2007-03-31 Bruno Haible <bruno@clisp.org>
4133 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
4134 the function is not present.
4136 2007-03-31 Bruno Haible <bruno@clisp.org>
4138 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
4139 a bug in HP-UX iconv_open().
4141 2007-03-31 Bruno Haible <bruno@clisp.org>
4143 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
4144 (Mathematics <math.h>): New section, add fpieee.
4145 (Input/output <stdio.h>): Add fseterr.
4146 (Mathematics <math.h>): New section, add printf-frexp.
4147 (Container data structures): Add sublist.
4148 (Core language properties): Add fpucw, inline.
4149 (Functions for greatest-width integer types <inttypes.h>): Add
4150 imaxabs, imaxdiv, inttypes.
4151 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
4152 isnanl-nolibm, ldexp.
4153 (Mathematics <math.h>): New section, add printf-frexpl.
4154 (Support for systems lacking POSIX:2001): Add fprintf-posix,
4155 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
4156 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
4157 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
4158 (Unicode string functions): Add unistr/u*-mbtoucr.
4159 (Java): Add javacomp-script, javaexec-script.
4160 (C#): Add csharpcomp-script, csharpexec-script.
4161 (Support for building libraries and executables): Add havelib,
4163 (Support for maintaining and releasing projects): Renamed from
4164 'Support for maintaining and release projects'. Add announce-gen.
4166 2007-03-31 Bruno Haible <bruno@clisp.org>
4168 * README: Talk primarily about git.
4169 (git and CVS): Renamed from CVS.
4170 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
4171 gnulib is available through git.
4172 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
4174 2007-03-30 Bruno Haible <bruno@clisp.org>
4176 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
4177 * lib/poll_.h: Likewise.
4178 * lib/stat_.h: Likewise.
4179 * lib/sys_time_.h: Likewise.
4180 * lib/sysexit_.h: Likewise.
4181 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
4182 * lib/stdbool_.h: Likewise.
4183 * lib/byteswap_.h: Add double-inclusion guard.
4185 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
4187 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
4189 2007-03-30 Karl Berry <karl@gnu.org>
4191 * config/srclist-update: double space after USA in the license
4192 substitution, since that's how it's usually (?) written.
4194 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
4196 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
4197 reported by Bruno Haible.
4199 2007-03-29 Bruno Haible <bruno@clisp.org>
4201 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
4202 a bug in AIX iconv().
4204 2007-03-29 Bruno Haible <bruno@clisp.org>
4206 * modules/ldexpl-tests: New file.
4207 * tests/test-ldexpl.c: New file.
4209 2007-03-29 Bruno Haible <bruno@clisp.org>
4211 * lib/ldexpl.c: Include fpucw.h.
4212 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
4214 * modules/ldexpl (Depends-on): Add fpucw.
4216 2007-03-29 Bruno Haible <bruno@clisp.org>
4218 * modules/ldexpl: New file.
4219 * m4/ldexpl.m4: New file.
4220 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
4222 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
4224 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
4226 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4227 gl_FUNC_LDEXPL_WORKS.
4228 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
4229 * modules/mathl (Files): Remove lib/ldexpl.c.
4230 (Depends-on): Add ldexpl.
4232 2007-03-29 Bruno Haible <bruno@clisp.org>
4234 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
4236 2007-03-29 Bruno Haible <bruno@clisp.org>
4238 * tests/test-striconveh.c (main): Don't assume that a direct conversion
4239 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
4240 and possibly also HP-UX.
4241 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4242 work on AIX, IRIX, HP-UX, OSF/1.
4243 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4244 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4245 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4246 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4247 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4248 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4250 2007-03-29 Bruno Haible <bruno@clisp.org>
4252 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
4254 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4256 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
4257 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
4259 2007-03-29 Eric Blake <ebb9@byu.net>
4261 * lib/acl-internal.h: Remove redundant include.
4262 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
4263 Cygwin when a file is locked.
4265 2007-03-29 Bruno Haible <bruno@clisp.org>
4267 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
4269 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
4271 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4273 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
4274 try to remove a parent directory if the child couldn't be removed
4275 (except for the first rmdir, which could fail because the child
4276 doesn't exist). Problem reported by Jeff Blaine in
4277 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
4279 2007-03-28 Bruno Haible <bruno@clisp.org>
4281 * lib/striconveh.c (utf8conv_carefully): New function.
4282 (mem_cd_iconveh_internal): Invoke it.
4284 2007-03-28 Bruno Haible <bruno@clisp.org>
4286 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
4287 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
4289 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
4290 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
4293 2007-03-28 Bruno Haible <bruno@clisp.org>
4295 * modules/unistr/u8-mbtoucr: New file.
4296 * lib/unistr/u8-mbtoucr.c: New file.
4297 * modules/unistr/u16-mbtoucr: New file.
4298 * lib/unistr/u16-mbtoucr.c: New file.
4299 * modules/unistr/u16-mbtoucr: New file.
4300 * lib/unistr/u16-mbtoucr.c: New file.
4301 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
4303 2007-03-27 Simon Josefsson <simon@josefsson.org>
4304 Bruno Haible <bruno@clisp.org>
4306 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
4307 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
4308 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
4310 * m4/stdio_h.m4: Add stubs for vasprintf too.
4312 * modules/stdio: Support vasprintf in sed command.
4314 * modules/vasprintf: Depend on stdio for prototypes. Remove
4315 vasprintf.h. Add stdio module indicator.
4317 * lib/stdio_.h: Declare asprintf and vasprintf, based on
4320 * lib/vasprintf.h: File removed.
4322 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
4323 * lib/vasprintf.c: Ditto.
4324 * lib/xvasprintf.c: Ditto.
4325 * tests/test-vasprintf-posix.c: Ditto.
4326 * tests/test-vasprintf.c: Ditto.
4328 2007-03-27 Bruno Haible <bruno@clisp.org>
4330 Make vasnprintf multithread-safe.
4331 * lib/vasnprintf.c (decimal_point_char): New function.
4332 (VASNPRINTF): Use it.
4333 Suggested by Simon Josefsson.
4335 2007-03-27 Eric Blake <ebb9@byu.net>
4337 Support sub-second birthtime on cygwin.
4338 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
4339 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
4340 (get_stat_birthtime): Also work with st_birthtim.
4342 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
4344 * lib/stat-time.h (USE_BIRTHTIME): Remove.
4345 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
4346 (get_stat_birthtime_ns): Do not try to use "spare" fields.
4347 (get_stat_birthtime_ns): Simplify compile-time tests.
4348 (get_stat_birthtime): Change the API to look like
4349 get_stat_mtime etc., except return a negative tv_nsec on error.
4350 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
4351 Don't check for "spare" fields.
4352 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
4353 or for struct stat.st_birthtime, as these tests aren't used.
4354 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
4356 2007-03-27 Bruno Haible <bruno@clisp.org>
4358 * lib/stat-time.h: Include <sys/stat.h>.
4360 2007-03-27 James Youngman <jay@gnu.org>
4362 * lib/stat-time.h (get_stat_birthtime): New function for
4363 retrieving st_birthtime as provided by UFS2 (hence *BSD).
4364 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
4366 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
4367 * modules/stat-time-test: New file.
4368 * tests/test-stat-time.c: New test, devised by Bruno Haible.
4370 2007-03-26 Bruno Haible <bruno@clisp.org>
4372 Better support of signalling NaNs.
4373 * lib/atanl.c: Include isnanl.h.
4374 (atanl): Perform test for NaN at the beginning of the function and
4375 through a call to isnanl.
4376 * lib/cosl.c: Include isnanl.h.
4377 (cosl): Perform test for NaN at the beginning of the function and
4378 through a call to isnanl.
4379 * lib/ldexpl.c: Include isnanl.h.
4380 (ldexpl): Perform test for NaN through a call to isnanl.
4381 * lib/logl.c: Include isnanl.h.
4382 (logl): Perform test for NaN at the beginning of the function and
4383 through a call to isnanl.
4384 * lib/sinl.c: Include isnanl.h.
4385 (sinl): Perform test for NaN at the beginning of the function and
4386 through a call to isnanl.
4387 * lib/sqrtl.c: Include isnanl.h.
4388 (sqrtl): Perform test for NaN at the beginning of the function and
4389 through a call to isnanl.
4390 * lib/tanl.c: Include isnanl.h.
4391 (tanl): Perform test for NaN at the beginning of the function and
4392 through a call to isnanl.
4393 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
4394 * modules/mathl (Depends-on): Add isnanl.
4396 2007-03-26 Eric Blake <ebb9@byu.net>
4398 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
4399 regression in logic sense of previous patch.
4401 2007-03-26 Bruno Haible <bruno@clisp.org>
4403 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
4404 unportable shell command "if ! ...".
4405 Reported by Ralf Wildenhues.
4407 2007-03-25 Bruno Haible <bruno@clisp.org>
4409 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
4410 <sysexits.h> file, and only add EX_CONFIG.
4411 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
4412 absolute file name and whether it is sufficient. Substitute also
4413 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
4414 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
4415 ABSOLUTE_SYSEXITS_H into sysexits.h.
4417 2007-03-25 Bruno Haible <bruno@clisp.org>
4419 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
4422 2007-03-25 Bruno Haible <bruno@clisp.org>
4424 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
4425 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4427 2007-03-25 Bruno Haible <bruno@clisp.org>
4429 * lib/vasnprintf.c: Include langinfo.h.
4430 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
4432 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
4433 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
4434 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4435 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4436 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4437 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4438 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4439 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
4440 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4441 Reported by Simon Josefsson.
4443 2007-03-25 Bruno Haible <bruno@clisp.org>
4445 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
4446 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
4447 * modules/vasnprintf (Depends-on): Add stdint.
4449 2007-03-25 Bruno Haible <bruno@clisp.org>
4451 * modules/fpieee: New file.
4452 * m4/fpieee.m4: New file.
4453 * modules/isnan-nolibm (Depends-on): Add fpieee.
4454 * modules/isnanl-nolibm (Depends-on): Add fpieee.
4455 * modules/isnanl (Depends-on): Add fpieee.
4457 2007-03-25 Bruno Haible <bruno@clisp.org>
4459 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
4461 2007-03-25 Bruno Haible <bruno@clisp.org>
4463 Avoid test failures on IRIX 6.5.
4464 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
4466 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
4470 2007-03-25 Bruno Haible <bruno@clisp.org>
4472 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
4473 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
4474 exists but doesn't work.
4475 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
4476 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
4477 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
4478 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
4480 2007-03-25 Bruno Haible <bruno@clisp.org>
4482 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
4483 returns inf. Needed on IRIX 6.5.
4485 2007-03-25 Bruno Haible <bruno@clisp.org>
4487 * tests/test-frexpl.c: Include isnanl-nolibm.h.
4488 (main): Use isnanl instead of x != x idiom.
4489 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
4491 * tests/test-frexp.c: Include isnan.h.
4492 (main): Use isnan instead of x != x idiom.
4493 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
4495 2007-03-25 Bruno Haible <bruno@clisp.org>
4497 * tests/test-frexp.c (NaN): New function/macro.
4498 (main): Use it instead of 0.0 / 0.0.
4499 * tests/test-isnan.c (NaN): New function/macro.
4500 (main): Use it instead of 0.0 / 0.0.
4501 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
4502 (test_function): Use it instead of 0.0 / 0.0.
4503 * tests/test-vasprintf-posix.c (NaN): New function/macro.
4504 (test_function): Use it instead of 0.0 / 0.0.
4505 * tests/test-snprintf-posix.h (NaN): New function/macro.
4506 (test_function): Use it instead of 0.0 / 0.0.
4507 * tests/test-sprintf-posix.h (NaN): New function/macro.
4508 (test_function): Use it instead of 0.0 / 0.0.
4509 * tests/test-fprintf-posix.h (NaN): New function/macro.
4510 (test_function): Use it instead of 0.0 / 0.0.
4511 * tests/test-printf-posix.h (NaN): New function/macro.
4512 (test_function): Use it instead of 0.0 / 0.0.
4514 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
4516 2007-03-25 Bruno Haible <bruno@clisp.org>
4518 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
4520 2007-03-25 Bruno Haible <bruno@clisp.org>
4522 * lib/regexec.c (merge_state_with_log): Make static.
4524 2007-03-25 Bruno Haible <bruno@clisp.org>
4526 * lib/trigl.c (kernel_rem_pio2): Make static.
4528 2007-03-25 Bruno Haible <bruno@clisp.org>
4530 * lib/sincosl.c (sincosl_table): Make static.
4532 2007-03-25 Bruno Haible <bruno@clisp.org>
4534 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
4535 if the compiler does not support C99.
4537 2007-03-25 Bruno Haible <bruno@clisp.org>
4539 * modules/time (Makefile.am): Ensure all rule action lines start with a
4542 2007-03-24 Bruno Haible <bruno@clisp.org>
4544 * modules/tsearch-tests: New file.
4545 * tests/test-tsearch.sh: New file.
4546 * tests/test-tsearch.c: New file, mostly copied from glibc.
4548 * modules/search-tests: New file.
4549 * tests/test-search.c: New file.
4551 * modules/search: New file.
4552 * lib/search_.h: New file, incorporating lib/tsearch.h.
4553 * m4/search_h.m4: New file.
4554 * lib/tsearch.h: Remove file.
4555 * lib/tsearch.c: Include search.h instead of tsearch.h.
4556 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
4558 * modules/tsearch (Files): Remove lib/tsearch.h.
4559 (Depends-on): Add search.
4560 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
4561 (Include): Change tsearch.h into search.h.
4563 2007-03-24 Bruno Haible <bruno@clisp.org>
4565 * modules/fpucw: New file.
4566 * lib/fpucw.h: New file.
4567 * lib/frexp.c: Include fpucw.h.
4568 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4570 * lib/printf-frexp.c: Include fpucw.h.
4571 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4573 * lib/vasnprintf.c: Include fpucw.h.
4574 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
4575 'long double' calculations.
4576 * tests/test-frexpl.c: Include fpucw.h.
4577 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4578 * tests/test-printf-frexpl.c: Include fpucw.h.
4579 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4580 * modules/frexpl (Depends-on): Add fpucw.
4581 * modules/printf-frexpl (Depends-on): Likewise.
4582 * modules/fprintf-posix (Depends-on): Likewise.
4583 * modules/snprintf-posix (Depends-on): Likewise.
4584 * modules/sprintf-posix (Depends-on): Likewise.
4585 * modules/vasnprintf-posix (Depends-on): Likewise.
4586 * modules/vasprintf-posix (Depends-on): Likewise.
4587 * modules/vfprintf-posix (Depends-on): Likewise.
4588 * modules/vsnprintf-posix (Depends-on): Likewise.
4589 * modules/vsprintf-posix (Depends-on): Likewise.
4590 * modules/frexpl-tests (Depends-on): Likewise.
4591 * modules/printf-frexpl-tests (Depends-on): Likewise.
4593 2007-03-24 Bruno Haible <bruno@clisp.org>
4595 * lib/float+.h: New file.
4596 * lib/isnan.c: Include float+.h.
4598 (FUNC): Compare only SIZE bytes of the value.
4599 * lib/vasnprintf.c: Include float+.h.
4600 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
4601 SIZEOF_LDBL or SIZEOF_DBL bytes.
4602 * modules/isnan-nolibm (Files): Add lib/float+.h.
4603 * modules/isnanl-nolibm (Files): Add lib/float+.h.
4604 * modules/isnanl (Files): Add lib/float+.h.
4605 * modules/vasnprintf (Files): Add lib/float+.h.
4607 2007-03-24 Bruno Haible <bruno@clisp.org>
4609 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
4610 include isnanl-nolibm.h.
4612 2007-03-24 Bruno Haible <bruno@clisp.org>
4614 * tests/test-read-file.c (main): Don't produce spurious output for
4615 expected situations. Make the test fail if it encountered unexpected
4618 2007-03-24 Bruno Haible <bruno@clisp.org>
4620 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
4621 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
4623 2007-03-24 Bruno Haible <bruno@clisp.org>
4625 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
4627 2007-03-24 Bruno Haible <bruno@clisp.org>
4629 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
4630 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
4632 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
4633 * modules/utf8-ucs4: Turn into a symbolic link to module
4636 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
4638 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
4639 unistr/u8-mbtouc-unsafe.
4641 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
4642 * modules/utf16-ucs4: Turn into a symbolic link to module
4645 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
4647 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
4648 unistr/u16-mbtouc-unsafe.
4650 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
4651 * modules/ucs4-utf8: Turn into a symbolic link to module
4654 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
4655 * modules/ucs4-utf16: Turn into a symbolic link to module
4658 2007-03-24 Bruno Haible <bruno@clisp.org>
4660 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
4661 Enable the function only if HAVE_INLINE.
4662 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
4663 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4664 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
4665 Enable the function only if HAVE_INLINE.
4666 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
4667 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4668 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
4669 Enable the function only if HAVE_INLINE.
4670 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
4671 Enable the function only if HAVE_INLINE.
4672 * modules/utf8-ucs4: Update.
4673 * modules/utf8-ucs4-unsafe: Update.
4674 * modules/utf16-ucs4: Update.
4675 * modules/utf16-ucs4-unsafe: Update.
4676 * modules/ucs4-utf8: Update.
4677 * modules/ucs4-utf16: Update.
4679 2007-03-24 Bruno Haible <bruno@clisp.org>
4681 * lib/utf8-ucs4.h: Remove file.
4682 * lib/utf8-ucs4-unsafe.h: Remove file.
4683 * lib/utf16-ucs4.h: Remove file.
4684 * lib/utf16-ucs4-unsafe.h: Remove file.
4685 * lib/ucs4-utf8.h: Remove file.
4686 * lib/ucs4-utf16.h: Remove file.
4687 * lib/unistr.h: Include their previous contents.
4688 * m4/utf-ucs4.m4: Remove file.
4689 * m4/ucs4-utf.m4: Remove file.
4690 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
4691 (Depends-on): Add unistr/base.
4692 (configure.ac): Remove gl_UTF_UCS4.
4693 (Makefile.am): Update.
4694 (Include): Change to unistr.h.
4695 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
4696 (Depends-on): Add unistr/base.
4697 (configure.ac): Remove gl_UTF_UCS4.
4698 (Makefile.am): Update.
4699 (Include): Change to unistr.h.
4700 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
4701 (Depends-on): Add unistr/base.
4702 (configure.ac): Remove gl_UTF_UCS4.
4703 (Makefile.am): Update.
4704 (Include): Change to unistr.h.
4705 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
4706 (Depends-on): Add unistr/base.
4707 (configure.ac): Remove gl_UTF_UCS4.
4708 (Makefile.am): Update.
4709 (Include): Change to unistr.h.
4710 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
4711 (Depends-on): Add unistr/base.
4712 (configure.ac): Remove gl_UCS4_UTF.
4713 (Makefile.am): Update.
4714 (Include): Change to unistr.h.
4715 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4716 (Depends-on): Add unistr/base.
4717 (configure.ac): Remove gl_UCS4_UTF.
4718 (Makefile.am): Update.
4719 (Include): Change to unistr.h.
4720 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4721 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4723 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4724 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4725 utf16-ucs4-unsafe.h.
4726 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4727 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4728 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4729 * lib/unistr/u8-strchr.c: Likewise.
4730 * lib/unistr/u8-strrchr.c: Likewise.
4731 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4732 * lib/unistr/u16-strchr.c: Likewise.
4733 * lib/unistr/u16-strrchr.c: Likewise.
4734 * lib/striconveh.c: Update.
4735 * lib/linebreak.c: Update.
4737 2007-03-24 Bruno Haible <bruno@clisp.org>
4739 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4740 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4742 2007-03-22 Bruno Haible <bruno@clisp.org>
4744 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4746 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
4748 * MODULES.html.sh (File system functions): New module write-any-file.
4749 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4750 * m4/write-any-file.m4: New files.
4752 2007-03-23 Eric Blake <ebb9@byu.net>
4754 * gnulib-tool: Rearrange space-tab sequences, since some editors
4757 2007-03-23 Eric Blake <ebb9@byu.net>
4759 * lib/version-etc.c (version_etc_va): Update license wording to
4760 be more concise. Recommended by Richard Stallman.
4762 2007-03-22 Bruno Haible <bruno@clisp.org>
4764 * lib/poll.c (MSG_PEEK): New fallback definition.
4766 2007-03-22 Bruno Haible <bruno@clisp.org>
4768 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4769 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4771 Fixes a compilation error on BeOS.
4773 2007-03-22 Bruno Haible <bruno@clisp.org>
4775 * modules/frexpl-tests: New file.
4776 * tests/test-frexpl.c: New file.
4778 * modules/frexpl: New file.
4779 * m4/frexpl.m4: New file.
4780 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
4781 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
4782 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
4783 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
4784 (Depends-on): Add frexpl. Remove isnanl-nolibm.
4785 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
4787 2007-03-22 Bruno Haible <bruno@clisp.org>
4789 * lib/frexpl.c: Share code with lib/frexp.c.
4790 * modules/mathl (Files): Add lib/frexp.c.
4791 (Depends-on): Add isnanl-nolibm.
4793 2007-03-22 Bruno Haible <bruno@clisp.org>
4795 * modules/printf-frexp (Files): Add m4/frexp.m4.
4796 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
4797 only if the found frexp function actually works.
4799 2007-03-22 Bruno Haible <bruno@clisp.org>
4801 * lib/frexp.c: Remove older implementation that uses divisions.
4803 2007-03-21 Bruno Haible <bruno@clisp.org>
4805 * modules/frexp-tests: New file.
4806 * tests/test-frexp.c: New file.
4808 * modules/frexp: New file.
4809 * lib/frexp.c: New file.
4810 * m4/frexp.m4: New file.
4811 * lib/math_.h (frexp): New declaration.
4812 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
4814 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
4816 2007-03-21 Bruno Haible <bruno@clisp.org>
4818 * modules/isnanl-tests: New file.
4819 * tests/test-isnanl.c: New file.
4821 * modules/isnanl: New file.
4822 * lib/isnanl.h: New file.
4823 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
4824 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
4825 gl_FUNC_ISNANL_WORKS.
4826 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
4829 2007-03-21 Bruno Haible <bruno@clisp.org>
4831 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
4834 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
4835 * lib/vasnprintf.c: Update.
4836 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
4837 tests/test-isnanl.h, remove tests/test-isnanl.c.
4838 (Makefile.am): Update.
4839 * tests/test-isnanl-nolibm.c: New file.
4840 * tests/test-isnanl.h: New file.
4841 * tests/test-isnanl.c: Remove file.
4843 2007-03-21 Jim Meyering <jim@meyering.net>
4845 When trying to open ".", treat ESTALE like EACCES.
4846 * lib/savewd.c (savewd_save): Resort to forking not just upon
4847 failure with EACCES, but also when errno is ESTALE.
4849 2007-03-20 Bruno Haible <bruno@clisp.org>
4851 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
4852 Needed on AIX 5.1. Reported by Matthew Woehlke.
4854 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4856 Suggestions by Bruno Haible:
4857 * lib/acl-internal.h: Include "gettext.h" rather than rolling
4859 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
4860 * modules/acl (Depends-on): Add gettext.
4862 2007-03-19 Bruno Haible <bruno@clisp.org>
4864 * modules/iconvme: Remove file.
4865 * lib/iconvme.h: Remove file.
4866 * lib/iconvme.c: Remove file.
4867 * m4/iconvme.m4: Remove file.
4869 2007-03-19 Bruno Haible <bruno@clisp.org>
4871 * doc/relocatable-maint.texi: Break long shell script line.
4872 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4874 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4876 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
4877 handle file_has_acl.
4878 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
4879 * lib/acl.c: Move header inclusions and related macro defns into
4881 (S_ISLNK): Remove defn, since that's now done for us.
4882 (file_has_acl): Move to lib/file-has-acl.c.
4883 Call acl_trivial if available. This is the crucial part of the fix.
4884 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
4885 shared within the library. Rewrite a bit, partly to make it compatible
4886 with the GNU coding style.
4887 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
4888 Remove unnecessary double-quotes.
4889 Don't test for acl_to_text; the build will catch that.
4890 Replace acl_entries if it doesn't exist and it is needed.
4891 Check for -lsec and acl_trivial (as used on Solaris 10).
4892 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
4894 (Depends-on): Add sys_stat, for S_ISLNK.
4896 2007-03-19 Ben Pfaff <blp@gnu.org>
4898 * doc/gnulib.texi: Fix typos.
4899 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4901 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4903 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
4904 If size is zero here, buf must be zero.
4906 2007-03-19 Simon Josefsson <simon@josefsson.org>
4908 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
4911 2007-03-18 Bruno Haible <bruno@clisp.org>
4913 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
4914 Suggested by Eric Blake.
4916 2007-03-18 Ben Pfaff <blp@gnu.org>
4918 * doc/relocatable.texi: Recommend using as prefix a directory
4919 that does not exist and will never be created. Based on
4920 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
4923 2007-03-17 Bruno Haible <bruno@clisp.org>
4925 * lib/fchownat.c: Include lchown.h.
4927 2007-03-17 Bruno Haible <bruno@clisp.org>
4929 Fix endless loop when the given allocated size was > INT_MAX.
4930 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
4931 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
4932 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
4933 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
4934 * lib/sprintf.c (sprintf): Likewise.
4936 2007-03-17 Bruno Haible <bruno@clisp.org>
4938 * tests/test-argp-2.sh (func_compare): Output a context diff.
4940 2007-03-17 Bruno Haible <bruno@clisp.org>
4942 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4943 locale's decimal-point character.
4945 2007-03-17 Bruno Haible <bruno@clisp.org>
4947 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
4948 before comparing it. Needed because on some platforms (e.g. x86) a
4949 'long double' occupies less bytes than sizeof (long double).
4951 2007-03-17 Bruno Haible <bruno@clisp.org>
4953 * tests/test-crc.c (main): Make printf statements 64-bit clean.
4954 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
4955 * tests/test-getaddrinfo.c (simple): Likewise.
4956 * tests/test-read-file.c (main): Likewise.
4958 2007-03-17 Bruno Haible <bruno@clisp.org>
4960 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
4962 2007-03-17 Bruno Haible <bruno@clisp.org>
4964 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
4967 2007-03-17 Bruno Haible <bruno@clisp.org>
4969 * tests/test-c-strcasecmp.c: Include c-strcase.h.
4970 * tests/test-c-strncasecmp.c: Likewise.
4972 2007-03-17 Bruno Haible <bruno@clisp.org>
4974 * modules/stdlib (Depends-on): Add unistd.
4975 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
4976 Needed for MacOS X 10.3.
4978 2007-03-17 Bruno Haible <bruno@clisp.org>
4980 * lib/unistr/u-strdup.h: Include <stdlib.h>.
4982 2007-03-17 Bruno Haible <bruno@clisp.org>
4984 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
4986 2007-03-17 Bruno Haible <bruno@clisp.org>
4988 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
4989 to reflect files copied from gnulib (with or without modifications).
4990 Suggested by Jim Meyering.
4992 2007-03-17 Eric Blake <ebb9@byu.net>
4994 * NEWS: Document stdlib change from 2007-02-18.
4996 2007-03-17 Jim Meyering <jim@meyering.net>
4998 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
4999 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
5000 someone uses a name containing shell meta-characters.
5001 Reported by Alfred M. Szmidt.
5003 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
5005 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
5007 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
5008 and copy gettext configuration files only if configure.ac contains
5009 a use of AM_GNU_GETTEXT_VERSION.
5011 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
5013 * build-aux/bootstrap (gnulib_name): New variable.
5014 (gnulib_tool_options): Use it.
5016 2007-03-13 Simon Josefsson <simon@josefsson.org>
5018 * tests/test-des.c: Use new namespace.
5020 2007-03-15 Bruno Haible <bruno@clisp.org>
5022 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
5023 Reported by James Youngman <jay@gnu.org>.
5025 2007-03-15 Bruno Haible <bruno@clisp.org>
5027 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
5028 declared prototype. Needed with cc on OSF/1 5.1.
5030 2007-03-15 Bruno Haible <bruno@clisp.org>
5032 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
5033 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
5034 (struct gl_list_implementation): Add dispose_fn argument to the
5035 'create_empty', 'create' methods.
5036 (struct gl_list_impl_base): Add field 'dispose_fn'.
5037 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
5039 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
5040 dispose_fn argument.
5041 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
5042 dispose_fn on the dropped values.
5043 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
5044 dispose_fn argument.
5045 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
5047 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
5048 (gl_tree_remove_node): Call dispose_fn on the dropped value.
5049 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
5050 (gl_tree_remove_node): Call dispose_fn on the dropped value.
5051 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
5053 (gl_tree_list_free): Call dispose_fn on the dropped values.
5054 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
5056 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
5057 Add dispose_fn argument.
5058 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
5059 Call dispose_fn on the dropped values.
5060 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
5061 Add dispose_fn argument.
5062 (gl_sublist_create): Initialize the 'dispose_fn' field.
5063 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
5064 * tests/test-array_list.c (main): Update.
5065 * tests/test-carray_list.c (main): Update.
5066 * tests/test-avltree_list.c (main): Update.
5067 * tests/test-rbtree_list.c (main): Update.
5068 * tests/test-avltreehash_list.c (main): Update.
5069 * tests/test-rbtreehash_list.c (main): Update.
5070 * tests/test-linked_list.c (main): Update.
5071 * tests/test-linkedhash_list.c (main): Update.
5072 * tests/test-array_oset.c (main): Update.
5074 2007-03-15 Bruno Haible <bruno@clisp.org>
5076 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
5077 (gl_oset_create_empty): Add dispose_fn argument.
5078 (struct gl_oset_implementation): Add dispose_fn argument to
5079 'create_empty' method.
5080 (struct gl_oset_impl_base): Add dispose_fn field.
5081 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
5082 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
5083 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
5085 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
5086 (gl_tree_oset_free): Call dispose_fn on the dropped values.
5087 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
5089 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
5091 * tests/test-array_oset.c (main): Update.
5092 * tests/test-avltree_oset.c (main): Update.
5093 * tests/test-rbtree_oset.c (main): Update.
5094 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
5096 2007-03-13 Bruno Haible <bruno@clisp.org>
5098 * tests/test-stdbool.c (i): Update after last patch.
5100 2007-03-12 Bruno Haible <bruno@clisp.org>
5102 * lib/quotearg.c: Include <wctype.h> early, before the definition of
5103 the iswprint macro. Needed on Solaris 2.5.1.
5105 2007-03-12 Bruno Haible <bruno@clisp.org>
5107 * tests/test-printf-frexp.c (main): Declare x as volatile.
5109 2007-03-12 Simon Josefsson <simon@josefsson.org>
5111 * doc/gnulib.texi (Build robot for gnulib): New section.
5113 2007-03-12 Jim Meyering <jim@meyering.net>
5115 * build-aux/bootstrap: New file.
5116 * build-aux/bootstrap.conf: New file, from coreutils.
5118 2007-03-11 Bruno Haible <bruno@clisp.org>
5120 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
5122 2007-03-12 Simon Josefsson <simon@josefsson.org>
5124 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
5125 avoid collisions with 'des_setkey'. Reported by Bruno Haible
5126 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
5128 2007-03-11 Bruno Haible <bruno@clisp.org>
5130 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
5131 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
5133 2007-03-11 Bruno Haible <bruno@clisp.org>
5135 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
5136 formula. Needed for SunPRO C 5.0.
5138 2007-03-11 Bruno Haible <bruno@clisp.org>
5140 * modules/long-options (Depends-on): Add getopt.
5142 2007-03-11 Bruno Haible <bruno@clisp.org>
5144 * modules/modechange (Depends-on): Add stdbool.
5146 2007-03-11 Bruno Haible <bruno@clisp.org>
5148 * modules/i-ring (Depends-on): Add stdbool.
5150 2007-03-11 Bruno Haible <bruno@clisp.org>
5152 * modules/gc-des (Depends-on): Add stdbool.
5154 2007-03-11 Bruno Haible <bruno@clisp.org>
5156 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
5158 2007-03-11 Bruno Haible <bruno@clisp.org>
5160 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
5162 2007-03-11 Bruno Haible <bruno@clisp.org>
5164 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
5166 2007-03-11 Bruno Haible <bruno@clisp.org>
5168 * lib/vasnprintf.c (sprintf): Undefine.
5170 2007-03-11 Bruno Haible <bruno@clisp.org>
5172 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
5173 initializers in SunPRO C and Compaq C compilers.
5175 2007-03-11 Bruno Haible <bruno@clisp.org>
5177 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
5178 decrementing code ANSI C compliant.
5180 2007-03-11 Bruno Haible <bruno@clisp.org>
5182 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
5183 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
5185 2007-03-11 Bruno Haible <bruno@clisp.org>
5187 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
5188 <stdbool.h> substitute doesn't pass.
5190 2007-03-11 Bruno Haible <bruno@clisp.org>
5192 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
5194 2007-03-11 Bruno Haible <bruno@clisp.org>
5196 * gnulib-tool (func_create_megatestdir): Create also an autobuild
5197 script, for submission to autobuild.josefsson.org.
5199 2007-03-10 Bruno Haible <bruno@clisp.org>
5201 * modules/canonicalize-lgpl-tests: New file.
5202 * tests/test-canonicalize-lgpl.sh: New file.
5203 * tests/test-canonicalize-lgpl.c: New file.
5205 * modules/c-strcase-tests: New file.
5206 * tests/test-c-strcase.sh: New file.
5207 * tests/test-c-strcasecmp.c: New file.
5208 * tests/test-c-strncasecmp.c: New file.
5210 * modules/atexit-tests: New file.
5211 * tests/test-atexit.sh: New file.
5212 * tests/test-atexit.c: New file.
5214 2007-03-10 Bruno Haible <bruno@clisp.org>
5216 * tests/test-binary-io.sh: Use temporary filenames that are not so
5217 likely to clash with those of other tests (in a parallel make).
5218 * tests/test-binary-io.c: Likewise.
5220 2007-03-10 Bruno Haible <bruno@clisp.org>
5222 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
5223 fallback; use #error instead.
5224 Suggested by Simon Josefsson.
5226 2007-03-10 Bruno Haible <bruno@clisp.org>
5228 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
5229 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
5232 2007-03-10 Bruno Haible <bruno@clisp.org>
5234 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
5236 2007-03-10 Bruno Haible <bruno@clisp.org>
5238 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
5240 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
5241 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
5242 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
5244 2007-03-10 Bruno Haible <bruno@clisp.org>
5246 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
5248 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
5251 2007-03-09 Eric Blake <ebb9@byu.net>
5252 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
5254 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
5255 types are not being provided by gnulib.
5256 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
5257 types are supported.
5259 2007-03-10 Bruno Haible <bruno@clisp.org>
5261 * lib/stdio_.h (__attribute__): New macro.
5262 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
5263 vsprintf): Specify __attribute__ __format__ for GCC.
5264 Suggested by Eric Blake.
5266 2007-03-09 Bruno Haible <bruno@clisp.org>
5268 * modules/printf-posix-tests: New file.
5269 * tests/test-printf-posix.sh: New file.
5270 * tests/test-printf-posix.c: New file.
5272 * modules/printf-posix: New file.
5273 * lib/printf.c: New file.
5274 * m4/printf-posix-rpl.m4: New file.
5275 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
5277 * lib/stdio_.h (printf): New declaration.
5278 (format, __format__, ____printf____, ____scanf____, ____strftime____,
5279 ____strfmon____): New macros.
5280 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
5283 2007-03-09 Bruno Haible <bruno@clisp.org>
5285 * tests/test-vasnprintf-posix2.sh: New file.
5286 * tests/test-vasnprintf-posix2.c: New file.
5287 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
5288 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5289 (Makefile.am): Activate test-vasnprintf-posix2.sh.
5291 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
5292 a locale dependent decimal point, rather than always '.'.
5294 2007-03-09 Eric Blake <ebb9@byu.net>
5296 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
5297 spite of platforms like Tandem/NSK that define it to -1.
5299 2007-03-08 Bruno Haible <bruno@clisp.org>
5301 * modules/vprintf-posix-tests: New file.
5302 * tests/test-vprintf-posix.sh: New file.
5303 * tests/test-vprintf-posix.c: New file.
5304 * tests/test-printf-posix.h: New file.
5306 * modules/vprintf-posix: New file.
5307 * lib/vprintf.c: New file.
5308 * m4/vprintf-posix.m4: New file.
5309 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
5311 * lib/stdio_.h (vprintf): New declaration.
5312 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
5315 2007-03-08 Bruno Haible <bruno@clisp.org>
5317 * modules/fprintf-posix-tests: New file.
5318 * tests/test-fprintf-posix.sh: New file.
5319 * tests/test-fprintf-posix.c: New file.
5321 * modules/fprintf-posix: New file.
5322 * lib/fprintf.c: New file.
5323 * m4/fprintf-posix.m4: New file.
5324 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
5326 * lib/stdio_.h (fprintf): New declaration.
5327 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
5330 2007-03-08 Bruno Haible <bruno@clisp.org>
5332 * modules/vfprintf-posix-tests: New file.
5333 * tests/test-vfprintf-posix.sh: New file.
5334 * tests/test-vfprintf-posix.c: New file.
5335 * tests/test-fprintf-posix.h: New file.
5336 * tests/test-fprintf-posix.out: New file.
5338 * modules/vfprintf-posix: New file.
5339 * lib/vfprintf.c: New file.
5340 * m4/vfprintf-posix.m4: New file.
5341 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
5343 * lib/stdio_.h (vfprintf): New declaration.
5344 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
5347 2007-03-08 Bruno Haible <bruno@clisp.org>
5349 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
5351 2007-03-08 Bruno Haible <bruno@clisp.org>
5353 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
5354 instead of 'expr' invocations.
5355 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5356 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5357 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5358 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5359 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5360 Suggested by Paul Eggert.
5362 2007-03-08 Bruno Haible <bruno@clisp.org>
5364 * modules/fseterr-tests: New file.
5365 * tests/test-fseterr.c: New file.
5367 * modules/fseterr: New file.
5368 * lib/fseterr.h: New file.
5369 * lib/fseterr.c: New file.
5371 2007-03-08 Bruno Haible <bruno@clisp.org>
5373 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
5374 * lib/getopt_.h: Likewise.
5375 * lib/mbswidth.h: Likewise.
5376 * lib/setenv.h: Likewise.
5377 * lib/vasnprintf.h: Likewise.
5378 * lib/vasprintf.h: Likewise.
5379 * lib/verror.h: Likewise.
5380 * lib/xsetenv.h: Likewise.
5381 * lib/xvasprintf.h: Likewise.
5383 2007-03-08 Jim Meyering <jim@meyering.net>
5385 * users.txt: Add parted.
5387 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
5389 2007-03-07 Bruno Haible <bruno@clisp.org>
5391 * m4/printf.m4: Make the shell script snippets copy&pastable.
5393 2007-03-02 Bruno Haible <bruno@clisp.org>
5395 * lib/netinet_in_.h: New file.
5396 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
5397 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
5398 * modules/netinet_in (Files): Add lib/netinet_in_.h.
5399 (Depends-on): Add absolute-header.
5400 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
5403 2007-03-03 Bruno Haible <bruno@clisp.org>
5405 * lib/sys_select_.h: New file.
5406 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
5407 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
5408 * modules/sys_select (Files): Add lib/sys_select_.h.
5409 (Depends-on): Add absolute-header.
5410 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
5413 2007-03-02 Bruno Haible <bruno@clisp.org>
5415 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
5416 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
5418 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
5419 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
5420 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
5421 * modules/sys_socket (Depends-on): Add absolute-header.
5422 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
5423 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
5424 (Include): Remove requirement of inclusion of <sys/types.h>.
5426 2007-03-02 Bruno Haible <bruno@clisp.org>
5428 * lib/byteswap_.h (bswap_32): Fix formula.
5430 2007-03-06 Bruno Haible <bruno@clisp.org>
5432 * modules/sprintf-posix-tests: New file.
5433 * tests/test-sprintf-posix.c: New file.
5435 * modules/sprintf-posix: New file.
5436 * lib/sprintf.c: New file.
5437 * m4/sprintf-posix.m4: New file.
5438 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
5440 * lib/stdio_.h (sprintf): New declaration.
5441 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
5444 2007-03-06 Bruno Haible <bruno@clisp.org>
5446 * modules/vsprintf-posix-tests: New file.
5447 * tests/test-vsprintf-posix.c: New file.
5448 * tests/test-sprintf-posix.h: New file.
5450 * modules/vsprintf-posix: New file.
5451 * lib/vsprintf.c: New file.
5452 * m4/vsprintf-posix.m4: New file.
5453 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
5455 * lib/stdio_.h (vsprintf): New declaration.
5456 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
5459 2007-03-06 Bruno Haible <bruno@clisp.org>
5461 * modules/vsnprintf (Depend-on): Remove minmax.
5463 2007-03-06 Bruno Haible <bruno@clisp.org>
5465 * modules/snprintf-posix-tests: New file.
5466 * tests/test-snprintf-posix.c: New file.
5468 * modules/snprintf-posix: New file.
5469 * m4/snprintf-posix.m4: New file.
5470 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
5472 (gl_FUNC_SNPRINTF): Invoke it.
5473 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
5474 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
5476 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
5478 2007-03-06 Bruno Haible <bruno@clisp.org>
5480 * modules/vsnprintf-posix-tests: New file.
5481 * tests/test-vsnprintf-posix.c: New file.
5482 * tests/test-snprintf-posix.h: New file.
5484 * modules/vsnprintf-posix: New file.
5485 * m4/vsnprintf-posix.m4: New file.
5486 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
5488 (gl_FUNC_VSNPRINTF): Invoke it.
5489 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
5490 * lib/stdio_.h (vsnprintf): Define as a replacement if
5491 REPLACE_VSNPRINTF is set.
5492 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
5494 2007-03-06 Bruno Haible <bruno@clisp.org>
5496 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
5497 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
5499 2007-03-06 Bruno Haible <bruno@clisp.org>
5501 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
5502 (asinl): Declare also if HAVE_DECL_ASINL is set.
5503 (atanl): Declare also if HAVE_DECL_ATANL is set.
5504 (ceill): Declare also if HAVE_DECL_CEILL is set.
5505 (cosl): Declare also if HAVE_DECL_COSL is set.
5506 (expl): Declare also if HAVE_DECL_EXPL is set.
5507 (floorl): Declare also if HAVE_DECL_FLOORL is set.
5508 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
5509 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
5510 (logl): Declare also if HAVE_DECL_LOGL is set.
5511 (sinl): Declare also if HAVE_DECL_SINL is set.
5512 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
5513 (tanl): Declare also if HAVE_DECL_TANL is set.
5514 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
5515 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
5516 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
5517 declaration of frexpl, ldexpl.
5518 * modules/printf-frexpl (Depends-on): Add math.
5519 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
5521 2007-03-05 Bruno Haible <bruno@clisp.org>
5523 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
5524 frexpl and ldexpl are declared.
5525 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
5527 2007-03-05 Bruno Haible <bruno@clisp.org>
5529 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
5530 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
5532 2007-03-05 Bruno Haible <bruno@clisp.org>
5534 * lib/stdio_.h: Include <stddef.h>.
5536 2007-03-05 Bruno Haible <bruno@clisp.org>
5538 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
5540 2007-03-05 Bruno Haible <bruno@clisp.org>
5542 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
5543 NetBSD 4, from Ralf Wildenhues.
5545 2007-03-04 Bruno Haible <bruno@clisp.org>
5547 * lib/vasprintf.h: Update #if logic for the case when the functions
5548 exist but are overridden.
5550 2007-03-04 Bruno Haible <bruno@clisp.org>
5552 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
5553 implementations: glibc-2.4 and MacOS X 10.3.
5554 * tests/test-vasnprintf-posix.c (test_function): Test also the case
5555 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
5556 * tests/test-vasprintf-posix.c (test_function): Likewise.
5558 2007-03-04 Bruno Haible <bruno@clisp.org>
5560 * modules/vasprintf-posix-tests: New file.
5561 * tests/test-vasprintf-posix.c: New file.
5563 * modules/vasprintf-posix: New file.
5564 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
5566 * m4/vasprintf-posix.m4: New file.
5567 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
5569 (gl_FUNC_VASPRINTF): Invoke it.
5570 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
5572 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
5574 2007-03-04 Bruno Haible <bruno@clisp.org>
5576 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
5577 REPLACE_GETTIMEOFDAY.
5578 * modules/sys_time (Makefile.am): Likewise.
5579 * m4/sys_time_h.m4: Likewise.
5580 * m4/gettimeofday.m4: Likewise.
5582 2007-03-04 Bruno Haible <bruno@clisp.org>
5584 * modules/vasnprintf-posix-tests: New file.
5585 * tests/test-vasnprintf-posix.c: New file.
5587 * modules/vasnprintf-posix: New file.
5588 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
5590 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
5591 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
5592 REPLACE_VASNPRINTF is defined.
5593 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
5595 (gl_FUNC_VASNPRINTF): Invoke it.
5596 * m4/vasnprintf-posix.m4: New file.
5597 * m4/printf.m4: New file.
5599 2007-03-04 Bruno Haible <bruno@clisp.org>
5601 Compile progreloc.c only if --enable-relocatable is specified.
5602 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
5603 if --enable-relocatable was specified.
5604 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
5607 2007-03-04 Jim Meyering <jim@meyering.net>
5609 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
5610 Use it consistently, rather than enumerating errno constants.
5612 2007-03-04 Bruno Haible <bruno@clisp.org>
5614 * modules/xvasprintf-tests: New file.
5615 * tests/test-xvasprintf.c: New file.
5617 * modules/vasprintf-tests: New file.
5618 * tests/test-vasprintf.c: New file.
5620 * modules/vasnprintf-tests: New file.
5621 * tests/test-vasnprintf.c: New file.
5623 * modules/vsnprintf-tests: New file.
5624 * tests/test-vsnprintf.c: New file.
5626 * modules/snprintf-tests: New file.
5627 * tests/test-snprintf.c: New file.
5629 2007-03-04 Bruno Haible <bruno@clisp.org>
5631 Compile relocatable.c only if --enable-relocatable is specified.
5632 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
5633 gl_RELOCATABLE_LIBRARY.
5634 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
5635 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
5636 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
5637 gl_RELOCATABLE_LIBRARY.
5638 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
5639 (Makefile.am): Remove lib_SOURCES.
5640 * modules/relocatable-lib-lgpl (configure.ac): Invoke
5641 gl_RELOCATABLE_LIBRARY.
5642 (Makefile.am): Remove lib_SOURCES.
5643 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
5645 * modules/relocatable-prog-wrapper (configure.ac): Invoke
5646 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
5648 2007-03-04 Bruno Haible <bruno@clisp.org>
5650 * modules/argmatch-tests: New file.
5651 * tests/test-argmatch.c: New file.
5653 * tests/test-allocsa.c (main): Halve the number of loop runs.
5655 * modules/alloca-opt-tests: New file.
5656 * tests/test-alloca-opt.c: New file.
5658 2007-03-04 Jim Meyering <jim@meyering.net>
5660 Work around difference between Linux ACLs and Solaris 10 ZFS.
5661 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
5664 2007-03-03 Bruno Haible <bruno@clisp.org>
5666 * modules/relocatable-prog (Depends-on): Add back progreloc's
5667 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
5669 2007-03-03 Bruno Haible <bruno@clisp.org>
5671 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
5672 * modules/relocatable-lib: New file.
5674 2007-03-03 Bruno Haible <bruno@clisp.org>
5676 * modules/relocatable-prog: Renamed from modules/relocatable.
5677 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
5679 2007-03-03 Bruno Haible <bruno@clisp.org>
5681 * modules/relocatable-script (Files): Add doc/relocatable.texi,
5682 m4/relocatable-lib.m4.
5683 (Depends-on): Remove 'relocatable'.
5684 (configure.ac): Add gl_RELOCATABLE_NOP.
5686 2007-03-03 Bruno Haible <bruno@clisp.org>
5688 * modules/relocatable-prog-wrapper: New file.
5689 * modules/relocatable (Depends-on): Add it. Remove all other
5690 dependencies except progname.
5691 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
5693 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
5694 (gl_FUNC_STRERROR): Nop.
5695 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
5697 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
5698 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
5700 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
5701 (gl_FUNC_READLINK): Update.
5703 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
5705 2007-03-03 Bruno Haible <bruno@clisp.org>
5707 * lib/xreadlink.c: Include <unistd.h> unconditionally.
5708 * modules/xreadlink (Depends-on): Add unistd.
5709 * modules/xreadlink-with-size (Depends-on): Likewise.
5711 2007-03-03 Bruno Haible <bruno@clisp.org>
5713 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5714 extracted from gt_FUNC_SETENV.
5715 (gt_FUNC_SETENV): Remove macro.
5716 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5717 remove gt_FUNC_SETENV.
5719 2007-03-03 Bruno Haible <bruno@clisp.org>
5721 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5722 ENABLE_RELOCATABLE here.
5723 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5725 2007-03-03 Bruno Haible <bruno@clisp.org>
5727 * modules/rbtreehash-list-tests (Depends-on): Add progname.
5728 * tests/test-rbtreehash_list.c: Include progname.h.
5729 (main): Call set_program_name.
5731 * modules/rbtree-oset-tests (Depends-on): Add progname.
5732 * tests/test-rbtree_oset.c: Include progname.h.
5733 (main): Call set_program_name.
5735 * modules/rbtree-list-tests (Depends-on): Add progname.
5736 * tests/test-rbtree_list.c: Include progname.h.
5737 (main): Call set_program_name.
5739 * modules/linked-list-tests (Depends-on): Add progname.
5740 * tests/test-linked_list.c: Include progname.h.
5741 (main): Call set_program_name.
5743 2007-03-03 Bruno Haible <bruno@clisp.org>
5745 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5746 All uses of __restrict changed to _Restrict_.
5747 * lib/glob_.h (__restrict): Remove macro.
5749 2007-03-02 Bruno Haible <bruno@clisp.org>
5751 * modules/gettext (configure.ac): Require gettext infrastructure
5752 from version 0.16.1.
5754 2007-03-02 Bruno Haible <bruno@clisp.org>
5756 * modules/linkedhash-list-tests (Depends-on): Add progname.
5757 * tests/test-linkedhash_list.c: Include progname.h.
5758 (main): Call set_program_name.
5760 * modules/carray-list-tests (Depends-on): Add progname.
5761 * tests/test-carray_list.c: Include progname.h.
5762 (main): Call set_program_name.
5764 * modules/avltreehash-list-tests (Depends-on): Add progname.
5765 * tests/test-avltreehash_list.c: Include progname.h.
5766 (main): Call set_program_name.
5768 * modules/avltree-oset-tests (Depends-on): Add progname.
5769 * tests/test-avltree_oset.c: Include progname.h.
5770 (main): Call set_program_name.
5772 * modules/avltree-list-tests (Depends-on): Add progname.
5773 * tests/test-avltree_list.c: Include progname.h.
5774 (main): Call set_program_name.
5776 * modules/array-oset-tests (Depends-on): Add progname.
5777 * tests/test-array_oset.c: Include progname.h.
5778 (main): Call set_program_name.
5780 * modules/array-list-tests (Depends-on): Add progname.
5781 * tests/test-array_list.c: Include progname.h.
5782 (main): Call set_program_name.
5784 * modules/argp-tests (Depends-on): Add progname.
5785 * tests/test-argp.c: Include argp.h first. Include progname.h.
5786 (main): Call set_program_name.
5788 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
5790 * doc/gnulib-tool.texi (Initial import): Reword description of
5791 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
5792 limited effect even if defined after the first system include.
5794 2007-03-01 Bruno Haible <bruno@clisp.org>
5796 * build-aux/config.libpath: Update to libtool-1.5.22.
5797 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5799 2007-03-01 Bruno Haible <bruno@clisp.org>
5801 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
5803 Reported by Ralf Wildenhues.
5805 2007-03-01 Bruno Haible <bruno@clisp.org>
5807 * build-aux/install-reloc: Remove object files left over by some
5809 Reported by Ralf Wildenhues.
5811 2007-03-01 Bruno Haible <bruno@clisp.org>
5813 * build-aux/install-reloc: Break long lines.
5815 2007-03-01 Bruno Haible <bruno@clisp.org>
5817 * doc/relocatable.texi: Document that it may not work on OpenBSD.
5818 Reported by Ralf Wildenhues.
5820 2007-03-01 Bruno Haible <bruno@clisp.org>
5822 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
5823 include ordering constraints.
5825 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
5827 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
5828 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
5829 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
5831 * lib/time_.h: Fix misspelling.
5832 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5833 Require gl_HEADER_TIME_H_DEFAULTS.
5834 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
5835 * m4/time_r.m4 (gl_TIME_R): Likewise.
5836 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
5838 2007-03-01 Bruno Haible <bruno@clisp.org>
5840 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
5841 * m4/utimens.m4 (gl_UTIMENS): Likewise.
5843 2007-03-01 Jim Meyering <jim@meyering.net>
5845 * modules/xreadlink (Maintainer): Add my name.
5846 * modules/xreadlink-with-size (Depends-on): Alphabetize.
5848 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
5849 Bruno Haible <bruno@clisp.org>
5851 * build-aux/install-reloc: Compile also c-ctype.c.
5852 * build-aux/relocatable.sh.in: New file.
5853 * doc/relocatable.texi: New file.
5854 * doc/relocatable-maint.texi: New file.
5855 * doc/gnulib.texi: Include relocatable-maint.texi.
5856 * lib/progreloc.c: Include unistd.h unconditionally.
5857 * lib/relocwrapper.c: Include unistd.h unconditionally.
5859 (add_dotbin): Use c_tolower.
5860 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
5861 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
5862 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
5863 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
5864 to m4/relocatable-lib.m4.
5865 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
5866 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
5867 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
5868 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
5869 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
5870 * modules/relocatable: New file.
5871 * modules/relocatable-lib: New file.
5872 * modules/relocatable-script: New file.
5874 2007-02-28 Bruno Haible <bruno@clisp.org>
5876 Import --enable-relocatable infrastructure.
5877 * build-aux/config.libpath: New file, from GNU gettext.
5878 * build-aux/install-reloc: New file, from GNU gettext.
5879 * build-aux/reloc-ldflags: New file, from GNU gettext.
5880 * lib/relocatable.h: New file, from GNU gettext.
5881 * lib/relocatable.c: New file, from GNU gettext.
5882 * lib/relocwrapper.c: New file, from GNU gettext.
5883 * m4/relocatable.m4: New file, from GNU gettext.
5885 2007-02-28 Bruno Haible <bruno@clisp.org>
5887 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
5889 * modules/xreadlink: New file, from GNU gettext with modifications.
5890 * lib/xreadlink.c: New file, from GNU gettext.
5891 * lib/xreadlink.h: Add comments.
5892 (xreadlink): New declaration.
5894 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
5895 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
5896 lib/xreadlink-with-size.c.
5897 (configure.ac): Remove gl_XREADLINK invocation.
5898 (Makefile.am): Augment lib_SOURCES.
5899 * m4/xreadlink.m4: Remove file.
5900 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
5901 (xreadlink_with_size): Renamed from xreadink.
5902 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
5903 * modules/canonicalize (Depends-on): Replace xreadlink with
5904 xreadlink-with-size.
5905 * lib/canonicalize.c (canonicalize_filename_mode): Update.
5907 2007-02-25 Jim Meyering <jim@meyering.net>
5909 * build-aux/announce-gen: When complaining about excess arguments,
5912 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
5914 * README: Document signed integer overflow situation more
5917 2007-02-25 Bruno Haible <bruno@clisp.org>
5919 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
5920 'a' or 'A' conversion.
5922 2007-02-25 Bruno Haible <bruno@clisp.org>
5924 * modules/filename: Renamed from modules/pathname.
5925 (Files): Replace lib/pathname.h with lib/filename.h. Replace
5926 lib/concatpath.c with lib/concat-filename.c.
5927 (Makefile.am): Update.
5928 (Include): Replace pathname.h with filename.h.
5929 * lib/filename.h: Renamed from lib/pathname.h.
5930 (concatenated_filename): Renamed from concatenated_pathname.
5931 * lib/concat-filename.c: Renamed from lib/concatpath.c.
5932 (concatenated_filename): Renamed from concatenated_pathname.
5933 * lib/findprog.c: Include filename.h instead of pathname.h.
5934 (find_in_path): Update.
5935 * lib/javacomp.c: Include filename.h instead of pathname.h.
5936 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5937 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5938 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5939 is_oldgcj_14_13_usable, is_javac_usable): Update.
5940 * lib/javaexec.c: Include filename.h instead of pathname.h.
5941 (execute_java_class): Update.
5942 * modules/findprog: Update.
5943 * modules/javacomp: Update.
5944 * modules/javaexec: Update.
5945 * MODULES.html.sh (File system functions): Add 'filename', remove
5948 2007-02-25 Bruno Haible <bruno@clisp.org>
5950 * modules/printf-frexpl-tests: New file.
5951 * tests/test-printf-frexpl.c: New file.
5953 * modules/printf-frexpl: New file.
5954 * lib/printf-frexpl.h: New file.
5955 * lib/printf-frexpl.c: New file.
5956 * m4/printf-frexpl.m4: New file.
5958 2007-02-25 Bruno Haible <bruno@clisp.org>
5960 * modules/printf-frexp-tests: New file.
5961 * tests/test-printf-frexp.c: New file.
5963 * modules/printf-frexp: New file.
5964 * lib/printf-frexp.h: New file.
5965 * lib/printf-frexp.c: New file.
5966 * m4/printf-frexp.m4: New file.
5968 2007-02-25 Bruno Haible <bruno@clisp.org>
5970 Assume automake >= 1.10 for the tests.
5971 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
5972 * modules/arctwo-tests: Likewise.
5973 * modules/argp-tests: Likewise.
5974 * modules/avltree-list-tests: Likewise.
5975 * modules/avltree-oset-tests: Likewise.
5976 * modules/avltreehash-list-tests: Likewise.
5977 * modules/carray-list-tests: Likewise.
5978 * modules/crc-tests: Likewise.
5979 * modules/des-tests: Likewise.
5980 * modules/gc-arcfour-tests: Likewise.
5981 * modules/gc-arctwo-tests: Likewise.
5982 * modules/gc-des-tests: Likewise.
5983 * modules/gc-hmac-md5-tests: Likewise.
5984 * modules/gc-hmac-sha1-tests: Likewise.
5985 * modules/gc-md2-tests: Likewise.
5986 * modules/gc-md4-tests: Likewise.
5987 * modules/gc-md5-tests: Likewise.
5988 * modules/gc-pbkdf2-sha1-tests: Likewise.
5989 * modules/gc-rijndael-tests: Likewise.
5990 * modules/gc-sha1-tests: Likewise.
5991 * modules/gc-tests: Likewise.
5992 * modules/getaddrinfo-tests: Likewise.
5993 * modules/hmac-md5-tests: Likewise.
5994 * modules/hmac-sha1-tests: Likewise.
5995 * modules/linked-list-tests: Likewise.
5996 * modules/linkedhash-list-tests: Likewise.
5997 * modules/lock-tests: Likewise.
5998 * modules/md2-tests: Likewise.
5999 * modules/md4-tests: Likewise.
6000 * modules/md5-tests: Likewise.
6001 * modules/rbtree-list-tests: Likewise.
6002 * modules/rbtree-oset-tests: Likewise.
6003 * modules/rbtreehash-list-tests: Likewise.
6004 * modules/read-file-tests: Likewise.
6005 * modules/rijndael-tests: Likewise.
6006 * modules/stdint-tests: Likewise.
6007 * modules/tls-tests: Likewise.
6009 2007-02-24 Bruno Haible <bruno@clisp.org>
6011 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
6012 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
6013 function; instead check whether isnan with a double argument links.
6014 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
6015 function; instead check whether isnan with a 'long double' argument
6017 Reported by Eric Blake <ebb9@byu.net>.
6019 2007-02-24 Bruno Haible <bruno@clisp.org>
6021 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
6023 * lib/isnanl.c: Remove all code. Just include isnan.c.
6024 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
6026 2007-02-25 Jim Meyering <jim@meyering.net>
6028 Avoid conflicting types for 'unsetenv' on FreeBSD.
6029 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
6030 conflicting with FreeBSD's (5.0 and 6.1) function declaration
6033 2007-02-24 Bruno Haible <bruno@clisp.org>
6035 * modules/isnanl-nolibm-tests: New file.
6036 * tests/test-isnanl.c: New file.
6038 * modules/isnanl-nolibm: New file.
6039 * lib/isnanl.h: New file.
6040 * lib/isnanl.c: New file.
6041 * m4/isnanl.m4: New file.
6043 2007-02-24 Bruno Haible <bruno@clisp.org>
6045 * modules/isnan-nolibm-tests: New file.
6046 * tests/test-isnan.c: New file.
6048 * modules/isnan-nolibm: New file.
6049 * lib/isnan.h: New file.
6050 * lib/isnan.c: New file.
6051 * m4/isnan.m4: New file.
6053 2007-02-24 Bruno Haible <bruno@clisp.org>
6055 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
6056 assume that an exponent fits in 20 bits.
6058 2007-02-24 Jim Meyering <jim@meyering.net>
6060 * m4/regex.m4: Update the description of the configure-time option,
6061 --without-included-regex, to state accurately what the defaults are,
6062 and perhaps to give people an idea why using this option is risky.
6064 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
6066 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
6067 loops on small arguments. This attempts to avoid the problem
6068 Bruno Haible reported for AIX 4.3.2 in
6069 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
6071 2007-02-23 Bruno Haible <bruno@clisp.org>
6073 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
6074 Needed for help2man.
6076 2007-02-23 Karl Berry <karl@gnu.org>
6078 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
6079 exists, foo.h should be cvs-ignored, not committed.
6081 2007-02-23 Eric Blake <ebb9@byu.net>
6083 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
6084 * lib/stat-time.h (includes): Likewise.
6085 * lib/utimecmp.c (includes): Likewise.
6086 * lib/utimens.h (includes): Likewise.
6087 * lib/getdate.y (includes): Also include "timespec.h" for use
6088 internal to the module.
6089 * modules/utimens (Depends-on): Revert yesterday's patch.
6090 * modules/nanosleep (Depends-on): Add missing dependency.
6092 2007-02-22 Bruno Haible <bruno@clisp.org>
6094 * lib/glob.c: Don't include getlogin_r.h.
6096 2007-02-22 Jim Meyering <jim@meyering.net>
6098 * modules/utimens (Depends-on): Add timespec, required for
6099 utimens.h's inclusion of timespec.h.
6101 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
6103 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
6104 long unreadable paths in GNU/Linux. Problem reported by Andreas
6106 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
6107 I'll try to think of a better way to fix the Solaris problem.
6109 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
6110 like glibc; on Solaris 10, it fails with errno == EINVAL.
6111 POSIX says the behavior is unspecified if the first argument is NULL,
6112 so play it safe and never pass NULL to the system getcwd.
6114 2007-02-21 Jim Meyering <jim@meyering.net>
6116 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
6117 of gettimeofday. It would conflict with the one now always
6118 provided via sys_time_.h. Reported by Matthew Woehlke, as
6119 an IRIX 6.5 build failure.
6121 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
6123 Minor fixups to port to Solaris 10 with Sun C 5.8.
6124 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
6125 * modules/getcwd (Depends-on): Add dirfd.
6126 * lib/putenv.c (putenv): #undef it.
6127 (rpl_putenv): New decl.
6128 (malloc, free): Include <stdlib.h> rather than prototyping separately.
6130 2007-02-20 Bruno Haible <bruno@clisp.org>
6132 * modules/stdio-tests: New file.
6133 * tests/test-stdio.c: New file.
6135 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
6136 (Depends-on): Add stdio.
6137 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6138 (Include): Use <stdio.h> instead of vsnprintf.h.
6139 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6140 HAVE_DECL_VSNPRINTF.
6141 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
6143 * modules/snprintf (Files): Remove lib/snprintf.h.
6144 (Depends-on): Add stdio.
6145 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6146 (Include): Use <stdio.h> instead of snprintf.h.
6147 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6149 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
6150 * lib/getaddrinfo.c: Likewise.
6152 * modules/stdio: New file.
6153 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
6154 * lib/snprintf.h: Remove file.
6155 * lib/vsnprintf.h: Remove file.
6156 * lib/.cppi-disable: Remove snprintf.h.
6157 * m4/stdio_h.m4: New file.
6158 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
6160 2007-02-20 Jim Meyering <jim@meyering.net>
6162 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
6163 used by e.g., mingw. From Bruno Haible.
6165 2007-02-19 Bruno Haible <bruno@clisp.org>
6167 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
6169 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6171 2007-02-19 Bruno Haible <bruno@clisp.org>
6173 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
6176 2007-02-19 Bruno Haible <bruno@clisp.org>
6178 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
6180 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
6182 2007-02-19 Jim Meyering <jim@meyering.net>
6184 Don't use FD after a successful "fdopendir (fd)".
6185 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
6186 Reset it by calling dirfd on the just-obtained DIR*.
6188 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
6189 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
6191 2007-02-18 Bruno Haible <bruno@clisp.org>
6193 * lib/readlink.c: Include <unistd.h>.
6194 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
6196 * modules/readlink (Depends-on): Add unistd.
6197 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6198 (Include): Add <unistd.h>.
6200 * lib/getlogin_r.h: Remove file.
6201 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
6202 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
6203 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
6204 HAVE_DECL_GETLOGIN_R.
6205 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
6206 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6207 (Include): Use <unistd.h> instead of getlogin_r.h.
6209 * lib/getcwd.h: Remove file.
6210 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
6211 * lib/xgetcwd.c: Likewise.
6212 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
6213 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
6214 * modules/getcwd (Files): Remove lib/getcwd.h.
6215 (Depends-on): Add unistd.
6216 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6217 (Include): Use <unistd.h> instad of getcwd.h.
6219 * lib/ftruncate.c: Include <unistd.h> first.
6220 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
6222 * modules/ftruncate (Depends-on): Add unistd.
6223 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6225 * lib/fchdir.c: Include <unistd.h> first.
6226 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
6227 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
6228 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
6229 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6230 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
6232 * lib/dup2.c: Include <unistd.h> first.
6233 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
6235 * modules/dup2 (Depends-on): Add unistd.
6236 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6238 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
6239 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
6240 REPLACE_CHOWN. Don't define chown as a macro here.
6241 * modules/chown (Depends-on): Add unistd.
6242 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6244 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
6245 Add definition for GL_LINK_WARNING.
6246 (chown, dup2): New declarations.
6247 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
6249 (ftruncate): New declaration.
6250 (getcwd): New declaration, taken from old getcwd.h.
6251 (getlogin_r): New declaration, taken from old getlogin_r.h.
6252 (readlink): New declaration.
6253 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
6254 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
6255 (gl_PREREQ_UNISTD): Remove macro.
6256 (gl_UNISTD_MODULE_INDICATOR): New macro.
6257 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
6258 many new variables. Don't set UNISTD_H.
6259 * modules/unistd (Description): Change.
6260 (Depends-on): Add link-warning.
6261 (configure.ac): Update.
6262 (Makefile.am): Create unistd.h always. Substitute many new variables
6265 2007-02-18 Bruno Haible <bruno@clisp.org>
6267 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
6268 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
6270 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
6271 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
6272 * lib/getsubopt.h: Remove file.
6273 * modules/getsubopt (Files): Remove lib/getsubopt.h.
6274 (Depends-on): Add stdlib.
6275 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6276 (Includes): Use <stdlib.h> instead of getsubopt.h.
6277 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
6279 * lib/getsubopt.c: Don't include getsubopt.h.
6281 2007-02-18 Bruno Haible <bruno@clisp.org>
6283 * modules/fchdir (Depends-on): Add dup2.
6285 2007-02-18 Bruno Haible <bruno@clisp.org>
6287 * lib/stdlib_.h: Handle glibc's special invocation convention
6290 2007-02-18 Bruno Haible <bruno@clisp.org>
6292 * modules/stdlib-tests: New file.
6293 * tests/test-stdlib.c: New file.
6295 * modules/mkstemp (Files): Remove lib/mkstemp.h.
6296 (Depends-on): Add stdlib.
6297 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6298 (Includes): Use <stdlib.h> instead of mkstemp.h.
6299 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6300 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
6301 * lib/mkstemp.c: Don't include mkstemp.h.
6302 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
6303 * lib/stdlib--.h: Don't include mkstemp.h.
6305 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
6306 (Depends-on): Add stdlib.
6307 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6308 (Includes): Use <stdlib.h> instead of mkdtemp.h.
6309 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6311 * lib/mkdtemp.c: Don't include mkdtemp.h.
6312 * lib/clean-temp.c: Don't include mkdtemp.h.
6314 * modules/exit (Files): Remove lib/exit.h.
6315 (Depends-on): Add stdlib.
6316 (Makefile.am): Remove lib_SOURCES.
6317 (Include): Use <stdlib.h> instead of exit.h.
6318 * lib/argmatch.c: Don't include exit.h.
6319 * lib/execute.c: Likewise.
6320 * lib/pagealign_alloc.c: Likewise.
6321 * lib/pipe.c: Likewise.
6322 * lib/wait-process.c: Likewise.
6323 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
6324 * lib/exitfail.c: Likewise.
6325 * lib/savewd.c: Likewise.
6326 * lib/xsetenv.c: Likewise.
6328 * modules/stdlib: New file.
6329 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
6330 and extra comments about mkstemp().
6331 * lib/exit.h: Remove file.
6332 * lib/mkdtemp.h: Remove file.
6333 * lib/mkstemp.h: Remove file.
6334 * m4/stdlib_h.m4: New file.
6335 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
6337 2007-02-18 Bruno Haible <bruno@clisp.org>
6339 * modules/math-tests: New file.
6340 * tests/test-math.c: New file.
6342 * modules/math: New file.
6343 * modules/mathl (Files): Remove lib/mathl.h.
6344 (Depends-on): Add math.
6345 (Makefile.am): Don't mention mathl.h.
6346 (Include): Use <math.h> instead of mathl.h.
6347 * lib/math_.h: New file.
6348 * lib/mathl.h: Remove file.
6349 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
6351 * lib/asinl.c: Likewise.
6352 * lib/atanl.c: Likewise.
6353 * lib/ceill.c: Likewise.
6354 * lib/cosl.c: Likewise.
6355 * lib/expl.c: Likewise.
6356 * lib/floorl.c: Likewise.
6357 * lib/frexpl.c: Likewise.
6358 * lib/ldexpl.c: Likewise.
6359 * lib/logl.c: Likewise.
6360 * lib/sincosl.c: Likewise.
6361 * lib/sinl.c: Likewise.
6362 * lib/sqrtl.c: Likewise.
6363 * lib/tanl.c: Likewise.
6364 * lib/trigl.c: Likewise.
6365 * m4/math_h.m4: New file.
6366 * MODULES.html.sh (Mathematics): Add math.
6368 2007-02-17 Bruno Haible <bruno@clisp.org>
6370 * modules/wctype-tests: New file.
6371 * tests/test-wctype.c: New file.
6373 * modules/wchar-tests: New file.
6374 * tests/test-wchar.c: New file.
6376 * modules/unistd-tests: New file.
6377 * tests/test-unistd.c: New file.
6379 * modules/time-tests: New file.
6380 * tests/test-time.c: New file.
6382 * modules/sysexits-tests: New file.
6383 * tests/test-sysexits.c: New file.
6385 * modules/sys_time-tests: New file.
6386 * tests/test-sys_time.c: New file.
6388 * modules/sys_stat-tests: New file.
6389 * tests/test-sys_stat.c: New file.
6391 * modules/sys_socket-tests: New file.
6392 * tests/test-sys_socket.c: New file.
6394 * modules/sys_select-tests: New file.
6395 * tests/test-sys_select.c: New file.
6397 * modules/string-tests: New file.
6398 * tests/test-string.c: New file.
6400 * modules/stdbool-tests: New file.
6401 * tests/test-stdbool.c: New file.
6403 * modules/netinet_in-tests: New file.
6404 * tests/test-netinet_in.c: New file.
6406 * modules/inttypes-tests: New file.
6407 * tests/test-inttypes.c: New file.
6409 * modules/fcntl-tests: New file.
6410 * tests/test-fcntl.c: New file.
6412 * modules/byteswap-tests: New file.
6413 * tests/test-byteswap.c: New file.
6415 * modules/arpa_inet-tests: New file.
6416 * tests/test-arpa_inet.c: New file.
6418 2007-02-17 Bruno Haible <bruno@clisp.org>
6420 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
6421 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
6422 if the corresponding module is not enabled. Emit link warnings if
6423 the function is used nevertheless.
6424 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
6425 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
6426 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
6427 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
6428 * modules/inttypes (Depends-on): Add link-warning.
6429 (Makefile.am): Copy the contents of build-aux/link-warning.h into
6430 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
6431 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
6432 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
6433 * modules/imaxdiv (configure.ac): Likewise.
6434 * modules/strtoimax (configure.ac): Likewise.
6435 * modules/strtoumax (configure.ac): Likewise.
6437 2007-02-17 Bruno Haible <bruno@clisp.org>
6439 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
6440 gl_STRING_MODULE_INDICATOR_DEFAULTS.
6441 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
6442 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
6444 2007-02-17 Bruno Haible <bruno@clisp.org>
6446 * modules/link-warning: New file.
6447 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
6448 * lib/string_.h (GL_LINK_WARNING): Remove definition.
6449 * modules/string (Depends-on): Add link-warning.
6450 (Makefile.am): Copy the contents of build-aux/link-warning.h into
6452 * MODULES.html.sh (Support for building libraries and executables): Add
6455 2007-02-17 Bruno Haible <bruno@clisp.org>
6457 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
6458 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
6459 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
6462 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
6463 Bruno Haible <bruno@clisp.org>
6465 * modules/tmpfile: New file.
6466 * lib/tmpfile.c: New file.
6467 * m4/tmpfile.m4: New file.
6468 * MODULES.html.sh (func_all_modules): New section "Input/output".
6470 2007-02-15 Bruno Haible <bruno@clisp.org>
6472 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
6473 (supports_delete_on_close): New function.
6474 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
6476 2007-02-14 Bruno Haible <bruno@clisp.org>
6478 * modules/mbspcasecmp-tests: New file.
6479 * tests/test-mbspcasecmp.sh: New file.
6480 * tests/test-mbspcasecmp.c: New file.
6482 New module mbspcasecmp.
6483 * modules/mbspcasecmp: New file.
6484 * lib/mbspcasecmp.c: New file.
6485 * lib/string_.h (strncasecmp): Change warning message.
6486 (mbspcasecmp): New declaration.
6487 * m4/mbspcasecmp.m4: New file.
6488 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6490 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
6491 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
6493 2007-02-14 Bruno Haible <bruno@clisp.org>
6495 * modules/mbsncasecmp-tests: New file.
6496 * tests/test-mbsncasecmp.sh: New file.
6497 * tests/test-mbsncasecmp.c: New file.
6499 New module mbsncasecmp.
6500 * modules/mbsncasecmp: New file.
6501 * lib/mbsncasecmp.c: New file.
6502 * lib/string_.h (mbsncasecmp): New declaration.
6503 * m4/mbsncasecmp.m4: New file.
6504 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6506 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
6507 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
6509 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
6511 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
6512 Verify that it doesn't overlap with our flags.
6513 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
6514 do not have the desired effect in multibyte locales; instead, use
6516 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
6517 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
6518 we don't require GNU fnmatch ourselves (if our users require it, they
6519 should do so explicitly).
6521 Fix regex code so it doesn't rely on strcasecmp.
6522 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
6523 Otherwise, include gnulib's langinfo.h.
6524 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
6525 undesirable behavior in non-C locales. Instead, rely on localecharset.
6526 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
6527 * modules/regex (FILES): Remove m4/codeset.m4.
6528 (Depends-on): Add localcharset. Remove strcase.
6530 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6532 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
6533 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6535 2007-02-13 Bruno Haible <bruno@clisp.org>
6537 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
6538 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6540 2007-02-12 Bruno Haible <bruno@clisp.org>
6542 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6543 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
6544 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
6545 time warning rather than a link error.
6547 2007-02-12 Bruno Haible <bruno@clisp.org>
6549 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
6550 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6551 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6553 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6555 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
6558 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6560 New module 'time', so that apps can include <time.h> as per
6561 POSIX and GNU instead of separate include files like time_r.h
6562 and timegm.h. This implementation tries out a simpler approach
6563 for replacing decls in standard include files (as compared to
6564 the string module), somewhat as an experiment.
6566 * config/srclist.txt: Comment out mktime.c for now.
6567 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
6568 since it doesn't apply any more. Use generic wording instead.
6569 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
6571 * lib/time_.h, m4/time_h.m4, modules/time: New files.
6572 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
6573 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
6574 Don't include <sys/types.h>; no longer needed since we assume C89.
6575 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
6576 * lib/strftime.c: Likewise.
6577 * lib/time_r.c: Likewise.
6578 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
6579 * lib/nanosleep.c: Include <time.h> first, to check interface.
6580 * lib/strptime.c: Likewise.
6581 * lib/time_r.c: Likewise.
6582 * lib/timegm.c: Likewise.
6583 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
6585 * lib/timegm.c: Don't include timegm.h; no longer needed.
6586 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
6587 time.h now handles any problems in that area.
6588 (struct timespec, nanosleep): Remove; time.h now arranges for these.
6589 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
6590 that time.h defines struct timespec.
6591 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
6592 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
6594 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
6595 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
6596 needed. Set REPLACE_LOCALTIME.
6597 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
6598 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
6599 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
6600 nanosleep; time_h.m4 now does that. Don't require
6601 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
6602 module handles this now.
6603 * modules/getdate (Depends-on): Remove timespec. Add time.
6604 * modules/nanosleep (Depends-on): Likewise.
6605 * modules/stat-time (Depends-on): Likewise.
6606 * modules/nanosleep (Include): Include time.h, not timespec.h.
6607 * modules/strptime (Files): Remove lib/strptime.h.
6608 (Depends-on): Add extensions, time.
6609 (Include): Include time.h, not strptime.h.
6610 * modules/time_r (Files): Remove lib/time_r.h.
6611 (Depends-on): Add time.
6612 (Include): Include time.h, not time_r.h.
6613 * modules/timegm: Likewise.
6614 * modules/timespec (Description): Now does timespec-related decls
6615 of our own, instead of struct timespec itself.
6616 (Depends-on): Add time; remove extensions.
6617 (Maintainer): Add self.
6618 * modules/utimecmp (Depends-on): Add time; remove timespec.
6619 * modules/utimens (Depends-on): Likewise.
6620 * modules/xnanosleep (Depends-on): Likewise.
6622 2007-02-11 Bruno Haible <bruno@clisp.org>
6624 * lib/c-strstr.c: Include allocsa.h.
6625 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6626 * lib/c-strcasestr.c: Include allocsa.h.
6627 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6628 * lib/strcasestr.c: Include allocsa.h.
6629 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6630 * lib/mbsstr.c: Include allocsa.h.
6631 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6632 allocsa/freesa instead of malloc/free.
6633 * lib/mbscasestr.c: Include allocsa.h.
6634 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6635 allocsa/freesa instead of malloc/free.
6636 * modules/c-strstr (Depends-on): Add allocsa.
6637 * modules/c-strcasestr (Depends-on): Likewise.
6638 * modules/strcasestr (Depends-on): Likewise.
6639 * modules/mbsstr (Depends-on): Likewise.
6640 * modules/mbscasestr (Depends-on): Likewise.
6642 2007-02-11 Bruno Haible <bruno@clisp.org>
6644 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
6646 * modules/mbsspn-tests: New file.
6647 * tests/test-mbsspn.sh: New file.
6648 * tests/test-mbsspn.c: New file.
6650 2007-02-11 Bruno Haible <bruno@clisp.org>
6652 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
6654 * modules/mbspbrk-tests: New file.
6655 * tests/test-mbspbrk.sh: New file.
6656 * tests/test-mbspbrk.c: New file.
6658 2007-02-11 Bruno Haible <bruno@clisp.org>
6660 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
6663 * modules/mbscspn-tests: New file.
6664 * tests/test-mbscspn.sh: New file.
6665 * tests/test-mbscspn.c: New file.
6667 2007-02-11 Bruno Haible <bruno@clisp.org>
6669 * modules/mbscasecmp-tests: New file.
6670 * tests/test-mbscasecmp.sh: New file.
6671 * tests/test-mbscasecmp.c: New file.
6673 2007-02-11 Bruno Haible <bruno@clisp.org>
6675 Ensure O(n) worst-case complexity of mbscasestr.
6676 * lib/mbscasestr.c: Include stdbool.h.
6677 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6679 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
6680 the bookkeeping indicates that it's worth it.
6681 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
6683 * modules/mbscasestr-tests: New file.
6684 * tests/test-mbscasestr1.c: New file.
6685 * tests/test-mbscasestr2.sh: New file.
6686 * tests/test-mbscasestr2.c: New file.
6687 * tests/test-mbscasestr3.sh: New file.
6688 * tests/test-mbscasestr3.c: New file.
6689 * tests/test-mbscasestr4.sh: New file.
6690 * tests/test-mbscasestr4.c: New file.
6691 * m4/locale-tr.m4: New file.
6693 2007-02-11 Bruno Haible <bruno@clisp.org>
6695 Ensure O(n) worst-case complexity of mbsstr.
6696 * lib/mbsstr.c: Include stdbool.h.
6697 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6699 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
6700 bookkeeping indicates that it's worth it.
6701 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
6703 * modules/mbsstr-tests: New file.
6704 * tests/test-mbsstr1.c: New file.
6705 * tests/test-mbsstr2.sh: New file.
6706 * tests/test-mbsstr2.c: New file.
6707 * tests/test-mbsstr3.sh: New file.
6708 * tests/test-mbsstr3.c: New file.
6709 * m4/locale-fr.m4: New file.
6711 2007-02-11 Bruno Haible <bruno@clisp.org>
6713 * lib/mbsrchr.c (mbsrchr): Fix bug.
6715 * modules/mbsrchr-tests: New file.
6716 * tests/test-mbsrchr.sh: New file.
6717 * tests/test-mbsrchr.c: New file.
6719 2007-02-11 Bruno Haible <bruno@clisp.org>
6721 * lib/mbschr.c (mbschr): Fix bug.
6723 * modules/mbschr-tests: New file.
6724 * tests/test-mbschr.sh: New file.
6725 * tests/test-mbschr.c: New file.
6726 * m4/locale-zh.m4: New file.
6728 2007-02-11 Bruno Haible <bruno@clisp.org>
6730 Support for copying multibyte string iterators.
6731 * lib/mbiter.h: Include <string.h>.
6732 (mbiter_multi_copy): New function.
6733 (mbi_copy): New macro.
6734 * lib/mbuiter.h: Include <string.h>.
6735 (mbuiter_multi_copy): New function.
6736 (mbui_copy): New macro.
6738 2007-02-11 Bruno Haible <bruno@clisp.org>
6741 * modules/mbslen: New file.
6742 * lib/mbslen.c: New file.
6743 * lib/string_.h (mbslen): New declaration.
6744 * m4/mbslen.m4: New file.
6745 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6747 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6748 * MODULES.html.sh (Internationalization functions): Add mbslen.
6750 2007-02-11 Bruno Haible <bruno@clisp.org>
6752 Ensure O(n) worst-case complexity of strcasestr substitute.
6753 * lib/strcasestr.c: Include stdbool.h.
6754 (knuth_morris_pratt): New function.
6755 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6756 bookkeeping indicates that it's worth it.
6757 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6759 * modules/strcasestr-tests: New file.
6760 * tests/test-strcasestr.c: New file.
6762 2007-02-11 Bruno Haible <bruno@clisp.org>
6764 Ensure O(n) worst-case complexity of c_strcasestr.
6765 * lib/c-strcasestr.c: Include stdbool.h, string.h.
6766 (knuth_morris_pratt): New function.
6767 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6768 the bookkeeping indicates that it's worth it.
6769 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6771 * modules/c-strcasestr-tests: New file.
6772 * tests/test-c-strcasestr.c: New file.
6774 2007-02-11 Bruno Haible <bruno@clisp.org>
6776 Ensure O(n) worst-case complexity of c_strstr.
6777 * lib/c-strstr.c: Include stdbool.h, string.h.
6778 (knuth_morris_pratt): New function.
6779 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6780 bookkeeping indicates that it's worth it.
6781 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
6783 * lib/c-strstr.c: Complete rewrite for maintainability.
6785 * modules/c-strstr-tests: New file.
6786 * tests/test-c-strstr.c: New file.
6788 2007-02-11 Bruno Haible <bruno@clisp.org>
6790 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
6791 5.2.1 and earlier, whereby \055 was treated just like the range
6793 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6795 2007-02-08 Bruno Haible <bruno@clisp.org>
6797 * modules/regex (Depends-on): Add stdbool.
6798 Reported by Dalibor Topic <robilad@kaffe.org>.
6800 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
6802 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
6803 Prefer returning from main to exiting from it.
6804 Remove unnecessary parens after sizeof.
6806 2007-02-05 Bruno Haible <bruno@clisp.org>
6809 * modules/mbssep: New file.
6810 * lib/mbssep.c: New file.
6811 * lib/string_.h (strsep): Add a conditional link warning.
6812 (mbssep): New declaration.
6813 * m4/mbssep.m4: New file.
6814 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6816 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
6817 * MODULES.html.sh (Internationalization functions): Add mbssep.
6819 2007-02-05 Bruno Haible <bruno@clisp.org>
6821 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
6822 Optimize search in case of 1 delimiter.
6824 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6826 * lib/acl.h: Include sys/types.h before sys/acl.h.
6828 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6830 Merge upstream fix for glibc bugzilla #3957:
6832 2007-02-05 Jakub Jelinek <jakub@redhat.com>
6834 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6835 bit for RE_HAT_LISTS_NOT_NEWLINE.
6836 (build_charclass_op): Remove bogus comment.
6838 2007-02-05 Simon Josefsson <simon@josefsson.org>
6840 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
6842 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6844 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
6845 * lib/memmem.c [!defined _LIBC]: Include config.h.
6847 2007-02-04 Bruno Haible <bruno@clisp.org>
6849 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
6852 2007-02-04 Bruno Haible <bruno@clisp.org>
6854 New module mbstok_r.
6855 * modules/mbstok_r: New file.
6856 * lib/mbstok_r.c: New file.
6857 * lib/string_.h (strtok_r): Change argument names to match the
6858 comments. Add a conditional link warning.
6859 (mbstok_r): New declaration.
6860 * m4/mbstok_r.m4: New file.
6861 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6863 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
6864 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
6866 2007-02-04 Bruno Haible <bruno@clisp.org>
6869 * modules/mbsspn: New file.
6870 * lib/mbsspn.c: New file.
6871 * lib/string_.h (strspn): Add a conditional link warning.
6872 (mbsspn): New declaration.
6873 * m4/mbsspn.m4: New file.
6874 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6876 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
6877 * MODULES.html.sh (Internationalization functions): Add mbsspn.
6879 2007-02-04 Bruno Haible <bruno@clisp.org>
6882 * modules/mbspbrk: New file.
6883 * lib/mbspbrk.c: New file.
6884 * lib/string_.h (strpbrk): Add a conditional link warning.
6885 (mbspbrk): New declaration.
6886 * m4/mbspbrk.m4: New file.
6887 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6889 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
6890 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
6892 2007-02-04 Bruno Haible <bruno@clisp.org>
6895 * modules/mbscspn: New file.
6896 * lib/mbscspn.c: New file.
6897 * lib/string_.h (strcspn): Add a conditional link warning.
6898 (mbscspn): New declaration.
6899 * m4/mbscspn.m4: New file.
6900 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6902 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
6903 * MODULES.html.sh (Internationalization functions): Add mbscspn.
6905 2007-02-04 Bruno Haible <bruno@clisp.org>
6907 New module mbscasestr, reduced goal of strcasestr.
6908 * modules/mbscasestr: New file.
6909 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6910 (mbscasestr): Renamed from strcasestr.
6911 * lib/strcasestr.c: Don't include mbuiter.h.
6912 (strcasestr): Remove support for multibyte locales.
6913 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
6914 Change the conditional link warning.
6915 (mbscasestr): New declaration.
6916 * m4/mbscasestr.m4: New file.
6917 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
6918 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
6920 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
6921 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6922 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6923 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
6924 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
6925 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6926 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
6927 (Depends-on): Remove mbuiter.
6928 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
6930 2007-02-04 Bruno Haible <bruno@clisp.org>
6932 Simplify handling of strncasecmp.
6933 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
6934 the conditional link warning.
6935 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6936 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
6937 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
6938 * modules/strcase (configure.ac): Don't invoke
6939 gl_STRING_MODULE_INDICATOR.
6940 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
6942 2007-02-04 Bruno Haible <bruno@clisp.org>
6944 New module mbscasecmp, reduced goal of strcasecmp.
6945 * modules/mbscasecmp: New file.
6946 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
6947 (mbscasecmp): Renamed from strcasecmp.
6948 * lib/strcasecmp.c: Don't include mbuiter.h.
6949 (strcasecmp): Remove support for multibyte locales.
6950 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
6951 Change the conditional link warning.
6952 (mbscasecmp): New declaration.
6953 * m4/mbscasecmp.m4: New file.
6954 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
6955 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
6957 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
6958 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6960 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
6961 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
6962 * modules/strcase (Files): Remove m4/mbrtowc.m4.
6963 (Depends-on): Remove mbuiter.
6964 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
6966 2007-02-04 Bruno Haible <bruno@clisp.org>
6968 New module mbsstr. Remove module strstr.
6969 * modules/mbsstr: New file.
6970 * modules/strstr: Remove file.
6971 * lib/mbsstr.c: Renamed from lib/strstr.c.
6972 (mbsstr): Renamed from strstr.
6973 * lib/string_.h (strstr): Remove declaration. Change the conditional
6975 (mbsstr): New declaration.
6976 * m4/mbsstr.m4: New file.
6977 * m4/strstr.m4: Remove file.
6978 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6980 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
6981 Don't initialize GNULIB_STRSTR.
6982 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
6983 substitute GNULIB_STRSTR and REPLACE_STRSTR.
6984 * MODULES.html.sh (Internationalization functions): Add mbsstr.
6985 (Support for systems lacking ANSI C 89): Remove strstr.
6987 2007-02-04 Bruno Haible <bruno@clisp.org>
6990 * modules/mbsrchr: New file.
6991 * lib/mbsrchr.c: New file.
6992 * lib/string_.h (strrchr): Add a conditional link warning.
6993 (mbsrchr): New declaration.
6994 * m4/mbsrchr.m4: New file.
6995 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6997 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
6998 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
7000 2007-02-04 Bruno Haible <bruno@clisp.org>
7003 * modules/mbschr: New file.
7004 * lib/mbschr.c: New file.
7005 * lib/string_.h (strchr): Add a conditional link warning.
7006 (mbschr): New declaration.
7007 * m4/mbschr.m4: New file.
7008 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7010 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
7011 * MODULES.html.sh (Internationalization functions): Add mbschr.
7013 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
7015 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
7017 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
7019 2007-02-04 Bruno Haible <bruno@clisp.org>
7021 New module description section 'configure.ac-early'.
7022 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
7023 (func_get_autoconf_early_snippet): New function.
7024 (func_import, func_create_testdir): Use it. Remove special cases for
7025 modules 'extensions' and 'lock'.
7026 * modules/extensions (configure.ac-early): Require
7027 gl_USE_SYSTEM_EXTENSIONS.
7028 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
7030 2007-02-04 Bruno Haible <bruno@clisp.org>
7032 Make use of gcj-4.3's -fsource and -ftarget option.
7033 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
7034 and if so try the options -fsource and -ftarget.
7035 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
7036 source_version, ftarget_option, target_version arguments.
7037 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
7038 (is_envjavac_oldgcj_14_14_usable): Renamed from
7039 is_envjavac_gcj_14_14_usable.
7040 (is_envjavac_oldgcj_14_13_usable): Renamed from
7041 is_envjavac_gcj_14_13_usable.
7042 (is_gcj_present): Update.
7043 (is_gcj_43, is_gcj43_usable): New functions.
7044 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
7045 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
7046 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
7047 try the options -fsource and -ftarget.
7049 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
7051 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
7052 checking code. Set N = ceil (1.5 * N) rather than to a slightly
7055 2007-02-03 Jim Meyering <jim@meyering.net>
7057 Give tools a better chance to allocate space for very large buffers.
7058 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
7060 Make pwd and readlink work also when run with an unreadable parent dir
7061 on systems with openat support.
7062 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
7063 provided getcwd function, even when we have openat support.
7064 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
7066 2007-02-02 Bruno Haible <bruno@clisp.org>
7068 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
7069 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
7070 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
7071 portability problems if one of these functions is only used on specific
7073 Reported by Paul Eggert.
7075 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
7077 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
7078 is causing more trouble than it's curing.
7079 * lib/regex_internal.h (__mempcpy): Remove.
7080 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
7081 (and make the code a tad smaller to boot).
7082 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
7084 2007-02-02 Jim Meyering <jim@meyering.net>
7086 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
7087 section, not in the Makefile.am: one.
7089 2007-02-02 Eric Blake <ebb9@byu.net>
7091 * lib/strchrnul.c: Always include config.h first.
7093 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
7094 gnulib strstr is not necessary here.
7096 2007-02-02 Simon Josefsson <simon@josefsson.org>
7098 * m4/socklen.m4: Fix typo.
7100 2007-02-02 Eric Blake <ebb9@byu.net>
7102 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
7103 * modules/netinet_in (Makefile.am): Likewise.
7105 2007-02-01 Bruno Haible <bruno@clisp.org>
7107 * lib/string_.h (GL_LINK_WARNING): New macro.
7108 (strcasecmp, strstr, strcasestr): If provided by the system,
7109 conditionally define as a macro that leads to a warning instead of to
7111 (strncasecmp): Conditionally define as a macro that leads to a warning.
7113 2007-02-01 Karl Berry <karl@gnu.org>
7115 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
7117 2007-02-01 Bruno Haible <bruno@clisp.org>
7119 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
7122 2007-02-01 Eric Blake <ebb9@byu.net>
7124 * modules/regex (Depends-on): Revert dependence on mempcpy.
7125 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
7126 module's definition of mempcpy.
7127 Reported by Paul Eggert.
7129 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
7131 * lib/string_.h: If the gnulib module XYZ is not present, undefine
7132 the symbol XYZ before redefining it. This fixes a problem with
7133 programs that don't use XYZ, when compiled on systems that define
7134 XYZ to something else.
7136 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
7138 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
7139 occurs when "mkdir -m foo" creates a setgid directory that is (1)
7140 writeable to group or other and (2) is intended to have a special
7141 mode bit that is set or cleared. In such a case, the directory
7142 should be neither group- nor other-writeable until the special
7143 mode bits are right.
7145 2007-01-31 Eric Blake <ebb9@byu.net>
7147 * modules/mountlist (Depends-on): Add strstr.
7149 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
7151 * modules/string (Makefile.am): Remove redundant replacement.
7152 * modules/regex (Depends-on): Add mempcpy.
7154 2007-01-31 Bruno Haible <bruno@clisp.org>
7156 New module description field 'Link'.
7157 * gnulib-tool (func_usage): Document --extract-link-directive.
7158 (sed_extract_prog): Recognize 'Link' directive.
7159 (func_get_link_directive): New function.
7160 (func_import): Show summary of link directives.
7161 Handle --extract-link-directive option.
7162 * modules/acl (Link): New section.
7163 * modules/clock-time (Link): New section.
7164 * modules/euidaccess (Link): New section.
7165 * modules/gettext (Link): New section.
7166 * modules/iconv (Link): New section.
7167 * modules/lock (Link): New section.
7168 * modules/nanosleep (Link): New section.
7169 * modules/readline (Link): New section.
7171 2007-01-27 Bruno Haible <bruno@clisp.org>
7173 Enforce the use of gnulib modules for unportable <string.h> functions.
7174 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
7175 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
7176 (gl_HEADER_STRING_H_BODY): Require it.
7177 * lib/string_.h: If the gnulib module XYZ is not present, redefine
7178 the symbol XYZ to one that gives a link error.
7179 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
7180 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
7181 * modules/mempcpy (configure.ac): Likewise.
7182 * modules/memrchr (configure.ac): Likewise.
7183 * modules/stpcpy (configure.ac): Likewise.
7184 * modules/stpncpy (configure.ac): Likewise.
7185 * modules/strcase (configure.ac): Likewise.
7186 * modules/strcasestr (configure.ac): Likewise.
7187 * modules/strchrnul (configure.ac): Likewise.
7188 * modules/strdup (configure.ac): Likewise.
7189 * modules/strndup (configure.ac): Likewise.
7190 * modules/strnlen (configure.ac): Likewise.
7191 * modules/strpbrk (configure.ac): Likewise.
7192 * modules/strsep (configure.ac): Likewise.
7193 * modules/strstr (configure.ac): Likewise.
7194 * modules/strtok_r (configure.ac): Likewise.
7196 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
7198 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
7200 2007-01-30 Jim Meyering <jim@meyering.net>
7202 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
7204 2007-01-29 Bruno Haible <bruno@clisp.org>
7206 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
7207 * lib/execute.c: Likewise.
7208 * lib/pipe.c: Likewise.
7209 * lib/printf-args.h: Likewise.
7210 * lib/printf-args.c: Likewise.
7211 * lib/printf-parse.c: Likewise.
7212 * lib/vasnprintf.c: Likewise.
7214 2007-01-29 Eric Blake <ebb9@byu.net>
7216 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
7219 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
7221 * lib/strptime.h (strptime): Use 'restrict' for args where
7222 POSIX requires this.
7223 * lib/strptime.c (strptime): Likewise.
7224 Change license notice from LGPL to GPL, since gnulib-tool will
7225 change this as needed.
7226 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
7228 Include "strptime.h" first, to check interface.
7229 Do not #undef _LIBC and _NL_CURRENT.
7230 Do not include <stdlib.h>; no longer needed.
7231 Include "time_r.h" and declare ptime_locale_status
7232 only if _LIBC is not defined.
7233 (__P): Remove unused macro.
7234 (match_string): Bring back glibc version, but use it only if _LIBC
7236 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
7237 Remove unnecessary assertion and abort() call.
7238 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
7239 * m4/strptime.m4: Fix serial number comment.
7240 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
7241 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
7242 (Depends-on): Add time_r.
7244 2007-01-29 Bruno Haible <bruno@clisp.org>
7246 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7248 * modules/strptime (Depends-on): Add stdbool.
7249 * lib/strptime.h: Include <time.h> always. Add comments.
7251 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
7253 * modules/strptime: New file.
7254 * lib/strptime.h: New file.
7255 * lib/strptime.c: New file.
7256 * m4/strptime.m4: New file.
7258 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
7260 * MODULES.html.sh: New module mpsort.
7261 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
7263 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
7264 a circularity problem with HP-UX ia64 reported by Bob Proulx in
7265 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
7267 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
7269 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
7271 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
7272 the parameter matches the prototype.
7274 2007-01-28 Jim Meyering <jim@meyering.net>
7276 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
7277 sys/time.h here, reverting that part of the previous patch:
7278 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
7280 2007-01-28 Bruno Haible <bruno@clisp.org>
7282 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
7283 value of $(SYS_TIME_H).
7284 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
7285 remove it conditionally, too. [added by Jim Meyering]
7286 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
7287 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7288 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
7289 GETTIMEOFDAY_REPLACEMENT to 1.
7291 2007-01-28 Bruno Haible <bruno@clisp.org>
7293 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
7294 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
7295 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
7296 Set UNISTD_H instead of UNISTD_H2.
7297 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
7299 2007-01-28 Bruno Haible <bruno@clisp.org>
7301 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
7302 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
7304 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7306 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
7307 (func_create_testdir): Ensure C locale for `grep' and `tr'
7309 (func_create_megatestdir): Avoid one `grep'. Fix bug in
7310 ACLOCAL_AMFLAGS parsing state machine.
7312 2007-01-27 Bruno Haible <bruno@clisp.org>
7314 * modules/unistr/base: Update.
7316 2007-01-27 Bruno Haible <bruno@clisp.org>
7318 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
7319 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
7320 * modules/unistr/u32-mbtouc-unsafe: Renamed from
7321 modules/unistr/u32-mbtouc.
7322 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
7323 * lib/unistr.h: Update.
7324 * lib/linebreak.c: Update.
7325 * modules/unistr/u32-mbtouc: Renamed from
7326 modules/unistr/u32-mbtouc-safe.
7327 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
7328 * lib/unistr.h: Update.
7329 * lib/unistr/u32-to-u8.c: Update.
7330 * lib/unistr/u32-to-u16.c: Update.
7332 2007-01-27 Bruno Haible <bruno@clisp.org>
7334 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
7335 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
7336 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
7337 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
7338 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
7339 * modules/unistr/u16-mbtouc-unsafe: Renamed from
7340 modules/unistr/u16-mbtouc.
7341 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
7342 * lib/unistr.h: Update.
7343 * lib/linebreak.c: Update.
7344 * modules/linebreak: Update.
7345 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
7346 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
7347 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
7348 * modules/unistr/u16-mbtouc: Renamed from
7349 modules/unistr/u16-mbtouc-safe.
7350 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
7351 * lib/unistr.h: Update.
7352 * lib/unistr/u16-to-u8.c: Update.
7353 * modules/unistr/u16-to-u8: Update.
7354 * lib/unistr/u16-to-u32.c: Update.
7355 * modules/unistr/u16-to-u32: Update.
7357 2007-01-27 Bruno Haible <bruno@clisp.org>
7359 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
7360 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
7361 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
7362 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
7363 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
7364 * modules/unistr/u8-mbtouc-unsafe: Renamed from
7365 modules/unistr/u8-mbtouc.
7366 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
7367 * lib/unistr.h: Update.
7368 * lib/striconveh.c: Update.
7369 * modules/striconveh: Update.
7370 * lib/linebreak.c: Update.
7371 * modules/linebreak: Update.
7372 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
7373 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
7374 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
7375 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
7376 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
7377 * lib/unistr.h: Update.
7378 * lib/striconveh.c: Update.
7379 * modules/striconveh: Update.
7380 * lib/unistr/u8-to-u16.c: Update.
7381 * modules/unistr/u8-to-u16: Update.
7382 * lib/unistr/u8-to-u32.c: Update.
7383 * modules/unistr/u8-to-u32: Update.
7385 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7388 * lib/argz.c: Do not include strings.h nor memory.h, include
7389 string.h unconditionally. Patch by Simon Josefsson.
7391 2007-01-27 Bruno Haible <bruno@clisp.org>
7393 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
7394 from gl_HEADER_STRING_H_BODY.
7395 (gl_HEADER_STRING_H_BODY): Require it.
7396 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
7397 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7398 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7399 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7400 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7401 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
7402 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7403 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7404 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
7405 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7406 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7407 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
7408 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7409 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7410 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7412 2007-01-27 Bruno Haible <bruno@clisp.org>
7414 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
7415 check_PROGRAMS into noinst_PROGRAMS.
7416 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
7417 check_PROGRAMS in this case.
7418 (func_import): Set for_test to false.
7419 (func_create_testdir): Set for_test to true.
7421 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7422 Bruno Haible <bruno@clisp.org>
7424 * modules/strcasestr (Files): Remove lib/strcasestr.h.
7425 (Depends-on): Add string.
7426 (Includes): Use <string.h> instead of strcasestr.h.
7427 * modules/string (Makefile.am): Also substitute the value of
7429 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
7430 assume strcasestr is declared in <string.h> not <strings.h>. Also
7431 set REPLACE_STRCASESTR.
7432 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
7434 * lib/strcasestr.h: Remove file.
7435 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
7436 * lib/string_.h (strcasestr): New declaration.
7438 2007-01-27 Bruno Haible <bruno@clisp.org>
7440 * lib/string_.h: Use 'extern'.
7442 2007-01-27 Jim Meyering <jim@meyering.net>
7444 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
7445 of set-but-not-used local, "q".
7447 * lib/mempcpy.c: Include <config.h> before <string.h>.
7448 This fixes a compilation error on HP-UX, due to the system's
7449 "restrict"-using mempcpy prototype.
7451 2007-01-26 Bruno Haible <bruno@clisp.org>
7454 * lib/javacomp.c: Include c-strstr.h.
7455 (is_envjavac_gcj): Use c_strstr instead of strstr.
7456 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
7458 2007-01-26 Bruno Haible <bruno@clisp.org>
7460 * MODULES.html.sh (Unicode string functions): Add the new modules.
7462 * modules/uniconv/u32-strconv-to-locale: New file.
7463 * lib/uniconv/u32-strconv-to-locale.c: New file.
7465 * modules/uniconv/u16-strconv-to-locale: New file.
7466 * lib/uniconv/u16-strconv-to-locale.c: New file.
7468 * modules/uniconv/u8-strconv-to-locale: New file.
7469 * lib/uniconv/u8-strconv-to-locale.c: New file.
7471 * modules/uniconv/u32-strconv-from-locale: New file.
7472 * lib/uniconv/u32-strconv-from-locale.c: New file.
7474 * modules/uniconv/u16-strconv-from-locale: New file.
7475 * lib/uniconv/u16-strconv-from-locale.c: New file.
7477 * modules/uniconv/u8-strconv-from-locale: New file.
7478 * lib/uniconv/u8-strconv-from-locale.c: New file.
7480 * modules/uniconv/u32-strconv-to-enc: New file.
7481 * lib/uniconv/u32-strconv-to-enc.c: New file.
7482 * modules/uniconv/u32-strconv-to-enc-tests: New file.
7483 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
7485 * modules/uniconv/u16-strconv-to-enc: New file.
7486 * lib/uniconv/u16-strconv-to-enc.c: New file.
7487 * lib/uniconv/u-strconv-to-enc.h: New file.
7488 * modules/uniconv/u16-strconv-to-enc-tests: New file.
7489 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
7491 * modules/uniconv/u8-strconv-to-enc: New file.
7492 * lib/uniconv/u8-strconv-to-enc.c: New file.
7493 * modules/uniconv/u8-strconv-to-enc-tests: New file.
7494 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
7496 * modules/uniconv/u32-strconv-from-enc: New file.
7497 * lib/uniconv/u32-strconv-from-enc.c: New file.
7498 * modules/uniconv/u32-strconv-from-enc-tests: New file.
7499 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
7501 * modules/uniconv/u16-strconv-from-enc: New file.
7502 * lib/uniconv/u16-strconv-from-enc.c: New file.
7503 * modules/uniconv/u16-strconv-from-enc-tests: New file.
7504 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
7506 * modules/uniconv/u8-strconv-from-enc: New file.
7507 * lib/uniconv/u8-strconv-from-enc.c: New file.
7508 * lib/uniconv/u-strconv-from-enc.h: New file.
7509 * modules/uniconv/u8-strconv-from-enc-tests: New file.
7510 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
7512 * modules/uniconv/u32-conv-from-enc: New file.
7513 * lib/uniconv/u32-conv-from-enc.c: New file.
7514 * modules/uniconv/u32-conv-from-enc-tests: New file.
7515 * tests/uniconv/test-u32-conv-from-enc.c: New file.
7517 * modules/uniconv/u16-conv-from-enc: New file.
7518 * lib/uniconv/u16-conv-from-enc.c: New file.
7519 * lib/uniconv/u-conv-from-enc.h: New file.
7520 * modules/uniconv/u16-conv-from-enc-tests: New file.
7521 * tests/uniconv/test-u16-conv-from-enc.c: New file.
7523 * modules/uniconv/u8-conv-from-enc: New file.
7524 * lib/uniconv/u8-conv-from-enc.c: New file.
7525 * modules/uniconv/u8-conv-from-enc-tests: New file.
7526 * tests/uniconv/test-u8-conv-from-enc.c: New file.
7528 * modules/uniconv/base: New file.
7529 * lib/uniconv.h: New file.
7531 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
7533 * doc/gnulib-tool.texi (Initial import): Update to match current
7534 behavior with strdup module.
7535 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
7536 * lib/memmem.h: Remove; all uses removed. This is now done
7538 * lib/mempcpy.h: Likewise.
7539 * lib/memrchr.h: Likewise.
7540 * lib/stpcpy.h: Likewise.
7541 * lib/stpncpy.h: Likewise.
7542 * lib/strcase.h: Likewise.
7543 * lib/strchrnul.h: Likewise.
7544 * lib/strdup.h: Likewise.
7545 * lib/strndup.h: Likewise.
7546 * lib/strnlen.h: Likewise.
7547 * lib/strpbrk.h: Likewise.
7548 * lib/strsep.h: Likewise.
7549 * lib/strstr.h: Likewise.
7550 * lib/strtok_r.h: Likewise.
7551 * lib/string_.h: New file.
7552 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
7553 Rely on <string.h> instead.
7554 * lib/canon-host.c: Likewise.
7555 * lib/chdir-long.c: Likewise.
7556 * lib/concatpath.c: Likewise.
7557 * lib/exclude.c: Likewise.
7558 * lib/fchdir.c: Likewise.
7559 * lib/getaddrinfo.c: Likewise.
7560 * lib/getcwd.c: Likewise.
7561 * lib/getsubopt.c: Likewise.
7562 * lib/glob.c: Likewise.
7563 * lib/hard-locale.c: Likewise.
7564 * lib/iconvme.c: Likewise.
7565 * lib/javacomp.c: Likewise.
7566 * lib/mempcpy.c: Likewise.
7567 * lib/memrchr.c: Likewise.
7568 * lib/regex_internal.h: Likewise.
7569 * lib/stpncpy.c: Likewise.
7570 * lib/strcasecmp.c: Likewise.
7571 * lib/strchrnul.c: Likewise.
7572 * lib/strdup.c: Likewise.
7573 * lib/striconv.c: Likewise.
7574 * lib/striconveh.c: Likewise.
7575 * lib/striconveha.c: Likewise.
7576 * lib/strncasecmp.c: Likewise.
7577 * lib/strndup.c: Likewise.
7578 * lib/strnlen.c: Likewise.
7579 * lib/strsep.c: Likewise.
7580 * lib/strstr.c: Likewise.
7581 * lib/strtok_r.c: Likewise.
7582 * lib/userspec.c: Likewise.
7583 * lib/w32spawn.h: Likewise.
7584 * lib/xstrndup.c: Likewise.
7585 * lib/mountlist.c (strstr): Remove decl.
7586 * m4/string_h.m4: New file.
7587 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
7588 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
7589 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
7590 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
7591 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
7592 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
7593 Set REPLACE_STRCASECMP if necessary.
7594 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
7595 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
7596 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
7597 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
7598 HAVE_DECL_STRDUP if necessary.
7599 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
7600 since gl_FUNC_STRNDUP does that now.
7601 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
7602 Check for decl here...
7603 (gl_PREREQ_STRNLEN): ... not here.
7604 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
7605 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
7606 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
7607 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
7609 * modules/string: New file.
7610 * modules/memmem (Files): Remove special-purpose include file.
7611 (Depends-on): Add string.
7612 (Include): Include <string.h>, not the removed file.
7613 * modules/mempcpy: Likewise.
7614 * modules/memrchr: Likewise.
7615 * modules/stpcpy: Likewise.
7616 * modules/stpncpy: Likewise.
7617 * modules/strcase: Likewise.
7618 * modules/strchrnul: Likewise.
7619 * modules/strdup: Likewise.
7620 * modules/strndup: Likewise.
7621 * modules/strnlen: Likewise.
7622 * modules/strpbrk: Likewise.
7623 * modules/strsep: Likewise.
7624 * modules/strstr: Likewise.
7625 * modules/strtok_r: Likewise.
7626 * tests/test-dirname.c: Don't include "strdup.h", since
7627 <string.h> now suffices.
7628 * tests/test-memmem.c: Don't include "memmem.h", since
7629 <string.h> now suffices.
7631 2007-01-25 Bruno Haible <bruno@clisp.org>
7633 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
7636 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
7637 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
7638 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
7639 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
7641 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
7642 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
7643 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
7644 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
7645 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
7646 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
7648 2007-01-24 Bruno Haible <bruno@clisp.org>
7650 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
7651 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
7652 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
7653 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
7655 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
7656 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
7657 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7658 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
7659 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
7660 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
7662 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
7664 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
7665 Reported by Ralf Wildenhues.
7667 2007-01-24 Bruno Haible <bruno@clisp.org>
7669 Drop AC_REQUIRE calls that are redundant with the module dependencies.
7670 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
7672 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
7673 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
7674 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
7676 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
7678 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
7679 Don't use 'exit'; just return from 'main'.
7680 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
7682 * lib/fnmatch_.h: Readjust white space and comments to match
7683 glibc, to avoid spurious diffs.
7685 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7687 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
7688 2004-12-01 change by Jakub Jelinek, since this code won't compile
7689 if !LIBC. Problem reported by Bob Proulx.
7691 2007-01-23 Bruno Haible <bruno@clisp.org>
7693 * lib/striconveh.c: Include c-strcaseeq.h.
7694 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
7695 * modules/striconveh (Depends-on): Add c-strcaseeq.
7697 2007-01-23 Bruno Haible <bruno@clisp.org>
7699 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
7701 * modules/c-strcaseeq: New file.
7702 * lib/c-strcaseeq.h: New file.
7704 * modules/streq: New file.
7705 * lib/streq.h: New file.
7707 2007-01-23 Bruno Haible <bruno@clisp.org>
7709 * modules/striconveha-tests: New file.
7710 * tests/test-striconveha.c: New file.
7712 * lib/striconveha.h: Include <stdbool.h>.
7713 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7714 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7715 (mem_iconveha_notranslit): Renamed from mem_iconveha.
7716 (mem_iconveha): New function.
7717 (str_iconveha_notranslit): Renamed from str_iconveha.
7718 (str_iconveha): New function.
7719 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7722 2007-01-23 Bruno Haible <bruno@clisp.org>
7724 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7725 encodings without forgiving before trying any encoding with handler.
7726 (str_iconveha): Try all encodings without forgiving before trying any
7727 encoding with handler.
7729 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7731 Import the following changes from libc.
7733 2005-10-14 Ulrich Drepper <drepper@redhat.com>
7735 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7737 2004-12-01 Jakub Jelinek <jakub@redhat.com>
7739 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7740 normal_bracket label.
7742 2004-09-01 Jakub Jelinek <jakub@redhat.com>
7745 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7746 to normal_bracket after fetching the next character.
7748 2007-01-22 Bruno Haible <bruno@clisp.org>
7750 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7752 * lib/striconveh.c (iconv_carefully_1): New function.
7753 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7755 (str_cd_iconveh): Update.
7756 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7757 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7758 * tests/test-striconveh.c (MAGIC): New macro.
7759 (new_offsets): New function.
7760 (main): Test call with and without offsets.
7762 2007-01-22 Bruno Haible <bruno@clisp.org>
7764 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7765 * modules/sys_select (Makefile.am): Likewise.
7766 * modules/sys_socket (Makefile.am): Likewise.
7767 * modules/sys_time (Makefile.am): Likewise.
7769 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
7771 * modules/gettimeofday (License): Change from GPL to LGPL, since
7772 gettimeofday is a library function.
7774 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7776 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7778 2007-01-21 Bruno Haible <bruno@clisp.org>
7780 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
7782 2007-01-21 Bruno Haible <bruno@clisp.org>
7784 * modules/striconveha: New file.
7785 * lib/striconveha.h: New file.
7786 * lib/striconveha.c: New file.
7787 * MODULES.html.sh (Internationalization functions): Add striconveha.
7788 * lib/striconv.c (str_iconv): Optimize the case of an empty input
7790 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
7792 2007-01-21 Bruno Haible <bruno@clisp.org>
7794 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
7795 * lib/striconveh.c (str_iconveh): Likewise.
7797 2007-01-21 Bruno Haible <bruno@clisp.org>
7799 * lib/striconveh.h (mem_iconveh): New declaration.
7800 * lib/striconveh.c (mem_iconveh): New function.
7801 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
7803 2007-01-21 Bruno Haible <bruno@clisp.org>
7805 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
7807 * lib/striconveh.h (mem_cd_iconveh): Change specification.
7808 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
7809 original result buffer.
7810 (str_cd_iconveh): Update.
7811 * tests/test-striconveh.c (main): Update.
7813 * lib/striconv.h (mem_cd_iconv): Change specification.
7814 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
7816 (str_cd_iconv): Update.
7817 * tests/test-striconv.c (main): Update.
7819 2007-01-21 Bruno Haible <bruno@clisp.org>
7821 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
7823 2007-01-20 Jim Meyering <jim@meyering.net>
7825 * lib/userspec.c (parse_with_separator): If a user or group string
7826 starts with "+", skip the corresponding name-to-ID look-up, since
7827 such a look-up must fail: user and group names may not include "+".
7829 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
7831 * lib/poll.c: Include sys/time.h and time.h unconditionally,
7832 since we now assume the sys_time module.
7833 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
7834 check for sys/time.h; no longer needed.
7835 * modules/poll (Depends-on): Depend on sys_time.
7837 2007-01-18 Bruno Haible <bruno@clisp.org>
7839 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
7840 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7842 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7845 * tests/test-gettimeofday.c: Include <time.h>.
7846 (dummy): Remove variable.
7848 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
7849 gl_HEADER_SYS_TIME_H.
7850 (gl_HEADER_SYS_TIME_H): New macro.
7852 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
7853 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7854 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7855 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
7856 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7857 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
7858 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
7859 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7860 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
7861 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
7862 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7864 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
7865 last change; it caused a compilation error when cross-compiling to
7868 2007-01-18 Jim Meyering <jim@meyering.net>
7870 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
7871 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
7872 than the race-prone "test -d sys || mkdir sys".
7873 (configure.ac): Use AC_PROG_MKDIR_P.
7874 * modules/sys_select: Likewise.
7875 * modules/sys_socket: Likewise.
7876 * modules/sys_time: Likewise.
7878 2007-01-18 Eric Blake <ebb9@byu.net>
7880 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
7881 replace gettimeofday.
7882 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
7883 name, to avoid infinite recursion.
7885 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
7887 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
7889 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
7890 assume timespec.h defines struct timeval.
7891 * lib/settime.c: Likewise.
7892 * lib/utimens.c: Likewise.
7893 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
7894 since we now assume the gettimeofday module.
7895 * lib/tempname.c (__gen_tempname): Likewise.
7896 * lib/gettimeofday.h: Remove.
7897 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
7898 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
7899 Include <time.h>, for 'time()'.
7900 (localtime_buffer_addr): Also use this workaround if
7901 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
7902 to simplify the uses. All uses changed.
7903 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
7904 that #undef is inside {}, and 'const' follows type name consistently.
7905 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
7906 (gettimeofday): Do not use the maximum possible value for
7907 tv->tv_usec, since that might break usages other than ls.c.
7908 Instead, we'll leave ls.c alone. This undoes today's patch
7909 by Bruno. Add a compile-time warning for 1s-clock resolution;
7910 we've never observed the problem but might as well keep the
7912 * lib/nanosleep.c: Include timespec.h first, for interface check.
7913 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
7914 now assume the sys_time module.
7915 * lib/tempname.c: Likewise.
7916 * lib/timespec.h: Likewise.
7917 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
7919 * lib/strftime.c: Likewise.
7920 * lib/timespec.h: Likewise.
7921 * lib/posixtm.c: Include posixtm.h first, for interface check.
7922 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
7923 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
7924 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
7925 * lib/sys_time_.h: New file.
7926 * lib/timespec.h (struct timespec): Use long int, not long.
7927 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7928 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
7929 Remove obsolescent call to AC_HEADER_TIME.
7930 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7931 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7932 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7933 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
7935 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7936 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
7937 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
7938 into the sys_time module. Check for gettimeofday just once.
7939 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
7940 for gettimeofday signature to just check the signature. Merely
7941 compile it, since linking doesn't test signature. Improve test for
7942 whether gettimeofday.o is actually needed.
7943 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
7944 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
7945 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
7946 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7947 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
7948 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
7949 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
7950 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
7951 than worrying about sys/time.h.
7952 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7953 Don't bother worrying about TIME_WITH_SYS_TIME.
7954 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7955 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
7956 * m4/sys_time_h.m4: New file.
7957 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
7958 Don't include sys/time.h. Return from main rather than exiting.
7959 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
7961 * modules/gethrxtime (Depends-on): Add sys_time.
7962 * modules/gettime (Depends-on): Likewise.
7963 * modules/gettimeofday (Depends-on): Likewise.
7964 * modules/nanosleep (Depends-on): Likewise.
7965 * modules/settime (Depends-on): Likewise.
7966 * modules/tempname (Depends-on): Likewise.
7967 * modules/utimens (Depends-on): Likewise.
7968 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
7969 (Include:) Change back to <sys/time.h>.
7970 (Maintainer:) Add self.
7971 * modules/sys_time: New file.
7972 * modules/tempname (Depends-on): Add gettimeofday.
7973 * tests/test-gettimeofday.c: Include <sys/time.h>
7974 rather than gettimeofday.h.
7976 2007-01-17 Bruno Haible <bruno@clisp.org>
7978 * gnulib-tool (func_get_license): Revert last patch. Instead, let
7979 the license default to GPL.
7980 (func_create_testdir): Don't complain if a module is LGPL and its
7981 tests module depends on GPLed modules.
7983 2007-01-17 Bruno Haible <bruno@clisp.org>
7985 * lib/gettimeofday.c (gettimeofday): Add code for the case
7986 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
7987 maximum possible value for tv->tv_usec, rather than the minimum one.
7989 2005-10-08 Martin Lambers <marlam@marlam.de>
7990 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
7991 2007-01-16 Bruno Haible <bruno@clisp.org>
7993 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
7994 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
7995 gl_FUNC_GETTIMEOFDAY.
7996 (Include): Add gettimeofday.h.
7997 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
7998 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
7999 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
8000 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
8001 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
8002 * lib/gettimeofday.h: New file.
8003 * lib/gettimeofday.c: Include <sys/timeb.h>.
8004 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
8005 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8006 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
8007 fall back on time().
8009 * tests/test-gettimeofday.c: New file.
8010 * modules/gettimeofday-tests: New file.
8012 2007-01-16 Eric Blake <ebb9@byu.net>
8014 * modules/fnmatch (Depends-on): Depend on wchar.
8015 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
8016 * m4/fnmatch.m4: Likewise.
8017 * modules/mbchar (Makefile.am): Assume <wchar.h>.
8018 * m4/mbchar.m4: Likewise.
8019 * modules/mbswidth (Depends-on): Depend on wchar.
8020 * lib/mbswidth.c: Assume <wchar.h>.
8021 * m4/mbswidth.m4: Likewise.
8022 * modules/quotearg (Depends-on): Depend on wchar.
8023 * lib/quotearg.c: Assume <wchar.h>.
8024 * m4/quotearg.m4: Likewise.
8025 * modules/regex (Depends-on): Depend on wchar.
8026 * lib/regex_internal.h: Assume <wchar.h>.
8027 * m4/regex.m4: Likewise.
8028 * modules/stdint (Depends-on): Depend on wchar.
8029 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
8030 * m4/stdint.m4: Likewise.
8031 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
8032 * modules/strftime (Depends-on): Depend on wchar.
8033 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
8034 * modules/strtol (Depends-on): Depend on wchar.
8035 * lib/strtol.c: Assume <wchar.h>.
8036 * modules/wcwidth (Depends-on): Depend on wchar.
8037 * lib/wcwidth.h: Assume <wchar.h>.
8038 * m4/wcwidth.m4: Likewise.
8040 2007-01-16 Bruno Haible <bruno@clisp.org>
8042 * modules/csharpexec-script: New, created from...
8043 * modules/csharpexec: ... this.
8045 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
8047 * modules/javaexec-script: New, created from...
8048 * modules/javaexec: ... this.
8050 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8052 * modules/poll (Dependencies): Add sys_select.
8054 2007-01-15 Jim Meyering <jim@meyering.net>
8056 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
8057 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
8058 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
8059 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
8061 2007-01-15 Bruno Haible <bruno@clisp.org>
8063 * modules/striconveh: New file.
8064 * lib/striconveh.h: New file.
8065 * lib/striconveh.c: New file.
8066 * MODULES.html.sh (Internationalization functions): Add striconveh.
8068 * modules/striconveh-tests: New file.
8069 * tests/test-striconveh.c: New file.
8071 2007-01-15 Bruno Haible <bruno@clisp.org>
8073 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
8074 not from GNU libiconv or GNU libc.
8076 2007-01-15 Bruno Haible <bruno@clisp.org>
8078 * doc/gnulib-intro.texi (Copyright): Explain the different license
8079 terms for module descriptions, autoconf macros, tests, documentation.
8081 2007-01-14 Bruno Haible <bruno@clisp.org>
8083 * modules/striconv-tests: New file.
8084 * tests/test-striconv.c: New file.
8086 2007-01-14 Bruno Haible <bruno@clisp.org>
8088 * modules/iconv-tests: New file.
8089 * tests/test-iconv.c: New file.
8091 2007-01-14 Bruno Haible <bruno@clisp.org>
8093 * gnulib-tool (func_get_license): For test modules, use the license of
8096 2007-01-14 Bruno Haible <bruno@clisp.org>
8098 * modules/iconv (Include): Clarify that <iconv.h> can only be included
8099 if iconv is found to exist.
8101 2007-01-14 Bruno Haible <bruno@clisp.org>
8103 * modules/c-ctype-tests: New file.
8104 * tests/test-c-ctype.c: New file.
8106 2007-01-14 Bruno Haible <bruno@clisp.org>
8108 * modules/binary-io-tests: New file.
8109 * tests/test-binary-io.sh: New file.
8110 * tests/test-binary-io.c: New file.
8112 2007-01-14 Bruno Haible <bruno@clisp.org>
8114 * modules/array-oset-tests: New file.
8115 * tests/test-array_oset.c: New file.
8117 2007-01-14 Bruno Haible <bruno@clisp.org>
8119 * modules/array-list-tests: New file.
8120 * tests/test-array_list.c: New file.
8122 2007-01-14 Bruno Haible <bruno@clisp.org>
8124 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
8126 Reported by Simon Josefsson in
8127 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
8129 2007-01-14 Bruno Haible <bruno@clisp.org>
8131 * modules/allocsa-tests: New file.
8132 * tests/test-allocsa.c: New file.
8134 2007-01-14 Bruno Haible <bruno@clisp.org>
8136 * modules/fchdir (Depends-on): Add absolute-header.
8137 * modules/unistd (Depends-on): Likewise.
8139 2006-12-30 Bruno Haible <bruno@clisp.org>
8141 * modules/fchdir: New file.
8142 * modules/unistd (Files): Add lib/unistd_.h.
8143 (Makefile.am): Generate unistd.h from unistd_.h.
8144 * lib/fchdir.c: New file.
8145 * lib/dirent_.h: New file.
8146 * lib/unistd_.h: New file.
8147 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
8148 * m4/fchdir.m4: New file.
8149 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
8150 (gl_HEADER_UNISTD): Invoke it.
8151 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
8153 * lib/backupfile.c (opendir, closedir): Undefine.
8154 * lib/chown.c (open, close): Undefine.
8155 * lib/clean-temp.c (open, close): Undefine.
8156 * lib/copy-file.c (open, close): Undefine.
8157 * lib/execute.c (open, close): Undefine.
8158 * lib/fsusage.c (open, close): Undefine.
8159 * lib/gc-gnulib.c (open, close): Undefine.
8160 * lib/getcwd.c (opendir, closedir): Undefine.
8161 * lib/glob.c (opendir, closedir): Undefine.
8162 * lib/javacomp.c (open, close): Undefine.
8163 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
8164 * lib/openat-proc.c (open, close): Undefine.
8165 * lib/pagealign_alloc.c (open, close): Undefine.
8166 * lib/pipe.c (open, close): Undefine.
8167 * lib/progreloc.c (open, close): Undefine.
8168 * lib/savedir.c (opendir, closedir): Undefine.
8169 * lib/utime.c (open, close): Undefine.
8170 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
8172 2007-01-10 Bruno Haible <bruno@clisp.org>
8174 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
8176 2007-01-12 Eric Blake <ebb9@byu.net>
8178 Provide a robust <wchar.h>. Further simplifications are now
8179 possible in other modules, but not included here.
8180 * modules/wchar: New module.
8181 * m4/wchar.m4: New file.
8182 * lib/wchar_.h: Likewise.
8183 * modules/mbchar (Depends-on): Depend on wchar, as the first use
8185 * MODULES.html.sh (Extended multibyte and wide character utilities):
8188 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
8190 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
8191 to a reasonable default for memory allocation.
8192 (xreadlink): Don't allocate a huge buffer, to work around a buggy
8193 file system that reports garbage st_size values for symlinks.
8194 Problem reported by Liyang Hu.
8196 2007-01-11 Simon Josefsson <simon@josefsson.org>
8198 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
8199 Emacs .#* auto-save files).
8201 2007-01-11 Bruno Haible <bruno@clisp.org>
8203 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
8206 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
8208 Use @...@ consistently in lib/wctype_.h.
8209 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
8210 on it being set to 1 or 0.
8211 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
8212 go back to AC_SUBSTing it.
8213 * modules/wctype (Makefile.am): Undo previous change.
8215 2007-01-10 Eric Blake <ebb9@byu.net>
8217 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
8218 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
8219 * modules/wctype (Makefile.am): Likewise.
8220 Reported by Chris McGuire.
8222 2007-01-10 Jim Meyering <jim@meyering.net>
8224 fts.c: a small readability/maintainability improvement
8225 * lib/fts.c (fts_read): Make this code slightly more readable and
8226 maintainable by hoisting the "sp->fts_cur = p" assignments to
8227 immediately follow the statements that set P. Derived from
8228 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
8230 2007-01-10 Eric Blake <ebb9@byu.net>
8232 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
8233 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
8234 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8235 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8236 Reported by Chris McGuire.
8238 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8240 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
8243 2007-01-09 Bruno Haible <bruno@clisp.org>
8245 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
8246 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
8248 (func_module): Use them.
8250 2007-01-09 Bruno Haible <bruno@clisp.org>
8252 * modules/unistr/base: New file.
8253 * lib/unistr.h: New file.
8255 * modules/unistr/u8-to-u16: New file.
8256 * lib/unistr/u8-to-u16.c: New file.
8258 * modules/unistr/u8-to-u32: New file.
8259 * lib/unistr/u8-to-u32.c: New file.
8261 * modules/unistr/u16-to-u8: New file.
8262 * lib/unistr/u16-to-u8.c: New file.
8264 * modules/unistr/u16-to-u32: New file.
8265 * lib/unistr/u16-to-u32.c: New file.
8267 * modules/unistr/u32-to-u8: New file.
8268 * lib/unistr/u32-to-u8.c: New file.
8270 * modules/unistr/u32-to-u16: New file.
8271 * lib/unistr/u32-to-u16.c: New file.
8273 * modules/unistr/u8-check: New file.
8274 * modules/unistr/u16-check: New file.
8275 * modules/unistr/u32-check: New file.
8276 * lib/unistr/u8-check.c: New file.
8277 * lib/unistr/u16-check.c: New file.
8278 * lib/unistr/u32-check.c: New file.
8280 * modules/unistr/u8-chr: New file.
8281 * modules/unistr/u16-chr: New file.
8282 * modules/unistr/u32-chr: New file.
8283 * lib/unistr/u8-chr.c: New file.
8284 * lib/unistr/u16-chr.c: New file.
8285 * lib/unistr/u32-chr.c: New file.
8287 * modules/unistr/u8-cmp: New file.
8288 * modules/unistr/u16-cmp: New file.
8289 * modules/unistr/u32-cmp: New file.
8290 * lib/unistr/u8-cmp.c: New file.
8291 * lib/unistr/u16-cmp.c: New file.
8292 * lib/unistr/u32-cmp.c: New file.
8294 * modules/unistr/u8-cpy: New file.
8295 * modules/unistr/u16-cpy: New file.
8296 * modules/unistr/u32-cpy: New file.
8297 * lib/unistr/u8-cpy.c: New file.
8298 * lib/unistr/u16-cpy.c: New file.
8299 * lib/unistr/u32-cpy.c: New file.
8300 * lib/unistr/u-cpy.h: New file.
8302 * modules/unistr/u8-cpy-alloc: New file.
8303 * modules/unistr/u16-cpy-alloc: New file.
8304 * modules/unistr/u32-cpy-alloc: New file.
8305 * lib/unistr/u8-cpy-alloc.c: New file.
8306 * lib/unistr/u16-cpy-alloc.c: New file.
8307 * lib/unistr/u32-cpy-alloc.c: New file.
8308 * lib/unistr/u-cpy-alloc.h: New file.
8310 * modules/unistr/u8-endswith: New file.
8311 * modules/unistr/u16-endswith: New file.
8312 * modules/unistr/u32-endswith: New file.
8313 * lib/unistr/u8-endswith.c: New file.
8314 * lib/unistr/u16-endswith.c: New file.
8315 * lib/unistr/u32-endswith.c: New file.
8316 * lib/unistr/u-endswith.h: New file.
8318 * modules/unistr/u8-mblen: New file.
8319 * modules/unistr/u16-mblen: New file.
8320 * modules/unistr/u32-mblen: New file.
8321 * lib/unistr/u8-mblen.c: New file.
8322 * lib/unistr/u16-mblen.c: New file.
8323 * lib/unistr/u32-mblen.c: New file.
8325 * modules/unistr/u8-mbtouc: New file.
8326 * modules/unistr/u16-mbtouc: New file.
8327 * modules/unistr/u32-mbtouc: New file.
8328 * lib/unistr/u8-mbtouc.c: New file.
8329 * lib/unistr/u16-mbtouc.c: New file.
8330 * lib/unistr/u32-mbtouc.c: New file.
8332 * modules/unistr/u8-mbtouc-safe: New file.
8333 * modules/unistr/u16-mbtouc-safe: New file.
8334 * modules/unistr/u32-mbtouc-safe: New file.
8335 * lib/unistr/u8-mbtouc-safe.c: New file.
8336 * lib/unistr/u16-mbtouc-safe.c: New file.
8337 * lib/unistr/u32-mbtouc-safe.c: New file.
8339 * modules/unistr/u8-move: New file.
8340 * modules/unistr/u16-move: New file.
8341 * modules/unistr/u32-move: New file.
8342 * lib/unistr/u8-move.c: New file.
8343 * lib/unistr/u16-move.c: New file.
8344 * lib/unistr/u32-move.c: New file.
8345 * lib/unistr/u-move.h: New file.
8347 * modules/unistr/u8-next: New file.
8348 * modules/unistr/u16-next: New file.
8349 * modules/unistr/u32-next: New file.
8350 * lib/unistr/u8-next.c: New file.
8351 * lib/unistr/u16-next.c: New file.
8352 * lib/unistr/u32-next.c: New file.
8354 * modules/unistr/u8-prev: New file.
8355 * modules/unistr/u16-prev: New file.
8356 * modules/unistr/u32-prev: New file.
8357 * lib/unistr/u8-prev.c: New file.
8358 * lib/unistr/u16-prev.c: New file.
8359 * lib/unistr/u32-prev.c: New file.
8361 * modules/unistr/u8-set: New file.
8362 * modules/unistr/u16-set: New file.
8363 * modules/unistr/u32-set: New file.
8364 * lib/unistr/u8-set.c: New file.
8365 * lib/unistr/u16-set.c: New file.
8366 * lib/unistr/u32-set.c: New file.
8367 * lib/unistr/u-set.h: New file.
8369 * modules/unistr/u8-startswith: New file.
8370 * modules/unistr/u16-startswith: New file.
8371 * modules/unistr/u32-startswith: New file.
8372 * lib/unistr/u8-startswith.c: New file.
8373 * lib/unistr/u16-startswith.c: New file.
8374 * lib/unistr/u32-startswith.c: New file.
8375 * lib/unistr/u-startswith.h: New file.
8377 * modules/unistr/u8-stpcpy: New file.
8378 * modules/unistr/u16-stpcpy: New file.
8379 * modules/unistr/u32-stpcpy: New file.
8380 * lib/unistr/u8-stpcpy.c: New file.
8381 * lib/unistr/u16-stpcpy.c: New file.
8382 * lib/unistr/u32-stpcpy.c: New file.
8383 * lib/unistr/u-stpcpy.h: New file.
8385 * modules/unistr/u8-stpncpy: New file.
8386 * modules/unistr/u16-stpncpy: New file.
8387 * modules/unistr/u32-stpncpy: New file.
8388 * lib/unistr/u8-stpncpy.c: New file.
8389 * lib/unistr/u16-stpncpy.c: New file.
8390 * lib/unistr/u32-stpncpy.c: New file.
8391 * lib/unistr/u-stpncpy.h: New file.
8393 * modules/unistr/u8-strcat: New file.
8394 * modules/unistr/u16-strcat: New file.
8395 * modules/unistr/u32-strcat: New file.
8396 * lib/unistr/u8-strcat.c: New file.
8397 * lib/unistr/u16-strcat.c: New file.
8398 * lib/unistr/u32-strcat.c: New file.
8399 * lib/unistr/u-strcat.h: New file.
8401 * modules/unistr/u8-strchr: New file.
8402 * modules/unistr/u16-strchr: New file.
8403 * modules/unistr/u32-strchr: New file.
8404 * lib/unistr/u8-strchr.c: New file.
8405 * lib/unistr/u16-strchr.c: New file.
8406 * lib/unistr/u32-strchr.c: New file.
8408 * modules/unistr/u8-strcmp: New file.
8409 * modules/unistr/u16-strcmp: New file.
8410 * modules/unistr/u32-strcmp: New file.
8411 * lib/unistr/u8-strcmp.c: New file.
8412 * lib/unistr/u16-strcmp.c: New file.
8413 * lib/unistr/u32-strcmp.c: New file.
8415 * modules/unistr/u8-strcpy: New file.
8416 * modules/unistr/u16-strcpy: New file.
8417 * modules/unistr/u32-strcpy: New file.
8418 * lib/unistr/u8-strcpy.c: New file.
8419 * lib/unistr/u16-strcpy.c: New file.
8420 * lib/unistr/u32-strcpy.c: New file.
8421 * lib/unistr/u-strcpy.h: New file.
8423 * modules/unistr/u8-strcspn: New file.
8424 * modules/unistr/u16-strcspn: New file.
8425 * modules/unistr/u32-strcspn: New file.
8426 * lib/unistr/u8-strcspn.c: New file.
8427 * lib/unistr/u16-strcspn.c: New file.
8428 * lib/unistr/u32-strcspn.c: New file.
8429 * lib/unistr/u-strcspn.h: New file.
8431 * modules/unistr/u8-strdup: New file.
8432 * modules/unistr/u16-strdup: New file.
8433 * modules/unistr/u32-strdup: New file.
8434 * lib/unistr/u8-strdup.c: New file.
8435 * lib/unistr/u16-strdup.c: New file.
8436 * lib/unistr/u32-strdup.c: New file.
8437 * lib/unistr/u-strdup.h: New file.
8439 * modules/unistr/u8-strlen: New file.
8440 * modules/unistr/u16-strlen: New file.
8441 * modules/unistr/u32-strlen: New file.
8442 * lib/unistr/u8-strlen.c: New file.
8443 * lib/unistr/u16-strlen.c: New file.
8444 * lib/unistr/u32-strlen.c: New file.
8445 * lib/unistr/u-strlen.h: New file.
8447 * modules/unistr/u8-strmblen: New file.
8448 * modules/unistr/u16-strmblen: New file.
8449 * modules/unistr/u32-strmblen: New file.
8450 * lib/unistr/u8-strmblen.c: New file.
8451 * lib/unistr/u16-strmblen.c: New file.
8452 * lib/unistr/u32-strmblen.c: New file.
8454 * modules/unistr/u8-strmbtouc: New file.
8455 * modules/unistr/u16-strmbtouc: New file.
8456 * modules/unistr/u32-strmbtouc: New file.
8457 * lib/unistr/u8-strmbtouc.c: New file.
8458 * lib/unistr/u16-strmbtouc.c: New file.
8459 * lib/unistr/u32-strmbtouc.c: New file.
8461 * modules/unistr/u8-strncat: New file.
8462 * modules/unistr/u16-strncat: New file.
8463 * modules/unistr/u32-strncat: New file.
8464 * lib/unistr/u8-strncat.c: New file.
8465 * lib/unistr/u16-strncat.c: New file.
8466 * lib/unistr/u32-strncat.c: New file.
8467 * lib/unistr/u-strncat.h: New file.
8469 * modules/unistr/u8-strncmp: New file.
8470 * modules/unistr/u16-strncmp: New file.
8471 * modules/unistr/u32-strncmp: New file.
8472 * lib/unistr/u8-strncmp.c: New file.
8473 * lib/unistr/u16-strncmp.c: New file.
8474 * lib/unistr/u32-strncmp.c: New file.
8476 * modules/unistr/u8-strncpy: New file.
8477 * modules/unistr/u16-strncpy: New file.
8478 * modules/unistr/u32-strncpy: New file.
8479 * lib/unistr/u8-strncpy.c: New file.
8480 * lib/unistr/u16-strncpy.c: New file.
8481 * lib/unistr/u32-strncpy.c: New file.
8482 * lib/unistr/u-strncpy.h: New file.
8484 * modules/unistr/u8-strnlen: New file.
8485 * modules/unistr/u16-strnlen: New file.
8486 * modules/unistr/u32-strnlen: New file.
8487 * lib/unistr/u8-strnlen.c: New file.
8488 * lib/unistr/u16-strnlen.c: New file.
8489 * lib/unistr/u32-strnlen.c: New file.
8490 * lib/unistr/u-strnlen.h: New file.
8492 * modules/unistr/u8-strpbrk: New file.
8493 * modules/unistr/u16-strpbrk: New file.
8494 * modules/unistr/u32-strpbrk: New file.
8495 * lib/unistr/u8-strpbrk.c: New file.
8496 * lib/unistr/u16-strpbrk.c: New file.
8497 * lib/unistr/u32-strpbrk.c: New file.
8498 * lib/unistr/u-strpbrk.h: New file.
8500 * modules/unistr/u8-strrchr: New file.
8501 * modules/unistr/u16-strrchr: New file.
8502 * modules/unistr/u32-strrchr: New file.
8503 * lib/unistr/u8-strrchr.c: New file.
8504 * lib/unistr/u16-strrchr.c: New file.
8505 * lib/unistr/u32-strrchr.c: New file.
8507 * modules/unistr/u8-strspn: New file.
8508 * modules/unistr/u16-strspn: New file.
8509 * modules/unistr/u32-strspn: New file.
8510 * lib/unistr/u8-strspn.c: New file.
8511 * lib/unistr/u16-strspn.c: New file.
8512 * lib/unistr/u32-strspn.c: New file.
8513 * lib/unistr/u-strspn.h: New file.
8515 * modules/unistr/u8-strstr: New file.
8516 * modules/unistr/u16-strstr: New file.
8517 * modules/unistr/u32-strstr: New file.
8518 * lib/unistr/u8-strstr.c: New file.
8519 * lib/unistr/u16-strstr.c: New file.
8520 * lib/unistr/u32-strstr.c: New file.
8521 * lib/unistr/u-strstr.h: New file.
8523 * modules/unistr/u8-strtok: New file.
8524 * modules/unistr/u16-strtok: New file.
8525 * modules/unistr/u32-strtok: New file.
8526 * lib/unistr/u8-strtok.c: New file.
8527 * lib/unistr/u16-strtok.c: New file.
8528 * lib/unistr/u32-strtok.c: New file.
8529 * lib/unistr/u-strtok.h: New file.
8531 * modules/unistr/u8-uctomb: New file.
8532 * modules/unistr/u16-uctomb: New file.
8533 * modules/unistr/u32-uctomb: New file.
8534 * lib/unistr/u8-uctomb.c: New file.
8535 * lib/unistr/u16-uctomb.c: New file.
8536 * lib/unistr/u32-uctomb.c: New file.
8538 * MODULES.html.sh (Unicode string functions): Add the new modules.
8540 2007-01-08 Bruno Haible <bruno@clisp.org>
8542 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
8543 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
8546 2007-01-08 Karl Berry <karl@gnu.org>
8548 * doc/error.texi: mention that main() fns must set program_name
8549 when progname is used.
8551 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
8553 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
8554 WCTYPE_H is empty, for the benefit of builds from non-distclean
8555 directories. Problem reported by Eric Blake in
8556 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
8558 2007-01-08 Bruno Haible <bruno@clisp.org>
8560 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
8561 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
8562 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
8563 PROVIDE_CANONICALIZE_FILENAME_MODE.
8564 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
8566 2007-01-08 Bruno Haible <bruno@clisp.org>
8568 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
8569 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
8570 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
8571 * lib/fts.c: Likewise.
8572 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
8574 2006-12-25 Bruno Haible <bruno@clisp.org>
8576 * modules/utf8-ucs4-safe: New file.
8577 * lib/utf8-ucs4-safe.h: New file.
8578 * lib/unistr/utf8-ucs4-safe.c: New file.
8580 * modules/utf16-ucs4-safe: New file.
8581 * lib/utf16-ucs4-safe.h: New file.
8582 * lib/unistr/utf16-ucs4-safe.c: New file.
8584 * MODULES.html.sh (Unicode string functions): Add the new modules.
8586 2007-01-08 Bruno Haible <bruno@clisp.org>
8588 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
8589 (Depends-on): Add unitypes.
8590 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8591 (u8_mbtouc_aux): Move out to separate file.
8592 (u8_mbtouc): Use ucs4_t, uint8_t types.
8593 * lib/unistr/utf8-ucs4.c: New file.
8595 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
8596 (Depends-on): Add unitypes.
8597 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8598 (u16_mbtouc_aux): Move out to separate file.
8599 (u16_mbtouc): Use ucs4_t, uint16_t types.
8600 * lib/unistr/utf16-ucs4.c: New file.
8602 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
8603 (Depends-on): Add unitypes.
8604 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
8605 (u8_uctomb_aux): Move out to separate file.
8606 (u8_uctomb): Use ucs4_t, uint8_t types.
8607 * lib/unistr/ucs4-utf8.c: New file.
8609 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
8610 (Depends-on): Add unitypes.
8611 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
8612 (u16_uctomb_aux): Move out to separate file.
8613 (u16_uctomb): Use ucs4_t, uint16_t types.
8614 * lib/unistr/ucs4-utf16.c: New file.
8616 2006-12-25 Bruno Haible <bruno@clisp.org>
8618 * modules/unitypes: New file.
8619 * lib/unitypes.h: New file.
8620 * MODULES.html.sh (func_all_modules): New section "Unicode string
8621 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
8622 this section. Add unitypes.
8624 2007-01-08 Bruno Haible <bruno@clisp.org>
8626 Avoid variable names that conflict with those from libtool.
8627 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
8628 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
8629 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
8630 library_names_spec to acl_library_names_spec, hardcode_* to
8632 Reported by Ralf Wildenhues.
8634 2007-01-08 Bruno Haible <bruno@clisp.org>
8636 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
8638 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
8640 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
8641 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
8643 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
8645 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
8646 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
8647 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
8648 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
8650 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
8652 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
8653 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
8655 * lib/gc-libgcrypt.c: Likewise.
8656 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
8657 * modules/gc-arctwo (configure.ac): Likewise.
8658 * modules/gc-des (configure.ac): Likewise.
8659 * modules/gc-hmac-md5 (configure.ac): Likewise.
8660 * modules/gc-hmac-sha1 (configure.ac): Likewise.
8661 * modules/gc-md2 (configure.ac): Likewise.
8662 * modules/gc-md4 (configure.ac): Likewise.
8663 * modules/gc-md5 (configure.ac): Likewise.
8664 * modules/gc-random (configure.ac): Likewise.
8665 * modules/gc-rijndael (configure.ac): Likewise.
8666 * modules/gc-sha1 (configure.ac): Likewise.
8668 2007-01-08 Bruno Haible <bruno@clisp.org>
8670 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
8672 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
8674 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
8676 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
8677 * modules/fcntl-safer (configure.ac): Likewise.
8678 * modules/fopen-safer (configure.ac): Likewise.
8679 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
8680 GNULIB_FWRITEERROR macro definition.
8682 2007-01-08 Bruno Haible <bruno@clisp.org>
8684 * m4/gnulib-common.m4: New file.
8685 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
8686 (func_get_filelist): Add m4/gnulib-common.m4.
8688 2007-01-08 Bruno Haible <bruno@clisp.org>
8690 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
8693 2007-01-08 Jim Meyering <jim@meyering.net>
8695 Use a more robust test for a "can't happen" condition.
8696 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
8697 narrowed the st_size value. Presuming the "can't happen" condition
8698 is true, that narrowing could conceivably convert an invalid st_size
8699 value into a valid one. Instead, use a change based on Matthew
8700 Woehlke's original patch.
8702 Slight readability improvement: use an assert-like macro
8703 in place of literal "abort ()" uses.
8704 * lib/fts.c (fts_assert): Define.
8705 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
8706 Use this macro instead of a bare 'abort'.
8708 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
8710 Don't worry about using IRIX 5.3's wctype.h broken definitions;
8711 simply work around them.
8712 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
8713 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8714 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8716 Don't bother to define as macros, since the standard doesn't require it.
8717 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8718 longer worry about IRIX 5.3.
8719 (HAVE_WCTYPE_CTMP_BUG): Remove.
8721 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
8723 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8724 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
8725 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8726 Problems reported by Georg Schwarz for IRIX 5.3.
8728 * gnulib-tool (autoconf_minversion): Take the maximum version number
8729 found, not the minimum. Problem reported by James Youngman.
8731 2007-01-03 Karl Berry <karl@gnu.org>
8733 * doc/error.texi: new file, explaining interaction with progname.
8734 * doc/gnulib.texi: include it. Update copyright.
8736 2007-01-03 Simon Josefsson <simon@josefsson.org>
8738 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8739 AC_CANONICAL_HOST, to improve autobuild outputs.
8741 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
8742 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8744 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8745 sockets, server sockets, and other file descriptors. Count errors
8746 to compute the return value. Reorder the code a bit to be easier
8747 to follow. Don't set event bits that were not requested (except
8748 POLLERR and POLLHUP).
8750 2007-01-01 Bruno Haible <bruno@clisp.org>
8752 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8754 2007-01-03 Jim Meyering <jim@meyering.net>
8756 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
8758 2007-01-02 Bruno Haible <bruno@clisp.org>
8760 * modules/settime (Include): Require timespec.h.
8761 * modules/nanosleep (Include): Likewise.
8763 2007-01-01 Bruno Haible <bruno@clisp.org>
8765 * gnulib-tool (func_emit_copyright_notice): Bump year.
8766 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8768 2007-01-01 Bruno Haible <bruno@clisp.org>
8770 Improve support for OpenBSD.
8771 * build-aux/config.rpath (libname_spec): Export.
8772 (library_names_spec): New variable. Export.
8773 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8774 library_names_spec from the config.rpath output. Locate shared library
8775 through the name pattern in library_names_spec.
8777 2007-01-01 Eric Blake <ebb9@byu.net>
8779 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8781 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
8783 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
8784 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
8785 assume the C locale, and avoid an "eval" that could cause trouble.
8786 Problem with SORT reported by Bob Proulx.
8788 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
8789 Define. Trivial patch from Henning Nielsen Lund, originally
8790 sent to bug-grep@gnu.org today.
8792 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
8794 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
8795 struct stat. Problem reported by Henning Nielsen Lund.
8796 * lib/acl.c: Include acl.h first, to check interface. Don't
8797 bother to include sys/types.h and sys/stat.h again.
8799 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
8801 Import the following change from libc; problem reported by
8804 2005-10-13 Ulrich Drepper <drepper@redhat.com>
8807 * lib/argp.h: Remove __NTH for __argp_usage inline function.
8809 2006-12-28 Jim Meyering <jim@meyering.net>
8811 * build-aux/announce-gen: Do not assume that the package
8812 builds any of tar.gz, tar.bz2, and .xdelta files.
8813 Suggestion from Simon Josefsson.
8815 2006-12-28 Simon Josefsson <simon@josefsson.org>
8817 * modules/announce-gen: New file.
8819 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
8821 * lib/mbchar.h: Just include <wctype.h>; the wctype module
8822 handles its gotchas now.
8823 * lib/mbswidth.c: Likewise.
8824 * lib/wcwidth.h: Likewise.
8825 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
8826 and iswcntrl; the wctype module does this stuff now.
8827 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8828 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8829 * modules/mbchar (Depends-on): Add wctype.
8830 * modules/mbswidth (Depends-on): Likewise.
8831 * modules/wcwidth (Depends-on): Likewise.
8833 2006-12-27 Eric Blake <ebb9@byu.net>
8835 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
8836 module uses more than what <wctype.h> is required to provide.
8838 2006-12-26 Eric Blake <ebb9@byu.net>
8840 * gnulib-tool (sed_extract_prog): Avoid space-tab.
8842 2006-12-26 Eric Blake <ebb9@byu.net>
8844 * modules/absolute-header: New module.
8845 * modules/fcntl (Depends-on): Depend on it.
8846 * modules/inttypes (Depends-on): Likewise.
8847 * modules/stdint (Depends-on): Likewise.
8848 * modules/sys_stat (Depends-on): Likewise.
8849 * modules/wctype (Depends-on): Likewise.
8850 * MODULES.html.sh (Support for building libraries and
8851 executables): Document it.
8853 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
8855 * gnulib-tool (SED): Remove, undoing previous change.
8856 The problem was that it broke coreutils on Solaris, because
8857 "sed --posix" leaked into a makefile.
8858 (sed): New alias, if 'alias' and GNU sed.
8860 2006-12-24 Jim Meyering <jim@meyering.net>
8862 Work around an fchownat bug in glibc-2.4:
8863 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
8864 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
8865 in spite of the -P option.
8866 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
8868 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
8869 * modules/openat (Files): Add lib/fchownat.c.
8870 * lib/openat.c (fchownat): Don't define here. Move to...
8871 * lib/fchownat.c: ...this new file.
8873 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
8875 Fix bug reported by Bruno Haible in
8876 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
8877 where quotearg.c didn't compile on Mac OS X 10.2 because it
8878 lacks <wchar.h> and wint_t.
8879 * lib/wctype_.h (__wctype_wint_t): New type.
8880 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
8881 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
8882 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
8883 Arg is now of type __wctype_wint_t, not wint_t.
8884 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
8885 substitute HAVE_WINT_T.
8886 * modules/wctype (Files): Add m4/wint_t.m4.
8887 (wctype.h): Substitute HAVE_WINT_T.
8889 2006-12-23 Bruno Haible <bruno@clisp.org>
8891 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
8893 2006-12-23 Bruno Haible <bruno@clisp.org>
8895 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
8897 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
8900 2006-12-22 Bruno Haible <bruno@clisp.org>
8902 * lib/copy-file.c: Include acl.h.
8903 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
8904 Close the file descriptors only after being done with copy_acl.
8905 * modules/copy-file (Depends-on): Add acl.
8907 2006-12-22 Bruno Haible <bruno@clisp.org>
8909 * gnulib-tool (SED): New variable.
8910 Use $SED instead of sed everywhere.
8912 2006-12-22 Bruno Haible <bruno@clisp.org>
8914 * modules/no-c++: New file.
8915 * m4/no-c++.m4: New file.
8916 * MODULES.html.sh (Support for building libraries and executables):
8919 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
8921 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8922 Include <limits.h>, and use its INT_MAX to rewrite the
8923 j loop so that it does not overflow 'int'. Problem reported by
8925 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8926 Play it safe by shifting left by 1 rather than multiplying by 2,
8927 as GCC is less likely to optimize this away when the value
8928 is signed (when it assumes overflow leads to undefined behavior).
8929 Also, don't assume time_t uses two's complement.
8931 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
8933 * MODULES.html.sh: New module wctype.
8934 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
8935 * lib/fnmatch.c: Don't bother to include <wchar.h> before
8936 <wctype.h>, since the new wctype module should fix this.
8937 * lib/quotearg.c: Include <wctype.h> unconditionally, since
8938 the wctype module should arrange for it.
8939 * lib/regex_internal.h: Likewise.
8940 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
8941 since the wctype module should handle this now.
8942 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
8943 * modules/fnmatch (Depends-on): Add wctype.
8944 * modules/quotearg (Depends-on): Likewise.
8945 * modules/regex (Depends-on): Likewise.
8947 2006-12-19 Bruno Haible <bruno@clisp.org>
8949 * lib/strdup.h [C++]: Wrap definitions in extern "C".
8950 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
8952 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8954 * modules/savewd (Depends-on): Fix dependency on fcntl.
8956 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8958 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
8959 conforms to C99, rather than relying on the user's environment
8960 setting of STDINT_H.
8962 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8963 and Eric Blake <ebb9@byu.net>
8965 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
8966 This is more consistent with the other defines here.
8967 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
8968 Port to z/OS. Problem reported by Paul Gilmartin.
8969 Change local vars to use gl_ prefix rather than ac_.
8970 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
8972 * modules/double-slash-root: New module.
8973 * modules/dirname (Files): Remove m4/double-slash-root.m4.
8974 (Depends-on): Add double-slash-root.
8975 * MODULES.html.sh (File system functions): Mention new module.
8977 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
8979 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
8980 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
8981 This is for the benefit of gzip, which doesn't do i18n.
8983 2006-12-12 Jim Meyering <jim@meyering.net>
8985 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
8986 Reported by Andreas Schwab <schwab@suse.de>.
8988 2006-12-12 Bruno Haible <bruno@clisp.org>
8990 Merge these changes.
8991 2006-09-05 Bruno Haible <bruno@clisp.org>
8992 * lib/iconvme.c (iconv_string): No need to save and restore errno when
8993 iconv_alloc succeeded.
8994 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
8995 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
8996 test for " && dest " at the end - dest is always != NULL there. Call
8997 iconv with 4xNULL arguments initially, to reset the state. Call iconv
8998 with 2xNULL arguments, also to flush the state storage. Handle the
8999 IRIX iconv behaviour. Realloc the final result, to throw away unused
9002 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
9004 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
9005 and fchmodat unconditionally, since glibc 2.4 has them.
9006 Problem reported by Arkadiusz Miskiewicz.
9008 2006-12-10 Bruno Haible <bruno@clisp.org>
9010 * gnulib-tool (func_import): Show the include files only for those
9011 modules that are copied and specified.
9012 Reported by Karl Berry.
9014 2006-12-08 Jim Meyering <jim@meyering.net>
9016 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
9017 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
9019 * build-aux/announce-gen: Add two new options, both optional:
9020 --bootstrap-tools=TOOL_LIST
9021 a comma-separated list of tools, e.g.,
9022 autoconf,automake,bison,gnulib
9023 --gnulib-snapshot-date=DATE
9024 if gnulib is in the bootstrap tool list,
9025 then report this as the snapshot date.
9026 If not specified, use the current date/time.
9027 If you specify a date here, be sure it's UTC.
9029 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9031 * tests/test-argp-2.sh: Fix test to match actual output.
9032 (func_compare): Fix sed script to be portable.
9034 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
9036 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
9037 workaround for this case. It is not autoconfigured now; offhand
9038 it's hard to see how to autoconfigure it.
9040 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
9042 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
9043 a directory that is about to be chowned. Such a directory's
9044 initial file permissions should permit the owner only and this
9045 should not be changed until after the chown, since the group and
9046 other bits would be incorrect if they granted permission before
9049 Fix porting problem for iswctype reported by Georg Schwarz in:
9050 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
9051 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
9052 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
9053 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
9054 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9056 2006-12-03 Jim Meyering <jim@meyering.net>
9058 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
9059 p->fts_statp may not yet be defined.
9060 (fts_read): Instead, set it in the caller, once p->fts_statp is
9061 sure to be defined, and corresponds to a top-level directory.
9062 This bug made du -x fail. Here's the coreutils test case:
9063 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
9064 Reported by Mike Frysinger.
9066 2006-12-01 Jim Meyering <jim@meyering.net>
9068 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
9069 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
9070 Reported by Simon Josefsson.
9072 2006-11-30 Jim Meyering <jim@meyering.net>
9074 * m4/warning.m4: Use the all-permissive copyright notice
9075 recommended by RMS (rather than LGPL).
9076 * m4/vararrays.m4: Likewise.
9077 * m4/flexmember.m4: Likewise.
9079 2006-11-29 Bruno Haible <bruno@clisp.org>
9081 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9082 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
9084 Reported by Simon Josefsson <simon@josefsson.org>.
9086 2006-11-28 James Youngman <jay@gnu.org>
9088 * README: Advise users that they might find the bug-gnulib@gnu.org
9089 and autotools-announce@gnu.org mailing lists useful.
9091 2006-11-28 Bruno Haible <bruno@clisp.org>
9093 * m4/ptrdiff_max.m4: Remove file.
9095 2006-11-21 Bruno Haible <bruno@clisp.org>
9097 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
9099 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9100 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
9102 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9103 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
9105 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9107 2006-11-28 Jim Meyering <jim@meyering.net>
9109 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
9110 warning from "gcc -Wshadow" about shadowing the builtin.
9112 2006-11-27 Bruno Haible <bruno@clisp.org>
9114 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
9116 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9118 2006-11-27 Bruno Haible <bruno@clisp.org>
9119 Paul Eggert <eggert@cs.ucla.edu>
9121 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
9123 2006-11-26 Bruno Haible <bruno@clisp.org>
9125 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9128 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
9129 Bruno Haible <bruno@clisp.org>
9131 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
9132 if compiling with "gcc -ansi".
9134 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
9136 Fix some incompatibilities with gcc -ansi -pedantic.
9137 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
9138 if compiling pedantically with GCC, unless it's C99 or later.
9139 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
9140 it mishandles gcc -ansi -pedantic as well.
9141 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
9143 * lib/regexec.c (check_node_accept_bytes): Don't use auto
9144 initializers for struct if -pedantic, unless it's C99 or later.
9146 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
9148 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
9149 Don't close an fd more than once. Identical atimes indicate
9150 success, not failure.
9152 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
9154 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
9156 2006-11-23 Jim Meyering <jim@meyering.net>
9158 * build-aux/announce-gen: New file. From coreutils.
9160 2006-11-22 Jim Meyering <jim@meyering.net>
9162 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
9163 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
9164 (fts_read): Use a temporary to narrow the overused st_size member
9165 before using it in a switch statement. Reported by Matthew Woehlke.
9167 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
9168 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9170 2006-11-20 Bruno Haible <bruno@clisp.org>
9172 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
9173 changequote instead of pairs of brackets.
9174 Reported by Andreas Schwab <schwab@suse.de>.
9176 2006-11-21 Jim Meyering <jim@meyering.net>
9178 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
9179 so as to remain compatible with older compilers.
9180 Patch from Michael Deutschmann.
9182 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
9184 * MODULES.html.sh (File system functions): Add openat.
9186 * lib/openat.h (rpl_fstatat): New macro, if
9187 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
9188 (fstatat): Define to rpl_fstatat under the same conditions,
9189 unless COMPILING_FSTATAT.
9190 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
9191 seems to have the bug.
9192 * lib/fstatat.c: New file.
9193 * modules/openat (Files): Add it.
9195 2006-11-20 Bruno Haible <bruno@clisp.org>
9197 * Makefile: New file.
9199 2006-11-20 Jim Meyering <jim@meyering.net>
9201 The beginnings of syntax-related checks for gnulib.
9202 * lib/Makefile: New file.
9203 * lib/t-idcache: New script. Ensure that the two halves of
9204 idcache.c stay in sync.
9206 * lib/idcache.c: Adjust comments in user- and group- portions to
9207 be more accurate, and to be consistent with one another.
9209 2006-11-20 Jim Meyering <jim@meyering.net>
9211 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
9212 continue using the flexible array member (thus, this module performs
9213 half as many malloc calls), with the addition that...
9214 (getgroup, getuser): Consistently record a non-match via an empty
9215 "name" string, and map an empty string match to a NULL return value.
9216 * modules/idcache (Depends-on): Re-add flexmember.
9218 * lib/idcache.c (getuser): Remove all uses of the register keyword.
9219 (getuidbyname, getgroup, getgidbyname): Likewise.
9221 Use cleaner syntax: NULL rather than 0.
9222 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
9224 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
9226 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
9227 It mishandled the case where the group was missing.
9228 Problem reported by Greg Schafer.
9229 * modules/idcache: Likewise.
9231 2006-11-18 Jim Meyering <jim@meyering.net>
9233 * check-module (%exempt_header): Add exception for some
9234 conditionally-included headers.
9236 * modules/i-ring (Depends-on): Add verify.
9237 (License): Change to LGPL.
9239 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
9241 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
9242 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
9243 and inttostr.h. Use snprintf rather than uinttostr, so that
9244 LGPLed code doesn't depend on GPLed.
9246 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
9248 * modules/inline (License): Change from GPL to LGPL.
9250 2006-11-17 Jim Meyering <jim@meyering.net>
9252 * modules/d-type (License): Switch to LGPL.
9254 2006-11-15 Bruno Haible <bruno@clisp.org>
9256 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
9258 2006-11-15 Eric Blake <ebb9@byu.net>
9260 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
9261 the module dependency.
9263 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9264 Bruno Haible <bruno@clisp.org>
9266 * gnulib-tool (func_create_testdir): Add license consistency check.
9268 2006-11-15 Eric Blake <ebb9@byu.net>
9270 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
9271 random "(cached)" in configure output.
9273 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9275 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
9276 test for conforming inttypes.h is both announced and cached.
9278 * MODULES.html.sh (seen_modules, seen_files): New variables.
9279 (func_module): Rewrite to use a few less gnulib-tool and sed
9280 invocations. Avoid a couple of quadratic algorithms for ...
9281 (missed_modules, missed_files): ... these, with ...
9282 (func_append, func_tmpdir): ... these new functions, from
9283 gnulib-tool. Analogously, install traps for cleanup.
9285 * tests/test-gc.c (main): Remove unused variables.
9286 * tests/test-read-file.c: Include stdlib.h, for 'free'.
9288 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
9290 * modules/inttostr (License): Change to LGPL.
9292 2006-11-14 Eric Blake <ebb9@byu.net>
9294 * modules/tempname (License): Change to LGPL.
9296 2006-11-14 Eric Blake <ebb9@byu.net>
9298 * doc/functions.texi (Function Portability): *printf functions on
9299 Cygwin now understand all POSIX size specifiers.
9301 2006-11-14 Bruno Haible <bruno@clisp.org>
9303 * modules/c-ctype (License): Change to LGPL.
9305 2006-11-12 Bruno Haible <bruno@clisp.org>
9307 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9308 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
9309 for GNOME libraries, for which the include files are installed in
9310 subdirectories of $prefix/include.
9312 2006-11-12 Bruno Haible <bruno@clisp.org>
9314 * m4/lib-link.m4: Require at least autoconf-2.54.
9315 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
9316 name to underscores for the --with option.
9318 2006-11-13 Bruno Haible <bruno@clisp.org>
9320 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
9321 the tests directory.
9322 Reported by Ralf Wildenhues.
9324 2006-11-13 Bruno Haible <bruno@clisp.org>
9326 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
9327 (func_emit_initmacro_end): Undo the override here.
9328 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
9329 Works around the famous automake error in coreutils.
9331 2006-11-13 Eric Blake <ebb9@byu.net>
9333 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
9334 element, not its node.
9336 2006-11-12 Bruno Haible <bruno@clisp.org>
9338 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
9339 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
9341 2006-11-12 Bruno Haible <bruno@clisp.org>
9343 * gnulib-tool: New option --local-symlink.
9344 (func_usage): Document it.
9345 (lsymbolic): New variable.
9346 (func_import, func_create_testdir): If --symlink was not specified,
9347 test whether --local-symlink was specified and the file comes from
9348 the local_gnulib_dir.
9350 2006-11-12 Bruno Haible <bruno@clisp.org>
9352 * gnulib-tool (func_ln): New function.
9353 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
9355 2006-11-12 Bruno Haible <bruno@clisp.org>
9357 Finish support for source files in subdirectories.
9358 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
9359 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
9361 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
9363 2006-11-12 Bruno Haible <bruno@clisp.org>
9365 * gnulib-tool (func_get_automake_snippet): Synthesize also an
9366 EXTRA_lib_SOURCES augmentation.
9367 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
9369 2006-11-12 Jim Meyering <jim@meyering.net>
9371 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
9372 file descriptors. This also averts a failure on systems with
9373 native openat support when a traversed directory lacks "x" access.
9374 * lib/fts_.h: Include "i-ring.h"
9375 (struct FTS) [fts_fd_ring]: New member.
9376 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
9377 (FCHDIR): Add parentheses.
9378 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
9379 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
9380 When descending, rather than simply closing the previous
9381 fts_cwd_fd value, push that file descriptor onto the ring.
9382 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
9383 (fts_open): Initialize the new fd_ring member.
9384 (fts_close): Clear the ring.
9385 (fts_safe_changedir): When possible, use our new fd_ring to skip
9386 the diropen and fstat and dev/ino comparison that would normally
9387 accompany a virtual `chdir ("..")'.
9389 * modules/fts (Depends-on): Add i-ring.
9390 * modules/i-ring: New module.
9391 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
9392 * m4/i-ring.m4: New file.
9394 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9396 * gnulib-tool (func_create_testdir): Fix replacement of
9397 `build-aux' in configure.ac. Run autotools in gltests
9399 (func_create_testdir, func_create_megatestdir, test): There is
9400 no need for '--force' in most autotool invocations in a new
9401 tree. Actually fail the whole test if any of the tools, or the
9402 configure or make stages fail.
9405 * build-aux/gnupload: Revert last change. Add pointer to upload
9406 instructions of the GNU Maintenance Instructions.
9407 Suggestion by Karl Berry.
9409 2006-11-10 Jim Meyering <jim@meyering.net>
9411 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
9413 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
9415 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
9416 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
9417 (bind_textdomain_codeset) [! ENABLE_NLS]:
9418 Evaluate all the arguments. That way, callers get compatible behavior
9419 if the arguments have side effects. Also, it avoids some GCC
9420 diagnostics in some cases; Joel E. Denny reported problems when Bison
9421 was configured with --enable-gcc-warnigs.
9423 2006-11-10 Jim Meyering <jim@meyering.net>
9425 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
9426 relevant options in CFLAGS (like -O, -fno-inline) are taken into
9429 2006-11-10 Jim Meyering <jim@meyering.net>
9431 * modules/inline: New file/module.
9432 * modules/xalloc (Files): Remove m4/inline.m4.
9433 (Depends-on): Add inline, instead.
9434 * modules/oset: Likewise.
9435 * modules/list: Likewise.
9437 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
9439 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
9440 Problem reported by Matthew Woehlke.
9442 2006-11-09 Bruno Haible <bruno@clisp.org>
9444 * lib/tempname.c (gen_tempname): Remove variant that invokes
9446 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
9449 2006-11-08 Bruno Haible <bruno@clisp.org>
9451 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
9452 to 'yes' instead of 'cross-compiling'.
9454 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
9456 * lib/quotearg.h (quotearg_free): New decl.
9457 * lib/quotearg.c (quotearg_free): New function.
9458 (slot0, nslots, slotvec0, slotvec):
9459 Now file-scope so that quotearg_free can get at them.
9461 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9464 * build-aux/gnupload: Add missing 'gnu' to example URL.
9465 Report by Karl Berry.
9467 2006-11-08 Bruno Haible <bruno@clisp.org>
9469 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
9470 Suggested by Paul Eggert.
9472 2006-11-08 Jim Meyering <jim@meyering.net>
9474 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
9475 It's already included if !_LIBC.
9476 (fts_safe_changedir): Add a comment.
9478 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9480 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9481 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9484 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
9485 definitions up, to avoid colliding with change below.
9486 (static_inline) [HAVE_INLINE]: New macro.
9487 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
9488 Provide extern decls when !HAVE_INLINE. Do not define unless
9489 static_inline is defined, either by us or by xmalloc.c. Use
9490 static_inline rather than static inline.
9491 (XCALLOC): Optimize sizeof(T) = 1 case.
9492 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
9494 2006-11-07 Bruno Haible <bruno@clisp.org>
9496 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
9497 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
9499 * modules/xalloc (Files): Add m4/inline.m4.
9501 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9504 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
9505 (Miscellanous Notes): ...from this.
9507 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9509 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9510 Mention that offsetof should be used instead of sizeof.
9513 2006-11-07 Bruno Haible <bruno@clisp.org>
9515 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
9517 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9519 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9520 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
9521 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9522 (gl_tree_add_before, gl_tree_add_after):
9523 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
9524 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
9525 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9526 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
9527 (gl_linked_add_after, gl_linked_add_at): Likewise.
9528 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
9529 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9530 (gl_tree_add_before, gl_tree_add_after): Likewise.
9531 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
9532 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
9533 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9535 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9537 * lib/gl_oset.h: Use C comment style, not C++ comment style.
9539 2006-11-06 Bruno Haible <bruno@clisp.org>
9541 * m4/inline.m4: New file.
9542 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
9543 * modules/list (Files): Add m4/inline.m4.
9544 * modules/oset (Files): Likewise.
9546 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9548 * lib/idcache.c: Include <stddef.h>, for offsetof.
9549 (struct userid.name): Change from char * to a flexible array member.
9551 * modules/idcache (Depends-on): Add flexmember.
9553 * MODULES.html.sh (Core language properties): New module flexmember.
9554 * modules/flexmember, m4/flexmember.m4: New files.
9556 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
9557 inline functions that are identical with the old xnmalloc_inline,
9558 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
9559 that we can avoid some unnecessary integer multiplications and
9560 divisions in the common case where the element size is known at
9562 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
9564 (xnboundedmalloc): Remove.
9565 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
9566 arguments, for consistency with rest of this header.
9567 (xcharalloc): Rewrite using XNMALLOC.
9568 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
9569 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
9570 versions have been moved to lib/xalloc.h and renamed to be the
9571 non-*_inline versions.
9572 (xmalloc, xrealloc): Implement without reference to the xnmalloc
9573 and xnrealloc functions, since those functions are now inline and
9575 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
9576 renaming described above.
9577 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
9578 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
9579 captures the dependency in AC_C_INLINE.
9581 New module canonicalize-lgpl, proposed by Charles Wilson in
9582 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
9583 with a few small changes afterwards.
9584 * MODULES.html.sh (File system functions): New module
9586 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
9587 and canonicalize_file_name.
9588 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
9589 * modules/canonicalize-lgpl: New files.
9591 2006-11-05 Bruno Haible <bruno@clisp.org>
9593 * gnulib-tool (func_import, func_create_testdir): Create directories
9594 also for files in subdirectories of lib/.
9596 2006-11-05 Bruno Haible <bruno@clisp.org>
9598 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
9601 2006-11-03 Bruno Haible <bruno@clisp.org>
9603 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9604 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
9605 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
9606 (xnboundedmalloc): New inline function.
9607 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
9608 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
9610 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
9612 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
9613 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
9614 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
9616 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9617 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
9619 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
9620 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9621 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
9623 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9624 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
9625 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9626 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
9627 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
9628 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
9629 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
9631 2006-11-03 Bruno Haible <bruno@clisp.org>
9633 * lib/c-ctype.h [C++]: Define functions without name mangling.
9634 * lib/fwriteerror.h [C++]: Likewise.
9635 * lib/gcd.h [C++]: Likewise.
9636 * lib/linebreak.h [C++]: Likewise.
9638 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
9640 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
9641 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
9642 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
9643 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9644 Check for functions and headers just once.
9645 Check for declaration of canonicalize_file_name.
9646 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
9648 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
9650 * gnulib-tool (func_import): Fix typo in actioncmd.
9652 2006-11-02 Bruno Haible <bruno@clisp.org>
9654 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
9655 newline sequence in the Makefile.am snippet as a space, like "make"
9657 Reported by Roger Persson <perrog@gmail.com>.
9659 2006-11-01 Bruno Haible <bruno@clisp.org>
9661 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
9662 already declared in <string.h>.
9663 * lib/strcase.h (strncasecmp): Don't declare it if yes.
9665 2006-11-01 Bruno Haible <bruno@clisp.org>
9667 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
9668 * lib/strcase.h: Include <string.h>.
9669 (strcasecmp): Define to rpl_strcasecmp here.
9671 2006-11-01 Bruno Haible <bruno@clisp.org>
9673 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
9675 2006-11-01 Eric Blake <ebb9@byu.net>
9677 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
9679 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
9681 2006-10-29 Bruno Haible <bruno@clisp.org>
9683 Make it compile in C++ mode.
9684 * lib/full-write.c (full_rw): Add a cast.
9686 2006-11-01 Bruno Haible <bruno@clisp.org>
9688 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
9690 Reported by Roger Persson <perrog@gmail.com>.
9692 2006-11-01 Eric Blake <ebb9@byu.net>
9694 * lib/getopt_.h: Fix comments.
9696 2006-10-31 Eric Blake <ebb9@byu.net>
9698 * modules/tmpdir (Depends-on): Add sys_stat.
9699 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
9700 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
9701 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
9702 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
9705 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
9707 Avoid some C++ diagnostics reported by Bruno Haible.
9708 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
9710 (quotearg_alloc): Use xcharalloc rather than xmalloc.
9711 (struct slotvec): Move to top level.
9712 (quotearg_n_options): Rewrite to avoid xmalloc.
9713 * lib/xalloc.h (xcharalloc): New function.
9714 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9715 [defined __cplusplus]: Add function template that provides result
9716 type propagation. This part of the change is from Bruno Haible.
9718 2006-10-29 Bruno Haible <bruno@clisp.org>
9720 Make it compile in C++ mode.
9721 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9722 * lib/strnlen1.c (strnlen1): Cast memchr result.
9723 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9724 * lib/clean-temp.c (string_equals, string_hash): Add casts.
9725 (create_temp_dir): Rename local variable 'template'.
9726 (compile_csharp_using_sscli): Add cast.
9727 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9728 * lib/findprog.c (find_in_path): Likewise.
9729 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9730 * lib/wait-process.c (register_slave_subprocess): Likewise.
9732 2006-10-22 Bruno Haible <bruno@clisp.org>
9734 * modules/tsearch: New file.
9735 * lib/tsearch.h: New file.
9736 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9737 * m4/tsearch.m4: New file.
9738 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9740 2006-10-29 Eric Blake <ebb9@byu.net>
9742 * lib/arcfour.c: Assume config.h.
9743 * lib/arctwo.c: Likewise.
9744 * lib/base64.c: Likewise.
9745 * lib/check-version.c: Likewise.
9746 * lib/crc.c: Likewise.
9747 * lib/des.c: Likewise.
9748 * lib/gc-gnulib.c: Likewise.
9749 * lib/gc-libgcrypt.c: Likewise.
9750 * lib/gc-pbkdf2-sha1.c: Likewise.
9751 * lib/getaddrinfo.c: Likewise.
9752 * lib/getdelim.c: Likewise.
9753 * lib/getline.c: Likewise.
9754 * lib/hmac-md5.c: Likewise.
9755 * lib/hmac-sha1.c: Likewise.
9756 * lib/iconvme.c: Likewise.
9757 * lib/md2.c: Likewise.
9758 * lib/md4.c: Likewise.
9759 * lib/memxor.c: Likewise.
9760 * lib/read-file.c: Likewise.
9761 * lib/readline.c: Likewise.
9762 * lib/rijndael-alg-fst.c: Likewise.
9763 * lib/rijndael-api-fst.c: Likewise.
9764 * lib/xgetdomainname.c: Likewise.
9766 2006-10-28 Eric Blake <ebb9@byu.net>
9768 * lib/xstrndup.c: Assume config.h.
9770 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
9772 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9773 stat-macros.h is now for our own macros, whereas stat_h is for
9774 macros in the <sys/stat.h> name space.
9775 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9776 (STAT_MACROS_H): Remove.
9777 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9778 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9779 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9780 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
9781 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
9782 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
9783 Move these macros to ...
9784 * lib/stat_.h: here. Don't include stat-macros.h.
9785 * lib/canonicalize.c: Don't include stat-macros.h.
9786 * lib/chown.c: Likewise.
9787 * lib/euidaccess.c: Likewise.
9788 * lib/file-type.c: Likewise.
9789 * lib/filemode.c: Likewise.
9790 * lib/glob.c: Likewise.
9791 * lib/isapipe.c: Likewise.
9792 * lib/lchown.c: Likewise.
9793 * lib/lstat.c: Likewise.
9794 * lib/mkdir-p.c: Likewise.
9795 * lib/rmdir.c: Likewise.
9796 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
9797 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
9798 unless mkdir isn't declared, to speed up 'configure'.
9799 Always create sys/stat.h, since it's unlikely any real sys/stat.h
9800 would define all the S_* symbols.
9801 * modules/canonicalize (Depends-on):
9802 Depend on sys_stat, not stat-macros.
9803 * modules/chown: Likewise.
9804 * modules/euidaccess: Likewise.
9805 * modules/filemode: Likewise.
9806 * modules/file-type: Likewise.
9807 * modules/glob: Likewise.
9808 * modules/isapipe: Likewise.
9809 * modules/lchown: Likewise.
9810 * modules/lstat: Likewise.
9811 * modules/mkancesdirs: Likewise.
9812 * modules/rmdir: Likewise.
9813 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
9814 * modules/modechange: Likewise.
9815 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
9816 (configure.ac): Remove gl_STAT_MACROS.
9817 * modules/sys_stat (Depends-on): Remove stat-macros.
9819 2006-10-27 Bruno Haible <bruno@clisp.org>
9821 * m4/signed.m4: Remove file.
9822 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
9824 * modules/vasnprintf (Files): Remove m4/signed.m4.
9826 2006-10-27 Bruno Haible <bruno@clisp.org>
9828 Update to GNU gettext 0.16.
9829 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
9830 m4/inttypes-h.m4, m4/signed.m4.
9831 * m4/gettext.m4: Update to GNU gettext 0.16.
9832 * m4/intl.m4: New file, from GNU gettext.
9833 * m4/intldir.m4: New file, from GNU gettext.
9834 * config/srclist.txt: Update
9836 2006-10-27 Eric Blake <ebb9@byu.net>
9838 * MODULES.html.sh: Document tempname.
9839 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
9841 (Files): Move lib/tempname.c...
9842 * modules/tempname: ...to this new module.
9843 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
9844 (gl_PREREQ_TEMPNAME): Move...
9845 * m4/tempname.m4: ...to this new file.
9846 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
9847 * modules/sys_stat (Depends-on): Add stat-macros.
9848 * lib/stat_.h (includes): Pick up stat macros.
9849 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
9850 if stat macros are broken.
9851 * lib/tempname.c (includes): No need to include "stat-macros.h".
9852 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
9853 (direxists, __path_search) [!_LIBC]: Don't compile these in
9854 gnulib; the tmpdir module covers that.
9855 * lib/tempname.h: New file.
9857 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
9859 * COPYING: Explain how gnulib-tool converts licence headers.
9860 Almost all wording by Eric Blake.
9862 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
9864 * lib/mbchar.h (is_basic_table): Make read-only.
9865 * lib/mbchar.c (is_basic_table): Likewise.
9866 Reported by John Darrington.
9868 2006-10-25 Bruno Haible <bruno@clisp.org>
9870 * lib/progname.h (set_program_name): Undefine before defining.
9872 2006-10-25 Bruno Haible <bruno@clisp.org>
9874 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
9875 false for non-gcc C++ compilers.
9876 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9878 2006-10-24 Bruno Haible <bruno@clisp.org>
9880 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
9881 iconv implementations like Irix iconv.
9883 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9885 * modules/vararrays: New file.
9886 * m4/vararrays.m4: New file, taken from diffutils.
9887 * MODULES.html.sh: New module vararrays.
9889 2006-10-24 Karl Berry <karl@gnu.org>
9891 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
9892 Don't call GNU Unix.
9894 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9896 * users.txt: Add Libtool.
9900 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9902 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
9903 to gnulib's policy of including config.h unconditionally.
9905 2006-10-24 Bruno Haible <bruno@clisp.org>
9907 * modules/wcwidth (Files): Add m4/wint_t.m4.
9908 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
9909 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
9911 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9913 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
9914 to pacify GCC with some -W flags enabled. Problem reported by
9917 2006-10-24 Jim Meyering <jim@meyering.net>
9919 * MODULES.html.sh: Remove uinttostr. It's not a module.
9920 Reported by Karl Berry.
9922 2006-10-23 Bruno Haible <bruno@clisp.org>
9924 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
9926 2006-10-24 Bruno Haible <bruno@clisp.org>
9928 * lib/gl_list.h: Use C comment style, not C++ comment style.
9930 2006-10-23 Eric Blake <ebb9@byu.net>
9932 * lib/getaddrinfo.c (includes): Add missing include.
9934 2006-10-23 Bruno Haible <bruno@clisp.org>
9935 Paul Eggert <eggert@cs.ucla.edu>
9937 Ability to rename obstack_free.
9938 * lib/obstack.h (__obstack_free): New macro. Declare instead of
9940 (obstack_free): Invoke the __obstack_free macro.
9941 * lib/obstack.c (obstack_free): Use __obstack_free macro.
9943 2006-10-23 Bruno Haible <bruno@clisp.org>
9944 Paul Eggert <eggert@cs.ucla.edu>
9946 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
9947 __argc, __argv from the declaration. (They are defined as macros on
9950 2006-10-22 Bruno Haible <bruno@clisp.org>
9952 * doc/gnulib-intro.texi: New file.
9953 * doc/gnulib.texi: Include it.
9955 2006-10-21 Bruno Haible <bruno@clisp.org>
9957 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
9958 "Introduction", "Miscellanous Notes", "Particular Modules".
9960 2006-10-21 Bruno Haible <bruno@clisp.org>
9962 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9963 Change mostlyclean-local rule to avoid sh syntax error from bash
9964 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
9966 2006-10-23 Jim Meyering <jim@meyering.net>
9968 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
9969 in place of snprintf.
9971 * modules/inttostr (Files): Add lib/uinttostr.c.
9972 * lib/uinttostr.c (inttostr): New file/function.
9973 * lib/inttostr.h (uinttostr): Declare.
9974 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
9975 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9977 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
9979 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9981 * lib/canonicalize.c (ELOOP): Define if not already defined.
9982 Problem reported by Bruno Haible in
9983 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
9985 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9987 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
9988 Problem reported by Perry Smith and Ville Laurikari.
9990 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
9993 2006-10-19 Bruno Haible <bruno@clisp.org>
9995 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
9998 2006-10-19 Bruno Haible <bruno@clisp.org>
10000 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
10003 2006-10-19 Bruno Haible <bruno@clisp.org>
10005 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
10007 2006-10-19 Bruno Haible <bruno@clisp.org>
10009 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
10012 2006-10-19 Bruno Haible <bruno@clisp.org>
10014 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
10017 2006-10-19 Bruno Haible <bruno@clisp.org>
10019 * gnulib-tool (func_create_testdir): Don't include ftruncate and
10020 mountlist by default.
10022 2006-10-16 Bruno Haible <bruno@clisp.org>
10024 * lib/c-strstr.c: Include c-strstr.h.
10026 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
10028 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
10031 2006-10-18 Bruno Haible <bruno@clisp.org>
10033 * lib/lock.h [C++]: Wrap definitions in extern "C".
10035 2006-10-18 Bruno Haible <bruno@clisp.org>
10037 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
10040 2006-10-18 Bruno Haible <bruno@clisp.org>
10042 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
10044 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
10046 * lib/xstrtol.h: Include gettext.h.
10047 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
10048 Problem reported by Eric Blake.
10049 * modules/xstrtol (Depends-on): Add gettext-h.
10051 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
10053 * lib/strftime.c (advance): New macro.
10054 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
10055 incomplete type, so you can't add 0 to it. Problem and patch
10056 reported by Eelco Dolstra for dietlibc.
10058 2006-10-18 Jim Meyering <jim@meyering.net>
10060 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
10061 type for a local, and rename it: s/up/user_proc/.
10063 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
10065 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
10066 READ_UTMP_USER_PROCESS.
10067 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
10069 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
10071 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
10072 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
10074 2006-10-17 Eric Blake <ebb9@byu.net>
10076 * lib/sigprocmask.c (sigprocmask): Fix typo.
10078 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
10080 * modules/clean-temp (Makefile.am): Don't add to make output...
10081 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
10084 2006-10-17 Bruno Haible <bruno@clisp.org>
10086 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
10087 differently if DEFAULT_TEXT_DOMAIN is set.
10089 2006-10-16 Bruno Haible <bruno@clisp.org>
10091 * lib/clean-temp.c: Include fwriteerror.h.
10093 2006-10-16 Bruno Haible <bruno@clisp.org>
10095 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
10097 2006-10-16 Bruno Haible <bruno@clisp.org>
10099 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
10100 * lib/sigprocmask.h: Include <sys/types.h>.
10101 (sigset_t): Use the system's definition if present.
10103 2006-10-17 Eric Blake <ebb9@byu.net>
10105 * lib/xvasprintf.c (includes): Assume config.h.
10106 * lib/xasprintf.c (includes): Likewise.
10108 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
10110 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
10111 at least as wide as intmax_t.
10113 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
10115 (Imported from Automake.)
10116 * build-aux/gnupload: Update to version 1.1 of directive file.
10118 2006-10-16 Eric Blake <ebb9@byu.net>
10120 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
10121 match Automake 1.10a.
10123 2006-10-14 Bruno Haible <bruno@clisp.org>
10125 * modules/sigprocmask: New file.
10126 * lib/sigprocmask.h: New file.
10127 * lib/sigprocmask.c: New file.
10128 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
10129 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
10130 request sigprocmask.o.
10131 (gl_PREREQ_SIGPROCMASK): New macro.
10132 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
10133 (Depends-on): Add sigprocmask.
10134 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
10135 gt_SIGNALBLOCKING. Test for 'raise' only once.
10136 * lib/fatal-signal.c: Include sigprocmask.h.
10137 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
10138 unblock_fatal_signals): Define always.
10139 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10142 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
10144 Sync from Automake.
10145 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
10146 which incorrectly sets the mode of an existing destination
10147 directory. In some cases the unpatched install-sh could do the
10148 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
10149 system. We hope this is rare in practice, but it's clearly worth
10150 fixing. Problem reported by Alex Unleashed in
10151 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
10152 Also, don't bother to check for -m bugs unless we're using -m;
10153 suggested by Stepan Kasal.
10155 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10157 Sync from Automake.
10158 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
10159 `-c' flag, so they appear at the same position as in %FASTDEP%
10160 mode in depend2.am. Fixes build failure for FreeBSD's c89,
10161 which ignores unknown options only after the first non-option.
10162 Bug report against M4 by Nelson H. F. Beebe.
10164 2006-10-13 Jim Meyering <jim@meyering.net>
10166 Fix a bug in yesterday's change.
10167 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
10168 p->fts_statp->st_dev would be used uninitialized.
10169 Ensures that we always call fts_stat on the very first entry.
10170 Miklos Szeredi reported that find -xdev stopped working.
10172 2006-10-12 Bruno Haible <bruno@clisp.org>
10174 * gnulib-tool (func_get_automake_snippet): Append an automatically
10175 computed EXTRA_DIST augmentation.
10176 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
10177 * modules/alloca-opt (Makefile.am): Likewise.
10178 * modules/allocsa (Makefile.am): Likewise.
10179 * modules/arcfour (Makefile.am): Likewise.
10180 * modules/arctwo (Makefile.am): Likewise.
10181 * modules/argmatch (Makefile.am): Likewise.
10182 * modules/argz (Makefile.am): Likewise.
10183 * modules/atexit (Makefile.am): Likewise.
10184 * modules/backupfile (Makefile.am): Likewise.
10185 * modules/byteswap (Makefile.am): Likewise.
10186 * modules/c-strtod (Makefile.am): Likewise.
10187 * modules/c-strtold (Makefile.am): Likewise.
10188 * modules/calloc (Makefile.am): Likewise.
10189 * modules/canon-host (Makefile.am): Likewise.
10190 * modules/canonicalize (Makefile.am): Likewise.
10191 * modules/chdir-long (Makefile.am): Likewise.
10192 * modules/chdir-safer (Makefile.am): Likewise.
10193 * modules/check-version (Makefile.am): Likewise.
10194 * modules/chown (Makefile.am): Likewise.
10195 * modules/cloexec (Makefile.am): Likewise.
10196 * modules/close-stream (Makefile.am): Likewise.
10197 * modules/closeout (Makefile.am): Likewise.
10198 * modules/crc (Makefile.am): Likewise.
10199 * modules/csharpexec (Makefile.am): Likewise.
10200 * modules/cycle-check (Makefile.am): Likewise.
10201 * modules/des (Makefile.am): Likewise.
10202 * modules/dev-ino (Makefile.am): Likewise.
10203 * modules/dirfd (Makefile.am): Likewise.
10204 * modules/dirname (Makefile.am): Likewise.
10205 * modules/dup2 (Makefile.am): Likewise.
10206 * modules/eealloc (Makefile.am): Likewise.
10207 * modules/error (Makefile.am): Likewise.
10208 * modules/euidaccess (Makefile.am): Likewise.
10209 * modules/exclude (Makefile.am): Likewise.
10210 * modules/exitfail (Makefile.am): Likewise.
10211 * modules/fcntl-safer (Makefile.am): Likewise.
10212 * modules/fcntl (Makefile.am): Likewise.
10213 * modules/file-type (Makefile.am): Likewise.
10214 * modules/fileblocks (Makefile.am): Likewise.
10215 * modules/filemode (Makefile.am): Likewise.
10216 * modules/filenamecat (Makefile.am): Likewise.
10217 * modules/fnmatch (Makefile.am): Likewise.
10218 * modules/fopen-safer (Makefile.am): Likewise.
10219 * modules/fpending (Makefile.am): Likewise.
10220 * modules/fprintftime (Makefile.am): Likewise.
10221 * modules/free (Makefile.am): Likewise.
10222 * modules/fsusage (Makefile.am): Likewise.
10223 * modules/ftruncate (Makefile.am): Likewise.
10224 * modules/fts (Makefile.am): Likewise.
10225 * modules/gc-arcfour (Makefile.am): Likewise.
10226 * modules/gc-des (Makefile.am): Likewise.
10227 * modules/gc-hmac-md5 (Makefile.am): Likewise.
10228 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
10229 * modules/gc-md4 (Makefile.am): Likewise.
10230 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10231 * modules/gc-sha1 (Makefile.am): Likewise.
10232 * modules/gc (Makefile.am): Likewise.
10233 * modules/getaddrinfo (Makefile.am): Likewise.
10234 * modules/getcwd (Makefile.am): Likewise.
10235 * modules/getdelim (Makefile.am): Likewise.
10236 * modules/getdomainname (Makefile.am): Likewise.
10237 * modules/getgroups (Makefile.am): Likewise.
10238 * modules/gethostname (Makefile.am): Likewise.
10239 * modules/gethrxtime (Makefile.am): Likewise.
10240 * modules/getline (Makefile.am): Likewise.
10241 * modules/getloadavg (Makefile.am): Likewise.
10242 * modules/getlogin_r (Makefile.am): Likewise.
10243 * modules/getndelim2 (Makefile.am): Likewise.
10244 * modules/getopt (Makefile.am): Likewise.
10245 * modules/getpagesize (Makefile.am): Likewise.
10246 * modules/getpass-gnu (Makefile.am): Likewise.
10247 * modules/getpass (Makefile.am): Likewise.
10248 * modules/getsubopt (Makefile.am): Likewise.
10249 * modules/gettime (Makefile.am): Likewise.
10250 * modules/gettimeofday (Makefile.am): Likewise.
10251 * modules/getugroups (Makefile.am): Likewise.
10252 * modules/getusershell (Makefile.am): Likewise.
10253 * modules/glob (Makefile.am): Likewise.
10254 * modules/group-member (Makefile.am): Likewise.
10255 * modules/hard-locale (Makefile.am): Likewise.
10256 * modules/hash (Makefile.am): Likewise.
10257 * modules/hmac-md5 (Makefile.am): Likewise.
10258 * modules/hmac-sha1 (Makefile.am): Likewise.
10259 * modules/human (Makefile.am): Likewise.
10260 * modules/idcache (Makefile.am): Likewise.
10261 * modules/imaxabs (Makefile.am): Likewise.
10262 * modules/imaxdiv (Makefile.am): Likewise.
10263 * modules/inet_ntop (Makefile.am): Likewise.
10264 * modules/inet_pton (Makefile.am): Likewise.
10265 * modules/intprops (Makefile.am): Likewise.
10266 * modules/inttostr (Makefile.am): Likewise.
10267 * modules/inttypes (Makefile.am): Likewise.
10268 * modules/isapipe (Makefile.am): Likewise.
10269 * modules/javaversion (Makefile.am): Likewise.
10270 * modules/lchmod (Makefile.am): Likewise.
10271 * modules/lchown (Makefile.am): Likewise.
10272 * modules/localcharset (Makefile.am): Likewise.
10273 * modules/long-options (Makefile.am): Likewise.
10274 * modules/lstat (Makefile.am): Likewise.
10275 * modules/malloc (Makefile.am): Likewise.
10276 * modules/mathl (Makefile.am): Likewise.
10277 * modules/mbchar (Makefile.am): Likewise.
10278 * modules/md2 (Makefile.am): Likewise.
10279 * modules/md4 (Makefile.am): Likewise.
10280 * modules/md5 (Makefile.am): Likewise.
10281 * modules/memcasecmp (Makefile.am): Likewise.
10282 * modules/memchr (Makefile.am): Likewise.
10283 * modules/memcmp (Makefile.am): Likewise.
10284 * modules/memcoll (Makefile.am): Likewise.
10285 * modules/memcpy (Makefile.am): Likewise.
10286 * modules/memmem (Makefile.am): Likewise.
10287 * modules/memmove (Makefile.am): Likewise.
10288 * modules/mempcpy (Makefile.am): Likewise.
10289 * modules/memrchr (Makefile.am): Likewise.
10290 * modules/memset (Makefile.am): Likewise.
10291 * modules/memxor (Makefile.am): Likewise.
10292 * modules/mkancesdirs (Makefile.am): Likewise.
10293 * modules/mkdir-p (Makefile.am): Likewise.
10294 * modules/mkdir (Makefile.am): Likewise.
10295 * modules/mkdtemp (Makefile.am): Likewise.
10296 * modules/mkstemp (Makefile.am): Likewise.
10297 * modules/mktime (Makefile.am): Likewise.
10298 * modules/modechange (Makefile.am): Likewise.
10299 * modules/mountlist (Makefile.am): Likewise.
10300 * modules/nanosleep (Makefile.am): Likewise.
10301 * modules/obstack (Makefile.am): Likewise.
10302 * modules/openat (Makefile.am): Likewise.
10303 * modules/pagealign_alloc (Makefile.am): Likewise.
10304 * modules/pathmax (Makefile.am): Likewise.
10305 * modules/physmem (Makefile.am): Likewise.
10306 * modules/poll (Makefile.am): Likewise.
10307 * modules/posixtm (Makefile.am): Likewise.
10308 * modules/posixver (Makefile.am): Likewise.
10309 * modules/putenv (Makefile.am): Likewise.
10310 * modules/quote (Makefile.am): Likewise.
10311 * modules/quotearg (Makefile.am): Likewise.
10312 * modules/raise (Makefile.am): Likewise.
10313 * modules/read-file (Makefile.am): Likewise.
10314 * modules/readline (Makefile.am): Likewise.
10315 * modules/readlink (Makefile.am): Likewise.
10316 * modules/readtokens (Makefile.am): Likewise.
10317 * modules/readutmp (Makefile.am): Likewise.
10318 * modules/realloc (Makefile.am): Likewise.
10319 * modules/regex (Makefile.am): Likewise.
10320 * modules/rename-dest-slash (Makefile.am): Likewise.
10321 * modules/rename (Makefile.am): Likewise.
10322 * modules/rijndael (Makefile.am): Likewise.
10323 * modules/rmdir (Makefile.am): Likewise.
10324 * modules/rpmatch (Makefile.am): Likewise.
10325 * modules/safe-read (Makefile.am): Likewise.
10326 * modules/safe-write (Makefile.am): Likewise.
10327 * modules/same-inode (Makefile.am): Likewise.
10328 * modules/same (Makefile.am): Likewise.
10329 * modules/save-cwd (Makefile.am): Likewise.
10330 * modules/savedir (Makefile.am): Likewise.
10331 * modules/setenv (Makefile.am): Likewise.
10332 * modules/settime (Makefile.am): Likewise.
10333 * modules/sha1 (Makefile.am): Likewise.
10334 * modules/sig2str (Makefile.am): Likewise.
10335 * modules/snprintf (Makefile.am): Likewise.
10336 * modules/stat-macros (Makefile.am): Likewise.
10337 * modules/stat-time (Makefile.am): Likewise.
10338 * modules/stdbool (Makefile.am): Likewise.
10339 * modules/stdint (Makefile.am): Likewise.
10340 * modules/stdlib-safer (Makefile.am): Likewise.
10341 * modules/stpcpy (Makefile.am): Likewise.
10342 * modules/stpncpy (Makefile.am): Likewise.
10343 * modules/strcase (Makefile.am): Likewise.
10344 * modules/strcasestr (Makefile.am): Likewise.
10345 * modules/strchrnul (Makefile.am): Likewise.
10346 * modules/strcspn (Makefile.am): Likewise.
10347 * modules/strdup (Makefile.am): Likewise.
10348 * modules/strerror (Makefile.am): Likewise.
10349 * modules/strftime (Makefile.am): Likewise.
10350 * modules/strndup (Makefile.am): Likewise.
10351 * modules/strnlen (Makefile.am): Likewise.
10352 * modules/strpbrk (Makefile.am): Likewise.
10353 * modules/strsep (Makefile.am): Likewise.
10354 * modules/strstr (Makefile.am): Likewise.
10355 * modules/strtod (Makefile.am): Likewise.
10356 * modules/strtoimax (Makefile.am): Likewise.
10357 * modules/strtok_r (Makefile.am): Likewise.
10358 * modules/strtol (Makefile.am): Likewise.
10359 * modules/strtoll (Makefile.am): Likewise.
10360 * modules/strtoul (Makefile.am): Likewise.
10361 * modules/strtoull (Makefile.am): Likewise.
10362 * modules/strtoumax (Makefile.am): Likewise.
10363 * modules/strverscmp (Makefile.am): Likewise.
10364 * modules/sys_socket (Makefile.am): Likewise.
10365 * modules/sys_stat (Makefile.am): Likewise.
10366 * modules/sysexits (Makefile.am): Likewise.
10367 * modules/time_r (Makefile.am): Likewise.
10368 * modules/timegm (Makefile.am): Likewise.
10369 * modules/timespec (Makefile.am): Likewise.
10370 * modules/tmpfile-safer (Makefile.am): Likewise.
10371 * modules/trim (Makefile.am): Likewise.
10372 * modules/unistd-safer (Makefile.am): Likewise.
10373 * modules/unlinkdir (Makefile.am): Likewise.
10374 * modules/unlocked-io (Makefile.am): Likewise.
10375 * modules/userspec (Makefile.am): Likewise.
10376 * modules/utime (Makefile.am): Likewise.
10377 * modules/utimecmp (Makefile.am): Likewise.
10378 * modules/utimens (Makefile.am): Likewise.
10379 * modules/vasnprintf (Makefile.am): Likewise.
10380 * modules/vasprintf (Makefile.am): Likewise.
10381 * modules/vsnprintf (Makefile.am): Likewise.
10382 * modules/xalloc (Makefile.am): Likewise.
10383 * modules/xgetcwd (Makefile.am): Likewise.
10384 * modules/xnanosleep (Makefile.am): Likewise.
10385 * modules/xreadlink (Makefile.am): Likewise.
10386 * modules/xstrtod (Makefile.am): Likewise.
10387 * modules/xstrtol (Makefile.am): Likewise.
10388 * modules/xstrtold (Makefile.am): Likewise.
10389 * modules/yesno (Makefile.am): Likewise.
10390 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
10392 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10394 * modules/error (Makefile.am): Distribute files through
10395 EXTRA_DIST, not lib_SOURCES.
10397 2006-10-12 Eric Blake <ebb9@byu.net>
10399 * modules/error (Makefile.am): Distribute files in /lib.
10400 * modules/obstack (Makefile.am): Likewise.
10402 2006-10-12 Bruno Haible <bruno@clisp.org>
10404 * modules/acl (Makefile.am): Distribute all files in lib/ through
10406 * modules/arcfour (Makefile.am): Likewise.
10407 * modules/arctwo (Makefile.am): Likewise.
10408 * modules/argmatch (Makefile.am): Likewise.
10409 * modules/argz (Makefile.am): Likewise.
10410 * modules/atexit (Makefile.am): Likewise.
10411 * modules/backupfile (Makefile.am): Likewise.
10412 * modules/c-strtod (Makefile.am): Likewise.
10413 * modules/c-strtold (Makefile.am): Likewise.
10414 * modules/calloc (Makefile.am): Likewise.
10415 * modules/canon-host (Makefile.am): Likewise.
10416 * modules/canonicalize (Makefile.am): Likewise.
10417 * modules/chdir-long (Makefile.am): Likewise.
10418 * modules/chdir-safer (Makefile.am): Likewise.
10419 * modules/check-version (Makefile.am): Likewise.
10420 * modules/chown (Makefile.am): Likewise.
10421 * modules/cloexec (Makefile.am): Likewise.
10422 * modules/close-stream (Makefile.am): Likewise.
10423 * modules/closeout (Makefile.am): Likewise.
10424 * modules/crc (Makefile.am): Likewise.
10425 * modules/cycle-check (Makefile.am): Likewise.
10426 * modules/des (Makefile.am): Likewise.
10427 * modules/dirfd (Makefile.am): Likewise.
10428 * modules/dirname (Makefile.am): Likewise.
10429 * modules/dup2 (Makefile.am): Likewise.
10430 * modules/euidaccess (Makefile.am): Likewise.
10431 * modules/exclude (Makefile.am): Likewise.
10432 * modules/exitfail (Makefile.am): Likewise.
10433 * modules/fcntl-safer (Makefile.am): Likewise.
10434 * modules/file-type (Makefile.am): Likewise.
10435 * modules/fileblocks (Makefile.am): Likewise.
10436 * modules/filemode (Makefile.am): Likewise.
10437 * modules/filenamecat (Makefile.am): Likewise.
10438 * modules/fnmatch (Makefile.am): Likewise.
10439 * modules/fopen-safer (Makefile.am): Likewise.
10440 * modules/fpending (Makefile.am): Likewise.
10441 * modules/fprintftime (Makefile.am): Likewise.
10442 * modules/free (Makefile.am): Likewise.
10443 * modules/fsusage (Makefile.am): Likewise.
10444 * modules/ftruncate (Makefile.am): Likewise.
10445 * modules/fts (Makefile.am): Likewise.
10446 * modules/gc (Makefile.am): Likewise.
10447 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10448 * modules/getaddrinfo (Makefile.am): Likewise.
10449 * modules/getcwd (Makefile.am): Likewise.
10450 * modules/getdelim (Makefile.am): Likewise.
10451 * modules/getdomainname (Makefile.am): Likewise.
10452 * modules/getgroups (Makefile.am): Likewise.
10453 * modules/gethostname (Makefile.am): Likewise.
10454 * modules/gethrxtime (Makefile.am): Likewise.
10455 * modules/getline (Makefile.am): Likewise.
10456 * modules/getloadavg (Makefile.am): Likewise.
10457 * modules/getlogin_r (Makefile.am): Likewise.
10458 * modules/getopt (Makefile.am): Likewise.
10459 * modules/getpass (Makefile.am): Likewise.
10460 * modules/getpass-gnu (Makefile.am): Likewise.
10461 * modules/getsubopt (Makefile.am): Likewise.
10462 * modules/gettime (Makefile.am): Likewise.
10463 * modules/gettimeofday (Makefile.am): Likewise.
10464 * modules/getugroups (Makefile.am): Likewise.
10465 * modules/getusershell (Makefile.am): Likewise.
10466 * modules/glob (Makefile.am): Likewise.
10467 * modules/group-member (Makefile.am): Likewise.
10468 * modules/hard-locale (Makefile.am): Likewise.
10469 * modules/hash (Makefile.am): Likewise.
10470 * modules/hmac-md5 (Makefile.am): Likewise.
10471 * modules/hmac-sha1 (Makefile.am): Likewise.
10472 * modules/human (Makefile.am): Likewise.
10473 * modules/idcache (Makefile.am): Likewise.
10474 * modules/imaxabs (Makefile.am): Likewise.
10475 * modules/imaxdiv (Makefile.am): Likewise.
10476 * modules/inet_ntop (Makefile.am): Likewise.
10477 * modules/inet_pton (Makefile.am): Likewise.
10478 * modules/inttostr (Makefile.am): Likewise.
10479 * modules/isapipe (Makefile.am): Likewise.
10480 * modules/lchown (Makefile.am): Likewise.
10481 * modules/long-options (Makefile.am): Likewise.
10482 * modules/lstat (Makefile.am): Likewise.
10483 * modules/malloc (Makefile.am): Likewise.
10484 * modules/mathl (Makefile.am): Likewise.
10485 * modules/mbchar (Makefile.am): Likewise.
10486 * modules/md2 (Makefile.am): Likewise.
10487 * modules/md4 (Makefile.am): Likewise.
10488 * modules/md5 (Makefile.am): Likewise.
10489 * modules/memcasecmp (Makefile.am): Likewise.
10490 * modules/memchr (Makefile.am): Likewise.
10491 * modules/memcmp (Makefile.am): Likewise.
10492 * modules/memcoll (Makefile.am): Likewise.
10493 * modules/memcpy (Makefile.am): Likewise.
10494 * modules/memmem (Makefile.am): Likewise.
10495 * modules/memmove (Makefile.am): Likewise.
10496 * modules/mempcpy (Makefile.am): Likewise.
10497 * modules/memrchr (Makefile.am): Likewise.
10498 * modules/memset (Makefile.am): Likewise.
10499 * modules/memxor (Makefile.am): Likewise.
10500 * modules/mkancesdirs (Makefile.am): Likewise.
10501 * modules/mkdir (Makefile.am): Likewise.
10502 * modules/mkdir-p (Makefile.am): Likewise.
10503 * modules/mkdtemp (Makefile.am): Likewise.
10504 * modules/mkstemp (Makefile.am): Likewise.
10505 * modules/mktime (Makefile.am): Likewise.
10506 * modules/modechange (Makefile.am): Likewise.
10507 * modules/mountlist (Makefile.am): Likewise.
10508 * modules/nanosleep (Makefile.am): Likewise.
10509 * modules/openat (Makefile.am): Likewise.
10510 * modules/pagealign_alloc (Makefile.am): Likewise.
10511 * modules/physmem (Makefile.am): Likewise.
10512 * modules/poll (Makefile.am): Likewise.
10513 * modules/posixtm (Makefile.am): Likewise.
10514 * modules/posixver (Makefile.am): Likewise.
10515 * modules/putenv (Makefile.am): Likewise.
10516 * modules/quote (Makefile.am): Likewise.
10517 * modules/quotearg (Makefile.am): Likewise.
10518 * modules/raise (Makefile.am): Likewise.
10519 * modules/read-file (Makefile.am): Likewise.
10520 * modules/readline (Makefile.am): Likewise.
10521 * modules/readlink (Makefile.am): Likewise.
10522 * modules/readtokens (Makefile.am): Likewise.
10523 * modules/readutmp (Makefile.am): Likewise.
10524 * modules/realloc (Makefile.am): Likewise.
10525 * modules/regex (Makefile.am): Likewise.
10526 * modules/rename (Makefile.am): Likewise.
10527 * modules/rename-dest-slash (Makefile.am): Likewise.
10528 * modules/rijndael (Makefile.am): Likewise.
10529 * modules/rmdir (Makefile.am): Likewise.
10530 * modules/rpmatch (Makefile.am): Likewise.
10531 * modules/safe-read (Makefile.am): Likewise.
10532 * modules/safe-write (Makefile.am): Likewise.
10533 * modules/same (Makefile.am): Likewise.
10534 * modules/save-cwd (Makefile.am): Likewise.
10535 * modules/savedir (Makefile.am): Likewise.
10536 * modules/setenv (Makefile.am): Likewise.
10537 * modules/settime (Makefile.am): Likewise.
10538 * modules/sha1 (Makefile.am): Likewise.
10539 * modules/sig2str (Makefile.am): Likewise.
10540 * modules/snprintf (Makefile.am): Likewise.
10541 * modules/stdlib-safer (Makefile.am): Likewise.
10542 * modules/stpcpy (Makefile.am): Likewise.
10543 * modules/stpncpy (Makefile.am): Likewise.
10544 * modules/strcase (Makefile.am): Likewise.
10545 * modules/strcasestr (Makefile.am): Likewise.
10546 * modules/strchrnul (Makefile.am): Likewise.
10547 * modules/strcspn (Makefile.am): Likewise.
10548 * modules/strdup (Makefile.am): Likewise.
10549 * modules/strerror (Makefile.am): Likewise.
10550 * modules/strftime (Makefile.am): Likewise.
10551 * modules/strndup (Makefile.am): Likewise.
10552 * modules/strnlen (Makefile.am): Likewise.
10553 * modules/strpbrk (Makefile.am): Likewise.
10554 * modules/strsep (Makefile.am): Likewise.
10555 * modules/strstr (Makefile.am): Likewise.
10556 * modules/strtod (Makefile.am): Likewise.
10557 * modules/strtoimax (Makefile.am): Likewise.
10558 * modules/strtok_r (Makefile.am): Likewise.
10559 * modules/strtol (Makefile.am): Likewise.
10560 * modules/strtoll (Makefile.am): Likewise.
10561 * modules/strtoul (Makefile.am): Likewise.
10562 * modules/strtoull (Makefile.am): Likewise.
10563 * modules/strtoumax (Makefile.am): Likewise.
10564 * modules/strverscmp (Makefile.am): Likewise.
10565 * modules/time_r (Makefile.am): Likewise.
10566 * modules/timegm (Makefile.am): Likewise.
10567 * modules/tmpfile-safer (Makefile.am): Likewise.
10568 * modules/unistd-safer (Makefile.am): Likewise.
10569 * modules/unlinkdir (Makefile.am): Likewise.
10570 * modules/userspec (Makefile.am): Likewise.
10571 * modules/utime (Makefile.am): Likewise.
10572 * modules/utimecmp (Makefile.am): Likewise.
10573 * modules/utimens (Makefile.am): Likewise.
10574 * modules/vasnprintf (Makefile.am): Likewise.
10575 * modules/vasprintf (Makefile.am): Likewise.
10576 * modules/vsnprintf (Makefile.am): Likewise.
10577 * modules/xalloc (Makefile.am): Likewise.
10578 * modules/xgetcwd (Makefile.am): Likewise.
10579 * modules/xnanosleep (Makefile.am): Likewise.
10580 * modules/xreadlink (Makefile.am): Likewise.
10581 * modules/xstrtod (Makefile.am): Likewise.
10582 * modules/xstrtol (Makefile.am): Likewise.
10583 * modules/xstrtold (Makefile.am): Likewise.
10584 * modules/yesno (Makefile.am): Likewise.
10586 2006-10-12 Jim Meyering <jim@meyering.net>
10588 * m4/getloadavg.m4: Revert the change below.
10590 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
10591 lib/getloadavg.c using "ls -L", not "test -f". The latter would
10592 fail with a symlink, which is what coreutils' ./bootstrap now
10593 creates by default.
10595 2006-10-12 Bruno Haible <bruno@clisp.org>
10597 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
10599 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
10600 MSVC and mingw explicitly.
10602 2006-10-11 Simon Josefsson <jas@extundo.com>
10603 Bruno Haible <bruno@clisp.org>
10605 Add support for multiple gnulib-tool invocations in the scope of a
10606 single configure.ac file.
10607 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
10608 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
10609 with the same contents as the _LIBADD variable.
10610 (func_emit_initmacro_start, func_emit_initmacro_end,
10611 func_emit_initmacro_done): New functions.
10612 (func_import, func_create_testdir): Invoke them. Allow the identifiers
10613 gl_LIBOBJS and gl_LTLIBOBJS.
10615 2006-10-11 Bruno Haible <bruno@clisp.org>
10617 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
10618 (func_create_testdir): Don't create po/Makefile.am, don't invoke
10619 autoreconf. Instead, invoke autopoint explicitly but move back the
10620 *.m4 files from gnulib.
10622 2006-10-11 Bruno Haible <bruno@clisp.org>
10624 * gnulib-tool (func_usage): Make module names after --create-testdir
10626 (func_create_testdir): If no module was specified, use nearly all
10629 2006-10-12 Jim Meyering <jim@meyering.net>
10631 Big performance improvement for fts-based tools that use FTS_NOSTAT.
10632 Avoid spurious inode-mismatch problems on non-POSIX file systems.
10633 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
10634 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
10635 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
10636 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
10637 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
10638 (fts_set_stat_required): New function.
10639 (fts_open): Defer the calls to fts_stat, if possible or requested.
10640 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
10641 into fts_stat itself.
10642 (fts_read): Perform any required (deferred) fts_stat call.
10643 (fts_build): Likewise, for the directory we're about to open and read.
10644 In the readdir loop, carefully decide whether each entry will require
10645 an eventual call to fts_stat, using dirent.d_type info if available.
10646 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
10647 a command line argument into this function. Update all callers.
10648 Map a return value of FTS_DOT to FTS_D for a command line argument.
10649 * modules/fts (Depends-on): Add d-type. Alphabetize.
10650 Thanks to Miklos Szeredi for his tenacity and for the initial
10651 bug report about "find" failing on a FUSE-based file system.
10653 * lib/fts.c (fts_open): Use consistent indentation.
10655 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10657 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
10658 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
10659 reported by Jim Meyering. All uses of cache variables renamed
10660 to match Autoconf's.
10661 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
10664 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10665 Fix misspelling in diagnostic.
10667 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10669 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
10670 defined. Problem reported by Matthew Woehlke.
10672 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
10673 Add support for Tandem NonStop R series.
10674 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
10677 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
10678 (has_trailing_slash): Omit size arg; all callers changed.
10679 Omit 'inline', since it doesn't help performance and we'd
10680 need to configure it.
10681 Don't count //, ///, etc. as having a trailing slash.
10682 As a side effect, this removes a C99ism reported by Matthew Woehlke.
10683 (rpl_rename_dest_slash): On failure, use rename's errno rather
10684 than (in some cases) an incorrect or junk errno.
10685 Simplify code by removing need to compute length; this does
10686 cause it to make two passes instead of one over the file name,
10689 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
10690 change, since Autoconf's version may no longer be appropriate now
10691 that we are using CVS Autoconf's version. Add support for Tandem.
10693 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10694 Bruno Haible <bruno@clisp.org>
10696 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
10697 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
10698 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
10699 gl_AC_TYPE_LONG_LONG.
10701 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
10702 instead of HAVE_LONG_LONG.
10703 * lib/printf-args.c (printf_fetchargs): Likewise.
10704 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10705 * lib/vasnprintf.c (VASNPRINTF): Likewise.
10706 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10707 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
10708 gl_AC_TYPE_LONG_LONG.
10710 2006-10-11 Bruno Haible <bruno@clisp.org>
10712 * m4/longlong.m4: Add comments.
10713 * m4/ulonglong.m4: Likewise.
10715 2006-10-10 Bruno Haible <bruno@clisp.org>
10717 Make it possible to #define stpcpy, strdup to aliases.
10718 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10719 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10721 2006-10-10 Bruno Haible <bruno@clisp.org>
10723 Make it possible to #define gcd to an alias.
10724 * lib/gcd.c: Include config.h.
10726 2006-10-10 Bruno Haible <bruno@clisp.org>
10728 Make it possible to #define c_isascii to an alias.
10729 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10730 defined. Undefine the macros before defining them, to avoid gcc
10732 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10733 define NO_C_CTYPE_MACROS early.
10735 2006-10-10 Bruno Haible <bruno@clisp.org>
10737 Make it possible to #define set_program_name to an alias.
10738 * lib/progname.c: Don't undefine set_program_name; instead, undefine
10739 ENABLE_RELOCATABLE early.
10741 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
10743 Port to Tandem NSK OSS, which has 64-bit signed int but at most
10744 32-bit unsigned int. Problem reported by Matthew Woehlke in:
10745 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10746 More generally, don't assume that 64-bit signed int is available
10747 if unsigned int is, and vice versa.
10748 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10749 unsigned symbols, not on their signed counterparts.
10750 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10751 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10752 (UINT64_C, UINTMAX_C):
10754 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10755 unsigned counterparts.
10756 (Have_long_long, Unsigned): New macros.
10757 (Int): Renamed from INT.
10758 (strtoimax): Use the new macros.
10759 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10760 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10761 * modules/inttypes (inttypes.h): Substitute
10762 HAVE_UNSIGNED_LONG_LONG_INT.
10763 * modules/stdint (stdint.h): Likewise.
10764 (Files): Add m4/ulonglong.m4.
10766 2006-10-10 Bruno Haible <bruno@clisp.org>
10768 Fix a gcc -Wshadow warning.
10769 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10771 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10772 gl_linked_indexof_from_to): Likewise.
10773 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10775 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10777 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10778 Reported by Eric Blake.
10780 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
10782 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
10783 for NetBSD. Problem reported by Bruno Haible.
10785 2006-10-09 Jim Meyering <jim@meyering.net>
10787 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
10788 Patch from Bruno Haible.
10790 2006-10-09 Jim Meyering <jim@meyering.net>
10792 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
10793 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
10794 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
10796 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
10798 Don't include <config.h> twice; this doesn't work in some cases,
10799 e.g., when config.h has "#define intmax_t long long int" and
10800 we include <config.h>, <inttypes.h>, <config.h> in that order.
10801 Problem reported by Matthew Woehlke in:
10802 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
10803 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
10804 * lib/fts-cycle.c: Don't include config.h.
10805 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
10806 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
10807 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
10808 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
10810 * lib/xstrtoumax.c: Likewise.
10811 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
10812 __strtol and the like, so that this module is more like its siblings.
10813 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
10814 Remove; no longer needed now that we assume gnulib inttypes.h.
10816 2006-10-08 Bruno Haible <bruno@clisp.org>
10818 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
10821 2006-10-07 Jim Meyering <jim@meyering.net>
10823 * modules/inttypes (inttypes.h): Revert what seems to have been
10824 an inadvertent part of today's change: use "|", not "/" in the
10825 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
10827 2006-10-07 Bruno Haible <bruno@clisp.org>
10829 * modules/sublist: New file.
10831 2006-10-07 Bruno Haible <bruno@clisp.org>
10833 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
10834 * modules/argz (argz.h): Likewise.
10835 * modules/arpa_inet (arpa/inet.h): Likewise.
10836 * modules/byteswap (byteswap.h): Likewise.
10837 * modules/configmake (configmake.h): Likewise.
10838 * modules/fcntl (fcntl.h): Likewise.
10839 * modules/fnmatch (fnmatch.h): Likewise.
10840 * modules/getopt (getopt.h): Likewise.
10841 * modules/glob (glob.h): Likewise.
10842 * modules/inttypes (inttypes.h): Likewise.
10843 * modules/netinet_in (netinet/in.h): Likewise.
10844 * modules/poll (poll.h): Likewise.
10845 * modules/stdbool (stdbool.h): Likewise.
10846 * modules/stdint (stdint.h): Likewise.
10847 * modules/sys_select (sys/select.h): Likewise.
10848 * modules/sys_socket (sys/socket.h): Likewise.
10849 * modules/sys_stat (sys/stat.h): Likewise.
10850 * modules/sysexits (sysexits.h): Likewise.
10851 * modules/unistd (unistd.h): Likewise.
10852 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10853 Add a "DO NOT EDIT" comment to the generated file.
10854 (func_import): Likewise for gnulib-comp.m4.
10856 2006-10-07 Bruno Haible <bruno@clisp.org>
10858 * lib/gl_sublist.h: New file.
10859 * lib/gl_sublist.c: New file.
10861 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
10863 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
10864 name (relative to the original working directory) and the file
10865 name component (relative to the temporary working directory). All
10867 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
10868 * lib/mkdir-p.c (make_dir_parents): Likewise.
10869 * lib/mkdir-p.h (make_dir_parents): Likewise.
10871 2006-10-06 Eric Blake <ebb9@byu.net>
10873 Define several macros for use by the clean-temp module.
10874 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
10875 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
10876 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
10878 * lib/clean-temp.h (close_stream_temp): New declaration.
10879 * lib/clean-temp.c (includes): Pull in headers according to what
10880 other modules are in use.
10881 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
10883 2006-10-06 Bruno Haible <bruno@clisp.org>
10885 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
10886 instead of fopen, fwriteerror.
10888 2006-10-06 Bruno Haible <bruno@clisp.org>
10890 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
10891 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
10893 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
10894 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
10895 Return an error indicator.
10896 Suggested by Eric Blake.
10898 2006-10-06 Bruno Haible <bruno@clisp.org>
10900 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
10901 Reported by Eric Blake.
10903 2006-10-06 Bruno Haible <bruno@clisp.org>
10905 * modules/closeout (Description): Mention stderr too.
10907 2006-10-06 Bruno Haible <bruno@clisp.org>
10908 and Paul Eggert <eggert@cs.ucla.edu>
10910 * lib/closeout.c (close_stdout): Also close stderr.
10911 * lib/closeout.h: Update comment.
10913 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
10915 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
10916 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
10917 * lib/dirchownmod.c: Include lchown.h.
10918 * lib/lchown.c: Don't include files that lchown.h now includes.
10919 Don't declare chown, since lchown.h now does that.
10920 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
10921 (lchown): Define to rpl_chown if lchown is declared but
10922 does not exist. Declare using a prototype if lchown is not
10923 declared. Add a copyright notice.
10924 * lib/mkstemp.h: Include <unistd.h>.
10925 * lib/openat.c: Include lchown.h.
10927 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
10928 we now test for that separately.
10929 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
10930 rather than O_NOFOLLOW, when testing whether it's possible to
10931 avoid a race condition reliably.
10932 * lib/savewd.c (savewd_chdir): Likewise.
10934 Remove macros that are no longer needed now that stdint.h is
10936 * lib/fsusage.c (UINTMAX_MAX): Remove.
10937 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
10938 * lib/utimecmp.c (SIZE_MAX): Remove.
10940 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
10942 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
10943 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
10946 2006-10-05 Bruno Haible <bruno@clisp.org>
10948 * lib/gl_list.h (gl_sortedlist_search_from_to,
10949 gl_sortedlist_indexof_from_to): New declarations.
10950 (gl_list_implementation): New fields sortedlist_search_from_to,
10951 sortedlist_indexof_from_to.
10952 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
10954 * lib/gl_list.c (gl_sortedlist_search_from_to,
10955 gl_sortedlist_indexof_from_to): New functions.
10956 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
10958 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
10959 (gl_array_sortedlist_search_from_to): New function.
10960 (gl_array_list_implementation): Update.
10961 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
10963 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
10964 (gl_carray_sortedlist_search_from_to): New function.
10965 (gl_carray_list_implementation): Update.
10966 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
10967 gl_linked_sortedlist_indexof_from_to): New functions.
10968 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10969 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10970 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
10971 gl_tree_sortedlist_indexof_from_to): New functions.
10972 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10973 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10975 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10976 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
10979 2006-10-05 Bruno Haible <bruno@clisp.org>
10981 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
10982 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
10983 (struct gl_list_implementation): Add fields search_from_to,
10984 indexof_from_to. Remove fields search, indexof.
10985 (gl_list_search): Use the search_from_to method.
10986 (gl_list_search_from, gl_list_search_from_to): New functions.
10987 (gl_list_indexof): Use the indexof_from_to method.
10988 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10989 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
10990 (gl_list_search_from, gl_list_search_from_to): New functions.
10991 (gl_list_indexof): Use the indexof_from_to method.
10992 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10993 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
10994 gl_array_indexof. Add start_index, end_index arguments.
10995 (gl_array_search_from_to): Renamed from gl_array_search. Add
10996 start_index, end_index arguments.
10997 (gl_array_remove, gl_array_list_implementation): Update.
10998 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
10999 gl_carray_indexof. Add start_index, end_index arguments.
11000 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
11001 start_index, end_index arguments.
11002 (gl_carray_remove, gl_carray_list_implementation): Update.
11003 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
11004 gl_linked_search. Add start_index, end_index arguments.
11005 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
11006 start_index, end_index arguments.
11007 (gl_linked_remove): Update.
11008 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
11009 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
11010 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
11012 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
11013 gl_tree_search. Add start_index, end_index arguments.
11014 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
11015 start_index, end_index arguments.
11016 (gl_tree_remove): Update.
11017 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
11018 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
11019 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
11021 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
11022 gl_tree_search. Add start_index, end_index arguments.
11023 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
11024 start_index, end_index arguments.
11025 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
11027 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
11029 2006-10-05 Bruno Haible <bruno@clisp.org>
11031 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
11033 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
11034 fwriteerror_temp): New declarations.
11035 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
11036 (descriptors): New variable.
11037 (cleanup): First, close the descriptors.
11038 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
11039 fclose_temp, fwriteerror_temp): New functions.
11041 2006-10-04 Jim Meyering <jim@meyering.net>
11043 * lib/fts.c (fts_open): Tiny comment change.
11045 2006-10-04 Bruno Haible <bruno@clisp.org>
11047 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
11048 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
11050 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
11051 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
11052 gl_LOCK_EARLY_BODY.
11053 (gl_LOCK): Require gl_LOCK_BODY.
11055 2006-10-04 Bruno Haible <bruno@clisp.org>
11057 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
11058 (gl_oset_search_atleast): New declaration.
11059 (struct gl_oset_implementation): Add field 'search_atleast'.
11060 (gl_oset_search_atleast): New inline function.
11061 * lib/gl_oset.c (gl_oset_search_atleast): New function.
11062 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
11063 (gl_array_oset_implementation): Update.
11064 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
11065 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
11066 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
11068 2006-10-04 Bruno Haible <bruno@clisp.org>
11070 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
11072 2006-10-03 Bruno Haible <bruno@clisp.org>
11074 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
11075 from gl_avltreehash_list_implementation.
11077 2006-10-03 Bruno Haible <bruno@clisp.org>
11079 * lib/gl_oset.c (gl_oset_add): Fix return type.
11081 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
11083 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
11085 2006-10-02 Eric Blake <ebb9@byu.net>
11087 * modules/strnlen (Depends-on): Add extensions.
11089 2006-10-02 Eric Blake <ebb9@byu.net>
11091 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
11092 definition in 2.60+.
11094 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11096 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
11099 2006-10-02 Bruno Haible <bruno@clisp.org>
11101 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
11102 to the AUTOMAKE_OPTIONS.
11103 Reported by Jim Meyering.
11105 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
11107 Work around bug in Solaris 10 /proc file system:
11108 /proc/self/fd/NNN/.. isn't the parent directory of
11109 the directory whose file descriptor is NNN. This needs to
11110 be worked around at run time, not compile time, since a
11111 program might be built on Solaris 8, where things work, and
11113 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
11114 to use the following interface instead:
11115 (OPENAT_BUFFER_SIZE): New macro.
11116 (openat_proc_name): New function.
11117 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
11118 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
11120 * lib/openat-proc.c: New file.
11121 * modules/openat (Files): Add lib/openat-proc.c.
11122 (Depends-on): Add same-inode, stdbool.
11123 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
11125 2006-09-29 Bruno Haible <bruno@clisp.org>
11127 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
11128 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
11129 argument. Set stdout_closed before testing for ferror, not after.
11130 (fwriteerror, fwriteerror_no_ebadf): New functions.
11132 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11134 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
11136 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
11138 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
11139 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
11141 2006-09-28 Jim Meyering <jim@meyering.net>
11143 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
11144 Include <unistd.h>.
11146 2006-09-28 Bruno Haible <bruno@clisp.org>
11148 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
11149 * modules/linkedhash-list (Depends-on): Likewise.
11150 * modules/rbtreehash-list (Depends-on): Likewise.
11152 2006-09-28 Bruno Haible <bruno@clisp.org>
11154 * lib/strndup.h: Simplify the redefinition of strndup.
11155 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
11156 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
11158 2006-09-28 Bruno Haible <bruno@clisp.org>
11160 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
11161 * lib/gl_linkedhash_list.c: Likewise.
11162 * lib/gl_rbtreehash_list.c: Likewise.
11164 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
11166 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
11169 * lib/__fpending.h: Don't include <stdio_ext.h> unless
11170 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
11171 it causes <stdio_ext.h> to cause a compile-time error.
11172 Problem reported by Nelson H. F. Beebe.
11173 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
11174 of HAVE_DECL___PENDING.
11176 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
11177 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
11180 2006-09-27 Jim Meyering <jim@meyering.net>
11182 This file could end up with a definition for a function
11183 named __strndup, rather than rpl_strndup on a system with
11184 incomplete weak_alias support.
11185 * lib/strndup.c (strndup): Rename from __strndup.
11186 Remove #defines that used to map __strndup to strndup.
11187 Don't use K&R prototypes.
11188 Remove LIBC-related code, since this file is not sync'd with glibc.
11189 * lib/strndup.h: Revamp, accordingly.
11190 * m4/strndup.m4: Modernize.
11192 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
11194 * modules/savewd (Depends-on): Add 'raise'.
11195 * lib/savewd.c: Include <signal.h>, for 'raise'.
11197 2006-09-26 Jim Meyering <jim@meyering.net>
11199 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
11200 when we detect Darwin 8.7.0's acl_get_file bug.
11201 Rearrange to perform the new (below) run-test while $LIBS
11202 contains any acl-related library. Set USE_ACL at the end.
11203 (gl_ACL_GET_FILE): New function.
11205 2006-09-26 Eric Blake <ebb9@byu.net>
11207 * lib/verror.c: Include <config.h> unconditionally.
11209 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
11211 * modules/clock-time (Maintainer): Add self.
11212 * modules/getlogin_r (Depends-on): Add extensions.
11214 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11216 * modules/clock-time: New module.
11217 * modules/nanosleep (Depends-on): Add clock-time.
11218 * modules/gethrxtime (Depends-on): Likewise.
11219 * modules/gettime (Depends-on): Likewise.
11220 * modules/settime (Depends-on): Likewise.
11222 * modules/fts-lgpl: Depend on openat.
11223 * modules/mkancesdirs: Depend on savewd.
11224 * modules/mkdir-p: Likewise.
11226 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11228 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
11230 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
11231 `gl_have_arbitrary_file_name_length_limit' to
11232 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
11233 actually works between configure runs.
11235 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11236 Bruno Haible <bruno@clisp.org>
11238 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
11240 2006-09-25 Jim Meyering <jim@meyering.net>
11242 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
11243 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
11245 2006-09-25 Eric Blake <ebb9@byu.net>
11247 * gnulib-tool (func_import, func_create_testdir): Fix typos in
11248 exec's in 2006-09-18 patch when shuffling fds.
11250 2006-09-25 Bruno Haible <bruno@clisp.org>
11252 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
11253 Reported by Jim Meyering.
11255 2006-09-24 Jim Meyering <jim@meyering.net>
11257 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
11258 compare a pointer against a literal "0". That caused failures with
11259 at least HP-UX's hpcc.
11261 2006-09-22 Simon Josefsson <jas@extundo.com>
11265 * modules/gc-hmac-sha1:
11266 * modules/gc-hmac-md5:
11268 * modules/gc-arcfour: Distribute more files.
11270 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11272 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
11273 (gl_linked_iterator_from_to): Initialize struct completely.
11274 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
11275 (gl_tree_iterator_from_to): Likewise
11276 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
11277 * lib/gl_array_list.c [lint] (gl_array_iterator)
11278 (gl_array_iterator_from_to): Likewise.
11279 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
11280 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
11281 (gl_carray_iterator_from_to): Likewise.
11283 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
11284 * lib/md4.c (md4_process_block): Remove unused variable.
11285 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
11286 parentheses for clarity.
11288 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11290 * modules/bison-i18n (Depends-on): Add gettext.
11292 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11294 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
11295 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11296 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
11297 also add missing comma that caused broken test.
11298 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
11299 stdlib.h, for `abort'.
11300 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
11302 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
11303 include unistd.h if present, for `rmdir'.
11304 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
11306 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
11307 in the process include standard headers for prototypes.
11308 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
11309 gets declared on GNU/Linux.
11310 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
11311 unistd.h, for `rmdir'.
11312 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
11314 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
11316 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
11318 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
11320 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11322 * gnulib-tool (func_version): Create output all at once. This
11323 may help avoid triggering unnecessary SIGPIPEs, and at any
11324 rate it doesn't hurt.
11326 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11327 Bruno Haible <bruno@clisp.org>
11329 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
11330 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11331 * m4/signed.m4 (bh_C_SIGNED): Likewise.
11333 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
11334 (gl_FUNC_VASPRINTF): Invoke it.
11336 2006-09-22 Bruno Haible <bruno@clisp.org>
11338 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
11339 getloadavg.c as first argument.
11341 2006-09-22 Bruno Haible <bruno@clisp.org>
11343 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
11344 at the beginning of the gl_INIT macro.
11345 * modules/getloadavg (configure.ac): Pass $gl_source_base to
11348 2006-09-22 Bruno Haible <bruno@clisp.org>
11350 * gnulib-tool (func_create_megatestdir): Don't include the config-h
11352 Suggested by Ralf Wildenhues.
11354 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
11356 Import this patch from libc:
11358 2006-09-06 Jakub Jelinek <jakub@redhat.com>
11360 * lib/regex_internal.c (re_string_reconstruct): Handle
11361 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11362 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11363 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11364 re_string_context_at.
11366 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
11368 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
11369 gl_REGEX now does it for us.
11370 (gl_REGEX): Add test taken from
11371 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
11373 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
11374 Check that large offsets work. Modernize Autoconf usages.
11375 Prefer "yes" to mean a good thing rather than a bad.
11376 Don't put "#define mkstemp" in config.h, as this might interfere
11377 with standard system headers that "#define mkstemp mkstemp64".
11379 * modules/mkstemp (Depends-on): Add extensions, so that
11380 mkstemp is visible on some platforms.
11381 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
11382 (Include): Change to "mkstemp.h" from <stdlib.h>.
11383 (Files): Add mkstemp.h.
11385 * lib/mkstemp.h: New file, since some standard headers
11387 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
11388 Include "mkstemp.h".
11389 Make the _LIBC code resemble glibc original more,
11390 e.g., use K&R style.
11391 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
11392 (mkstemp): Remove, since mkstemp.h does this for us.
11393 * lib/stdlib--.h: Include mkstemp.h.
11395 Import this patch from libc:
11397 2006-04-07 Ulrich Drepper <drepper@redhat.com>
11399 * lib/tempname.c (__gen_tempname): Change attempts_min
11400 into a macro. Use preprocessor to decide how to initialize
11401 attempts [Coverity CID 67].
11403 2006-09-20 Bruno Haible <bruno@clisp.org>
11405 * lib/mkdtemp.c: Import from libc.
11406 2006-04-07 Ulrich Drepper <drepper@redhat.com>
11407 * sysdeps/posix/tempname.c (__gen_tempname): Change
11408 attempts_min into a macro. Use preprocessor to decide how to
11409 initialize attempts [Coverity CID 67].
11410 2001-11-27 Paul Eggert <eggert@twinsun.com>
11411 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11412 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11414 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11416 * gnulib-tool (func_exit): New function, to allow to pass the
11417 exit status portably through the trap. Use everywhere.
11418 (--help, --version): Signal a write error.
11419 (trap): catch SIGPIPE, for write errors.
11420 Exit at the end of the trap, with the correct exit status.
11422 2006-09-19 Karl Berry <karl@gnu.org>
11424 * doc/gnulib.texi: note about the license texinfo files.
11426 2006-09-19 Eric Blake <ebb9@byu.net>
11428 * gnulib-tool: Avoid space-tab.
11430 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
11432 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
11433 that prevented coreutils 6.1 from building. Problem reported
11434 by Petter Reinholdtsen.
11436 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
11438 * gnulib-tool (avoidlist): Fix typo that broke options like
11439 --avoid=lock that are used by coreutils bootstrap.
11441 2006-09-18 Mark D. Baushke <mdb@gnu.org>
11443 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
11444 more systematically.
11446 2006-09-18 Jim Meyering <jim@meyering.net>
11448 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
11450 2006-09-18 Bruno Haible <bruno@clisp.org>
11452 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
11454 2006-09-18 Bruno Haible <bruno@clisp.org>
11456 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
11457 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
11458 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
11459 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
11460 * m4/gettext.m4: Require autoconf >= 2.52.
11461 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
11462 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
11463 of gl_cv_header_inttypes_h.
11465 2006-09-18 Bruno Haible <bruno@clisp.org>
11467 * lib/javaversion.c: Include configmake.h.
11469 2006-09-18 Bruno Haible <bruno@clisp.org>
11471 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
11472 avoid that the while loops be executed in a subshell.
11474 2006-09-18 Bruno Haible <bruno@clisp.org>
11476 * MODULES.html.sh (func_module): Break long lines.
11477 Suggested by Bruce Korb <bkorb@gnu.org>.
11479 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11481 Speed up by a factor of 1.12.
11482 * gnulib-tool (nl): New variable.
11483 (func_import): Rewrite include directive extraction to only read each
11486 2006-09-17 Bruno Haible <bruno@clisp.org>
11488 * modules/javaversion (Makefile.am): Remove DEFS setting.
11489 (Depends-on): Add configmake, for PKGDATADIR definition.
11491 2006-09-17 Bruno Haible <bruno@clisp.org>
11493 * gnulib-tool (func_create_testdir): Rewrite all files at once.
11495 2006-09-17 Bruno Haible <bruno@clisp.org>
11497 * gnulib-tool (func_append): New function, stolen from libtool.m4.
11498 (func_modules_transitive_closure, func_modules_add_dummy,
11499 func_modules_to_filelist, func_import, func_create_testdir,
11500 func_create_megatestdir, ...): Use it wherever possible.
11501 Suggested by Ralf Wildenhues.
11503 2006-09-16 Karl Berry <karl@gnu.org>
11505 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
11506 to avoid sectioning errors.
11507 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
11508 [ifinfo]: blank line after @center-ed titles.
11509 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
11510 Spell FSF address consistently with others.
11511 (These changes approved by rms.)
11513 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11515 Speed up by a factor of 1.61.
11516 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
11517 already checked module names again.
11519 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11521 Speed up by a factor of 1.13.
11522 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
11523 for new_files, and the input to func_add_or_update.
11525 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11527 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
11528 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
11530 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11532 * modules/mkancesdirs (Depends-on): Add fcntl.
11533 * modules/savewd: New file.
11534 * MODULES.html.sh (File system functions): Add savewd.
11536 * modules/configmake (Makefile.am): Add support for the
11537 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
11539 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11541 * m4/savewd.m4: New file.
11543 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11545 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
11546 (dirchownmod): New arg FD. All callers changed.
11547 Use FD rather than opening the directory ourself, as opening is
11548 now the caller's responsibility.
11549 * lib/dirchownmod.h: Likewise.
11550 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
11551 hosts that require <sys/types.h> before <sys/stat.h>. Include
11552 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
11553 (test_dir): Remove.
11554 (mkancesdirs): Return length of prefix of FILE that has already
11555 been made, or -2 if there is a child doing the work. Redo
11556 algorithm so that it is O(N) rather than O(N**2). Optimize away
11557 ".", and treat ".." specially since it might stray back into
11558 already-created areas. Use a subprocess if necessary. New arg
11559 WD; all users changed. MAKE_DIR function should now return 1
11560 if it creates a directory that is not readable. Return -2 if
11561 a child process is spun off.
11562 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
11563 Adjust signature to match code.
11564 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
11565 (make_dir_parents): Use a subprocess if necessary. New arg WD;
11567 * lib/savewd.c, lib/savewd.h: New files.
11569 2006-09-15 Jim Meyering <jim@meyering.net>
11571 * modules/rename-dest-slash: New module.
11572 * MODULES.html.sh (posix_compat): Add it here.
11574 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
11576 2006-09-15 Jim Meyering <jim@meyering.net>
11578 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
11581 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
11583 2006-09-15 Jim Meyering <jim@meyering.net>
11585 * lib/rename-dest-slash.c (has_trailing_slash): Use
11586 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
11587 (rpl_rename_dest_slash): Perform the cheaper trailing slash
11588 test before testing whether SRC is a directory.
11589 Suggestions from Bruno Haible.
11591 Avoid a warning about an unused variable.
11592 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
11593 into the #ifdef block where it's used.
11595 * lib/rename-dest-slash.c: New file.
11597 2006-09-14 Bruno Haible <bruno@clisp.org>
11599 * lib/allocsa.c: Include <config.h> unconditionally.
11600 * lib/asnprintf.c: Likewise.
11601 * lib/asprintf.c: Likewise.
11602 * lib/c-strcasecmp.c: Likewise.
11603 * lib/c-strcasestr.c: Likewise.
11604 * lib/c-strncasecmp.c: Likewise.
11605 * lib/c-strstr.c: Likewise.
11606 * lib/classpath.c: Likewise.
11607 * lib/clean-temp.c: Likewise.
11608 * lib/concatpath.c: Likewise.
11609 * lib/copy-file.c: Likewise.
11610 * lib/csharpcomp.c: Likewise.
11611 * lib/csharpexec.c: Likewise.
11612 * lib/execute.c: Likewise.
11613 * lib/fatal-signal.c: Likewise.
11614 * lib/findprog.c: Likewise.
11615 * lib/fwriteerror.c: Likewise.
11616 * lib/gl_array_list.c: Likewise.
11617 * lib/gl_array_oset.c: Likewise.
11618 * lib/gl_avltree_list.c: Likewise.
11619 * lib/gl_avltree_oset.c: Likewise.
11620 * lib/gl_avltreehash_list.c: Likewise.
11621 * lib/gl_carray_list.c: Likewise.
11622 * lib/gl_linked_list.c: Likewise.
11623 * lib/gl_linkedhash_list.c: Likewise.
11624 * lib/gl_list.c: Likewise.
11625 * lib/gl_oset.c: Likewise.
11626 * lib/gl_rbtree_list.c: Likewise.
11627 * lib/gl_rbtree_oset.c: Likewise.
11628 * lib/gl_rbtreehash_list.c: Likewise.
11629 * lib/imaxabs.c: Likewise.
11630 * lib/imaxdiv.c: Likewise.
11631 * lib/javacomp.c: Likewise.
11632 * lib/javaexec.c: Likewise.
11633 * lib/javaversion.c: Likewise.
11634 * lib/linebreak.c: Likewise.
11635 * lib/localcharset.c: Likewise.
11636 * lib/lock.c: Likewise.
11637 * lib/mbchar.c: Likewise.
11638 * lib/mbswidth.c: Likewise.
11639 * lib/mkdtemp.c: Likewise.
11640 * lib/pipe.c: Likewise.
11641 * lib/printf-args.c: Likewise.
11642 * lib/printf-parse.c: Likewise.
11643 * lib/progname.c: Likewise.
11644 * lib/progreloc.c: Likewise.
11645 * lib/readlink.c: Likewise.
11646 * lib/sh-quote.c: Likewise.
11647 * lib/stpcpy.c: Likewise.
11648 * lib/stpncpy.c: Likewise.
11649 * lib/strcasecmp.c: Likewise.
11650 * lib/strcasestr.c: Likewise.
11651 * lib/strcspn.c: Likewise.
11652 * lib/striconv.c: Likewise.
11653 * lib/strncasecmp.c: Likewise.
11654 * lib/strnlen1.c: Likewise.
11655 * lib/strstr.c: Likewise.
11656 * lib/strtok_r.c: Likewise.
11657 * lib/tls.c: Likewise.
11658 * lib/tmpdir.c: Likewise.
11659 * lib/unicodeio.c: Likewise.
11660 * lib/unsetenv.c: Likewise.
11661 * lib/vasnprintf.c: Likewise.
11662 * lib/vasprintf.c: Likewise.
11663 * lib/wait-process.c: Likewise.
11664 * lib/xallocsa.c: Likewise.
11665 * lib/xsetenv.c: Likewise.
11666 * lib/xstriconv.c: Likewise.
11668 2006-09-13 Simon Josefsson <jas@extundo.com>
11670 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
11671 that internally, suggested by Ralf Wildenhues
11672 <Ralf.Wildenhues@gmx.de>.
11674 2006-09-13 Simon Josefsson <jas@extundo.com>
11676 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
11678 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11680 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
11682 * lib/_fpending.c: Include <config.h> unconditionally, since we no
11683 longer worry about uses that don't define HAVE_CONFIG_H.
11684 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
11685 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
11686 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
11687 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
11688 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
11689 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
11690 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
11691 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
11692 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
11693 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
11694 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
11695 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
11696 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
11697 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
11698 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
11699 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
11700 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
11701 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
11702 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
11703 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
11704 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
11705 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
11706 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
11707 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
11708 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
11709 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
11710 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
11711 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
11712 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
11713 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11714 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11715 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11716 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11717 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11718 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11719 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11720 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11721 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11722 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11723 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11724 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11727 2006-09-13 Eric Blake <ebb9@byu.net>
11729 * lib/getopt.c: Fix typo in last commit.
11731 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
11733 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11736 2006-09-12 Jim Meyering <jim@meyering.net>
11738 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11739 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11740 Reported by Nelson H. F. Beebe.
11742 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
11744 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11745 program_invocation_name and program_invocation_short_name are
11747 * lib/argp-namefrob.h: Move declarations of program_invocation_name
11748 and program_invocation_short_name to argp.h, so they are visible
11750 * lib/argp.h: Likewise
11752 2006-09-10 Bruno Haible <bruno@clisp.org>
11754 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11755 m4/inttypes_h.m4, m4/uintmax_t.m4.
11757 2006-09-10 Bruno Haible <bruno@clisp.org>
11759 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11760 gl_AC_TYPE_UINTMAX_T.
11762 2006-09-10 Bruno Haible <bruno@clisp.org>
11764 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11766 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
11768 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11769 convention. Text proposed by Bruno Haible.
11770 (struct argp_option): Document the use of N_() wrappers.
11772 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11773 '\v', and translate the two parts separately, instead of feeding
11774 the whole string to gettext. This allows to exclude
11775 '\v' from the strings visible to the translator by writing doc
11776 strings as N_("..") "\v" N_("..").
11778 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
11780 * config/srclist.txt: Undo latest change; the bug was fixed.
11782 2006-09-09 Bruno Haible <bruno@clisp.org>
11784 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
11785 assignments if building a library without libtool.
11786 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
11787 in func_emit_lib_Makefile_am.
11788 (func_import): When building a static library libfoo.a, arrange to
11789 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
11790 (func_create_testdir): Likewise.
11791 * modules/gc (configure.ac, Makefile.am): If building statically,
11792 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
11793 * modules/iconvme (configure.ac, Makefile.am): Likewise.
11794 * modules/striconv (configure.ac, Makefile.am): Likewise.
11795 Based on a suggestion by Ralf Wildenhues.
11797 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11799 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11800 Check for unistd.h too, since Autoconf doesn't assume POSIX.
11803 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11804 Add year_2050_test to catch glibc bug 2821
11805 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11807 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11808 Prefer #ifdef to #if.
11810 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
11811 Return from 'main' instead of calling 'exit'.
11813 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11815 * lib/mktime.c (guess_time_tm): Fix bug where mktime
11816 returned the maximum time_t value rather than (time_t) -1.
11817 Problem originally reported by William Bardwell
11818 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11820 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11822 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11825 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11827 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
11830 2006-09-08 Jim Meyering <jim@meyering.net>
11832 Don't make generated files read-only. That would bother too many
11833 people. However, do retain the ability to work when targets are
11834 read-only: remove the destination and temporary files before writing
11835 them (when generated via sed or echo), or by using the -f option for
11836 both cp and mv commands. Suggestion to use -f from Paul Eggert.
11837 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11838 * modules/byteswap, modules/configmake, modules/fcntl:
11839 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11840 * modules/localcharset, modules/netinet_in, modules/poll:
11841 * modules/stdbool, modules/stdint, modules/sys_select:
11842 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11844 2006-09-08 Jim Meyering <jim@meyering.net>
11846 Avoid new build failure on FreeBSD 6.0.
11847 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
11848 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
11849 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
11851 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11853 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
11855 2006-09-07 Jim Meyering <jim@meyering.net>
11857 Fix global typo in last change: use chmod u-w, not chmod u-x.
11858 Spotted by Paul Eggert and Bruce Korb.
11859 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11860 * modules/byteswap, modules/configmake, modules/fcntl:
11861 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11862 * modules/localcharset, modules/netinet_in, modules/poll:
11863 * modules/stdbool, modules/stdint, modules/sys_select:
11864 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11866 2006-09-06 Jim Meyering <jim@meyering.net>
11868 Make generated files be read-only.
11869 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
11870 Ensure that each generated file is now read-only.
11871 * modules/argz: Likewise.
11872 * modules/arpa_inet: Likewise.
11873 * modules/byteswap: Likewise.
11874 * modules/configmake: Likewise.
11875 * modules/fcntl: Likewise.
11876 * modules/fnmatch: Likewise.
11877 * modules/getopt: Likewise.
11878 * modules/glob: Likewise.
11879 * modules/inttypes: Likewise.
11880 * modules/netinet_in: Likewise.
11881 * modules/poll: Likewise.
11882 * modules/stdbool: Likewise.
11883 * modules/stdint: Likewise.
11884 * modules/sys_select: Likewise.
11885 * modules/sys_socket: Likewise.
11886 * modules/sys_stat: Likewise.
11887 * modules/sysexits: Likewise.
11888 * modules/localcharset: Same as above, but continue using temporary
11889 file named "t-$@" (why different?) rather than the "$@-t" used
11892 * modules/sysexits (Makefile.am): Replace literal occurrences
11893 of "sysexit.h" more readable, and more consistent, "$@".
11895 2006-09-06 Bruno Haible <bruno@clisp.org>
11897 * modules/striconv: New file.
11898 * modules/xstriconv: New file.
11899 * MODULES.html.sh (Internationalization functions): Add striconv,
11902 2006-09-06 Bruno Haible <bruno@clisp.org>
11904 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
11905 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
11906 not using libtool correctly.
11908 2006-09-06 Bruno Haible <bruno@clisp.org>
11910 * lib/striconv.h: New file.
11911 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
11913 * lib/xstriconv.h: New file.
11914 * lib/xstriconv.c: New file.
11916 2006-09-06 Bruno Haible <bruno@clisp.org>
11918 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11921 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11923 * lib/argz_.h: Sync from Libtool.
11925 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
11926 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11928 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
11930 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11932 * modules/trim: New file.
11934 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11936 * lib/trim.h: New file.
11937 * lib/trim.c: New file.
11939 2006-09-05 Bruno Haible <bruno@clisp.org>
11941 * MODULES.html.sh (String handling): Add trim.
11943 2006-09-04 Karl Berry <karl@gnu.org>
11945 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
11946 until next release.
11948 2006-09-03 Bruno Haible <bruno@clisp.org>
11950 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
11953 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11955 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
11956 not gl_GETLOADAVG. Omit unneeded semicolons.
11957 Problems reported by Ralf Wildenhues in
11958 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11959 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
11960 at the end, which is the usual gnulib style.
11962 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
11963 of doing all the work ourselves.
11964 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
11965 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
11967 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11969 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
11970 Problem reported by Ralf Wildenhues in
11971 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11973 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
11974 HAVE_STRUCT_STATFS_F_FSTYPENAME.
11976 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11978 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
11979 yesterday's patch by changing test -n to test -z.
11981 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11983 * modules/getloadavg (Files): Add m4/getloadavg.m4.
11984 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
11985 the former is now obsolescent.
11987 * modules/chdir-long (Depends-on): Add fcntl.
11989 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11991 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
11992 obsolescent, and programs should use gnulib instead.
11993 * m4/getloadavg.m4: New file, with contents taken from Autoconf
11994 but with prefixes changed.
11996 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11998 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
11999 or stdbool.h, because they might not exist while configuring.
12001 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
12002 Don't include unistd.h or limits.h; not needed, since chdir-long.h
12004 (O_DIRECTORY): Remove.
12006 2006-08-31 Eric Blake <ebb9@byu.net>
12008 * gnulib-tool: Don't let emacs change spaces to TAB.
12010 2006-08-31 Bruno Haible <bruno@clisp.org>
12012 * gnulib-tool: When calling func_import more than once, do it in a
12014 Reported by Eric Blake <ebb9@byu.net>.
12016 2006-08-31 Bruno Haible <bruno@clisp.org>
12018 * gnulib-tool (nl): Remove variable.
12019 (sed_transform_lib_file): Use more robust test for config-h module.
12020 (func_import): Fix typo in 2006-08-25 patch.
12022 2006-08-31 Bruno Haible <bruno@clisp.org>
12024 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
12025 specified, augment Makefile.am variables instead of assigning them.
12027 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
12029 Work around a bug in both the Linux and SunOS 64-bit kernels:
12030 nanosleep mishandles sleeps for longer than 2**31 seconds.
12031 Problem reported by Frank v Waveren in
12032 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
12033 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
12034 Check for nanosleep bug.
12035 (LIB_NANOSLEEP): Append clock_gettime library if needed.
12037 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
12039 Work around a bug in both the Linux and SunOS 64-bit kernels:
12040 nanosleep mishandles sleeps for longer than 2**31 seconds.
12041 Problem reported by Frank v Waveren in
12042 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
12043 * lib/nanosleep.c (BILLION): New constant.
12044 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
12045 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
12048 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
12050 * modules/nanosleep (Depends-on): Add gettime.
12052 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
12053 and Simon Josefsson <jas@extundo.com>
12054 and Oskar Liljeblad <oskar@osk.mine.nu>
12056 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
12057 * gnulib-tool (func_import): New license type 'unmodifiable license
12059 * modules/fdl: Use it. Longer description.
12060 * module/gpl, module/lgpl: New files.
12062 2006-08-30 Jim Meyering <jim@meyering.net>
12064 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
12065 shadowing the parameter.
12067 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12071 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12073 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
12074 sharing with gnulib. Report by Eric Blake.
12076 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
12078 * modules/isapipe: New file.
12079 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
12081 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
12083 * modules/configmake (Makefile.am): Add a comment, and omit
12084 the CONFIGMAKE_ prefix from generated macro names. Suggested
12087 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
12089 * m4/isapipe.m4: New file.
12091 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
12093 * lib/isapipe.c, lib/isapipe.h: New files.
12095 2006-08-29 Jim Meyering <jim@meyering.net>
12097 * modules/configmake (Makefile.am): Make configmake.h depend on
12098 Makefile. Otherwise, a stale configmake.h could hang around.
12100 2006-08-29 Eric Blake <ebb9@byu.net>
12102 * lib/error.c (error_at_line, print_errno_message): Match libc, after
12103 resolution of upstream bug 3044.
12105 2006-08-29 Bruno Haible <bruno@clisp.org>
12107 * modules/localcharset (Depends-on): Add configmake.
12108 (Makefile.am): Remove setting of LIBDIR through DEFS.
12110 2006-08-29 Bruno Haible <bruno@clisp.org>
12112 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
12115 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12117 * modules/fcntl: New file.
12118 * modules/chdir-safer (Depends-on): Add fcntl.
12119 * modules/fts: Likewise.
12120 * modules/mkdir-p: Likewise.
12122 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
12123 This undoes the most recent change, since we're now addressing the
12124 problem in a different way.
12126 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
12127 into output, since the output might be called Makefile.am even
12128 if $makefile_name is something different.
12129 (func_import): Use $makefile_am rather than
12130 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
12133 * modules/inttypes (Files): Add m4/inttypes-h.m4.
12135 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12137 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
12138 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
12139 recent change to stdint.m4, since we're now addressing the problem in a
12142 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12144 * m4/fcntl_h.m4: New file.
12146 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12148 * lib/fcntl_.h: New file.
12149 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
12151 * lib/dirchownmod.c: Likewise.
12152 * lib/fts.c: Likewise.
12154 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
12155 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
12156 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
12157 just before including <inttypes.h>, to avoid circular inclusion.
12159 2006-08-28 Jim Meyering <jim@meyering.net>
12161 * doc/visibility.texi: Actually read and correct the grammar of the
12162 sentence affected by yesterday's change.
12164 2006-08-28 Eric Blake <ebb9@byu.net>
12166 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
12169 2006-08-28 Eric Blake <ebb9@byu.net>
12171 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
12173 2006-08-28 Eric Blake <ebb9@byu.net>
12175 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
12177 2006-08-28 Bruno Haible <bruno@clisp.org>
12179 * modules/c-strstr: New file, from GNU gettext.
12180 * MODULES.html.sh (String handling): Add c-strstr.
12182 2006-08-28 Bruno Haible <bruno@clisp.org>
12184 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
12186 Reported by Eric Blake.
12188 2006-08-28 Bruno Haible <bruno@clisp.org>
12190 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
12191 (VASNPRINTF): Return a string of length > INT_MAX without failing.
12192 * lib/vasprintf.c: Include errno.h, limits.h.
12193 (EOVERFLOW): New fallback definition.
12194 (vasprintf): Test here whether the string length is > INT_MAX.
12195 * lib/vsnprintf.c: Include errno.h, limits.h.
12196 (EOVERFLOW): New fallback definition.
12197 (vsnprintf): Fix bug when generated string was too long for the buffer.
12198 Test here whether the string length is > INT_MAX.
12200 2006-08-28 Bruno Haible <bruno@clisp.org>
12202 * lib/inttypes_.h (SCNX*): Remove definitions.
12203 Reported by Eric Blake.
12205 2006-08-28 Bruno Haible <bruno@clisp.org>
12207 * lib/c-strstr.h: New file, from GNU gettext.
12208 * lib/c-strstr.c: New file, from GNU gettext.
12210 2006-08-28 Bruno Haible <bruno@clisp.org>
12212 * gnulib-tool: Reorder some statements.
12214 2006-08-28 Bruno Haible <bruno@clisp.org>
12216 * gnulib-tool: New option --makefile-name.
12217 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
12219 (func_import): Write $makefile_name to the cache file, and read it from
12220 there unless explicitly specified. Use $makefile_name as file name
12221 instead of Makefile.am. Adjust the recommendations accordingly.
12223 2006-08-28 Bruno Haible <bruno@clisp.org>
12225 * gnulib-tool (func_verify_module): Check against misapplying patch.
12227 2006-08-28 Bruno Haible <bruno@clisp.org>
12229 * gnulib-tool (func_relativize, func_relconcat): New functions.
12230 Give an error if --local-dir is given with --update.
12231 Remove trailing slashes from $local_gnulib_dir.
12232 (func_import): Store the relativized $local_gnulib_dir in
12233 gnulib-cache.m4, and read it from there if not specified explicitly.
12235 2006-08-28 Bruno Haible <bruno@clisp.org>
12237 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
12238 is the current directory. Respect also $local_gnulib_dir.
12240 2006-08-28 Bruno Haible <bruno@clisp.org>
12241 Simon Josefsson <jas@extundo.com>
12244 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
12246 2006-08-27 Jim Meyering <jim@meyering.net>
12248 * doc/visibility.texi: Remove duplicate word: "pointer".
12250 2006-08-26 Bruno Haible <bruno@clisp.org>
12252 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
12253 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
12254 (Makefile.am): Create inttypes.h from inttypes_.h.
12255 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
12257 * modules/imaxabs: New file.
12259 * modules/imaxdiv: New file.
12261 2006-08-26 Bruno Haible <bruno@clisp.org>
12263 * m4/inttypes.m4: New file.
12264 * m4/_inttypes_h.m4: Remove file.
12265 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
12267 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
12269 * m4/imaxabs.m4: New file.
12271 * m4/imaxdiv.m4: New file.
12273 2006-08-26 Bruno Haible <bruno@clisp.org>
12275 * lib/inttypes_.h: New file.
12276 * lib/inttypes.h: Remove file.
12277 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
12279 * lib/imaxabs.c: New file.
12281 * lib/imaxdiv.c: New file.
12283 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
12285 New config-h module, so that "make" output needn't be cluttered
12286 by -DHAVE_CONFIG_H.
12287 * MODULES.html.sh (Support for building libraries and executables):
12289 * modules/config-h: New file.
12290 * gnulib-tool (nl, sed_transform_lib_file): New vars.
12291 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
12292 the config-h module is used.
12294 New configmake module, so that "make" output needn't be cluttered
12295 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
12296 * MODULES.html.sh (Support for building libraries and executables):
12298 * modules/configmake: New file.
12300 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
12302 * m4/config-h.m4: New file.
12304 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
12306 * config/srclist.txt: Add elisp-comp.
12308 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
12310 * MODULES.html.sh (Support for building libraries and executables):
12312 * build-aux/elisp-comp: New file.
12313 * modules/elisp-comp: New file.
12315 2006-08-24 Bruno Haible <bruno@clisp.org>
12317 * gnulib-tool (func_create_testdir): Use non-default values of
12318 sourcebase and m4base.
12320 2006-08-24 Bruno Haible <bruno@clisp.org>
12322 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
12325 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
12327 * modules/openat (Depends-on): Add lchown.
12329 2006-08-23 Bruno Haible <bruno@clisp.org>
12331 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
12332 of gl_LOCK_EARLY instead of gl_LOCK.
12334 2006-08-23 Bruno Haible <bruno@clisp.org>
12336 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
12338 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
12340 2006-08-23 Bruno Haible <bruno@clisp.org>
12342 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
12345 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
12346 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
12347 (gl_LOCK): New macro.
12349 2006-08-22 Simon Josefsson <jas@extundo.com>
12351 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
12354 2006-08-22 Simon Josefsson <jas@extundo.com>
12356 * MODULES.html.sh: Add "Support for maintaining and release
12359 * build-aux/gnupload: New file, from coreutils.
12361 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12363 Avoid the need for AC_LIBSOURCES in m4 macros.
12364 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
12365 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
12366 * modules/check-version (EXTRA_DIST): Add check-version.h.
12367 * modules/crc (EXTRA_DIST): Add crc.h.
12368 * modules/des (EXTRA_DIST): Add des.h.
12369 * modules/gc (EXTRA_DIST): Add gc.h.
12370 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
12371 * modules/getline (EXTRA_DIST): Add getline.h.
12372 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
12373 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
12374 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
12375 * modules/md2 (EXTRA_DIST): Add md2.h.
12376 * modules/md4 (EXTRA_DIST): Add md4.h.
12377 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
12378 * modules/read-file (EXTRA_DIST): Add read-file.h.
12379 * modules/readline (EXTRA_DIST): Add readline.h.
12380 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
12381 rijndael-api-fst.h.
12383 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12385 * m4/rijndael.m4 (gl_ARCFOUR):
12386 * m4/arctwo.m4 (gl_ARCTWO):
12387 * m4/check-version.m4 (gl_CHECK_VERSION):
12388 * m4/crc.m4 (gl_CRC):
12389 * m4/des.m4 (gl_DES):
12390 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
12391 * m4/gc.m4 (gl_GC):
12392 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12393 * m4/getline.m4 (gl_FUNC_GETLINE):
12394 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
12395 * m4/hmac-md5.m4 (gl_HMAC_MD5):
12396 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
12397 * m4/md2.m4 (gl_MD2):
12398 * m4/md4.m4 (gl_MD4):
12399 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
12400 * m4/read-file.m4 (gl_FUNC_READ_FILE):
12401 * m4/readline.m4 (gl_FUNC_READLINE):
12402 * m4/rijndael.m4 (gl_RIJNDAEL):
12403 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12404 to get the necessary .h files and whatnot.
12406 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12408 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
12409 gnulib rather than the other way around.
12410 * config/srclistvars.sh (COREUTILS): Remove.
12412 2006-08-22 Jim Meyering <jim@meyering.net>
12414 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
12416 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
12418 2006-08-22 Eric Blake <ebb9@byu.net>
12420 * modules/regexprops-generic: New file.
12421 * MODULES.html.sh (Support for building documentation): List it.
12423 2006-08-22 Eric Blake <ebb9@byu.net>
12425 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
12426 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12427 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
12428 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12430 2006-08-22 Bruno Haible <bruno@clisp.org>
12432 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
12433 and lib_LTLIBRARIES like the other lib_* variables.
12435 2006-08-22 Bruno Haible <bruno@clisp.org>
12437 * build-aux/x-to-1.in: New file, from GNU gettext.
12439 2006-08-22 Bruno Haible <bruno@clisp.org>
12441 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
12444 2006-08-22 Bruno Haible <bruno@clisp.org>
12446 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
12449 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12452 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
12454 Problem reported by Bruno Haible.
12456 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12458 Avoid the need for AC_LIBSOURCES in m4 macros.
12459 * modules/acl (EXTRA_DIST): Add acl.h.
12460 * modules/argmatch (Files): Add m4/argmatch.m4.
12461 (configure.ac): Add gl_ARGMATCH.
12462 (EXTRA_DIST): Renamed from lib_SOURCES, for
12463 consistency with the other modules. Remove argmatch.c.
12464 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
12465 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
12466 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
12467 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
12468 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
12469 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
12470 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
12471 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
12472 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
12473 * modules/closeout (EXTRA_DIST): Add closeout.h.
12474 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
12475 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
12476 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
12477 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
12478 dirname.h; remove basename.c and stripslash.c.
12479 * modules/exclude (EXTRA_DIST): Add exclude.h.
12480 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
12481 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
12482 * modules/file-type (EXTRA_DIST): Add file-type.h.
12483 * modules/filemode (EXTRA_DIST): Add filemode.h.
12484 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
12485 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12486 * modules/fpending (EXTRA_DIST): Add __fpending.h.
12487 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
12488 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
12489 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
12490 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
12491 * modules/getdate (EXTRA_DIST): Add getdate.c.
12492 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
12493 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
12494 * modules/getpass (EXTRA_DIST): Add getpass.h.
12495 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
12496 * modules/group-member (EXTRA_DIST): Add group-member.h.
12497 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
12498 * modules/hash (EXTRA_DIST): Add hash.h.
12499 * modules/human (EXTRA_DIST): Add human.h.
12500 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
12501 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
12502 * modules/lchown (EXTRA_DIST): Add lchown.h.
12503 * modules/long-options (EXTRA_DIST): Add long-options.h.
12504 * modules/lstat (EXTRA_DIST): Add lstat.h.
12505 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
12506 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
12507 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
12508 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
12509 * modules/memxor (EXTRA_DIST): Add memxor.h.
12510 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
12511 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
12512 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
12513 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
12514 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
12515 * modules/physmem (EXTRA_DIST): Add physmem.h.
12516 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
12517 * modules/posixver (EXTRA_DIST): Add posixver.h.
12518 * modules/quote (EXTRA_DIST): Add quote.h.
12519 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
12520 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
12521 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
12522 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
12523 regex_internal.h regexec.c.
12524 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
12525 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
12526 * modules/same (EXTRA_DIST): Add same.h.
12527 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
12528 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
12529 * modules/savedir (EXTRA_DIST): Add savedir.h.
12530 * modules/sha1 (EXTRA_DIST): Add sha1.h.
12531 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
12532 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
12533 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
12534 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
12535 * modules/strdup (EXTRA_DIST): Add strdup.h.
12536 * modules/strftime (EXTRA_DIST): Add strftime.h.
12537 * modules/strndup (EXTRA_DIST): Add strndup.h.
12538 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
12539 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
12540 * modules/time_r (EXTRA_DIST): Add time_r.h.
12541 * modules/timespec (EXTRA_DIST): Add timespec.h.
12542 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12543 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
12544 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
12545 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
12546 * modules/userspec (EXTRA_DIST): Add userspec.h.
12547 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
12548 * modules/utimens (EXTRA_DIST): Add utimens.h.
12549 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
12550 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
12551 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
12552 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
12553 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
12554 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
12555 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
12556 * modules/yesno (EXTRA_DIST): Add yesno.h.
12558 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12560 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
12562 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
12563 * m4/dev-ino.m4, same-inode.m4: Remove.
12565 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
12566 * m4/acl.m4 (AC_FUNC_ACL):
12567 * m4/backupfile.m4 (gl_BACKUPFILE):
12568 * m4/c-strtod.m4 (gl_C99_STRTOLD):
12569 * m4/canon-host.m4 (gl_CANON_HOST):
12570 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
12571 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
12572 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
12573 * m4/cloexec.m4 (gl_CLOEXEC):
12574 * m4/close-stream.m4 (gl_CLOSE_STREAM):
12575 * m4/closeout.m4 (gl_CLOSEOUT):
12576 * m4/dirfd.m4 (gl_FUNC_DIRFD):
12577 * m4/dirname.m4 (gl_DIRNAME):
12578 * m4/exclude.m4 (gl_EXCLUDE):
12579 * m4/exitfail.m4 (gl_EXITFAIL):
12580 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
12581 * m4/file-type.m4 (gl_FILE_TYPE):
12582 * m4/filemode.m4 (gl_FILEMODE):
12583 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
12584 * m4/fpending.m4 (gl_FUNC_FPENDING):
12585 * m4/fprintftime.m4 (gl_FPRINTFTIME):
12586 * m4/fts.m4 (gl_FUNC_FTS):
12587 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12588 * m4/getdate.m4 (gl_GETDATE):
12589 * m4/gethrxtime.m4 (gl_GETHRXTIME):
12590 * m4/getpagesize.m4 (gl_GETPAGESIZE):
12591 * m4/getpass.m4 (gl_FUNC_GETPASS):
12592 * m4/gettime.m4 (gl_GETTIME):
12593 * m4/getugroups.m4 (gl_GETUGROUPS):
12594 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
12595 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
12596 * m4/hard-locale.m4 (gl_HARD_LOCALE):
12597 * m4/hash.m4 (gl_HASH):
12598 * m4/idcache.m4 (gl_IDCACHE):
12599 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
12600 * m4/lchown.m4 (gl_FUNC_LCHOWN):
12601 * m4/long-options.m4 (gl_LONG_OPTIONS):
12602 * m4/lstat.m4 (gl_FUNC_LSTAT):
12603 * m4/md5.m4 (gl_MD5):
12604 * m4/memcasecmp.m4 (gl_MEMCASECMP):
12605 * m4/memcoll.m4 (gl_MEMCOLL):
12606 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
12607 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
12608 * m4/memxor.m4 (gl_MEMXOR):
12609 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
12610 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
12611 * m4/modechange.m4 (gl_MODECHANGE):
12612 * m4/mountlist.m4 (gl_MOUNTLIST):
12613 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12614 * m4/openat.m4 (gl_FUNC_OPENAT):
12615 * m4/pathmax.m4 (gl_PATHMAX):
12616 * m4/physmem.m4 (gl_PHYSMEM):
12617 * m4/posixtm.m4 (gl_POSIXTM):
12618 * m4/posixver.m4 (gl_POSIXVER):
12619 * m4/quote.m4 (gl_QUOTE):
12620 * m4/quotearg.m4 (gl_QUOTEARG):
12621 * m4/readtokens.m4 (gl_READTOKENS):
12622 * m4/readutmp.m4 (gl_READUTMP):
12623 * m4/regex.m4 (gl_REGEX):
12624 * m4/safe-read.m4 (gl_SAFE_READ):
12625 * m4/safe-write.m4 (gl_SAFE_WRITE):
12626 * m4/same.m4 (gl_SAME):
12627 * m4/save-cwd.m4 (gl_SAVE_CWD):
12628 * m4/savedir.m4 (gl_SAVEDIR):
12629 * m4/settime.m4 (gl_SETTIME):
12630 * m4/sha1.m4 (gl_SHA1):
12631 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
12632 * m4/stat-macros.m4 (gl_STAT_MACROS):
12633 * m4/stat-time.m4 (gl_STAT_TIME):
12634 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
12635 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
12636 * m4/strdup.m4 (gl_FUNC_STRDUP):
12637 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
12638 * m4/strndup.m4 (gl_FUNC_STRNDUP):
12639 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
12640 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
12641 * m4/time_r.m4 (gl_TIME_R):
12642 * m4/timespec.m4 (gl_TIMESPEC):
12643 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
12644 * m4/unlinkdir.m4 (gl_UNLINKDIR):
12645 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
12646 * m4/userspec.m4 (gl_USERSPEC):
12647 * m4/utimecmp.m4 (gl_UTIMECMP):
12648 * m4/utimens.m4 (gl_UTIMENS):
12649 * m4/xalloc.m4 (gl_XALLOC):
12650 * m4/xgetcwd.m4 (gl_XGETCWD):
12651 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
12652 * m4/xreadlink.m4 (gl_XREADLINK):
12653 * m4/xstrtod.m4 (gl_XSTRTOD):
12654 * m4/yesno.m4 (gl_YESNO):
12655 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12656 to get the necessary .h files and whatnot.
12658 2006-08-21 Mark D. Baushke <mdb@gnu.org>
12659 Bruno Haible <bruno@clisp.org>
12661 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
12662 /bin/sh understanding of '!' conditional negation.
12664 2006-08-21 Jim Meyering <jim@meyering.net>
12666 * modules/openat (Depends-on): Really alphabetize.
12668 * modules/acl (Depends-on): Add error and quote.
12670 * check-module (find_included_lib_files): Add at-func.c to the
12671 ok-to-include-more-than-once white list.
12673 * modules/openat (Depends-on): Add lstat. Alphabetize.
12675 2006-08-21 Bruno Haible <bruno@clisp.org>
12677 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12678 Emit a pkgdata_DATA variable only if some snippets add contents to it.
12679 Reported by Martin Lambers <marlam@marlam.de>.
12681 2006-08-21 Bruno Haible <bruno@clisp.org>
12683 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
12684 specify an installation location, don't emit a noinst_LIBRARIES or
12685 noinst_LTLIBRARIES assignment.
12687 2006-08-21 Bruno Haible <bruno@clisp.org>
12690 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
12691 BeOS has mbrtowc() but no <wctype.h>.
12693 2006-08-21 Bruno Haible <bruno@clisp.org>
12696 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
12699 2006-08-21 Bruno Haible <bruno@clisp.org>
12702 * lib/mbchar.h: Include <wctype.h> only if it exists.
12704 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12706 Remove files that are no longer needed by their respective modules.
12707 * m4/obstack.m4: Remove.
12708 * m4/strerror_r.m4: Remove.
12709 * m4/uint32_t.m4: Remove.
12710 * m4/uintptr_t.m4: Remove.
12711 * m4/ullong_max.m4: Remove.
12712 * m4/xstrtoimax.m4: Remove.
12713 * m4/xstrtoumax.m4: Remove.
12715 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12716 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12717 dependencies now capture this.
12719 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12720 Do not use AC_LIBSOURCES, since gnulib modules now do this.
12721 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12722 * m4/human.m4 (gl_HUMAN): Likewise.
12723 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12724 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12726 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12728 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12729 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12731 * m4/human.m4 (gl_HUMAN): Likewise.
12732 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12733 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12734 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12735 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12736 * m4/xstrtol (gl_XSTRTOL): Likewise.
12738 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12739 AC_TYPE_LONG_LONG_INT.
12740 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12741 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12742 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12743 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12745 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12748 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12749 (gl_PREREQ_XSTRTOUL): Remove.
12751 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12753 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12756 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12758 Add and change modules to make it easier for coreutils to use
12760 * modules/backupfile (Files): Remove m4/d-ino.m4.
12761 (Depends-on): Add d-ino.
12762 * modules/cycle-check (Depends-on): Add stdint.
12763 (lib_SOURCES): Add cycle-check.h.
12764 * modules/d-ino: New module.
12765 * modules/d-type: New module.
12766 * modules/error (Files): Remove m4/strerror_r.m4.
12767 * modules/filemode (Files): Add m4/st_dm_mode.m4.
12768 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12769 m4/inttypes_h.m4, m4/uintmax_t.m4.
12770 (Depends-on): Add stdint.
12771 (lib_SOURCES): Add fsusage.h.
12772 * modules/getcwd (Files): Remove d-ino.m4.
12773 (Depends-on): Add d-ino.
12774 * modules/getndelim2 (Depends-on): Add stdint.
12775 * modules/glob (Files): Remove m4/d-type.m4.
12776 (Depends-on): Add d-type.
12777 * modules/host-os: New module.
12778 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12779 m4/inttypes_h.m4, m4/uintmax_t.m4.
12780 * Depends-on: Add stdint.
12781 (lib_SOURCES): Add human.h.
12782 * modules/inttostr (Files): Remove m4/intmax_t.m4,
12783 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
12784 m4/uintmax_t.m4, m4/ulonglong.m4.
12785 (Depends-on): Add stdint.
12786 (EXTRA_DIST): Add inttostr.h.
12787 * modules/lchmod: New module.
12788 * modules/link-follow: New module.
12789 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
12790 (Depends-on): Add lchmod.
12791 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
12792 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
12793 (Depends-on): Add stdint.
12794 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
12795 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
12796 (Depends-on): Add stdint.
12797 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
12798 * modules/perl: New module.
12799 * modules/regex (Depends-on): Add stdint.
12800 * modules/rmdir-errno: New module.
12801 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12803 (Depends-on): Add stdint.
12804 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12806 (Depends-on): Add stdint.
12807 * modules/unlink-busy: New module.
12808 * modules/utimecmp (Depends-on): Add stdint.
12809 * modules/uptime: New module.
12810 * modules/winsz-ioctl: New module.
12811 * modules/winsz-termios: New module.
12812 * modules/xnanosleep (Depends-on): Add nanosleep.
12813 * modules/ullong_max: Remove.
12814 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
12815 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
12816 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
12817 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
12818 (Depends-on): Add inttypes.
12819 (lib_SOURCES): Add xstrtol.h.
12820 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
12821 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
12822 * MODULES.html.sh: Move 'assert' into the assert section.
12823 Move 'dummy' into the linking section.
12825 Add section for compatibility checks for POSIX:2001 functions,
12826 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
12827 winsz-ioctl, and winsz-termios into it.
12829 Add top-level Misc section and put host-os, perl, and uptime
12832 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12834 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
12835 now assume the stdint module. Do not include inttypes.h.
12836 * lib/fsusage.h: Likewise.
12837 * lib/getndelim2.c: Likewise.
12838 * lib/human.h: Likewise.
12839 * lib/inttostr.h: Likewise.
12840 * lib/obstack.c: Likewise.
12841 * lib/regex_internal.h: Likewise.
12842 * lib/tempname.c: Likewise.
12843 * lib/utimecmp.c: Likewise.
12844 * lib/xstrtol.h: Likewise.
12846 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
12848 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
12849 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
12850 * lib/xtime.h: Likewise.
12852 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12854 * modules/openat (Files): Add lib/fchmodat.c.
12855 Fixes problem reported by Jay Youngman.
12857 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12859 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
12860 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
12862 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
12863 Bruno Haible <bruno@clisp.org>
12865 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
12866 and is a script that invokes bison. Tighten the code. Add comments.
12868 2006-08-18 Jim Meyering <jim@meyering.net>
12870 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
12871 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
12872 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
12873 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
12875 2006-08-18 Bruno Haible <bruno@clisp.org>
12877 * modules/bison-i18n: New file.
12878 * MODULES.html.sh (Internationalization functions): Add it.
12880 2006-08-18 Bruno Haible <bruno@clisp.org>
12882 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
12883 sys/statvfs.h. When getmntinfo was found, check its declaration and
12884 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
12886 2006-08-18 Bruno Haible <bruno@clisp.org>
12888 * m4/bison-i18n.m4: New file, from bison.
12890 2006-08-18 Bruno Haible <bruno@clisp.org>
12892 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
12893 (ME_DUMMY): Treat "kernfs" as a dummy.
12894 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
12896 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12898 Update from coreutils.
12900 2006-08-15 Jim Meyering <jim@meyering.net>
12902 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
12904 2006-01-17 Jim Meyering <jim@meyering.net>
12906 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
12908 2006-01-11 Jim Meyering <jim@meyering.net>
12910 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
12911 Check for the lchmod function.
12913 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12915 Update from coreutils.
12917 * lib/__fpending.h: Add copyright notice.
12918 * lib/fprintftime.h: Likewise.
12919 * lib/savedir.c: Use (C) in copyright notice.
12920 * lib/savedir.h: Likewise.
12922 2006-08-15 Jim Meyering <jim@meyering.net>
12924 * lib/at-func.c: New file, with the logic of all emulated at-functions.
12925 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
12926 in support of the EXPECTED_ERRNO macro.
12927 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
12928 definitions. Instead, define the appropriate symbols and include
12930 * lib/mkdirat.c (mkdirat): Likewise.
12931 * lib/fchmodat.c (fchmodat): Likewise.
12932 (ENOSYS): Remove definition.
12933 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
12934 it. Don't include "unistd--.h" -- it wasn't ever used.
12936 2006-01-17 Jim Meyering <jim@meyering.net>
12938 Rewrite fts.c not to change the current working directory,
12939 by using openat, fstatat, fdopendir, etc..
12941 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
12942 (HAVE_OPENAT_SUPPORT): Define.
12943 [_LIBC] (fchdir): Don't undef or define; no longer used.
12944 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
12945 Now, this `function' always succeeds, and consumes its file descriptor
12946 parameter -- so callers must not close such FDs. Update callers.
12947 (diropen_fd, opendirat, cwd_advance_fd): New functions.
12948 (diropen): Add parameter, SP. Adjust all callers.
12949 Implement using diropen_fd, rather than open.
12950 (fts_open): Initialize new member, fts_cwd_fd.
12951 Remove fts_rft-setting code.
12952 (fts_close): Close fts_cwd_fd, if necessary.
12953 (__opendir2): Define in terms of opendir or opendirat,
12954 depending on whether the FST_NOCHDIR flag is set.
12955 (fts_build): Since fts_safe_changedir consumes its FD, and since
12956 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
12957 and close the dup'd file descriptor upon failure.
12958 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
12959 (fts_safe_changedir): Tweak semantics to reflect that this function
12960 now calls cwd_advance_fd and hence consumes its FD argument.
12961 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
12962 [struct FTS] (fts_rft): Remove now-unused member.
12963 [struct FTS] (fts_cycle.state): Improve comment.
12965 * lib/openat.c (openat_needs_fchdir): New function.
12966 * lib/openat.h (openat_needs_fchdir): Declare it.
12968 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
12970 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
12971 Problem and fix reported by Pádraig Brady in
12972 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
12974 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12976 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
12978 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12980 * lib/memcoll.c (memcoll): Optimize for the common case where the
12981 arguments are bytewise equal.
12983 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12985 * doc/regexprops-generic.texi: Add a copyright notice.
12987 2006-08-15 Bruno Haible <bruno@clisp.org>
12989 * modules/tmpdir (License): Change to LGPL.
12991 2006-08-15 Bruno Haible <bruno@clisp.org>
12993 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
12996 2006-08-14 Simon Josefsson <jas@extundo.com>
12998 * config/srclist.txt: Add gnupload.
13000 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
13002 Change copyright notice from LGPL 2 to GPL 2, since that's the
13003 standard form used in the gnulib repository.
13004 * tests/test-lock.c: Likewise.
13005 * tests/test-stdint.c: Likewise.
13006 * tests/test-tls.c: Likewise.
13008 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
13009 prelude-manager. User shorter URLs for GNU projects, without '?'.
13010 Add copyright notice.
13012 * check-module: Add copyright notice. Output a copyright
13013 notice if "--version" is specified.
13014 * modules/COPYING: New file.
13015 * tests/test-getaddrinfo.c: Add copyright notice.
13016 * tests/test-verify.c: Likewise.
13018 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
13020 Change copyright notice from LGPL 2 to GPL 2, since that's the
13021 standard form used in the gnulib repository.
13022 * lib/lock.c: LGPL -> GPL.
13023 * lib/lock.h: Likewise.
13024 * lib/strnlen1.c: Likewise.
13025 * lib/strnlen1.h: Likewise.
13026 * lib/tls.c: Likewise.
13027 * lib/tls.h: Likewise.
13028 * lib/tmpdir.c: Likewise.
13030 * lib/TODO: Remove; this belongs only in coreutils.
13032 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
13034 Add copyright notices to long-enough files that lack them, since
13035 otherwise the files aren't clearly free. Use the same notice that
13036 getdate.texi already uses.
13037 * doc/alloca-opt.texi: Add copyright notice.
13038 * doc/alloca.texi: Likewise.
13039 * doc/ctime.texi: Likewise.
13040 * doc/functions.texi: Likewise.
13041 * doc/gcd.texi: Likewise.
13042 * doc/gnulib-tool.texi: Likewise.
13043 * doc/inet_ntoa.texi: Likewise.
13044 * doc/visibility.texi: Likewise.
13046 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
13047 * doc/quote.texi: Add copyright notice.
13049 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
13050 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
13051 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
13052 Mention SunOS 5.11. Mention that everything before SunOS 5.7
13053 is now obsolete, and give a pointer to the Sun list.
13054 Add copyright notice.
13056 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
13058 * config/srclistvars.sh: Add copyright notice.
13060 2006-08-14 Eric Blake <ebb9@byu.net>
13062 Import the following change from libc:
13064 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13067 * lib/misc/error.c: Add space between program name and message if file
13070 2006-08-12 Karl Berry <karl@gnu.org>
13072 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
13073 remove, these originate in gnulib now.
13075 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13077 * doc/Makefile (standards.info standards.html standards.dvi):
13078 Also depend on make-stds.texi.
13080 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
13082 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
13083 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
13085 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
13086 in wchar_t. Problem reported by Eric Blake.
13088 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
13089 LEN is smaller than SIZE. Suggested by Bruno Haible.
13090 Also, help the compiler to keep LEN in a register.
13092 2006-08-11 Eric Blake <ebb9@byu.net>
13094 * users.txt: Sort. Add tar.
13096 2006-08-11 Bruno Haible <bruno@clisp.org>
13098 * users.txt: New file.
13100 2006-08-11 Bruno Haible <bruno@clisp.org>
13102 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
13103 before <wchar.h>. Needed for OSF/1 and BSD/OS.
13105 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
13107 * modules/snprintf (Depends-on): Remove minmax.
13108 (Maintainer): Add self and Bruno.
13110 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
13112 * lib/.cppi-disable: Add snprintf.h, socket_.h.
13113 * lib/snprintf.c: Include <errno.h> and <limits.h>.
13114 (EOVERFLOW): Define if the system does not.
13115 Do not include "minmax.h"; it wasn't used.
13116 (snprintf): Don't assume size_t promotes to an unsigned type.
13117 Fix bug when generated string was too long for the buffer: the
13118 buffer's contents are supposed to be the initial prefix of the
13119 output. Don't assume vasnprintf returns EOVERFLOW if the size
13120 exceeds INT_MAX; do the check ourselves.
13122 Import the following changes from libc:
13124 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13126 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
13127 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
13128 set wc to the byte which couldn't be converted.
13129 (re_string_reconstruct): Don't clear valid_raw_len before calling
13130 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13131 tip_context using re_string_context_at.
13133 2006-05-02 Ulrich Drepper <drepper@redhat.com>
13135 * lib/posix/regex.h: g++ still cannot handled [restrict].
13137 2006-04-21 Ulrich Drepper <drepper@redhat.com>
13139 * lib/posix/regex.h: Remove special handling for VMS.
13141 2006-08-10 Jim Meyering <jim@meyering.net>
13143 * modules/same-inode: New module.
13144 * modules/dev-ino: New module.
13145 * modules/cycle-check: Depend on these modules, rather than simply
13146 including their .h files.
13147 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
13148 required via m4/cycle-check.m4.
13149 * modules/same: Depend on new same-inode module, rather than
13150 including same-inode.h.
13151 * modules/chdir-safer: New file.
13153 * modules/chown (Depends-on): Add stat-macros.
13155 2006-08-10 Jim Meyering <jim@meyering.net>
13157 * m4/cycle-check.m4: New file.
13158 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
13159 * m4/dev-ino.m4, m4/same-inode.m4: New files.
13161 2006-08-10 Eric Blake <ebb9@byu.net>
13163 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
13164 in from original proposal.
13166 2006-08-10 Eric Blake <ebb9@byu.net>
13167 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13169 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
13172 2006-08-10 Bruno Haible <bruno@clisp.org>
13174 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
13177 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13179 Sync from coreutils.
13181 2006-07-19 Mike Frysinger <vapier@gentoo.org>
13183 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
13184 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
13186 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13188 * modules/restrict: Remove; no longer needed now that we assume
13189 Autoconf 2.59 or later.
13190 * MODULES.html.sh: Remove 'restrict'.
13191 * modules/argp (Depends-on): Remove 'restrict'.
13192 * modules/base64 (Depends-on): Likewise.
13193 * modules/gc (Depends-on): Likewise.
13194 * modules/getaddrinfo (Depends-on): Likewise.
13195 * modules/glob (Depends-on): Likewise.
13196 * modules/inet_ntop (Depends-on): Likewise.
13197 * modules/inet_pton (Depends-on): Likewise.
13198 * modules/memxor (Depends-on): Likewise.
13199 * modules/regex (Depends-on): Likewise.
13200 * modules/strtok_r (Depends-on): Likewise.
13201 * modules/time_r (Depends-on): Likewise.
13203 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13205 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
13206 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
13207 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13208 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
13209 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13210 * m4/memxor.m4 (gl_MEMXOR): Likewise.
13211 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
13212 gl_C_RESTRICT replaced by AC_C_RESTRICT.
13214 Merge from coreutils.
13215 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
13216 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
13217 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13218 * m4/time_r.m4 (gl_TIME_R): Likewise.
13220 2006-08-09 Karl Berry <karl@gnu.org>
13222 * config/srclist.txt: no more gettext-tools, per Bruno.
13224 2006-08-08 Eric Blake <ebb9@byu.net>
13226 * modules/verror: New module.
13227 * MODULES.html.sh: Document it.
13229 2006-08-08 Eric Blake <ebb9@byu.net>
13231 * lib/verror.h, lib/verror.c: New files.
13233 2006-08-08 Eric Blake <ebb9@byu.net>
13235 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
13236 verror_at_line output complies with GNU Coding Standards even when
13239 2006-08-07 Bruno Haible <bruno@clisp.org>
13241 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
13243 Reported by Ralf Wildenhues.
13245 2006-08-07 Bruno Haible <bruno@clisp.org>
13247 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
13248 in an AC_DEFUN. Needed so that the autoconf snippets can use
13251 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13253 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13254 Initialize pkgdata_DATA.
13255 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
13258 2006-08-06 Eric Blake <ebb9@byu.net>
13260 * lib/error.h: Fold in some upstream changes from glibc.
13261 * lib/error.c: Likewise.
13263 2006-08-04 Bruno Haible <bruno@clisp.org>
13265 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13266 Make the mostlyclean-local rule depend on mostlyclean-generic.
13267 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
13269 2006-07-31 Bruno Haible <bruno@clisp.org>
13271 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
13272 <stdlib.h>, <string.h>.
13274 2006-07-30 Bruno Haible <bruno@clisp.org>
13276 * modules/readlink (License): Change to LGPL.
13278 2006-07-30 Bruno Haible <bruno@clisp.org>
13280 * modules/javaversion (Makefile.am): Distribute javaversion.java and
13281 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
13282 set PKGDATADIR to point to it.
13284 2006-07-30 Bruno Haible <bruno@clisp.org>
13286 * modules/csharpexec (configure.ac): Comment out macro invocation.
13287 * modules/javaexec (configure.ac): Likewise.
13288 * modules/javacomp-script (configure.ac): Likewise.
13290 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
13292 2006-07-30 Bruno Haible <bruno@clisp.org>
13294 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
13297 2006-07-30 Bruno Haible <bruno@clisp.org>
13299 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
13301 2006-07-30 Bruno Haible <bruno@clisp.org>
13303 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13304 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
13307 2006-07-29 Bruno Haible <bruno@clisp.org>
13309 Make it possible for gnulib-tool to work with locally modified or
13310 augmented gnulib repositories.
13311 * gnulib-tool (func_usage): Document --local-dir option.
13312 (local_gnulib_dir): New variable.
13313 Handle --local-dir option.
13314 (func_lookup_file): New function.
13315 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
13316 (func_get_description, func_get_filelist, func_get_description,
13317 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
13318 func_get_automake_snippet, func_get_include_directive,
13319 func_get_license, func_get_maintainer): Use func_lookup_file.
13320 (func_import, func_create_testdir): Use func_lookup_file.
13322 2006-07-29 Bruno Haible <bruno@clisp.org>
13324 * modules/setenv (Depends-on): Add unistd.
13326 2006-07-29 Bruno Haible <bruno@clisp.org>
13328 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
13330 2006-07-29 Bruno Haible <bruno@clisp.org>
13332 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
13334 2006-07-29 Bruno Haible <bruno@clisp.org>
13336 * gnulib-tool (import, update): If there is no Makefile.am, look at
13337 aclocal.m4, instead of bailing out.
13339 2006-07-29 Bruno Haible <bruno@clisp.org>
13341 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
13342 Categorize the options by when they are useful.
13344 2006-07-29 Bruno Haible <bruno@clisp.org>
13346 * gnulib-tool (func_usage): Document option --no-libtool.
13347 Handle option --no-libtool.
13348 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
13349 for changed semantics of $libtool variable.
13350 (func_import): Likewise. If libtool is not used, show this through
13351 an option --no-libtool.
13352 (func_create_testdir): Update.
13354 2006-07-29 Bruno Haible <bruno@clisp.org>
13356 * gnulib-tool (func_import): Extend error message about missing
13359 2006-07-29 Bruno Haible <bruno@clisp.org>
13361 * gnulib-tool (func_import): Don't create the $docbase directory if
13362 there is no file to store there.
13364 2006-07-29 Bruno Haible <bruno@clisp.org>
13366 * gnulib-tool (autoconf_minversion): If a --dir option is given and
13367 relevant, look for configure.ac there, not in the current directory.
13368 Also use a simple search for AC_PREREQ, not "autoconf --trace".
13370 2006-07-29 Bruno Haible <bruno@clisp.org>
13372 * gnulib-tool (SORT): New variable.
13373 (func_usage): Undocument --assume-autoconf option.
13374 Remove --assume-autoconf option handling.
13375 (autoconf_minversion): Determine from the contents of configure.ac.
13376 (func_import): Remove autoconf_minversion handling.
13377 Suggested by Eric Blake.
13379 2006-07-29 Bruno Haible <bruno@clisp.org>
13381 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
13383 2006-07-29 Bruno Haible <bruno@clisp.org>
13385 * config/srclist.txt (*setenv.[ch]): Remove rules.
13387 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13389 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
13391 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13393 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
13396 2006-07-28 Simon Josefsson <jas@extundo.com>
13398 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
13399 * modules/inet_pton (Depends-on): Likewise.
13401 2006-07-28 Simon Josefsson <jas@extundo.com>
13403 * m4/netinet_in_h.m4: New file.
13405 2006-07-28 Simon Josefsson <jas@extundo.com>
13407 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
13410 2006-07-28 Simon Josefsson <jas@extundo.com>
13412 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
13415 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
13417 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
13418 setgid on directories only if they set these bits.
13419 * lib/modechange.h: Remove obsolete comment about masks.
13421 2006-07-28 Eric Blake <ebb9@byu.net>
13423 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
13426 2006-07-28 Bruno Haible <bruno@clisp.org>
13428 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
13430 2006-07-28 Bruno Haible <bruno@clisp.org>
13432 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
13434 2006-07-28 Bruno Haible <bruno@clisp.org>
13436 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13437 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13439 Avoids link error on FreeBSD 4.x.
13440 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13442 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
13444 * lib/mbswidth.c (iswcntrl): Likewise.
13446 2006-07-27 Bruno Haible <bruno@clisp.org>
13448 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
13451 2006-07-27 Bruno Haible <bruno@clisp.org>
13453 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
13454 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
13457 2006-07-26 Eric Blake <ebb9@byu.net>
13459 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
13461 2006-07-26 Eric Blake <ebb9@byu.net>
13463 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
13464 like mingw that lack mkstemp.
13465 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
13466 avoid compilation warning on mingw.
13468 2006-07-26 Bruno Haible <bruno@clisp.org>
13470 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
13471 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
13472 INT_FAST*_MIN, INTPTR_MIN.
13474 2006-07-25 Bruno Haible <bruno@clisp.org>
13476 * modules/version-etc (Depends-on): Add stdarg.
13478 2006-07-25 Bruno Haible <bruno@clisp.org>
13480 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
13483 2006-07-25 Bruno Haible <bruno@clisp.org>
13485 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
13486 defined in <stdarg.h> or config.h.
13488 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13490 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
13491 (gl_STDIO_SAFER): Remove.
13493 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13495 * MODULES.html.sh (File stream based Input/Output):
13496 Add fopen-safer, tmpfile-safer; remove stdio-safer.
13497 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
13498 * modules/fopen-safer, modules/tmpfile-safer: New files.
13499 * modules/stdio-safer: Remove.
13501 2006-07-24 Bruno Haible <bruno@clisp.org>
13503 * modules/tmpdir: New file.
13504 * MODULES.html.sh (File system functions): Add it.
13506 2006-07-24 Bruno Haible <bruno@clisp.org>
13508 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
13509 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
13511 2006-07-24 Bruno Haible <bruno@clisp.org>
13513 * modules/clean-temp: New file.
13515 2006-07-24 Bruno Haible <bruno@clisp.org>
13517 * m4/tmpdir.m4: New file, from GNU gettext.
13519 2006-07-24 Bruno Haible <bruno@clisp.org>
13521 * lib/tmpdir.h: New file, from GNU gettext.
13522 * lib/tmpdir.c: New file, from GNU gettext.
13524 2006-07-24 Bruno Haible <bruno@clisp.org>
13526 * lib/clean-temp.h: New file, from GNU gettext.
13527 * lib/clean-temp.c: New file, from GNU gettext.
13529 2006-07-23 Eric Blake <ebb9@byu.net>
13531 * modules/stdio-safer (Files): Add tmpfile-safer.c.
13532 (Depends-on): Add binary-io.
13534 2006-07-23 Eric Blake <ebb9@byu.net>
13536 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
13538 2006-07-23 Eric Blake <ebb9@byu.net>
13540 * lib/tmpfile-safer.c: New file.
13541 * lib/stdio-safer.h (fopen_safer): Add prototype.
13542 * lib/stdio--.h (tmpfile): Make safer.
13544 2006-07-23 Bruno Haible <bruno@clisp.org>
13546 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
13547 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
13548 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
13549 gl_linked_remove_at): Use it.
13551 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13552 and Simon Josefsson <jas@extundo.com>
13554 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
13556 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
13558 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13560 * modules/close-stream: New file.
13561 * modules/closeout (Description): Make it clear that it exits
13562 with a diagnostic on error.
13563 (Depends-on): Add close-stream. Remove fpending, stdbool.
13564 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
13566 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13568 * m4/close-stream.m4: New file.
13570 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13572 * lib/close-stream.c, lib/close-stream.h: New files.
13574 2006-07-22 Bruno Haible <bruno@clisp.org>
13576 Merge from GNU gettext 0.15.
13578 2006-05-01 Bruno Haible <bruno@clisp.org>
13580 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
13582 2006-07-22 Bruno Haible <bruno@clisp.org>
13584 * modules/javaversion: New file.
13585 * MODULES.html.sh (Java): Add javaversion.
13587 2006-03-12 Bruno Haible <bruno@clisp.org>
13589 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
13591 2005-12-04 Bruno Haible <bruno@clisp.org>
13593 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
13596 2006-06-21 Bruno Haible <bruno@clisp.org>
13598 Avoid warnings from recent versions of mcs.
13599 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
13600 -o, -L, -r any more. Use options documented since mcs-1.0
13601 instead. Similarly for -g.
13603 2005-12-04 Bruno Haible <bruno@clisp.org>
13605 * build-aux/csharpcomp.sh.in: Suffix for resources is
13606 .resources, not .resource.
13608 2005-07-09 Bruno Haible <bruno@clisp.org>
13610 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
13612 Reported by Mark Junker <mjscod@gmx.de>.
13614 2006-07-22 Bruno Haible <bruno@clisp.org>
13616 * modules/gettext: Upgrade to gettext-0.15.
13617 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
13619 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
13621 2006-07-22 Bruno Haible <bruno@clisp.org>
13623 Merge from GNU gettext 0.15.
13625 2006-03-25 Bruno Haible <bruno@clisp.org>
13627 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
13629 2006-07-21 Bruno Haible <bruno@clisp.org>
13631 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
13634 2006-05-09 Bruno Haible <bruno@clisp.org>
13636 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
13637 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
13638 for the conftestver execution.
13640 2006-05-01 Bruno Haible <bruno@clisp.org>
13642 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
13643 optional target-version argument. Verify that the compiler
13644 groks source of the specified source-version, or add -source
13645 option as necessary. Verify that the compiler produces
13646 bytecode in the specified target-version, or add -target and
13647 -source options as necessary. Make the result of the test
13648 available as variable CONF_JAVAC. Also log error output in
13651 2006-03-11 Bruno Haible <bruno@clisp.org>
13653 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
13655 2006-05-09 Bruno Haible <bruno@clisp.org>
13657 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
13658 CLASSPATH_SEPARATOR to a semicolon.
13660 2006-03-12 Bruno Haible <bruno@clisp.org>
13662 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
13663 available as variable CONF_JAVA, for subsequent autoconf
13664 tests. Also log error output in config.log.
13666 2006-07-19 Bruno Haible <bruno@clisp.org>
13668 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
13669 that getline works on glibc2 systems. Needed to avoid trouble
13671 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
13673 2005-12-04 Bruno Haible <bruno@clisp.org>
13675 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
13676 launcher (untested).
13678 2005-12-04 Bruno Haible <bruno@clisp.org>
13680 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
13682 2006-07-22 Bruno Haible <bruno@clisp.org>
13684 * gettext.m4: Update from GNU gettext-0.15.
13685 * nls.m4: Likewise.
13687 * inttypes-pri.m4: Likewise.
13688 * inttypes-h.m4: Renamed from inttypes.m4.
13689 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
13691 2006-07-22 Bruno Haible <bruno@clisp.org>
13693 Merge from GNU gettext 0.15.
13695 2005-07-05 Bruno Haible <bruno@clisp.org>
13697 * printf-args.c (printf_fetchargs): Work around broken
13698 definition of wint_t on mingw.
13700 2005-02-12 Bruno Haible <bruno@clisp.org>
13702 * xallocsa.h: Add extern "C" for C++.
13704 2006-05-17 Bruno Haible <bruno@clisp.org>
13706 Cygwin portability.
13707 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
13709 2006-04-30 Bruno Haible <bruno@clisp.org>
13711 * progreloc.c: Include <mach-o/dyld.h> if available.
13712 (find_executable): Use _NSGetExecutablePath when possible.
13714 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
13716 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13719 2005-12-29 Bruno Haible <bruno@clisp.org>
13721 * progreloc.c (set_program_name_and_installdir): Fix
13724 2005-12-04 Bruno Haible <bruno@clisp.org>
13726 Cygwin portability.
13727 * progreloc.c: Include <windows.h> also on Cygwin.
13728 (find_executable): Add support for Cygwin.
13729 (set_program_name_and_installdir): Handle also platforms with
13732 2006-07-11 Bruno Haible <bruno@clisp.org>
13734 * javacomp.c: Fix a comment.
13735 Reported by Jim Meyering.
13737 2006-04-30 Bruno Haible <bruno@clisp.org>
13739 * javacomp.h (compile_java_class): Add source_version,
13740 target_version arguments.
13741 * javacomp.c: Rewritten to choose only a compiler that
13742 respects the specified source_version and target_version.
13744 2006-06-27 Bruno Haible <bruno@clisp.org>
13746 Assume correct S_ISDIR macro.
13747 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13749 2006-07-22 Bruno Haible <bruno@clisp.org>
13751 * javaversion.h: New file, from GNU gettext.
13752 * javaversion.c: New file, from GNU gettext.
13753 * javaversion.java: New file, from GNU gettext.
13754 * javaversion.class: New file, from GNU gettext.
13756 2006-05-17 Bruno Haible <bruno@clisp.org>
13758 Cygwin portability.
13759 * javaexec.c (execute_java_class): Test for jview program
13762 2006-04-09 Bruno Haible <bruno@clisp.org>
13764 * fatal-signal.c: Don't include string.h.
13765 (at_fatal_signal): Use a copying loop instead of memcpy.
13767 2005-12-04 Bruno Haible <bruno@clisp.org>
13769 * csharpexec.c: Add support for 'clix' launcher (untested).
13770 (execute_csharp_using_sscli): New function.
13771 (execute_csharp_program): Call it.
13773 2006-06-21 Bruno Haible <bruno@clisp.org>
13775 Avoid warnings from recent versions of mcs.
13776 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13777 -o, -L, -r any more. Use options documented since mcs-1.0
13778 instead. Similarly for -g.
13780 2005-07-09 Bruno Haible <bruno@clisp.org>
13782 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
13784 Reported by Mark Junker <mjscod@gmx.de>.
13786 2006-06-17 Bruno Haible <bruno@clisp.org>
13788 * config.charset: Update for NetBSD 3.0.
13790 2006-05-17 Bruno Haible <bruno@clisp.org>
13792 Cygwin portability.
13793 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
13795 2006-05-16 Bruno Haible <bruno@clisp.org>
13797 * localcharset.c [CYGWIN]: Include <windows.h>.
13798 (get_charset_aliases): For Cygwin, return the same CPxxx
13799 aliases list as under WIN32.
13800 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
13801 the environment variables. Fall back to GetACP().
13803 2006-04-05 Bruno Haible <bruno@clisp.org>
13805 * config.charset: Update Juan Manuel Guerrero's address.
13807 2005-02-12 Bruno Haible <bruno@clisp.org>
13809 * allocsa.h: Add extern "C" for C++.
13811 2005-02-10 Bruno Haible <bruno@clisp.org>
13813 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
13814 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
13816 2006-07-22 Bruno Haible <bruno@clisp.org>
13818 * gettext.h: Update to GNU gettext-0.15.
13820 2006-07-22 Bruno Haible <bruno@clisp.org>
13822 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
13823 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
13824 lib-prefix.m4, longdouble.m4, ssize_t.m4.
13826 2006-07-21 Eric Blake <ebb9@byu.net>
13828 * modules/stdlib-safer: New file.
13829 * MODULES.html.sh (File stream based Input/Output): Add
13832 2006-07-21 Eric Blake <ebb9@byu.net>
13834 * lib/stdlib-safer.h: New file from coreutils, required by
13837 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
13839 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
13841 2006-07-20 Bruno Haible <bruno@clisp.org>
13843 * gnulib-tool: Recognize new option --assume-autoconf.
13844 (autoconf_minversion): New variable.
13845 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
13847 2006-07-20 Bruno Haible <bruno@clisp.org>
13849 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
13851 2006-07-19 Derek R. Price <derek@ximbiot.com>
13853 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
13854 Reindent and repaginate.
13856 2006-07-19 Derek Price <derek@ximbiot.com>
13858 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
13861 2006-07-17 Bruno Haible <bruno@clisp.org>
13863 * modules/list: New file.
13864 * modules/array-list: New file.
13865 * modules/carray-list, modules/carray-list-tests: New files.
13866 * modules/linked-list, modules/linked-list-tests: New files.
13867 * modules/avltree-list, modules/avltree-list-tests: New files.
13868 * modules/rbtree-list, modules/rbtree-list-tests: New files.
13869 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
13870 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
13871 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
13872 * modules/oset: New file.
13873 * modules/array-oset: New file.
13874 * modules/avltree-oset, modules/avltree-oset-tests: New files.
13875 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
13876 * tests/test-carray_list.c: New file.
13877 * tests/test-linked_list.c: New file.
13878 * tests/test-avltree_list.c: New file.
13879 * tests/test-rbtree_list.c: New file.
13880 * tests/test-linkedhash_list.c: New file.
13881 * tests/test-avltreehash_list.c: New file.
13882 * tests/test-rbtreehash_list.c: New file.
13883 * tests/test-avltree_oset.c: New file.
13884 * tests/test-rbtree_oset.c: New file.
13885 * MODULES.html.sh (Container data structures): New section.
13887 2006-07-17 Bruno Haible <bruno@clisp.org>
13889 * m4/gl_list.m4: New file.
13891 2006-07-17 Bruno Haible <bruno@clisp.org>
13893 * lib/gl_list.h: New file.
13894 * lib/gl_list.c: New file.
13895 * lib/gl_array_list.h: New file.
13896 * lib/gl_array_list.c: New file.
13897 * lib/gl_carray_list.h: New file.
13898 * lib/gl_carray_list.c: New file.
13899 * lib/gl_linked_list.h: New file.
13900 * lib/gl_linked_list.c: New file.
13901 * lib/gl_anylinked_list1.h: New file.
13902 * lib/gl_anylinked_list2.h: New file.
13903 * lib/gl_avltree_list.h: New file.
13904 * lib/gl_avltree_list.c: New file.
13905 * lib/gl_anyavltree_list1.h: New file.
13906 * lib/gl_anyavltree_list2.h: New file.
13907 * lib/gl_rbtree_list.h: New file.
13908 * lib/gl_rbtree_list.c: New file.
13909 * lib/gl_anyrbtree_list1.h: New file.
13910 * lib/gl_anyrbtree_list2.h: New file.
13911 * lib/gl_anytree_list1.h: New file.
13912 * lib/gl_anytree_list2.h: New file.
13913 * lib/gl_linkedhash_list.h: New file.
13914 * lib/gl_linkedhash_list.c: New file.
13915 * lib/gl_anyhash_list1.h: New file.
13916 * lib/gl_anyhash_list2.h: New file.
13917 * lib/gl_avltreehash_list.h: New file.
13918 * lib/gl_avltreehash_list.c: New file.
13919 * lib/gl_rbtreehash_list.h: New file.
13920 * lib/gl_rbtreehash_list.c: New file.
13921 * lib/gl_anytreehash_list1.h: New file.
13922 * lib/gl_anytreehash_list2.h: New file.
13924 * lib/gl_oset.h: New file.
13925 * lib/gl_oset.c: New file.
13926 * lib/gl_array_oset.h: New file.
13927 * lib/gl_array_oset.c: New file.
13928 * lib/gl_avltree_oset.h: New file.
13929 * lib/gl_avltree_oset.c: New file.
13930 * lib/gl_rbtree_oset.h: New file.
13931 * lib/gl_rbtree_oset.c: New file.
13932 * lib/gl_anytree_oset.h: New file.
13934 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13936 * m4/mkancesdirs.m4: New file.
13937 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
13938 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
13939 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
13942 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13944 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
13945 * lib/mkancesdirs.h: New files.
13946 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
13947 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
13948 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
13949 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
13950 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
13951 callers changed. Revamp internals significantly, by not
13952 attempting to create directories that are temporarily more
13953 permissive than the final results. Do not attempt to use
13954 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
13955 This removes some race conditions, fixes some bugs, and simplifies
13956 things. Use new dirchownmod function to do owner and mode changes.
13957 * lib/mkdir-p.h: Likewise.
13958 * lib/modechange.c (octal_to_mode): New function.
13959 (struct mode_change): New member mentioned.
13960 (make_node_op_equals): New arg mentioned. All callers changed.
13961 (mode_compile): Keep track of which mode bits the user has explicitly
13963 (mode_adjust): New arg DIR, so that we implement the X op correctly.
13964 New arg PMODE_BITS, to keep track of which mode bits the user
13965 mentioned; it treats S_ISUID and S_ISGID speciall.
13966 All callers changed.
13967 * lib/modechange.h: Likewise.
13969 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13971 * MODULES.html.sh: Add mkancestors.
13972 * modules/mkancesdirs: New module.
13973 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
13974 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
13975 The chdir-safer and afs files are now orphans; I'll remove them
13976 unless someone speaks up.
13977 Add lib/dirchownmod.c, lib/dirchownmod.h.
13978 (Depends-on): Remove alloca, chown, save-cwd, dirname.
13979 Add lchown, mkancesdirs.
13980 (Maintainer): Add self.
13982 2006-07-15 Karl Berry <karl@gnu.org>
13984 * gnulib-tool: help message wording/arrangement.
13986 2006-07-14 Simon Josefsson <jas@extundo.com>
13988 * doc/gnulib.texi (Libtool and Windows): New section.
13990 2006-07-12 Simon Josefsson <jas@extundo.com>
13992 * modules/gendocs (License): Fix license, approved by Karl.
13994 2006-07-12 Eric Blake <ebb9@byu.net>
13996 * MODULES.html.sh: Add gendocs.
13998 2006-07-11 Eric Blake <ebb9@byu.net>
14000 * modules/fdl: New module, to install doc/fdl.texi.
14001 * MODULES.html.sh: Add new section for documentation modules.
14002 * gnulib-tool: Avoid space-tab.
14003 (--doc-base): New option, to manage files from doc.
14005 2006-07-11 Eric Blake <ebb9@byu.net>
14007 * m4/absolute-header.m4: Fix comments to match recent change.
14009 2006-07-11 Eric Blake <ebb9@byu.net>
14011 * gnulib-tool: List --doc-base before --tests-base.
14013 2006-07-11 Derek R. Price <derek@ximbiot.com>
14015 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
14017 2006-07-11 Bruno Haible <bruno@clisp.org>
14019 * README: Mention where to put documentation.
14021 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14023 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
14025 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
14027 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
14030 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
14032 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
14033 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
14034 "no/such/file/stdint.h" when there is no such file, so that
14035 the resulting C code can be parsed by dodgy compilers.
14036 Problems reported by Bob Proulx.
14038 2006-07-10 Derek R. Price <derek@ximbiot.com>
14040 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
14041 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
14042 macros into the GNU _D_EXACT_NAMLEN.
14043 * lib/savedir.c: Likewise.
14044 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
14046 2006-07-10 Derek R. Price <derek@ximbiot.com>
14047 and Paul Eggert <eggert@cs.ucla.edu>
14049 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
14051 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
14052 macros into the GNU _D_EXACT_NAMLEN.
14054 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
14056 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
14057 around the absolute name, to work around a problem with the HP-UX
14058 11.23 native C compiler, reported by Bob Proulx.
14060 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
14062 * doc/maintain.texi, make-stds.texi: Sync from
14063 <http://savannah.gnu.org/projects/gnustandards>.
14065 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
14067 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
14069 2006-07-09 Jim Meyering <jim@meyering.net>
14071 * m4/glob.m4: Remove a doubled word in a comment.
14073 2006-07-09 Jim Meyering <jim@meyering.net>
14075 * lib/argp-pv.c: Remove a doubled word in a comment.
14076 * lib/check-version.c (check_version): Likewise.
14077 * lib/javacomp.c (compile_java_class): Likewise.
14079 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
14081 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
14082 for the benefit of people using Autoconf 2.60. If you want to
14083 support older Autoconf versions you can copy m4/onceonly_2_57.m4
14084 (or m4/onceonly.m4, if pre-2.57) manually.
14086 2006-07-08 Jim Meyering <jim@meyering.net>
14088 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
14090 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
14091 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
14094 2006-07-08 Jim Meyering <jim@meyering.net>
14096 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
14098 2006-07-07 Simon Josefsson <jas@extundo.com>
14100 * tests/test-crc.c: Change expected crc value, the test vector
14101 were probably computed using the old broken crc.c?
14103 2006-07-06 Simon Josefsson <jas@extundo.com>
14105 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
14106 now the canonical place for the M4 file).
14108 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
14109 from the sys_socket dependency now.
14111 * modules/inet_pton (Files): Ditto.
14113 * modules/inet_ntop (Files): Ditto.
14115 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
14117 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
14118 not gl_PREREQ_GETUSERSHELL.
14120 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14122 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
14123 with only one argument, for Autoconf 2.60.
14124 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
14125 expand to nothing, so add a shell command to avoid syntax error.
14126 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14128 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14130 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
14132 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14134 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
14135 no longer needed. Check for isblank decl.
14136 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
14137 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
14140 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14142 * lib/getloadavg.c: Use __VMS, not VMS.
14143 * lib/getopt.c: Likewise.
14144 * lib/getpagesize.h: Likewise.
14145 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
14146 and probably does not work.
14148 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14150 * lib/.cppi-disable: Add wcwidth.
14151 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
14152 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
14153 (ISGRAPH): Remove. All uses changed to isgraph.
14154 (FOLD) [!defined _LIBC]: Remove special case.
14155 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
14156 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
14158 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
14161 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
14163 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
14164 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
14165 brackets. Other minor changes to suppress some compiler
14168 2006-07-06 Derek R. Price <derek@ximbiot.com>
14169 and Paul Eggert <eggert@cs.ucla.edu>
14171 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
14172 of invoking obsolescent AC_HEADER_DIRENT macro.
14173 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14174 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14175 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14176 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14177 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
14178 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14179 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
14180 * m4/readdir.m4: Remove; no longer needed.
14182 2006-07-06 Derek R. Price <derek@ximbiot.com>
14183 and Paul Eggert <eggert@cs.ucla.edu>
14185 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
14186 Don't worry about this obsolete case any more.
14187 (HAVE_DIR): Remove. All uses removed; we now assume you can read
14189 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
14190 worry about this obsolete case any more.
14191 * lib/fts.c: Likewise.
14192 * lib/getcwd.c: Likewise.
14193 * lib/glob.h: Likewise.
14194 * lib/savedir.c: Likewise.
14196 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
14198 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
14199 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
14200 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
14203 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14204 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14205 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
14207 * m4/getdate.m4 (gl_GETDATE): Likewise.
14208 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14209 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14210 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14211 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14212 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14213 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14214 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
14217 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
14219 * lib/memcasecmp.c: Include <limits.h>.
14220 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
14221 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
14222 Don't assume isdigit succeeds only on '0' through '9'.
14224 2006-07-05 Eric Blake <ebb9@byu.net>
14226 * modules/getaddrinfo (Depends-on): Add snprintf.
14228 2006-07-05 Eric Blake <ebb9@byu.net>
14230 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
14231 to avoid 'header present but could not be compiled' on cygwin.
14233 2006-07-05 Eric Blake <ebb9@byu.net>
14235 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
14236 missing from netdb.h.
14237 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
14239 2006-07-05 Derek R. Price <derek@ximbiot.com>
14241 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
14243 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
14244 * m4/getdate.m4 (gl_GETDATE): Likewise.
14245 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14246 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14247 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14248 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14249 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14251 2006-07-05 Derek R. Price <derek@ximbiot.com>
14253 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
14254 All uses of is_space replaced by isspace.
14255 * lib/exit.h: Don't talk about STDC_HEADERS.
14256 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
14257 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
14258 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
14259 replaced by isprint etc.
14260 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
14261 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14262 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
14263 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
14264 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
14265 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14267 2006-07-05 Bruno Haible <bruno@clisp.org>
14269 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
14270 the function exists, before testing against AIX.
14271 Reported by Martin Lambers <marlam@marlam.de>.
14273 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
14275 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
14276 From Mark D. Baushke.
14278 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
14280 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
14281 to the absolute name, not just one, to bypass Sun C 5.8's
14282 "warning: #include of /usr/include/... may be non-portable".
14284 2006-07-04 Eric Blake <ebb9@byu.net>
14286 * modules/dirname-tests: New test module.
14287 * tests/test-dirname.c: New file, replacing dirname.c
14288 TEST_DIRNAME section that was recently deleted.
14290 2006-07-04 Bruno Haible <bruno@clisp.org>
14292 Assume ANSI C header files and <ctype.h> functions.
14293 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
14294 (mbsnwidth): Use isprint, iscntrl instead.
14296 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14298 Merge from coreutils.
14299 * MODULES.html.sh: Add xstrtold.
14300 * modules/xstrtold: New file.
14301 * modules/cycle-check (Files): Add lib/same-inode.h.
14302 * modules/dirname (Files): Add m4/double-slash-root.m4.
14303 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
14304 * modules/mkdir-p (Files): Add lib/same-inode.h.
14305 * modules/same (Files): Add lib/same-inode.h.
14307 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14309 * m4/absolute-header.m4: Renamed from full-header-path.m4.
14310 This is to keep the terminology clean; POSIX talks about
14311 "absolute pathnames", not "full pathnames", but the GNU
14312 Coding Standards say to use "path" for something else;
14313 so use "absolute" to keep both sides happy.
14314 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
14315 Set gl_absolute_header, not gl_full_header_path.
14316 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
14317 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
14320 Merge from coreutils.
14322 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
14324 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
14325 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
14326 want to require the building of c-strtod.o.
14327 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
14328 needs -lm directly.
14329 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
14331 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14333 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
14334 --as-needed option if available. Problem reported by Albert Chin in
14335 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
14336 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
14337 cc merely issues a bunch of annoying warnings for --as-needed
14338 (this problem was reported by Bob Proulx). Also, try linking with
14339 -lm to detect a bug in binutils 2.16 (this problem was reported
14340 by Ralf Wildenhues).
14342 2006-06-18 Jim Meyering <jim@meyering.net>
14344 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
14345 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
14347 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
14348 also check for glibc-2.4's abort-inducing bug.
14350 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
14351 Low-probability clean-up should be to use rmdir to get rid of
14352 the just-created directory, not unlink.
14354 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
14355 configure fail, and request a bug report to inform us about it.
14356 Add a comment that, barring reports to the contrary, in 2007 we'll
14357 assume ftruncate is universally available.
14359 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
14361 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
14363 2006-03-12 Jim Meyering <jim@meyering.net>
14365 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
14366 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
14367 * m4/same.m4 (gl_SAME): Likewise.
14368 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
14370 2006-03-11 Eric Blake <ebb9@byu.net>
14372 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
14373 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
14374 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
14375 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
14377 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14379 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
14380 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
14381 reported by Mark D. Baushke, one in
14382 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
14384 Merge from coreutils.
14386 * lib/.cppi-disable: Add stdint_.h.
14387 * lib/.cvsignore: Add stdint.h.
14389 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
14391 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
14392 both double and long double versions.
14393 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
14394 * lib/xstrtold.c: New file.
14395 * lib/xstrtod.h (xstrtold): New decl.
14397 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
14399 * lib/filemode.c (setst): Remove.
14400 (strmode): Rewrite to avoid setst. This makes the code shorter,
14401 (arguably) clearer, and the generated code is a bit smaller on my
14402 Debian GNU/Linux stable x86 host.
14404 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
14406 * lib/filemode.c: Include "filemode.h" first, to test the interface.
14407 Assume that filemode.h includes sys/types.h and sys/stat.h.
14408 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
14409 (ftypelet): Reorder to put common cases first, for efficiency.
14410 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
14412 (strmode): Renamed from mode_string, and now stores 12 bytes instead
14413 of 10, for compatibility with FreeBSD. All callers changed.
14414 (filemodestring): Now stores 12 bytes instead of 10, and sets file
14415 types that can't be deduced solely from st_mode. First arg is now a
14417 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
14418 (strmode): Renamed from mode_string.
14419 (filemodestring): New decl.
14420 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
14421 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
14423 (S_ISPORT, S_ISWHT): New macros, if not already defined.
14425 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
14427 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
14428 fsusage.h now does that. Include fsusage.h first, to test interface.
14429 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
14430 at most one method (the old code could have generated decls that
14431 didn't conform to C89, not that this was ever exercised).
14432 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
14434 2006-03-19 Jim Meyering <jim@meyering.net>
14436 Work even in a chroot where d_ino values for entries in "/"
14437 don't match the stat.st_ino values for the same names.
14438 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
14439 number, iterate through all entries again, using lstat instead.
14440 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
14441 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
14443 * lib/getcwd.c (__getcwd): Clarify a comment.
14444 Use memcpy in place of a call to strcpy.
14446 2006-03-12 Jim Meyering <jim@meyering.net>
14448 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
14449 matches that of the current directory (which we're about to chdir ".."
14450 out of), then save the dev-ino of the parent, instead.
14452 * lib/same-inode.h (SAME_INODE): New file/macro.
14453 * lib/chdir-safer.c (SAME_INODE): Remove definition.
14454 Include "same-inode.h", instead.
14455 * lib/same.c: Likewise.
14456 * lib/cycle-check.h: Include "same-inode.h".
14457 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
14458 * lib/cycle-check.c (SAME_INODE): Remove definition.
14459 * lib/root-dev-ino.h: Include "same-inode.h".
14461 2006-03-11 Eric Blake <ebb9@byu.net>
14463 * lib/same.c (same_name): s/base_name/last_component/
14464 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
14465 * lib/filenamecat.c (file_name_concat): Likewise.
14467 2006-03-11 Eric Blake <ebb9@byu.net>,
14468 Paul Eggert <eggert@cs.ucla.edu>
14470 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
14471 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
14473 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
14474 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
14475 (last_component): New method.
14476 * lib/dirname.c (dir_len): Determine when drive letters need a
14477 subsequent slash. Preserve // when it is special.
14478 (dir_name): Don't append dot when drive letter is absolute.
14479 [TEST_DIRNAME]: Move into a full-blown gnulib test.
14480 * lib/basename.c (base_name): New semantics - malloc the result.
14481 Preserve // when it is special. Preserve relative files that look
14482 like drive letters.
14483 (base_len): Preserve // when it is special.
14484 (last_component): New method, similar to old base_name semantics.
14485 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
14486 base_name. Strip redundant slashes from ///.
14488 2006-07-03 Jim Meyering <jim@meyering.net>
14490 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
14491 macro is used before the first cycle_check call.
14493 2006-07-03 Eric Blake <ebb9@byu.net>
14495 * modules/dirname (Depends-on): Add xstrndup.
14497 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14499 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
14500 test cases, so that config.log is a bit easier to follow.
14502 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14504 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
14505 both are 64 bits, since this seems to be the tradition, and this
14506 prevents gcc -Wformat from warning about usages with PRIuMAX. If
14507 we ever run into a host that prefers long long to long in this
14508 case, we'll need another configure-time test. Problem reported by
14511 2006-07-02 Eric Blake <ebb9@byu.net>
14513 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
14515 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14517 * modules/inttypes (Depends-on): No longer depends on stdint.
14518 * modules/stdint (Description): Say more about assumptions.
14519 Say that the fast types might differ. Say macros are used.
14520 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
14521 (Makefile.am): Revise list of substituted symbols to match
14523 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
14524 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
14525 * tests/test-stdint.c (verify_same_types)
14526 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
14527 the code conforms to C99/C89.
14528 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
14529 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
14531 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14533 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
14534 but fix a bug, by requiring at least 64 bits.
14535 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
14536 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
14537 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
14538 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
14540 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
14541 changes. Make 2.59 a prerequisite. Check and substitute for
14542 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
14543 inttypes.h. Do not use special include files; just use the
14544 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
14545 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
14546 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
14547 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
14548 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
14549 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
14550 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
14551 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
14552 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
14553 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
14554 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
14555 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
14556 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
14557 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
14558 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
14559 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
14560 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
14561 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
14562 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
14563 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
14564 WINT_MAX. Check for C99 conformance more strictly, by detecting
14565 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
14566 not check for things that C99 does not require, e.g., int8_t. If
14567 a test isn't needed unless <stdint.h> isn't working, and is
14568 unlikely to be needed for any other reason, then don't do it
14569 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
14570 size_t, since we assume C89 freestanding at least. Do not check
14571 for sig_atomic_t, wchar_t, or wint_t, since the code now does
14572 the right thing even if the types are not defined. Instead use:
14573 (gl_STDINT_TYPE_PROPERTIES): New macro.
14574 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
14575 testing whether <sys/types.h> clashes, as Autoconf does this for
14576 us now. All uses removed.
14577 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
14578 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
14579 (gl_CHECK_TYPE_SAME):
14580 Remove; no longer needed.
14581 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
14582 exists, since we'll return 0 anyway in that case.
14583 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
14585 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14587 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
14588 possible collision with system files.
14589 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
14590 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
14591 WCHAR_MIN and WCHAR_MAX in this case.
14592 (<stddef.h>): Do not include; no longer needed.
14593 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
14594 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
14595 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
14596 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
14597 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
14598 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
14599 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
14600 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
14601 !defined(__c99))]: Include in this case too, since it's harmless
14603 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
14604 dangerous to do so.
14605 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
14606 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
14607 (_STDINT_MIN, _STDINT_MAX): New macros.
14608 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
14609 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
14610 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
14611 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
14612 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
14613 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
14614 macros, not typedefs; this simplifies things quite a bit.
14615 Use long int for all types narrower than int64_t.
14616 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
14617 Define in terms of long long int or int64_t or long int,
14618 not int64_t or int32_t. This saves some compile-time testing.
14619 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
14620 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
14621 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
14622 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
14623 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
14624 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
14625 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
14626 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
14627 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
14628 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
14629 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14630 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14631 undef any previous version and define our own version, for
14632 simplicity and consistency with the new macros for types.
14633 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14634 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14635 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
14636 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
14637 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
14638 @WINT_T_SUFFIX@ to keep things simple here.
14639 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
14640 Simplify by assuming typical 8/16/32/64 host, since we're
14641 already doing that elsewhere anyway.
14642 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
14643 and assume long long int is 64 bits if available. This
14644 speeds up 'configure'.
14646 2006-07-01 Eric Blake <ebb9@byu.net>
14648 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
14649 Reported by Andreas Buening.
14651 2006-07-01 Eric Blake <ebb9@byu.net>
14653 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
14655 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
14657 * lib/getaddrinfo.c: fixed typo
14659 2006-06-29 Jim Meyering <jim@meyering.net>
14661 * modules/strftime (Maintainer): Add my name, since with the
14662 FPRINTFTIME changes strftime.c has forked from glibc.
14664 2006-06-29 Eric Blake <ebb9@byu.net>
14666 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
14668 2006-06-29 Eric Blake <ebb9@byu.net>
14670 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
14672 2006-06-29 Eric Blake <ebb9@byu.net>
14674 * lib/stat_.h: New file.
14676 2006-06-29 Eric Blake <ebb9@byu.net>
14678 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
14679 unused static function.
14681 2006-06-29 Eric Blake <ebb9@byu.net>
14683 * doc/functions.texi (Function Portability): Document missing lstat
14686 2006-06-29 Eric Blake <ebb9@byu.net>
14688 * MODULES.html.sh: Add sys_stat.
14689 * modules/sys_stat: New module.
14690 * modules/mkstemp (Depends-on): Add sys_stat.
14692 2006-06-29 Derek R. Price <derek@ximbiot.com>
14694 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
14696 2006-06-29 Derek R. Price <derek@ximbiot.com>
14698 * m4/c-bs-a.m4: Removed.
14700 2006-06-29 Derek R. Price <derek@ximbiot.com>
14702 * lib/strftime.c: Assume strftime() exists.
14704 2006-06-29 Derek Price <derek@ximbiot.com>
14706 * modules/c-bs-a: Removed - \a is C89.
14707 * MODULES.html.sh: Remove c-bs-a.
14709 2006-06-29 Bruno Haible <bruno@clisp.org>
14711 * modules/wcwidth (License): Change to LGPL.
14713 2006-06-28 Simon Josefsson <jas@extundo.com>
14715 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
14718 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14721 2006-06-28 Simon Josefsson <jas@extundo.com>
14723 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14725 2006-06-28 Simon Josefsson <jas@extundo.com>
14727 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14728 functions there. It will succeed on Windows XP, but on Windows
14729 2000 and (presumably) earlier, it will fail, and use the internal
14731 (use_win32_p): New function.
14732 (getaddrinfo): Use strtoul on servname, to support numeric ports.
14733 Support AI_NUMERICSERV to disable getservbyname.
14734 (getnameinfo): New function, only supports
14735 NI_NUMERICHOST|NI_NUMERICSERV for now.
14737 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14738 only have some of them. Add AI_NUMERICSERV. Add prototype for
14741 2006-06-28 Eric Blake <ebb9@byu.net>
14743 * modules/wcwidth: New file.
14744 * modules/mbchar (Depends-on): Add wcwidth.
14745 * modules/mbswidth (Depends-on): Add wcwidth.
14746 * MODULES.html.sh: Add wcwidth.
14748 2006-06-28 Eric Blake <ebb9@byu.net>
14750 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14751 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14753 2006-06-28 Eric Blake <ebb9@byu.net>
14755 * lib/xvasprintf.h: Fix comments.
14757 2006-06-28 Eric Blake <ebb9@byu.net>
14759 * lib/mbchar.h (wcwidth): Include wcwidth.h.
14760 * lib/mbswidth.c (wcwidth): Move from here...
14761 * lib/wcwidth.h: ...to this new file.
14763 2006-06-28 Derek R. Price <derek@ximbiot.com>
14765 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14767 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14769 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14771 2006-06-28 Derek R. Price <derek@ximbiot.com>
14773 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
14774 Autoconf 2.60 says this stuff was obsolete.
14776 2006-06-28 Bruno Haible <bruno@clisp.org>
14778 * modules/wcwidth (Files): Add m4/wchar_t.m4.
14780 2006-06-28 Bruno Haible <bruno@clisp.org>
14782 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
14785 2006-06-28 Bruno Haible <bruno@clisp.org>
14787 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
14788 declaration for wcwidth.
14789 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
14791 2006-06-28 Bruno Haible <bruno@clisp.org>
14793 * lib/mkdtemp.c [MINGW]: Include <io.h>.
14794 (mkdir): Define using _mkdir.
14796 2006-06-28 Bruno Haible <bruno@clisp.org>
14798 * lib/getaddrinfo.h: Fix POSIX URL.
14799 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
14801 (use_win32_p): Make static.
14802 (getaddrinfo): Reject service name if it is empty or does not consist
14803 solely of decimal digits, or if its value is > 65535.
14804 (getnameinfo): Remove useless casts.
14806 2006-06-27 Simon Josefsson <jas@extundo.com>
14808 * modules/sys_select: New file, suggested by Bruno Haible, Paul
14809 Eggert and Martin Lambers.
14811 2006-06-27 Simon Josefsson <jas@extundo.com>
14813 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
14814 Eggert and Martin Lambers.
14816 2006-06-27 Bruno Haible <bruno@clisp.org>
14818 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
14819 result to 0, not to empty.
14820 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
14822 2006-06-27 Bruno Haible <bruno@clisp.org>
14824 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
14826 2006-06-26 Simon Josefsson <jas@extundo.com>
14828 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
14831 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
14833 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
14834 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
14835 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
14837 2006-06-26 Mark D. Baushke <mdb@gnu.org>
14839 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
14841 2006-06-26 Bruno Haible <bruno@clisp.org>
14843 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
14845 2006-06-26 Bruno Haible <bruno@clisp.org>
14847 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
14849 2006-06-26 Bruno Haible <bruno@clisp.org>
14851 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
14852 SGI C compiler in pre-C99 mode.
14853 Suggested by Mark D. Baushke and Larry Jones.
14855 2006-06-26 Bruno Haible <bruno@clisp.org>
14857 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
14859 Reported by Mark D. Baushke and Larry Jones.
14861 2006-06-26 Bruno Haible <bruno@clisp.org>
14863 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
14865 Suggested by Mark D. Baushke and Larry Jones.
14867 2006-06-23 Simon Josefsson <jas@extundo.com>
14868 Bruno Haible <bruno@clisp.org>
14870 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
14871 Emit mostlyclean-local rule.
14872 (func_emit_tests_Makefile_am): Likewise.
14873 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
14875 2006-06-23 Mark D. Baushke <mdb@gnu.org>
14877 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
14879 2006-06-23 Bruno Haible <bruno@clisp.org>
14881 * tests/test-stdint.c: Update to match ISO C 99 Technical
14884 2006-06-23 Bruno Haible <bruno@clisp.org>
14886 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
14888 2006-06-23 Bruno Haible <bruno@clisp.org>
14890 * lib/stdint_.h: Treat IRIX like OpenBSD.
14892 2006-06-23 Bruno Haible <bruno@clisp.org>
14894 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
14895 ISO C 99 Technical Corrigendum 1.
14897 2006-06-22 Simon Josefsson <jas@extundo.com>
14899 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
14902 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
14904 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
14905 needed. Some compiler complained about some of them. Problem reported
14907 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
14909 2006-06-21 Simon Josefsson <jas@extundo.com>
14911 * tests/test-getaddrinfo.c: New file.
14913 * modules/getaddrinfo-tests: New file.
14915 * MODULES.html.sh: Add inet_pton.
14917 * modules/inet_pton: New file.
14919 2006-06-21 Simon Josefsson <jas@extundo.com>
14921 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
14922 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
14923 of using the (limited) gnulib implementation on Windows XP.
14925 * m4/inet_pton.m4: New file.
14927 2006-06-21 Simon Josefsson <jas@extundo.com>
14929 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
14932 * lib/socket_.h: Don't define WINVER.
14934 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
14935 slightly modified to work in gnulib.
14937 2006-06-21 Simon Josefsson <jas@extundo.com>
14939 * doc/gnulib.texi (Windows sockets): Add.
14941 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
14943 * lib/read-file.c (fread_file): Start with buffer allocation of
14944 0 bytes rather than 1 byte; this simplifies the code.
14945 Don't invoke feof; it's not needed. Refactor to avoid duplicate
14946 code to free buffer and save/restore errno.
14947 (internal_read_file): Remove unused local.
14949 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
14951 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
14952 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
14953 Problem reported by Denis Excoffier in
14954 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
14956 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14958 * modules/sys_socket, modules/socklen: Include sys/types since
14959 FreeBSD 4.x's sys/socket.h needs it.
14961 2006-06-19 Simon Josefsson <jas@extundo.com>
14963 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
14965 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14967 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
14969 2006-06-19 Bruno Haible <bruno@clisp.org>
14971 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
14972 and FULL_PATH_INTTYPES_H in angle brackets.
14973 Reported by Mark D. Baushke <mdb@gnu.org>.
14975 2006-06-17 Eric Blake <ebb9@byu.net>
14977 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
14980 2006-06-17 Bruno Haible <bruno@clisp.org>
14982 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
14985 2006-06-17 Bruno Haible <bruno@clisp.org>
14987 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
14988 whether errno is declared. Assume <errno.h> declares errno.
14990 2006-06-17 Bruno Haible <bruno@clisp.org>
14992 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
14994 2006-06-17 Bruno Haible <bruno@clisp.org>
14996 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
14997 problem on Solaris 2.5.1.
14999 2006-06-16 Eric Blake <ebb9@byu.net>
15001 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
15002 * lib/unicodeio.c [!defined errno]: Likewise.
15003 * lib/strtol.c [!defined errno]: Likewise.
15004 * lib/strtod.c [!defined errno]: Likewise.
15006 2006-06-15 Eric Blake <ebb9@byu.net>
15008 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
15010 2006-06-15 Eric Blake <ebb9@byu.net>
15012 * config/srclist.txt (ssize_t.m4): Lose sync.
15014 2006-06-15 Bruno Haible <bruno@clisp.org>
15016 * modules/stdint (Files): Include m4/full-header-path.m4,
15017 m4/size_max.m4, m4/wchar_t.m4.
15018 (Makefile.am): Many more substitutions.
15019 * modules/stdint-tests: New file.
15020 * tests/test-stdint.c: New file.
15022 2006-06-15 Bruno Haible <bruno@clisp.org>
15024 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
15025 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
15026 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
15027 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
15028 gl_CHECK_TYPE_SAME): New macros.
15030 2006-06-15 Bruno Haible <bruno@clisp.org>
15032 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
15034 2006-06-15 Bruno Haible <bruno@clisp.org>
15036 * lib/stdint_.h: Rewritten to be fully auto-configured.
15037 Fixes bug on HP-UX/IA64.
15039 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
15041 * lib/getdate.y (__attribute__): Don't define if already defined.
15042 Problem reported by Larry Jones.
15043 * lib/utimens.c (__attribute__): Likewise.
15045 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
15047 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
15048 reported by Andreas Schwab.
15050 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15051 Bruno Haible <bruno@clisp.org>
15053 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
15054 check for the declaration of strnlen and a run test that exposes the
15055 AIX 5.1 strnlen bug. In the failure case, #define strndup to
15058 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15059 Bruno Haible <bruno@clisp.org>
15061 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
15063 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15065 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
15066 compile test, for Tru64 4.0D.
15068 2006-05-28 Karl Berry <karl@gnu.org>
15070 * config/srclist.txt (printf-args.c): lose sync.
15072 2006-05-26 Martin Lambers <marlam@marlam.de>
15074 * lib/getpass.c: Updates the test for the native W32 API, and adds
15075 missing includes, thus fixing compilation warnings.
15077 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
15079 * lib/exclude.c (exclude_fnmatch): New function.
15080 (excluded_file_name): Call exclude_fnmatch.
15081 * lib/exclude.h (excluded_file_name): New prototype
15083 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
15085 * lib/tempname.c (small_open, large_open): New macros.
15086 (__open, __open64) [!_LIBC]: Remove.
15087 (__gen_tempname): Use small_open and large_open instead of __open
15088 and __open64. This fixes a portability bug on HP-UX 11.11i
15089 reported by Simon Wing-Tang in
15090 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
15092 2006-05-24 Bruno Haible <bruno@clisp.org>
15094 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
15095 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
15096 Reported by Thorsten Maerz <torte@netztorte.de> via
15097 Aaron Stone <aaron@serendipity.cx>.
15099 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
15101 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
15102 gl_ rather than jm_. Link, don't run, so that cross-compiles are
15103 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
15104 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
15105 not really conditional on the cache.
15106 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
15108 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
15110 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
15111 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
15112 (my_usleep): Don't mishandle maximum value.
15114 2006-05-19 Jim Meyering <jim@meyering.net>
15116 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
15118 2006-05-17 Bruno Haible <bruno@clisp.org>
15120 Cygwin portability.
15121 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
15123 2006-05-17 Bruno Haible <bruno@clisp.org>
15125 * lib/stdint_.h: Fix recognition of Cygwin.
15127 2006-05-15 Bruno Haible <bruno@clisp.org>
15129 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
15130 on libtool patch by Ralf Wildenhues.
15132 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
15134 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
15135 test for C99 conformance; (bool) 0.5 is an integer constant
15136 expression, but (bool) -0.5 is not. Problem reported by Fedor
15137 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
15139 2006-05-11 Simon Josefsson <jas@extundo.com>
15141 * m4/xvasprintf.m4: Fix obvious typo.
15143 2006-05-11 Jim Meyering <jim@meyering.net>
15145 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
15148 2006-05-10 Simon Josefsson <jas@extundo.com>
15150 * lib/md4.c: Typo fix, update copyright years.
15151 (K1, K2): Don't use L because it turn computations into 64-bit on
15154 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
15156 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
15157 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
15158 unwanted sign propagation, e.g., on hosts with 64-bit int.
15159 There still are some problems with reeelly weird theoretical hosts
15160 (e.g., 33-bit int) but it's not worth worrying about now.
15161 * lib/sha1.c (rol): Likewise.
15162 (K1, K2, K3, K4): Remove unnecessary L suffix.
15164 2006-05-10 Bruno Haible <bruno@clisp.org>
15166 * lib/des.c: Cast to avoid warnings.
15168 2006-05-09 Bruno Haible <bruno@clisp.org>
15170 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
15171 (Depends-on): Depend also on xsize, stdarg.
15172 (configure.ac): Add gl_XVASPRINTF.
15174 2006-05-09 Bruno Haible <bruno@clisp.org>
15176 * m4/xvasprintf.m4: New file.
15178 2006-05-09 Bruno Haible <bruno@clisp.org>
15180 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
15181 (EOVERFLOW): Define fallback value.
15182 (xstrcat): New function.
15183 (xvasprintf): Recognize the special case of a string concatenation.
15185 2006-05-08 Eric Blake <ebb9@byu.net>
15187 * gnulib-tool (func_version): Base copyright year on CVS date.
15188 (func_emit_copyright_notice): New function.
15189 (func_emit_lib_Makefile_am): Use it.
15190 (func_emit_tests_Makefile_am): Likewise.
15191 (func_import): Likewise.
15193 2006-05-08 Bruno Haible <bruno@clisp.org>
15195 * modules/stdarg: New file.
15196 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
15198 2006-05-08 Bruno Haible <bruno@clisp.org>
15200 * m4/stdarg.m4: New file, from GNU gettext.
15202 2006-05-08 Bruno Haible <bruno@clisp.org>
15204 * config/srclist.txt (build-aux/config.rpath): different from latest
15207 2006-05-08 Bruno Haible <bruno@clisp.org>
15209 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
15211 2006-05-05 Jim Meyering <jim@meyering.net>
15213 * m4/warning.m4: New file, derived from bison's file by the same name.
15215 2006-05-03 Bruno Haible <bruno@clisp.org>
15217 * lib/stdint_.h: Shorter URL.
15218 * lib/inttypes.h: Likewise.
15220 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15222 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
15224 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15226 * lib/verify.h: Document the internals better. Most of this change
15227 was written by Bruno Haible.
15229 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15231 * doc/verify.texi: New file, partly based on a proposal by
15234 2006-05-02 Bruno Haible <bruno@clisp.org>
15236 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
15238 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
15240 2006-04-29 Bruno Haible <bruno@clisp.org>
15242 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
15243 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
15245 2006-04-29 Bruno Haible <bruno@clisp.org>
15247 * gnulib-tool: Make --update option actually work.
15249 2006-04-29 Bruno Haible <bruno@clisp.org>
15251 * doc/gcd.texi: New file.
15252 * doc/gnulib.texi: Include it.
15254 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
15256 * lib/getdate.y (get_date): When adding relative date, start with the
15257 initial time, not with the result of the first mktime call.
15259 2006-04-25 Bruno Haible <bruno@clisp.org>
15261 * gnulib-tool (func_import): Output the include directives in three
15262 blocks, sorted separately.
15263 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15265 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
15267 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
15268 to define main with arguments, for C++. Reported by Eric Blake.
15269 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15270 Prefer 'int main ()' to 'int main (void)', for C++.
15271 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15272 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
15273 for 'main', for C99 and C++.
15275 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
15277 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
15278 Don't assume that exit status -1 is valid.
15279 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15280 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15281 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15282 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
15283 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
15284 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
15285 not AC_TRY_RUN. Use return, not exit. Don't assume that
15286 functions can be used without declaring them, or that you can
15287 exit with status -1.
15288 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15290 2006-04-24 Karl Berry <karl@gnu.org>
15292 * config/srclist.txt (longdouble.m4): sync lost.
15294 2006-04-24 Eric Blake <ebb9@byu.net>
15296 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
15298 2006-04-24 Bruno Haible <bruno@clisp.org>
15300 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
15301 poll() implementation in AIX.
15302 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15304 2006-04-24 Bruno Haible <bruno@clisp.org>
15306 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
15307 assigned exactly once.
15309 2006-04-23 Claudio Fontana <claudio@gnu.org>
15310 Bruno Haible <bruno@clisp.org>
15312 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
15313 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
15316 2006-04-23 Bruno Haible <bruno@clisp.org>
15318 * modules/copy-file: Depend on unistd.
15319 * modules/execute: Likewise.
15320 * modules/fatal-signal: Likewise.
15321 * modules/findprog: Likewise.
15322 * modules/mkdtemp : Likewise.
15323 * modules/pipe: Likewise.
15324 * modules/wait-process: Likewise.
15326 2006-04-23 Bruno Haible <bruno@clisp.org>
15328 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
15329 condition was already detected.
15330 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15332 2006-04-23 Bruno Haible <bruno@clisp.org>
15334 * lib/copy-file.c: Include <unistd.h> unconditionally.
15335 * lib/execute.c: Likewise.
15336 * lib/fatal-signal.c: Likewise.
15337 * lib/findprog.c: Likewise.
15338 * lib/mkdtemp.c: Likewise.
15339 * lib/pipe.h: Likewise.
15340 * lib/pipe.c: Likewise.
15341 * lib/wait-process.h: Likewise.
15343 2006-04-23 Bruno Haible <bruno@clisp.org>
15345 * gnulib-tool (func_usage): Fix --import description. Document
15347 (func_import): Create temporary file in a temporary directory, if
15348 --dry-run is specified. Silence errors from 'grep' when there are no
15349 m4 files in $m4dir.
15350 (func_create_testdir): Silence errors from 'grep' when there are no
15351 m4 files in $m4dir.
15352 Reported by Karl Berry <karl@freefriends.org>.
15354 2006-04-20 Bruno Haible <bruno@clisp.org>
15356 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
15357 one argument, so that the code will be portable to Autoconf 2.60.
15358 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
15359 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15360 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
15362 2006-04-19 Derek Price <derek@ximbiot.com>
15363 Eric Blake <ebb9@byu.net>
15365 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
15366 rather than "/full/path.h". Update comment to match. Shorten &
15367 generalize m4_translit call via AS_TR_CPP.
15369 2006-04-19 Derek Price <derek@ximbiot.com>
15370 Eric Blake <ebb9@byu.net>
15372 * lib/inttypes.h: Correct grammar in comment.
15374 2006-04-18 Derek Price <derek@ximbiot.com>
15375 Paul Eggert <eggert@cs.ucla.edu>
15377 * modules/inttypes: New file.
15378 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
15380 2006-04-18 Derek Price <derek@ximbiot.com>
15381 Paul Eggert <eggert@cs.ucla.edu>
15383 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
15386 2006-04-18 Derek Price <derek@ximbiot.com>
15387 Paul Eggert <eggert@cs.ucla.edu>
15389 * lib/inttypes.h: New file.
15390 * lib/strtoimax.c: Assume <inttypes.h>.
15392 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
15394 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
15395 isn't mounted. Problem reported by Kir Kolyshkin.
15397 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
15399 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
15400 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
15402 * lib/regex.h (RE_DUP_MAX): Update comment to match current
15405 2006-04-12 Eric Blake <ebb9@byu.net>
15407 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
15408 is now done automatically by the corresponding Autoconf macro.
15410 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
15412 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
15415 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15417 Merge regex changes from libc, removing some of our
15418 POSIX-conformance changes that were rejected and redoing them in a
15419 less-intrusive way.
15421 * lib/regcomp.c (re_compile_internal, init_dfa):
15422 Length arg is now size_t, not Idx. All uses changed.
15423 (peek_token): Forward decl now says internal_function.
15424 (__re_error_msgid, __re_error_msgid_idx):
15425 Now static rather than extern with attribute_hidden.
15426 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
15427 For some reason libc prefers K&R style defns for external functions.
15428 (regerror) [!defined _LIBC]: Likewise.
15429 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
15430 (seek_collating_symbol_entry, lookup_collation_sequence_value):
15431 (build_range_exp, build_collating_symbol):
15432 Use K&R-style defn.
15433 (re_compile_fastmap): Use '\0' to memset, not 0.
15434 (utf8_sb_map): Make the calculations more obvious.
15435 (init_dfa, parse_bracket_exp, build_charclass_op):
15436 Call calloc and cast result, as glibc does.
15437 (init_word_char, fetch_token, peek_token, peek_token_bracket):
15438 (build_range_exp, build_collating_symbol):
15439 Now internal functions.
15441 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
15443 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
15444 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
15445 Don't depend on VMS; depend on __VMS instead, for POSIX
15446 namespace cleanness.
15447 (regoff_t): Define to ssize_t, not long int.
15449 Remove the REG_ macros named below. Instead, make the old names
15450 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
15452 (REG_BACKSLASH_ESCAPE_IN_LISTS):
15453 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
15454 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
15455 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
15456 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
15457 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
15458 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
15459 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
15460 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
15461 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
15462 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
15463 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
15464 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
15465 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
15466 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
15467 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
15468 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
15470 Remove. All uses replaced by the old RE_* names.
15471 (RE_BACKSLASH_ESCAPE_IN_LISTS):
15472 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
15473 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
15474 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
15475 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
15476 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
15477 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
15478 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
15479 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
15480 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
15481 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
15482 Don't bother having these macros be independent of each others'
15483 values, since they no longer exist in the POSIX name space.
15485 Rename the following member names back to their old names,
15486 unless !__USE_GNU_REGEX. All uses changed back.
15487 (buffer): Renamed from re_buffer.
15488 (allocated): Renamed from re_allocated.
15489 (used): Renamed from re_used.
15490 (syntax): Renamed from re_syntax.
15491 (fastmap): Renamed from re_fastmap.
15492 (translate): Renamed from re_translate.
15493 (can_be_null): Renamed from re_can_be_null.
15494 (regs_allocated): Renamed from re_regs_allocated.
15495 (fastmap_accurate): Renamed from re_fastmap_accurate.
15496 (no_sub): Renamed from re_no_sub.
15497 (not_bol): Renamed from re_not_bol.
15498 (not_eol): Renamed from re_not_eol.
15499 (newline_anchor): Renamed from re_newline_anchor.
15500 (num_regs): Renamed from rm_num_regs.
15501 (start): Renamed from rm_start.
15502 (end): Renamed from rm_end.
15504 (free_state): Move up a bit.
15506 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
15507 #define to be empty.
15508 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
15509 when that is what is intended.
15510 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
15511 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
15513 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
15514 All uses changed back to re_malloc, etc. It's now the caller's
15515 responsibility to check for overflow; all callers changed.
15516 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
15517 (re_x2nrealloc): Remove.
15518 (free_state): Remove decl.
15520 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
15521 (re_set_registers, re_exec):
15522 Use K&R-style defn.
15524 2006-01-31 Roland McGrath <roland@redhat.com>
15526 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
15527 Reported by Mike Frysinger <vapier@gentoo.org>.
15529 2006-01-15 Andreas Jaeger <aj@suse.de>
15532 * lib/regex_internal.c (re_string_reconstruct): Adjust for
15533 build_wcs_upper_buffer change.
15534 (build_wcs_upper_buffer): Change return type.
15536 2005-12-10 Ulrich Drepper <drepper@redhat.com>
15538 * lib/regex_internal.h: Include <stdint.h> if available.
15540 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
15542 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
15544 2005-10-14 Ulrich Drepper <drepper@redhat.com>
15546 * lib/regcomp.c: Adjust for changed secondary hash function.
15548 2005-09-30 Ulrich Drepper <drepper@redhat.com>
15550 * lib/regex.h: Pretty printing.
15551 Clean up namespace a bit.
15553 2005-09-30 Jakub Jelinek <jakub@redhat.com>
15555 * lib/regexec.c (update_cur_sifted_state, check_arrival,
15556 check_arrival_add_next_nodes): Avoid using uninitialized variable.
15558 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
15559 Ulrich Drepper <drepper@redhat.com>
15562 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
15564 (bitset_word_t): Renamed from bitset_word. All uses changed.
15566 2005-09-22 Ulrich Drepper <drepper@redhat.com>
15569 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
15570 * lib/regcomp.c: Remove unnecessary uses of
15571 unsigned RE_TRANSLATE_TYPE.
15572 * lib/regex_internal.h: Likewise.
15573 * lib/regex_internal.c: Likewise.
15574 * lib/regexec.c: Likewise.
15575 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
15577 2005-09-07 Ulrich Drepper <drepper@redhat.com>
15579 * lib/regexec.c (find_recover_state): Remove unnecessary
15581 (transit_state_bkref): Make DFA a const pointer.
15582 (get_subexp): Likewise.
15583 (check_arrival): Likewise.
15584 (update_cur_sifted_state): Likewise.
15585 (re_search_internal): Likewise.
15586 (prune_impossible_nodes): Likewise.
15587 (acquire_init_state_context): Likewise.
15588 (proceed_next_node): Likewise.
15589 (set_regs): Likewise.
15590 (free_fail_stack_return): Likewise.
15591 (check_arrival_expand_ecl): Mark DFA parameter as const.
15592 (check_arrival_expand_ecl_sub): Likewise.
15593 (check_subexp_limits): Likewise.
15594 (sub_epsilon_src_nodes): Likewise.
15595 (add_epsilon_src_nodes): Likewise.
15596 (merge_state_array): Likewise.
15597 (update_regs): Likewise.
15598 (build_trtable): Likewise.
15599 (sift_states_backward): Mark MCTX parameter as const.
15600 (build_sifted_states): Likewise.
15601 (update_cur_sifted_state): Likewise.
15602 (sift_states_mkref): Likewise.
15603 (check_arrival_expand_ecl): Mark eclosure as const.
15604 (check_dst_limits_calc_pos_1): Likewise.
15605 * lib/regex_internal.h (re_match_context_t): Make dfa a const
15608 2005-09-06 Ulrich Drepper <drepper@redhat.com>
15610 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
15611 (transit_state_sb): Likewise.
15612 (transit_state_mb): Likewise.
15613 (sift_states_iter_mb): Likewise.
15614 (check_arrival_add_next_nodes): Likewise.
15615 (check_node_accept_bytes): Change first parameter to pointer-to-const.
15616 [_LIBC] (re_search_2_stub): Use mempcpy.
15618 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
15619 mbrtowc for very simple UTF-8 case.
15621 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
15622 a pointer-to-const.
15623 (re_acquire_state_context): Likewise.
15624 * lib/regex_internal.h: Adjust prototypes.
15626 * lib/regex.c: Prevent using C++ compilers.
15628 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
15629 (re_acquire_state_context): Likewise.
15631 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15633 * modules/regex (Depends-on): Add ssize_t.
15635 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15637 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
15640 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15642 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
15644 2006-03-29 Mark D. Baushke <mdb@gnu.org>
15645 Bruno Haible <bruno@clisp.org>
15647 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
15648 <sys/types.h> and <inttypes.h>.
15650 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15652 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
15653 `__error_t_defined', so argp.h will not typedef the former.
15655 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
15657 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
15658 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
15659 glibc names. Even if glibc is changed to conform to POSIX, the
15660 traditional names will be available anyway, since regex depends on
15661 the extensions module. Also, fix a longstanding typo in the
15662 implementation of Spencer ERE test #75 from grep 2.3. Problems
15663 reported by Emanuele Giaquinta. Also, change sense of cached
15664 variable, so that the message makes sense.
15666 2006-03-24 Simon Josefsson <jas@extundo.com>
15668 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
15669 including some doc fixes.
15670 (base64_encode_alloc): Fix +1 bug on allocation failures.
15672 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15674 * lib/base64.c (base64_encode): Do not read past end of array with
15675 unsanitized input on systems with CHAR_BIT > 8.
15677 2006-03-24 Eric Blake <ebb9@byu.net>
15679 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
15681 2006-03-22 Karl Berry <karl@gnu.org>
15683 * config/srclist.txt (*setenv.[ch]): get from coreutils.
15684 * config/srclistvars.sh (COREUTILS): new var.
15686 2006-03-17 Jim Meyering <jim@meyering.net>
15688 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
15689 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
15691 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15693 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
15694 no longer needs it. Instead, check that regoff_t is as least
15695 as wide as ptrdiff_t.
15697 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
15698 so that our regex.h stays compatible with the installed regex.
15699 This is helpful for installers who configure --without-included-regex.
15700 Problem reported by Emanuele Giaquinta.
15702 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15704 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
15705 Typedef to long int, not to off_, as POSIX will likely change
15708 2006-03-15 Eric Blake <ebb9@byu.net>
15710 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
15712 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
15714 * lib/argp-help.c (validate_uparams): Fix typo
15715 * lib/argp-parse.c (argp_default_options): Consistently begin help
15716 messages with a lowercase letter.
15718 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
15720 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
15721 overrun buffers and shouldn't be used (much as gets shouldn't be
15723 * lib/time_r.c (asctime_r, ctime_r): Likewise.
15725 2006-03-08 Simon Josefsson <jas@extundo.com>
15727 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15728 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15730 2006-03-08 Simon Josefsson <jas@extundo.com>
15732 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15733 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15735 2006-03-08 Simon Josefsson <jas@extundo.com>
15737 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15738 signal that configure disabled the device.
15740 2006-03-08 Simon Josefsson <jas@extundo.com>
15742 * build-aux/maint.mk: Fix refresh-po, to handle no translated
15745 2006-03-07 Simon Josefsson <jas@extundo.com>
15747 * modules/getopt (Depends-on): Add unistd.
15749 * modules/unistd: New file.
15751 2006-03-07 Simon Josefsson <jas@extundo.com>
15753 * modules/gc-random: New file.
15755 2006-03-07 Simon Josefsson <jas@extundo.com>
15757 * m4/unistd_h.m4: New file.
15759 2006-03-07 Simon Josefsson <jas@extundo.com>
15761 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15762 test to be side-effect free by storing the result in the cache
15763 variable gl_cv_lib_readline, and moving the assignment of
15764 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15765 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15767 2006-03-07 Simon Josefsson <jas@extundo.com>
15769 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
15770 error on missing devices (the functions will return an error).
15772 * m4/gc.m4: Move random stuff to gc-random.m4
15774 2006-03-07 Simon Josefsson <jas@extundo.com>
15776 * lib/unistd_.h: New file.
15778 2006-03-07 Simon Josefsson <jas@extundo.com>
15780 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
15782 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15784 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
15785 Problem reported by Juan Manuel Guerrero.
15787 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15789 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
15791 * lib/getlogin_r.c: Likewise.
15792 * lib/getlogin_r.h: Likewise.
15793 * lib/glob.c: Likewise.
15794 * lib/pagealign_alloc.c: Likewise.
15795 * lib/unistd_.h: Remove; no longer needed.
15797 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15799 * MODULES.html.sh (Support for systems lacking POSIX:2001):
15801 * modules/c-stack (Depends-on): Add unistd.
15802 * modules/getlogin_r: Likewise.
15803 * modules/glob: Likewise.
15804 * modules/pagealign_alloc: Likewise.
15805 * modules/unistd (Files): Remove lib/unistd_.h.
15806 (EXTRA_DIST): Remove.
15807 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
15809 (MOSTLYCLEANFILES): Remove unistd.h-t.
15811 2006-03-03 Simon Josefsson <jas@extundo.com>
15813 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
15815 2006-03-03 Simon Josefsson <jas@extundo.com>
15817 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
15820 2006-03-03 Simon Josefsson <jas@extundo.com>
15822 * build-aux/maint.mk: Add indent target.
15824 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15826 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
15827 our replacement poll.h in any case, to avoid a differing
15828 declaration from a system header. Seen on AIX.
15830 2006-03-01 Simon Josefsson <jas@extundo.com>
15832 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
15835 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15837 * modules/gettime (Depends-on): Add extensions module.
15838 * modules/nanosleep (Depends-on): Likewise.
15839 * modules/settime (Depends-on): Likewise.
15841 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15843 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
15844 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
15846 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15847 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
15849 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
15850 not "==". Reported by Ralf Wildenhues.
15852 2006-03-01 Karl Berry <karl@gnu.org>
15854 * doc/Copyright/request-*: new files, synced from gnuorg.
15856 2006-03-01 Karl Berry <karl@gnu.org>
15858 * config/srclist.txt (Copyright/*): new entries.
15860 2006-02-28 Simon Josefsson <jas@extundo.com>
15862 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
15864 2006-02-27 Simon Josefsson <jas@extundo.com>
15866 * lib/base64.h: Indent #define's. From Jim Meyering
15867 <jim@meyering.net>.
15869 2006-02-27 Jim Meyering <jim@meyering.net>
15871 Revert the change of 2006-02-24, so these files can continue
15872 to be sync'd from gettext.
15873 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
15876 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
15878 * modules/intprops: New file.
15879 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15881 * modules/getloadavg (Files): Remove lib/intprops.h.
15882 (Depends-on): Add intprops.
15883 * modules/human: Likewise.
15884 * modules/inttostr: Likewise.
15885 * modules/openat: Likewise.
15886 * modules/sig2str: Likewise.
15887 * modules/userspec: Likewise.
15888 * modules/utimecmp: Likewise.
15889 * modules/xnanosleep: Likewise.
15890 * modules/xstrtol: Likewise.
15892 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
15894 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
15895 * modules/lock-tests (TESTS): Use $(EXEEXT).
15896 * modules/tls-tests: Likewise.
15897 * modules/argp-tests: Likewise.
15898 (check_PROGRAMS): New var, replacing...
15899 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
15901 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15903 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
15906 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
15908 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
15910 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15912 Sync from coreutils.
15913 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
15916 2006-02-22 Jim Meyering <jim@meyering.net>
15918 Sync from coreutils.
15919 * m4/chdir-safer.m4: New file.
15921 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
15923 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
15924 AT_FDCWD exceeds INT_MAX.
15925 * lib/openat.h (AT_FDCWD): Likewise.
15927 2006-02-17 Eric Blake <address@hidden>
15929 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
15931 2006-02-16 Simon Josefsson <jas@extundo.com>
15933 * modules/getaddrinfo (Depends-on): Add sys_socket.
15935 2006-02-15 Simon Josefsson <jas@extundo.com>
15937 * build-aux/maint.mk: Add dsyntax-check rule.
15939 2006-02-15 Eric Blake <ebb9@byu.net>
15941 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
15942 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
15943 'present but cannot compile' warnings on cygwin.
15944 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
15945 use ws2tcpip.h if sys/socket.h works.
15946 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
15947 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
15949 2006-02-14 Simon Josefsson <jas@extundo.com>
15951 * modules/maintainer-makefile (Files): Rename.
15953 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
15954 and (the local) Makefile.cfg to maint-cfg.mk.
15956 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
15959 * modules/maintainer-makefile: New module.
15961 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
15962 severaly stripped to make it possible to build it up from scratch
15963 with reliable tests.
15965 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
15966 fixes to permit overriding the default actions when configure and
15967 makefile are not available.
15969 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
15971 Sync from coreutils.
15972 * modules/lstat (Depends-on): Don't depend on xalloc.
15973 (License): Change from GPL to LGPL, since this is now simply a
15974 replacement for a libc function.
15976 2006-02-14 Jim Meyering <jim@meyering.net>
15978 Sync from coreutils.
15980 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
15981 failure on deficient systems, and simplify gnulib lgpl dependencies.
15982 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
15983 xmalloc/lstat combination. Based on a patch from Bruno Haible.
15985 * lib/xalloc-die.c: Remove unused definition of N_.
15987 2006-02-14 Jim Meyering <jim@meyering.net>
15989 Sync from coreutils.
15990 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
15991 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
15992 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
15993 double-quote uses of that variable, to accommodate the rare case in
15994 which getmntent is available in none of the libraries checked. This
15995 happens at least on FreeBSD 5.0.
15997 2006-02-13 Simon Josefsson <jas@extundo.com>
15999 * gnulib-tool (Usage): Fix --import, from
16000 karl@freefriends.org (Karl Berry).
16002 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
16004 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
16006 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
16008 * lib/argp-namefrob.h: Restore changes accidentally lost during the
16009 "autoupdate" on 2005-12-12.
16011 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
16013 * modules/closeout (Depends-on): Remove atexit.
16015 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
16017 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
16018 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
16020 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
16022 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
16023 __EXTENSIONS__ if this causes compilation to fail. Problem
16024 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
16025 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
16027 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
16029 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
16030 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
16031 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
16034 2006-01-26 Simon Josefsson <jas@extundo.com>
16036 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
16037 prototype is visible on mingw32.
16039 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
16042 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
16045 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
16047 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
16048 attempt to open for write; this always fails, at least on POSIX
16049 hosts. This reinstates the 2006-01-09 change, which was
16050 inadvertently removed.
16052 2006-01-26 Bruno Haible <bruno@clisp.org>
16054 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
16055 Reported by Paul Eggert.
16057 2006-01-26 Bruno Haible <bruno@clisp.org>
16058 Paul Eggert <eggert@cs.ucla.edu>
16060 * lib/stdbool_.h (_Bool)
16061 [(! (defined __cplusplus || defined __BEOS__)
16062 && !defined __GNUC__
16063 && !(defined __HP_cc || defined __xlc__
16064 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
16065 || defined __sgi))]:
16066 #define to signed char in these cases too; this simplifies
16067 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
16068 etc., separately) and makes it more conservative.
16070 2006-01-25 Simon Josefsson <jas@extundo.com>
16072 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
16073 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
16074 ws2tcpip.h with WINVER=0x0501. All for mingw32.
16076 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
16078 * lib/argp-namefrob.h: Bugfix. Remove stray #
16080 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
16082 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
16083 so that we test the test.
16084 Check for yet another HP-UX cc bug involving *bool |= bool.
16086 2006-01-25 Karl Berry <karl@gnu.org>
16088 * config/srclist.txt (vasnprintf.c): sync lost.
16090 2006-01-25 Jim Meyering <jim@meyering.net>
16092 Sync from the stable (b5) branch of coreutils:
16094 * lib/fts.c (fts_children): Don't let close() clobber errno from
16097 * lib/fts.c (fts_stat): When following a symlink-to-directory,
16098 don't necessarily interpret stat-fails+lstat-succeeds as indicating
16099 a dangling symlink. That can also happen at least for ELOOP.
16100 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
16101 FYI, this bug predates the inclusion of fts.c in coreutils.
16103 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
16104 in their own block, so pre-c99 compilers don't object.
16106 Avoid the double-free (first in fts_read, second in fts_close) that
16107 would occur when an `active' directory is made inaccessible (e.g.,
16108 via chmod a-x) during a traversal.
16109 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16110 before returning. Reproduce this failure by
16111 mkdir -p a/b; cd a; chmod a-x . b
16112 Reported by Stavros Passas.
16114 2006-01-25 Jim Meyering <jim@meyering.net>
16116 * lib/fileblocks.c: Remove more useless parentheses.
16117 * lib/readutmp.h: Likewise.
16119 2006-01-25 Bruno Haible <bruno@clisp.org>
16121 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
16123 Reported by Paul Eggert.
16125 2006-01-25 Bruno Haible <bruno@clisp.org>
16127 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
16128 rid of a trap command. For Solaris sh.
16129 Reported by Mark D. Baushke <mdb@gnu.org>.
16131 2006-01-24 Simon Josefsson <jas@extundo.com>
16133 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
16136 2006-01-24 Karl Berry <karl@gnu.org>
16138 * config/srclist.txt (argp-namefrob.h): sync lost.
16140 2006-01-24 Jim Meyering <jim@meyering.net>
16142 * modules/openat (Files): Add lib/intprops.h.
16143 From Mark D. Baushke.
16145 2006-01-24 Jim Meyering <jim@meyering.net>
16147 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
16148 Reported by Mark D. Baushke.
16150 2006-01-24 Jim Meyering <jim@meyering.net>
16152 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
16154 2006-01-24 Bruno Haible <bruno@clisp.org>
16156 * modules/strnlen (Maintainer): Change from glibc to all.
16158 2006-01-24 Bruno Haible <bruno@clisp.org>
16160 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
16161 Patch by Paul Eggert.
16163 2006-01-24 Bruno Haible <bruno@clisp.org>
16165 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
16167 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
16170 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
16171 'signed char' to avoid problems with the built-in _Bool type.
16172 Reported by Paul Eggert on 2005-11-26.
16174 2006-01-24 Bruno Haible <bruno@clisp.org>
16176 * gnulib-tool (func_import): Avoid constructing complicated sed
16177 expressions inside backquote.
16178 Report and solution by Mark D. Baushke <mdb@gnu.org>.
16180 2006-01-23 Ulrich Drepper <drepper@redhat.com>
16182 These changes imported from libc.
16183 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
16184 test and two separate function calls.
16185 * lib/strndup.c (__strndup): Add libc_hidden_def.
16187 2006-01-23 Simon Josefsson <jas@extundo.com>
16189 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
16190 Remove the test_*_SOURCES variable: automake infers it by default.
16191 * modules/tls-tests: Likewise.
16193 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16195 Work around porting bugs reported by Dieter in
16196 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
16197 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
16198 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
16199 Include "getopt.h" first, to check interface.
16200 (getenv): Declare only if defined HAVE_DECL_GETENV &&
16202 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
16203 (__strndup): Revert to K&R-style function dfns, the glibc style.
16204 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
16205 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
16206 Include strnlen.h first, to get prototype properly.
16207 (strnlen): Renamed from __strnlen.
16210 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16212 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
16214 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16216 * config/srclist.txt: Adjust to reflect glibc reorganization.
16217 This affects only comments.
16219 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
16221 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
16222 Reported by Bruce Korb <bkorb@gnu.org>.
16224 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
16226 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
16227 to pacify gcc -Wswitch-default.
16229 2006-01-22 Bruno Haible <bruno@clisp.org>
16231 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
16232 temporary buffer for sprintf, take into account the precision also
16233 for 'd', 'i', 'u', 'o', 'x', 'X'.
16235 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
16237 * modules/argp-tests: New module
16238 * tests/test-argp.c: New file
16239 * tests/test-argp-2.sh: New file
16241 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
16243 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
16244 (__argp_base_name): Removed
16245 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
16247 (__argp_base_name): Provide macro definition or extern declaration
16248 depending on the configuration
16250 2006-01-20 Simon Josefsson <jas@extundo.com>
16252 * modules/inet_ntop (Depends-on): Depend on sys_socket.
16254 2006-01-20 Simon Josefsson <jas@extundo.com>
16256 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
16258 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
16260 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
16261 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
16262 Suggested by Bruno Haible.
16264 2006-01-20 Karl Berry <karl@gnu.org>
16266 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
16267 until changes propagate, I guess.
16269 2006-01-19 Simon Josefsson <jas@extundo.com>
16271 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
16273 2006-01-19 Simon Josefsson <jas@extundo.com>
16275 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
16277 2006-01-19 Simon Josefsson <jas@extundo.com>
16279 * gnulib-tool: Set check_PROGRAMS.
16281 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16282 modules/des-tests, modules/gc-arcfour-tests,
16283 modules/gc-arctwo-tests, modules/gc-des-tests,
16284 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16285 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16286 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16287 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16288 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16289 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
16290 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
16293 2006-01-18 Simon Josefsson <jas@extundo.com>
16295 * modules/socklen (Depends-on): Depend on sys_socket.
16297 2006-01-18 Simon Josefsson <jas@extundo.com>
16299 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16300 modules/des-tests, modules/gc-arcfour-tests,
16301 modules/gc-arctwo-tests, modules/gc-des-tests,
16302 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16303 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16304 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16305 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16306 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16307 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
16308 $(EXEEXT) to automake TESTS variable, for mingw32.
16310 2006-01-17 Simon Josefsson <jas@extundo.com>
16312 * modules/socklen (Include): Need sys/socket.h.
16314 2006-01-17 Bruno Haible <bruno@clisp.org>
16316 * modules/ssize_t (Include): Add <sys/types.h>.
16318 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
16320 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
16321 it's not portable and it doesn't work with cross-compiles.
16322 Problem reported by Bruno Haible. Fix missing-$ typo in
16323 'test "gl_cv_ignore_unused_libraries" ...' that prevented
16324 -zignore from being used with Sun's C compiler.
16326 2006-01-12 Simon Josefsson <jas@extundo.com>
16328 * lib/base64.c: Fix warning, reported by Bruno Haible
16329 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
16331 2006-01-12 Bruno Haible <bruno@clisp.org>
16333 * modules/ldd: New file.
16334 * build-aux/ldd.sh.in: New file.
16335 * MODULES.html.sh (Support for building libraries and executables): Add
16338 2006-01-12 Bruno Haible <bruno@clisp.org>
16340 * m4/ldd.m4: New file.
16342 2006-01-12 Bruno Haible <bruno@clisp.org>
16344 * gnulib-tool (func_import, func_create_testdir): Don't go into an
16345 endless loop while replacing $auxdir with build-aux.
16347 2006-01-11 Simon Josefsson <jas@extundo.com>
16349 * lib/stdint_.h (SIZE_MAX): Add missing (.
16351 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
16353 Sync from coreutils.
16354 * lib/md5.c: Fix commentary typos.
16355 (alignof, UNALIGNED_P): No need for a GCC-specific version.
16356 * lib/md5.h (__attribute__): Remove; unused.
16357 * lib/sha1.c: Fix commentary to match md5 better.
16358 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
16359 so that we don't need to worry about alignment. All uses changed.
16360 This merges the 2005-10-28 md5 change into sha1.
16362 2006-01-11 Jim Meyering <jim@meyering.net>
16364 Sync from coreutils.
16365 * lib/md5.c (OP): Fix spacing.
16367 2006-01-11 Bruno Haible <bruno@clisp.org>
16369 Ensure automatic ordering between gl_LOCK and gl_ARGP.
16370 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
16371 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
16373 2006-01-11 Bruno Haible <bruno@clisp.org>
16375 Ensure automatic ordering between gl_LOCK and gl_ARGP.
16376 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
16377 the "early" section as well.
16379 2006-01-11 Bruno Haible <bruno@clisp.org>
16381 Avoid "ar: no archive members specified" error on MacOS X.
16382 * gnulib-tool (func_modules_add_dummy): New function.
16383 (func_import, func_create_testdir): Invoke it.
16385 2006-01-11 Bruno Haible <bruno@clisp.org>
16387 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
16388 with $auxdir in AC_CONFIG_FILES statements.
16390 2006-01-11 Bruno Haible <bruno@clisp.org>
16392 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16393 Initialize also noinst_HEADERS to empty.
16395 2006-01-11 Bruno Haible <bruno@clisp.org>
16397 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
16399 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
16402 2006-01-11 Bruno Haible <bruno@clisp.org>
16404 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
16405 overridable by the user.
16406 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16408 2006-01-10 Simon Josefsson <jas@extundo.com>
16410 * modules/sys_socket: New file.
16412 2006-01-10 Simon Josefsson <jas@extundo.com>
16414 * m4/sys_socket_h.m4: New file.
16416 2006-01-10 Simon Josefsson <jas@extundo.com>
16418 * lib/socket_.h: New file.
16420 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16422 * modules/readutmp (Maintainer): Add myself.
16424 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16426 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
16427 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
16428 People who are still concerned with buggy memcmp implementations
16429 can invoke gl_FUNC_MEMCMP themselves.
16431 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16433 * lib/regex_internal.h (BITSET_WORD_BITS):
16434 Work around a bug in 64-bit PGC (before version 6.1-2), where the
16435 preprocessor mishandles large unsigned values as if they were signed.
16436 Problem reported by Claudio Fontana in
16437 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
16439 2006-01-10 Jim Meyering <jim@meyering.net>
16441 Avoid the double-free (first in fts_read, second in fts_close) that
16442 would occur when an `active' directory is made inaccessible (e.g.,
16443 via chmod a-x) during a traversal.
16444 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16445 before returning. Reproduce this failure by
16446 mkdir -p a/b; cd a; chmod a-x . b
16447 Reported by Stavros Passas.
16449 Sync from coreutils.
16450 * lib/sha1.c: Tweak grammar in a comment.
16452 2006-01-10 Jim Meyering <jim@meyering.net>
16454 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
16455 Patch by Joerg Sonnenberger.
16457 2006-01-10 Bruno Haible <bruno@clisp.org>
16459 * modules/readutmp: Depend on module free.
16460 * modules/strtok_r: Depend on module restrict.
16462 2006-01-10 Bruno Haible <bruno@clisp.org>
16464 * modules/gettext (configure.ac): Add an invocation of
16465 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
16467 2006-01-10 Bruno Haible <bruno@clisp.org>
16469 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
16470 Reported by Werner Lemberg <wl@gnu.org>.
16472 2006-01-10 Bruno Haible <bruno@clisp.org>
16474 * lib/localcharset.c: Update from GNU gettext.
16476 2006-01-10 Bruno Haible <bruno@clisp.org>
16478 * lib/argp.h (__const): Remove macro. Use const instead.
16479 * lib/argp-fmtstream.h (__const): Likewise.
16480 * lib/glob_.h (__const): Remove macro.
16481 * lib/glob-libc.h: Use const instead of __const.
16483 2006-01-10 Bruno Haible <bruno@clisp.org>
16485 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
16487 Needed to avoid an automake error regarding the 'gettext' module.
16489 2006-01-09 Simon Josefsson <jas@extundo.com>
16491 * modules/inet_ntop (Depends-on): Add restrict.
16493 2006-01-09 Simon Josefsson <jas@extundo.com>
16495 * modules/gc-rijndael-tests (License): Put under LGPL.
16497 * modules/gc-des-tests (License): Likewise.
16499 * modules/gc-arcfour-tests (License): Likewise.
16501 * modules/gc-arctwo-tests (License): Likewise.
16503 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
16505 * modules/gc-hmac-sha1-tests (Files): Likewise.
16507 * modules/gc-hmac-md5-tests (License): Likewise.
16509 * modules/gc-sha1-tests (License): Likewise.
16511 * modules/gc-md5-tests (License): Likewise.
16513 * modules/gc-md4-tests (License): Likewise.
16515 * modules/gc-md2-tests (License): Likewise.
16517 * modules/gc-tests (License): Likewise.
16519 * modules/des-tests (License): Likewise.
16521 * modules/md4-tests (License): Likewise.
16523 * modules/md2-tests (License): Likewise.
16525 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16527 Sync from coreutils:
16529 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
16530 * modules/lib-ignore: New file.
16531 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
16532 chdir-safer.m4, lchmod.m4.
16533 * modules/openat: Add mkdirat.c, openat-priv.h.
16535 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16537 Sync from coreutils.
16538 * m4/lib-ignore.m4: New file.
16539 * m4/lchmod.m4: New file.
16541 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16543 Sync from coreutils.
16544 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
16545 for write access: POSIX says that must fail.
16546 * lib/fts.c (diropen): Likewise.
16547 * lib/save-cwd.c (save_cwd): Likewise.
16548 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
16549 well, for minor improvements on hosts that lack O_DIRECTORY.
16550 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
16551 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
16552 Fall back on chown if open failed with EACCES.
16554 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
16555 Report an error at compile-time if only a 1-second nominal clock
16556 resolution is found.
16558 * lib/lchmod.h: New file.
16559 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
16560 (make_dir_parents): Use lchown rather than chown, and
16561 lchmod rather than chmod.
16563 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
16564 dummies too. Problem with "none" reported by Bob Proulx. Problem with
16565 "proc" reported by n0dalus.
16567 * lib/mountlist.c: Include <limits.h>.
16568 (dev_from_mount_options)
16569 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
16570 New function. It no longer assumes "dev=" has the System V meaning
16571 on Linux (since it doesn't). It also parses "dev=" more carefully.
16572 (read_file_system_list)
16573 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
16574 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
16577 * lib/posixtm.h (PDS_PRE_2000): New macro.
16578 * lib/posixtm.c (year): Arg is now syntax_bits rather than
16579 allow_century. All usages changed. Reject dates outside the range
16580 1969-1999 if PDS_PRE_2000 is used.
16582 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16584 Sync from coreutils.
16585 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
16586 (Time of day items): Mention the possibility of leap seconds.
16587 Problem reported by Dr. David Alan Gilbert.
16589 2006-01-09 Jim Meyering <jim@meyering.net>
16591 Sync from coreutils.
16593 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
16595 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
16597 * lib/modechange.c (mode_compile): Reject an invalid mode string
16598 that starts with an octal digit. From Andreas Gruenbacher.
16600 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
16601 and dup to open_safer and dup_safer, respectively.
16602 (openat_permissive): Fix typo in comment.
16604 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
16605 "gettext.h"; either no longer needed or are guaranteed by openat.h.
16606 (_): Remove; no longer needed.
16607 (openat): Renamed from rpl_openat; no need for rpl_openat
16608 since openat.h renames openat for us.
16609 Replace most of the body with a call to openat_permissive,
16610 to avoid duplicate code.
16611 Port to (probably hypothetical) environments were mode_t is
16613 (openat_permissive): Require mode arg, so that we can check
16614 types better. Put it just after flags. Change cwd failure
16615 indicator from pointer-to-bool to pointer-to-errno-value.
16616 All callers changed.
16617 Invoke openat_save_fail and/or openat_restore_fail if
16618 cwd_errno is null, so that openat can call us.
16619 (openat_permissive, fdopendir, fstatat, unlinkat):
16620 Simplify errno handling to avoid some duplicate code,
16621 as it's OK to set errno on success.
16622 * lib/openat.h: Revamp code so that function macros depend on
16623 __OPENAT_PREFIX only, not also on AT_FDCWD.
16624 (openat_ro): Remove. Caller changed to use openat_permissive.
16625 (openat_permissive): Now a macro, if not a function.
16626 (openat_restore_fail, openat_save_fail): Now always functions,
16627 since mkdirat needs them even if __OPENAT_PREFIX is defined.
16629 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
16631 * lib/mkdirat.c: Include openat-priv.h.
16632 Remove definitions of macros defined therein.
16633 * lib/openat.c: Likewise.
16635 * lib/mkdirat.c (mkdirat): New file and function.
16636 * lib/openat.h (mkdirat): Declare.
16638 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
16640 * lib/openat.h (openat_permissive): Declare.
16641 (openat_ro): Define.
16643 * lib/openat.c (EXPECTED_ERRNO): New macro.
16644 (openat_permissive): New function -- used in remove.c rewrite.
16645 (all functions): Set errno just before returning, only if there
16646 was an actual failure.
16647 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
16649 Emulate openat-family functions using Linux's procfs, if possible.
16650 Idea and some code based on Ulrich Drepper's glibc changes.
16652 * lib/openat.c: (BUILD_PROC_NAME): New macro.
16653 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
16654 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
16655 before falling back on save_cwd and restore_cwd.
16656 (fdopendir, fstatat, unlinkat): Likewise.
16658 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
16659 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
16661 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
16662 as second argument to va_arg. Otherwise, some versions of gcc
16663 warn that `if this code is reached, the program will abort'.
16665 2006-01-09 Jim Meyering <jim@meyering.net>
16667 Sync from coreutils.
16668 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
16669 Require openat-priv.h.
16671 2006-01-09 Bruno Haible <bruno@clisp.org>
16673 * modules/strnlen (Include): Use strnlen.h.
16675 2006-01-09 Bruno Haible <bruno@clisp.org>
16677 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
16679 2006-01-09 Bruno Haible <bruno@clisp.org>
16681 * lib/sysexit_.h (EX_OK): New macro.
16682 Suggested by Martin Lambers <marlam@marlam.de>.
16684 2006-01-09 Bruno Haible <bruno@clisp.org>
16686 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
16687 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
16689 2006-01-09 Bruno Haible <bruno@clisp.org>
16691 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
16694 2006-01-09 Bruno Haible <bruno@clisp.org>
16696 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
16697 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
16698 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
16699 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
16701 2006-01-09 Bruno Haible <bruno@clisp.org>
16703 * build-aux/javacomp.sh.in: New file, moved from lib/.
16704 * modules/javacomp-script (Files): Update.
16705 (configure.ac): Add AC_CONFIG_FILES invocation.
16706 (EXTRA_DIST): Remove variable.
16708 * build-aux/javaexec.sh.in: New file, moved from lib/.
16709 * modules/javaexec (Files): Update.
16710 (configure.ac): Add AC_CONFIG_FILES invocation.
16711 (EXTRA_DIST): Remove javaexec.sh.in.
16713 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16714 * modules/csharpcomp-script (Files): Update.
16715 (configure.ac): Add AC_CONFIG_FILES invocation.
16716 (EXTRA_DIST): Remove variable.
16718 * build-aux/csharpexec.sh.in: New file, moved from lib/.
16719 * modules/csharpexec (Files): Update.
16720 (configure.ac): Add AC_CONFIG_FILES invocation.
16721 (EXTRA_DIST): Remove csharpexec.sh.in.
16723 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16725 Sync from coreutils.
16727 Add POSIX ACL support
16728 * lib/acl.h (copy_acl, set_acl): Add declarations.
16729 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16730 systems other than Linux.
16731 (chmod_or_fchmod): New function: use fchmod when possible,
16732 and chmod otherwise.
16733 (file_has_acl): Add a POSIX ACL implementation, with a
16734 Linux-specific subcase.
16735 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16736 S_ISVTX from one file to another. Fall back to fchmod/chmod when
16737 acls are unsupported.
16738 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16739 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
16742 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16744 Sync from coreutils.
16745 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16747 2006-01-07 Bruno Haible <bruno@clisp.org>
16749 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16752 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16754 * lib/strftime.c (tzname): Don't declare if it is already #defined.
16755 Problem reported for Mingw by Mark Junker.
16757 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16759 * README: Gnulib normally doesn't generate a tarball.
16761 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
16763 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16764 long int, not int, for nanosecond counts, so that people who are
16765 used to POSIX struct timespec won't be surprised. Reported by Jim
16768 2005-12-28 Bruno Haible <bruno@clisp.org>
16770 * build-aux/config.rpath: Update from GNU gettext.
16772 2005-12-16 Jim Meyering <jim@meyering.net>
16774 * modules/fprintftime: New module.
16775 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16777 2005-12-16 Jim Meyering <jim@meyering.net>
16779 * m4/fprintftime.m4: New file.
16781 2005-12-16 Jim Meyering <jim@meyering.net>
16783 * lib/fprintftime.c, lib/fprintftime.h: New files.
16785 2005-12-15 Simon Josefsson <jas@extundo.com>
16787 * modules/socklen (configure.ac): Fix M4 macro name, to align with
16790 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16792 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
16793 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
16795 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16797 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
16798 * lib/argp-help.c (fill_in_uparams): Check if the constructed
16799 struct uparams is valid. Fall back to the default values if it is
16802 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16804 * modules/argp (Files): Add argp-pin.c
16805 (Depends-on): dirname
16806 (lib_SOURCES): Add argp-pin.c
16808 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16810 * m4/argp.m4: Check if program_invocation_name and
16811 program_invocation_short_name are declared and define appropriate
16812 macros if they are not.
16814 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16816 * lib/argp-help.c (__argp_base_name): New function
16817 (__argp_short_program_name): Rewrite using __argp_base_name
16818 * lib/argp-namefrob.h: Define program_invocation_name and
16819 program_invocation_short_name if requested
16820 (__argp_base_name): Add prototype
16821 * lib/argp-parse.c (argp_def): Use gettext wrappers
16822 (argp_default_parser): Use __argp_base_name
16823 * lib/argp-pin.c: New file. Defines program_invocation_name and
16824 program_invocation_short_name on systems that lack them.
16826 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16828 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
16829 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16830 porting problem reported by Georg Schwarz in
16831 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16833 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16835 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
16836 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16837 porting problem reported by Georg Schwarz in
16838 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16840 2005-12-05 Bruno Haible <bruno@clisp.org>
16842 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
16843 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
16844 Reported by Mark Junker <mjscod@gmx.de>.
16846 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
16848 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
16849 Use implementation from Albert Chin, with some
16850 comments/corrections by Stepan Kasal and myself.
16852 2005-12-02 Bruno Haible <bruno@clisp.org>
16854 * gnulib-tool (func_import): Accept GPLed build tool modules when
16856 * modules/csharpcomp-script: New file.
16857 * modules/csharpcomp: Depend on it.
16858 * modules/javacomp-script: New file.
16859 * modules/javacomp: Depend on it.
16860 Suggested by Simon Josefsson.
16862 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
16864 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
16865 statement, to work around an HP-UX 10.20 compiler bug reported by
16868 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16870 * modules/savedir (Depends-on): Add openat.
16872 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16874 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
16875 (uintmax_t) [defined uintmax_t]: Do not declare.
16876 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
16877 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
16878 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
16879 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
16880 sake of portability to weird hosts that C allows (though we don't
16881 know of any practical examples).
16883 * lib/savedir.h (fdsavedir): New decl.
16884 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
16885 contains most of the former guts of savedir.
16886 (savedir): Use savedirstream.
16887 Include "openat.h".
16889 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
16891 * modules/obstack (Files): Add m4/ulonglong.m4.
16892 Problem reported by Davide Angelocola.
16894 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
16896 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
16897 coreutils no longer futzes with rounding modes.
16899 2005-11-14 Jim Meyering <jim@meyering.net>
16901 * lib/mkstemp-safer.c: Include <config.h>, required for possible
16902 replacement of mkstemp.
16904 2005-11-10 Simon Josefsson <jas@extundo.com>
16906 * lib/readline.c: Remove EOL.
16908 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16910 * modules/gethrxtime (Depends-on): Add gettime.
16912 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16914 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
16915 or gettimeofday; no longer needed.
16917 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16919 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
16921 (gethrxtime) [! (HAVE_NANOUPTIME
16922 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
16923 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
16924 our own approximation.
16926 2005-11-08 Eric Blake <ebb9@byu.net>
16928 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16930 2005-11-08 Eric Blake <ebb9@byu.net>
16932 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16934 2005-11-04 Bruno Haible <bruno@clisp.org>
16936 * gnulib-tool: Implement --update mode.
16938 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16940 Fix porting problem reported by Theodoros V. Kalamatianos.
16941 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
16942 Don't assume that futimes failing means we must fail.
16944 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16946 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
16947 variables to suggest the intended function of the PATH_MAX check.
16949 2005-10-30 Kean Johnston <jkj@sco.com>
16951 Trivial changes to support SCO systems.
16952 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
16954 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
16955 where __ptr is null when no I/O is pending.
16957 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
16959 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
16960 leave errno alone. Problem reported by Dmitry V. Levin.
16962 2005-10-28 Simon Josefsson <jas@extundo.com>
16964 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
16967 * tests/test-gc-md2.c, tests/test-md2.c: New files.
16969 * modules/md2, modules/md2-tests: New files.
16971 2005-10-28 Simon Josefsson <jas@extundo.com>
16973 * m4/inet_ntop.m4: More tests.
16975 * m4/gc-md2.m4, md2.m4: New file.
16977 2005-10-28 Simon Josefsson <jas@extundo.com>
16979 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
16980 "restrict" keywords, as per POSIX. Protect the function
16981 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
16982 Don't use K&R prototypes. Check the sprintf return values.
16983 Re-define EAFNOSUPPORT if not present. Indent.
16985 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
16986 suggested by Bruno Haible <bruno@clisp.org>.
16988 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
16990 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
16992 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
16995 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
16997 * lib/md2.h, lib/md2.c: New files.
16999 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
17001 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
17002 errno alone. Problem reported by Frederic Jolliton.
17004 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
17006 * modules/verify (License): Change from GPL to LGPL. This is a
17007 tiny module and there are apparently near-equivalents that are
17008 under the BSD license.
17010 2005-10-24 Simon Josefsson <jas@extundo.com>
17012 * modules/sha1: Relicense to LGPL.
17014 2005-10-24 Simon Josefsson <jas@extundo.com>
17016 * lib/md4.h: Shrink buffer size, now that we changed the type.
17018 2005-10-23 Simon Josefsson <jas@extundo.com>
17020 * gnulib-tool (func_import): Fix --tests-base.
17022 2005-10-22 Simon Josefsson <jas@extundo.com>
17024 * modules/arcfour (Depends-on): Need stdint.
17026 2005-10-22 Simon Josefsson <jas@extundo.com>
17028 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
17029 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
17031 2005-10-22 Simon Josefsson <jas@extundo.com>
17033 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
17034 suggested by Bruno Haible <bruno@clisp.org>.
17036 2005-10-22 Simon Josefsson <jas@extundo.com>
17038 * lib/crc.h: Include stddef.h, for size_t.
17040 2005-10-22 Simon Josefsson <jas@extundo.com>
17042 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
17043 arcfour_context struct (simplify test vector testing in GNU
17046 2005-10-21 Simon Josefsson <jas@extundo.com>
17048 * modules/des, modules/des-tests: New files.
17050 * modules/gc-des, modules/gc-des-tests: New files.
17052 * tests/test-des.c, tests/test-gc-des.c: New file.
17054 2005-10-21 Simon Josefsson <jas@extundo.com>
17056 * modules/arctwo, modules/arctwo-tests: New files.
17058 * tests/test-arctwo.c: New file.
17060 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
17062 * tests/test-gc-arctwo.c: New file.
17064 2005-10-21 Simon Josefsson <jas@extundo.com>
17066 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
17067 Bruno Haible <bruno@clisp.org>.
17069 * m4/gc-des.m4: New file.
17071 2005-10-21 Simon Josefsson <jas@extundo.com>
17073 * m4/arctwo.m4: New file.
17075 * m4/gc-arctwo.m4: New file.
17077 2005-10-21 Simon Josefsson <jas@extundo.com>
17079 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
17082 2005-10-21 Simon Josefsson <jas@extundo.com>
17084 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
17087 * lib/hmac-sha1.c (hmac_sha1): Likewise.
17089 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
17090 Bruno Haible <bruno@clisp.org>.
17092 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
17095 2005-10-21 Simon Josefsson <jas@extundo.com>
17097 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
17099 2005-10-21 Simon Josefsson <jas@extundo.com>
17101 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
17103 2005-10-21 Simon Josefsson <jas@extundo.com>
17105 * lib/des.h, lib/des.c: New files.
17107 * lib/gc-gnulib.c: Support DES.c
17109 2005-10-21 Simon Josefsson <jas@extundo.com>
17111 * lib/arctwo.h, lib/arctwo.c: New files.
17113 * lib/gc-gnulib.c: Support ARCTWO.
17115 2005-10-21 Simon Josefsson <jas@extundo.com>
17117 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
17118 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17120 2005-10-21 Simon Josefsson <jas@extundo.com>
17122 * gnulib-tool (func_import, func_create_testdir): Define automake
17123 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
17124 Makefile.am snippet),
17125 suggested by Bruno Haible <bruno@clisp.org>.
17127 * modules/gc (Makefile.am): Use it.
17129 2005-10-21 Bruno Haible <bruno@clisp.org>
17131 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
17134 2005-10-19 Simon Josefsson <jas@extundo.com>
17136 * tests/test-gc-rijndael.c: New file.
17138 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
17140 2005-10-19 Simon Josefsson <jas@extundo.com>
17142 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
17145 2005-10-19 Simon Josefsson <jas@extundo.com>
17147 * tests/test-gc-arcfour.c: New file.
17149 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
17151 2005-10-19 Simon Josefsson <jas@extundo.com>
17153 * modules/gc-md4, modules/gc-md4-tests: New file.
17155 * tests/test-gc-md4.c: New file.
17157 2005-10-19 Simon Josefsson <jas@extundo.com>
17159 * m4/gc-md4.m4: New file.
17161 2005-10-19 Simon Josefsson <jas@extundo.com>
17163 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
17164 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
17167 2005-10-19 Simon Josefsson <jas@extundo.com>
17169 * m4/gc-arcfour.m4: New file.
17171 * m4/gc-rijndael.m4: New file.
17173 2005-10-19 Simon Josefsson <jas@extundo.com>
17175 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
17177 2005-10-19 Simon Josefsson <jas@extundo.com>
17179 * lib/gc-gnulib.c: Support ARCFOUR.
17181 2005-10-19 Simon Josefsson <jas@extundo.com>
17183 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
17186 * lib/gc.h: Add ECB enum type.
17188 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
17190 2005-10-18 Simon Josefsson <jas@extundo.com>
17192 * tests/test-md5.c: New file.
17194 * modules/md5-tests: New file.
17196 2005-10-18 Simon Josefsson <jas@extundo.com>
17198 * tests/test-md4.c: New file.
17200 * modules/md4, modules/md4-tests: New files.
17202 2005-10-18 Simon Josefsson <jas@extundo.com>
17204 * m4/md4.m4: New file.
17206 2005-10-18 Simon Josefsson <jas@extundo.com>
17208 * lib/md4.h, lib/md4.c: New files, based on md5.?.
17210 2005-10-17 Stepan Kasal <kasal@ucw.cz>
17212 * gnulib-tool (func_create_testdir): Omit the second check whether
17213 BUILT_SOURCES in nonempty.
17215 2005-10-17 Simon Josefsson <jas@extundo.com>
17217 * tests/test-rijndael.c: New file.
17219 2005-10-17 Simon Josefsson <jas@extundo.com>
17221 * modules/sha1: Depend on stdint instead of md5.
17223 * modules/md5: Depend on stdint, remove uint32_t.
17225 2005-10-17 Simon Josefsson <jas@extundo.com>
17227 * modules/gc-sha1-tests: New file.
17229 * tests/test-gc-sha1.c: New file.
17231 2005-10-17 Simon Josefsson <jas@extundo.com>
17233 * m4/md5.m4: Remove call to uint32_t.m4.
17235 2005-10-17 Simon Josefsson <jas@extundo.com>
17237 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
17239 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
17242 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
17244 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
17246 2005-10-17 Simon Josefsson <jas@extundo.com>
17248 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
17250 2005-10-17 Simon Josefsson <jas@extundo.com>
17252 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
17254 2005-10-17 Simon Josefsson <jas@extundo.com>
17256 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
17258 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
17260 2005-10-17 Bruno Haible <bruno@clisp.org>
17262 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
17263 that it can also be used in a test.
17265 2005-10-16 Bruno Haible <bruno@clisp.org>
17267 * gnulib-tool (func_emit_tests_Makefile_am): Also define
17268 TESTS_ENVIRONMENT, so that individual tests can augment it.
17270 * gnulib-tool (func_create_testdir): Use an intermediate target for
17271 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
17272 macros, like $(ALLOCA_H), which cannot be passed through the command
17275 2005-10-15 Simon Josefsson <jas@extundo.com>
17277 * modules/rijndael-tests: New file.
17279 * modules/rijndael: New file.
17281 2005-10-15 Simon Josefsson <jas@extundo.com>
17283 * m4/rijndael.m4: New file.
17285 2005-10-15 Simon Josefsson <jas@extundo.com>
17287 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
17289 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
17291 2005-10-14 Simon Josefsson <jas@extundo.com>
17293 * tests/test-arcfour.c: New file.
17295 * modules/arcfour, modules/arcfour-tests: New files.
17297 2005-10-14 Simon Josefsson <jas@extundo.com>
17299 * m4/arcfour.m4: New file.
17301 2005-10-14 Simon Josefsson <jas@extundo.com>
17303 * lib/arcfour.h, lib/arcfour.c: New files.
17305 2005-10-14 Roland McGrath <roland@redhat.com>
17307 Import from libc. [BZ #1331]
17308 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
17310 Reported by Matej Vela <vela@debian.org>.
17312 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
17314 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
17315 include <wchar.h>; no longer needed.
17317 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
17319 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
17321 2005-10-14 Jakub Jelinek <jakub@redhat.com>
17322 and Ulrich Drepper <drepper@redhat.com>
17325 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
17326 instead of inline stream orientation test and two separate
17327 function calls. Pay no attention to USE_IN_LIBIO.
17329 2005-10-13 Simon Josefsson <jas@extundo.com>
17331 * modules/gc-hmac-md5-tests: New file.
17333 * tests/test-gc-hmac-sha1.c: New file.
17335 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
17337 * modules/gc-hmac-md5-tests: New file.
17339 * tests/test-gc-md5.c: New file.
17341 * modules/gc-md5-tests: New file.
17343 2005-10-13 Simon Josefsson <jas@extundo.com>
17345 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
17346 Move memory allocation outside of loop.
17348 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
17350 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
17351 intermediate directory is in a read-only file system. Problem
17352 reported by Eric Blake.
17354 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
17356 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
17358 2005-10-12 Simon Josefsson <jas@extundo.com>
17360 * tests/test-hmac-sha1.c: New file.
17362 * modules/hmac-sha1-tests: New file.
17364 * modules/hmac-sha1: New file.
17366 2005-10-12 Simon Josefsson <jas@extundo.com>
17368 * modules/gc-sha1: New file.
17370 2005-10-12 Simon Josefsson <jas@extundo.com>
17372 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
17374 * tests/test-gc-pbkdf2-sha1.c: New file.
17376 2005-10-12 Simon Josefsson <jas@extundo.com>
17378 * modules/gc-md5, modules/gc-hmac-md5: New files.
17380 * modules/gc (Files): Remove md5, memxor and hmac files.
17382 2005-10-12 Simon Josefsson <jas@extundo.com>
17384 * m4/gc-pbkdf2-sha1.m4: New file.
17386 * m4/gc-hmac-sha1.m4: New file.
17388 * m4/gc-sha1: New file.
17390 * m4/hmac-sha1.m4: New file.
17392 2005-10-12 Simon Josefsson <jas@extundo.com>
17394 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
17396 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
17398 2005-10-12 Simon Josefsson <jas@extundo.com>
17400 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
17401 suggested by Bruno Haible <bruno@clisp.org>.
17403 2005-10-12 Simon Josefsson <jas@extundo.com>
17405 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
17407 2005-10-12 Simon Josefsson <jas@extundo.com>
17409 * lib/gc-pbkdf2-sha1.c: New file.
17411 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
17413 2005-10-12 Simon Josefsson <jas@extundo.com>
17415 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
17417 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
17419 2005-10-12 Simon Josefsson <jas@extundo.com>
17421 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
17422 GC_USE_HMAC_MD5, respectively.
17424 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
17425 (gc_md5): Fix typo.
17427 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
17429 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
17431 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
17433 2005-10-12 Bruno Haible <bruno@clisp.org>
17435 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
17436 Reported by Stepan Kasal <kasal@ucw.cz>.
17438 2005-10-11 Simon Josefsson <jas@extundo.com>
17440 * tests/test-crc.c: New file.
17442 * modules/crc, modules/crc-tests: New files.
17444 2005-10-11 Simon Josefsson <jas@extundo.com>
17446 * m4/crc.m4: New file.
17448 2005-10-11 Simon Josefsson <jas@extundo.com>
17450 * lib/gc.h: Add gc_hash and gc_hash_buffer.
17452 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
17454 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
17456 2005-10-11 Simon Josefsson <jas@extundo.com>
17458 * lib/crc.h, lib/crc.c: New files.
17460 * lib/gc.h (gc_hash_buffer): Add doc.
17462 2005-10-11 Bruno Haible <bruno@clisp.org>
17464 * modules/c-strcasestr: New file.
17465 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
17467 2005-10-11 Bruno Haible <bruno@clisp.org>
17469 * modules/c-strcase: New file.
17470 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
17472 2005-10-11 Bruno Haible <bruno@clisp.org>
17474 * lib/strcasecmp.c: Include limits.h.
17475 (strcasecmp): Avoid integer overflow on exotic platforms.
17476 * lib/strncasecmp.c: Include limits.h.
17477 (strncasecmp): Avoid integer overflow on exotic platforms.
17478 Reported by Paul Eggert.
17480 2005-10-11 Bruno Haible <bruno@clisp.org>
17482 * lib/c-strcasestr.h: New file, from GNU gettext.
17483 * lib/c-strcasestr.c: New file, from GNU gettext.
17485 2005-10-11 Bruno Haible <bruno@clisp.org>
17487 * lib/c-strcase.h: New file, from GNU gettext.
17488 * lib/c-strcasecmp.c: New file, from GNU gettext.
17489 * lib/c-strncasecmp.c: New file, from GNU gettext.
17491 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
17493 * modules/mempcpy (License): GPL -> LGPL.
17494 * modules/strchrnul (License): Likewise.
17495 * modules/sysexits (License): Likewise.
17497 2005-10-08 Simon Josefsson <jas@extundo.com>
17499 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
17501 2005-10-07 Simon Josefsson <jas@extundo.com>
17503 * m4/memxor.m4: Remove gl_C_RESTRICT call.
17505 2005-10-06 Simon Josefsson <jas@extundo.com>
17507 * tests/test-hmac-md5.c: New file.
17509 * modules/hmac-md5-tests: New file.
17511 * modules/hmac-md5: New file.
17513 2005-10-06 Simon Josefsson <jas@extundo.com>
17515 * m4/hmac-md5.m4: New file.
17517 * m4/memxor.m4: Require gl_C_RESTRICT.
17519 2005-10-06 Simon Josefsson <jas@extundo.com>
17521 * lib/memxor.c (memxor): Avoid casts and warnings.
17523 2005-10-06 Simon Josefsson <jas@extundo.com>
17525 * lib/hmac-md5.c: New file.
17527 * lib/hmac.h: New file.
17529 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
17531 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
17532 promotes to int, not unsigned int, to catch the AIX 5.3
17535 2005-10-05 Simon Josefsson <jas@extundo.com>
17537 * modules/memxor: New file.
17539 * modules/iconv (Files): Move config.rpath to havelib, it is used
17542 * modules/havelib (Files): Add config.rpath.
17544 2005-10-05 Simon Josefsson <jas@extundo.com>
17546 * m4/memxor.m4: New file.
17548 2005-10-05 Simon Josefsson <jas@extundo.com>
17550 * lib/memxor.c (memxor): Fix compiler error.
17552 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
17553 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
17555 * lib/memxor.h, lib/memxor.c: New files.
17557 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
17558 we assume all systems have it, suggested by Jim Meyering
17559 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
17560 any systems lack sys/socket.h; mingw32 is known to lack it, but we
17561 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
17564 2005-10-05 Simon Josefsson <jas@extundo.com>
17566 * config/srclist.txt: Add glibc bug 1423 for md5.h.
17568 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
17570 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
17571 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
17572 needed, since the source code now assumes these .h files.
17574 2005-10-05 Derek Price <derek@ximbiot.com>
17576 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
17578 2005-10-05 Bruno Haible <bruno@clisp.org>
17580 * modules/stdint (License): Change to LGPL.
17582 2005-10-04 Simon Josefsson <jas@extundo.com>
17584 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
17585 D. Baushke" <mdb@gnu.org>.
17587 2005-10-04 Bruno Haible <bruno@clisp.org>
17589 * lib/verify.h (verify_true): Provide alternative definition for C++.
17591 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
17593 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
17594 (SSIZE_MAX): New macro, if not already defined.
17595 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
17598 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17600 Sync from coreutils.
17601 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
17602 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
17603 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
17604 ULLONG_MAX doesn't work with 2.7.2.1.
17606 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17608 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
17611 * modules/exclude (Depends-on): Depend on verify.
17612 * modules/strtoimax (Depends-on): Likewise.
17613 * modules/utimecmp (Depends-on): Likewise.
17615 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17617 * lib/exclude.c: Include verify.h.
17618 (verify): Remove. All callers changed to use verify.h's version.
17619 * lib/strtoimax.c: Likewise.
17620 * lib/utimecmp.c: Likewis.e
17622 Sync from coreutils.
17623 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
17624 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
17625 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
17626 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
17627 bother returning ENOSYS if settimeofday or stime fails; just let
17628 them return whatever errno they want to return.
17629 * lib/utimens.c: Include unistd.h, for dup2.
17630 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
17631 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
17633 2005-10-02 Jim Meyering <jim@meyering.net>
17635 Sync from coreutils.
17636 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
17637 from glibc-2.2.5 that fails for read-only files.
17639 2005-10-02 Jim Meyering <jim@meyering.net>
17641 Sync from coreutils.
17642 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
17643 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
17644 `#if HAVE_CONFIG_H'.
17645 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
17646 Remove AT_FDCWD test.
17647 Do not consume the fd unless successful.
17648 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
17649 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
17650 block, so that we don't even try to compile it if settimeofday is
17651 available. This works around a compilation failure on OSF1 V5.1,
17652 due to stime requiring a `long int*' while tv_sec is `int'.
17654 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
17656 Sync from coreutils.
17657 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
17658 against `yes', rather than just testing for nonempty.
17660 2005-10-01 Simon Josefsson <jas@extundo.com>
17662 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
17665 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
17666 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
17667 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
17668 freeaddrinfo and gai_strerror are declared by the POSIX headers.
17669 Check if struct addrinfo is declared.
17671 2005-10-01 Simon Josefsson <jas@extundo.com>
17673 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
17674 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
17675 AI_* and EAI_* definitions. Protect function declarations.
17677 2005-10-01 Jim Meyering <jim@meyering.net>
17679 Sync from coreutils.
17681 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
17682 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
17683 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
17684 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17685 in the inet and nsl libraries. Required on Solaris 5.7.
17687 2005-10-01 Jim Meyering <jim@meyering.net>
17689 Sync from coreutils.
17690 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17691 in the inet and nsl libraries. Required on Solaris 5.7.
17693 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
17695 * lib/getdelim.c (getdelim): Remove unused variables.
17697 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
17699 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
17700 so that the code works even with ancient cpp. Portability problem
17701 with GCC 2.7.2.1 reported by Thomas M.Ott.
17703 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
17705 * modules/regex (Depends-on): Add strcase.
17707 * modules/gethostname (Licence): Change from GPL to LGPL, since
17708 gethostname.c is a trivial implementation of a standard library
17710 * modules/poll (License): Change from GPL to LGPL, since it's
17711 derived from LGPL code.
17713 2005-09-27 Jim Meyering <jim@meyering.net>
17715 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17718 * lib/intprops.h (signed_type_or_expr__): Define.
17719 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17720 for unsigned types.
17722 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
17724 * lib/verify.h (verify_expr): Remove, replacing with:
17725 (verify_true): New macro that returns true instead of void.
17726 (verify_type__): Remove.
17727 (verify): Use verify_true rather than verify_type__.
17729 2005-09-26 Bruno Haible <bruno@clisp.org>
17731 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17733 (lib_SOURCES): Remove mbchar.c.
17734 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17735 (Files): Add m4/mbrtowc.m4.
17736 * modules/mbiter: Likewise.
17737 * modules/mbuiter: Likewise.
17739 2005-09-26 Bruno Haible <bruno@clisp.org>
17741 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17742 compile mbchar.c if they are not both present.
17743 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17744 * m4/mbiter.m4 (gl_MBITER): Likewise.
17745 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17746 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17747 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17749 2005-09-25 Jim Meyering <jim@meyering.net>
17751 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17752 also uses socklen_t.
17754 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
17756 * lib/utimens.c (ENOSYS): Define if not already defined.
17757 (futimens): Support having a null PATH if the file descriptor
17760 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17762 (__attribute): Define to empty unless GCC 3.1 or later.
17763 This works around a core dump on OpenBSD 3.4, which has GCC
17764 2.95.3, which dumps core when given __attribute__(()). It also
17765 simplifies other tests, since we really don't want to bother with
17766 worrying about which ancient version of GCC supported what.
17767 Original problem reported by Yoann Vandoorselaere, with part of
17768 the fix suggested by Derek Price.
17770 2005-09-24 Jim Meyering <jim@meyering.net>
17772 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17773 so we can once again use a positive bitfield width of 1 -- now we
17774 don't have to explain why we were using a bitfield width of 2.
17776 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17778 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17779 and similarly for the other external symbols. Problem reported
17782 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
17783 bug reported by Jim Meyering.
17785 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
17786 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
17787 not needed, since socklen is a prerequisite module.
17789 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17791 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
17792 Problem reported by Eric Blake.
17793 (getaddrinfo): Initialize se so that it's not garbage.
17794 Redo internal storage allocation so that it doesn't make unportable
17795 assumptions about alignment.
17798 * lib/utimens.c (futimens): Use futimesat if available.
17799 Prefer it to futimes since it doesn't have the futimes bug.
17801 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
17802 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
17803 Instead, declare a function that returns a pointer to an array,
17804 and use verify_type__ to declare the size of the array.
17805 Problem and germ of a solution reported by Bruno Haible.
17806 (verify_type__): Use 2, not 1, for bitfield size, to avoid
17807 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
17809 2005-09-23 Jim Meyering <jim@meyering.net>
17811 Sync from coreutils.
17812 Correct build failure (socklen_t not defined) on at least
17813 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
17814 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
17816 2005-09-23 Jim Meyering <jim@meyering.net>
17818 * modules/getaddrinfo (Depends-on): Add socklen.
17820 2005-09-23 Bruno Haible <bruno@clisp.org>
17822 * tests/test-verify.c: New file.
17824 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17826 Sync from coreutils.
17828 * modules/argmatch (Depends-on): Add verify.
17829 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
17831 * modules/save-cwd (Depends-on): Likewise.
17833 * modules/openat (Files): Add lib/openat-die.c.
17834 (Depends-on): Remove error, exitfail.
17837 * modules/verify: New file.
17838 * MODULES.html.sh (Diagnostics <assert.h>): New section,
17839 with "verify" module.
17841 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17843 Sync from coreutils.
17845 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
17846 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
17847 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
17848 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
17849 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
17850 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
17851 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
17852 Don't bother checking for string.h, stdlib.h, unistd.h.
17853 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
17854 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
17856 * m4/jm-macros.m4 (gl_MACROS): Likewise.
17857 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
17859 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
17860 (gl_GETDATE): Use it.
17862 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
17864 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17866 Sync from coreutils.
17868 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
17870 * lib/argmatch.h: Include verify.h
17871 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
17872 (ARGMATCH_ASSERT): Remove; unused.
17873 * lib/canonicalize.c: Assume STDC_HEADERS.
17874 * lib/exclude.c: Include "strcase.h".
17875 * lib/regex_internal.h [!defined _LIBC]: Likewise.
17876 * lib/getusershell.c: Include stdio--.h rather than stdio.h
17878 (getusershell): Call fopen, not fopen_safer.
17879 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
17880 Do not include unistd-safer.h.
17881 (save_cwd): Don't call fd_safer; no longer needed
17882 now that we include fcntl--.h.
17884 * lib/getdate.y (relative_time): New type.
17885 (RELATIVE_TIME_0): New constant.
17886 (parser_control): Use relative_time instead of doing it ourselves.
17887 (%union): Add new relative_time rel member.
17888 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
17890 (relunit, relunit_snumber): Now of type rel.
17891 (zone, rel, relunit, get_date): Adjust to above changes.
17893 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
17894 Do not include unistd-safer.h.
17895 (getloadavg): Don't call fd_safer; no longer needed
17896 now that we include fcntl--.h.
17898 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
17899 (make_dir_parents): Treat ENOSYS like EEXIST.
17901 Improve quality of diagnostics on restore_cwd failure.
17902 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
17903 (make_dir_parents): Last arg is now int * (for errno), not bool *.
17904 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
17905 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
17906 each time through the loop. Do not diagnose restore_cwd failure;
17907 that is the caller's job (and perhaps the caller does not care).
17909 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
17910 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
17911 If the file already exists but is not a directory, don't bother
17912 to try to make its parents.
17913 Close potential file descriptor leak if we can't chdir("/") (!).
17914 Don't always return true if chdir($PWD) fails; return true only
17915 if the requested action was done successfully (except for the
17917 Don't log final directory unless we actually made it.
17918 Refactor to avoid duplicate code to fix up permissions.
17919 Don't attempt to fix up parent permissions if chdir($PWD) fails.
17921 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
17922 to make it a bit faster and (I hope) clearer.
17923 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
17924 Fix bug in formats like %2N.
17926 * lib/verify.h: New file.
17928 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17930 Sync from coreutils.
17931 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
17933 2005-09-22 Jim Meyering <jim@meyering.net>
17935 Sync from coreutils.
17937 * m4/lstat.m4 (gl_FUNC_LSTAT):
17938 Use AC_LIBSOURCES to require lstat.c and lstat.h.
17939 Remove obsolete comment.
17940 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
17941 * m4/xstrtod.m4: Likewise.
17943 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
17945 2005-09-22 Jim Meyering <jim@meyering.net>
17947 Sync from coreutils.
17949 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
17951 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
17952 the .tm_year member, since otherwise gcc-4.0 would now warn about
17953 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
17955 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
17956 order to avoid an unsuppressible warning from gcc on 64-bit systems.
17958 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
17959 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
17960 when run in a time zone for which daylight savings time is in effect
17961 for the starting date.
17963 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
17964 stop us from restricting permissions of just-created absolute-named
17966 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
17967 to restore initial working directory.
17968 * lib/mkdir-p.c (make_dir_parents): New parameter:
17969 different_working_dir, to tell caller if/when we change the working
17970 directory and are unable to return to the initial one.
17971 * lib/mkdir-p.h (make_dir_parents): Update prototype.
17972 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
17973 `return false'. This fixes a bug introduced on 2004-07-30.
17975 * lib/openat.c (fdopendir): Be sure to close the supplied
17976 file descriptor before returning. This makes our replacement
17977 implementation a little closer to Solaris's, where fdopendir
17978 ties the file descriptor to the returned DIR* pointer.
17979 * lib/openat.c (unlinkat): New function.
17980 * lib/openat.h (unlinkat): Add prototype.
17981 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
17982 (openat_restore_fail): Rename from openat_restore_die.
17983 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
17985 Provide an alternative to exiting immediately upon save_cwd or
17986 restore_cwd failure. Now, an application can arrange e.g.,
17987 to perform a longjump in that case.
17988 * lib/openat.c: Include dirname.h.
17989 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
17990 (rpl_openat, fdopendir, fstatat): Call openat_save_die
17991 and openat_restore_die rather than calling error directly.
17992 Don't include "error.h" or "exitfail.h"; they're no longer needed.
17994 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
17995 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
17998 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
17999 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
18000 int utc, int nanoseconds);
18002 date should not have to allocate a megabyte of virtual memory to
18003 handle a format argument like +%1048575T. When implemented with
18004 strftime, it must allocate such a buffer, use strftime to fill it
18005 in, print it, then free it.
18006 With fprintftime, it simply prints everything and exits.
18007 With no need for memory allocation, that's one fewer way to fail.
18008 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
18009 optional field width, not before, so we accept %9:z, not %:9z.
18010 (my_strftime): Be sure to use L_('x') for literals.
18012 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
18013 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
18014 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
18015 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
18016 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
18017 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
18018 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
18019 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
18020 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
18021 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
18022 * lib/xgethostname.c, lib/xreadlink.c:
18023 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
18025 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
18026 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
18027 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
18028 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18029 and don't include <sys/file.h>).
18031 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
18033 Sync from coreutils.
18035 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
18036 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
18037 [!LDAV_DONE]: Avoid unused variable warning.
18039 2005-09-21 Bruno Haible <bruno@clisp.org>
18041 * lib/unicodeio.h (unicode_to_mb): New declaration.
18043 2005-09-20 Derek Price <derek@ximbiot.com>
18045 * lib/getaddrinfo.c: Don't include <netdb.h> included from
18048 2005-09-20 Bruno Haible <bruno@clisp.org>
18050 * gnulib-tool: Remove trailing slashes from the values specified for
18051 --source-base, --m4-base, --tests-base, --aux-dir.
18052 Suggested by Simon Josefsson <jas@extundo.com>.
18054 2005-09-20 Bruno Haible <bruno@clisp.org>
18056 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
18057 func_modules_to_filelist, func_import, func_create_testdir): Make all
18058 sorting results locale-independent, so that gnulib-cache.m4 doesn't
18059 change when gnulib-tool is invoked in a different locale.
18061 2005-09-19 Simon Josefsson <jas@extundo.com>
18063 * m4/socklen.m4: Fix typo.
18065 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18067 Use a consistent style for including <config.h>.
18068 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
18069 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
18070 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
18071 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
18072 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
18073 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
18074 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
18075 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
18076 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
18077 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
18078 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
18079 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
18080 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
18081 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
18082 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
18083 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
18084 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
18085 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
18086 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
18087 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
18088 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
18089 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
18090 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
18091 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
18092 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
18093 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
18094 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
18095 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
18096 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
18097 lib/xstrtoumax.c, lib/yesno.c:
18098 Standardize inclusion of config.h.
18099 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
18100 lib/inttostr.h: Removed inclusion of config.h from header files.
18101 * lib/inttostr.c: Adjusted in-tree users.
18102 * lib/timespec.h: Remove superfluous warning to include config.h.
18103 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
18104 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
18105 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
18106 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
18107 config.h with HAVE_CONFIG_H.
18109 2005-09-19 Jim Meyering <jim@meyering.net>
18111 * modules/pathmax (License): Change to LGPL.
18113 2005-09-19 Derek Price <derek@ximbiot.com>
18115 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
18117 2005-09-19 Bruno Haible <bruno@clisp.org>
18119 * gnulib-tool (import): Provide default for --tests-base.
18121 2005-09-19 Bruno Haible <bruno@clisp.org>
18123 * doc/quote.texi: New file, extracted from gnulib.texi.
18124 * doc/ctime.texi: New file, extracted from gnulib.texi.
18125 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
18126 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
18127 * doc/gnulib.texi: Include them.
18129 2005-09-18 Bruno Haible <bruno@clisp.org>
18132 * gnulib-tool (func_readlink): New function.
18133 (func_ln_if_changed): Use it.
18135 2005-09-18 Bruno Haible <bruno@clisp.org>
18137 * gnulib-tool: Support --with-tests also with --import.
18138 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
18139 (func_import): Use variables $testsbase and $inctests. Emit a
18140 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
18141 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
18142 SUBDIRS += $testsdir.
18143 (func_create_testdir): Update.
18145 2005-09-18 Bruno Haible <bruno@clisp.org>
18147 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
18148 instead of $dry_run.
18149 (func_cp_if_changed, func_mv_if_changed): Remove functions.
18150 (func_ln_if_changed): Don't handle dry-run here.
18151 (func_import): In dry-run mode, detect more precisely which actions
18152 would be performed, and don't use "...ing" verbs.
18154 2005-09-18 Bruno Haible <bruno@clisp.org>
18156 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
18157 (func_import): Use join on two temporary files instead of three nested
18158 loops, in order to determine which files are new or old.
18160 2005-09-18 Bruno Haible <bruno@clisp.org>
18162 * gnulib-tool (func_import): Comment out code that spits out the
18163 new files with --dry-run.
18165 2005-09-18 Bruno Haible <bruno@clisp.org>
18167 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
18169 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18171 * lib/stat-time.h: New file.
18172 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
18173 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
18174 in a different way.
18175 (timespec_cmp): New function.
18176 * lib/utimecmp.c: Include stat-time.h.
18177 (SYSCALL_RESOLUTION): Depend on whether various struct stat
18178 members exist, not on the obsolescent ST_MTIM_NSEC.
18179 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
18181 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18183 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
18185 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18187 * MODULES.html.sh (File system functions): Add stat-time.
18188 * modules/stat-time: New file.
18189 * modules/timespec (Files): Remove m4/st_mtim.m4; this
18190 is now done in a different way, by the stat-time module.
18191 * modules/utimecmp (Depends-on): Add stat-time.
18193 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
18195 * m4/st_mtim.m4: Remove. Superseded by...
18196 * m4/stat-time.m4: New file.
18197 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
18198 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
18200 2005-09-15 Derek Price <derek@ximbiot.com>
18202 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
18204 2005-09-15 Derek Price <derek@ximbiot.com>
18206 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
18207 * lib/regex_internal.c: Ditto, using this...
18208 (__GNUC_PREREQ): ...new macro.
18209 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
18211 (__GNUC_PREREQ): ...this new macro.
18213 * lib/strstr.h: Include string.h. Define strstr as a macro here.
18215 2005-09-15 Derek Price <derek@ximbiot.com>
18216 Paul Eggert <eggert@cs.ucla.edu>
18218 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
18219 changes, consolidating in...
18220 * lib/regex_internal.h: ...this file.
18222 2005-09-13 Jim Meyering <jim@meyering.net>
18224 * lib/canon-host.c: Filter through gnu indent and reword comments
18226 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
18228 2005-09-13 Derek Price <derek@ximbiot.com>
18230 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
18232 Reported by Jim Meyering <jim@meyering.net>.
18234 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
18236 * lib/base64.c: Typo.
18237 (base64_encode): Put b64str in initialized data section.
18239 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
18241 Merge glibc and coreutils changes into gnulib, plus a few
18243 * lib/md5.c: Use #error rather than a string.
18244 (CYCLIC): New macro, from glibc source. Use it instead of rol.
18245 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
18246 (__attribute__): Define to empty for non recent-GCC.
18247 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
18248 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
18249 Renamed from their non-__ counterparts, with new macros replacing
18250 them if not _LIBC. Add __THROW attribute.
18252 (struct md5_ctx): Align buffer if using GCC.
18253 * lib/sha1.h (struct sha1_ctx): Likewise.
18254 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
18255 The old name was backwards.
18256 (NOTSWAP): Remove; not used.
18257 (rol): New macro, moved here from md5.h.
18258 (sha1_process_block): Remove a FIXME that doesn't make sense.
18260 2005-09-12 Derek Price <derek@ximbiot.com>
18262 Return usable errors from canon-host.
18263 * lib/canon-host.h: New file.
18264 * lib/canon-host.c (canon_host): Wrap...
18265 (canon_host_r): ...this new function, which now relies exclusively on
18267 (ch_strerror): New function.
18268 (last_cherror): New global.
18269 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
18271 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
18273 (freeaddrinfo): Free ai->ai_canonname when set.
18275 2005-09-12 Derek Price <derek@ximbiot.com>
18277 Make canon-host require getaddrinfo.
18278 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
18279 AC_LIBSOURCE canon-host.h. Call...
18280 (gl_PREREQ_CANON_HOST): ...this new function, which requires
18282 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
18284 2005-09-12 Derek Price <derek@ximbiot.com>
18286 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
18288 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
18290 2005-09-12 Derek Price <derek@ximbiot.com>
18292 * lib/gai_strerror.c: Include config.h when available. Include
18293 getaddrinfo.h before other headers to test interface.
18294 Reported by Larry Jones <lawrence.jones@ugs.com>.
18296 2005-09-12 Derek Price <derek@ximbiot.com>
18297 Paul Eggert <eggert@cs.ucla.edu>
18299 * modules/glob (Files): Add glob-libc.h.
18301 2005-09-12 Derek Price <derek@ximbiot.com>
18302 Paul Eggert <eggert@cs.ucla.edu>
18304 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
18305 glob_.h, glob-libc.h.
18306 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
18308 2005-09-12 Derek Price <derek@ximbiot.com>
18309 Paul Eggert <eggert@cs.ucla.edu>
18311 * lib/glob-libc.h: Renamed from glob_.h. The new version is
18312 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
18313 protecting things that should be done only in gnulib contexts.
18314 * lib/glob_.h: New file, containing only the glob things needed for
18316 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
18317 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
18318 (glob, globfree, glob_pattern_p): Now defined simply in terms of
18319 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
18320 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
18321 and to respect the namespace rules better.
18323 2005-09-08 Simon Josefsson <jas@extundo.com>
18325 * modules/socklen: New file.
18327 2005-09-08 Simon Josefsson <jas@extundo.com>
18329 * m4/socklen.m4: New file.
18331 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18333 * modules/utimens (Files): Add m4/utimbuf.m4, since
18334 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
18335 Reported by Sergey Poznyakoff.
18337 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18339 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
18340 definitions, since that's the preferred style in glibc.
18341 Fix a minor spacing issue, and update copyright notice to match
18344 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18346 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
18348 2005-09-06 Simon Josefsson <jas@extundo.com>
18350 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
18351 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
18353 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
18355 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
18358 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
18360 * config/srclist.txt: Add glibc bug 1302.
18362 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
18364 Change bitset word type from unsigned int to unsigned long int,
18365 as this has better performance on typical 64-bit hosts.
18366 Port bitset code to hosts with unusual word sizes.
18367 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
18368 (build_collating_symbol):
18369 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
18370 argument is a bitset. This is merely a style issue, but it makes
18371 it clearer that an entire array is expected.
18372 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
18373 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
18374 Port to the case where bitset_word is not the same as unsigned int.
18375 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18376 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
18378 * lib/regexec.c (check_dst_limits_calc_pos_1,
18379 check_subexp_matching_top):
18380 (build_trtable, group_nodes_into_DFAstates):
18382 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
18383 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
18384 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
18385 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
18386 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
18387 * lib/regcomp.c (optimize_subexps, lower_subexp):
18388 Work even if bitset_word has holes in its bitwise representation.
18389 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
18390 * lib/regexec.c (check_dst_limits_calc_pos_1,
18391 check_subexp_matching_top):
18393 * lib/regex_internal.c (re_string_reconstruct):
18394 Don't assume UCHAR_MAX == 255.
18395 * lib/regex_internal.h (bitset_set_all): Likewise.
18396 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
18398 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
18399 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
18401 (BITSET_WORD_MAX): New macro.
18402 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
18403 (bitset_set_all, bitset_copy): Now inline functions, not macros.
18404 (bitset_empty, bitset_copy):
18405 Prefer sizeof (bitset) to multiplying it out ourselves.
18406 (bitset_not_merge): Remove; unused.
18407 (bitset_contain): Return bool, not unsigned int with one bit on.
18408 All callers changed.
18409 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
18410 alignment than re_node_set; do this by defining a new internal
18411 type struct dests_alloc and using it to allocate memory.
18413 2005-09-05 Bruno Haible <bruno@clisp.org>
18415 * gnulib-tool (func_import): Fix comparison in handling of symbolic
18418 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
18420 * modules/size_max (Makefile.am): Add size_max.h
18422 2005-09-04 Derek Price <derek@ximbiot.com>
18424 * gnulib-tool (func_import): Fix reversed $symbolic logic.
18426 2005-09-03 Simon Josefsson <jas@extundo.com>
18428 * gnulib-tool: Fix typo.
18430 2005-09-03 Simon Josefsson <jas@extundo.com>
18432 * config/srclist.txt: Add glibc bug 1293.
18434 2005-09-03 Derek Price <derek@ximbiot.com>
18436 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
18437 From Larry Jones <lawrence.jones@ugs.com>.
18439 2005-09-02 Simon Josefsson <jas@extundo.com>
18441 * modules/socklen: New file.
18443 2005-09-02 Simon Josefsson <jas@extundo.com>
18445 * modules/havelib: New module.
18447 * modules/gettext, modules/iconv, modules/lock, modules/readline:
18450 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
18452 Check for arithmetic overflow when calculating sizes, to prevent
18453 some buffer-overflow issues. These patches are conservative, in the
18454 sense that when I couldn't determine whether an overflow was possible,
18455 I inserted a run-time check.
18456 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
18458 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
18459 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
18460 (re_xnrealloc, re_x2nrealloc): New inline functions.
18461 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
18462 parse_bracket_exp):
18463 (build_equiv_class, build_charclass): Check for arithmetic overflow
18464 in size expression calculations.
18465 * lib/regex_internal.c (re_string_realloc_buffers):
18466 (build_wcs_upper_buffer, re_node_set_add_intersect):
18467 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
18468 (re_dfa_add_node, register_state): Likewise.
18469 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
18470 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
18471 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
18472 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
18474 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
18476 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18477 m4/ulonglong.m4. Problem reported by Martin Lambers.
18479 2005-09-02 Bruno Haible <bruno@clisp.org>
18481 Support for lib vs. lib64 distinction on biarch platforms.
18482 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
18483 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
18484 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
18486 2005-09-02 Bruno Haible <bruno@clisp.org>
18488 * gnulib-tool (import): In the other first-use case, provide defaults
18491 2005-09-02 Bruno Haible <bruno@clisp.org>
18493 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
18494 patches not yet found in the latest gettext release.
18496 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18498 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
18499 to avoid a collision with bits/local_lim.h in glibc.
18500 All uses changed. Problem reported by Dmitry V. Levin in
18501 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
18503 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
18504 bugs in int versus size_t comparisons.
18505 (re_string_context_at): Fix bug where the code assumed that
18508 Use bool where appropriate.
18509 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
18510 All callers changed.
18511 (calc_eclosure_iter): Likewise, for ROOT arg.
18512 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
18513 (build_charclass_op): Likewise, for NON_MATCH arg.
18514 * lib/regex_internal.c (re_string_allocate, re_string_construct):
18515 (re_string_construct_common): Likewise, for ICASE arg.
18516 * lib/regexec.c (re_search_2_stub, re_search_stub):
18517 Likewise, for RET_LEN arg.
18518 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
18519 (set_regs): Likewise, for FL_BACKTRACK arg.
18520 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
18521 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
18522 (calc_eclosure_iter, parse_bracket_exp):
18523 Use bool for internal variables that are booleans.
18524 * lib/regexec.c (re_search_internal, check_matching,
18525 proceed_next_node):
18526 (set_regs, build_sifted_states, sift_states_bkref):
18527 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
18528 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18529 (find_collation_sequence_value):
18531 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
18532 (re_node_set_compare):
18533 Return bool, not int. All callers changed.
18534 * lib/regexec.c (check_halt_node_context, check_dst_limits):
18535 (build_trtable, check_node_accept): Likewise.
18536 * lib/regex_internal.h: Include stdbool.h.
18538 Fix bugs uncovered when converting to bool.
18539 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
18540 failure instead of charging ahead blindly.
18541 * lib/regex_internal.c (register_state): Likewise.
18542 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
18543 for freeing internal storage.
18544 (group_nodes_into_DFA_states): Use unsigned int, not int, for
18545 bitset pieces used as boolean, to avoid undefined behavior
18546 on hosts that do int overflow checking.
18548 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18550 * config/srclist.txt: Add glibc bugs 1285-1287.
18552 2005-09-01 Jim Meyering <jim@meyering.net>
18554 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
18555 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
18556 Require gl_STAT_MACROS, too.
18558 2005-09-01 Bruno Haible <bruno@clisp.org>
18560 * gnulib-tool (import): In the first-use case, provide defaults.
18562 2005-09-01 Bruno Haible <bruno@clisp.org>
18564 * gnulib-tool (func_import): Remove the .tmp files.
18566 2005-09-01 Bruno Haible <bruno@clisp.org>
18568 * gnulib-tool (func_import): Fix handling of symbolic links.
18570 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18572 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
18573 old glibc regex code mishandles strings longer than 2**31 bytes.
18574 This patch fixes this when the regex code is used in gnulib
18575 (i.e., outside glibc).
18577 This patch should not affect the use of the regex code inside
18578 glibc. No doubt this problem also needs to be handled for glibc
18579 as well, but the result will be an incompatible change to the
18580 glibc ABI, and the old ABI will have to be supported too. That
18581 can be the the subject for another patch.
18583 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
18584 governing whether the rest of this patch is active. By default,
18585 the macro is disabled and the patch has no effect.
18586 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
18587 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
18588 (struct re_pattern_buffer, re_search, re_search_2, re_match):
18589 (re_match_2, re_set_registers): Use the new types.
18590 * lib/regex_internal.h (Idx, re_hashval_t): New types.
18591 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
18593 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
18594 (re_string_context_at, bin_tree_t, re_dfastate_t):
18595 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
18596 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
18597 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
18598 (re_string_char_size_at, re_string_wchar_at):
18599 (re_string_elem_size_at):
18600 Use the new types and macros to port to 64-bit hosts.
18601 Use unsigned types for internal values, so that the code
18602 mostly works even for arrays larger than SSIZE_MAX.
18603 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
18604 (search_duplicated_node, calc_eclosure_iter, fetch_number):
18605 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18606 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
18607 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
18608 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
18609 (calc_inveclosure, parse_dup_op, build_range_exp):
18610 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
18611 (fetch_number, create_token_tree, mark_opt_subexp):
18613 * lib/regex_internal.c (re_string_construct_common,
18614 create_ci_newstate):
18615 (create_cd_newstate, re_string_allocate, re_string_construct):
18616 (re_string_realloc_buffers, build_wcs_upper_buffer):
18617 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18618 (re_string_reconstruct, re_string_peek_byte_case):
18619 (re_string_fetch_byte_case, re_string_context_at):
18620 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18621 (re_node_set_init_copy, re_node_set_add_intersect):
18622 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18623 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18624 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18625 (re_acquire_state, re_acquire_state_context, register_state):
18627 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
18628 search_cur_bkref_entry):
18629 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
18630 (re_search_internal, re_search_2_stub, re_search_stub)
18631 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
18632 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
18633 (update_cur_sifted_state, check_dst_limits):
18634 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18635 (check_subexp_limits, sift_states_bkref, merge_state_array):
18636 (check_subexp_matching_top, get_subexp, get_subexp_sub):
18637 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
18638 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18639 (expand_bkref_cache, check_node_accept_bytes):
18640 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
18641 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
18642 (acquire_init_state_context, check_halt_node_context):
18643 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
18644 (sift_states_backward, clean_state_log_if_needed):
18645 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
18646 (find_recover_state, transit_state_sb, transit_state_mb):
18647 (transit_state_bkref, build_trtable, match_ctx_clean):
18649 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
18650 to work around an assumption that REG_MISSING is negative.
18652 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
18653 (seek_collating_symbol_entry) [defined _LIBC]:
18654 (lookup_collation_sequence_value) [defined _LIBC]:
18655 (build_range_exp, build_collating_symbol) [defined _LIBC]:
18656 Use prototypes rather than old-style function definitions.
18657 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
18658 (transit_state_sb) [0]:
18659 (find_collation_sequence_value) [defined _LIBC]: Likewise.
18661 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
18664 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
18665 (optimize_subexps, lower_subexp):
18666 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
18667 since the signed shift might overflow. Use 1u<<31 instead.
18668 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18670 * lib/regexec.c (check_dst_limits_calc_pos_1,
18671 check_subexp_matching_top): Likewise.
18673 * lib/regcomp.c (optimize_subexps, lower_subexp):
18674 Use CHAR_BIT rather than 8, for clarity.
18675 * lib/regexec.c (check_dst_limits_calc_pos_1):
18676 (check_subexp_matching_top): Likewise.
18677 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
18678 have to worry about portability issues when shifting it left.
18679 Remove no-longer-needed test for table_size > 0.
18680 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
18681 in a word, as the resulting behavior is undefined.
18682 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
18683 in one case, a <= should have been an <, and in another case the
18684 whole test was missing.
18685 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
18686 the standard name CHAR_BIT.
18687 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
18688 this is not true on one's complement and signed-magnitude hosts.
18690 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
18692 (struct re_dfa_t): Remove unused member states_alloc.
18693 * lib/regcomp.c (init_dfa): Don't initialize unused members.
18695 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18697 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
18698 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
18699 and large-file glibc and in 32-bit large-file Solaris.
18701 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18703 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
18704 lengths fit in regoff_t; this isn't true if regoff_t is the same
18706 * lib/regex.c (re_search_internal): 5th arg is LAST_START
18707 (= START + RANGE) instead of RANGE. This avoids overflow
18708 problems when regoff_t is the same width as size_t.
18709 All callers changed.
18710 (re_search_2_stub): Check for overflow when adding the
18711 sizes of the two strings.
18712 (re_search_stub): Check for overflow when adding START
18713 to RANGE; if it occurs, substitute the extreme value.
18715 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18717 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18719 2005-08-31 Jim Meyering <jim@meyering.net>
18721 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18722 a pointer-to-const.
18723 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18724 (register_state): Likewise.
18725 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18726 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18727 (group_nodes_into_DFAstates): Likewise.
18729 2005-08-31 Jim Meyering <jim@meyering.net>
18731 * check-module: Add a FIXME comment.
18733 2005-08-31 Eric Blake <ebb9@byu.net>
18735 * modules/unistd-safer (Files): Add unistd--.h.
18736 * modules/stdio-safer (Files): Add stdio--.h.
18738 2005-08-31 Derek Price <derek@ximbiot.com>
18740 * lib/getdelim.c (getdelim): Return EOF on EOF.
18741 Reported by Larry Jones <lawrence.jones@ugs.com>.
18743 2005-08-31 Bruno Haible <bruno@clisp.org>
18745 Avoid unnecessary diffs in the generated lib/Makefile.am.
18746 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18747 the generated files.
18748 (func_import): Don't set cmd.
18750 2005-08-31 Bruno Haible <bruno@clisp.org>
18752 * lib/strstr.c: Include <stddef.h>, for NULL.
18753 * lib/strcasestr.c: Likewise.
18754 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18756 2005-08-31 Bruno Haible <bruno@clisp.org>
18758 * gnulib-tool: New option --macro-prefix.
18759 (func_import): Use macro_prefix.
18760 (import): Handle option --macro-prefix.
18762 2005-08-31 Bruno Haible <bruno@clisp.org>
18764 * gnulib-tool (import): Rename most ac_* variables to cached_*.
18765 Also use new variables cached_lgpl, cached_libtool.
18767 2005-08-31 Bruno Haible <bruno@clisp.org>
18769 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18770 always instantiating them.
18772 2005-08-31 Bruno Haible <bruno@clisp.org>
18774 * gnulib-tool (func_import): Read the previous cached settings
18775 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18776 earlier added by gnulib but are now dropped. Warn when a gnulib file
18777 overwrites a non-gnulib file.
18779 2005-08-31 Bruno Haible <bruno@clisp.org>
18781 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
18782 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
18783 projects that don't keep autogenerated files in CVS. Put into
18784 actioncmd only the specified modules, not the transitive closure.
18786 2005-08-31 Bruno Haible <bruno@clisp.org>
18788 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
18789 Create directories that shall be filled.
18790 (import): Don't look for gl_* macros in configure.ac. Recurse across
18791 all directories containing a gnulib-cache.m4 files, if meaningful.
18793 2005-08-31 Bruno Haible <bruno@clisp.org>
18795 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
18796 (import): Set seen_libtool when we see gl_LIBTOOL.
18798 2005-08-31 Bruno Haible <bruno@clisp.org>
18800 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
18801 declaration macro definitions from generated gnulib.m4.
18803 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
18805 * lib/iconvme.h: Add prototype for iconv_alloc.
18807 2005-08-29 Simon Josefsson <jas@extundo.com>
18809 * lib/iconvme.c: Fix errno.
18811 2005-08-29 Bruno Haible <bruno@clisp.org>
18813 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
18814 that it works when the directory contains spaces.
18816 2005-08-29 Bruno Haible <bruno@clisp.org>
18818 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
18820 2005-08-29 Bruno Haible <bruno@clisp.org>
18822 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
18825 2005-08-29 Bruno Haible <bruno@clisp.org>
18826 and Stepan Kasal <kasal@ucw.cz>
18828 * check-module: If more parameters are given, check each of them
18829 separately; add more exceptions, as noted by Jim Meyering.
18830 (check_module): New procedure.
18831 (%exempt_header): Now contains all exceptions.
18833 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
18835 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
18837 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
18839 * lib/iconvme.c: Split iconv_string into iconv_alloc.
18841 2005-08-28 Bruno Haible <bruno@clisp.org>
18843 * m4/gnulib-tool.m4: New file.
18845 2005-08-27 Jim Meyering <jim@meyering.net>
18847 * modules/unistd-safer (Files): Add pipe-safer.c.
18848 * modules/fcntl-safer (Files): Add creat-safer.c.
18850 2005-08-27 Jim Meyering <jim@meyering.net>
18852 * m4/stdlib-safer.m4: New file. From coreutils.
18853 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
18854 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
18855 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
18856 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
18857 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
18859 2005-08-27 Jim Meyering <jim@meyering.net>
18861 * lib/fopen-safer.c: Merge minor changes from coreutils.
18862 * lib/dup-safer.c: Likewise.
18863 * lib/fd-safer.c: Likewise.
18865 Merge from coreutils.
18866 * lib/stdio--.h: New file.
18867 * lib/stdlib--.h: New file.
18868 * lib/mkstemp-safer.c: New file.
18870 GNU tar needs these.
18871 * lib/pipe-safer.c: New file.
18872 * lib/creat-safer.c: New file.
18873 * lib/fcntl--.h (creat): Define to creat_safer.
18874 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
18875 * lib/unistd--.h (pipe): Define to pipe_safer.
18876 * lib/unistd-safer.h: Declare pipe_safer.
18878 2005-08-26 Simon Josefsson <jas@extundo.com>
18880 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
18881 Haible <bruno@clisp.org>.
18883 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
18885 * lib/regex_internal.h: Remove all references to
18886 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
18888 (bitset_not, bitset_merge, bitset_not_merge):
18889 (bitset_mask, re_string_allocate, re_string_construct):
18890 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
18891 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
18892 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
18893 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
18894 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18895 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18896 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
18897 (re_acquire_state_context):
18898 Remove unnecessary forward decls.
18899 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
18900 Put __attribute at function definition,
18901 now that the function decl has been removed.
18902 * lib/regex_internal.c (re_string_peek_byte_case):
18903 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
18906 2005-08-25 Stepan Kasal <kasal@ucw.cz>
18908 * m4/regex.m4: Add AC_PREREQ(2.50).
18909 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
18911 2005-08-25 Simon Josefsson <jas@extundo.com>
18913 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
18916 2005-08-25 Simon Josefsson <jas@extundo.com>
18918 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
18919 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
18920 GLIBC specific code.
18922 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18924 Make regex safe for g++. This fixes one real bug (an "err"
18925 that should have been "*err"). g++ problem reported by
18927 * lib/regex_internal.h (re_calloc): New macro, consistent with
18928 re_malloc etc. All callers of calloc changed to use re_calloc.
18929 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
18930 not int. All callers changed.
18931 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
18932 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
18933 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
18934 (find_recover_state): Change "err" to "*err"; this fixes what
18935 appears to be a real bug.
18936 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
18939 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18941 * modules/regex (Depends-on): Add malloc, since the code
18942 assumes that !malloc(0) means failure.
18944 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18946 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
18948 alloca modernization/simplification for regex.
18949 * lib/regex.c: Remove portability cruft for alloca. This no longer
18950 needs to be at the start of the file, and can be moved into
18951 regex_internal.h and simplified.
18952 * lib/regex_internal.h: Include <alloca.h>.
18953 (__libc_use_alloca) [!defined _LIBC]: New macro.
18954 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
18955 now works outside glibc.
18957 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18959 * config/srclist.txt: Add glibc bugs 1241, 1245.
18961 2005-08-25 Jim Meyering <jim@meyering.net>
18963 * lib/open-safer.c: Include <config.h>.
18964 Otherwise, we'd lose LARGEFILE support in any file using
18967 2005-08-25 Bruno Haible <bruno@clisp.org>
18969 * m4/minmax.m4: Require autoconf 2.52.
18970 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
18971 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
18972 alternatives of translit over the alphabet.
18973 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
18975 2005-08-24 Simon Josefsson <jas@extundo.com>
18977 * tests/test-getpass.c: New file.
18979 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18981 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
18982 for GNU regex features.
18984 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18986 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
18987 * lib/regex.h (regerror): Likewise.
18989 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
18990 requires this. (The code never needed it.)
18992 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
18993 All uses of recently-renamed identifiers changed to use the new,
18994 POSIX-compliant names. The code will build and run just fine
18995 without these changes, but it's better to eat our own dog food
18996 and use the standard-conforming names.
18998 * lib/regex.h: Fix a multitude of POSIX name space violations.
18999 These changes have an effect only for programs that define
19000 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
19001 do not change anything for programs compiled in the normal way.
19002 Also, there is no effect on the ABI.
19004 (_REGEX_SOURCE): New macro.
19005 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
19006 defined and _GNU_SOURCE is not; this fixes a name space violation.
19008 Rename the following macros to obey POSIX requirements.
19009 The old names are still visible as macros if _REGEX_SOURCE is defined.
19010 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
19011 RE_BACKSLASH_ESCAPE_IN_LISTS.
19012 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
19013 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
19014 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
19015 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
19016 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
19017 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
19018 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
19019 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
19020 (REG_INTERVALS): renamed from RE_INTERVALS.
19021 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
19022 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
19023 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
19024 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
19025 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
19026 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
19027 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
19028 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
19029 RE_UNMATCHED_RIGHT_PAREN_ORD.
19030 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
19031 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
19032 (REG_DEBUG): renamed from RE_DEBUG.
19033 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
19034 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
19035 unusual, since we can't clash with the POSIX REG_ICASE.
19036 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
19037 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
19038 (REG_NO_SUB): renamed from RE_NO_SUB.
19039 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
19040 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
19041 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
19042 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
19043 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
19044 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
19045 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
19046 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
19047 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
19048 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
19049 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
19050 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
19051 RE_SYNTAX_POSIX_MINIMAL_BASIC.
19052 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
19053 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
19054 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
19055 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
19056 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
19057 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
19058 (REG_FIXED): Renamed from REGS_FIXED.
19059 (REG_NREGS): Renamed from RE_NREGS.
19061 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
19062 of other REG_* macros, since POSIX says the user is allowed to
19063 #undef these macros selectively.
19065 (reg_errcode_t): Update comment stating what other tables need
19068 Rename the following enum values to obey POSIX requirements.
19069 The old names are still visible as macros.
19070 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
19071 is not defined, since GNU is supposed to be a superset of POSIX as
19072 much as possible, and since we want reg_errcode_t to be a signed
19073 type for implementation consistency.
19074 (_REG_NOERROR): Renamed from REG_NOERROR.
19075 (_REG_NOMATCH): Renamed from REG_NOMATCH.
19076 (_REG_BADPAT): Renamed from REG_BADPAT.
19077 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
19078 (_REG_ECTYPE): Renamed from REG_ECTYPE.
19079 (_REG_EESCAPE): Renamed from REG_EESCAPE.
19080 (_REG_ESUBREG): Renamed from REG_ESUBREG.
19081 (_REG_EBRACK): Renamed from REG_EBRACK.
19082 (_REG_EPAREN): Renamed from REG_EPAREN.
19083 (_REG_EBRACE): Renamed from REG_EBRACE.
19084 (_REG_BADBR): Renamed from REG_BADBR.
19085 (_REG_ERANGE): Renamed from REG_ERANGE.
19086 (_REG_ESPACE): Renamed from REG_ESPACE.
19087 (_REG_BADRPT): Renamed from REG_BADRPT.
19088 (_REG_EEND): Renamed from REG_EEND.
19089 (_REG_ESIZE): Renamed from REG_ESIZE.
19090 (_REG_ERPAREN): Renamed from REG_ERPAREN.
19091 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
19092 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
19093 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
19094 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
19096 (_REG_RE_NAME, _REG_RM_NAME): New macros.
19097 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
19098 changed. But support the old name if the new one is not defined
19099 and if _REGEX_SOURCE.
19101 Change the following member names in struct re_pattern_buffer.
19102 The old names are still supported if !_REGEX_SOURCE.
19103 The new names are always supported, regardless of _REGEX_SOURCE.
19104 (re_buffer): Renamed from buffer.
19105 (re_allocated): Renamed from allocated.
19106 (re_used): Renamed from used.
19107 (re_syntax): Renamed from syntax.
19108 (re_fastmap): Renamed from fastmap.
19109 (re_translate): Renamed from translate.
19110 (re_can_be_null): Renamed from can_be_null.
19111 (re_regs_allocated): Renamed from regs_allocated.
19112 (re_fastmap_accurate): Renamed from fastmap_accurate.
19113 (re_no_sub): Renamed from no_sub.
19114 (re_not_bol): Renamed from not_bol.
19115 (re_not_eol): Renamed from not_eol.
19116 (re_newline_anchor): Renamed from newline_anchor.
19118 Change the following member names in struct re_registers.
19119 The old names are still supported if !_REGEX_SOURCE.
19120 The new names are always supported, regardless of _REGEX_SOURCE.
19121 (rm_num_regs): Renamed from num_regs.
19122 (rm_start): Renamed from start.
19123 (rm_end): Renamed from end.
19125 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
19126 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
19127 Prepend __ to parameter names.
19129 Undo yesterday's changes.
19131 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
19133 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
19134 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
19137 2005-08-24 Jim Meyering <jim@meyering.net>
19139 Sync from coreutils.
19140 * m4/fcntl-safer.m4: New file.
19142 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
19143 and object files for this module.
19145 2005-08-24 Jim Meyering <jim@meyering.net>
19147 Sync from coreutils.
19148 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
19150 2005-08-24 Jim Meyering <jim@meyering.net>
19152 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
19153 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
19155 2005-08-24 Jim Meyering <jim@meyering.net>
19157 * modules/fcntl-safer: New module.
19158 * modules/fts (Depends-on): Add fcntl-safer.
19159 * MODULES.html.sh (File descriptor based Input/Output):
19162 2005-08-24 Bruno Haible <bruno@clisp.org>
19164 Support for unit test modules.
19165 * modules/README: Mention tests modules.
19166 * modules/TEMPLATE-TESTS: New file.
19167 * gnulib-tool: New options --extract-tests-module, --with-tests and
19168 --tests-base (unused for the moment).
19169 (testsbase, inctests): New variables.
19170 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
19171 (func_verify_module): Exclude TEMPLATE-TESTS.
19172 (func_verify_nontests_module, func_verify_tests_module): New functions.
19173 (func_get_dependencies): Add implicit dependency for tests modules.
19174 (func_get_tests_module): New function.
19175 (func_modules_transitive_closure): When --with-tests was specified,
19176 include the unit tests as well, unless explicitly avoided.
19177 (func_emit_lib_Makefile_am): Ignore the tests modules here.
19178 (func_emit_tests_Makefile_am): New function.
19179 (func_create_testdir): When --with-tests was specified, emit a
19181 * MODULES.html.sh (Future developments): Update.
19183 2005-08-24 Bruno Haible <bruno@clisp.org>
19185 * modules/tls-tests: New file.
19186 * tests/test-tls.c: New file, from GNU gettext.
19188 2005-08-24 Bruno Haible <bruno@clisp.org>
19190 * modules/lock-tests: New file.
19191 * tests/test-lock.c: New file, from GNU gettext.
19193 2005-08-24 Bruno Haible <bruno@clisp.org>
19195 * lib/lock.h: Add multiple inclusion guard.
19196 * lib/tls.h: Add multiple inclusion guard.
19198 2005-08-24 Bruno Haible <bruno@clisp.org>
19200 * gnulib-tool: Add support for the --aux-dir option to
19201 --create-testdir, --create-megatestdir, --test, --megatest.
19202 (func_create_testdir, func_create_megatestdir): Optionally emit a
19203 AC_CONFIG_AUX_DIR directive.
19204 (create-testdir, create-megatestdir, test, megatest): Provide a
19205 default value for $auxdir.
19207 2005-08-24 Bruno Haible <bruno@clisp.org>
19209 * gnulib-tool (import): Use compound statement instead of subshell
19212 2005-08-24 Bruno Haible <bruno@clisp.org>
19214 * gnulib-tool (import): Change --aux-dir default to "build-aux".
19216 2005-08-24 Bruno Haible <bruno@clisp.org>
19218 * gnulib-tool (func_version): Update.
19220 2005-08-24 Bruno Haible <bruno@clisp.org>
19222 * gnulib-tool (func_import, func_create_testdir,
19223 func_create_megatestdir): Quote all autoconf macro arguments.
19225 2005-08-24 Bruno Haible <bruno@clisp.org>
19227 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
19228 option --force, because --force causes the aclocal.m4 of each
19229 subdirectory to be newer than the corresponding config.h.in.
19231 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19233 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
19234 All contents moved to gl_REGEX.
19235 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
19236 assume that it does.
19238 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19240 * lib/regex.h (REG_NOSYS)
19241 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
19242 Define, since POSIX requires it as of 2001.
19244 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
19245 New private symbol, used to keep the enum signed in all cases.
19246 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
19248 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
19250 * lib/regex_internal.c (re_string_skip_chars, register_state):
19252 Remove forward decls; no longer needed now that we use prototypes.
19253 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
19254 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
19255 (clean_state_log_if_needed): Likewise.
19257 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19259 * config/srclist.txt: Add glibc bugs 1231-1233.
19261 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19263 Fix problems reported by Sam Steingold in
19264 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
19265 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
19266 assumed that reg_errcode_t is a signed type, which is not
19267 necessarily true if _XOPEN_SOURCE is not defined.
19268 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
19269 since some compilers warn about it otherwise.
19271 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19273 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
19274 (init_word_char, create_initial_state, duplicate_node_closure):
19275 (fetch_token, peek_token_bracket, build_range_exp):
19276 (build_collating_symbol): Remove forward decls; no longer needed
19277 now that we use prototypes.
19280 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
19281 (re_compile_fastmap_iter, regcomp, regerror, regfree):
19282 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
19283 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
19284 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
19285 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
19286 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
19287 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
19288 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
19289 (build_range_exp, build_collating_symbol, parse_bracket_exp):
19290 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
19291 (build_charclass, build_charclass_op, fetch_number, create_tree):
19292 (create_token_tree, mark_opt_subexp, duplicate_tree):
19293 Use prototypes rather than old-style definitions.
19295 * lib/regex_internal.c:
19296 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
19297 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
19298 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19299 (re_string_reconstruct, re_string_peek_byte_case):
19300 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
19301 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19302 (re_node_set_init_copy, re_node_set_add_intersect):
19303 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19304 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19305 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19306 (re_acquire_state, re_acquire_state_context, register_state):
19307 (create_ci_newstate, create_cd_newstate, free_state):
19309 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
19311 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
19312 (re_search_internal, prune_impossible_nodes):
19313 (acquire_init_state_context, check_matching, static):
19314 (check_halt_node_context, check_halt_state_context, proceed_next_node):
19315 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
19316 (update_regs, sift_states_backward, build_sifted_states):
19317 (clean_state_log_if_needed, merge_state_array):
19318 (update_cur_sifted_state, add_epsilon_src_nodes):
19319 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
19320 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
19321 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
19322 (find_recover_state, check_subexp_matching_top, transit_state_mb):
19323 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
19324 (check_arrival, check_arrival_add_next_nodes):
19325 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19326 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19327 (check_node_accept_bytes, check_node_accept, extend_buffers):
19328 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
19329 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
19333 * lib/regex_internal.h:
19334 (re_string_allocate, re_string_construct, re_string_reconstruct):
19335 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
19336 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
19337 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
19338 (re_string_context_at, re_string_peek_byte_case):
19339 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
19340 is defined, since we now use prototypes always.
19342 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
19343 C89 or better. All uses removed.
19345 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19347 * config/srclist.txt: Add glibc bugs 1220-1227.
19349 2005-08-20 Jim Meyering <jim@meyering.net>
19351 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
19352 of unused local, dfa.
19354 2005-08-20 Bruno Haible <bruno@clisp.org>
19356 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
19358 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19360 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
19361 (re_node_set_insert_last, re_dfa_add_node):
19362 Rename local variables to avoid GCC shadowing warnings.
19364 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19366 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
19367 [defined lint]: Suppress bogus uninitialized-variable warnings.
19369 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
19370 and let the caller return REG_ESPACE if out of space. This
19371 removes an uninitialied-variable warning with GCC 4.0.1, and also
19372 avoids taking the address of a local variable. All callers
19375 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19377 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
19378 $LIBCSRC/posix/regexec.c.
19379 Add glibc bug 1217 for regcomp.c.
19381 2005-08-19 Jim Meyering <jim@meyering.net>
19383 * lib/regexec.c (proceed_next_node): Redo local variables to
19384 avoid GCC shadowing warnings.
19386 2005-08-18 Bruno Haible <bruno@clisp.org>
19388 * lib/strstr.c (strstr): Fix return value in multibyte case.
19389 * lib/strcasestr.c (strcasestr): Likewise.
19391 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
19393 * lib/regex.h: Remove useless space-before-tab. From coreutils.
19395 2005-08-17 Jim Meyering <jim@meyering.net>
19397 Make the %s format (seconds since the epoch) work for a negative
19398 number and when used with a zero-padded field width, e.g. %015s.
19400 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
19401 label so that it precedes the code to set `digits'. Otherwise,
19402 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
19403 print `00-22'. Now, it prints `-0022', as it should.
19405 2005-08-17 Bruno Haible <bruno@clisp.org>
19407 * modules/strstr (Files): Add m4/mbrtowc.m4.
19408 (Depends-on): Add mbuiter.
19410 2005-08-17 Bruno Haible <bruno@clisp.org>
19412 * modules/strcasestr: New file.
19413 * MODULES.html.sh (String handling, based on ANSI C 89): Add
19416 2005-08-17 Bruno Haible <bruno@clisp.org>
19418 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
19420 2005-08-17 Bruno Haible <bruno@clisp.org>
19422 * modules/mbuiter: New file.
19423 * MODULES.html.sh (Extended multibyte and wide character utilities):
19426 2005-08-17 Bruno Haible <bruno@clisp.org>
19428 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
19429 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
19431 2005-08-17 Bruno Haible <bruno@clisp.org>
19433 * m4/strcasestr.m4: New file.
19435 2005-08-17 Bruno Haible <bruno@clisp.org>
19437 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
19438 * lib/strstr.c: Completely rewritten, with multibyte locale support.
19440 2005-08-17 Bruno Haible <bruno@clisp.org>
19442 * lib/strcasestr.h: New file.
19443 * lib/strcasestr.c: New file.
19445 2005-08-17 Bruno Haible <bruno@clisp.org>
19447 * lib/strcasecmp.c: Use mbuiter.h.
19449 2005-08-17 Bruno Haible <bruno@clisp.org>
19451 * lib/mbuiter.h: New file.
19453 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
19455 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
19456 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
19457 and gl_GETOPT are both invoked via different paths (as happens
19458 with GNU tar CVS because it uses both argp and getopt), the former
19461 2005-08-16 Bruno Haible <bruno@clisp.org>
19463 * modules/tls: New file.
19464 * MODULES.html.sh (Multithreading): Add tls.
19466 2005-08-16 Bruno Haible <bruno@clisp.org>
19468 * modules/strnlen1: New file.
19469 * MODULES.html.sh (String handling): Add strnlen1.
19471 2005-08-16 Bruno Haible <bruno@clisp.org>
19473 * modules/strcase (Files): Add m4/mbrtowc.m4.
19474 (Depends-on): Add strnlen1, mbchar.
19476 2005-08-16 Bruno Haible <bruno@clisp.org>
19478 * modules/mbiter: New file.
19479 * MODULES.html.sh (Extended multibyte and wide character utilities):
19482 2005-08-16 Bruno Haible <bruno@clisp.org>
19484 * modules/mbfile: New file.
19485 * MODULES.html.sh (Extended multibyte and wide character utilities):
19488 2005-08-16 Bruno Haible <bruno@clisp.org>
19490 * modules/mbchar: New file.
19491 * MODULES.html.sh (Extended multibyte and wide character utilities):
19494 2005-08-16 Bruno Haible <bruno@clisp.org>
19496 * m4/tls.m4: New file, from GNU gettext.
19498 2005-08-16 Bruno Haible <bruno@clisp.org>
19500 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
19502 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
19504 2005-08-16 Bruno Haible <bruno@clisp.org>
19506 * m4/mbiter.m4: New file.
19508 2005-08-16 Bruno Haible <bruno@clisp.org>
19510 * m4/mbfile.m4: New file.
19512 2005-08-16 Bruno Haible <bruno@clisp.org>
19514 * m4/mbchar.m4: New file.
19516 2005-08-16 Bruno Haible <bruno@clisp.org>
19518 * lib/tls.h: New file, from GNU gettext.
19519 * lib/tls.c: New file, from GNU gettext.
19521 2005-08-16 Bruno Haible <bruno@clisp.org>
19523 * lib/strnlen1.h: New file.
19524 * lib/strnlen1.c: New file.
19526 2005-08-16 Bruno Haible <bruno@clisp.org>
19528 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
19529 (mbi_init): Update.
19530 (mbi_avail, mbi_advance): Let the iteration end before the terminating
19531 NUL byte, not after it.
19533 2005-08-16 Bruno Haible <bruno@clisp.org>
19535 * lib/strcase.h (strcasecmp): Add note in comments.
19536 * lib/strncasecmp.c: Use code from strcasecmp.c.
19537 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
19538 (strcasecmp): Work correctly in multibyte locales.
19540 2005-08-16 Bruno Haible <bruno@clisp.org>
19542 * lib/mbiter.h: New file.
19544 2005-08-16 Bruno Haible <bruno@clisp.org>
19546 * lib/mbfile.h: New file.
19548 2005-08-16 Bruno Haible <bruno@clisp.org>
19550 * lib/mbchar.h: New file.
19551 * lib/mbchar.c: New file.
19553 2005-08-16 Bruno Haible <bruno@clisp.org>
19555 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
19556 the valid ones. Makes the comparison operations transitive:
19557 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
19558 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
19560 2005-08-15 Simon Josefsson <jas@extundo.com>
19562 * modules/ssize_t (License): Change to 'unlimited'.
19564 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
19566 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
19568 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
19569 Add comments for each pending glibc patch.
19571 2005-08-15 Bruno Haible <bruno@clisp.org>
19573 * lib/regex.h (__restrict_arr): Don't define to __restrict if
19574 __cplusplus is defined.
19576 2005-08-14 Jim Meyering <jim@meyering.net>
19578 Sync from coreutils.
19580 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
19581 Use the hash-table-based cycle-detection code not just when
19582 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
19583 Reported by James Youngman in
19584 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
19585 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
19586 FTS_TIGHT_CYCLE_CHECK.
19587 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
19588 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
19590 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
19591 * lib/fts.c (fd_safer): Remove decl.
19592 Include fcntl--.h rather than unistd-safer.h
19593 (fts_safe_changedir): Don't call fd_safer; no longer needed
19594 now that we include fcntl--.h.
19596 2005-08-12 Simon Josefsson <jas@extundo.com>
19598 * modules/getndelim2: Use ssize_t module.
19599 * modules/getnline: Likewise.
19600 * modules/safe-read: Likewise.
19601 * modules/xreadlink: Likewise.
19603 * modules/ssize_t: New file.
19605 2005-08-12 Simon Josefsson <jas@extundo.com>
19607 * m4/readline.m4: Look for termcap, curses or ncurses if required.
19609 2005-08-12 Simon Josefsson <jas@extundo.com>
19611 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19614 2005-08-12 Simon Josefsson <jas@extundo.com>
19616 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
19617 readline, getdelim and check_version.
19618 (Support for systems lacking ISO C 99: Sizes of integer types):
19621 2005-08-12 Bruno Haible <bruno@clisp.org>
19623 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
19625 2005-08-11 Simon Josefsson <jas@extundo.com>
19627 * modules/readline: New file.
19629 * modules/strnlen (Files): Add strnlen.h.
19631 2005-08-11 Simon Josefsson <jas@extundo.com>
19633 * m4/readline.m4: New file.
19635 2005-08-11 Simon Josefsson <jas@extundo.com>
19637 * lib/readline.h, readline.c: New file.
19639 2005-08-11 Simon Josefsson <jas@extundo.com>
19641 * doc/gnulib.texi (Initial import, Finishing touches): Mention
19644 2005-08-11 Bruno Haible <bruno@clisp.org>
19646 * lib/strnlen.h (strnlen): Change parameter name to match comment.
19648 2005-08-10 Stepan Kasal <kasal@ucw.cz>
19650 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
19652 2005-08-10 Simon Josefsson <jas@extundo.com>
19654 * tests/test-iconvme.c: New file.
19656 2005-08-10 Simon Josefsson <jas@extundo.com>
19658 * m4/strnlen.m4: New file.
19660 * m4/strndup.m4: Don't check for strnlen declaration, done in
19663 2005-08-10 Simon Josefsson <jas@extundo.com>
19665 * lib/strndup.c: Use strnlen.h.
19667 * lib/strnlen.h: New file.
19669 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
19673 2005-08-02 Simon Josefsson <jas@extundo.com>
19675 * modules/readline: New file.
19677 2005-08-02 Simon Josefsson <jas@extundo.com>
19679 * modules/getdelim: New file.
19681 * modules/getline: Rewrite, don't use getndelim2.
19683 2005-08-02 Simon Josefsson <jas@extundo.com>
19685 * m4/getline.m4: Separate out getdelim stuff into separate module.
19687 * m4/getdelim.m4: New file.
19689 2005-08-02 Simon Josefsson <jas@extundo.com>
19691 * lib/getline.h, getline.c: Rewrite.
19693 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
19695 2005-07-31 Bruno Haible <bruno@clisp.org>
19697 * lib/lock.h (gl_lock_initializer): New macro.
19698 (gl_lock_define_initialized): Use it.
19699 (gl_rwlock_initializer): New macro.
19700 (gl_rwlock_define_initialized): Use it.
19701 (gl_recursive_lock_initializer): New macro.
19702 (gl_recursive_lock_define_initialized): Use it.
19704 2005-07-30 Karl Berry <karl@gnu.org>
19706 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
19707 Report from Ben Pfaff, regarding getopt.
19709 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
19711 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
19713 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19714 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
19715 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19716 (gl_GETOPT): Use the new macros. Most of the implementation
19717 is moved to the new macros. This is for programs like Emacs
19718 that don't want all the functionality of gl_GETOPT.
19720 2005-07-26 Bruno Haible <bruno@clisp.org>
19722 * m4/lock.m4: Update from GNU gettext.
19724 2005-07-26 Bruno Haible <bruno@clisp.org>
19726 * lib/lock.h: Update from GNU gettext.
19727 * lib/lock.c: Update from GNU gettext.
19729 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
19731 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19732 obsolescent AC_TRY_RUN. Include the default includes files, for
19735 2005-07-24 Bruno Haible <bruno@clisp.org>
19737 * modules/visibility: New file.
19738 * MODULES.html.sh (Misc): Add visibility.
19740 2005-07-24 Bruno Haible <bruno@clisp.org>
19742 * m4/visibility.m4: New file.
19744 2005-07-24 Bruno Haible <bruno@clisp.org>
19746 * doc/visibility.texi: New file.
19748 2005-07-22 Bruno Haible <bruno@clisp.org>
19750 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19751 $(ALLOCA_H), redundant through BUILT_SOURCES.
19752 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19753 redundant through BUILT_SOURCES.
19754 * modules/byteswap (Makefile.am): Remove explicit dependency on
19755 $(BYTESWAP_H), redundant through BUILT_SOURCES.
19756 * modules/fnmatch (Makefile.am): Remove explicit dependency on
19757 $(FNMATCH_H), redundant through BUILT_SOURCES.
19758 * modules/getopt (Makefile.am): Remove explicit dependency on
19759 $(GETOPT_H), redundant through BUILT_SOURCES.
19760 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19761 redundant through BUILT_SOURCES.
19762 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19763 redundant through BUILT_SOURCES.
19764 * modules/stdbool (Makefile.am): Remove explicit dependency on
19765 $(STDBOOL_H), redundant through BUILT_SOURCES.
19766 * modules/stdint (Makefile.am): Remove explicit dependency on
19767 $(STDINT_H), redundant through BUILT_SOURCES.
19768 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19769 Remove explicit dependency on $(SYSEXITS_H).
19770 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19772 2005-07-18 Simon Josefsson <jas@extundo.com>
19774 * lib/check-version.c (check_version): Accept identical versions too.
19776 2005-07-18 Bruno Haible <bruno@clisp.org>
19778 * modules/lock: New file.
19779 * MODULES.html.sh (Multithreading): New section.
19781 2005-07-18 Bruno Haible <bruno@clisp.org>
19783 * m4/lock.m4: New file, from GNU gettext.
19785 2005-07-18 Bruno Haible <bruno@clisp.org>
19787 * lib/lock.h: New file, from GNU gettext.
19788 * lib/lock.c: New file, from GNU gettext.
19790 2005-07-18 Bruno Haible <bruno@clisp.org>
19792 * lib/lock.h (gl_once_t): New type.
19793 (gl_once_define, gl_once): New macros.
19794 * lib/lock.c (fresh_once): New variable.
19795 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
19798 2005-07-16 Simon Josefsson <jas@extundo.com>
19800 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
19801 workaround, suggested by Bruno.
19803 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19805 * modules/xalloc (Depends-on): Add xalloc-die.
19806 * modules/xvasprintf (Depends-on): Add xalloc-die.
19808 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19810 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
19811 with a minor change.
19813 2005-07-15 Bruno Haible <bruno@clisp.org>
19815 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
19816 When using lib/poll.c, define poll as rpl_poll.
19818 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
19820 * modules/argp (Depends-on): Remove unlocked-io.
19822 2005-07-14 Derek Price <derek@ximbiot.com>
19824 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
19825 for glob symlink bug.
19827 2005-07-14 Bruno Haible <bruno@clisp.org>
19829 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
19830 Instead, test for *_unlocked function declarations directly.
19832 2005-07-11 Simon Josefsson <jas@extundo.com>
19834 * modules/size_max: New file.
19836 * modules/xsize: Depend on size_max module for size_max.m4.
19838 2005-07-11 Simon Josefsson <jas@extundo.com>
19840 * lib/size_max.h: New file.
19842 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
19844 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
19845 copyright symbol and the year.
19846 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
19847 (version_etc_va): Use parameterized copyright notice.
19848 Reword to conform to the current GNU coding standards.
19850 2005-07-11 Karl Berry <karl@gnu.org>
19852 * doc/gnulib.texi (Quoting): new node.
19853 (Initial import): more info, from Patrice.
19855 2005-07-11 Bruno Haible <bruno@clisp.org>
19857 * gnulib-tool (func_usage): Document option --avoid.
19858 (Command line options): Handle --avoid.
19859 (func_acceptable): New function.
19860 (func_modules_transitive_closure): Use it.
19862 2005-07-11 Bruno Haible <bruno@clisp.org>
19864 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
19865 Reported by Jim Meyering.
19867 2005-07-10 Bruno Haible <bruno@clisp.org>
19869 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
19870 Needed when size_t is smaller than 'unsigned int'.
19871 Reported by Paul Eggert.
19873 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19875 * modules/argp (Depends-on): Add unlocked-io
19877 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19879 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
19882 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
19884 * config/srclist.txt: Comment out regcomp.c, since we have a porting
19887 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
19888 and Paul Eggert <eggert@cs.ucla.edu>
19890 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
19891 in wint_t, not wchar_t. Remove now-unnecessary cast.
19893 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19895 * modules/regex (Files): Add lib/regex_internal.c,
19896 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
19897 (Depends-on): Add extensions.
19898 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
19900 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19902 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
19904 * m4/same.m4 (gl_SAME): Likewise.
19905 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
19907 * m4/regex.m4: Adjust to new libc regex implementation.
19908 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
19909 all the .c and .h parts of (the new) regex.
19910 Quote the m4 stuff better.
19911 Check for RE_ICASE bug of old gnulib.
19912 Check for REG_STARTEND of recent libc.
19913 Rename local variables from jm_* to gl_*.
19914 Quote operand of "test -f".
19915 Say "recent enough" version of libc, not "version 2".
19916 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
19917 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
19918 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
19919 Remove check for btowc, isascii.
19920 Require AM_LANGINFO_CODESET.
19922 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19924 * lib/regex.c, regex.h: Sync from libc.
19925 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
19927 New files, synced from libc, except that regex_internal.h
19928 currently has a small porting fix.
19930 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19932 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
19933 regex_internal.c, regexec.c.
19934 Add regex_internal.h too, but as a comment, since the libc version
19935 is currently broken in gnulib mode.
19937 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
19939 Support programs like Emacs that use gnulib but not gettext.
19940 * MODULES.html.sh (Internationalization functions): Add gettext-h.
19941 * modules/gettext-h: New file.
19942 * modules/gettext (Files): Remove lib/gettext.h.
19943 (Depends-on): Add gettext-h.
19944 (Makefile.am): Remove lib_SOURCES.
19945 * modules/argmatch, modules/c-stack, modules/closeout:
19946 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
19947 * modules/execute, modules/file-type, modules/getaddrinfo:
19948 * modules/getopt, modules/human, modules/javacomp:
19949 * modules/javaexec, modules/mkdir-p, modules/obstack:
19950 * modules/openat, modules/pagealign_alloc, modules/pipe:
19951 * modules/quotearg, modules/regex, modules/rpmatch:
19952 * modules/unicodeio, modules/userspec, modules/version-etc:
19953 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
19955 Depend on gettext-h, not gettext.
19957 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
19959 * gnulib-tool (func_import): Add support for 'public domain' license.
19960 * modules/alloca, modules/atexit, modules/memmove:
19961 Now public domain, not GPL.
19962 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
19963 * modules/realloc, modules/strerror, modules/strtod:
19966 2005-07-05 Bruno Haible <bruno@clisp.org>
19968 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
19969 autoconf CVS. Needed for mingw.
19971 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19973 Remove the dependency of the strftime module on the tzset module.
19974 * modules/strftime (Depends-on): Remove dependency on tzset.
19976 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19978 Remove the dependency of the strftime module on the tzset module.
19979 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
19980 gl_FUNC_TZSET_CLOBBER.
19982 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19984 Remove the dependency of the strftime module on the tzset module.
19985 * lib/strftime.c (my_strftime)
19986 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
19987 Copy the input structure, to work around some of the bug with
19988 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
19989 Solaris releases, you should also use the tzset module, but we won't
19990 require it as a dependency any more since we don't want LGPLed code
19991 to depend on GPLed code.
19993 2005-07-02 Jim Meyering <jim@meyering.net>
19995 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
19996 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
19997 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
19998 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
20000 2005-07-02 Jim Meyering <jim@meyering.net>
20002 * lib/backupfile.c (backup_args): Change a `0' to NULL.
20004 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
20006 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
20007 declares only 'struct timespec;' (!).
20009 2005-07-01 Jim Meyering <jim@meyering.net>
20011 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
20012 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
20013 * lib/save-cwd.c, tempname.c:
20014 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
20015 and don't include <sys/file.h>).
20017 2005-06-29 Jim Meyering <jim@meyering.net>
20019 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
20020 type name. Use the variable name instead.
20021 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
20024 2005-06-28 Simon Josefsson <jas@extundo.com>
20026 * modules/check-version (Files): Add check-version.m4.
20028 2005-06-28 Simon Josefsson <jas@extundo.com>
20030 * m4/check-version.m4: New file, suggested by Jim Meyering
20031 <jim@meyering.net>.
20033 2005-06-28 Simon Josefsson <jas@extundo.com>
20035 * lib/check-version.h, lib/check-version.c: New files.
20037 2005-06-28 Simon Josefsson <jas@extundo.com>
20039 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
20040 collision with global variable. Better indentation. Don't
20041 increment buffer pointer beyond buffer end. Based on comments
20042 from Paul Eggert <eggert@cs.ucla.edu>.
20044 * lib/base64.h: Indent.
20046 2005-06-28 Simon Josefsson <jas@extundo.com>
20048 * doc/gnulib.texi (Library version handling): New section.
20050 2005-06-28 Jim Meyering <jim@meyering.net>
20052 * check-module (find_included_lib_files): Hard-code another
20053 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
20054 but modules/fts-lgpl (correctly) does not list those files.
20056 * modules/canonicalize (Files): Add lib/pathmax.h.
20058 2005-06-25 Simon Josefsson <jas@extundo.com>
20060 * modules/check-version: New file.
20062 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
20064 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
20065 initializer of struct addrinfo, as an indication that we don't
20066 care how many members the structure has.
20068 2005-06-24 Derek Price <derek@ximbiot.com>
20069 and Bruno Haible <bruno@clisp.org>
20071 Remove stat module & update lstat.
20072 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
20073 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20074 * m4/stat.m4: Remove this file.
20076 2005-06-24 Derek Price <derek@ximbiot.com>
20077 and Bruno Haible <bruno@clisp.org>
20079 Remove stat module & update lstat.
20080 * lib/stat.c: Remove this file...
20081 (slash_aware_lstat): ...moving this content and its support...
20082 * lib/lstat.c (rpl_lstat): ...into here.
20083 * lib/lstat.h: New file.
20085 2005-06-24 Derek Price <derek@ximbiot.com>
20086 and Bruno Haible <bruno@clisp.org>
20088 Remove stat module & update lstat.
20089 * config/srclist.txt (libc sources): Remove stat.
20091 2005-06-24 Derek Price <derek@ximbiot.com>
20092 and Bruno Haible <bruno@clisp.org>
20094 Remove stat module & update lstat.
20095 * MODULES.html.sh (stat): Remove.
20096 * MODULES.html: Regenerated.
20097 * modules/lstat (Description): Correct function name.
20098 (Files): Add "lstat.h".
20099 (Depends-on): Remove stat, add xalloc, stat-macros.
20100 * modules/stat: Remove this file.
20101 (Include): Add "lstat.h", remove <sys/stat.h>.
20103 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
20105 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
20106 (ranged_convert): Don't save conversion in a temporary struct.
20107 This causes a warning with GCC 4.0.0, and anyway in the typical
20108 case it's not worth the extra 100 bytes or so of code.
20109 (ranged_convert, __mktime_internal): When calling a function via a
20110 pointer P, use P () rather than (*P) (), as we now assume C89 or
20113 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
20115 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
20116 "who -r" failed to give output. Problem reported by Tim Waugh.
20118 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
20119 (xcalloc): Use it to avoid needless tests.
20120 Problem reported by Jim Meyering.
20122 2005-06-20 Derek Price <derek@ximbiot.com>
20124 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
20125 unnecessary for Autoconfs > 2.59c.
20127 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20129 * lib/argp.h (__option_is_short): Check upper limit of
20130 __key. Isprint() requires its argument to have the value
20131 of an unsigned char or EOF.
20133 2005-06-16 Jim Meyering <jim@meyering.net>
20135 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
20136 when either N or S is zero.
20138 2005-06-16 Derek Price <derek@ximbiot.com>
20140 * m4/bison.m4: Declare YACC & YFLAGS precious.
20142 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
20144 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
20145 multibyte string or pattern, fall back on unibyte matching.
20146 Problem reported by James Youngman.
20148 2005-06-08 Bruno Haible <bruno@clisp.org>
20150 * modules/csharpcomp: New file.
20151 * MODULES.html.sh (C#): Add csharpcomp.
20153 2005-06-08 Bruno Haible <bruno@clisp.org>
20155 * m4/csharpcomp.m4: New file, from GNU gettext.
20157 2005-06-08 Bruno Haible <bruno@clisp.org>
20159 * lib/csharpcomp.h: New file, from GNU gettext.
20160 * lib/csharpcomp.c: New file, from GNU gettext.
20161 * lib/csharpcomp.sh.in: New file, from GNU gettext.
20163 2005-06-08 Bruno Haible <bruno@clisp.org>
20165 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
20168 2005-06-07 Derek Price <derek@ximbiot.com>
20171 * lib/glob_.h: Indent nested #ifdef.
20173 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20175 Sync from coreutils.
20176 Use "file name" when talking about file names, instead of "filename"
20177 or "path", as per the GNU coding standards.
20178 * lib/mkdir-p.c: Renamed from makepath.c.
20179 (make_dir_parents): Renamed from make_path. All callers changed.
20180 * lib/mkdir-p.h: Likewise. All includers changed.
20181 * lib/filenamecat.c: Renamed from path-concat.c.
20182 (file_name_concat): Renamed from path_concat. All callers changed.
20183 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
20184 * lib/filenamecat.h: Likewise. All includers changed.
20185 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
20186 in comments or local variable names.
20187 * lib/basename.c: Likewise.
20188 * lib/canonicalize.c, canonicalize.h: Likewise.
20189 * lib/dirname.c, dirname.h: Likewise.
20190 * lib/euidaccess.c: Likewise.
20191 * lib/exclude.c: Likewise
20192 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
20193 * lib/fsusage.c, fsuage.h: Likewise.
20194 * lib/fts.c, fts_.h: Likewise.
20195 * lib/getcwd.c: Likewise.
20196 * lib/getloadavg.c: Likewise.
20197 * lib/mkstemp.c: Likewise.
20198 * lib/mountlist.c, mountlist.h: Likewise.
20199 * lib/openat.c, openat.h: Likewise.
20200 * lib/readlink-stub.c: Likewise.
20201 * lib/readutmp.c, readutmp.h: Likewise.
20202 * lib/rename.c: Likewise.
20203 * lib/rmdir.c: Likewise.
20204 * lib/same.c: Likewise.
20205 * lib/savedir.c: Likewise.
20206 * lib/stripslash.c: Likewise.
20207 * lib/tempname.c: Likewise.
20208 * lib/xreadlink.c: Likewise.
20209 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
20211 * lib/exclude.h: Likewise.
20213 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
20214 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20215 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
20216 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20217 * lib/pathmax.h: Include <limits.h> unconditionally, since other
20218 files have been getting away with it for years (MORE/BSD 4.3
20220 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
20221 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20223 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
20224 Define to 256, not 255, as per modern POSIX.
20226 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20228 Sync from coreutils.
20229 Use "file name" when talking about file names, instead of "filename"
20230 or "path", as per the GNU coding standards.
20231 * MODULES.html.sh: mkdir-p renamed from makepath.
20232 filenamecat renamed from path-concat.
20233 * modules/filenamecat: Renamed from modules/path-concat.
20234 (Files): filenamecat.h and filenamecat.c renamed from
20235 path-concat.h and path-concat.c.
20236 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
20237 (Include): filenamecat.h, not path-concat.h.
20238 * modules/mkdir-p: Renamed from modules/makepath.
20239 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
20241 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
20242 (Include): mkdir-p.h, not makepath.h.
20244 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20246 Sync from coreutils.
20247 * m4/mkdir-p.m4: Renamed from makepath.m4.
20248 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
20249 Rename files from makepath.c to mkdir-p.c, and from
20250 makepath.h to mkdir-p.h.
20251 * m4/filenamecat.m4: Renamed from path-concat.m4.
20252 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
20253 Rename files from path-concat.c to filenamecat.c,
20254 and from path-concat.h to filenamecat.h.
20255 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
20256 "file name" in local variables or comments.
20257 * m4/rename.m4: Likewise.
20259 2005-06-01 Bruno Haible <bruno@clisp.org>
20261 * modules/csharpexec: New file.
20262 * MODULES.html.sh (C#): New section.
20264 2005-06-01 Bruno Haible <bruno@clisp.org>
20266 * m4/csharp.m4: New file, from GNU gettext.
20267 * m4/csharpexec.m4: New file, from GNU gettext.
20269 2005-06-01 Bruno Haible <bruno@clisp.org>
20271 * lib/csharpexec.h: New file, from GNU gettext.
20272 * lib/csharpexec.c: New file, from GNU gettext.
20273 * lib/csharpexec.sh.in: New file, from GNU gettext.
20275 2005-05-31 Derek Price <derek@ximbiot.com>
20276 Paul Eggert <eggert@cs.ucla.edu>
20279 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20281 2005-05-31 Derek Price <derek@ximbiot.com>
20282 Paul Eggert <eggert@cs.ucla.edu>
20285 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20287 2005-05-29 Derek Price <derek@ximbiot.com>
20289 * config/srclist.txt (glob_.h, glob.c): Add these files.
20291 2005-05-29 Derek Price <derek@ximbiot.com>
20293 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
20294 * modules/glob: New file.
20295 * modules/getlogin_r: Add link to POSIX spec in description.
20297 2005-05-29 Derek Price <derek@ximbiot.com>
20298 Paul Eggert <eggert@cs.ucla.edu>
20300 * m4/glob.m4: New file.
20302 2005-05-29 Derek Price <derek@ximbiot.com>
20303 Paul Eggert <eggert@cs.ucla.edu>
20305 * lib/glob_.h, lib/glob.c: New files.
20307 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20309 * modules/fts (Files): Remove m4/inttypes-pri.m4.
20310 * modules/fts-lgpl (Depends-on): Remove gettext.
20312 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20314 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
20315 and don't require gt_INTTYPES_PRI.
20317 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20319 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
20321 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
20322 the configuration hassle isn't worth it.
20323 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
20324 (LONGEST_MODIFIER, PRIuMAX): Remove.
20326 2005-05-27 Bruno Haible <bruno@clisp.org>
20328 * lib/getlogin_r.h: Remove second include of <stddef.h>.
20330 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
20332 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
20333 _POSIX_PTHREAD_SEMANTICS for Solaris.
20335 2005-05-25 Derek Price <derek@ximbiot.com>
20337 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
20339 2005-05-25 Derek Price <derek@ximbiot.com>
20340 Paul Eggert <eggert@cs.ucla.edu>
20342 * modules/getlogin_r, m4/getlogin_r.m4: New files.
20343 * lib/getlogin_r.c, getlogin_r.h: New files.
20345 2005-05-25 Bruno Haible <bruno@clisp.org>
20346 Derek Price <derek@ximbiot.com>
20348 * lib/getlogin_r.h: Simplify API documentation.
20350 2005-05-23 Derek Price <derek@ximbiot.com>
20352 * modules/minmax (Files): Add m4/minmax.m4.
20353 (configure.ac): Add gl_MINMAX.
20355 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
20357 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
20358 so that unistd-safer.h (GPL'ed code) need not be included.
20360 2005-05-22 Bruno Haible <bruno@clisp.org>
20362 * m4/minmax.m4: New file.
20363 Based on a patch by Derek Price <derek@ximbiot.com>.
20365 2005-05-22 Bruno Haible <bruno@clisp.org>
20367 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
20368 (INT64_MIN): Fix definition.
20369 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20371 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
20372 NEED_SIGNED_INT_TYPES.
20374 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
20375 HAVE_SYSTEM_INTTYPES.
20377 2005-05-22 Bruno Haible <bruno@clisp.org>
20379 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
20380 Also include <sys/param.h> if it defines MIN, MAX.
20381 Based on a patch by Derek Price <derek@ximbiot.com>.
20383 2005-05-21 Jim Meyering <jim@meyering.net>
20385 * modules/fts (Files): Add m4/inttypes-pri.m4.
20386 (Depends-on): Add lstat and remove gettext. Alphabetize.
20388 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20391 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
20392 (setup_dir, free_dir): New functions.
20393 (enter_dir, leave_dir): Define trivial
20394 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
20395 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
20396 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
20397 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
20398 Move to fts-cycle.c.
20399 (fts_open): Use setup_dir.
20400 (fts_close): Use free_dir.
20401 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
20402 This adds a label and some gotos, but the alternatives were messier.
20403 Check for memory allocation failure when entering a dir.
20404 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
20405 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
20406 (FTS): New member fts_cycle, that is a union that contains the
20407 old active_dir_ht and cycle_state. All uses changed to mention
20408 fts_cycle.ht and fts_cycle.state.
20409 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
20410 fts.c, with the following changes:
20411 (setup_dir, free_dir): New functions.
20412 (enter_dir): Now returns bool. Return true if successful, false
20413 if memory exhausted. All callers changed.
20414 Do not bother partly cleaning up on
20415 memory allocation failure; that is free_dir's job.
20416 However, free ad if hash_insert fails, to avoid memory leak.
20417 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
20418 fts->fts_options to see which union member to use.
20420 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20422 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
20423 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
20425 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20427 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
20429 2005-05-20 Jim Meyering <jim@meyering.net>
20431 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
20432 Now a macro, to pacify GCC.
20434 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
20436 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
20439 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
20441 * lib/chown.c (rpl_chown): Return -1 on failure.
20443 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
20445 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
20446 Don't check for stddef.h.
20447 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
20448 don't use its results.
20449 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
20450 since we include them unconditionally. Don't require
20451 AM_STDBOOL_H, since stdbool is a prerequisite.
20452 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
20453 since we assume C89 or better.
20454 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
20455 as we don't use their results.
20456 Don't check for fchdir, memmove, memset, strrchr, as we use
20457 them unconditionally.
20458 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
20459 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
20461 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
20463 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
20464 Include <stddef.h> unconditionally, since we assume C89 now.
20465 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
20466 * lib/fts.c: Include fts_.h first, to check interface.
20467 Do not include intprops.h; no longer needed.
20468 Include cycle-check.h and hash.h, since fts_.h no longer does.
20469 Remove unnecessary casts of closedir to void.
20470 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
20471 decide whether to decrement nlinks.
20472 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
20473 (FTS): Use struct hash_table * instead of Hash_table, so that
20474 we no longer need to include hash.h here.
20476 2005-05-18 Jim Meyering <jim@meyering.net>
20478 * modules/dirfd (License): Change to LGPL. Most of the code
20479 is already in the public domain.
20481 2005-05-18 Jim Meyering <jim@meyering.net>
20483 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
20484 Reported by Yoann Vandoorselaere.
20486 2005-05-17 Jim Meyering <jim@meyering.net>
20488 * m4/fts.m4: New file, from coreutils.
20490 2005-05-17 Jim Meyering <jim@meyering.net>
20492 * lib/fts.c, lib/fts_.h: New files, from coreutils.
20494 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20496 Sync from coreutils.
20497 * m4/unlinkdir.m4: New file.
20499 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20501 Sync from coreutils.
20502 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
20503 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
20504 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
20505 White space changes only.
20506 * lib/makepath.c (make_path): Port to hosts where leading "//" is
20508 * lib/yesno.c: Include getline.h, not ctype.h.
20509 (yesno): Don't remove leading white space; POSIX doesn't allow it.
20510 Use getline to remove arbitrary restriction on response length.
20512 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20514 * config/srclist-update: Spell out "Street" in FSF postal
20515 mail address; this is the style the FSF seems to prefer.
20517 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
20518 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
20519 this updates FSF postal mail address.
20521 Sync from coreutils.
20522 * modules/unlinkdir: New file.
20523 * modules/yesno (Depends-on): Add getline.
20524 * MODULES.html.sh (File system functions): Add unlinkdir.
20526 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20528 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
20530 Change the initial comment to refer to GPL, not LGPL.
20531 gnulib-tool will change it to LGPL as needed.
20533 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
20534 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
20535 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
20536 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
20537 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
20538 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
20539 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
20540 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
20541 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
20542 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
20543 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
20544 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
20545 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
20546 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
20547 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
20548 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
20549 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
20550 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
20551 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
20552 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
20553 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
20554 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
20555 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
20556 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
20557 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
20558 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
20559 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
20560 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
20561 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
20562 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
20563 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
20564 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
20565 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
20566 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
20567 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
20568 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
20569 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
20570 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
20571 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
20572 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
20573 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
20574 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
20575 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
20576 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
20577 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
20578 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
20579 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
20580 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
20581 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
20582 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
20583 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20584 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
20585 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
20586 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
20587 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
20588 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
20589 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
20590 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
20591 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
20592 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
20593 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
20594 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
20595 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
20596 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
20597 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
20598 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
20599 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
20600 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
20601 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
20602 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
20603 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
20604 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
20605 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
20606 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
20607 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
20608 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
20609 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
20610 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
20611 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
20612 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
20613 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
20614 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
20615 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
20616 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
20617 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
20618 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
20619 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
20620 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
20621 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
20622 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
20623 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
20624 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
20625 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
20626 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
20627 lib/yesno.c, lib/yesno.h:
20628 Update FSF postal mail address.
20630 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20632 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
20633 tests/test-memmem.c, tests/test-stpncpy.c:
20634 Update FSF postal mail address.
20636 2005-05-13 Bruno Haible <bruno@clisp.org>
20638 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
20639 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
20640 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
20641 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
20642 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
20643 Add support for 64-bit integers in the MSVC compiler.
20645 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20647 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
20649 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
20651 * gnulib-tool (func_import): Sort and uniquify recommended includes.
20653 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
20655 * doc/getdate.texi (General date syntax): Don't say that date
20656 date --iso-8601=ns generates acceptable dates; it doesn't yet.
20657 Problem reported by Nic Ferrier.
20659 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20661 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
20662 specified in ai_socktype. Fix invalid ai_protocol
20663 check. ai_protocol is usually set to 0 or depending on
20664 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
20665 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
20666 ai_socktype / ai_protocol in the returned addrinfo structure.
20668 2005-05-10 Simon Josefsson <jas@extundo.com>
20670 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
20671 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20673 2005-05-10 Karl Berry <karl@gnu.org>
20675 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
20676 (from http://www.gnu.org/licenses).
20677 * doc/COPYING.LIB: also rename to COPYING.LESSER.
20678 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
20681 2005-05-10 Karl Berry <karl@gnu.org>
20683 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
20684 (COPYING.DOC): remove.
20686 * config/srclist-update: new FSF address.
20688 2005-05-10 Derek Price <derek@ximbiot.com>
20690 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
20693 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20694 Bruno Haible <bruno@clisp.org>
20696 * modules/inet_ntop: New file.
20697 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20700 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20701 Bruno Haible <bruno@clisp.org>
20703 * m4/inet_ntop.m4: New file.
20705 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20706 Bruno Haible <bruno@clisp.org>
20708 * lib/inet_ntop.h: New file.
20709 * lib/inet_ntop.c: New file, from glibc with modifications.
20711 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
20713 * modules/time_r (License): Change to LGPL.
20714 * modules/extensions (License): Change to LGPL. Actually,
20715 the license is more permissive than that, but currently gnulib-tool
20716 doesn't know how to handle more-permissive licenses.
20718 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20719 Problem reported by Dave Love.
20721 2005-05-08 Jim Meyering <jim@meyering.net>
20723 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20726 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
20728 * modules/argmatch (Depends-on): Add stdbool.
20729 * modules/backupfile (Depends-on): Likewise.
20730 * modules/chdir-long (Depends-on): Likewise.
20731 * modules/closeout (Depends-on): Likewise.
20732 * modules/cycle-check (Depends-on): Likewise.
20733 * modules/dirname (Depends-on): Likewise.
20734 * modules/fnmatch (Depends-on): Likewise.
20735 * modules/fsusage (Depends-on): Likewise.
20736 * modules/fwriteerror (Depends-on): Likewise.
20737 * modules/getcwd (Depends-on): Likewise.
20738 * modules/getloadavg (Depends-on): Likewise.
20739 * modules/hard-locale (Depends-on): Likewise.
20740 * modules/makepath (Depends-on): Likewise.
20741 * modules/mountlist (Depends-on): Likewise.
20742 * modules/nanosleep (Depends-on): Likewise.
20743 * modules/posixtm (Depends-on): Likewise.
20744 * modules/quotearg (Depends-on): Likewise.
20745 * modules/readtokens (Depends-on): Likewise.
20746 * modules/readtokens0 (Depends-on): Likewise.
20747 * modules/readutmp (Depends-on): Likewise.
20748 * modules/save-cwd (Depends-on): Likewise.
20749 * modules/strftime (Depends-on): Likewise.
20750 * modules/userspec (Depends-on): Likewise.
20751 * modules/utimecmp (Depends-on): Likewise.
20752 * modules/xgetcwd (Depends-on): Likewise.
20753 * modules/xnanosleep (Depends-on): Likewise.
20754 * modules/xstrtod (Depends-on): Likewise.
20755 * modules/yesno (Depends-on): Likewise.
20757 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
20759 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20762 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20764 Merge from coreutils. Among other things,
20765 add bulletproofing for cases where stdin, stdout, or stderr are closed.
20766 * lib/fd-safer.c: New file.
20767 * lib/fcntl-safer.h, open-safer.c: Remove.
20768 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20769 * lib/dup-safer.c: Include unistd-safer.h first.
20770 Don't include errno.h.
20771 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20772 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20773 * lib/file-type.c: Rely on file-type.h change.
20774 * lib/getloadavg.c: Include unistd-safer.h.
20775 (getloadavg): Use safer open.
20776 * lib/getusershell.c: Include "stdio-safer.h".
20777 (getusershell): Use safer fopen.
20778 * lib/long-options.c (long_options): Use NULL rather than 0.
20779 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20781 * lib/modechange.c: Likewise.
20782 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
20783 (MODE_DONE): New constant.
20784 (struct mode_change): Remove 'next' member.
20785 (make_node_op_equals): New function; like the old one of the
20786 same name, except it allocates an array.
20787 (mode_compile, mode_create_from_ref): Use it.
20788 (mode_compile): Allocate result as an array, not a linked list.
20789 Parse octal string ourself, so that we catch mistakes like "+0".
20790 (mode_adjust): Arg is an array, not a linked list.
20791 * lib/modechange.c: Include stat-macros.h, xalloc.h.
20792 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
20793 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
20794 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
20795 Remove. This is now stat-macros.h's job.
20796 (talloc): Remove. All callers replaced by xalloc, so that
20797 our invokers don't have to worry about reporting memory failures.
20798 (make_node_op_equals): Remove.
20799 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20801 (struct mode_change): Moved here from modechange.h.
20802 (mode_append_entry): Remove.
20803 (mode_compile): Remove MASKED_OPS arg, since it encouraged
20804 apps to have incorrect behavior. Use simpler algorithm for head
20805 and tail. Don't futz with umask; that's now the job of mode_adjust.
20806 Detect more invalid usages rather than having somewhat-random behavior.
20807 Don't insert an "a=" action, as that leads to incorrect behavior.
20808 (mode_compile, mode_create_from_ref): Return NULL on error instead
20809 of an enum, since now there's only one way to have an error. All
20811 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
20812 at the correct time. Simplify calculation of "+u" and its ilk.
20813 Don't mishandle "+X".
20814 (mode_free): Remove "register" and localize decls.
20815 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20816 (struct mode_change): Move to modechange.c; callers don't
20817 need to see this stuff.
20818 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
20819 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
20820 (mode_change, mode_adjust): Reflect the new signatures noted above.
20821 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
20822 that might redefine system include files.
20823 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
20824 (my_usleep): Use NULL rather than (void *) 0.
20825 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
20826 Use siginterrupt to specify that system calls should be interrupted.
20827 (rpl_nanosleep): Move initialization of suspended closer to call of
20829 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
20830 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
20831 (desirable_utmp_entry): New function.
20832 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
20833 using x2nrealloc, to simplify logic.
20834 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
20835 size calculation. Do not assume utmp file is a regular file.
20836 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
20837 (READ_UTMP_CHECK_PIDS): New constant.
20838 * lib/save-cwd.c: Include unistd-safer.h.
20839 (save_cwd): Use fd_safer.
20840 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
20841 [!_LIBC] Include "stat-macros.h" instead.
20842 * lib/unistd-safer.h (fd_safer): New decl.
20844 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20846 * modules/getloadavg (Depends-on): Add unistd-safer.
20847 * modules/getusershell (Depends-on): Add stdio-safer.
20848 * modules/lstat (Depends-on): Remove xalloc.
20849 * modules/mkstemp (Depends-on): Add stat-macros.
20850 * modules/modechange (Depends-on): Remove xstrtol.
20851 Add stat-macros, xalloc.
20852 * modules/save-cwd (Depends-on): Add unistd-safer.
20853 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
20854 * modules/unistd-safer (Files): Add lib/fd-safer.c
20855 (Makefile.am): Remove lib_SOURCES.
20857 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
20858 Remove fcntl-safer; unistd-safer supersedes it.
20860 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20862 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
20864 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
20865 (gl_PREREQ_CHOWN): Remove.
20866 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
20867 it. Don't require AC_HEADER_STAT.
20868 (gl_PREREQ_LSTAT): Remove.
20869 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
20870 Don't require AC_HEADER_STAT.
20871 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
20872 (gl_PREREQ_RMDIR): Remove.
20873 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
20874 mention stat-macros.h or AC_HEADER_STAT, since we'll make
20875 the stat-macros module a prerequisite.
20876 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
20877 * m4/filemode.m4 (gl_FILEMODE): Likewise.
20878 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
20879 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
20880 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
20882 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
20883 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
20885 * m4/fcntl-safer.m4: Remove.
20886 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
20887 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
20888 Invoke gl_PREREQ_FD_SAFER.
20889 (gl_PREREQ_FD_SAFER): New macro.
20890 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
20891 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
20892 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
20893 Remove duplicate call to AC_LIBOBJ(readutmp).
20894 (gl_PREREQ_READUTMP): Remove. All uses inlined.
20896 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
20897 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
20899 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20901 * MODULES.html.sh (Misc): Add byteswap.
20903 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20905 * modules/getcwd (Depends-on): Add extensions.
20906 * modules/openat (Depends-on): Likewise.
20908 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20910 * modules/byteswap: New file.
20912 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20914 * m4/byteswap.m4: New file.
20916 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20918 * lib/byteswap_.h: New file.
20920 2005-04-25 Karl Berry <karl@gnu.org>
20922 * m4/gettext.m4: Update from GNU gettext 0.14.4.
20924 2005-04-25 Albert Chin <china@thewrittenword.com>
20926 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
20929 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
20931 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
20932 (func_ln_if_changed) Remove forcibly for no error message
20933 in case file does not exist.
20935 2005-04-19 Simon Josefsson <jas@extundo.com>
20937 * gnulib-tool (Options): Make --symlink mean --symbolic.
20939 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
20941 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
20943 2005-04-16 Simon Josefsson <jas@extundo.com>
20945 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
20947 2005-04-15 Simon Josefsson <jas@extundo.com>
20949 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
20951 2005-04-15 Simon Josefsson <jas@extundo.com>
20953 * gnulib-tool: Rename --symlink to --symbolic.
20955 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
20957 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
20958 symbolic links to files instead of copying/moving. Add --aux-dir,
20959 specifying directory relative --dir where auxiliary build tools
20962 2005-04-14 Bruno Haible <bruno@clisp.org>
20964 * modules/allocsa (License): Change to LGPL.
20965 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20967 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
20969 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
20970 that "UTC +1 second" continues to work. Problem reported
20971 by Dmitry V. Levin.
20972 (relunit_snumber): New rule.
20975 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
20977 * lib/getdate.y (universal_time_zone_table): New constant.
20978 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
20979 universal_time_zone_table.
20980 (lookup_zone): Prefer universal_time_zone_table to
20981 local_time_zone_table, so that "GMT" time stamps are allowed in
20982 London during the summer. Problem reported by Ian Abbott.
20984 2005-04-12 Jim Meyering <jim@meyering.net>
20986 * lib/human.c (humblock): Set *options even when returning due to
20987 xstrtoumax conversion failure. Thanks to a used-uninitialized
20988 warning from gcc-4.
20990 2005-04-09 Jim Meyering <jim@meyering.net>
20992 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
20993 -Wuninitialized: initialize tm0.tm_year.
20995 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
20997 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
20998 count, since there's no maximum. All uses changed.
20999 Add member dsts_seen.
21000 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
21002 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
21003 Use pc_rels_seen to decide whther a date is absolute.
21005 * lib/getdate.y (number): Don't overwrite year.
21006 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
21009 2005-04-02 Simon Josefsson <jas@extundo.com>
21011 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
21012 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
21014 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
21016 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
21017 where no absolute path name can be longer than PATH_MAX.
21019 2005-03-27 Jim Meyering <jim@meyering.net>
21021 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
21023 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
21025 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
21026 "one's complement" -> "ones' complement" in comment, as per Knuth.
21027 "value of type" -> "type or expression" in comment.
21028 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
21030 2005-03-26 Jim Meyering <jim@meyering.net>
21033 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
21034 Correct typos: s/or/of/.
21036 2005-03-26 Jim Meyering <jim@meyering.net>
21038 * modules/check-include-files: Move to ../ and rename to...
21039 * check-module: ...this.
21041 2005-03-25 Jim Meyering <jim@meyering.net>
21043 * modules/xvasprintf (Files): Add xalloc.h.
21045 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
21047 * modules/gettext (Files): config/config.rpath ->
21048 build-aux/config.rpath
21049 * modules/iconv (Files): Likewise.
21050 Problem reported by Oskar Liljeblad.
21052 2005-03-23 Jim Meyering <jim@meyering.net>
21054 * modules/check-include-files: New script to check for
21055 missing dependencies, multiple includes, etc.
21057 * modules/c-strtold (Depends-on): Add xalloc.
21058 * modules/c-strtod (Depends-on): Add xalloc.
21059 * modules/hash (Depends-on): Add xalloc.
21060 (Files): Remove lib/xalloc.h.
21062 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
21063 * modules/userspec (Files): Add lib/inttostr.h.
21065 2005-03-23 Jim Meyering <jim@meyering.net>
21067 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
21069 2005-03-22 Jim Meyering <jim@meyering.net>
21071 * modules/stat-macros: New module.
21072 * modules/canonicalize, modules/euidaccess, modules/file-type,
21073 * modules/filemode, modules/lchown, modules/makepath,
21074 * modules/rmdir, modules/stat: Depend on new stat-macros module
21075 rather than listing lib/stat-macros.h manually.
21076 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
21078 2005-03-22 Jim Meyering <jim@meyering.net>
21080 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
21082 2005-03-22 Bruno Haible <bruno@clisp.org>
21084 * config/srclist.txt: Replace target directory 'config' with
21086 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
21087 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
21090 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
21092 * modules/chdir-long (Depends-on): Add mempcpy.
21094 * modules/acl, modules/backupfile, modules/c-strtod,
21095 modules/c-strtold, modules/canon-host, modules/canonicalize,
21096 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
21097 modules/exclude, modules/exitfail, modules/file-type,
21098 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
21099 modules/getdate, modules/getline, modules/getpagesize,
21100 modules/getpass, modules/getugroups, modules/group-member,
21101 modules/hard-locale, modules/hash, modules/human, modules/idcache,
21102 modules/inttostr, modules/long-options, modules/makepath,
21103 modules/md5, modules/memcasecmp, modules/memcoll,
21104 modules/modechange, modules/mountlist, modules/path-concat,
21105 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
21106 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
21107 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
21108 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
21109 modules/strftime, modules/strndup, modules/strverscmp,
21110 modules/timespec, modules/unlocked-io, modules/userspec,
21111 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
21113 Remove lib_SOURCES line from Makefile.am section, as this is now
21114 done automatically by the corresponding Autoconf macro.
21116 2005-03-21 Jim Meyering <jim@meyering.net>
21118 Changes imported from coreutils.
21120 * lib/cycle-check.c: Don't include xalloc.h.
21122 * lib/path-concat.c: Don't include assert.h.
21123 (path_concat): Remove assertion that would have triggered
21124 for ABASE starting with more than one slash.
21125 Reported by Andreas Schwab.
21127 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
21128 properly when ABASE is an absolute file name.
21129 Correct the description of this function.
21130 Include <assert.h>.
21131 Add an assertion and a test driver.
21132 This fixes a bug introduced on 2004-07-02.
21133 Andreas Schwab reported the resulting failure of cp --parents:
21134 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
21136 2005-03-21 Jim Meyering <jim@meyering.net>
21138 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
21139 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
21141 2005-03-21 Jim Meyering <jim@meyering.net>
21142 and Paul Eggert <eggert@cs.ucla.edu>
21144 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
21145 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
21146 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
21147 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
21148 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
21149 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
21150 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
21151 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
21152 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
21153 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
21154 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
21155 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
21156 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
21157 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
21158 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
21159 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
21160 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
21163 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
21165 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
21166 (which shouldn't happen), generate nothing instead of returning 0
21167 immediately, so that nstrftime (NULL, ...) doesn't return 0.
21169 2005-03-16 Bruno Haible <bruno@clisp.org>
21171 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
21172 HAVE_LONGLONG_64BIT.
21174 2005-03-16 Bruno Haible <bruno@clisp.org>
21176 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
21177 HAVE_LONGLONG_64BIT.
21179 2005-03-16 Bruno Haible <bruno@clisp.org>
21181 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
21182 HAVE_LONGLONG_64BIT.
21184 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
21186 * lib/strftime.c (my_strftime): Prepend space to format so that we can
21187 reliably distinguish strftime failure from empty output on POSIX
21190 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
21192 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
21193 (iconv_string): Don't guess a size-zero buffer, as that might cause
21194 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
21195 result would be 'too large', where 'too large' is (heuristically)
21196 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
21197 overflow concerns. This will prevent some unwanted malloc failures
21198 when the inputs are very large.
21200 2005-03-15 Karl Berry <karl@gnu.org>
21202 * config/srclist.txt (config.rpath): from gettext.
21203 * config/config.rpath: update.
21205 2005-03-15 Bruno Haible <bruno@clisp.org>
21207 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
21210 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
21213 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
21216 2005-03-14 Simon Josefsson <jas@extundo.com>
21218 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
21221 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
21223 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
21224 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
21226 * lib/strtol.c: Likewise.
21228 2005-03-14 Jim Meyering <jim@meyering.net>
21230 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
21231 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
21232 to be nonzero so that we (and caller) can detect the difference
21233 between a valid zero-length expansion and an error return, even
21234 when the underlying strftime fails before writing anything into
21237 2005-03-14 Bruno Haible <bruno@clisp.org>
21239 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
21240 Update from GNU gettext 0.14.3.
21242 2005-03-10 Jim Meyering <jim@meyering.net>
21244 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
21246 2005-03-10 Jim Meyering <jim@meyering.net>
21248 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
21249 so that this module works on systems without fchdir.
21251 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
21253 Factor int-properties macros into a single file, except for
21254 glibc-related files.
21255 * lib/intprops.h: New file.
21256 * lib/getloadavg.c: Include it instead of limits.h.
21257 (INT_STRLEN_BOUND): Remove.
21258 * lib/human.c: Include intprops.h.
21259 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
21260 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
21262 * lib/inttostr.h: Include intprops.h instead of limits.h.
21263 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
21264 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
21265 for consistency with intprops.h.
21266 (time_t_is_integer, twos_complement_arithmetic): Use them.
21267 * lib/sig2str.h: Include <signal.h>, intprops.h.
21268 (INT_STRLEN_BOUND): Remove.
21269 * lib/strftime.c (TYPE_SIGNED): Remove.
21270 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
21271 * lib/strtol.c: Adjust comments to match intprops.h.
21272 * lib/userspec.c: Include intprops.h.
21273 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
21274 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
21275 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
21276 instead of rolling our own expressions.
21277 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
21279 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
21281 (my_strftime): Do not mishandle years close to INT_MAX, by doing
21282 the right thing even if adding 1900 would overflow. Similarly
21283 for tm_mon + 1 and tm_yday + 1.
21284 Make %Y always equivalent to %C%y, and similarly for %G and %g.
21285 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
21286 (DO_SIGNED_NUMBER): New macro.
21287 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
21289 2005-03-07 Bruno Haible <bruno@clisp.org>
21291 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
21293 2005-03-07 Bruno Haible <bruno@clisp.org>
21295 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
21297 2005-03-04 Derek R. Price <derek@ximbiot.com>
21299 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
21300 (func_import): Only replace files via --import when they have actually
21303 2005-03-03 Derek R. Price <derek@ximbiot.com>
21305 * m4/mmap-anon.m4: New file.
21306 * m4/pagealign_alloc.m4: New file.
21308 2005-03-03 Derek R. Price <derek@ximbiot.com>
21309 Bruno Haible <bruno@clisp.org>
21311 * modules/pagealign_alloc: New file.
21312 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
21314 2005-03-03 Derek R. Price <derek@ximbiot.com>
21315 Bruno Haible <bruno@clisp.org>
21317 * lib/pagealign_alloc.h: New file.
21318 * lib/pagealign_alloc.c: New file.
21320 2005-03-03 Bruno Haible <bruno@clisp.org>
21322 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
21323 Use an all-permissive copyright notice, recommended by RMS.
21325 2005-03-02 Bruno Haible <bruno@clisp.org>
21327 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
21328 of AIX, the replacement has to be done only after <string.h> is
21329 included, therefore not in config.h. stpncpy.h does the replacement,
21330 and stpncpy.c uses it.
21332 2005-03-02 Bruno Haible <bruno@clisp.org>
21334 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
21337 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21339 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
21340 The workaround isn't strictly needed for POSIX conformance, and
21341 it's too much of a pain to configure and maintain. We'll ask
21342 people to fix their kernels instead.
21343 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
21344 (NANOSLEEP_BUG_WORKAROUND): Remove.
21345 (xnanosleep): Remove the workaround.
21347 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21349 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
21350 Reported by Derek Price.
21351 (Include): Add "timespec.h".
21353 * modules/xnanosleep (Depends-on): Remove gethrxtime.
21355 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21357 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
21358 to detect nanosleep bug.
21360 2005-03-01 Bruno Haible <bruno@clisp.org>
21362 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
21364 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
21366 * modules/gethrxtime: New file.
21367 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
21368 (Depends-on): Add gethrxtime.
21369 (configure.ac): Add gl_XNANOSLEEP.
21370 (Makefile.am): Remove lib_SOURCES line.
21372 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
21374 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
21375 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
21377 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
21379 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
21380 * lib/timespec.h (gettime): Return void, since it always
21381 succeeds now. All uses changed.
21382 * lib/gettime.c (gettime) Likewise.
21383 [HAVE_NANOTIME]: Prefer nanotime.
21384 Assume gettimeofday succeeds, as POSIX requires.
21385 Assime time () succeeds, since other code already does.
21386 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
21387 (timespec_subtract): Remove.
21388 (NANOSLEEP_BUG_WORKAROUND): New constant.
21389 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
21390 things considerably. Use it only on GNU/Linux hosts, since the
21391 workaround shouldn't be needed elsewhere.
21393 2005-02-24 Bruno Haible <bruno@clisp.org>
21395 * modules/gettext (Files): Add m4/glibc2.m4.
21397 2005-02-24 Bruno Haible <bruno@clisp.org>
21399 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
21400 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
21402 Update from GNU gettext 0.14.2.
21403 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
21405 2005-02-24 Bruno Haible <bruno@clisp.org>
21407 * lib/localcharset.c: Update from GNU gettext 0.14.2.
21408 * lib/config.charset: Update from GNU gettext 0.14.2.
21410 2005-02-24 Bruno Haible <bruno@clisp.org>
21412 * lib/gettext.h: Update from GNU gettext 0.14.2.
21414 2005-02-23 Simon Josefsson <jas@extundo.com>
21416 * m4/iconvme.m4: New file.
21418 2005-02-23 Jim Meyering <jim@meyering.net>
21420 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
21422 Thanks to Bruno Haible for catching it.
21424 2005-02-22 Simon Josefsson <jas@extundo.com>
21426 * modules/iconvme: New file.
21428 * MODULES.html.sh: Add iconvme.
21430 2005-02-22 Simon Josefsson <jas@extundo.com>
21432 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
21434 2005-02-22 Simon Josefsson <jas@extundo.com>
21436 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
21438 2005-02-22 Jim Meyering <jim@meyering.net>
21440 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
21443 2005-02-20 Neil Conway <neilc@samurai.com>
21445 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
21446 returned by OSX/Darwin if the specified buffer is not large
21447 enough for the hostname.
21449 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21451 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
21452 pass it to _help, otherwise the latter coredumps trying to
21453 dereference state.root_argp.
21455 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21457 * modules/chdir-long (Depends-on): Add memrchr.
21458 * modules/memrchr (Files): Add lib/memrchr.h.
21459 (Include): "memrchr.h".
21461 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21463 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
21465 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21467 * lib/memrchr.h: New file.
21468 * lib/chdir-long.c: Include it.
21469 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
21470 Don't bother including stddef.h.
21472 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
21474 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
21476 Include <sys/types.h>, for dev_t.
21477 (ME_DUMMY, ME_REMOTE): Move from here....
21478 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
21479 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
21481 Include mountlist.h first, to test the interface.
21483 2005-01-29 Bruno Haible <bruno@clisp.org>
21485 * lib/progname.c (program_name): Initialize.
21486 Needed when linking statically on MacOS X.
21488 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21490 Sync from coreutils.
21491 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
21492 (Depends-on): Add c-strtod.
21493 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
21495 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21497 Sync from coreutils.
21498 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
21500 Remove files that are specific to coreutils.
21501 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
21503 2005-01-28 Bruno Haible <bruno@clisp.org>
21505 * modules/javacomp: New file.
21506 * MODULES.html.sh (Java): Add javacomp.
21508 2005-01-28 Bruno Haible <bruno@clisp.org>
21510 * m4/javacomp.m4: New file, from GNU gettext.
21512 2005-01-28 Bruno Haible <bruno@clisp.org>
21514 * lib/javacomp.sh.in: New file, from GNU gettext.
21515 * lib/javacomp.h: New file, from GNU gettext.
21516 * lib/javacomp.c: New file, from GNU gettext.
21518 2005-01-26 Simon Josefsson <jas@extundo.com>
21520 * lib/gai_strerror.c: Use GPL in header.
21522 2005-01-26 Bruno Haible <bruno@clisp.org>
21524 * modules/javaexec: New file.
21525 * MODULES.html.sh (Java): Add javaexec.
21527 2005-01-26 Bruno Haible <bruno@clisp.org>
21529 * m4/javaexec.m4: New file, from GNU gettext.
21531 2005-01-26 Bruno Haible <bruno@clisp.org>
21533 * lib/javaexec.sh.in: New file, from GNU gettext.
21534 * lib/javaexec.h: New file, from GNU gettext.
21535 * lib/javaexec.c: New file, from GNU gettext.
21537 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21539 * modules/lchown (Depends-on): Remove lchown.h
21541 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21543 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
21544 must be defined if the header file was not found, in order
21545 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
21547 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21549 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
21550 initializers for struct pentry_state.
21551 (__argp_error): Check return value of __asprintf
21552 (__argp_failure): Translate error message
21554 * lib/argp-parse.c: Removed braces around the expansion of N_()
21556 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
21558 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
21559 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
21560 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
21561 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
21562 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
21563 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
21564 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
21565 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
21566 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
21567 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
21568 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
21569 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
21570 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
21571 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
21572 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
21573 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
21574 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
21575 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
21576 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
21577 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
21578 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
21579 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
21580 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
21581 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
21582 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
21583 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
21584 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
21585 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
21586 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
21587 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
21588 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
21589 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
21590 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
21591 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
21592 xstrtol.m4, xstrtoumax.m4, yesno.m4:
21593 Use an all-permissive copyright notice, recommended by RMS.
21595 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
21597 * modules/chdir-long (Depends-on): Remove mempcpy.
21599 2005-01-21 Jim Meyering <jim@meyering.net>
21601 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
21602 same value as for Solaris 9.
21604 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
21605 component length. This included changing the parameter to be
21606 of type `char *' rather than `char const *'.
21607 * lib/chdir-long.h (chdir_long): Update prototype.
21609 * lib/openat.c (fdopendir, fstatat): New functions.
21610 * lib/openat.h: Include headers required for use of DIR and struct
21612 [AT_SYMLINK_NOFOLLOW]: Define.
21613 (fdopendir, fstatat): Add prototypes.
21615 2005-01-21 Bruno Haible <bruno@clisp.org>
21617 * modules/classpath: New file.
21618 * MODULES.html.sh (Java): Add classpath.
21620 2005-01-21 Bruno Haible <bruno@clisp.org>
21622 * lib/classpath.h: New file, from GNU gettext.
21623 * lib/classpath.c: New file, from GNU gettext.
21625 2005-01-20 Simon Josefsson <jas@extundo.com>
21627 * modules/version-etc-fsf: New file.
21629 2005-01-20 Simon Josefsson <jas@extundo.com>
21631 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
21632 * lib/version-etc.c: Remove version_etc_copyright.
21633 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
21634 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
21636 2005-01-20 Simon Josefsson <jas@extundo.com>
21638 * lib/base64.h (isbase64): Add.
21640 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
21641 using a unsigned prototype, don't inline.
21642 (base64_decode): Use it.
21644 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21646 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
21649 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21651 * lib/save-cwd.c (save_cwd): Remove code to support the case
21652 where fchdir is missing or flaky.
21654 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21656 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
21658 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
21660 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
21661 AC_LIBSOURCES now does this.
21662 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
21663 with new ullong_max module.
21665 2005-01-19 Bruno Haible <bruno@clisp.org>
21667 * modules/sh-quote: New file.
21668 * MODULES.html.sh (Executing programs): Add sh-quote.
21670 2005-01-19 Bruno Haible <bruno@clisp.org>
21672 * lib/sh-quote.h: New file, from GNU gettext.
21673 * lib/sh-quote.c: New file, from GNU gettext.
21675 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21677 Merge from coreutils.
21678 * m4/ullong_max.m4: New file.
21679 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
21680 (gl_MACROS): Assume localeconv exists.
21682 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21684 Merge changes from coreutils, as described below in several
21685 changelogs dated today.
21687 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
21688 (O_DIRECTORY): Remove; not needed here, since "." must be
21689 a directory. All uses removed.
21690 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
21691 universal on Suns, and we also need to test for IRIX.
21692 Revamp code to use 'if' rather than '#if'.
21693 Avoid unnecessary comparison of cwd->desc to 0.
21695 * lib/utimens.c (futimens): Robustify the previous patch, by checking
21696 for known valid error numbers rather than observed invalid ones.
21698 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21700 * modules/ullong_max: New file.
21702 * modules/chdir-long, modules/openat: New files.
21703 * modules/save-cwd (Depends-on): Depend on chdir-long.
21704 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
21706 2005-01-18 Jim Meyering <jim@meyering.net>
21708 Merge from coreutils.
21709 * m4/chdir-long.m4, m4/openat.m4: New files.
21710 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
21711 save-cwd.h. Add AC_LIBOBJ for save-cwd.
21712 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
21713 is sane and DOES follow symlinks. Besides, testing 20 different
21714 systems found no broken chown implementations.
21715 Prompted by a change in rsync's copy of this macro.
21716 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21718 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21720 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21721 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21722 NULL-means-set-to-current-time semantics.
21723 Remove temporary file immediately, rather than waiting
21724 for configure's at-exit trap code to do it.
21726 2005-01-18 Jim Meyering <jim@meyering.net>
21728 * lib/version-etc.c (version_etc_copyright): Update copyright date.
21730 * lib/utimens.c (futimens): Account for the fact that futimes
21731 can also fail with errno == ENOSYS or errno == ENOENT.
21732 Patch from Dmitry V. Levin.
21734 Change the name of the robust chdir function from chdir to chdir_long.
21735 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21736 (restore_cwd): Use chdir_long, not chdir.
21737 * lib/chdir-long.c: Renamed from chdir.c.
21738 * lib/chdir-long.h: Renamed from chdir.h.
21739 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21742 2005-01-18 Bruno Haible <bruno@clisp.org>
21744 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21745 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21746 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21747 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21748 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21749 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21750 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21751 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21752 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21753 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21754 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21755 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21756 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21757 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21758 Use an all-permissive copyright notice, recommended by RMS.
21760 2005-01-18 Bob Proulx <bob@proulx.com>
21762 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21763 simplify offsetof() macro construct to avoid compile failure with
21764 native HP-UX 11.0 ANSI C compiler.
21766 2005-01-17 Bruno Haible <bruno@clisp.org>
21768 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21769 redundant because stpncpy.m4 takes care of it.
21771 2005-01-17 Bruno Haible <bruno@clisp.org>
21773 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21775 2005-01-17 Bruno Haible <bruno@clisp.org>
21777 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21780 2005-01-17 Bruno Haible <bruno@clisp.org>
21782 * lib/fwriteerror.h (fwriteerror): Change specification to include
21784 * lib/fwriteerror.c: Include <stdbool.h>.
21785 (fwriteerror): At the end, close the file stream. Record whether
21786 stdout was already closed.
21788 2005-01-17 Bruno Haible <bruno@clisp.org>
21790 * lib/execute.c (environ): Declare if needed.
21791 * lib/pipe.c (environ): Likewise.
21792 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
21794 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21796 * modules/argp: Depend on vsnprintf
21798 2005-01-10 Jim Meyering <jim@meyering.net>
21800 * modules/closeout (Depends-on): Add atexit.
21802 2005-01-06 Bruno Haible <bruno@clisp.org>
21804 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
21806 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
21808 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
21809 definitions to be after all include files, to avoid collisions.
21810 Problem reported by Bob Proulx.
21812 2005-01-04 Jim Meyering <jim@meyering.net>
21814 Changes imported from coreutils.
21815 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
21816 as the mkstemp template, use a temporary directory and an
21817 8.3-friendly template to avoid trouble on systems like DJGPP.
21818 Reported by Juan M. Guerrero via Stepan Kasal.
21819 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
21820 close. Remove the temporary directory right away, rather than waiting
21821 for configure's at-exit trap code to do it.
21822 Suggestion from Stepan Kasal.
21824 2005-01-01 Simon Josefsson <jas@extundo.com>
21826 * gnulib-tool: Print #include directives when --import'ing.
21828 2004-12-28 Simon Josefsson <jas@extundo.com>
21830 * tests/test-base64.c: Include required header files. Remove
21833 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21835 * modules/error (Depends-on): Remove gettext.
21837 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21839 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
21840 not needed. This removes a dependency on the gettext module.
21841 [defined _LIBC]: Do not include <libintl.h>; not needed.
21843 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21845 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
21846 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
21848 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21850 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
21853 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21855 * modules/getdate (Depends-on): Remove alloca-opt.
21857 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21859 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
21861 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21863 * lib/argp-parse.c: Include <stddef.h>.
21864 (alignof, alignto): New macros.
21865 (parser_init): Don't assume that void * is aligned sufficiently
21868 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
21869 need to extend the stack.
21870 (YYINITDEPTH): New macro, so that the initial stack isn't overly
21873 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21875 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
21877 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21879 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
21880 (2004-10-24) change. Apparently this was a false alarm.
21882 * modules/getdate: Depend on alloca-opt, not alloca.
21884 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21886 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
21887 Remove now-obsolete comment about AIX.
21888 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
21889 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
21890 (YYMAXDEPTH): New macro.
21892 2004-12-18 Simon Josefsson <jas@extundo.com>
21894 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
21896 2004-12-18 Bruno Haible <bruno@clisp.org>
21898 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
21900 2004-12-18 Bruno Haible <bruno@clisp.org>
21902 * lib/fatal-signal.c (fatal_signals): Make non-const.
21903 (init_fatal_signals): New function.
21904 (uninstall_handlers, install_handlers): Ignore signals that were set to
21906 (at_fatal_signal): Call init_fatal_signals.
21907 (init_fatal_signal_set): Likewise. Ignore signals that were set to
21909 Reported by Paul Eggert.
21911 2004-12-18 Bruno Haible <bruno@clisp.org>
21913 * doc/alloca.texi: New file.
21914 * doc/alloca-opt.texi: New file.
21916 2004-12-17 Jim Meyering <jim@meyering.net>
21918 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
21919 Otherwise, install-sh could exit with improper exit status when
21920 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
21922 2004-12-16 Simon Josefsson <jas@extundo.com>
21924 * tests/test-base64.c: Add license.
21926 2004-12-15 Stepan Kasal <address@hidden>
21928 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
21930 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
21932 * modules/getcwd (Files): Add m4/d-ino.m4.
21933 Suggested by Mark D. Baushke.
21935 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21937 * lib/getdate.y (textint): New member "negative".
21938 (time_zone_hhmm): New function.
21939 Expect 14 shift-reduce conflicts, not 13.
21940 (o_colon_minutes): New rule.
21941 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
21942 (yylex): Set the "negative" member of signed numbers.
21944 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21946 * doc/getdate.texi (Time of day items, Time zone items):
21947 Describe new formats +00:00, UTC+00:00.
21949 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
21951 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
21952 spurious "-l"s. Problem reported by Stepan Kasal.
21954 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
21956 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
21957 in Autoconf 2.59. Problem reported by Mark D. Baushke.
21959 2004-12-04 Simon Josefsson <jas@extundo.com>
21961 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
21962 Vandoorselaere <yoann@prelude-ids.org>.
21964 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21966 Changes imported from coreutils.
21967 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
21969 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
21971 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21973 Changes imported from coreutils.
21974 * lib/hard-locale.c: Assume <locale.h> exists.
21975 Include "strdup.h".
21976 (GLIBC_VERSION): New macro.
21977 (hard_locale): Assume setlocale exists.
21978 Rewrite to avoid #ifdef.
21979 Use strdup rather than malloc + strcpy.
21980 * lib/human.c: Assume <locale.h> exists.
21981 (human_readable): Assume localeconv exists.
21983 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21985 * modules/hard-locale (Depends-on): Add strdup.
21987 2004-12-01 Jakub Jelinek <jakub@redhat.com>
21989 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
21990 convert T2, not T. (Imported from libc.)
21992 2004-11-30 Simon Josefsson <jas@extundo.com>
21994 * modules/restrict (License): Change to LGPL.
21996 2004-11-30 Simon Josefsson <jas@extundo.com>
21998 * m4/restrict.m4: Add copyright and copying conditions.
22000 2004-11-30 Simon Josefsson <jas@extundo.com>
22002 * m4/base64.m4: New file.
22004 2004-11-30 Simon Josefsson <jas@extundo.com>
22006 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
22009 * tests/test-base64.c: New file.
22011 * modules/base64: New file.
22013 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
22015 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
22016 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
22018 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
22020 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
22022 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
22023 (__getcwd.c): Don't restore errno; glibc doesn't.
22024 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
22025 first, falling back to our code only if its results look suspicious.
22026 Ensure that the resulting buffer is only as large as necessary.
22028 * lib/readutmp.c: Include readutmp.h first.
22029 Include <errno.h>, since readutmp.h no longer does that.
22030 * lib/readutmp.h: Don't include <errno.h>,
22031 <sys/param.h>, <time.h>; not needed to establish interface.
22032 (errno): Remove decl.
22033 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
22034 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
22035 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
22037 2004-11-28 Simon Josefsson <jas@extundo.com>
22039 * lib/base64.h, base64.c: New file.
22041 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
22043 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
22045 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
22047 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
22048 (Depends-on): Remove pathmax, same. Add mempcpy.
22049 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
22050 (Makefile.am): Append getcwd.h to lib_SOURCES.
22051 (Include): Add getcwd.h.
22052 (Maintainer): Change from Jim Meyering to "all, glibc",
22053 since getdate now uses intended-for-glibc code.
22054 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
22055 (Depends-on): Depend on getcwd. Do not depend on pathmax.
22057 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
22059 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
22060 HP's ANSI C compiler.
22061 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
22062 Declaring int functions causes warnings on some modern systems and
22063 shouldn't be needed to compile on ancient ones.
22064 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
22067 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
22068 with the following changes.
22069 (__set_errno): Parenthesize properly.
22070 Include <stdbool.h>.
22071 (MIN, MAX, MATCHING_INO): New macros.
22072 (__getcwd): Define with prototype, not K&R form.
22073 Use heuristics to allocate default buffer on stack if possible.
22074 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
22075 behavior, and to avoid the PATH_MAX limit when computing
22077 Use MATCHING_INO to compare inode number to file.
22078 Check for arithmetic overflow in size calculations.
22079 Fix bug in reallocation of dot array that caused getcwd to fail
22080 on directories nested deeper than 75.
22081 Be more careful about saving errno on error.
22082 Do not use realloc; use only free+malloc, as this is a bit
22083 more flexible and avoids a needless copy operation.
22084 Do not inspect st_dev and st_ino for symbolic links; POSIX
22085 doesn't specify the latter.
22086 Check for closedir errors.
22087 Avoid needless casts.
22088 Use "#ifdef weak_alias" around weak_alias, to be like other
22090 The following changes to getcwd.c have effect only when used in
22091 gnulib; they have no effect inside glibc proper.
22092 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
22093 as alloca isn't used.
22094 (alloca, __alloca): Likewise.
22095 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
22096 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
22097 unconditionally, as gnulib assumes C89 or better.
22098 Do not include <sys/param.h>.
22099 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
22100 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
22102 (NULL) [!defined NULL]: Remove; we assume C89 or better.
22103 Include <dirent.h> in a way that is compatible with modern Autoconf.
22104 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
22105 New macros, if not already defined.
22106 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
22107 Use "_LIBC", not "defined _LIBC", for consistency.
22108 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
22110 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
22111 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
22112 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
22113 credit only to Jim Meyering and adjust the copyright dates.
22114 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
22115 <stdlib.h>, <unistd.h>, "pathmax.h".
22116 Instead, include "xgetcwd.h" (first) and "getcwd.h".
22117 (INITIAL_BUFFER_SIZE): Remove.
22118 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
22120 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
22122 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
22123 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
22124 Use the _ONCE methods, for efficiency.
22125 Check for fcntl.h. In test program, include <errno.h>
22126 and <fcntl.h> if available. Remove old K&R cruft from
22127 test program. Check for common errors in GNU/Linux,
22128 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
22129 don't do AC_LIBOBJ, as that's getcwd.m4's job.
22130 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
22131 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
22133 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
22134 accommodate new getcwd.c.
22135 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
22136 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
22137 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
22138 that's all we need now.
22140 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22142 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
22143 argp-parse.c depends on getopt internals, that means we should
22144 always use our getopt, to be on the safe side.
22145 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
22146 order not to spoil the result of an eventual previous invocation
22147 of gl_GETOPT_SUBSTITUTE.
22149 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22151 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
22152 redefinition warnings. To avoid them, include the defines
22153 in `#if !defined __need_getopt ... #endif'. The only place
22154 where __getopt_argv_const is used is in definitions
22155 of getopt_long and getopt_long_only below, which are as well
22156 protected by `#ifndef __need_getopt'.
22157 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
22158 __need_getopt after including <stdio.h> and <unistd.h> These
22159 headers might have defined it.
22161 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
22163 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
22165 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
22167 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
22168 (futimens): New function, which uses futimes if available.
22169 (futimens, utimens): Support timespec==NULL, with same semantics
22170 as utime and utimens.
22171 * lib/utimens.h (futimens): New decl.
22173 2004-11-23 Jim Meyering <jim@meyering.net>
22175 * lib/getopt_.h: Remove trailing blanks.
22177 2004-11-23 Jim Meyering <jim@meyering.net>
22179 * lib/__fpending.c: Add comment.
22181 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
22183 * modules/canonicalize (Depends-on): Add xreadlink.
22184 Problem reported by James Youngman.
22186 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
22188 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
22190 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
22191 optopt): Use them instead of invoking ## directly; otherwise, the
22192 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
22194 2004-11-19 Bruno Haible <bruno@clisp.org>
22196 * lib/strtok_r.c: Move comments from here...
22197 * lib/strtok_r.h: ... to here.
22199 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
22201 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
22202 implementations that mishandle size_t overflow.
22204 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
22206 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
22207 might fail. Problem reported by Yoann Vandoorselaere.
22208 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
22209 implementations that mishandle size_t overflow.
22211 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22213 * modules/canon-host (Depends-on): Add strdup.
22215 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22217 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
22219 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22221 * lib/canon-host.c: Include "strdup.h".
22222 (canon_host): Use getaddrinfo if available, so that IPv6 works.
22223 Use strdup instead of malloc/strcpy to duplicate strings.
22225 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
22226 (human_space_before_unit): New constant.
22227 * lib/human.c (human_readable): Support it.
22229 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
22230 (xgetcwd): Set errno correctly when failing.
22231 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
22232 the failure is actually due to a PATH_MAX problem.
22234 Further getopt changes to make it more likely that glibc will
22235 buy the changes back.
22236 * lib/getopt.c (POSIXLY_CORRECT): New constant.
22237 (getopt): Use it, so to preserve glibc semantic
22238 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
22239 when compiling for libc.
22240 * lib/getopt_.h (__getopt_argv_const): Bring it back.
22241 (getopt_long, getopt_long_only): Use it.
22243 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22244 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
22245 (getopt): Argv is now char * const *, as per standard.
22246 (_getopt_internal_r, _getopt_internal): Argv is now char **,
22247 not char *__getopt_argv_const *.
22248 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22249 _getopt_long_only_r): Likewise.
22250 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
22251 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22252 _getopt_long_r, _getopt_long_only_r): Likewise.
22253 * lib/getopt_.h (__getopt_argv_const): Remove.
22254 (getopt): Argv is now char * const *, as per standard.
22256 * lib/getdate.y (tORDINAL): New token.
22257 (day, relunit): Allow it for relative times.
22258 (relative_time_table): Use tORDINAL for ordinals.
22260 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22262 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
22263 Document that "second" isn't allowed as an ordinal number.
22265 2004-11-16 Jim Meyering <jim@meyering.net>
22267 * modules/closeout (Depends-on): Add fpending.
22269 2004-11-15 Jim Meyering <jim@meyering.net>
22271 * lib/closeout.c: Include "__fpending.h" once again.
22272 Include <stdbool.h>.
22273 (close_stdout): Don't fail just because stdout was closed initially,
22274 since some programs don't write to stdout in the normal course of
22275 operation (other than --version and --help), and we don't want this
22276 function to make e.g. `touch file >&-' fail.
22277 But do fail if it was closed and someone has tried to write to it.
22278 E.g., `printf foo >&-' must fail.
22280 2004-11-13 Jim Meyering <jim@meyering.net>
22282 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
22284 2004-11-12 Simon Josefsson <jas@extundo.com>
22286 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
22287 small doc fix is still pending.
22289 2004-11-11 Simon Josefsson <jas@extundo.com>
22291 * modules/strtok_r: New file.
22293 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22296 2004-11-11 Simon Josefsson <jas@extundo.com>
22298 * m4/strtok_r.m4: New file.
22300 * m4/getopt.m4: Replace opterr.
22302 2004-11-11 Simon Josefsson <jas@extundo.com>
22304 * lib/strtok_r.h, strtok_r.c: New file.
22306 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
22308 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
22309 of replacing opterr, getopt, etc. This should handle the
22310 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
22312 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
22314 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
22315 we can stop lying to compilers about the constness of argv when we
22316 are compiled outside glibc.
22317 (getopt, getopt_long, getopt_long_only): Use it.
22318 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22319 _getopt_internal, getopt): Likewise.
22320 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22321 _getopt_long_only_r): Likewise.
22322 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22323 _getopt_long_r, _getopt_long_only_r): Likewise.
22325 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
22326 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
22327 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
22328 the other external symbols.
22329 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
22330 declaration, since the above renaming now works around collisions.
22332 2004-11-11 Jim Meyering <jim@meyering.net>
22334 * lib/linebreak.c: Remove trailing blanks.
22335 * lib/alloca_.h: Likewise.
22336 * lib/acosl.c: Likewise.
22337 * lib/euidaccess.c: Likewise.
22338 * lib/allocsa.h: Likewise.
22340 2004-11-10 Simon Josefsson <jas@extundo.com>
22342 * m4/getaddrinfo.m4: New file.
22344 2004-11-10 Simon Josefsson <jas@extundo.com>
22346 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
22348 2004-11-10 Simon Josefsson <jas@extundo.com>
22350 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22353 * modules/getaddrinfo: New file.
22355 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
22357 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
22359 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
22361 * lib/mktime.c (SHR): New macro, which is a portable
22362 substitute for >> that should work even on Crays.
22363 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
22364 Problem reported by Mark D. Baushke in
22365 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
22366 * lib/getdate.y (SHR): Likewise.
22368 * lib/strftime.c (SHR): Likewise.
22370 * lib/quotearg.c (struct quoting_options): Use unsigned int for
22371 quote_these_too, so that right shifts are well defined. All uses
22374 2004-11-10 Jim Meyering <jim@meyering.net>
22376 Ensure that no close failure goes unreported.
22377 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
22378 return early when it seems there's nothing to flush.
22379 Don't include __fpending.h.
22381 2004-11-10 Jim Meyering <jim@meyering.net>
22383 * modules/closeout (Depends-on): Remove fpending.
22385 2004-11-10 Jim Meyering <jim@meyering.net>
22387 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
22389 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
22391 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
22393 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
22394 and AC_REQUIRE when possible, to avoid duplicate checks.
22395 Check for <wchar.h>.
22397 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
22399 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
22401 2004-11-09 Bruno Haible <bruno@clisp.org>
22403 * m4/sockpfaf.m4: New file.
22405 2004-11-05 Bruno Haible <bruno@clisp.org>
22407 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
22408 Reported by Mark D. Baushke <mdb@cvshome.org>.
22410 2004-11-04 Bruno Haible <bruno@clisp.org>
22412 2004-09-11 Bruno Haible <bruno@clisp.org>
22413 * allocsa.valgrind: New file.
22414 2004-02-06 Bruno Haible <bruno@clisp.org>
22415 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
22416 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
22417 Reported by Christopher Seip <chris.seip@hp.com>.
22419 2004-11-04 Bruno Haible <bruno@clisp.org>
22421 * modules/allocsa (Files): Add lib/allocsa.valgrind.
22422 (Makefile.am): Distribute it.
22424 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
22426 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
22427 with errno == ERANGE if the buffer is too small.
22428 Problem reported by Mark D. Baushke.
22430 2004-11-03 Albert Chin <china@thewrittenword.com>
22431 Paul Eggert <eggert@cs.ucla.edu>
22433 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
22434 equivalent, substitute $ac_type for equivalent type rather than
22435 blindly using uint32_t *always* which won't work if uint32_t is not
22436 available. Define _UINT32_T to work around typedef of uint32_t if
22437 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
22440 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22442 * m4/jm-macros.m4: Sync from coreutils.
22443 (gl_MACROS): Check for mbrlen, for pathchk.
22444 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
22446 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22448 * lib/xreadlink.c (MAXSIZE): New macro.
22449 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
22450 size does not exceed MAXSIZE. Avoid cast.
22451 As suggested by Mark D. Baushke in
22452 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
22453 if readlink fails with buffer size just under MAXSIZE, try again
22456 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22458 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
22460 2004-11-02 Derek R. Price <derek@ximbiot.com>
22461 and Paul Eggert <eggert@cs.ucla.edu>
22463 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
22464 (get_date): Overparenthesize to avoid GCC warning.
22466 2004-11-02 Bruno Haible <bruno@clisp.org>
22468 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
22471 2004-11-02 Bruno Haible <bruno@clisp.org>
22473 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
22474 function returns void.
22476 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
22478 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
22479 fflush_unlocked, flockfile, funlockfile, funlockfile,
22480 fputs_unlocked, putc_unlocked.
22482 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
22484 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22485 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
22488 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22490 * modules/getdate (Files): Add doc/getdate.texi.
22491 (Depends-on): Add setenv, xalloc.
22493 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22495 * lib/getdate.y: Add support for TZ="foo" within a date string.
22496 Fix some bugs near time_t boundaries. Reject dates with
22497 out-of-range components, e.g., "Sept 31".
22498 Include <stdlib.h>, "setenv.h", "xalloc.h".
22499 (ISDIGIT_LOCALE): Remove; unused.
22500 Note that the TZ and time functions used here are not reentrant.
22501 (mktime_ok, get_tz): New functions.
22502 (TZBUFSIZE): New constant.
22503 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
22504 This requires that we sometimes generate our own TZ="XXX..." setting.
22506 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22508 * doc/getdate.texi: New file, from coreutils with modifications for
22509 the new TZ parsing.
22511 2004-10-27 Derek R. Price <derek@ximbiot.com>
22513 * lib/mktime.c (not_equal_tm): Remove redundant check.
22515 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22517 * modules/regex (lib_SOURCES): Add regex.c.
22518 Reported by James Youngman in
22519 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
22521 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22523 * lib/getdate.y: Use Bison 1.875 features, and some minor
22524 code cleanups. This change does not affect semantics.
22525 Don't include <stdlib.h>; no longer needed.
22526 Don't include unlocked-io.h; only the "#if TEST" code uses
22527 stdio, and performance isn't crucial there.
22528 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
22529 Bison 1.875 features as described below.
22530 All uses of "PC." replaced by "pc->".
22531 (YYSTYPE): Add a forward declaration.
22532 (yylex, yyerror): Use full prototypes in forward decls.
22533 Use "%pure-parser" rather than obsolescent "%pure_parser".
22534 Use %parse-param and %lex-param instead of obsolescent
22535 YYPARSE_PARAM and YYLEX_PARAM.
22536 (meridian_table, month_and_day_table, time_units_table,
22537 relative_time_table, time_zone_table, military_table,
22538 lookup_zone, lookup_word, get_date):
22539 Use NULL instead of 0 where appropriate.
22540 (to_hour): Avoid abort (), to avoid a dependency on
22542 (yyerror, yylex): Now accepts parser_control * arg.
22543 (main) [TEST]: Use '\0' rather than 0 for char.
22545 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22547 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
22549 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22551 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
22552 It's now the caller's responsibility to handle the case where
22553 !HAVE_GETPAGESIZE && !defined getpagesize.
22555 * lib/mktime.c (leapyear): Arg is long int, not int.
22557 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
22559 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
22561 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
22563 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
22564 missing. Problem reported by James Youngman.
22566 2004-10-16 Simon Josefsson <jas@extundo.com>
22568 * gnulib-tool: Fix comments. Fix parse problem.
22569 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
22571 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
22573 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
22574 implementation of getopt_long. Problem reported by Alexander Taler in:
22575 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
22577 2004-10-15 Bruno Haible <bruno@clisp.org>
22579 * gnulib-tool: Untabify. Initialize supplied_libname.
22580 (func_usage): More homogenous output.
22581 (func_modules_transitive_closure, func_modules_to_filelist,
22582 func_emit_lib_Makefile_am): New functions.
22583 (func_import): New function, extracted from big case statement. Use
22584 func_get_license, func_modules_transitive_closure,
22585 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
22586 opt_lgpl. Don't use test -a, as it's not portable.
22587 (func_create_testdir): Use func_modules_transitive_closure,
22588 func_modules_to_filelist, func_emit_lib_Makefile_am.
22590 2004-10-15 Bruno Haible <bruno@clisp.org>
22592 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
22594 2004-10-15 Bruno Haible <bruno@clisp.org>
22596 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
22597 the portions belonging to each module.
22598 Suggested by Derek Robert Price <derek@ximbiot.com>.
22600 2004-10-12 Simon Josefsson <jas@extundo.com>
22602 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22603 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
22606 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22608 * modules/vsnprintf: New file.
22610 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22612 * m4/vsnprintf.m4: New file.
22614 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22616 * lib/vsnprintf.h: New file.
22617 * lib/vsnprintf.c: New file.
22619 2004-10-11 Bruno Haible <bruno@clisp.org>
22621 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
22624 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
22626 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
22628 2004-10-07 Bruno Haible <bruno@clisp.org>
22630 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
22631 fits into the provided buffer.
22633 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
22635 * lib/diacrit.c, diacrit.h: Add GPL notice.
22637 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
22639 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
22640 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
22641 This avoids a potential constant-folding bug.
22643 2004-10-05 Bruno Haible <bruno@clisp.org>
22645 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
22646 for the declaration of strsep.
22648 2004-10-05 Bruno Haible <bruno@clisp.org>
22650 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
22652 2004-10-04 Simon Josefsson <jas@extundo.com>
22654 * modules/memmem: New file.
22655 * tests/test-memmem.c: New file.
22656 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
22658 2004-10-04 Simon Josefsson <jas@extundo.com>
22660 * m4/memmem.m4: New file.
22662 2004-10-04 Simon Josefsson <jas@extundo.com>
22664 * lib/memmem.h: New file.
22665 * lib/memmem.c: New file, taken from glibc.
22667 2004-10-04 Simon Josefsson <jas@extundo.com>
22669 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
22670 '#ifdef USE_UNLOCKED_IO'.
22672 2004-10-04 Simon Josefsson <jas@extundo.com>
22674 * config/srclist.txt: Add memmem from glibc.
22676 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22678 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
22680 * modules/argmatch, modules/argp, modules/closeout, modules/error,
22681 modules/exclude, modules/getdate, modules/getline,
22682 modules/getndelim2, modules/getpass, modules/getpass-gnu,
22683 modules/getusershell, modules/linebuffer, modules/md5,
22684 modules/mountlist, modules/posixtm, modules/readtokens,
22685 modules/readutmp, modules/regex, modules/sha1,
22686 modules/version-etc, modules/yesno:
22687 Remove dependency on unlocked-io.
22689 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22691 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
22693 * m4/unlocked-io.m4: Add copyright notice.
22694 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
22696 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22698 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
22699 * lib/xmalloc.c (xmemdup): Likewise.
22700 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
22701 XFREE): Remove these long-obsolescent macros.
22702 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
22703 * lib/xstrdup.c: Remove.
22705 * lib/regex.c (re_comp): Cast gettext return value to char *,
22706 Problem reported by Martin Neitzel via Mark D. Baushke.
22708 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22710 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
22711 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
22712 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
22713 regex.c, sha1.c, version-etc.c, yesno.c:
22714 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22715 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22716 the includer's responsibility.
22718 Sync from coreutils.
22720 * lib/modechange.c (mode_compile): Don't decrement a pointer that
22721 points to the start of a string, as the C Standard says the
22722 resulting behavior is undefined.
22724 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22725 simple -> simple_backups, numbered_existing ->
22726 numbered_existing_backups, numbered -> numbered_backups
22727 to avoid shadowing problems. All uses changed.
22728 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22729 * lib/backupfile.c (check_extension, numbered_backup):
22730 Rename locals to avoid shadowing 'basename'.
22731 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22734 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22735 * lib/.cvsignore: Add getopt.h.
22737 2004-10-04 Bruno Haible <bruno@clisp.org>
22739 * modules/README: New file.
22740 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22743 2004-10-02 Jim Meyering <jim@meyering.net>
22745 * lib/dirfd.h, getpagesize.h: Add copyright notice.
22747 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22749 * modules/strsep: New file.
22751 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22753 * m4/strsep.m4: New file.
22755 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22757 * lib/strsep.h: New file.
22758 * lib/strsep.c: New file.
22760 2004-10-01 Simon Josefsson <jas@extundo.com>
22762 * lib/snprintf.c (snprintf): Handle size==0.
22764 2004-10-01 Simon Josefsson <jas@extundo.com>
22765 Bruno Haible <bruno@clisp.org>
22767 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22768 (snprintf): Declare 'args'.
22770 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
22772 * lib/snprintf.c: Remove comments as to why each header is needed.
22774 2004-10-01 Bruno Haible <bruno@clisp.org>
22776 * MODULES.html.sh: Add strsep.
22778 2004-09-30 Simon Josefsson <jas@extundo.com>
22780 * modules/snprintf: New file.
22782 2004-09-30 Simon Josefsson <jas@extundo.com>
22784 * m4/snprintf.m4: New file.
22786 2004-09-30 Simon Josefsson <jas@extundo.com>
22788 * lib/snprintf.h, lib/snprintf.c: New files.
22790 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22792 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
22793 (hol_entry_help): Never translate an empty string.
22794 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
22795 * lib/argp.h (OPTION_NO_TRANS): New option.
22797 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22799 * modules/argp (Maintainer): Replace Simon Josefsson
22800 by Sergey Poznyakoff.
22802 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22804 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
22805 changes merged back into glibc.
22807 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22809 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
22811 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
22813 * lib/xvasprintf.c: Include xalloc.h.
22814 (xvasprintf): Use xalloc_die, not xmalloc_die.
22816 2004-09-29 Bruno Haible <bruno@clisp.org>
22818 * modules/alloca-opt: New file, derived from modules/alloca.
22819 * modules/allocsa: Depend on alloca-opt instead of alloca.
22820 * modules/setenv: Likewise.
22821 * modules/vasnprintf: Likewise.
22822 * MODULES.html.sh: Add alloca-opt.
22824 2004-09-28 Simon Josefsson <jas@extundo.com>
22826 * gnulib-tool: New parameter --lgpl, to asseert that modules are
22827 LGPL, and to replace license template from GPL to LGPL.
22829 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22831 * modules/dummy: Change license to LGPL.
22833 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22835 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
22837 2004-09-24 Simon Josefsson <jas@extundo.com>
22839 * modules/minmax (License): Change from GPL to LGPL.
22841 2004-09-23 Simon Josefsson <jas@extundo.com>
22843 * gnulib-tool (--import): Typo.
22845 2004-09-23 Simon Josefsson <jas@extundo.com>
22847 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
22849 2004-09-22 Bruno Haible <bruno@clisp.org>
22851 * modules/*: Add 'License' field.
22852 * gnulib-tool: Accept --extract-license option.
22853 (func_get_license): New function.
22855 2004-09-21 Bruno Haible <bruno@clisp.org>
22857 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22858 Reported by Simon Josefsson.
22860 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22862 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
22863 gl_AC_TYPE_LONG_LONG.
22865 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22867 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
22869 2004-09-18 Simon Josefsson <jas@extundo.com>
22870 and Paul Eggert <eggert@cs.ucla.edu>
22872 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
22873 calls with autoreconf. Define GL_LIB.
22875 2004-09-14 Karl Berry <karl@gnu.org>
22877 * config/srclist.txt: unsync setenv.c, sigh.
22879 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22881 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
22882 Problem reported by Bruno Haible in:
22883 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
22885 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22887 * config/srclist.txt: Comment out argp-pvh.c.
22889 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
22891 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
22892 in case some system header has #define'd it. Problem reported by
22893 Soeren D. Schulze in
22894 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
22896 2004-09-09 Karl Berry <karl@gnu.org>
22898 * regex.[ch]: delete from the root. These were supposed to be
22899 synced with emacs cvs, but this has not happened for about
22900 a year, and anyway nothing else uses emacs regex.[ch].
22901 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
22902 lib/regex[.ch] is untouched.
22904 2004-09-09 Bruno Haible <bruno@clisp.org>
22906 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
22908 2004-09-09 Bruno Haible <bruno@clisp.org>
22910 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
22912 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
22914 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22916 * modules/xvasprintf: New file.
22917 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
22919 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22921 * lib/xvasprintf.h: New file.
22922 * lib/xvasprintf.c: New file.
22923 * lib/xasprintf.c: New file.
22925 2004-09-08 Bruno Haible <bruno@clisp.org>
22927 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
22929 2004-09-08 Bruno Haible <bruno@clisp.org>
22931 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
22932 length is > INT_MAX.
22933 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
22936 2004-09-08 Bruno Haible <bruno@clisp.org>
22938 * lib/stdint_.h: New file, taken from GNU clisp.
22940 2004-09-08 Bruno Haible <bruno@clisp.org>
22941 Oskar Liljeblad <oskar@osk.mine.nu>
22943 * modules/stdint: New file.
22944 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
22946 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22948 Import from coreutils.
22949 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
22950 strings on unbounded length. alloca's performance benefits aren't
22951 that important here.
22952 (V_STRDUP): Remove.
22953 (parse_with_separator): New function, with most of the internals
22954 of the old parse_user_spec. Allow user to omit both user and group,
22955 for compatibility with FreeBSD.
22956 Clone only the user name, not the entire spec.
22957 Do not set *uid, *gid unless entirely successful.
22958 Avoid memory leak in some failing cases.
22959 Fix regression for USER.GROUP reported by Dmitry V. Levin in
22960 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
22961 (parse_user_spec): Rewrite to use parse_with_separator.
22963 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22965 * modules/userspec: Don't depend on alloca.
22967 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22969 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
22971 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
22973 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
22974 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
22975 utimecmp, utimens, xnanosleep. Rename sha to sha1.
22977 2004-08-16 Simon Josefsson <jas@extundo.com>
22979 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
22980 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
22981 Add --dry-run for --import.
22982 Let user provided command line parameters override configure.ac
22985 2004-08-12 Simon Josefsson <jas@extundo.com>
22987 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
22988 as discussed with Paul Eggert in threads rooted at
22989 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
22991 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
22992 Before, the test was empty, and relied on ELIDE_CODE in source
22994 (gl_PREREQ_GETOPT): New macro.
22995 (gl_GETOPT): Use them.
22997 2004-08-12 Simon Josefsson <jas@extundo.com>
22999 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
23000 * lib/getopt_.h: Renamed from getopt.h.
23002 2004-08-12 Simon Josefsson <jas@extundo.com>
23004 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
23005 Change default library name from libfoo to libgnu.
23006 Now, if you have a configure.ac that says:
23009 gl_MODULES(error getopt etcetera)
23011 you can import all you need by running:
23012 ../gnulib/gnulib-tool --import
23014 * modules/getopt (Files): Rename getopt.h to getopt_.h.
23015 (Makefile.am): Rewrite, use logic from argz.
23016 (Include): Use <getopt.h> instead of "getopt.h".
23018 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
23020 * modules/argp (Files): Add m4/unlocked-io.m4.
23021 (Depends-on): Add extensions.
23023 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
23025 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
23026 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
23027 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
23028 Check for program_invocation_name, program_invocation_short_name,
23029 flockfile, funlockfile, features.h, _getopt_long_only_r.
23031 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
23033 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
23034 its complicated substitute.
23035 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
23036 and program_invocation_name.
23037 (__argp_basename) [!_LIBC]: Remove; the only use was
23038 replaced by its body.
23039 (__argp_short_program_name): Change condition from
23040 !defined __argp_short_program_name to
23041 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
23042 to match argp-namefrob.h.
23043 (__argp_failure): Don't assume strerror_r returns char *.
23044 * lib/argp-parse.c (N_): Define unconditionally.
23045 (argp_default_options): Fill out initializers with 0 to avoid
23048 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
23050 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
23053 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
23055 Merge from coreutils.
23057 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
23059 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
23060 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
23062 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
23064 Merge from coreutils.
23066 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
23067 wmemchr or wmemcpy. Problem reported by Robert Dahlem
23068 for Reliant Unix 5.43.
23070 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
23071 (union fooround): Use uintmax_t, not long int.
23072 The rest is a merge from libc:
23073 [defined _LIBC]: Include <shlib-compat.h>.
23074 (_obstack) [defined _LIBC]: Remove after 2.3.4.
23076 * lib/settime.c (settime): Recode to avoid warning with
23079 * lib/strverscmp.c: Convert to UTF-8.
23081 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
23083 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
23086 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
23088 * modules/xalloc-die: New file.
23089 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
23091 * modules/md5 (Files): Add m4/uint32_t.m4.
23092 * modules/sha1: Renamed from modules/sha.
23094 Rename lib/sha.h to lib/sha1.h.
23095 Rename lib/sha.c to lib/sha1.c.
23096 Rename m4/sha.m4 to m4/sha1.m4.
23097 (lib_SOURCES): Likewise.
23098 (configure.ac): Rename gl_SHA to gl_SHA1.
23099 (Include): sha.h -> sha1.h.
23101 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
23103 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
23104 * m4/sha1.m4: Renamed from sha.m4.
23105 (gl_SHA1): Renamed from gl_SHA. All uses changed.
23107 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
23109 * lib/obstack.h (obstack_empty_p):
23110 Don't assume that chunk->contents is suitably aligned.
23111 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
23112 Likewise. Problem reported by Benno in
23113 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
23115 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
23116 readable. This could be improved further but it'd take some work.
23118 2004-08-08 Simon Josefsson <jas@extundo.com>
23120 * modules/xgethostname (Depends-on): Remove exit and error (not
23123 * modules/getpass-gnu: Add getpass.h.
23124 (Depends-on): Add stdbool.
23125 * modules/getpass: Add getpass.h.
23127 2004-08-08 Simon Josefsson <jas@extundo.com>
23129 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
23130 Check getpass declaration.
23132 2004-08-08 Simon Josefsson <jas@extundo.com>
23134 * lib/xgethostname.c: Don't include error.h (not used).
23136 * lib/getpass.h: Add.
23137 * lib/getpass.c: Include getpass.h first.
23139 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
23141 * lib/xalloc-die.c: New file.
23142 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
23144 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
23145 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
23147 (_, N_, xalloc_die): Move to xalloc-die.c.
23148 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
23149 so that we needn't mess with xalloc_msg_memory_exhausted.
23151 * lib/sha1.h: Renamed from sha.h.
23152 (SHA1_H): Renamed from _SHA_H.
23153 (sha1_ctx): Renamed from sha_ctx.
23154 (sha1_init_ctx): Renamed from sha_init_ctx.
23155 (sha1_process_block): Renamed from sha_process_block.
23156 (sha1_process_bytes): Renamed from sha_process_bytes.
23157 (sha1_finish_ctx): Renamed from sha_finish_ctx.
23158 (sha1_read_ctx): Renamed from sha_read_ctx.
23159 (sha1_stream): Renamed from sha_stream.
23160 (sha1_buffer): Renamed from sha_buffer.
23161 * lib/sha1.c: Likewise; renamed from sha.c.
23162 Do not include <sys/types.h>.
23163 Include <stddef.h> rather than <stdlib.h>.
23165 2004-08-08 Bruno Haible <bruno@clisp.org>
23167 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
23168 FILESYSTEM_PREFIX_LEN.
23169 * lib/progreloc.c: Likewise.
23170 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
23172 2004-08-06 Simon Josefsson <jas@extundo.com>
23174 * modules/progname (Depends-on): Don't depend on stdbool.
23176 2004-08-06 Simon Josefsson <jas@extundo.com>
23178 * modules/getsubopt: New file.
23179 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23182 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23184 More merge from coreutils.
23186 * m4/utimens.m4, m4/utimecmp.m4: New files.
23187 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
23188 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
23189 prereq.m4, sha.m4: Import changes from coreutils.
23191 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23193 More merge from coreutils.
23194 * modules/raise, modules/readtokens0, modules/utimens:
23195 * modules/utimecmp, module/xnanosleep: New files.
23196 * modules/strftime: Add lib/strftime.h.
23197 Change include from <time.h> to "strftime.h".
23198 * modules/yesno: Add lib/yesno.h.
23199 * modules/backupfile: Remove lib/addext.c.
23200 * modules/euidaccess: Add stat-macros.h.
23201 * modules/canonicalize, modules/euidaccess,
23202 modules/filemode, modules/lchown, modules/makepath,
23203 modules/rmdir, modules/stat: Likewise.
23205 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23208 * lib/argp-help.c (make_hol, hol_append): Don't assume that
23209 SIZE_MAX is a valid preprocessor constant.
23210 (__argp_basename): Change from "#ifndef _LIBC"
23211 to "#ifndef __argp_short_program_name", so that
23212 we don't compile these functions for tar.
23214 More merges from coreutils.
23215 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
23216 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
23217 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
23218 * lib/addext.c: Remove; no longer needed.
23219 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
23220 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
23221 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
23222 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
23223 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
23224 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
23225 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
23226 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
23227 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
23228 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
23229 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
23230 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
23231 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
23232 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
23233 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
23234 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
23235 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
23236 Import changes from coreutils.
23238 2004-08-05 Simon Josefsson <jas@extundo.com>
23240 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
23242 2004-08-05 Simon Josefsson <jas@extundo.com>
23244 * m4/getsubopt.m4: New file.
23246 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23248 Merge from coreutils.
23250 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
23251 * m4/getcwd-path-max.m4: New files.
23253 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
23254 FILESYSTEM_PREFIX_LEN ->
23255 FILE_SYSTEM_PREFIX_LEN.
23256 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
23257 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
23258 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
23259 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
23261 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
23262 prerequisite modules now handle the DOS stuff.
23263 Don't check for unistd.h.
23265 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23267 Merge from coreutils.
23269 * lib/.gdb-history: Remove; this doesn't belong here.
23271 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
23272 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
23273 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
23274 * lib/getcwd.c: New files.
23276 * lib/dirname.h: Include <stdbool.h>.
23277 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
23278 for consistency with POSIX terminology. All uses changed.
23279 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
23280 (strip_trailing_slashes): Use bool for booleans.
23281 * lib/stripslash.c (strip_trailing_slashes): Likewise.
23283 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
23284 sometimes returns a positive errno value even when it succeeds.
23285 (print_errno_message) [!LIBC]: Fall back on strerror if
23286 __strerror_r fails.
23288 * lib/path-concat.c (mempcpy): Don't define if a system header defines
23289 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
23290 (longest_relative_suffix): New function.
23291 (path_concat): Use it. Assume first argument is not NULL.
23292 Port to DOS. Omit redundant separators.
23293 Report an error instead of returning NULL.
23294 Use mempcpy instead of memcpy.
23295 (xpath_concat): Remove: not declared or used.
23297 * lib/same.h: Include <stdbool.h>
23298 (same_name): Return bool, not int.
23299 * lib/same.c (same_name): Likewise.
23300 (errno): Don't declare; we assume C89 or better now.
23302 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
23303 if not already defined.
23305 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
23306 * lib/dup-safer.c (errno): Likewise.
23308 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23310 Merge from coreutils.
23311 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
23312 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
23313 * modules/path-concat: Don't depend on strdup.
23315 2004-08-03 Simon Josefsson <jas@extundo.com>
23317 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
23318 * lib/progname.h: Don't include stdbool.h.
23320 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23322 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
23323 * MODULES.html.sh (func_all_modules): Remove fatal.
23325 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23327 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
23329 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23331 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
23334 2004-08-02 Simon Josefsson <jas@extundo.com>
23336 * lib/getsubopt.h: New file, with comments from Bruno Haible.
23337 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
23338 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
23340 2004-08-01 Simon Josefsson <jas@extundo.com>
23342 * lib/xgetdomainname.c: Include stdlib.h, for free().
23344 2004-07-19 Bruno Haible <bruno@clisp.org>
23346 * MODULES.html.sh (func_all_modules): Add dummy.
23348 2004-07-16 Simon Josefsson <jas@extundo.com>
23350 * modules/dummy: New file.
23352 2004-07-16 Simon Josefsson <jas@extundo.com>
23354 * lib/dummy.c: New file.
23356 2004-07-16 Bruno Haible <bruno@clisp.org>
23358 * lib/backupfile.h: Add extern "C" for C++.
23359 * lib/closeout.h: Likewise.
23360 * lib/copy-file.h: Likewise.
23361 * lib/findprog.h: Likewise.
23362 * lib/full-write.h: Likewise.
23363 * lib/pathname.h: Likewise.
23364 * lib/progname.h: Likewise.
23365 * lib/stpcpy.h: Likewise.
23366 * lib/stpncpy.h: Likewise.
23367 * lib/strcase.h: Likewise.
23368 * lib/strstr.h: Likewise.
23369 * lib/xalloc.h: Likewise.
23371 * lib/mbswidth.h: Add extern "C" for C++.
23372 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
23374 2004-07-13 Robert Millan <robertmh@gnu.org>
23376 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
23378 2004-07-09 Simon Josefsson <jas@extundo.com>
23380 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
23381 failed without this.)
23383 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
23385 * modules/chown (Files): Add lib/fchown-stub.c, since
23386 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
23388 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
23390 * lib/fchown-stub.c: New file.
23392 2004-06-24 Jim Meyering <jim@meyering.net>
23394 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
23396 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23398 * modules/argz: Omit "#include".
23400 * MODULES.html.sh (func_all_modules): Add calloc, to match
23401 2004-06-01 addition of calloc module.
23403 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23405 * m4/argz.m4: New file, which is autoupdated from libtool.
23407 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23409 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
23412 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23414 * config/srclist-update: Don't insist on "USA." before the
23415 close-comment, as libtool omits the period and puts the */ on a
23417 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
23418 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
23420 2004-06-22 Gary V. Vaughan <gary@gnu.org>
23422 * modules/argz: New file.
23423 * MODULES.html.sh (func_all_modules): Add argz.
23425 2004-06-12 Jim Meyering <jim@meyering.net>
23426 and Paul Eggert <eggert@cs.ucla.edu>
23428 * modules/hash (Files): Add lib/xalloc.h.
23429 * modules/pipe (Depends-on): Add wait-process.
23430 * modules/stat (Depends-on): Add xalloc.
23431 * modules/userspec (Files): Add lib/userspec.h.
23434 Upgrade from gettext-0.13.
23435 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
23436 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
23437 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
23439 2004-06-10 Jim Meyering <jim@meyering.net>
23441 * lib/calloc.c: New file.
23443 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
23445 * lib/getdate.y (yylex): Allow space between sign and number.
23446 Problem reported by Dan Jacobson.
23448 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
23450 Merge from coreutils CVS.
23452 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
23453 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
23454 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
23455 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
23456 xstrtol.m4: Fix copyright date and/or serial number.
23458 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
23459 See if we need an fchown replacement.
23460 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
23461 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
23462 and use the replacement function if we detect either defect.
23464 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
23467 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
23468 and Jim Meyering <jim@meyering.net>
23470 Merge from coreutils CVS.
23472 * lib/stat-macros.h: New file, with contents from file-type.h
23473 and coreutils' system.h.
23474 * lib/file-type.c: Include "stat-macros.h".
23475 * lib/file-type.h (file_type): Move all macro definitions to new file,
23478 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
23479 Wrap old code with this conditional.
23480 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
23481 function that does not dereference symlinks.
23482 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
23484 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
23485 dependency problems.
23486 (xreadlink): Accept new arg SIZE, for efficiency.
23487 All decls and uses changed.
23488 * lib/xreadlink.h: Include <stddef.h>, for size_t.
23490 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
23491 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
23493 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
23496 2004-06-01 Jim Meyering <jim@meyering.net>
23498 * m4/calloc.m4: New file.
23500 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
23502 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
23503 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
23504 Also, fix a typo in a diagnostic.
23506 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23508 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
23509 or AC_FUNC_REALLOC.
23511 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23513 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
23514 macros to be defined.
23515 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
23516 the allocator returns NULL because the requested size is zero.
23518 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
23520 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
23521 var. Add comment explaining why libc still defines it. This
23522 merges the following patch from glibc:
23523 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
23525 2004-05-20 Andreas Schwab <schwab@suse.de>
23527 * m4/free.m4: Replace free if it not known to work, not the other
23530 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
23532 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
23533 present in glibc since revision 1.1 of this file.
23534 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
23535 obstack_alignment_mask, obstack_alloc, obstack_base,
23536 obstack_blank, obstack_blank_fast, obstack_chunk_size,
23537 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
23538 obstack_grow0, obstack_init, obstack_int_grow,
23539 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
23540 obstack_next_free, obstack_object_size, obstack_ptr_grow,
23541 obstack_ptr_grow_fast, obstack_room): Remove declarations of
23542 nonexistent functions.
23544 2004-05-18 Karl Berry <karl@gnu.org>
23546 * config/srclist.txt: break link for vasnprintf.c.
23548 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23550 Port obstack to the AS/400, where pointers are 16 bytes wide and
23551 you cannot cast an integer to a valid pointer. This patch is
23552 currently waiting to be integrated into glibc; see
23553 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
23555 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
23556 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
23557 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
23558 (struct obstack): temp member is now a union of a pointer and
23559 an integer, instead of an integer. All integer uses changed.
23560 This does not affect the physical layout of struct obstack,
23561 except on hosts (like the AS/400) where the size or alignment of
23562 void * is greater than that of ptrdiff_t.
23563 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
23564 __STDC__)]: Store temporary in pointer member of union, not
23566 * lib/obstack.c: Include <stddef.h>, for offsetof.
23567 (struct fooalign): Remove; it doesn't need a name.
23568 (union fooround): Change double to long double, and add void *.
23569 (DEFAULT_ALIGNMENT): Use offsetof to compute.
23570 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
23571 not a macro. Hence the values are always int; so remove all
23572 casts-to-int in uses.
23574 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23576 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
23577 we can get this patch merged into glibc.
23579 2004-05-17 Derek R. Price <derek@ximbiot.com>
23580 Paul Eggert <eggert@cs.ucla.edu>
23582 * m4/argp: Depend on alloca.
23584 2004-05-17 Derek R. Price <derek@ximbiot.com>
23585 Paul Eggert <eggert@cs.ucla.edu>
23587 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
23590 2004-05-17 Bruno Haible <bruno@clisp.org>
23592 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
23593 precision that consists of a '.' followed by an empty digit string.
23594 Patch by Tor Lillqvist <tml@iki.fi>.
23596 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23598 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
23599 for backward compatibility with older code. We need our own
23600 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
23601 it under some other name, and our alloca.h will define it.
23603 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23604 Derek Price <derek@ximbiot.com>
23606 * lib/alloca.c: Include <alloca.h>, to get our interface.
23607 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
23608 include <alloca.h> first. Use C89 prototype for alloca; this
23609 requires including <stddef.h> for size_t. Use extern "C" if C++.
23610 Use #elif for simplicity, since we can assume C89 now.
23611 Don't try to source the system alloca.h since it will not be found
23612 and to prevent recursively including its replacement.
23613 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
23614 * lib/regex.c: Likewise.
23616 2004-05-16 Derek Price <derek@ximbiot.com>
23617 Paul Eggert <eggert@cs.ucla.edu>
23619 getline cleanup. This changes the getndelim2 API: both order of
23620 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
23623 * lib/getline.c: Don't include stddef.h or stdio.h, since our
23624 interface does that.
23625 (getline): Always use getdelim, so that we don't have two
23626 copies of this code.
23627 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
23629 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
23630 (GETNDELIM2_MAXIMUM): New macro.
23631 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
23632 instead of the old practice of delim2==0. All callers changed.
23633 Return -1 on overflow, instead of returning junk.
23634 Do not set *linesize unless allocation succeeds.
23635 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
23636 that we include sys/types.h.
23637 * lib/getnline.h: Likewise.
23638 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
23639 (getndelim2): Reorder arguments.
23640 * lib/getnline.c (getnline, getndelim):
23641 Don't discard the NMAX argument.
23642 (getnline): Invoke getndelim, to avoid code duplication.
23643 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
23644 of (size_t) -1 by callers of the getnline family.
23646 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23648 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
23649 Check for gettimeofday.
23650 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
23651 Check for settimeofday, stime.
23653 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23655 * lib/nanosleep.c (suspended): Change its type from int to
23656 sig_atomic_t volatile.
23657 (first_call): Make it private to rpl_nanosleep, and have it
23658 be zero initially as that's a bit faster.
23659 (my_usleep): Round up fractional times instead of truncating them,
23660 as this is the usual meaning for 'sleep'.
23662 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
23664 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
23665 (ENOSYS): Define if not defined.
23666 (settime): Fall back on stime if it exists and settimeofday fails.
23667 But don't bother with fallbacks if a method fails with errno == EPERM.
23669 2004-05-11 Jim Meyering <jim@meyering.net>
23671 Prior to this change, the save_cwd caller required read access to the
23672 current directory on most systems (ones with the fchdir function).
23674 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
23675 fails, try write-only, and finally, resort to using xgetcwd.
23677 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
23679 * lib/obstack.c, obstack.h: Import changes from libc.
23681 2004-04-28 Bruno Haible <bruno@clisp.org>
23683 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
23684 also implicitly appends .exe to executables.
23685 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
23686 accepts Windows pathnames.
23687 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23688 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23689 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23690 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23691 Reported by Derek Robert Price <derek@ximbiot.com>.
23693 2004-04-21 Karl Berry <karl@gnu.org>
23695 * config/srclist.txt (localcharset.c): break sync.
23697 2004-04-20 Paul Eggert <eggert@twinsun.com>
23699 * m4/host-os.m4: Add a copyright notice.
23701 2004-04-20 Jim Meyering <jim@meyering.net>
23703 Change UTILS_ to gl_ in AC_DEFINE'd names.
23704 Change utils_- and jm_-prefixed variables, too.
23705 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
23706 UTILS_FUNC_MKDIR_TRAILING_SLASH.
23707 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
23709 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
23710 Don't emit trailing blanks.
23711 Also rename jm_-prefixed variables to have gl_ prefix.
23713 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23714 Also rename jm_-prefixed variables to have gl_ prefix.
23716 * m4/jm-macros.m4: Reflect the renamings.
23717 * m4/prereq.m4: Likewise.
23719 2004-04-20 Jim Meyering <jim@meyering.net>
23721 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23724 2004-04-20 Jim Meyering <jim@meyering.net>
23725 Bruno Haible <bruno@clisp.org>
23727 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23728 memory when realloc fails.
23730 2004-04-19 Jim Meyering <jim@meyering.net>
23732 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23733 now that readutmp.c may call `free (0)'.
23735 2004-04-19 Bruno Haible <bruno@clisp.org>
23737 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23738 * m4/inttypes_h.m4: Likewise.
23739 * m4/stdint_h.m4: Likewise.
23740 * m4/intmax_t.m4: Likewise.
23741 * m4/uintmax_t.m4: Likewise.
23743 2004-04-18 Jim Meyering <jim@meyering.net>
23745 * m4/prereq.m4: Don't forbid jm_ prefix.
23747 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23748 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23749 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23750 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23751 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23752 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23753 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23754 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23755 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23756 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23757 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23758 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23759 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23760 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23761 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23762 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23763 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23764 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23765 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23767 2004-04-18 Jim Meyering <jim@meyering.net>
23769 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23770 failure, don't leak memory and do call END_UTMP_ENT.
23772 2004-04-16 Jim Meyering <jim@meyering.net>
23774 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
23775 coreutils' stat program.
23776 (gl_PREREQ): Don't require jm_PREREQ_STAT.
23778 2004-04-11 Paul Eggert <eggert@twinsun.com>
23780 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
23782 (CHAR_BIT): Remove, since we assume C89.
23783 Include <stdint.h> if available, as per current Autoconf CVS advice.
23785 2004-03-31 Jim Meyering <jim@meyering.net>
23787 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
23788 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
23789 * m4/xalloc.m4: Likewise.
23791 2004-03-30 Paul Eggert <eggert@twinsun.com>
23793 Merge from coreutils.
23795 * m4/inttostr.m4: New file.
23796 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
23797 Require AM_STDBOOL_H and gl_TIMESPEC instead.
23798 Require gl_CLOCK_TIME.
23799 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
23801 2004-03-30 Paul Eggert <eggert@twinsun.com>
23803 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
23804 not bool, to be more consistent with Unix conventions.
23805 Suggested by Bruno Haible.
23807 Merge from coreutils.
23809 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
23810 * lib/umaxtostr.c: New files.
23812 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
23813 the usual <time.h> dance.
23814 (get_date): Change signature to support fractional time stamps.
23815 All callers changed.
23816 * lib/getdate.y: Include "getdate.h" first, as we can now
23817 assume C89 and don't need to worry about 'const'.
23818 Similarly, include "unlocked-io.h" near start, not in middle.
23819 Include <limits.h>.
23820 (textint.value): Use long int rather than int.
23821 (textint.digits): Use size_t rather than int.
23822 (BILLION, LOG10_BILLION): New constants.
23823 (parser_control): New member rel_ns. Members day_ordinal,
23824 time_zone, month, day, hour, minutes, rel_year, rel_month,
23825 rel_day, rel_hour, rel_minutes, rel_seconds
23826 are now long int, not int. Member seconds is now struct timespec,
23827 not int. New member timespec_seen. Members dates_seen, days_seen,
23828 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
23830 (%union.intval): Now long int, not int.
23831 New member timespec.
23832 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
23833 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
23834 (spec): Now is a timespec or an item list.
23835 (timespec, items): New nonterminals.
23836 (time, rel, relunit, number, get_date):
23837 Add support for fractional seconds.
23838 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
23839 (gmtime, localtime, mktime): Remove decls; not needed with C89.
23840 (to_hour): First arg is now long int, not int.
23841 (to_year): Returns long int, not int.
23842 Don't treat year -70 like 70.
23843 (tm_diff): Returns long int, not int.
23844 (lookup_word): Use bool instead of int when appropriate.
23845 (yylex): Use size_t for count, not int.
23846 Detect overflow when parsing large integer constants.
23847 Add support for fractions.
23848 (get_date): Make pointers 'const' if possible.
23849 Use more-portable code to detect integer overflow.
23850 (main) [TEST]: Adjust to above changes. Test for localtime failure.
23851 Don't use ctime; it's not reliable if the year has >4 digits.
23853 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
23854 This is for compatibility with BSD.
23856 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
23857 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
23858 From coreutils' system.h.
23860 * lib/userspec.c: Don't include "posixver.h".
23861 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
23862 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
23863 compatible extension. Simplify code by removing a boolean int
23864 that was always nonzero if a string was nonnull.
23866 2004-03-30 Jim Meyering <jim@meyering.net>
23868 Merge from coreutils.
23870 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
23871 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
23872 on some systems one must include <grp.h> before it.
23873 Reported by Christian Krackowizer.
23875 2004-03-30 Jim Meyering <jim@meyering.net>
23877 Merge from coreutils.
23879 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
23881 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
23882 an empty input stream.
23884 * lib/readtokens.c: Include <stdbool.h>.
23885 (readtoken): Use `size_t' rather than int/long.
23886 All callers adjusted.
23887 Use `bool' rather than `int' where appropriate.
23888 Use memset rather than an explicit loop.
23889 Use x2nrealloc rather than xrealloc.
23890 Allow the use of `\0' as a delimiter.
23891 (readtokens): Likewise.
23892 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
23894 2004-03-30 Jim Meyering <jim@meyering.net>
23896 * m4/realloc.m4: Remove file, since now it does no more than
23897 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
23898 the `configure.ac' section of module/realloc.
23899 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
23901 2004-03-30 Bruno Haible <bruno@clisp.org>
23903 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
23906 2004-03-29 Paul Eggert <eggert@twinsun.com>
23908 Merge changes to getloadavg.c from coreutils and Emacs.
23910 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
23911 Define to an expression, not to the empty string.
23912 Include cloexec.h and xalloc.h.
23913 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
23914 Use set_cloexec_flag rather than rolling our own.
23915 * lib/cloexec.c, lib/cloexec.h: New files.
23917 2004-03-29 Paul Eggert <eggert@twinsun.com>
23919 * m4/cloexec.m4: New file.
23921 2004-03-18 Paul Eggert <eggert@twinsun.com>
23923 * lib/getopt.h: Sync with libc CVS.
23925 2004-03-18 Paul Eggert <eggert@twinsun.com>
23926 Bruno Haible <bruno@clisp.org>
23928 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
23931 2004-03-18 Paul Eggert <eggert@twinsun.com>
23932 Bruno Haible <bruno@clisp.org>
23934 * lib/mbswidth.h: Include <wchar.h> only if
23935 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
23937 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
23939 2004-03-09 Paul Eggert <eggert@twinsun.com>
23941 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
23942 Sync with libc CVS.
23943 * lib/getopt_int.h: New file, also synced from libc.
23945 2004-03-09 Paul Eggert <eggert@twinsun.com>
23947 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
23948 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
23949 Bring back getopt.c, getopt.h, getopt1.c.
23951 2004-03-07 Paul Eggert <eggert@twinsun.com>
23953 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
23954 All uses changed. Check for sa_sigaction member; this fixes
23955 a bug first reported by Jason Andrade in
23956 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23958 2004-03-07 Paul Eggert <eggert@twinsun.com>
23960 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
23961 '#if' expressions. Unlike the code it replaces, it does not
23962 depend on (defined _SC_PAGESIZE). However, it does depend on
23963 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
23964 first reported by Jason Andrade in
23965 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23967 2004-02-25 Simon Josefsson <jas@extundo.com>
23969 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
23971 2004-02-25 Simon Josefsson <jas@extundo.com>
23973 * lib/strdup.h: New file.
23974 * lib/strdup.c: Include it.
23975 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
23976 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
23978 2004-02-23 Karl Berry <karl@gnu.org>
23980 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
23981 (from fencepost.gnu.org:/gd/gnuorg).
23983 2004-02-23 Karl Berry <karl@gnu.org>
23985 * config/srclistvars.sh (GNUORG) [karl]: redefine.
23986 * config/srclist.txt: add maintain/standards documents.
23988 2004-02-18 Bruno Haible <bruno@clisp.org>
23990 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
23991 Reported by Derek Robert Price <derek@ximbiot.com>.
23993 2004-02-16 Karl Berry <karl@gnu.org>
23995 * config/mkinstalldirs, install-sh: update from automake.
23997 2004-02-06 Karl Berry <karl@gnu.org>
23999 * m4/po.m4: update from gettext 0.14.1.
24001 2004-02-06 Karl Berry <karl@gnu.org>
24003 * lib/config.charset: update from gettext 0.14.1.
24005 2004-02-05 Paul Eggert <eggert@twinsun.com>
24007 Add comments and code, prompted by suggestions from Bruno Haible
24009 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
24010 describing the enum quoting_style values.
24011 * lib/quotearg.c (quotearg_alloc): New function.
24012 (quotearg_buffer_restyled): Treat lone { and } as special.
24013 Treat = as special. Work around bug with older shells
24014 that "see" a '\' that is really the 2nd byte of a multibyte char.
24015 Quote empty string with shell_quoting_style.
24017 2004-02-03 Bruno Haible <bruno@clisp.org>
24019 * m4/pipe.m4: New file, from GNU gettext.
24021 2004-02-03 Bruno Haible <bruno@clisp.org>
24023 * lib/pipe.h: New file, from GNU gettext.
24024 * lib/pipe.c: New file, from GNU gettext.
24026 2004-01-27 Bruno Haible <bruno@clisp.org>
24028 * m4/execute.m4: New file, from GNU gettext.
24030 2004-01-27 Bruno Haible <bruno@clisp.org>
24032 * lib/execute.h: New file, from GNU gettext.
24033 * lib/execute.c: New file, from GNU gettext.
24034 * lib/w32spawn.h: New file, from GNU gettext.
24036 2004-01-24 Paul Eggert <eggert@twinsun.com>
24038 Merge from diffutils.
24040 * lib/file-type.c (file_type): Add typed memory objects.
24041 * lib/file-type.h (S_TYPEISTMO): New macro.
24043 * lib/c-stack.h (c_stack_action): Remove argv argument.
24044 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
24045 (die): Don't calculate message unless segv_action returns.
24046 (get_stack_location, min_address_from_argv, max_address_from_argv,
24047 volatile stack_base, volatile_stack_size): Remove.
24048 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
24049 that every segmentation violation is a stack overflow. (Ouch!)
24050 See Debian bug 136249 (still outstanding) for more info about why
24051 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
24053 2004-01-24 Paul Eggert <eggert@twinsun.com>
24055 Exit-status fix from coreutils.
24057 Use exit_failure consistently in place of EXIT_FAILURE,
24058 so that program exit statuses are consistent on failure.
24060 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
24061 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
24062 * lib/argmatch.h: Comment fix to match the above.
24063 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
24064 Now a macro referring to exit_failure, instead of a separate
24065 variable. Include "exitfail.h" to get it.
24066 * lib/xstrtol.h: Include "exitfail.h".
24067 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
24069 * lib/long-options.c (parse_long_options): Use prototype
24070 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
24073 2004-01-21 Jim Meyering <jim@meyering.net>
24075 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
24076 so as not to conflict with a different-sized __mktime_internal
24077 function in GNU libc.
24078 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
24079 Problem building statically-linked `ls' reported by Michael Brunnbauer.
24081 2004-01-20 Karl Berry <karl@gnu.org>
24083 * config/config.guess: update from config.
24085 * config/srclistvars.sh: GNUWWWLICENSES for karl.
24087 2004-01-20 Bruno Haible <bruno@clisp.org>
24089 Safer stack allocation.
24090 * lib/setenv.c: Include allocsa.h.
24091 (alloca): Remove fallback definition.
24092 (freea): Remove macro.
24093 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
24096 2004-01-20 Bruno Haible <bruno@clisp.org>
24098 * m4/eealloc.m4: New file, from GNU gettext.
24100 2004-01-20 Bruno Haible <bruno@clisp.org>
24102 * m4/allocsa.m4: New file, from GNU gettext.
24104 2004-01-20 Bruno Haible <bruno@clisp.org>
24106 * lib/xallocsa.h: New file, from GNU gettext.
24107 * lib/xallocsa.c: New file, from GNU gettext.
24109 2004-01-20 Bruno Haible <bruno@clisp.org>
24111 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
24113 2004-01-20 Bruno Haible <bruno@clisp.org>
24115 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
24116 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
24119 2004-01-20 Bruno Haible <bruno@clisp.org>
24121 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
24124 2004-01-20 Bruno Haible <bruno@clisp.org>
24126 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
24128 2004-01-20 Bruno Haible <bruno@clisp.org>
24130 * lib/eealloc.h: New file.
24132 2004-01-20 Bruno Haible <bruno@clisp.org>
24134 * lib/binary-io.h: Avoid warnings on Cygwin.
24136 2004-01-20 Bruno Haible <bruno@clisp.org>
24138 * lib/allocsa.h: New file, from GNU gettext.
24139 * lib/allocsa.c: New file, from GNU gettext.
24141 2004-01-18 Karl Berry <karl@gnu.org>
24143 * doc/gpl.texi, doc/lgpl.texi: new files.
24145 2004-01-18 Karl Berry <karl@gnu.org>
24147 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
24148 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
24150 2004-01-15 Paul Eggert <eggert@twinsun.com>
24152 Merge from coreutils.
24154 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
24155 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
24156 (gl_DEFAULT_POSIX2_VERSION): Move
24157 the documentation from 'configure' into 'config.hin',
24158 so that 'configure --help' isn't burdened by it and
24159 we don't have to worry about its formatting there.
24160 Reword the documentation so that it's more succinct
24161 and can be run together into a single paragraph.
24162 * m4/same.m4 (gl_SAME): Check for pathconf.
24164 2004-01-15 Paul Eggert <eggert@twinsun.com>
24166 Merge from coreutils.
24168 * lib/posixver.c: Include posixver.h.
24170 * lib/same.c: Include <stdbool.h>, <limits.h>.
24171 (_POSIX_NAME_MAX): Define if not defined.
24173 (same_name): If file names are silently truncated, report
24174 that the file names are the same if they are the same after
24175 the silent truncation.
24177 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
24178 conversion function.
24179 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
24180 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
24183 2004-01-15 Jim Meyering <jim@meyering.net>
24185 Merge from coreutils.
24187 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
24188 if no library is required.
24189 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
24190 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
24191 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
24192 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
24193 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
24194 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
24195 value, $ac_cv_search_crypt, if it's "none required".
24196 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
24197 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
24198 not gl_FUNC_GETLOADAVG.
24199 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
24200 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
24202 2004-01-15 Jim Meyering <jim@meyering.net>
24204 Merge from coreutils.
24206 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
24207 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
24208 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
24210 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
24211 optional configure-time default.
24213 * lib/version-etc.c (version_etc_copyright): Update copyright date.
24215 * lib/xreadlink.c (xreadlink): Correct outdated comment.
24217 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
24219 Merge from coreutils.
24221 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
24222 value, $ac_cv_search_nanosleep, if it's "none required".
24224 2004-01-14 Paul Eggert <eggert@twinsun.com>
24226 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
24227 with like-named macro in fnmatch.c.
24228 (EXT): Use an internal constant instead.
24230 Merge fnmatch patches from glibc.
24231 * lib/fnmatch.c (mbsinit): Remove define.
24232 Add libc_hidden_ver (__fnmatch, fnmatch).
24233 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
24234 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
24236 2004-01-14 Karl Berry <karl@gnu.org>
24238 * config/install-sh: update from automake.
24240 2004-01-13 Karl Berry <karl@gnu.org>
24242 * config/install-sh: update from automake.
24244 2004-01-09 Karl Berry <karl@gnu.org>
24246 * config/install-sh: update from automake.
24248 2004-01-05 Karl Berry <karl@gnu.org>
24250 * config/config.{sub,guess}: update from config.
24252 2003-12-31 Karl Berry <karl@gnu.org>
24254 * config/depcomp: update from automake.
24256 2003-12-14 Karl Berry <karl@gnu.org>
24258 * lib/config.charset: update from gettext-runtime.
24260 2003-12-03 Paul Eggert <eggert@twinsun.com>
24262 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
24263 Bug reported by Alfred M. Szmidt.
24265 2003-12-03 Bruno Haible <bruno@clisp.org>
24267 * m4/gettext.m4: Upgrade from gettext-0.13.
24268 * m4/po.m4: Upgrade from gettext-0.13.
24269 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
24270 * m4/intmax.m4: New file, from gettext-0.13.
24271 * m4/printf-posix.m4: New file, from gettext-0.13.
24273 2003-11-29 Karl Berry <karl@gnu.org>
24275 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
24277 2003-11-25 Paul Eggert <eggert@twinsun.com>
24278 Bruno Haible <bruno@clisp.org>
24280 * lib/printf-parse.h: Don't include sys/types.h.
24281 (ARG_NONE): New macro.
24282 (char_directive): Change type of *arg_index fields to size_t.
24283 * lib/printf-parse.c: Don't include sys/types.h.
24284 (SSIZE_MAX): Remove macro.
24285 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
24286 Remove unnecessary overflow check.
24287 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
24290 2003-11-25 Bruno Haible <bruno@clisp.org>
24292 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
24294 2003-11-25 Bruno Haible <bruno@clisp.org>
24296 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
24299 2003-11-24 Paul Eggert <eggert@twinsun.com>
24301 * modules/alloca: Remove dependency on xalloc.
24303 2003-11-24 Paul Eggert <eggert@twinsun.com>
24305 * lib/alloca.c: Remove dependency on xalloc module.
24306 (xalloc_die): Remove.
24307 (memory_full) [!defined emacs]: New macro.
24308 [!defined emacs]: Don't include xalloc.h.
24309 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
24310 address arithmetic overflows. Change datatypes a bit to avoid
24313 2003-11-22 Jim Meyering <jim@meyering.net>
24315 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
24318 2003-11-21 Karl Berry <karl@gnu.org>
24320 * config/config.{sub,guess}: update from config.
24322 2003-11-18 Karl Berry <karl@gnu.org>
24324 * config/config.{sub,guess}: update from config.
24326 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
24328 2003-11-17 Paul Eggert <eggert@twinsun.com>
24330 * README: Mention that S+T cannot overflow if S is the size of
24331 an existing object and T is sufficiently small.
24333 2003-11-17 Jim Meyering <jim@meyering.net>
24335 On systems without utime and without a utimes function capable of
24336 dealing with a NULL struct utimbuf* argument, this utime replacement
24337 could -- in unusual circumstances -- leak a file descriptor.
24338 * lib/utime.c: Include <unistd.h> and <errno.h>.
24339 (utime_null): Be sure to close `fd' and to preserve errno.
24340 Reported by Geoff Collyer via Arnold Robbins.
24342 2003-11-17 Bruno Haible <bruno@clisp.org>
24344 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
24345 (Depends-on): Add xsize.
24347 2003-11-17 Bruno Haible <bruno@clisp.org>
24349 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
24351 2003-11-17 Bruno Haible <bruno@clisp.org>
24353 * lib/vasnprintf.c (alloca): Remove fallback definition.
24354 (freea): Remove definition.
24355 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
24356 Reported by Paul Eggert.
24358 2003-11-16 Paul Eggert <eggert@twinsun.com>
24359 Bruno Haible <bruno@clisp.org>
24361 Protect against address arithmetic overflow.
24362 * lib/printf-args.h: Include stddef.h.
24363 (arguments): Change type of field 'count' to size_t.
24364 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
24365 'unsigned int' where appropriate.
24366 * lib/printf-parse.h: Include sys/types.h.
24367 (char_directive): Change type of *arg_index fields to ssize_t.
24368 (char_directives): Change type of fields 'count', max_*_length to
24370 * lib/printf-parse.c: Include sys/types.h and xsize.h.
24371 (SSIZE_MAX): Define fallback value.
24372 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
24373 instead of 'int' where appropriate. Check a_allocated, d_allocated
24374 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
24375 * lib/vasnprintf.c: Include xsize.h.
24376 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
24377 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
24378 overflow. Avoid wraparound when converting a width or precision from
24381 2003-11-16 Bruno Haible <bruno@clisp.org>
24383 Update from GNU gettext.
24384 * lib/printf-parse.c: Generalize to it can be compiled for wide
24386 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
24387 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
24388 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
24389 SNPRINTF): New macros.
24390 Don't include <alloca.h> if the file is used inside libintl.
24391 (local_wcslen): New function, for Solaris 2.5.1.
24392 (VASNPRINTF): Use it instead of wcslen.
24394 2003-11-16 Bruno Haible <bruno@clisp.org>
24396 * lib/xsize.h (xmax): New function.
24397 (xsum, xsum3, xsum4): Declare as "pure" functions.
24399 2003-11-12 Paul Eggert <eggert@twinsun.com>
24401 * modules/xalloc (Files): Undo latest change, since xalloc.h
24402 no longer needs SIZE_MAX or PTRDIFF_MAX.
24404 2003-11-12 Paul Eggert <eggert@twinsun.com>
24406 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
24409 2003-11-12 Paul Eggert <eggert@twinsun.com>
24411 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
24412 "return", to pacify some unknown compiler. Problem reported
24413 by Joerg Schilling.
24415 2003-11-12 Paul Eggert <eggert@twinsun.com>
24417 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
24418 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
24419 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
24420 heuristic is just as accurate as far as we know, and it removes a
24421 dependency on size_max.m4 and ptrdiff_max.m4.
24423 2003-11-11 Bruno Haible <bruno@clisp.org>
24425 * modules/xsize (Files): Add m4/size_max.m4.
24426 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
24428 2003-11-11 Bruno Haible <bruno@clisp.org>
24430 * m4/size_max.m4: New file.
24431 * m4/ptrdiff_max.m4: New file.
24432 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
24433 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
24434 (gl_XALLOC): Invoke it.
24436 2003-11-11 Bruno Haible <bruno@clisp.org>
24438 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
24439 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
24442 2003-11-10 Paul Eggert <eggert@twinsun.com>
24444 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
24445 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
24446 rejected some allocations of exactly SIZE_MAX - 2 bytes.
24448 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
24449 not (size_t) -1, since it's defined here.
24451 2003-11-09 Karl Berry <karl@gnu.org>
24453 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
24455 2003-11-06 Paul Eggert <eggert@twinsun.com>
24457 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
24458 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
24459 Reject sizes of exactly SIZE_MAX bytes.
24460 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
24461 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
24463 2003-11-05 Bruno Haible <bruno@clisp.org>
24465 * lib/xsize.h: Include limits.h, to avoid a possible collision with
24466 SIZE_MAX defined in <limits.h> on Solaris.
24468 2003-11-04 Jim Meyering <jim@meyering.net>
24470 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
24471 variable names, rather than @VAR@.
24472 * modules/poll: Likewise.
24474 2003-11-04 Bruno Haible <bruno@clisp.org>
24476 * modules/xsize: New file.
24477 * modules/linebreak: Depend on xsize.
24478 * MODULES.html.sh (func_all_modules): Add xsize.
24480 2003-11-04 Bruno Haible <bruno@clisp.org>
24482 * m4/xsize.m4: New file.
24484 2003-11-04 Bruno Haible <bruno@clisp.org>
24486 * lib/xsize.h: New file.
24487 * lib/linebreak.c: Include xsize.h.
24488 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
24489 argument for overflow.
24490 Suggested by Paul Eggert.
24492 2003-11-03 Karl Berry <karl@gnu.org>
24494 * config/config.{guess,sub}: update from config.
24496 2003-11-03 Jim Meyering <jim@meyering.net>
24498 * modules/userspec (lib_SOURCES): Add userspec.h.
24499 (Include): Add "userspec.h".
24500 Improve description.
24502 2003-11-03 Jim Meyering <jim@meyering.net>
24504 * lib/userspec.c: Include "userspec.h".
24505 * lib/userspec.h: New file.
24507 2003-11-03 Bruno Haible <bruno@clisp.org>
24509 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
24511 2003-11-03 Bruno Haible <bruno@clisp.org>
24513 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
24514 available, to avoid (extremely rare) race condition.
24515 Suggested by Paul Eggert.
24517 2003-11-02 Karl Berry <karl@gnu.org>
24519 * config/srclist.txt (vasprintf.c): sync broken, sigh.
24521 2003-10-31 Paul Eggert <eggert@twinsun.com>
24523 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
24524 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
24525 (read_filesystem_list): Set and use me_type_malloced.
24526 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
24527 whatever the type happens to be), for brevity and consistency.
24528 Check for size calculation overflow on Alphas running OSF/1.
24530 2003-10-31 Jim Meyering <jim@meyering.net>
24532 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
24534 * lib/linebuffer.c: Include <string.h> for declaration of memset.
24536 2003-10-30 Paul Eggert <eggert@twinsun.com>
24537 Bruno Haible <bruno@clisp.org>
24539 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
24540 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
24542 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
24544 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
24545 netbsd*-gnu*. Suggested by Robert Millan.
24547 2003-10-29 Paul Eggert <eggert@twinsun.com>
24549 * modules/group-member: Depend on stdbool.
24551 2003-10-29 Paul Eggert <eggert@twinsun.com>
24553 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
24555 2003-10-29 Paul Eggert <eggert@twinsun.com>
24557 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
24558 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
24559 after the 'gnu' in these cases. This fixes some bugs in the
24560 previous change, and is based on suggestions by Robert Millan.
24562 2003-10-29 Paul Eggert <eggert@twinsun.com>
24564 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
24565 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
24567 * lib/quotearg.c (quotearg_n_options): Use it.
24568 * lib/group-member.c: Include <stdbool.h>.
24569 (free_group_info): Arg is now const *; don't free arg.
24570 (get_group_info): Now returns bool and accepts struct group_info *,
24571 rather than returning a malloc'ed struct group_info *.
24572 All uses changed. Check for overflow in internal size calculation.
24574 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
24575 rather than xmalloc/xrealloc.
24576 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
24577 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
24578 conformance bug: the old code used a pointer after freeing the
24579 storage that it addressed.
24580 * lib/hash.c (hash_initialize): Simplify the code by using
24581 xalloc_oversized rather than doing it by hand.
24582 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
24583 the buffer preserved. Use free and xmalloc instead.
24584 * lib/quotearg.c (quotearg_n_options): Likewise.
24585 Use a simpler test for size overflow. Don't use xalloc_oversized
24586 because unsigned int might be wider than size_t (!); this suggests
24587 that we should switch from unsigned int to size_t for slot numbers.
24589 2003-10-28 Paul Eggert <eggert@twinsun.com>
24591 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
24592 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
24593 NetBSD kernels. Requested by Richard Stallman.
24595 2003-10-27 Paul Eggert <eggert@twinsun.com>
24597 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
24598 to allocate the returned structure. Do not allocate a subarray,
24599 as x2nrealloc will do that.
24600 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
24601 instead of xnrealloc.
24602 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
24604 2003-10-27 Bruno Haible <bruno@clisp.org>
24606 * lib/stdbool_.h: Better support for BeOS.
24608 2003-10-26 Paul Eggert <eggert@twinsun.com>
24610 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
24613 2003-10-26 Paul Eggert <eggert@twinsun.com>
24615 * lib/xalloc.h (xalloc_oversized): New static inline function, for
24616 callers that want to do their own size-overflow checking. Include
24617 <stdbool.h>, since xalloc_oversized returns bool.
24618 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
24619 to use xalloc_oversized.
24621 Add two functions x2realloc, x2nrealloc, for programs that grow
24622 arrays dynamically by doubling their sizes.
24623 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
24624 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
24627 Port to C99 semantics for 'inline' of external functions.
24628 Bug reported by Bruno Haible.
24629 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
24630 with the old contents of xnmalloc.
24631 (xnmalloc, xmalloc): Use it.
24632 (xnrealloc_inline): New static inline function,
24633 with the old contents of xnrealloc.
24634 (xnrealloc, xrealloc): Use it.
24636 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
24639 2003-10-26 Karl Berry <karl@gnu.org>
24641 * config/srclist.txt (COPYING.DOC): no longer available from
24642 /gd/gnuorg; don't know where the ultimate source is.
24644 2003-10-25 Paul Eggert <eggert@twinsun.com>
24646 Fix several address-calculation bugs in the hash modules,
24647 plus some minor code cleanup.
24649 * lib/hash.h: Include <stdbool.h>, for bool.
24650 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
24651 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
24652 hash_get_n_entries, hash_get_max_bucket_length,
24653 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
24654 hash_rehash): Use size_t rather than unsigned.
24655 * lib/hash.c (struct hash_table, hash_get_n_buckets,
24656 hash_get_n_buckets_used, hash_get_n_entries,
24657 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
24658 hash_get_entries, hash_do_for_each, hash_string, is_prime,
24659 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
24661 (SIZE_MAX): Define if not defined.
24662 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
24663 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
24665 Use const * when possible.
24666 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
24667 (check_tuning): Fix bug: if tuning parameters were very close to
24668 0 or 1, rounding errors could have caused subscript violations.
24669 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
24670 (hash_initialize): Add 'fail:' label
24671 to free table and return NULL, and use it to simplify code.
24672 Use calloc rather than clearing the storage ourself.
24673 (hash_initialize, hash_rehash): Check for arithmetic overflow in
24674 buffer size calculations.
24675 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
24676 Include <stddef.h>, for size_t.
24677 * lib/hash-pjw.c (hash_pjw): Likewise.
24678 Switch to method described by Bruno Haible.
24679 Include <limits.h>, for CHAR_BIT.
24680 (SIZE_BITS): New macro.
24682 2003-10-23 Paul Eggert <eggert@twinsun.com>
24684 * m4/getline.m4 (AM_FUNC_GETLINE):
24685 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
24686 hosts. Problem reported by Derek Robert Price in
24687 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
24688 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
24689 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
24691 2003-10-21 Paul Eggert <eggert@twinsun.com>
24693 * lib/getndelim2.c (getndelim2): When size calculation overflows,
24694 ceiling the allocation at NMAX bytes rather than silently
24695 discarding input bytes before NMAX is reached. This makes
24696 a difference only if NMAX exceeds SIZE_MAX / 2.
24698 * lib/obstack.c: Merge from glibc.
24699 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
24700 Add libc_hidden_def (_obstack_newchunk).
24701 (_obstack_free) [! defined _LIBC]: Remove.
24702 [defined _LIBC]: Make a strong alias from obstack_free, rather than
24703 a clone of the function body.
24704 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
24705 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
24707 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
24709 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
24712 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
24713 (obstack_ptr_grow_fast, obstack_int_grow_fast):
24714 Don't use lvalue casts, as GCC plans to remove support for them
24715 in GCC 3.5. Reported by Joseph S. Myers. This bug
24716 was also present in the non-GCC version, indicating that this
24717 code had always been buggy and had never been widely used.
24718 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24719 Use the fast variant of each macro, rather than copying the
24720 definiens of the fast variant; that way, we'll be more likely to
24721 catch future bugs in the fast variants.
24723 2003-10-20 Bruno Haible <bruno@clisp.org>
24725 * modules/wait-process: New file.
24726 * MODULES.html.sh (func_all_modules): Add wait-process.
24728 2003-10-20 Bruno Haible <bruno@clisp.org>
24730 * m4/wait-process.m4: New file.
24732 2003-10-20 Bruno Haible <bruno@clisp.org>
24734 * lib/wait-process.h: New file, from GNU gettext.
24735 * lib/wait-process.c: New file, from GNU gettext.
24737 2003-10-19 Jim Meyering <jim@meyering.net>
24739 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24742 2003-10-18 Karl Berry <karl@gnu.org>
24744 * config/config.guess: update from config.
24746 2003-10-16 Paul Eggert <eggert@twinsun.com>
24748 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24749 (getgroups): First arg is int, not size_t.
24750 Don't let 'free' mangle errno.
24752 2003-10-16 Paul Eggert <eggert@twinsun.com>
24754 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24756 2003-10-16 Karl Berry <karl@gnu.org>
24758 * config/config.{guess,sub}: update from config.
24760 2003-10-16 Jim Meyering <jim@meyering.net>
24762 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24765 2003-10-15 Paul Eggert <eggert@twinsun.com>
24767 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24768 (SIZE_MAX): Remove.
24769 (new_exclude, add_exclude_file): Initial size no longer needs to
24771 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24772 our own address arithmetic overflow checking.
24774 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24775 (fnmatch): Do not alloca more than 2000 wide characters;
24776 instead, use malloc for large buffers.
24777 Check for address arithmetic overflow, and return -1
24778 with errno set to ENOMEM in that case.
24779 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24780 (NEW_PATTERN): Do not alloca more than 8000 bytes;
24781 instead, return -1. Check for address arithmetic overflow.
24783 2003-10-14 Paul Eggert <eggert@twinsun.com>
24785 Handle invalid suffixes and overflow independently, so that
24786 callers can treat them independently as needed. Fix some bugs in
24787 suffix handling, e.g., "100k@" was not diagnosed as an invalid
24788 suffix for a human-readable blocksize. The major caller-visible
24789 change is the addition of a new
24790 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
24791 that both overflow and suffix chars were found.
24793 * lib/human.c (humblock): Don't check separately for invalid suffix
24794 char; that is xstrtoumax's job (now that its bug is fixed).
24795 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
24796 INTMAX_MAX]: New macros.
24797 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
24798 TYPE_MAXIMUM): New macros.
24799 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
24800 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
24801 if overflow occurs, as it's what __strtol does and it's more useful
24803 (__xstrtol): If __strtol reports some error other than ERANGE,
24804 reflect it to the caller as LONGINT_INVALID. If it reports
24805 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
24806 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
24807 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
24809 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
24810 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
24811 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
24812 [defined UINTMAX_MAX]: New macros.
24814 2003-10-14 Bruno Haible <bruno@clisp.org>
24816 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
24818 2003-10-14 Bruno Haible <bruno@clisp.org>
24820 * m4/sig_atomic_t: New file, from GNU gettext.
24821 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
24823 2003-10-14 Bruno Haible <bruno@clisp.org>
24825 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
24826 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
24827 Also use volatile where needed.
24829 2003-10-12 Paul Eggert <eggert@twinsun.com>
24831 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
24832 Change maintainer from Bruno Haible to 'all'.
24834 2003-10-12 Paul Eggert <eggert@twinsun.com>
24836 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
24838 2003-10-12 Paul Eggert <eggert@twinsun.com>
24840 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
24841 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
24842 and define in terms of the other primitives.
24843 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
24844 (SIZE_MAX): Define if not already defined.
24845 (array_size_overflow): New function.
24846 (xalloc_die): Abort instead of exiting if 'error' returns.
24847 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
24848 (xmalloc, xrealloc): Use them.
24849 (xcalloc): Check for address arithmetic overflow.
24850 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
24851 a bit faster than strcpy.
24853 2003-10-10 Simon Josefsson <jas@extundo.com>
24855 * modules/argp (Depends-on): Add restrict and strcase.
24857 2003-10-10 Simon Josefsson <jas@extundo.com>
24859 * m4/argp.m4: Add AC_C_INLINE.
24861 2003-10-08 Paul Eggert <eggert@twinsun.com>
24863 Merge getpass from libc, plus a few fixes.
24865 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
24866 Include <stdbool.h>.
24867 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
24868 __fsetlocking to empty.
24869 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
24870 do include <bits/libc-lock.h>.
24871 Do not include <fcntl.h>; not needed.
24872 [_LIBC]: Include <wchar.h>.
24873 (NOTCANCEL_MODE): New macro.
24874 (flockfile, funlockfile) [_LIBC]: New macros.
24875 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
24876 [!_LIBC]: New macros.
24877 (call_fclose): New function.
24878 (getpass): Use it. Save tty stream separately; this simplifies the
24879 code and makes it more reliable if stdin happens to equal stdout.
24880 Invoke __fsetlocking on tty.
24881 Handle thread cancellation if needed.
24882 Namespace cleanup (use __tcgetattr, __getline).
24883 Use bool for Booleans.
24884 [USE_IN_LIBIO]: Handle wide streams.
24885 [!_LIBC]: Unconditionally do the fseek, since we don't know what
24886 stream might go where.
24888 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
24889 doesn't have to include <stdio.h> before us.
24890 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
24891 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
24892 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
24893 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
24894 if not declared, so that we can use getpass.c code from libc without
24896 (flockfile, ftrylockfile, funlockfile): New macros.
24898 2003-10-08 Paul Eggert <eggert@twinsun.com>
24900 * modules/getpass: Depend on stdbool.
24902 2003-10-08 Paul Eggert <eggert@twinsun.com>
24904 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
24906 2003-10-07 Karl Berry <karl@gnu.org>
24908 * config/config.{guess,sub}: update from config.
24910 2003-10-06 Jim Meyering <jim@meyering.net>
24911 Bruno Haible <bruno@clisp.org>
24913 This lets translators provide better translations for the
24914 "Written by ..." part of --version output.
24915 * lib/version-etc.h: Include stdarg.h.
24916 (version_etc_copyright): Declare as readonly.
24917 (version_etc): Make this function variadic with a NULL-terminated list
24918 of author name strings.
24919 (version_etc_va): New declaration.
24920 * lib/version-etc.c: Include stdarg.h, stdlib.h.
24921 (version_etc_copyright): Declare as readonly.
24922 (version_etc_va): New function. Provide a different translatable string
24923 for each possible number of authors < 10. Abbreviate when there are 10
24925 (version_etc): Make this function variadic. Call version_etc_va.
24926 Suggestion from Gary V. Vaughan.
24928 * lib/long-options.h (parse_long_options): Change prototype: the
24929 authors string is moved to the end and becomes variadic.
24930 * lib/long-options.c: Include stdarg.h.
24931 (parse_long_options): Make this function variadic, too.
24932 Call version_etc_va, not version_etc.
24934 2003-10-06 Bruno Haible <bruno@clisp.org>
24936 * modules/version-etc-2: Remove file.
24937 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
24939 2003-10-06 Bruno Haible <bruno@clisp.org>
24941 * modules/fatal-signal: New file.
24942 * MODULES.html.sh (func_all_modules): Add fatal-signal.
24944 2003-10-06 Bruno Haible <bruno@clisp.org>
24946 * m4/fatal-signal.m4: New file.
24947 * m4/signalblocking.m4: New file, from GNU gettext.
24949 2003-10-06 Bruno Haible <bruno@clisp.org>
24951 * lib/version-etc-2.h: Remove file.
24952 * lib/version-etc-2.c: Remove file.
24954 2003-10-06 Bruno Haible <bruno@clisp.org>
24956 * lib/fatal-signal.h: New file, from GNU gettext.
24957 * lib/fatal-signal.c: New file, from GNU gettext.
24959 2003-10-05 Paul Eggert <eggert@twinsun.com>
24961 * README: Rework advice for preventing empty .o files.
24962 Don't recommend ELIDE constructs. Recommend <stddef.h>,
24965 2003-10-04 Karl Berry <karl@gnu.org>
24967 * lib/argp*: update from libc.
24969 2003-10-04 Karl Berry <karl@gnu.org>
24971 * config/config.{guess,sub}: update from config.
24973 2003-10-02 Bruno Haible <bruno@clisp.org>
24975 * modules/lchown (Include): Add lchown.h.
24976 * modules/time_r (Include): Use "..." syntax.
24977 * modules/xgetdomainname (Include): Add xgetdomainname.h.
24979 2003-10-01 Simon Josefsson <jas@extundo.com>
24981 * MODULES.html.sh (func_all_modules): Move gethostname from section
24982 'based on' to section 'lacking' POSIX:2001.
24984 2003-10-01 Larry Jones <lawrence.jones@eds.com>
24986 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
24987 to output mode on the same stream.
24989 2003-09-29 Paul Eggert <eggert@twinsun.com>
24991 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
24992 Fix arg typo in previous patch.
24994 2003-09-28 Jim Meyering <jim@meyering.net>
24996 * lib/error.c: Correct cpp indentation.
24998 2003-09-27 Paul Eggert <eggert@twinsun.com>
25000 * modules/free: New file.
25002 2003-09-27 Paul Eggert <eggert@twinsun.com>
25004 * m4/free.m4: New file.
25006 2003-09-27 Paul Eggert <eggert@twinsun.com>
25008 * lib/minmax.h (MIN, MAX)
25009 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
25010 Omit the special code that used __typeof__, since we worry that
25011 it could be more trouble than it's worth. See:
25012 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
25013 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
25015 * lib/free.c: New file.
25017 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
25019 Trivial fixes to Makefile.am parts of module listings.
25020 * modules/strstr: Append strstr.h to lib_SOURCES.
25021 * modules/strcase: Likewise, for strcase.h.
25023 2003-09-27 Karl Berry <karl@gnu.org>
25025 * config/mkinstalldirs: update from automake.
25027 2003-09-26 Paul Eggert <eggert@twinsun.com>
25029 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
25030 (error_tail): Do not loop, reallocating temporary buffer, since
25031 the output cannot contain more wide characters than the input
25032 contains bytes, the size must be big enough already. This avoids
25033 one potential size overflow calculation. Check for size overflow
25034 when calculating temporary buffer size. Free temporary buffer
25035 when done, if it was allocated with malloc; this plugs a memory
25036 leak. Remove casts from void * to pointers, that are no longer
25037 needed now that we're assuming C89 or better.
25039 Merge error changes from glibc.
25041 * lib/error.c, error.h: Update copyright notice header to match glibc.
25042 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
25043 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
25044 Disable cancellation while printing error.
25045 * lib/error.h: Prepend __ to parameter names.
25047 2003-09-26 Jim Meyering <jim@meyering.net>
25049 * lib/error.c (error_tail): Move some declarations
25050 into inner scope where the local variables are used.
25052 2003-09-26 Bruno Haible <bruno@clisp.org>
25054 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
25056 Don't define stpncpy through config.h; it's now done through stpncpy.h.
25058 2003-09-26 Bruno Haible <bruno@clisp.org>
25060 * lib/stpncpy.h (gnu_stpncpy): New declaration.
25061 (stpncpy): Define as alias for gnu_stpncpy.
25062 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
25064 2003-09-25 Simon Josefsson <jas@extundo.com>
25066 * lib/xgetdomainname.h: New file.
25067 * lib/xgetdomainname.c: New file.
25069 2003-09-25 Simon Josefsson <jas@extundo.com>
25070 Bruno Haible <bruno@clisp.org>
25072 * modules/getdomainname: New file.
25073 * modules/xgetdomainname: New file.
25074 * MODULES.html.sh (func_all_modules): Add getdomainname,
25077 2003-09-25 Simon Josefsson <jas@extundo.com>
25078 Bruno Haible <bruno@clisp.org>
25080 * m4/getdomainname.m4: New file.
25082 2003-09-25 Simon Josefsson <jas@extundo.com>
25083 Bruno Haible <bruno@clisp.org>
25085 * lib/getdomainname.h: New file.
25086 * lib/getdomainname.c: New file.
25088 2003-09-25 Karl Berry <karl@gnu.org>
25090 * lib/argp-fmtstream.c, argp-help.c: update from libc.
25092 2003-09-25 Karl Berry <karl@gnu.org>
25094 * config/install-sh: update from automake.
25096 2003-09-25 Bruno Haible <bruno@clisp.org>
25098 * modules/version-etc-2: New file, from modules/version-etc with
25100 * MODULES.html.sh (func_all_modules): Add version-etc-2.
25102 2003-09-25 Bruno Haible <bruno@clisp.org>
25104 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
25105 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
25107 2003-09-24 Simon Josefsson <jas@extundo.com>
25109 * modules/xgethostname: Add xgethostname.h.
25111 2003-09-24 Paul Eggert <eggert@twinsun.com>
25113 * lib/linebuffer.c (freebuffer): Don't free the argument, just
25114 the buffer associated with the argument. Bug reported by
25117 2003-09-24 Paul Eggert <eggert@twinsun.com>
25119 * README: Document assumptions that 'int' is at least 32 bits
25120 wide, that integer arithmetic is 2's complement without overflow,
25121 that there are no holes in integer values, that adding sizes of
25122 two nonoverlapping objects can't overflow, and that all-bits-zero
25123 yields scalar zero. Fix spelling and capitalization typos.
25125 2003-09-19 Karl Berry <karl@gnu.org>
25127 * lib/argp.h: update from libc.
25129 2003-09-17 Paul Eggert <eggert@twinsun.com>
25131 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
25132 to avoid spurious warnings like "AC_RUN_IFELSE was called before
25133 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
25135 2003-09-17 Paul Eggert <eggert@twinsun.com>
25137 * gnulib-tool: Use "test -h", not "test -L", for portability
25138 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
25139 (tags_regexp): Remove, since \| doesn't conform to POSIX.
25140 (sed_extract_prog): Issue s commands one-by-one, rather than
25141 using \| in one s command.
25143 2003-09-16 Paul Eggert <eggert@twinsun.com>
25145 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
25146 input error, instead of returning NULL the next time we are called
25147 (and therefore losing track of errno).
25149 2003-09-16 Bruno Haible <bruno@clisp.org>
25151 * gnulib-tool (func_create_testdir): Warn about duplicated
25154 2003-09-15 Paul Eggert <eggert@twinsun.com>
25156 * modules/argmatch, modules/fatal, modules/obstack,
25157 modules/xalloc, modules/xgethostname: Sort dependencies by
25158 importance, not alphabetically.
25160 2003-09-15 Paul Eggert <eggert@twinsun.com>
25162 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
25163 fails, so that the caller gets the proper errno.
25165 * lib/readutmp.c (read_utmp): Likewise.
25166 Check for fstat error. Close stream and free storage
25169 2003-09-14 Karl Berry <karl@gnu.org>
25171 * config/srclist.txt (strdup.c): disable for c89 changes.
25173 2003-09-14 Jim Meyering <jim@meyering.net>
25175 * lib/getloadavg.c: Correct cpp indentation.
25176 * lib/strdup.c: Likewise.
25177 * lib/vasnprintf.c: Likewise.
25179 2003-09-14 Bruno Haible <bruno@clisp.org>
25181 * modules/fwriteerror: New file.
25182 * MODULES.html.sh (func_all_modules): Add fwriteerror.
25184 2003-09-14 Bruno Haible <bruno@clisp.org>
25186 * lib/fwriteerror.h: New file.
25187 * lib/fwriteerror.c: New file.
25189 2003-09-12 Paul Eggert <eggert@twinsun.com>
25191 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
25192 modules/xgethostname, modules/xalloc: Depend on exit.
25194 2003-09-12 Paul Eggert <eggert@twinsun.com>
25196 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
25198 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
25199 and AC_MINIX, too, so that their extensions are available.
25201 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
25202 This macro has been superseded by gl_BACKUPFILE.
25204 More patches to assume C89 or better.
25206 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
25208 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
25210 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
25211 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
25212 Include <string.h>, <stdlib.h> unconditionally.
25213 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
25214 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
25215 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
25216 headers or for string.h.
25217 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
25220 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
25222 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
25223 * m4/userspec.m4 (gl_USERSPEC): Likewise.
25224 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
25225 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
25226 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25227 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
25229 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
25230 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
25231 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
25233 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
25234 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
25235 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
25238 2003-09-12 Paul Eggert <eggert@twinsun.com>
25240 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
25241 * lib/obstack.c [!defined _LIBC]: Likewise.
25242 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
25243 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
25244 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
25246 More changes to assume C89 or better.
25248 * lib/error.c (error_tail): Assume vprintf.
25250 * lib/argmatch.c (getenv): Remove decl.
25251 * lib/progreloc.c (get_full_program_name): Define via prototype.
25252 * lib/setenv.c (clearenv): Likewise.
25253 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
25255 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
25256 (malloc, memcpy): Remove decls.
25257 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
25258 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
25259 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25260 (memcpy): Remove macro.
25261 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
25262 (__P): Remove. All uses removed.
25263 (PTR): Remove. All uses changed to void *.
25264 (CHAR_BIT, NULL): Remove.
25265 (spaces, zeros, memset_space, memset_zero)
25266 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
25268 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
25269 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
25270 Define with prototype.
25271 Remove now-unnecessary prototype decl.
25272 (extra_args_spec): Assume ANSI C. All uses changed.
25273 (extra_args_spec_iso): Remove.
25274 (my_strftime, emacs_strftimeu): Define via prototype.
25275 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
25277 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
25278 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
25279 (strtoul, strtol): Remove decls.
25280 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
25282 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25283 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
25284 (LOCALE_PARAM_PROTO): New macro.
25285 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
25286 (INTERNAL (strtol), strtol): Define with a prototype.
25287 (PARAMS): Remove. All uses removed.
25288 * lib/tempname.c: Include <string.h> unconditionally.
25289 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
25290 * lib/xgethostname.c (main): Define with a prototype.
25291 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
25292 Include <stdlib.h> unconditionally.
25293 (calloc, malloc, realloc, free): Remove decls.
25294 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
25295 Include <stdlib.h> unconditionally. Sort include file names.
25297 (xstrtod): Define with a prototype.
25298 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
25299 (strtol, strtoul): Remove decls.
25301 2003-09-11 Paul Eggert <eggert@twinsun.com>
25303 More patches to assume C89 or better.
25304 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
25305 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
25306 string.h, memchr, STDC_HEADERS.
25308 2003-09-11 Paul Eggert <eggert@twinsun.com>
25310 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
25311 Include <stdlib.h>, <string.h> unconditionally.
25312 Remove now-unnecessary cast to char *.
25313 * lib/strnlen.c: Include <string.h> unconditionally.
25314 * lib/yesno.c (yesno): Define with a prototype.
25316 2003-09-11 Bruno Haible <bruno@clisp.org>
25318 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
25320 2003-09-10 Jim Meyering <jim@meyering.net>
25322 * lib/error.c: Correct indentation of cpp directives.
25324 2003-09-10 Bruno Haible <bruno@clisp.org>
25326 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
25327 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
25328 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
25329 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
25330 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
25331 <stdlib.h> and <string.h> checks.
25332 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
25333 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
25335 2003-09-10 Bruno Haible <bruno@clisp.org>
25337 * lib/strcspn.c: Include <string.h> unconditionally.
25338 * lib/strpbrk.c: Include <string.h> unconditionally.
25339 * lib/strstr.c: Include <string.h> unconditionally.
25340 * lib/unicodeio.c: Include <string.h> unconditionally.
25341 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
25342 * lib/unsetenv.c: Likewise.
25343 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
25344 * lib/yesno.c: Include <stdlib.h> unconditionally.
25345 (rpmatch): Add prototype.
25347 2003-09-09 Paul Eggert <eggert@twinsun.com>
25349 More patches to assume C89 or better.
25350 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
25351 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
25352 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
25354 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
25356 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
25358 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
25360 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
25361 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
25362 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
25364 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
25365 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
25367 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
25369 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
25370 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
25371 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
25372 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
25373 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
25374 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
25376 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
25377 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
25378 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
25379 C headers, or for string.h.
25380 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
25381 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
25382 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
25383 headers, memory.h, stdlib.h, string.h, strings.h.
25384 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
25385 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
25386 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
25388 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
25389 headers, memory.h, string.h.
25390 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
25391 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
25393 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
25395 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
25396 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
25397 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
25398 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
25399 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
25401 2003-09-09 Paul Eggert <eggert@twinsun.com>
25405 * lib/acosl.c (main): Use a prototype.
25406 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
25409 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
25411 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
25412 (getopt, etopt_long, getopt_long_only, _getopt_internal)
25413 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
25415 * lib/getopt.c (const): Remove macro.
25416 Include <string.h> unconditionally.
25417 (my_index): Remove; all uses changed to strchr.
25418 (strlen): Remove decl.
25419 (exchange): Remove forward decl; no longer needed.
25420 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
25421 Define with prototype.
25422 * lib/getopt1.c (const): Remove macro.
25423 (getopt_long, getopt_long_only, main): Define with prototype.
25425 * lib/getugroups.c: Include <string.h> unconditionally.
25427 * lib/getusershell.c: Include <stdlib.h> unconditionally.
25428 (getusershell, setusershell, endusershell, readname, main):
25429 Define with prototypes.
25431 * lib/group-member.c: Include group-member.h first.
25432 Include <stdlib.h> unconditionally.
25434 * lib/hard-locale.c: Include hard-locale.h first.
25435 Include <stdlib.h>, <string.h> unconditionally.
25437 * lib/hash.c (free, malloc): Remove decls.
25438 Include <stdlib.h> unconditionally.
25440 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
25441 (getenv): Do not declare.
25443 * lib/idcache.c: Include <string.h> unconditionally.
25445 * lib/long-options.c: Include long-options.h first, to test interface.
25446 Include <stdlib.h> unconditionally.
25448 * lib/makepath.c: Include makepath.h first, to test interface.
25449 Include <stdlib.h> and <string.h> unconditionally.
25451 * lib/linebuffer.c: Include <stdlib.h>.
25452 (free): Remove decl.
25454 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
25455 stddef.h. rpl_malloc returns void *, not char *.
25456 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
25459 * lib/md5.h: Include <limits.h> unconditionally.
25460 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
25461 (__P): Remove; all uses removed.
25462 * lib/md5.c: Include "md5.h" first.
25463 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
25464 md5_buffer, md5_process_bytes, md5_process_block):
25465 Define with prototypes.
25466 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
25467 * lib/sha.c: Include "sha.h" first.
25468 Include <stdlib.h>, <string.h> unconditionally.
25470 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
25471 * lib/memcmp.c (__ptr_t): Likewise.
25472 * lib/memrchr.c (__ptr_t): Likewise.
25473 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
25474 Include <string.h> unconditionally.
25475 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
25476 * lib/memchr.c: Include <stdlib.h> unconditionally.
25477 * lib/memchr.c (LONG_MAX): Remove.
25478 * lib/memrchr.c (LONG_MAX): Likewise.
25479 * lib/memchr.c (__memchr): Define via a prototype.
25480 * lib/memrchr.c (__memrchr): Likewise.
25481 * lib/memcmp.c (__P): Remove, and remove all uses.
25482 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
25483 Remove forward decls; no longer needed.
25484 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
25485 Use types required by C89 in prototype.
25487 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
25488 * lib/savedir.c: Likewise.
25489 * lib/mkdir.c (free): Remove decl.
25490 * lib/rmdir.c (rmdir): Define with a prototype.
25491 * lib/savedir.c: Include savedir.h first, to test interface.
25493 * lib/mktime.c (STDC_HEADERS): Remove.
25494 Include <stdlib.h>, <string.h> unconditionally.
25496 * lib/modechange.c: Include <stdlib.h> unconditionally.
25497 (malloc): Remove decl.
25499 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
25500 (free): Remove decl.
25502 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
25503 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
25504 (This type really should be intptr_t, but that's a C99ism.)
25505 (_obstack_memcpy): Remove: all uses changed to memcpy.
25506 Include <string.h> unconditionally.
25507 (struct obstack): Assume __STDC__ for types of members
25508 chunkfun, freefun, extra_arg.
25509 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
25510 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
25511 obstack_begin, obstack_specify_allocation,
25512 obstack_specify_allocation_with_arg, obstack_chunkfun,
25513 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
25514 Remove unprototyped decls and the macros that use them.
25515 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
25516 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
25517 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
25518 (defined __STDC__ && __STDC__)]:
25519 Remove nonprototyped code.
25520 Include <stdlib.h> unconditionally.
25521 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
25522 _obstack_allocated_p, _obstack_free, obstack_free,
25523 _obstack_memory_used, print_and_abort):
25524 Define using prototypes.
25525 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
25526 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
25527 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
25528 obstack_next_free, obstack_object_size, obstack_room) [0]:
25529 Remove unused, unprototyped code.
25531 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
25533 * lib/physmem.c (physmem_total, physmem_available, main): Define
25536 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
25537 (main): Define with a prototype.
25539 * lib/posixver.c (getenv): Remove decl.
25541 * lib/putenv.c (malloc): Returns void *, not char *.
25542 Include <string.h> unconditionally.
25543 (strchr, memcpy, NULL): Do not define.
25545 * lib/readtokens.c: Include readtokens.h first, to test interface.
25546 Include <stdlib.h>, <string.h> unconditionally.
25547 (init_tokenbuffer): Define with a prototype.
25549 * lib/regex.c (PARAMS): Remove. All uses removed.
25550 All uses of _RE_ARGS removed, too.
25551 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25553 (bzero): Assume memset exists.
25554 (memcmp, memcpy, NULL): Remove.
25555 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
25556 char, or assignments to local vars of type signed char.
25557 (init_syntax_once, PREFIX(extract_number_and_incr),
25558 PREFIX(print_partial_compiled_pattern),
25559 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
25560 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
25561 PREFIX(regex_grow_registers), PREFIX(regex_compile),
25562 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
25563 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
25564 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
25565 wcs_compile_range, byte_compile_range, truncate_wchar,
25566 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
25567 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
25568 count_mbs_length, wcs_re_match_2_internal,
25569 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
25570 PREFIX(alt_match_null_string_p),
25571 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
25572 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
25573 regfree, PREFIX(extract_number)): Define with prototype. Remove
25574 now-unnecessary declaration, if any.
25575 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
25577 Remove now-unnecessary casts among pointer types.
25578 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
25580 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
25581 (free): Remove decl.
25583 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
25585 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
25586 (free): Remove decl.
25588 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
25589 * lib/xgetcwd.c: Likewise.
25591 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
25592 (free): Remove decl.
25594 * lib/strchrnul.c (strchrnul): Define with a prototype.
25595 Fix bug: c_in was not converted to char before searching.
25597 The following changes are not K&R related:
25599 * lib/group-member.h: Include <sys/types.h>, so that this file is
25601 * lib/makepath.h: Likewise.
25603 * lib/getusershell.c (readname, default_index, line_size, readname):
25604 Use size_t, not int, for sizes.
25605 (readname): If the size overflows, report an error instead of
25608 2003-09-09 Paul Eggert <eggert@twinsun.com>
25610 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
25613 2003-09-09 Paul Eggert <eggert@twinsun.com>
25615 * README: New section: portability guidelines.
25617 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25619 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
25622 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25624 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
25626 2003-09-08 Paul Eggert <eggert@twinsun.com>
25628 Assume C89 or better; remove K&R cruft.
25629 A few of these changes were first proposed by Derek Robert Price
25630 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
25632 * lib/addext.c: Include <string.h> unconditionally.
25633 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
25634 Don't declare getenv or malloc.
25636 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
25637 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
25639 (find_stack_direction, alloca): Use prototypes.
25641 * lib/atexit.c (atexit): Define using a prototype.
25643 * lib/basename.c, dirname.c, stripslash.c:
25644 Include <string.h> unconditionally.
25646 * lib/bcopy.c: Include <stddef.h>.
25647 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
25649 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
25651 * lib/error.h (error, error_at_line, error_print_progname)
25652 [! (defined (__STDC__) && __STDC__)]: Remove decls.
25653 * lib/error.c: Include error.h first, to check interface.
25654 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25655 (VA_START): Remove; all uses changeed to va_start.
25656 (exit, strerror): Remove decls.
25657 (error_print_progname): Prototype uncondionally.
25658 Don't include <errno.h>; no longer needed.
25659 (private_strerror): Remove.
25660 (error_tail): Always define.
25661 (error, error_at_line): Assume C89 or better; always use prototypes.
25662 * lib/fatal.c: Include "fatal.h" first, to test interface.
25663 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25664 (VA_START): Remove; all uses changed to va_start.
25665 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
25667 (exit): Remove decl.
25668 (fatal): Prototype unconditionally. Assume va_start works.
25669 Abort at end, to pacify gcc.
25671 * lib/euidaccess.c (main): Define with a prototype.
25673 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
25675 * lib/exitfail.c: Include <stdlib.h> unconditionally.
25677 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
25679 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
25680 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
25681 (getenv): Remove decl.
25682 (fnmatch): Define using a prototype.
25683 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
25684 (FCT): Define using a prototype.
25686 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
25688 * lib/gethostname.c: Include <stddef.h>.
25689 (gethostname): Define with prototype. Length is size_t, not int.
25691 2003-09-08 Paul Eggert <eggert@twinsun.com>
25693 Assume C89 or better; remove K&R cruft.
25694 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
25695 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
25696 string.h, getenv, malloc.
25697 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
25699 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
25700 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
25701 do not check for strerror.
25702 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
25703 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
25704 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
25705 do not check for doprnt or vprintf.
25706 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
25707 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
25709 2003-09-08 Paul Eggert <eggert@twinsun.com>
25711 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
25712 getversion.c should have been removed then, but was accidentally
25715 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25716 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25718 2003-09-08 Karl Berry <karl@gnu.org>
25720 * config/config.sub, config.guess, srclistvars.sh: update from savannah
25721 config, forget about prep.
25723 * config/depcomp, missing: update from automake.
25725 2003-09-07 Paul Eggert <eggert@twinsun.com>
25727 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
25728 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25730 2003-09-07 Paul Eggert <eggert@twinsun.com>
25732 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25733 copy_tm_result. Bug reported by Simon Josefsson in
25734 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25736 2003-09-06 Paul Eggert <eggert@twinsun.com>
25738 * m4/time_r.m4: New file.
25739 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25740 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25741 is. Check for timegm declaration.
25742 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25743 Do not check for gmtime_r.
25744 Replace mktime if __mktime_internal does not exist and if mktime
25745 hasn't been replaced already.
25747 2003-09-06 Paul Eggert <eggert@twinsun.com>
25749 * lib/time_r.c, lib/time_r.h: New files.
25751 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25753 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
25754 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25756 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25758 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25759 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25760 Include <time_r.h>.
25762 * lib/timegm.c: Switch to glibc implementation, with the following
25764 [defined HAVE_CONFIG_H]: Include <config.h>.
25765 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25766 (__mktime_internal) [!defined _LIBC]: New decl.
25767 (__gmtime_r) [!defined _LIBC]: New macro and function.
25768 (timegm): Use a prototype, since gnulib assumes C89.
25769 Do not bother declaring tmp to be const, as it's not really usefu.
25770 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25771 (timegm): Declare only if HAVE_DECL_TIMEGM.
25773 2003-09-06 Paul Eggert <eggert@twinsun.com>
25775 * MODULES.html.sh (func_all_modules): Add time_r.
25776 * modules/time_r: New file.
25777 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25778 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
25780 2003-09-03 Paul Eggert <eggert@twinsun.com>
25782 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
25783 Bug reported by Lute Kamstra in
25784 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
25786 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
25787 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
25788 course with correspondingly smaller numbers for tomorrow and
25789 yesterday. From Tadayoshi Funaba. Originally installed into
25790 sh-utils on 1999-08-07, but the patch got lost (I guess during the
25793 2003-08-31 Simon Josefsson <jas@extundo.com>
25795 * modules/timegm: New file.
25796 * MODULES.html.sh (func_all_modules): Add timegm.
25798 2003-08-31 Simon Josefsson <jas@extundo.com>
25800 * m4/timegm.m4: New file.
25802 2003-08-31 Simon Josefsson <jas@extundo.com>
25804 * lib/timegm.h: New file.
25805 * lib/timegm.c: New file. Based on
25806 wget-1.8.2/src/http.c:mktime_from_utc.
25808 2003-08-31 Karl Berry <karl@gnu.org>
25810 * lib/argp.h: update from libc.
25812 2003-08-28 Bruno Haible <bruno@clisp.org>
25814 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
25815 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
25816 followed by '#define fnmatch fnmatch_posix' gives an error.
25818 2003-08-28 Bruno Haible <bruno@clisp.org>
25820 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
25821 warning on QNX, which defines O_BINARY to 000000.
25823 2003-08-27 Jim Meyering <jim@meyering.net>
25825 * m4/mkstemp.m4: Require that the system mkstemp be able to create
25826 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
25827 would fail after 32. Reported by Danny Levinson. Details here:
25828 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
25830 2003-08-24 Bruno Haible <bruno@clisp.org>
25832 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
25833 MSVC7 <stdio.h> is included later.
25835 2003-08-22 Simon Josefsson <jas@extundo.com>
25837 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
25839 2003-08-20 Karl Berry <karl@gnu.org>
25841 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
25843 2003-08-20 Bruno Haible <bruno@clisp.org>
25845 * modules/progname: New file.
25846 * MODULES.html.sh (func_all_modules): Add progname.
25848 2003-08-20 Bruno Haible <bruno@clisp.org>
25850 * lib/progname.h: New file, from GNU gettext.
25851 * lib/progname.c: New file, from GNU gettext.
25852 * lib/progreloc.c: New file, from GNU gettext.
25854 2003-08-19 Jim Meyering <jim@meyering.net>
25856 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
25857 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
25859 2003-08-19 Bruno Haible <bruno@clisp.org>
25861 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
25864 2003-08-19 Bruno Haible <bruno@clisp.org>
25866 * lib/xstrdup.c: Assume <string.h> exists.
25868 2003-08-18 Paul Eggert <eggert@twinsun.com>
25870 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
25873 2003-08-18 Jim Meyering <jim@meyering.net>
25875 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
25876 * m4/lib-ld.m4: Likewise.
25878 2003-08-18 Jim Meyering <jim@meyering.net>
25880 * lib/setenv.h: Indent nested cpp directive.
25881 * lib/vasnprintf.c: Remove trailing blanks.
25883 2003-08-17 Simon Josefsson <jas@extundo.com>
25885 * modules/xstrndup: New file.
25886 * MODULES.html.sh (func_all_modules): Add xstrndup.
25888 2003-08-17 Simon Josefsson <jas@extundo.com>
25890 * modules/argp: Fix autoconf macro name. Add more dependencies.
25892 2003-08-17 Simon Josefsson <jas@extundo.com>
25894 * m4/xstrndup.m4: New file.
25896 2003-08-17 Simon Josefsson <jas@extundo.com>
25898 * m4/argp.m4: New file.
25900 2003-08-17 Simon Josefsson <jas@extundo.com>
25901 Bruno Haible <bruno@clisp.org>
25903 * lib/xstrndup.h: New file.
25904 * lib/xstrndup.c: New file.
25906 2003-08-17 Bruno Haible <bruno@clisp.org>
25908 * modules/strndup (Files, Include): Add lib/strndup.h.
25910 2003-08-17 Bruno Haible <bruno@clisp.org>
25912 * modules/euidaccess (Files): Add lib/euidaccess.h.
25914 2003-08-17 Bruno Haible <bruno@clisp.org>
25916 * lib/strndup.h: New file.
25918 2003-08-17 Bruno Haible <bruno@clisp.org>
25920 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
25921 like AC_GNU_SOURCE.
25922 * modules/extensions (configure.ac): Comment out the invocation of
25923 gl_USE_SYSTEM_EXTENSIONS.
25925 2003-08-16 Paul Eggert <eggert@twinsun.com>
25927 Merges from coreutils, etc.
25928 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
25929 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
25930 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
25932 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
25933 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
25935 2003-08-16 Paul Eggert <eggert@twinsun.com>
25937 Document merge from coreutils.
25938 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
25939 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
25940 * modules/utime: Add m4/utimes-null.m4.
25942 2003-08-16 Paul Eggert <eggert@twinsun.com>
25944 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
25945 space, undoing this 2003-08-12 change:
25946 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25948 2003-08-16 Paul Eggert <eggert@twinsun.com>
25950 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
25951 strtoul.c from libc, undoing this 2003-08-12 change:
25952 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25954 2003-08-16 Jim Meyering <jim@meyering.net>
25956 Merges from coreutils.
25957 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
25958 prefix. Adjust cache variables similarly. Create 500 rather than
25959 just 300 files, to exercise bug on Darwin6.5, too.
25960 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
25962 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
25963 AM_SYS_POSIX_TERMIOS.
25964 Reported by mkc@mathdogs.com.
25965 Also change use of $am_cv_sys_posix_termios
25966 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
25967 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
25968 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
25969 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
25970 in /proc/mounts until it finds one with matching device number. This
25971 is unnecessary when the FILE argument *is* a mount point. No stat call
25972 is necessary in that case. So, disable the statvfs-testing code on
25973 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
25974 as RedHat bug# 84846.
25975 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25976 to 1MB, so as not to render systems with no stack size limit (e.g.,
25977 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25978 Include <unistd.h>. On some systems,
25979 it is required for the definition of _SC_PAGESIZE.
25981 2003-08-16 Jim Meyering <jim@meyering.net>
25983 Merge from coreutils.
25984 * lib/xstrtoimax.c: #else #if -> #elif.
25985 * lib/xstrtoumax.c: Likewise.
25987 2003-08-16 Jim Meyering <jim@meyering.net>
25989 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
25990 * m4/utimes.m4: Removed.
25991 * m4/utimes-null.m4: Renamed from utimes.m4.
25993 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25994 to 1MB, so as not to render systems with no stack size limit (e.g.,
25995 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25996 Include <unistd.h>. On some systems,
25997 it is required for the definition of _SC_PAGESIZE.
25999 2003-08-16 Jim Meyering <jim@meyering.net>
26000 and Paul Eggert <eggert@cs.ucla.edu>
26002 Merges from coreutils, etc.
26004 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
26005 using the latest version from cvs. This avoids problems with #line
26006 directives using a vendor (Sun) compiler.
26007 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
26008 Don't set GETGROUPS_LIB here; now it's
26009 done via getgroups.m4's wrapper function.
26010 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
26011 rather than just in sh-util/configure.in, so that the
26012 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
26014 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
26015 AC_FUNC_GETLOADAVG where to find getloadavg.c.
26016 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
26017 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
26018 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
26019 Remove code that is now done by the newly-required macros.
26020 Append $(EXEEXT) to DF_PROG.
26021 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
26022 Do not invoke or require the following here,
26023 since prereq.m4 or some gnulib .m4 now does this for us:
26024 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
26025 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
26026 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
26027 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
26028 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
26029 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
26030 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
26032 Do not replace the following functions, as this is now the job
26033 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
26034 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
26035 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
26036 atexit getpass, strdup, getpagesize.
26038 Do not check for the following functions, as this is now the job
26039 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
26040 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
26042 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
26043 Check for sys/sysctl.h.
26044 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
26045 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
26046 of checking for ssize_t ourselves.
26048 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
26049 Require every macro that gnulib/modules/* suggests for us.
26050 (jm_PREREQ_ADDEXT): New macro.
26051 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
26052 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
26054 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
26055 (gl_PHYSMEM): Use it.
26056 Also check for `table' function.
26057 Check for new headers and functions.
26058 Add check for sys/sysmp.h.
26059 With suggestions from Kaveh Ghazi.
26060 Ignore headers that are present but cannot be compiled. This
26061 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
26064 2003-08-15 Paul Eggert <eggert@twinsun.com>
26066 Document merge from coreutils.
26067 * modules/userspec: Depend on posixver.
26068 * modules/strftime: Depend on tzset.
26070 2003-08-15 Paul Eggert <eggert@twinsun.com>
26072 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
26073 rather than tab, after '#' in shell-script copyright notices.
26074 Suggested by Bruno Haible.
26076 2003-08-15 Paul Eggert <eggert@twinsun.com>
26078 * config/srclist-update: Use three spaces, rather than tab, after '#'
26079 in shell-script copyright notices. Suggested by Bruno Haible.
26080 Remove unnecessary parenthesization in regular expression.
26082 2003-08-15 Jim Meyering <jim@meyering.net>
26084 Merge from coreutils.
26085 * lib/xgethostname.c: Include <stdlib.h>.
26086 (xghostname): Don't exit for anything other than memory-related
26087 failure; just return NULL.
26088 * lib/userspec.c: Include "posixver.h".
26089 (parse_user_spec): Accept `.' as a separator only
26090 in pre-POSIX-200112 mode.
26091 * lib/strtoimax.c: Use #elif rather than #else #if.
26092 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
26093 Remove function, now that we can rely on a working tzset function.
26094 [!_LIBC]: Ensure that the required autoconf test has been run.
26095 [!defined _NL_CURRENT && HAVE_STRFTIME]:
26096 Use underlying_strftime for %r.
26097 * lib/sha.c: Merge in some clean-up and optimization changes from
26099 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
26100 Ensure that it is a multiple of 64.
26101 Rearrange loop exit tests so as to avoid performing an
26102 additional fread after encountering an error or EOF.
26103 * lib/realloc.c: Update copyright date.
26105 2003-08-15 Jim Meyering <jim@meyering.net>
26106 and Paul Eggert <eggert@twinsun.com>
26108 Merge from coreutils.
26109 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
26110 member but strut utmpx does not. Needed for AIX 4.3.3.
26111 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
26113 2003-08-15 Jim Meyering <jim@meyering.net>
26114 and Paul Eggert <eggert@cs.ucla.edu>
26116 Merges from coreutils, etc.
26117 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
26118 Require gl_FUNC_TZSET_CLOBBER.
26119 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
26120 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
26123 2003-08-14 Paul Eggert <eggert@twinsun.com>
26125 Help the merge from coreutils.
26126 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
26127 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
26128 * m4/tzset.m4: Use it too.
26130 2003-08-14 Paul Eggert <eggert@twinsun.com>
26132 * modules/tzset: New file.
26134 2003-08-14 Jim Meyering <jim@meyering.net>
26136 Merges from coreutils.
26137 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
26138 variable names, rather than @FNMATCH_H@.
26139 * modules/alloca: Likewise for $(ALLOCA_H).
26141 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
26142 the three copies of the literal target, `fnmatch.h'.
26143 * modules/alloca (alloca.h): Likewise.
26145 2003-08-14 Jim Meyering <jim@meyering.net>
26147 Merge from coreutils.
26148 * m4/tzset.m4: New file.
26149 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
26150 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
26151 otherwise, AIX 5.1 systems would end up using the latter.
26152 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
26153 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
26154 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
26155 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
26157 2003-08-14 Jim Meyering <jim@meyering.net>
26159 Merge from coreutils.
26160 * lib/obstack.h: Whitespace changes.
26161 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
26162 and xcalloc return values.
26163 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
26164 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
26165 hang on OSF/1 5.1 for DIR on both local and remote file systems.
26166 Reported by (and fix confirmed by) Nelson H. F. Beebe.
26167 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26169 Use mntctl's return value to drive the entry-processing loop, since
26170 we can't rely on the value of the vmt_length member in the last
26171 entry. On some systems doing so could result in exhausting
26172 virtual memory. Based in part on a patch from Mike Jetzer.
26174 2003-08-14 Jim Meyering <jim@meyering.net>
26175 and Paul Eggert <eggert@twinsun.com>
26177 Merges from coreutils, plus other fixes.
26178 * lib/physmem.c: Merge in portability changes from gcc/libiberty
26179 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
26180 for credits and details. Thanks to Kaveh Ghazi for helping
26181 to keep these files in sync.
26182 (ARRAY_SIZE): Define it.
26183 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
26184 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
26185 (memcasecmp): Don't assume size_t fits in unsigned int.
26186 Remove casts and duplicate code.
26187 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
26188 (memcpy): Remove definition.
26189 Merge in some clean-up and optimization changes from glibc.
26190 [BLOCKSIZE]: Move definition to top of file.
26191 Ensure that it is a multiple of 64.
26192 Rearrange loop exit tests so as to avoid performing an
26193 additional fread after encountering an error or EOF.
26194 * lib/md5.h (md5_uintptr): Define.
26195 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
26196 return to the initial working directory. Preserve errno
26198 * lib/idcache.c: Include "xalloc.h".
26199 (xmalloc, xrealloc): Remove decls.
26200 (getuser): Remove casts no longer required in C89.
26201 * lib/human.c: Include stdio.h, for sprintf.
26202 * lib/group-member.c: Include "xalloc.h".
26203 (xmalloc, xrealloc): Remove decls.
26204 (get_group_info): Remove casts no longer required in C89.
26205 * lib/getusershell.c (readname): Remove casts no longer required in
26207 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
26208 * lib/getline.c: Whitespace fix, from coreutils.
26210 2003-08-13 Paul Eggert <eggert@twinsun.com>
26212 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
26215 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26216 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26217 Undo previous (whitespace-only) change.
26219 2003-08-13 Paul Eggert <eggert@twinsun.com>
26221 * lib/exclude.c: Include <ctype.h>
26222 (IN_CTYPE_DOMAIN): New macro.
26223 (is_space): New fn.
26224 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
26227 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26228 Undo previous (whitespace-only) change.
26230 2003-08-13 Paul Eggert <eggert@twinsun.com>
26232 * config/srclist-update: Change update back to the old behavior,
26233 leaving whitespace alone. Use one 'sed' command rather than a
26235 (fixlicense): Now a variable, not a function.
26236 (remove_trailing_blanks): Remove.
26237 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
26238 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26239 Undo previous (whitespace-only) change.
26241 2003-08-12 Paul Eggert <eggert@twinsun.com>
26243 Merge from coreutils.
26244 * modules/euidaccess: Add lib_SOURCES, include for new
26247 2003-08-12 Paul Eggert <eggert@twinsun.com>
26249 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26250 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26251 Normalize leading white space and remove trailing white space.
26253 Merge from coreutils
26254 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
26256 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
26257 0.12.1. These files are now being upgraded automatically by
26258 ../config/srclist-update.
26260 2003-08-12 Paul Eggert <eggert@twinsun.com>
26262 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26263 Normalize leading white space and remove trailing white space.
26264 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
26265 notice, as per ../config/srclist-update.
26267 Merge from coreutils.
26268 * lib/euidaccess.h: New file.
26269 * lib/euidaccess.c: Include it.
26270 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
26271 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
26272 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
26274 2003-08-12 Paul Eggert <eggert@twinsun.com>
26276 * config/srclist-update: Add copyright notice.
26277 (remove_id_lines, remove_trailing_blanks): New constants.
26278 (fixfile): Use them to normalize spacing a bit in copied files.
26279 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26280 Normalize leading white space and remove trailing white space.
26282 * config/texinfo.tex: Sync with texinfo.
26284 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
26285 strtoul.c from libc, to merge coreutils whitespace changes.
26287 * config/srclist.txt: Get the following m4 files from gettext:
26288 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
26289 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
26290 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
26293 2003-08-12 Karl Berry <karl@gnu.org>
26295 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
26298 2003-08-11 Paul Eggert <eggert@twinsun.com>
26300 * modules/gnu-source, m4/gnu-source.m4:
26301 Remove; we're assuming Autoconf 2.54 or later now.
26302 Suggested by Bruno Haible.
26303 * MODULES.html.sh (func_all_modules): Remove gnu-source.
26305 2003-08-11 Bruno Haible <bruno@clisp.org>
26307 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
26309 2003-08-11 Bruno Haible <bruno@clisp.org>
26311 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
26312 (vasnprintf): Use it instead of wcslen.
26314 2003-08-11 Bruno Haible <bruno@clisp.org>
26316 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
26317 value to ensure that _Bool promotes to int. Use #define for _Bool when
26318 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
26320 2003-08-10 Karl Berry <karl@gnu.org>
26322 * lib/regex.h: update from libc (whitespace fix).
26324 2003-08-09 Paul Eggert <eggert@twinsun.com>
26326 Merge some files from coreutils. These changes were
26327 originally made by Jim Meyering.
26328 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
26329 many older Unixes require this.
26330 * lib/alloca.c (alloca): Remove cast to argument of free;
26331 no longer needed in C89.
26332 * lib/alloca_.h, regex.h: Fix white space to match
26333 what GNU indent does.
26335 2003-08-09 Paul Eggert <eggert@twinsun.com>
26337 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
26338 apparently Emacs's Unicode mode got confused before my 2003-08-05
26341 2003-08-08 Paul Eggert <eggert@twinsun.com>
26343 * m4/extensions.m4: New file.
26344 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
26345 Require gl_USE_SYSTEM_EXTENSIONS.
26346 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
26347 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
26349 2003-08-08 Paul Eggert <eggert@twinsun.com>
26351 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
26352 * modules/extensions, modules/gnu-source: New files.
26353 * modules/timespec, modules/unlocked-io: Depend on extensions.
26355 2003-08-07 Paul Eggert <eggert@twinsun.com>
26357 * modules/restrict: New file.
26358 * MODULES.html.sh (func_all_modules): Add restrict.
26359 * modules/regex: Depend on restrict.
26361 2003-08-07 Paul Eggert <eggert@twinsun.com>
26363 * m4/restrict.m4: New file.
26364 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
26366 2003-08-07 Bruno Haible <bruno@clisp.org>
26368 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
26369 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
26371 2003-08-07 Bruno Haible <bruno@clisp.org>
26373 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
26374 makes the module 'getndelim2' compatible with the module 'getline'.
26376 2003-08-05 Paul Eggert <eggert@twinsun.com>
26378 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
26379 byte with "\201" to avoid glitches when editing that source file
26380 with multi-gnome-terminal.
26382 2003-08-05 Paul Eggert <eggert@twinsun.com>
26384 * lib/bumpalloc.h: Remove.
26386 2003-08-05 Paul Eggert <eggert@twinsun.com>
26388 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
26389 * modules/bumpalloc: Remove.
26391 2003-08-04 Paul Eggert <eggert@twinsun.com>
26393 * lib/getloadavg.c: Change copyright notice and spacing to conform to
26396 Merge from coreutils.
26397 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
26399 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
26400 from Karl Berry, implemented by Jim Meyering.
26401 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
26402 from Dmitry V. Levin.
26403 Remove anachronistic cast of xrealloc.
26404 * lib/fnmatch_.h (__const): Remove. Use 'const'.
26405 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
26406 type. Otherwise, it wouldn't compile with at least /bin/cc on
26407 ymp-cray-unicos9.0.2.X.
26408 Combine two mostly-identical uses of alloca into one.
26409 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
26411 2003-08-04 Dave Love <d.love@dl.ac.uk>
26415 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
26416 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
26417 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
26418 obsolete NLIST_NAME_UNION.
26419 [__GNU__]: Undef BSD and FSCALE.
26420 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
26422 2003-08-03 Paul Eggert <eggert@twinsun.com>
26424 * lib/stdbool_.h (_Bool): Make it signed char, instead of
26425 an enum type, so that it's guaranteed to promote to int. See:
26426 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
26428 2003-08-03 Karl Berry <karl@gnu.org>
26430 * config/depcomp: update from automake.
26432 2003-07-31 Paul Eggert <eggert@twinsun.com>
26434 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
26435 (strerror): Don't assume that a printable int fits in 14 bytes.
26437 2003-07-31 Bruno Haible <bruno@clisp.org>
26439 * modules/getpass-gnu: New file.
26440 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
26442 2003-07-31 Bruno Haible <bruno@clisp.org>
26444 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
26446 2003-07-24 Karl Berry <karl@gnu.org>
26448 * config/missing: update from automake.
26450 2003-07-24 Derek Robert Price <derek@ximbiot.com>
26451 Bruno Haible <bruno@clisp.org>
26453 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
26454 * lib/getline.c (getline, getdelim): Likewise.
26455 Remove _GNU_SOURCE define; now it's defined in config.h through
26458 2003-07-23 Karl Berry <karl@gnu.org>
26460 * config/config.sub: update from prep.
26462 2003-07-22 Paul Eggert <eggert@twinsun.com>
26464 * modules/xalloc (Depends-on): Add exitfail.
26465 * modules/xmemcoll: Likewise.
26467 2003-07-22 Paul Eggert <eggert@twinsun.com>
26469 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
26470 over-parenthesization in macros.
26472 Sync with coreutils.
26474 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
26477 Use `exit_failure' for xalloc and xmemcoll instead of their own
26478 private exit-failure variables.
26479 * lib/xalloc.h (xalloc_exit_failure): Remove.
26480 * lib/xmalloc.c: Likewise. Include exitfail.h.
26481 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
26482 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
26483 * lib/xmemcoll.c: Likewise. Include exitfail.h.
26484 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
26486 2003-07-20 Jim Meyering <jim@meyering.net>
26488 * modules/closeout (Depends-on): Add exitfail.
26489 Suggestion from Bruno Haible.
26491 2003-07-19 Karl Berry <karl@gnu.org>
26493 * config/config.sub: update from prep.
26495 2003-07-18 Paul Eggert <eggert@twinsun.com>
26497 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
26499 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
26500 to test that it can stand by itself. Include "exitfail.h".
26501 Clients should set exit_failure instead.
26502 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
26504 2003-07-18 Bruno Haible <bruno@clisp.org>
26506 * modules/getndelim2: New file.
26507 * modules/getline: Share files with module getndelim2.
26508 * modules/getnline: Depend on getndelim2 instead of sharing files with
26509 it. Add getnline.c to lib_SOURCES.
26510 * MODULES.html.sh (func_all_modules): Add getndelim2.
26512 2003-07-18 Bruno Haible <bruno@clisp.org>
26514 * m4/getndelim2.m4: New file.
26515 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
26516 invoke gl_PREREQ_GETNDELIM2.
26517 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
26518 gl_PREREQ_GETNDELIM2.
26519 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
26522 2003-07-18 Bruno Haible <bruno@clisp.org>
26524 * lib/getndelim2.h: New file.
26525 * lib/getndelim2.c: Make into a module of its own. Include config.h,
26527 (getndelim2): Make non-static. Change return type to ssize_t.
26528 * lib/getline.h: Change argument names.
26529 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
26530 * lib/getnline.c: Include getndelim2.h.
26532 2003-07-18 Andreas Schwab <schwab@suse.de>
26534 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
26536 2003-07-17 Karl Berry <karl@gnu.org>
26538 * config/config.sub: update from prep.
26540 2003-07-17 Bruno Haible <bruno@clisp.org>
26542 * modules/getnline: New file.
26543 * modules/getline: Add lib/getndelim2.c to source file list.
26544 * MODULES.html.sh (func_all_modules): Add getnline.
26546 2003-07-17 Bruno Haible <bruno@clisp.org>
26548 * m4/getnline.m4: New file.
26550 2003-07-17 Bruno Haible <bruno@clisp.org>
26552 * m4/Makefile.am.in: Remove file.
26553 * m4/Makefile.am: Remove file.
26554 * m4/Makefile.in: Remove file.
26556 2003-07-17 Bruno Haible <bruno@clisp.org>
26558 * lib/getnline.h: New file.
26559 * lib/getnline.c: New file.
26560 * lib/getndelim2.c: New file, extracted from getline.c.
26561 (getndelim2): Renamed from getdelim2, with added nmax argument.
26562 * lib/getline.c: Include getndelim2.c.
26563 (getdelim2): Moved out to getndelim2.c.
26564 (getline, getdelim): Update.
26566 2003-07-17 Bruno Haible <bruno@clisp.org>
26568 * lib/Makefile.am: Remove file.
26569 * lib/Makefile.in: Remove file.
26571 2003-07-17 Bruno Haible <bruno@clisp.org>
26573 * configure.in: Remove file.
26574 * Makefile.in: Remove file.
26576 2003-07-17 Bruno Haible <bruno@clisp.org>
26578 * MODULES.html.sh: Put the </BODY> right before </HTML>.
26580 2003-07-16 Karl Berry <karl@gnu.org>
26582 * config/srclist-update: was running fixlicense twice, which caused
26583 texinfo.tex to be nullified for some reason. Simplify,
26584 $gplsrc is no longer needed as far as I can see?
26586 2003-07-16 Jim Meyering <jim@meyering.net>
26588 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
26590 2003-07-15 Paul Eggert <eggert@twinsun.com>
26592 * config/srclist.txt: Get the following files from gettext-runtime/intl
26593 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
26594 ref-del.sin. From Bruno Haible.
26595 * config/srclist-update (fixfile): Change grep pattern again, since the
26596 previous fix didn't work (there was another trailing $). Use
26597 '[$]' to escape the $s.
26599 2003-07-15 Karl Berry <karl@gnu.org>
26601 * lib/vasnprintf.c: update from gettext.
26603 2003-07-15 Karl Berry <karl@gnu.org>
26605 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
26606 gets expanded when surrounded by '$'.
26608 2003-07-15 Jim Meyering <jim@meyering.net>
26610 * modules/save-cwd: Don't depend on error. From Derek Price.
26612 2003-07-15 Jim Meyering <jim@meyering.net>
26614 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
26616 2003-07-14 Simon Josefsson <jas@extundo.com>
26618 * modules/mempcpy: New file.
26619 * MODULES.html.sh (func_all_modules): Add mempcpy.
26621 2003-07-14 Simon Josefsson <jas@extundo.com>
26623 * m4/mempcpy.m4: New file.
26625 2003-07-14 Simon Josefsson <jas@extundo.com>
26627 * lib/mempcpy.h: New file.
26628 * lib/mempcpy.c: New file.
26630 2003-07-14 Paul Eggert <eggert@twinsun.com>
26632 * modules/getdate, modules/posixtm: Depend on mktime.
26634 2003-07-14 Paul Eggert <eggert@twinsun.com>
26636 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
26637 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
26638 unicodeio.c, unicodeio.h, unlocked-io.h:
26639 Switch from LGPL to GPL.
26641 2003-07-14 Paul Eggert <eggert@twinsun.com>
26643 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
26644 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
26645 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
26646 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
26647 vasprintf.c, vasprintf.h: Regenerate. These files are now being
26648 updated automatically by ../config/srclist-update. This changes
26649 their license from LPGL to GPL.
26651 2003-07-14 Paul Eggert <eggert@twinsun.com>
26653 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
26654 assumed to refer to the root of the most recent stable gettext version.
26655 * config/srclistvars.sh: Add defaults for eggert.
26656 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
26657 Match "This program" as well as "The program". This is needed
26660 2003-07-14 Jim Meyering <jim@meyering.net>
26662 Don't emit diagnostics. Let callers do that.
26663 * lib/save-cwd.c: Don't include "error.h".
26664 (save_cwd): Don't call error. Ensure that errno is valid
26665 when returning nonzero.
26667 * lib/save-cwd.h (restore_cwd): Update prototype.
26668 * lib/save-cwd.c (restore_cwd): Remove two parameters.
26669 Simplify. Don't call error upon failure. Let callers do that.
26670 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
26671 when auditing is enabled. But don't bother updating the #if.
26673 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
26675 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
26676 it breaks C++ compilation.
26677 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
26679 2003-07-10 Simon Josefsson <jas@extundo.com>
26681 * modules/strchrnul (Makefile.am): Add strchrnul.h.
26683 2003-07-10 Jim Meyering <jim@meyering.net>
26685 * m4/clock_time.m4: Remove trailing blank.
26686 * m4/intmax_t.m4: Likewise.
26688 2003-07-10 Jim Meyering <jim@meyering.net>
26690 * lib/vasnprintf.c: Remove trailing blanks.
26691 Make cpp indentation consistent.
26693 2003-07-09 Paul Eggert <eggert@twinsun.com>
26695 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
26696 posixver.c, strftime.c, strnlen.c, strverscmp.c:
26697 Switch from LGPL to GPL.
26699 2003-07-09 Paul Eggert <eggert@twinsun.com>
26701 * config/srclist.txt: Sort sublists. Add
26702 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
26703 that differ from gnulib for one reason or another; we'd like this list
26704 to be smaller but for now let's document what we have.
26706 2003-07-08 Paul Eggert <eggert@twinsun.com>
26708 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
26709 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
26710 and sweeter "eval x=$x".
26711 * config/srclist.txt: Get lib/argp* from glibc.
26713 2003-07-07 Paul Eggert <eggert@twinsun.com>
26715 * lib/mktime.c: Fix some boundary cases and remove need for floating
26718 Issue a compile-time diagnostic if time_t is floating point, or if
26719 two's complement arithmetic is not in effect, or if arithmetic
26720 right shift does not propagate the sign. These assumptions were
26721 all in the original code but they weren't checked.
26723 (TIME_T_MIDPOINT, verify): New macros.
26724 (__isleap): Remove; it has integer overflow problems.
26725 (leapyear): New function, without those problems.
26726 (ydhms_tm_diff): Remove; splitting into two parts.
26727 (ydhms_diff): New function, containing the arithmetic part of
26728 the old ydhms_tm_diff function. Issue a compile-time
26729 diagnostic if we are not using C99 integer division.
26730 Avoid casts when possible.
26731 (guess_time_tm): New function, containing the checking part of
26732 the old ydhms_tm_diff function. Return the new value, rather than
26733 the difference between it and the old. Accept a new argument T
26734 so that *T specifies the old value. Check for overflow in the result.
26736 (__mktime_internal): Use a time_t offset, not a long int offset.
26737 This undoes the 2003-06-04 change, which is no longer needed now
26738 that we have better overflow checking.
26739 (localtime_offset): Likewise.
26741 (__mktime_internal): Avoid harmful overflow on hosts where time_t
26742 and long are 64-bit but int is only 32-bit.
26743 (ydhms_diff): Use long int to store year1 and yday1.
26744 Issue a compile-time diagnostic if long int is not wide enough.
26746 (__mktime_internal): Use long int to store adjusted year and yday.
26747 Use plain C rather than preprocessor commands, if that doesn't
26749 Check for overflow (and try to repair) after each probe
26750 rather than checking only at the very end. This avoids some bugs
26751 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26752 does not equal GMT offset at maximum time).
26753 Use integer to check for overflow rather than floating point; this
26754 is more portable to non-IEEE hosts, and is a tad faster.
26755 When we detect that we are oscillating between two values,
26756 don't check whether tm_isdst has the requested value, since
26757 we already know the answer. When tm_isdst has the wrong value,
26758 use a different heuristic to find the right one, based on the
26759 extreme values actually observed in practice in tz2003a,
26760 rather than the (overly optimistic) "previous 3 calendar quarters".
26762 (not_equal_tm, print_tm, check_result): Use "const T" rather than
26763 "T const" to accommodate glibc style.
26764 (check_result): Use less-confusing report format. "long" -> "long int.
26766 Don't loop if the iteration overflows time_t.
26767 Allow a negative step in the iteration.
26769 2003-07-06 Karl Berry <karl@gnu.org>
26771 * config/depcomp: update from automake.
26772 * config/config.sub: update from prep.
26774 2003-07-03 Karl Berry <karl@gnu.org>
26776 * config/config.guess: update from prep.
26778 2003-07-01 Paul Eggert <eggert@twinsun.com>
26780 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
26781 xreadlink.c now includes it unconditionally.
26783 2003-07-01 Paul Eggert <eggert@twinsun.com>
26785 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
26786 having it depend on HAVE_SYS_TYPES_H.
26788 2003-07-01 Bruno Haible <bruno@clisp.org>
26790 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
26791 <sys/types.h> should be sufficient.
26792 Reported by Paul Eggert.
26794 2003-06-26 Karl Berry <karl@gnu.org>
26796 * config/depcomp: update from automake.
26798 2003-06-26 Bruno Haible <bruno@clisp.org>
26800 * modules/human: Depend on module stdbool.
26802 2003-06-25 Bruno Haible <bruno@clisp.org>
26804 * modules/readlink: New file.
26805 * modules/xreadlink: Depend on it.
26806 * MODULES.html.sh (func_all_modules): Add readlink.
26808 2003-06-25 Bruno Haible <bruno@clisp.org>
26810 * m4/readlink.m4: New file.
26812 2003-06-25 Bruno Haible <bruno@clisp.org>
26814 * lib/readlink.c: New file.
26816 2003-06-22 Karl Berry <karl@gnu.org>
26818 * config/srclist.txt: update mkinstalldirs from automake.
26819 * config/mkinstalldirs: update.
26821 2003-06-22 Bruno Haible <bruno@clisp.org>
26823 Portability to mingw32.
26824 * m4/ssize_t.m4: New file, from GNU gettext.
26825 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
26826 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
26828 2003-06-22 Bruno Haible <bruno@clisp.org>
26830 * modules/safe-read: Add m4/ssize_t.m4.
26831 * modules/xreadlink: Add m4/ssize_t.m4.
26833 2003-06-20 Bruno Haible <bruno@clisp.org>
26835 Assume C89, so PARAMS isn't needed.
26836 * lib/unicodeio.h (PARAMS): Remove.
26837 * lib/unicodeio.c: Don't use PARAMS.
26839 2003-06-18 Karl Berry <karl@gnu.org>
26841 * config/config.{guess,sub}: update from prep.
26843 2003-06-18 Jim Meyering <jim@meyering.net>
26845 Merge changes from coreutils.
26846 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
26847 Remove explicit declarations of xmalloc and realloc.
26849 (read_utmp): Remove anachronistic cast of xmalloc.
26851 2003-06-17 Paul Eggert <eggert@twinsun.com>
26853 Assume C89, so PARAMS isn't needed.
26854 * lib/backupfile.h (PARAMS): Remove. All uses removed.
26855 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
26856 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
26857 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
26858 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
26859 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
26860 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
26861 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
26862 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
26863 lib/xstrtod.h, lib/xstrtol.h: Likewise.
26864 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
26865 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
26866 no longer needed. Anyway, config.h should always be included before any
26869 2003-06-11 Simon Josefsson <jas@extundo.com>
26871 * modules/sysexits: New file.
26872 * MODULES.html.sh (func_all_modules): Add sysexits.
26874 2003-06-11 Simon Josefsson <jas@extundo.com>
26876 * lib/sysexit_.h: New file.
26878 2003-06-11 Derek Price <derek@ximbiot.com>
26880 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
26883 2003-06-11 Bruno Haible <bruno@clisp.org>
26885 * m4/sysexits.m4: New file.
26887 2003-06-10 Simon Josefsson <jas@extundo.com>
26889 * lib/argp.h: New file, from glibc.
26890 * lib/argp-ba.c: New file, from glibc.
26891 * lib/argp-eexst.c: New file, from glibc.
26892 * lib/argp-fmtstream.c: New file, from glibc.
26893 * lib/argp-fmtstream.h: New file, from glibc.
26894 * lib/argp-fs-xinl.c: New file, from glibc.
26895 * lib/argp-help.c: New file, from glibc.
26896 * lib/argp-namefrob.h: New file, from glibc.
26897 * lib/argp-parse.c: New file, from glibc.
26898 * lib/argp-pv.c: New file, from glibc.
26899 * lib/argp-pvh.c: New file, from glibc.
26900 * lib/argp-xinl.c: New file, from glibc.
26902 2003-06-10 Simon Josefsson <jas@extundo.com>
26904 * modules/strchrnul: New file.
26906 2003-06-10 Simon Josefsson <jas@extundo.com>
26908 * modules/argp: New file.
26910 2003-06-10 Simon Josefsson <jas@extundo.com>
26912 * m4/strchrnul.m4: New file.
26914 2003-06-10 Simon Josefsson <jas@extundo.com>
26916 * lib/strchrnul.h: New file.
26917 * lib/strchrnul.c: New file.
26919 2003-06-10 Bruno Haible <bruno@clisp.org>
26921 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
26923 2003-06-07 Karl Berry <karl@gnu.org>
26925 * config/config.{guess,sub}: update from prep.
26927 2003-06-07 Jim Meyering <jim@meyering.net>
26929 * modules/strtod: Use $(...) notation, not @...@ for
26930 AC_REPLACE'd variables.
26931 * modules/localcharset: Likewise.
26933 2003-06-07 Jim Meyering <jim@meyering.net>
26935 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
26936 in place of my name in the copyright comment.
26937 Remove definition and uses of __P.
26940 * lib/stat.c: Don't declare xmalloc explicitly.
26941 Instead, include "xalloc.h".
26942 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
26943 xrealloc, and xcalloc return values.
26944 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
26946 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
26948 2003-06-07 Bruno Haible <bruno@clisp.org>
26950 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
26951 avoid AC_CONFIG_LINKS.
26952 * modules/fnmatch (Makefile.am): Use explicit creation rule for
26953 fnmatch.h, to avoid AC_CONFIG_LINKS.
26954 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
26956 2003-06-07 Bruno Haible <bruno@clisp.org>
26958 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
26959 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
26960 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26962 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
26963 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26966 2003-06-06 Jim Meyering <jim@meyering.net>
26968 Merge from coreutils.
26969 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
26970 Consolidate declarations and initializations of *_base* locals.
26972 Merge from coreutils.
26973 This avoids a core dump on systems without GNU putenv,
26974 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
26975 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
26976 (unsetenv): New static function, from GNU libc.
26977 (rpl_putenv): Use it.
26979 * lib/modechange.c: Remove trailing blanks.
26981 Merge from coreutils.
26982 * lib/fsusage.c: Remove declaration of statfs.
26983 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
26985 * lib/posixtm.c: Include <stdbool.h> unconditionally.
26987 2003-06-06 Jim Meyering <jim@meyering.net>
26989 * lib/stdbool_.h: Renamed from stdbool.h.in.
26991 2003-06-06 Jim Meyering <jim@meyering.net>
26992 Bruno Haible <bruno@clisp.org>
26994 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
26995 Adjust Makefile.am snippet not to redirect directly to target.
26996 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
26998 2003-06-05 Paul Eggert <eggert@twinsun.com>
27000 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
27001 mismatch, look in future quarters as well as past. This fixes a
27002 bug when processing fall-backwards gaps immediately after a long
27003 period of daylight-saving time.
27005 * lib/mktime.c: Assume freestanding C89 or better.
27006 (HAVE_LIMITS_H): Remove. Assume it's 1.
27007 (__P): Remove; not used.
27008 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
27009 (mktime, not_equal_tm, print_tm, check_result,
27010 main): Use prototypes. Use const * where appropriate.
27011 (main): Fix typo in testing code that uncovered by above changes.
27012 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
27014 2003-06-04 Paul Eggert <eggert@twinsun.com>
27016 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
27017 locale.h, localeconv. This merges changes from coreutils.
27019 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
27020 It can be removed after the next Autoconf is released.
27021 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
27024 2003-06-04 Paul Eggert <eggert@twinsun.com>
27026 * lib/mktime.c: Fix Debian bug 177940
27027 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
27028 (localtime_offset): Now long int, not time_t, because we want it
27029 to be guaranteed to be signed. All uses changed.
27030 (__mktime_internal): If overflow would occur when adding offset,
27033 Merge 'human' changes from coreutils. Rewrite to support
27034 locale-specific notations like thousands separators.
27035 * lib/human.c: Simplify authorship notice.
27036 Include human.h immediately after config.h.
27037 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
27038 <limits.h>: Do not include, since human.h does.
27039 (SIZE_MAX, UINTMAX_MAX): New macros.
27040 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
27041 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
27042 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
27043 (power_letter): Renamed from suffixes.
27044 (generate_suffix_backwards): Remove.
27045 (adjust_value): Now takes int style (because of human.h changes)
27046 and long double value (for greater precision on some platforms).
27047 (group_number): New function.
27048 (human_readable): Use it. Use integer options, not enum.
27049 Put the options before the sizes in the arg list.
27050 Support all the new options.
27051 The old human_readable function has been removed;
27052 use inttostr.h instead.
27053 (human_readable, default_block_size, humblock):
27054 Use uintmax_t, not int, for block sizes.
27055 (human_readable_inexact, block_size_types): Remove.
27056 (block_size_opts): New constant.
27057 (human_options): Renamed from human_block_size, with new signature
27058 that allows block sizes up to UINTMAX_MAX. All callers changed.
27059 * lib/human.h: Add copyright and authorship notice.
27060 Include <limits.h> and <stdbool.h> unconditionally.
27061 (PARAMS): Remove. All uses removed.
27062 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
27063 (enum human_inexact_style): Remove tag; now a nameless enum.
27064 (human_floor, human_ceiling, human_round_to_even): Now have
27065 values 2, 0, 1 rather than -1, 1, 0.
27066 (human_group_digits, human_suppress_point_zero, human_autoscale,
27067 human_base_1024, human_SI, human_B): New constants.
27068 (human_readable_inexact, human_block_size): Remove.
27069 (human_readable): Size args are now uintmax_t, not int.
27070 (human_options): New decl.
27072 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
27073 unnecessary now that we assume C89 or better. This change
27074 imported from coreutils.
27076 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27077 arbitrarily. This is the same patch as 2003-05-28, but it got lost
27078 in the 2003-05-30 sync from glibc.
27080 .h files should stand alone, but we shouldn't include <sys/types.h>
27081 if we can get away with just <stddef.h>.
27083 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
27084 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
27085 rather than <sys/types.h>, as we merely need size_t.
27086 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
27088 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
27089 Include <stdio.h>, to get FILE.
27090 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
27091 memcasecmp.h has included <stddef.h> and all we need is size_t.
27092 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
27093 our interface, instead of including <sys/types.h>
27095 2003-06-04 Paul Eggert <eggert@twinsun.com>
27097 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
27098 now, as glibc mktime is buggy on non-glibc systems.
27100 2003-06-03 Karl Berry <karl@gnu.org>
27102 * config/config.sub: update from prep.
27104 2003-06-02 Paul Eggert <eggert@twinsun.com>
27107 Fix some minor time-related bugs with POSIX time arguments.
27108 Some valid time stamps were being rejected (notably -1, and
27109 time stamps before 1900 on 64-bit hosts). And some invalid
27110 time stamps were being accepted, e.g. September 31.
27112 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
27113 that we can return (time_t) -1 successfully.
27114 * lib/posixtm.c: Likewise.
27115 [HAVE_STDBOOL_H]: Include <stdbool.h>.
27116 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
27117 (t): Remove static var.
27118 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
27119 of static var. All uses changed.
27120 (year): Do not reject years before 1900; they can occur with
27122 (posix_time_parse): Do not check for out-of-range components;
27123 that is now the caller's responsibility, since our checks were
27124 only approximations.
27125 (posixtime): Use mktime to check for out-of-range components,
27126 since it knows them exactly.
27127 If mktime returns (time_t) -1, check whether an error actually occurred
27128 by invoking localtime on -1.
27129 (main) [TEST_POSIXTIME]: Check for input data errors, and report
27130 posixtime failures better.
27131 Improve the test data (in comments only).
27133 2003-06-02 Karl Berry <karl@gnu.org>
27135 * config/mkinstalldirs (version): new variable.
27136 (--version): new option.
27137 (usage): improve message.
27139 2003-05-30 Karl Berry <karl@gnu.org>
27141 * lib/mktime.c: update from libc.
27143 2003-05-30 Bruno Haible <bruno@clisp.org>
27145 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
27146 * config/config.rpath: Upgrade to gettext-0.12.1.
27148 2003-05-30 Bruno Haible <bruno@clisp.org>
27150 * m4/gettext.m4: Upgrade to gettext-0.12.1.
27151 * m4/nls.m4: New file, from gettext-0.12.1.
27152 * m4/po.m4: New file, from gettext-0.12.1.
27153 * m4/progtest.m4: Upgrade to gettext-0.12.1.
27155 2003-05-30 Bruno Haible <bruno@clisp.org>
27157 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
27158 * lib/localcharset.h: Likewise.
27159 * lib/localcharset.c: Likewise.
27161 2003-05-29 Karl Berry <karl@gnu.org>
27163 * config/config.rpath: update from gettext.
27165 2003-05-28 Paul Eggert <eggert@twinsun.com>
27167 Assume the headers required for C89 freestanding compilers.
27168 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
27169 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
27170 * m4/human.m4 (gl_HUMAN): Likewise.
27171 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
27172 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
27173 * m4/userspec.m4 (gl_USERSPEC): Likewise.
27174 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
27175 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27176 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
27178 2003-05-28 Paul Eggert <eggert@twinsun.com>
27180 Assume the headers required for C89 freestanding compilers.
27181 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
27182 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
27183 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
27184 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
27185 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
27186 define, since <limits.h> is guaranteed to do that.
27187 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
27188 * lib/exclude.c: Include <stdbool.h> unconditionally.
27189 * lib/tempname.c: Include <stddef.h> unconditionally.
27190 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
27191 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
27192 <stddef.h> does that.
27193 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
27194 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
27195 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
27197 * lib/xstrtol.c: Likewise.
27198 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
27199 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
27201 * lib/addext.c (addext): Use assignment rather than cast, to avoid
27202 warnings on some platforms.
27204 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27207 2003-05-26 Jim Meyering <jim@meyering.net>
27209 Merge in a change from coreutils:
27210 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
27211 that is guaranteed to be `no'. Use `no_such_member' to indicate
27212 that condition, rather than `-1' which is slightly misleading.
27213 Change the name of the cache variable to have the gl_ prefix.
27214 Prompted by a patch from Richard Dawe for DJGPP.
27216 2003-05-24 Karl Berry <karl@gnu.org>
27218 * config/config.guess: update from prep.
27220 2003-05-22 Karl Berry <karl@gnu.org>
27222 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
27224 2003-05-20 Karl Berry <karl@gnu.org>
27226 * config/config.guess: update from prep.
27228 2003-05-18 Karl Berry <karl@gnu.org>
27230 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
27231 might actually be set by the user.
27233 * config/depcomp, install-sh, mdate-sh: update from automake.
27235 2003-05-17 Bruno Haible <bruno@clisp.org>
27237 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
27238 invalid expansion for AC_EGREP_CPP.
27239 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27240 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27241 Suggested by Akim Demaille <akim@epita.fr> in
27242 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
27244 2003-05-12 Jim Meyering <jim@meyering.net>
27246 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
27247 the space-padded-by-default conversion specifiers, %e, %k, %l.
27249 2003-05-12 Bruno Haible <bruno@clisp.org>
27251 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
27252 the string is longer than 4 KB.
27254 2003-05-11 Karl Berry <karl@gnu.org>
27256 * config/config.{guess,sub}: update from prep.
27258 2003-05-09 Bruno Haible <bruno@clisp.org>
27260 * modules/error: Add m4/strerror_r.m4 to file list.
27262 2003-05-03 Bruno Haible <bruno@clisp.org>
27264 Upgrade to Unicode-4.0.
27265 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
27266 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
27267 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
27268 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
27269 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
27270 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
27271 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
27272 Change width of U+E0100..U+E01EF from 1 to 0.
27274 2003-04-25 Jim Meyering <jim@meyering.net>
27276 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
27277 of type size_t, not int.
27279 2003-04-25 Bruno Haible <bruno@clisp.org>
27281 * lib/copy-file.c: Include <stddef.h>, for size_t.
27283 2003-04-21 Paul Eggert <eggert@twinsun.com>
27285 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
27286 code which expansion is under static control. Patch imported from
27287 Akim Demaille's patch to Bison; see
27288 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
27290 2003-04-14 Bruno Haible <bruno@clisp.org>
27292 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
27294 2003-04-11 Jim Meyering <jim@meyering.net>
27296 Merge changes from Coreutils.
27298 2003-03-22 Jim Meyering <jim@meyering.net>
27300 * lib/strftime.c (widen): Cast alloca return value to proper type.
27302 2003-01-19 Ulrich Drepper <drepper@redhat.com>
27305 * lib/strftime.c (my_strftime): Handle very large width
27306 specifications for numeric values correctly. Improve checks for
27309 2003-01-19 Jim Meyering <jim@meyering.net>
27311 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
27313 (nl_get_alt_digit) [! defined my_strftime]: Define.
27314 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
27315 _nl_get_alt_digit and _nl_get_walt_digit.
27317 * lib/strftime.c (my_strftime): Merge in locale-related changes from
27318 libc. These changes have no effect outside of _LIBC.
27320 2003-04-10 Bruno Haible <bruno@clisp.org>
27322 * modules/findprog: New file.
27323 * MODULES.html.sh (func_all_modules): Add it.
27325 2003-04-10 Bruno Haible <bruno@clisp.org>
27327 * m4/findprog.m4: New file.
27328 * m4/eaccess.m4: New file.
27330 2003-04-10 Bruno Haible <bruno@clisp.org>
27332 * lib/findprog.h: New file, from GNU gettext.
27333 * lib/findprog.c: New file, from GNU gettext.
27335 2003-04-05 Jim Meyering <jim@meyering.net>
27337 Merge changes from Coreutils.
27339 * lib/exclude.h (PARAMS): Remove definition and uses.
27340 * lib/exclude.c: Remove uses of `PARAMS'.
27342 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
27343 Add test-cases for DOS filenames. Declare program_name.
27344 (main): Set up program_name. Patch by Rich Dawe.
27346 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27348 Use mntctl's return value to drive the entry-processing loop, since
27349 we can't rely on the value of the vmt_length member in the last
27350 entry. On some systems doing so could result in exhausting
27351 virtual memory. Based in part on a patch from Mike Jetzer.
27353 2003-04-04 Bruno Haible <bruno@clisp.org>
27355 * modules/linebreak: New file.
27356 * MODULES.html.sh (func_all_modules): Add it.
27358 2003-04-04 Bruno Haible <bruno@clisp.org>
27360 * m4/linebreak.m4: New file.
27362 2003-04-04 Bruno Haible <bruno@clisp.org>
27364 * lib/linebreak.h: New file, from GNU gettext.
27365 * lib/linebreak.c: New file, from GNU gettext with slight
27367 * lib/lbrkprop.h: New file, from GNU gettext.
27369 2003-04-03 Bruno Haible <bruno@clisp.org>
27371 * modules/utf8-ucs4: New file.
27372 * modules/utf16-ucs4: New file.
27373 * modules/ucs4-utf8: New file.
27374 * modules/ucs4-utf16: New file.
27375 * MODULES.html.sh (func_all_modules): Add them.
27377 2003-04-03 Bruno Haible <bruno@clisp.org>
27379 * m4/utf-ucs4.m4: New file.
27380 * m4/ucs4-utf.m4: New file.
27382 2003-04-03 Bruno Haible <bruno@clisp.org>
27384 * lib/utf8-ucs4.h: New file, from GNU gettext.
27385 * lib/utf16-ucs4.h: New file, from GNU gettext.
27386 * lib/ucs4-utf8.h: New file, from GNU gettext.
27387 * lib/ucs4-utf16.h: New file, from GNU gettext.
27389 2003-04-02 Bruno Haible <bruno@clisp.org>
27391 * modules/binary-io: New file.
27392 * MODULES.html.sh (func_all_modules): Add it.
27394 2003-04-02 Bruno Haible <bruno@clisp.org>
27396 * lib/binary-io.h: New file, from GNU gettext.
27398 2003-04-01 Bruno Haible <bruno@clisp.org>
27400 * modules/pathname: New file.
27401 * MODULES.html.sh (func_all_modules): Add it.
27403 2003-04-01 Bruno Haible <bruno@clisp.org>
27405 * lib/pathname.h: New file, from GNU gettext.
27406 * lib/concatpath.c: New file, from GNU gettext.
27408 2003-03-30 Bruno Haible <bruno@clisp.org>
27410 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
27412 2003-03-30 Bruno Haible <bruno@clisp.org>
27414 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
27415 function chown() doesn't exist.
27417 2003-03-28 Bruno Haible <bruno@clisp.org>
27419 * modules/copy-file: New file.
27420 * MODULES.html.sh (func_all_modules): Add it.
27422 2003-03-28 Bruno Haible <bruno@clisp.org>
27424 * m4/copy-file.m4: New file.
27426 2003-03-28 Bruno Haible <bruno@clisp.org>
27428 * lib/copy-file.h: New file, from GNU gettext.
27429 * lib/copy-file.c: New file, from GNU gettext.
27431 2003-03-18 Jim Meyering <jim@meyering.net>
27433 * lib/quote.c (quote_n): Fix typo in comment.
27435 2003-03-18 Bruno Haible <bruno@clisp.org>
27437 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
27439 * m4/onceonly_2_57.m4: Likewise.
27441 2003-03-17 Bruno Haible <bruno@clisp.org>
27443 * m4/onceonly.m4: Require autoconf 2.54 or newer.
27444 (m4_quote): Remove macro.
27445 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
27447 2003-03-14 Jim Meyering <jim@meyering.net>
27449 Merge changes from Coreutils.
27450 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
27451 to be const, in order to avoid warnings.
27452 (obstack_room): Likewise.
27453 (obstack_empty_p): Likewise.
27455 2003-03-14 Bruno Haible <bruno@clisp.org>
27457 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
27458 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
27460 2003-03-13 Paul Eggert <eggert@twinsun.com>
27462 Merge changes from Bison.
27463 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
27464 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
27465 when compiling Bison 1.875's `bitset bset = obstack_alloc
27466 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
27467 * lib/hash.c: Include <stdbool.h> unconditionally.
27469 2003-03-13 Paul Eggert <eggert@twinsun.com>
27471 * m4/onceonly.m4 (m4_quote): New macro.
27472 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
27473 Quote AC_FOREACH variable-expansions properly.
27475 2003-03-13 Paul Eggert <eggert@twinsun.com>
27477 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
27479 2003-03-09 Paul Eggert <eggert@twinsun.com>
27481 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
27482 Reported by Bruce Becker; see:
27483 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
27485 2003-03-03 Paul Eggert <eggert@twinsun.com>
27486 Bruno Haible <bruno@clisp.org>
27488 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
27489 Reported by John Hughes, see
27490 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
27492 2003-02-20 Bruno Haible <bruno@clisp.org>
27494 * MODULES.html.sh (func_all_modules): Add poll.
27496 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27498 * modules/poll: New file.
27500 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27502 * lib/poll_.h: New file.
27503 * lib/poll.c: New file.
27505 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27507 * m4/poll.m4: New file.
27509 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27511 * modules/mathl: New file.
27513 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27515 * lib/mathl.h: New file.
27516 * lib/acosl.c: New file.
27517 * lib/asinl.c: New file.
27518 * lib/atanl.c: New file.
27519 * lib/ceill.c: New file.
27520 * lib/cosl.c: New file.
27521 * lib/expl.c: New file.
27522 * lib/floorl.c: New file.
27523 * lib/frexpl.c: New file.
27524 * lib/ldexpl.c: New file.
27525 * lib/logl.c: New file.
27526 * lib/sincosl.c: New file.
27527 * lib/sinl.c: New file.
27528 * lib/sqrtl.c: New file.
27529 * lib/tanl.c: New file.
27530 * lib/trigl.c: New file.
27531 * lib/trigl.h: New file.
27533 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27535 * m4/mathl.m4: New file.
27537 2003-02-18 Bruno Haible <bruno@clisp.org>
27539 * MODULES.html.sh (func_all_modules): Add mathl.
27541 2003-02-17 Bruno Haible <bruno@clisp.org>
27543 * modules/mkdtemp: New module.
27544 * MODULES.html.sh (func_all_modules): Add it.
27546 2003-02-17 Bruno Haible <bruno@clisp.org>
27548 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
27550 2003-02-17 Bruno Haible <bruno@clisp.org>
27552 * lib/mkdtemp.h: New file, from GNU gettext.
27553 * lib/mkdtemp.c: New file, from GNU gettext.
27555 2003-02-02 Jim Meyering <jim@meyering.net>
27557 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
27560 2003-01-31 Bruno Haible <bruno@clisp.org>
27562 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
27564 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
27566 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
27568 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
27571 2003-01-31 Bruno Haible <bruno@clisp.org>
27573 * lib/rename.c: #undef rename before defining rpl_rename.
27574 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
27576 2003-01-30 Bruno Haible <bruno@clisp.org>
27578 * modules/vasnprintf, modules/vasprintf: New modules.
27579 * MODULES.html.sh (func_all_modules): Add them.
27581 2003-01-30 Bruno Haible <bruno@clisp.org>
27583 * m4/signed.m4: New file, from GNU gettext.
27584 * m4/longdouble.m4: New file, from GNU gettext.
27585 * m4/wchar_t.m4: New file, from GNU gettext.
27586 * m4/wint_t.m4: New file, from GNU gettext.
27587 * m4/vasnprintf.m4: New file.
27588 * m4/vasprintf.m4: New file.
27590 2003-01-30 Bruno Haible <bruno@clisp.org>
27592 * lib/printf-args.h: New file, from GNU gettext.
27593 * lib/printf-args.c: New file, from GNU gettext.
27594 * lib/printf-parse.h: New file, from GNU gettext.
27595 * lib/printf-parse.c: New file, from GNU gettext.
27596 * lib/vasnprintf.h: New file, from GNU gettext.
27597 * lib/vasnprintf.c: New file, from GNU gettext.
27598 * lib/asnprintf.c: New file, from GNU gettext.
27599 * lib/vasprintf.h: New file, from GNU gettext with modifications.
27600 * lib/vasprintf.c: New file, from GNU gettext.
27601 * lib/asprintf.c: New file, from GNU gettext.
27603 2003-01-29 Bruno Haible <bruno@clisp.org>
27605 * modules/stpncpy: New module.
27606 * MODULES.html.sh (func_all_modules): Add it.
27608 2003-01-29 Bruno Haible <bruno@clisp.org>
27610 * m4/stpncpy.m4: New file.
27612 2003-01-29 Bruno Haible <bruno@clisp.org>
27614 * lib/stpncpy.h: New file, from GNU gettext with modifications.
27615 * lib/stpncpy.c: New file, from GNU gettext with modifications.
27617 2003-01-28 Bruno Haible <bruno@clisp.org>
27619 * modules/c-ctype: New module.
27620 * MODULES.html.sh (func_all_modules): Add it.
27622 2003-01-28 Bruno Haible <bruno@clisp.org>
27624 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
27626 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
27629 2003-01-27 Bruno Haible <bruno@clisp.org>
27631 * modules/xsetenv: New module.
27632 * MODULES.html.sh (func_all_modules): Add it.
27634 2003-01-27 Bruno Haible <bruno@clisp.org>
27636 * lib/xsetenv.h: New file, from GNU gettext.
27637 * lib/xsetenv.c: New file, from GNU gettext.
27639 2003-01-23 Jim Meyering <jim@meyering.net>
27641 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
27642 from working on systems without dirfd (at least Irix and OSF1/Tru64).
27644 2003-01-23 Bruno Haible <bruno@clisp.org>
27646 * modules/minmax: New module.
27647 * MODULES.html.sh (func_all_modules): Add it.
27649 2003-01-23 Bruno Haible <bruno@clisp.org>
27651 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
27654 2003-01-22 Bruno Haible <bruno@clisp.org>
27656 * modules/exit: New module.
27657 * MODULES.html.sh (func_all_modules): Add it.
27659 2003-01-22 Bruno Haible <bruno@clisp.org>
27661 * lib/exit.h: New file, from GNU gettext.
27663 2003-01-19 Bruno Haible <bruno@clisp.org>
27665 * gnulib-tool: Recognize option --extract-maintainer.
27666 (func_get_maintainer): New function.
27667 * modules/*: Add Maintainer entry.
27669 2003-01-16 Jim Meyering <jim@meyering.net>
27671 * m4/regex.m4: The `regex' struct is both input and output.
27672 Initialize it before each use. Patch by Tim Waugh.
27674 2003-01-16 Bruno Haible <bruno@clisp.org>
27676 * MODULES.html.sh: Add a table of contents. Add the module name as
27677 leftmost column. Add hyperlinks.
27679 2003-01-15 Bruno Haible <bruno@clisp.org>
27681 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
27683 2003-01-15 Bruno Haible <bruno@clisp.org>
27685 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
27686 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
27689 2003-01-15 Bruno Haible <bruno@clisp.org>
27691 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
27693 2003-01-15 Bruno Haible <bruno@clisp.org>
27695 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
27696 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
27698 2003-01-14 Jim Meyering <jim@meyering.net>
27700 * lib/same.c (same_name): Tweak a comment.
27702 2003-01-14 Bruno Haible <bruno@clisp.org>
27704 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
27705 when a string comparison is sufficient.
27707 2003-01-14 Bruno Haible <bruno@clisp.org>
27709 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
27712 2003-01-14 Bruno Haible <bruno@clisp.org>
27714 * lib/hash-pjw.c: Add comment about low quality of this function.
27716 2003-01-13 Bruno Haible <bruno@clisp.org>
27718 * modules/stpcpy: Distribute lib/stpcpy.h.
27719 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27721 2003-01-13 Bruno Haible <bruno@clisp.org>
27723 * modules/*: Add a description.
27724 * modules/strpbrk: Fix Makefile.am snippet.
27725 * modules/strtoimax: Fix dependencies.
27726 * modules/strtoumax: Likewise.
27728 2003-01-13 Bruno Haible <bruno@clisp.org>
27730 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27731 * modules/alloca (Makefile.am): All object files depend on alloca.h.
27732 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27734 2003-01-13 Bruno Haible <bruno@clisp.org>
27736 * gnulib-tool (func_create_testdir): Store config/* files in the main
27738 * config.rpath: Move to ...
27739 * config/config.rpath: ... here.
27740 * modules/gettext: Contains config/config.rpath, not config.rpath.
27741 * modules/iconv: Likewise.
27743 2003-01-12 Paul Eggert <eggert@twinsun.com>
27745 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27746 to avoid collisions with libcurses and libreadline.
27748 * m4/getstr.m4: Remove.
27749 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27751 2003-01-12 Paul Eggert <eggert@twinsun.com>
27753 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27754 to avoid collisions with libcurses and libreadline.
27756 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27757 * lib/getstr.h, getstr.c: Remove.
27758 * lib/getline.c: Include "getline.h", to check interface.
27759 Move body of old getstr.c here: this defines MIN_CHUNK and
27760 declares getdelim2, which is renamed from getstr.
27761 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27763 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27765 * lib/linebuffer.h: Likewise.
27766 (readline): Remove backward-compatibility macro.
27768 2003-01-12 Paul Eggert <eggert@twinsun.com>
27770 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27771 to avoid collisions with libcurses and libreadline.
27773 * MODULES.html.sh: Remove getstr.
27774 * modules/getline: Depend on unlocked-io, not getstr.
27776 2003-01-12 Jim Meyering <jim@meyering.net>
27778 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
27780 2003-01-10 Bruno Haible <bruno@clisp.org>
27782 * modules/alloca: Change Makefile.am requirements. Simplify Include
27783 requirements. Add lib/alloca_.h to file list.
27785 2003-01-10 Bruno Haible <bruno@clisp.org>
27787 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
27789 2003-01-10 Bruno Haible <bruno@clisp.org>
27791 * lib/alloca_.h: New file.
27792 * lib/getdate.y: Unconditionally include alloca.h.
27793 * lib/makepath.c: Likewise.
27794 * lib/setenv.c: Likewise.
27795 * lib/userspec.c: Likewise.
27797 2003-01-09 Karl Berry <karl@gnu.org>
27799 * MODULES.html.sh: include `dirname $0` in PATH, to find
27802 2003-01-09 Bruno Haible <bruno@clisp.org>
27804 * modules/stdbool: Change configure.ac, Makefile.am requirements.
27805 Simplify Include requirements. Add lib/stdbool.h.in to file list.
27807 2003-01-09 Bruno Haible <bruno@clisp.org>
27809 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
27811 2003-01-09 Bruno Haible <bruno@clisp.org>
27813 * lib/stdbool.h.in: New file.
27815 2003-01-09 Bruno Haible <bruno@clisp.org>
27817 * gnulib-tool (func_all_modules): Ignore files ending in ~.
27818 * MODULES.html.sh: Likewise.
27820 2003-01-08 Jim Meyering <jim@meyering.net>
27822 * lib/full-write.c: Undefine and define-away `const' after inclusion
27823 of errno.h, not before. Suggestion from Bruno Haible.
27825 2003-01-08 Bruno Haible <bruno@clisp.org>
27827 * modules/full-read: Depend on full-write.
27829 2003-01-08 Bruno Haible <bruno@clisp.org>
27831 * lib/safe-read.c: Include specification header first, to ensure its
27833 * lib/full-write.c: Likewise.
27835 2003-01-07 Jim Meyering <jim@meyering.net>
27837 * lib/full-write.c: Rework so that it may serve to define full_read,
27839 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
27841 2003-01-07 Bruno Haible <bruno@clisp.org>
27843 * lib/strtoimax.c: Include <stdint.h> as an alternative to
27845 * lib/xstrtol.h: Likewise.
27846 * lib/xstrtoimax.c: Likewise.
27847 * lib/xstrtoumax.c: Likewise.
27848 * lib/human.h: Likewise.
27850 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
27851 on systems that have <inttypes.h> but not <stdint.h>.
27853 2003-01-07 Bruno Haible <bruno@clisp.org>
27855 * MODULES.html.sh: Add copyright notice.
27856 (missed_files): Omit CVS directory entries.
27857 (func_module): Make it work with sed-3.02.
27858 * MODULES.txt: Remove file.
27860 2003-01-06 Jim Meyering <jim@meyering.net>
27862 * lib/version-etc.c: Update year in translatable copyright string.
27864 2003-01-03 Karl Berry <karl@gnu.org>
27866 * config/config.{guess,sub}: update from prep.
27868 2003-01-02 Karl Berry <karl@gnu.org>
27870 * doc/COPYING.DOC: belatedly updated to 1.2.
27872 2003-01-01 Karl Berry <karl@gnu.org>
27874 * gnulib-tool (func_verify_module): report module name $module in
27875 error message, not $1.
27876 * gnulib-tool (create-testdir): don't complain if destdir couldn't
27877 be created, only if it doesn't exist.
27878 * gnulib-tool (last_checkin_date): don't expand the $Date here.
27880 2002-12-31 Paul Eggert <eggert@twinsun.com>
27882 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
27884 2002-12-31 Paul Eggert <eggert@twinsun.com>
27886 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
27887 memcmp if strcoll doesn't work.
27889 2002-12-31 Bruno Haible <bruno@clisp.org>
27891 * lib/utime.c (utime_null): No need to call ftruncate if the file was
27894 2002-12-31 Bruno Haible <bruno@clisp.org>
27896 * lib/memcoll.c (STRCOLL): New macro.
27899 2002-12-31 Bruno Haible <bruno@clisp.org>
27901 * lib/localcharset.h: New file.
27902 * lib/localcharset.c: Include it.
27903 * lib/unicodeio.c: Likewise.
27905 2002-12-31 Bruno Haible <bruno@clisp.org>
27907 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
27908 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
27910 2002-12-31 Bruno Haible <bruno@clisp.org>
27912 * lib/getline.h: Include <stddef.h>, for size_t.
27914 * lib/unicodeio.h: Include <stddef.h>, for size_t.
27915 * lib/unicodeio.c: Don't include <stddef.h>.
27917 2002-12-31 Bruno Haible <bruno@clisp.org>
27919 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
27922 2002-12-24 Karl Berry <karl@gnu.org>
27924 * config/config.guess: update from prep.
27926 2002-12-24 Bruno Haible <bruno@clisp.org>
27928 General infrasructure.
27929 * m4/README: Rewritten.
27930 * m4/onceonly.m4: New file.
27931 * m4/onceonly_2_57.m4: New file.
27934 * m4/atexit.m4: New file.
27937 * m4/strtod.m4: New file.
27940 * m4/strtol.m4: New file.
27943 * m4/strtoul.m4: New file.
27946 * m4/memchr.m4: New file.
27949 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
27950 (jm_FUNC_MEMCMP): Invoke it.
27953 * m4/memcpy.m4: New file.
27956 * m4/memmove.m4: New file.
27959 * m4/memset.m4: New file.
27962 * m4/strcspn.m4: New file.
27965 * m4/strpbrk.m4: New file.
27968 * m4/strstr.m4: New file.
27971 * m4/strerror.m4: New file.
27974 * m4/mktime.m4: Renamed from jm-mktime.m4.
27975 (gl_PREREQ_MKTIME): New macro.
27976 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
27979 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
27980 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
27981 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
27984 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
27985 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
27986 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
27989 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
27990 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
27991 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
27993 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
27996 * m4/xalloc.m4: New file.
27999 * m4/alloca.m4: New file.
28002 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
28003 (jm_FUNC_PUTENV): Invoke it.
28006 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
28007 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
28008 when invoked twice.
28009 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
28013 * m4/memrchr.m4: New file.
28016 * m4/stpcpy.m4: New file.
28019 * m4/strcase.m4: New file.
28022 * m4/strdup.m4: New file.
28025 * m4/strnlen.m4: New file.
28028 * m4/strndup.m4: New file.
28031 * m4/xstrtod.m4: New file.
28034 * m4/xstrtol.m4: New file.
28037 * m4/getdate.m4: New file.
28039 Module unlocked-io.
28040 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
28041 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
28042 * m4/jm-glibc-io.m4n: Remove file.
28044 Module long-options.
28045 * m4/long-options.m4: New file.
28048 * m4/md5.m4: New file.
28051 * m4/sha.m4: New file.
28054 * m4/getstr.m4: New file.
28057 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
28058 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
28059 <sys/types.h>, for size_t. Use the function name gnu_getline, not
28060 simply getline. Infoke gl_PREREQ_GETLINE.
28063 * m4/obstack.m4: New file.
28066 * m4/hash.m4: New file.
28069 * m4/readtokens.m4: New file.
28072 * m4/strverscmp.m4: New file.
28075 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
28079 * m4/strtoll.m4: New file.
28082 * m4/strtoull.m4: New file.
28085 * m4/strtoimax.m4: New file.
28088 * m4/strtoumax.m4: New file.
28091 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
28092 jm_AC_PREREQ_XSTRTOIMAX.
28093 Moved the strtol prerequisites to strtol.m4.
28094 Moved the strtoll prerequisites to strtoll.m4.
28095 Moved the strtoimax prerequisites to strtoimax.m4.
28098 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
28099 jm_AC_PREREQ_XSTRTOUMAX.
28100 Moved the strtoul prerequisites to strtoul.m4.
28101 Moved the strtoull prerequisites to strtoull.m4.
28102 Moved the strtoumax prerequisites to strtoumax.m4.
28105 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
28106 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
28109 * m4/dup2.m4: New file.
28112 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
28113 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
28116 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
28117 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
28119 Module gettimeofday.
28120 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
28121 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
28122 gl_PREREQ_GETTIMEOFDAY.
28125 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
28126 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
28129 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
28130 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
28131 jm_AC_TYPE_UINTMAX_T.
28132 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
28135 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
28136 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
28139 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
28140 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
28143 * m4/timespec.m4 (gl_TIMESPEC): New macro.
28144 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
28145 * m4/st_mtim.m4: Indentation.
28148 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
28149 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
28150 gl_PREREQ_NANOSLEEP.
28153 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
28154 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
28155 (gl_REGEX): New macro.
28158 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
28159 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
28162 * m4/rmdir.m4: New file.
28165 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
28166 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
28167 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
28170 * m4/dirname.m4: New file.
28173 * m4/getopt.m4: New file.
28175 Module unistd-safer.
28176 * m4/unistd-safer.m4: New file.
28179 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
28181 (gl_PREREQ_FNMATCH_EXTRA): New macro.
28182 (gl_FUNC_FNMATCH_POSIX): New macro.
28183 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
28184 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
28188 * m4/exclude.m4: New file.
28191 * m4/human.m4: New file.
28197 * m4/backupfile.m4: New file.
28198 * m4/d-ino.m4: Indentation.
28201 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
28202 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
28203 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
28206 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
28210 * m4/euidaccess.m4: New file.
28213 * m4/file-type.m4: New file.
28216 * m4/fileblocks.m4: New file.
28219 * m4/filemode.m4: New file.
28222 * m4/isdir.m4: New file.
28225 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
28226 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
28229 * m4/makepath.m4: New file.
28232 * m4/modechange.m4: New file.
28235 * m4/mountlist.m4: New file.
28236 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
28239 Module path-concat.
28240 * m4/path-concat.m4: New file.
28243 * m4/pathmax.m4: New file.
28246 * m4/same.m4: New file.
28249 * m4/save-cwd.m4: New file.
28252 * m4/savedir.m4: New file.
28255 * m4/xgetcwd.m4: New file.
28256 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
28259 * m4/xreadlink.m4: New file.
28262 * m4/safe-read.m4: New file.
28265 * m4/safe-write.m4: New file.
28268 * m4/closeout.m4: New file.
28270 Module stdio-safer.
28271 * m4/stdio-safer.m4: New file.
28274 * m4/getpass.m4: New file.
28277 * m4/getugroups.m4: New file.
28279 Module group-member.
28280 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
28281 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
28284 * m4/idcache.m4: New file.
28287 * m4/userspec.m4: New file.
28290 * m4/clock_time.m4: New file.
28291 * m4/gettime.m4: New file.
28294 * m4/settime.m4: New file.
28297 * m4/posixtm.m4: New file.
28299 Module gethostname.
28300 * m4/gethostname.m4: New file.
28303 * m4/canon-host.m4: New file.
28306 * m4/codeset.m4: New file, from gettext-0.11.5.
28307 * m4/gettext.m4: New file, from gettext-0.11.5.
28308 * m4/glibc21.m4: New file, from gettext-0.11.5.
28309 * m4/iconv.m4: New file, from gettext-0.11.5.
28310 * m4/intdiv0.m4: New file, from gettext-0.11.5.
28311 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
28312 * m4/inttypes.m4: New file, from gettext-0.11.5.
28313 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
28314 * m4/isc-posix.m4: New file, from gettext-0.11.5.
28315 * m4/lcmessage.m4: New file, from gettext-0.11.5.
28316 * m4/lib-ld.m4: New file, from gettext-0.11.5.
28317 * m4/lib-link.m4: New file, from gettext-0.11.5.
28318 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
28319 * m4/progtest.m4: New file, from gettext-0.11.5.
28320 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
28321 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
28322 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
28324 Module localcharset.
28325 * m4/localcharset.m4: New file.
28327 Module hard-locale.
28328 * m4/hard-locale.m4: New file.
28331 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
28333 * m4/mbrtowc.m4: Add comment.
28336 * m4/memcasecmp.m4: New file.
28339 * m4/memcoll.m4: New file.
28342 * m4/unicodeio.m4: New file.
28345 * m4/rpmatch.m4: New file.
28348 * m4/yesno.m4: New file.
28351 * m4/exitfail.m4: New file.
28354 * m4/c-stack.m4 (gl_C_STACK): New macro.
28355 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
28358 * m4/error.m4 (gl_ERROR): New macro.
28359 (jm_PREREQ_ERROR): Use onceonly macros.
28362 * m4/fatal.m4: New file.
28365 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
28366 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
28368 Module getpagesize.
28369 * m4/getpagesize.m4: New file.
28371 Module getusershell.
28372 * m4/getusershell.m4: New file.
28375 * m4/physmem.m4: New file.
28378 * m4/posixver.m4: New file.
28381 * m4/quotearg.m4: New file.
28384 * m4/quote.m4: New file.
28387 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
28390 * m4/sig2str.m4: New file.
28393 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
28395 * m4/intmax_t.m4: New file.
28396 * m4/d-type.m4: Indentation.
28397 * m4/jm-macros.m4: Update.
28398 * m4/prereq.m4 (jm_PREREQ): Update.
28399 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
28400 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
28401 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
28402 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
28403 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
28404 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
28405 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
28406 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
28407 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
28408 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
28409 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
28410 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
28411 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
28412 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
28413 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
28414 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
28415 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
28416 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
28417 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
28419 2002-12-24 Bruno Haible <bruno@clisp.org>
28421 * MODULES.txt: Update according to m4/ changes.
28424 * config.rpath: New file, from gettext-0.11.5.
28426 * modules/*: New module descriptions.
28427 * gnulib-tool: New file.
28428 * MODULES.html.sh: New file.
28430 2002-12-21 Karl Berry <karl@gnu.org>
28432 * doc/fdl.texi: update to version 1.2.
28434 2002-12-19 Karl Berry <karl@gnu.org>
28436 * config/config.guess: update from prep.
28438 2002-12-18 Bruno Haible <bruno@clisp.org>
28440 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
28441 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
28443 2002-12-17 Bruno Haible <bruno@clisp.org>
28445 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
28446 stdlib.h, string.h.
28448 2002-12-17 Bruno Haible <bruno@clisp.org>
28450 * lib/canon-host.c (strdup): Remove unused declaration.
28452 * lib/fsusage.c: Include full_read.h.
28453 (get_fs_usage): Use full_read instead of safe_read.
28455 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
28457 2002-12-12 Karl Berry <karl@gnu.org>
28459 * config/config.guess: update from prep.
28461 2002-12-11 Bruno Haible <bruno@clisp.org>
28463 * m4/setenv.m4: New file, from gettext-0.11.5.
28465 2002-12-11 Bruno Haible <bruno@clisp.org>
28467 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
28469 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
28472 2002-12-11 Bruno Haible <bruno@clisp.org>
28474 * setenv.c (alloca): Fall back to malloc.
28475 (freea): New macro.
28476 (setenv): Use freea() to free memory allocated with alloca().
28478 2002-11-13 Bruno Haible <bruno@clisp.org>
28480 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
28481 function declarations.
28482 * unsetenv.c (unsetenv): Likewise.
28484 2002-03-04 Bruno Haible <bruno@clisp.org>
28486 Portability to AIX 4.3.3.
28487 * unsetenv.c: New file, extracted from setenv.c.
28488 * setenv.c: Move the unsetenv() function to unsetenv.c.
28490 2001-12-20 Bruno Haible <bruno@clisp.org>
28492 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
28493 use malloc instead. For SunOS 4.
28495 2001-12-11 Bruno Haible <bruno@clisp.org>
28497 * setenv.c: Declare alloca.
28498 (compar_fn_t): New typedef.
28499 (KNOWN_VALUE, STORE_VALUE): Use it.
28501 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
28504 2002-12-10 Paul Eggert <eggert@twinsun.com>
28506 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
28507 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
28508 Choose values that are less likely to collide with system fnmatch
28510 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
28511 defined (e.g., a pure POSIX system).
28512 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
28513 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
28515 2002-12-06 Paul Eggert <eggert@twinsun.com>
28517 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
28518 a pain in practice to deal with generated m4 files. This change
28519 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
28521 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
28522 and jm-glibc-io.m4, as they are no longer a special case.
28523 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
28524 kludge and the auto-generation stuff. Check only whether the
28525 functions are declared, not whether they exist, since older hosts
28526 that don't declare the functions can't use the optimization anyway.
28528 2002-12-06 Jim Meyering <jim@meyering.net>
28530 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
28532 Merge in changes from libc's misc/error.c, in preparation
28533 for the merge of gnulib's changes back into libc.
28535 * lib/error.c (_): Define only if not already defined.
28536 Move definition to follow all #include directives.
28537 Include unlocked-io.h only if !_LIBC.
28538 [_LIBC]: Include <libio/libioP.h>.
28539 [USE_IN_LIBIO]: Include <libio/iolibio.h>
28540 (fflush): Tweak definition to use INTUSE.
28543 2002-12-05 Paul Eggert <eggert@twinsun.com>
28545 * lib/alloca.c [defined emacs]: Include "lisp.h".
28546 (xalloc_die) [defined emacs]: New macro.
28547 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
28548 [! defined emacs]: Include <xalloc.h>.
28549 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
28550 (pointer): Typedef to POINTER_TYPE *.
28551 (malloc): Remove decl; we now always use xmalloc.
28552 (alloca): Use old-style definition, since Emacs needs this.
28553 Check for arithmetic overflow when computing combined size.
28555 2002-12-04 Paul Eggert <eggert@twinsun.com>
28557 Do not generate unlocked-io.h automatically, since it's easier to
28558 maintain it by hand.
28560 * lib/unlocked-io.h: New file, from GNU diffutils,
28561 but with proper copyright notice and attribution.
28562 * lib/gen-uio: Remove.
28563 * lib/Makefile.am: Add copyright notice.
28564 (libfetish_a_SOURCES): Add unlocked-io.h.
28565 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
28566 (DISTCLEANFILES, io_functions): Remove macros.
28567 (EXTRA_DIST): Remove gen_uio.
28568 (unlocked-io.h): Remove rule.
28570 2002-12-04 Jim Meyering <jim@meyering.net>
28572 Reflect the fact that stat.c and lstat.c are no longer generated.
28573 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
28574 (DISTCLEANFILES): Likewise.
28575 (EXTRA_DIST): Likewise.
28576 (all_local): Don't depend on stat.c or lstat.c.
28577 (stat.c, lstat.c): Remove rules.
28578 (EXTRA_DIST): Remove xstat.in.
28580 * lib/xstat.in: Remove file. Contents moved into stat.c.
28581 * lib/stat.c: New file. Contents mostly from xstat.in.
28582 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
28583 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
28585 * lib/safe-read.c: Rework so that it may serve to define safe_write,
28587 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
28589 2002-12-03 Jim Meyering <jim@meyering.net>
28591 * lib/safe-read.c, safe-write.c: Change variable names and comments,
28592 but not semantics, to minimize the differences between these two files.
28593 (safe_read): Change comment to mention SAFE_READ_ERROR.
28595 * lib/safe-read.c (IS_EINTR): Define.
28596 (safe_read): Use IS_EINTR in place of in-function cpp directives.
28598 2002-12-02 Jim Meyering <jim@meyering.net>
28600 * lib/safe-read.c (EINTR): Define.
28601 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28602 (INT_MAX): Provide fallback.
28603 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
28605 * lib/safe-read.h (SAFE_READ_ERROR): Define.
28607 2002-12-02 Bruno Haible <bruno@clisp.org>
28609 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28610 Define, taken from safe-read.c.
28611 (INT_MAX): Provide fallback.
28612 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
28613 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
28615 * lib/safe-read.c (EINTR): Remove definition.
28616 (safe_read): Don't use EINTR if it is absent.
28618 2002-12-01 Jim Meyering <jim@meyering.net>
28620 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
28622 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
28624 2002-11-27 Paul Eggert <eggert@twinsun.com>
28626 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
28627 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
28628 with `if (! (value < limit)) abort ();', for readability.
28630 2002-11-26 Karl Berry <karl@gnu.org>
28632 * lib/strdup.c: copy from libc again, with jim's ok.
28633 * lib/.cppi-disable: re-add strdup.c
28635 2002-11-25 Karl Berry <karl@gnu.org>
28637 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
28638 instead of "strtol.c".
28640 2002-11-25 Karl Berry <karl@gnu.org>
28642 * config/install-sh: update from automake for variable quoting, $0 in
28645 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
28646 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
28649 2002-11-25 Jim Meyering <jim@meyering.net>
28651 * lib/mktime.c: Sync from libc, now that it has the latest fix.
28653 2002-11-24 Karl Berry <karl@gnu.org>
28655 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
28656 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
28658 2002-11-24 Jim Meyering <jim@meyering.net>
28660 Update from coreutils:
28662 * lib/mktime.c: Merge in changes from libc.
28664 Avoid a link-time failure on some Linux systems.
28665 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
28667 (__mon_yday): Declare with the STATIC attribute.
28668 (__mktime_internal): Likewise.
28669 Based on a report from Greg Schafer.
28671 2002-11-23 Jim Meyering <jim@meyering.net>
28673 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
28674 Use `unsigned', not `int', as type of index.
28676 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
28678 * lib/fsusage.c: Remove unneeded parentheses around operands of
28681 2002-11-22 Paul Eggert <eggert@twinsun.com>
28683 * lib/quotearg.h: Allow multiple inclusion by surrounding with
28684 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
28685 so that we can be included first.
28686 (PARAMS): Remove; we now assume C89 or later. All uses removed.
28687 * lib/quotearg.c: Include quotearg.h immediately after config.h.
28688 No need to include stddef.h or sys/types.h any more.
28689 Surround local include files with "", not "<>".
28690 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
28691 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
28692 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
28693 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
28694 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
28695 (ISPRINT): Remove; no longer needed now that we assume C89.
28697 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
28700 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
28701 quotearg_char): Use SIZE_MAX rather than
28702 (size_t) -1 when we are talking about "infinity".
28704 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
28706 2002-11-22 Paul Eggert <eggert@twinsun.com>
28708 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
28709 hint that one should use `if (! x) abort ();' rather than `assert
28710 (x);', and anyway it's one less thing to worry about configuring.
28711 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
28712 hash_rehash, hash_insert): Use abort rather than assert.
28714 2002-11-22 Bruno Haible <bruno@clisp.org>
28716 * lib/safe-read.h: Assume C89. Add comments.
28717 (safe_read): Change return type to size_t.
28718 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28719 byte counts > SSIZE_MAX correctly.
28720 * lib/safe-write.h: New file.
28721 * lib/safe-write.c: New file.
28722 * lib/full-read.h: New file.
28723 * lib/full-read.c: New file.
28724 * lib/full-write.h: Assume C89. Add comments.
28725 * lib/full-write.c: Include safe-write.h.
28726 (full_write): Rewritten to use safe_write.
28727 Suggested by Jim Meyering and Paul Eggert.
28729 2002-11-21 Jim Meyering <jim@meyering.net>
28731 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28733 Merge in changes from the coreutils.
28735 2002-09-25 Paul Eggert <eggert@twinsun.com>
28736 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28738 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28739 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28740 int. Work more efficiently if X is the same width as uintmax_t.
28741 Do not compare X to -1, to avoid bogus compiler warning.
28742 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28743 Don't assume that f_frsize and f_bsize are the same type.
28745 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28746 warning on FreeBSD.
28748 * lib/makepath.c (make_path): Restore umask *before* creating the final
28750 (make_path): Minor reformatting.
28752 * lib/xmalloc.c: Adjust to work with new autoconf macros,
28753 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28754 HAVE_MALLOC/HAVE_REALLOC.
28756 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28757 dummy ones. At least on GNU/Linux systems, `auto' means something
28759 From Michael Stone.
28761 2002-11-21 Bruno Haible <bruno@clisp.org>
28763 Remove case insensitive option matching.
28764 * lib/argmatch.h (argcasematch): Remove declaration.
28765 (ARGCASEMATCH): Remove macro.
28766 (__xargmatch_internal): Remove case_sensitive argument.
28767 (XARGMATCH): Update.
28768 (XARGCASEMATCH): Remove macro.
28769 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28770 case_sensitive argument.
28771 (argcasematch): Remove function.
28772 (__xargmatch_internal): Remove case_sensitive argument.
28773 (main): Use XARGMATCH instead of XARGCASEMATCH.
28775 * lib/xmalloc.c: Change compile-time error message. Add comment about
28776 required autoconf version.
28778 2002-11-20 Paul Eggert <eggert@twinsun.com>
28780 Merge argmatch cleanups from Bison. Assume C89.
28782 * lib/argmatch.c: Include config.h here, not in argmatch.h.
28783 Include stdlib.h, for EXIT_FAILURE.
28784 Always include <string.h>, since we assume C89.
28785 (EXIT_FAILURE): Remove pre-C89 bug workaround.
28786 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
28787 Include <stddef.h> instead, since it's all we need for size_t.
28788 (PARAMS): Remove. All uses removed.
28789 (ARRAY_CARDINALITY): Do not bother to #undef.
28790 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
28791 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28792 Remove unnecessary parentheses.
28793 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28794 Insert necessary parentheses.
28795 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
28796 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
28798 2002-11-19 Bruno Haible <bruno@clisp.org>
28800 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
28801 * lib/mbswidth.h: Include <stddef.h>, for size_t.
28803 * lib/mbswidth.h (PARAMS): Remove macro.
28804 (mbswidth, mbsnwidth): Use ANSI C function declarations.
28805 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
28807 * lib/gcd.h (PARAMS): Remove macro.
28808 (gcd): Use ANSI C function declarations.
28809 * lib/gcd.c (gcd): Likewise.
28811 2002-11-15 Bruno Haible <bruno@clisp.org>
28813 * lib/strcspn.c: Include <stddef.h>.
28814 (strcspn): Use ANSI C function declaration. Change return type to
28816 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
28817 (strpbrk): Use NULL.
28818 * lib/strpbrk.h (PARAMS): Remove macro.
28819 (strpbrk): Use ANSI C function declaration.
28820 * lib/strstr.c: Don't include <sys/types.h>.
28821 * lib/strstr.h (PARAMS): Remove macro.
28822 (strstr): Use ANSI C function declarations.
28824 2002-11-14 Karl Berry <karl@gnu.org>
28826 * config/mkinstalldirs: `do' on separate line, instead of
28829 2002-11-06 Bruno Haible <bruno@clisp.org>
28831 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
28832 * lib/gcd.c (gcd): Likewise.
28834 2002-11-05 Bruno Haible <bruno@clisp.org>
28836 * lib/gcd.h: New file, from gettext-0.11.5.
28837 * lib/gcd.c: New file, from gettext-0.11.5.
28839 2002-11-05 Bruno Haible <bruno@clisp.org>
28841 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28842 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28843 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28844 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28846 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
28848 * lib/makepath.c: Include gettext.h instead of <locale.h> and
28851 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
28852 * lib/human.c: Include gettext.h instead of <libintl.h>.
28853 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
28854 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
28855 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
28856 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
28857 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
28858 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
28859 (textdomain): Remove definition.
28860 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
28862 * lib/long-options.c: Remove include of <libintl.h> and definition of
28864 * lib/same.c: Remove include of <libintl.h> and definition of _.
28866 2002-11-04 Owen Taylor <otaylor@redhat.com>
28868 * lib/config.charset: A few additions for Solaris.
28870 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28872 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
28873 * lib/localcharset.c (locale_charset): Declare as extern "C".
28875 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28877 * lib/config.charset: msdos in uk_UA uses CP1125.
28879 2002-11-04 Bruno Haible <bruno@clisp.org>
28881 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
28882 * lib/strcase.h: New file, from GNU gettext-0.11.5.
28883 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
28884 * lib/strstr.h: New file, from GNU gettext-0.11.5.
28885 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
28887 2002-11-04 Bruno Haible <bruno@clisp.org>
28889 * lib/localcharset.c (locale_charset): Don't return an empty string.
28891 2002-11-04 Bruno Haible <bruno@clisp.org>
28893 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
28896 2002-11-04 Bruno Haible <bruno@clisp.org>
28898 * lib/config.charset: Update for newest glibc. Add canonical names
28899 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
28901 2002-11-04 Bruno Haible <bruno@clisp.org>
28903 * lib/config.charset: Add support for NetBSD.
28905 2002-11-04 Bruno Haible <bruno@clisp.org>
28907 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
28909 2002-11-01 Bruno Haible <bruno@clisp.org>
28911 * configure.in: Add AC_CONFIG_AUX_DIR call.
28912 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
28914 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
28916 2002-09-28 Karl Berry <karl@gnu.org>
28918 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
28919 installed automake until the next release, since changes have been
28922 2002-09-25 Karl Berry <karl@gnu.org>
28924 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
28925 * lib/getopt*: copy from libc/posix.
28926 * lib/gettext.h: copy from gettext.
28927 * lib/.cppi-disable: add strdup.c, gettext.h.
28929 2002-09-25 Karl Berry <karl@gnu.org>
28931 * config/srclist.txt: enable gettext.h check.
28932 * config/config.{guess,sub}: update from prep.
28933 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
28934 from automake 1.6.3.
28937 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
28939 * regex.c (PATFETCH): Remove the translating fetch.
28940 (PATFETCH_RAW): Rename to PATFETCH.
28941 (set_image_of_range): New fun.
28942 (SET_RANGE_TABLE_WORK_AREA): Use it.
28943 (regex_compile): Don't translate the pattern chars so eagerly.
28944 Only do it when inserting an `exactn' bytecode or when handling
28946 (mutually_exclusive_p): Avoid empty statement.
28948 2002-07-06 Jim Meyering <meyering@lucent.com>
28950 * m4/README: Don't mention Makefile.am.in.
28951 Outline how I've tested changes to .m4 files. Yep, it's a pain.
28953 2002-07-01 Jim Meyering <meyering@lucent.com>
28955 * lib/c-stack.c: Include sys/time.h.
28956 From Volker Borchert.
28958 2002-06-26 Paul Eggert <eggert@twinsun.com>
28960 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
28962 2002-06-26 Paul Eggert <eggert@twinsun.com>
28964 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
28965 New macro. Use it uniformly instead of
28966 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
28967 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
28968 reported by Vin Shelton.
28970 2002-06-22 Paul Eggert <eggert@twinsun.com>
28972 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
28973 Do not assume SA_SIGINFO behavior.
28974 Bug reported by Jim Meyering on NetBSD 1.5.2.
28976 2002-06-22 Jim Meyering <meyering@lucent.com>
28978 * m4/c-stack.m4: New file, from diffutils-2.8.2.
28979 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
28981 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
28982 now that configure.ac uses AC_GNU_SOURCE.
28983 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
28984 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
28986 Update to latest tools. Suggestions from Paul Eggert.
28987 * m4/stdbool.m4: New file, from diffutils-2.8.2.
28988 * m4/gnu-source.m4: Update from diffutils-2.8.2.
28989 * m4/fnmatch.m4: Likewise.
28990 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
28991 to AC_HEADER_STDBOOL
28993 2002-06-22 Jim Meyering <meyering@lucent.com>
28995 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
28996 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
28998 2002-06-22 Jim Meyering <meyering@lucent.com>
29000 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
29002 * lib/exitfail.c, exitfail.h: Likewise.
29003 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
29005 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
29007 (EXTRA_DIST): Add fnmatch_loop.c.
29008 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
29010 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
29011 * lib/fnmatch.c: Update from diffutils-2.8.2.
29012 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
29013 * lib/fnmatch.h: Remove file.
29015 2002-06-21 Jim Meyering <meyering@lucent.com>
29017 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
29018 * m4/mbrtowc.m4: Likewise.
29020 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
29021 * m4/mbswidth.m4: Reflect name change:
29022 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
29023 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29025 * m4/lib-link.m4: Update from gettext-0.11.2.
29026 * m4/gettext.m4: Likewise.
29028 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
29029 From Alfred M. Szmidt.
29031 2002-06-18 Paul Eggert <eggert@twinsun.com>
29033 * lib/file-type.h: Report an error if neither S_ISREG nor
29034 S_IFREG is defined, instead of using a test specific to glibc
29035 2.2. This should be safe, since POSIX requires S_ISREG and
29036 Unix Version 7 had S_IFREG. We don't need to check for
29037 <sys/types.h> since we don't use any symbols that it defines.
29039 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
29041 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
29042 $@-t, so that each temporary file name is unique and valid in the first
29043 8 characters, for operation under DOS.
29045 2002-06-15 Paul Eggert <eggert@twinsun.com>
29047 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
29049 2002-06-15 Jim Meyering <meyering@lucent.com>
29051 Work even with DJGPP 2.03, which lacks support for symlinks.
29053 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
29055 * lib/lchown.c (S_ISLNK): Likewise.
29057 2002-06-15 Jim Meyering <meyering@lucent.com>
29059 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
29060 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
29061 have been included before this file.
29063 2002-06-14 Jim Meyering <meyering@lucent.com>
29065 * lib/file-type.h: Use the version from diffutils-2.8.2.
29066 * lib/file-type.c: Likewise.
29068 2002-06-07 Jim Meyering <meyering@lucent.com>
29070 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
29071 They're needed at least for NetBSD 1.5.2.
29072 ($statxfs_includes): Include those same headers.
29073 ($statxfs_includes): Include sys/vfs.h if available.
29074 ($statxfs_includes): Likewise for sys/statvfs.h.
29075 Check for the following members in both structs statfs and statvfs:
29076 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
29078 2002-06-01 Jim Meyering <meyering@lucent.com>
29080 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
29081 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
29083 2002-05-28 Jim Meyering <meyering@lucent.com>
29085 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
29086 Reported by Volker Borchert.
29088 2002-05-27 Jim Meyering <meyering@lucent.com>
29090 Fix a problem seen only on nonconforming systems whereby ls.c's
29091 use of localtime, and then of gettimeofday would cause trouble:
29092 the localtime call used to initialize rpl_gettimeofday's save
29093 mechanism would clobber ls's current local time information so
29094 that in any long listing the first file would always be listed
29095 with date 1970-01-01. Analysis by Volker Borchert.
29097 * lib/gettimeofday.c (localtime): Undefine.
29098 (rpl_localtime): New function.
29100 2002-05-27 Jim Meyering <meyering@lucent.com>
29102 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
29105 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
29106 use the replacement function; it wouldn't resolve at link time.
29107 Reported by Volker Borchert.
29109 2002-05-22 Jim Meyering <meyering@lucent.com>
29111 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
29113 * lib/file-type.h: New file.
29114 * lib/file-type.c (file_type): New file/function. Extracted from
29117 2002-04-30 Jim Meyering <meyering@lucent.com>
29119 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
29121 2002-04-29 Paul Eggert <eggert@twinsun.com>
29123 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
29125 2002-04-29 Paul Eggert <eggert@twinsun.com>
29127 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
29128 Do not check for alloca.h (no longer used) or stdbool.h (was never
29129 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
29131 2002-04-29 Paul Eggert <eggert@twinsun.com>
29133 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
29135 2002-04-29 Jim Meyering <meyering@lucent.com>
29137 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
29138 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
29139 Use AC_FUNC_STRNLEN here instead.
29141 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
29142 With autoconf-2.53a, it's part of AC_PROG_CC.
29144 2002-04-28 Paul Eggert <eggert@twinsun.com>
29146 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
29147 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
29149 2002-04-28 Paul Eggert <eggert@twinsun.com>
29151 * lib/sig2str.h, lib/sig2str.c: New files.
29152 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
29154 2002-04-28 Paul Eggert <eggert@twinsun.com>
29156 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
29157 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
29158 of 127, since 64 is the largest conceivable number for ancient
29160 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
29162 2002-04-28 Jim Meyering <meyering@lucent.com>
29164 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
29166 2002-04-24 Jim Meyering <meyering@lucent.com>
29168 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
29169 (jm_PREREQ): Use it.
29171 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
29172 mach/mach.h fcntl.h.
29173 Check for this function: setlocale.
29175 2002-04-24 Jim Meyering <meyering@lucent.com>
29177 * lib/gettext.h: New file, from Gettext.
29178 * lib/Makefile.am (INCLUDES): Remove -I../intl.
29179 (libfetish_a_SOURCES): Add gettext.h.
29181 2002-04-16 Jim Meyering <meyering@lucent.com>
29183 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
29184 ut_pid, ut_id, ut_exit.
29186 2002-04-16 Jim Meyering <meyering@lucent.com>
29188 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
29189 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
29190 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
29192 2002-04-12 Jim Meyering <meyering@lucent.com>
29194 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
29195 now-bogus check for f_type in sys/mount.h. Instead, just test for the
29196 existence of the getmntinfo function. Needed for Darwin 5.3.
29198 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
29199 This is necessary at least on Darwin 5.3.
29201 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
29202 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
29203 strnlen.o in the library, and that makes some versions of ranlib
29206 2002-04-12 Jim Meyering <meyering@lucent.com>
29208 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
29210 2002-04-09 Jim Meyering <meyering@lucent.com>
29212 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
29213 to be more precise. Rather than saying we're checking whether the
29214 function `works', say what we're testing.
29215 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
29216 Reported by Bruno Haible.
29218 2002-03-10 Jim Meyering <meyering@lucent.com>
29220 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
29221 Suggestion from Santiago Vila.
29223 2002-03-08 Jim Meyering <meyering@lucent.com>
29225 * lib/rename.c: Mention that this wrapper is needed also on
29226 mips-dec-ultrix4.4 systems.
29228 2002-03-02 Jim Meyering <meyering@lucent.com>
29230 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
29231 not HAVE_CLOCK_SETTIME.
29233 2002-02-27 Paul Eggert <eggert@twinsun.com>
29235 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
29236 Check for clock_settime.
29238 2002-02-27 Paul Eggert <eggert@twinsun.com>
29240 * lib/nanosleep.h: Rename to....
29241 * lib/timespec.h: New name for nanosleep.h. All uses changed.
29243 * lib/gettime.c: New file.
29244 * lib/settime.c: New file.
29245 * lib/stime.c: Remove.
29247 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
29248 timespec.h. Remove nanosleep.h.
29250 2002-02-25 Paul Eggert <eggert@twinsun.com>
29252 * m4/acl.m4: New file.
29253 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
29254 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
29256 2002-02-25 Paul Eggert <eggert@twinsun.com>
29258 * lib/acl.c, lib/acl.h: New files.
29259 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
29261 2002-02-24 Jim Meyering <meyering@lucent.com>
29263 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
29264 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
29265 cause trouble. Reported by Nelson Beebe.
29267 2002-02-23 Paul Eggert <eggert@twinsun.com>
29269 * lib/path-concat.c (xpath_concat): Reorder code to pacify
29270 compilers that don't know that xalloc_die never returns.
29272 2002-02-20 Jim Meyering <meyering@lucent.com>
29274 * lib/getdate.c: Regenerate using bison-1.33.
29276 2002-02-17 Jim Meyering <meyering@lucent.com>
29278 * config/config.guess (main): Don't use `head -1'; it's no longer
29279 portable. Use `sed 1q' instead.
29281 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
29283 * m4/codeset.m4: Upgrade to gettext-0.11.
29284 * m4/gettext.m4: Upgrade to gettext-0.11.
29285 * m4/glibc21.m4: Upgrade to gettext-0.11.
29286 * m4/iconv.m4: Upgrade to gettext-0.11.
29287 * m4/isc-posix.m4: Upgrade to gettext-0.11.
29288 * m4/lcmessage.m4: Upgrade to gettext-0.11.
29289 * m4/lib-ld.m4: New file, from gettext-0.11.
29290 * m4/lib-link.m4: New file, from gettext-0.11.
29291 * m4/lib-prefix.m4: New file, from gettext-0.11.
29292 * m4/progtest.m4: Upgrade to gettext-0.11.
29294 2002-02-15 Paul Eggert <eggert@twinsun.com>
29296 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
29297 (jm_PREREQ): Use it.
29299 2002-02-15 Paul Eggert <eggert@twinsun.com>
29301 * lib/posixver.c, lib/posixver.h: New files.
29302 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29304 2002-02-02 Paul Eggert <eggert@twinsun.com>
29305 Bruno Haible <bruno@clisp.org>
29307 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
29308 (fwrite_success_callback): New declaration.
29309 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
29310 print_unicode_char. Call failure callback instead of error.
29311 (fwrite_success_callback): New function.
29312 (exit_failure_callback): New function.
29313 (fallback_failure_callback): New function.
29314 (print_unicode_char): Call unicode_to_mb.
29316 2002-01-26 Jim Meyering <meyering@lucent.com>
29318 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
29319 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
29321 2002-01-26 Jim Meyering <meyering@lucent.com>
29323 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
29325 2002-01-22 Paul Eggert <eggert@twinsun.com>
29327 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
29329 2002-01-22 Jim Meyering <meyering@lucent.com>
29331 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
29332 Otherwise, some versions of automake would omit the rule that makes
29333 Makefile from Makefile.in.
29335 2002-01-21 Paul Eggert <eggert@twinsun.com>
29337 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
29338 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29339 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
29340 (memcoll): Set errno to zero if there is no error.
29342 * lib/quotearg.c (quotearg_buffer_restyled):
29343 Fix bug with quoting buffers containing NUL when backslashing escapes.
29344 This bug was exposed by the other changes in this patch.
29345 (quotearg_n_options): New arg ARGSIZE.
29346 All callers changed.
29347 (quoting_options_from_style): New function.
29348 (quotearg_n_style): Use it.
29349 (quotearg_n_style_mem): New function.
29351 * lib/quotearg.h (quotearg_n_style_mem): New function.
29353 2002-01-19 Jim Meyering <meyering@lucent.com>
29355 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
29356 Remove useless quotes: DF_PROG="df".
29357 * m4/strnlen.m4: New file.
29359 2002-01-16 Paul Eggert <eggert@twinsun.com>
29361 * lib/backupfile.c (ISDIGIT): Comment fix.
29362 * lib/getdate.y (ISDIGIT): Likewise.
29363 * lib/posixtm.c (ISDIGIT, year): Likewise.
29364 * lib/strverscmp.c (ISDIGIT): Likewise.
29365 * lib/userspec.c (ISDIGIT): Likewise.
29367 2002-01-16 Jim Meyering <meyering@lucent.com>
29369 * lib/getdate.y: Add three semicolons, each just before a closing
29370 brace. Bison (as of version 1.31) no longer papers over that mistake.
29372 2002-01-05 Jim Meyering <meyering@lucent.com>
29374 * lib/version-etc.c (version_etc_copyright): Update copyright year.
29376 2001-12-19 Paul Eggert <eggert@twinsun.com>
29378 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
29379 not silently exit merely because the output buffer happens to
29380 have nothing pending.
29382 2001-12-18 Paul Eggert <eggert@twinsun.com>
29384 See the big note in ../ChangeLog.
29385 * lib/human.c (suffixes): Prefer K to k for 1024.
29386 (generate_suffix_backwards): New function.
29387 (human_readable_inexact): Use it.
29388 * lib/xstrtol.c (__xstrtol): If there is no number but there
29389 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
29390 Accept 'K' as well as 'k'.
29392 2001-12-15 Jim Meyering <meyering@lucent.com>
29394 * lib/regex.h (__restrict_arr): Update from libc.
29396 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
29397 as `remote' if the name starts with `//'. Suggested by Michael Stone.
29400 2001-12-14 Jim Meyering <meyering@lucent.com>
29402 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
29403 Suggestion from Bruno Haible.
29405 2001-12-10 Jim Meyering <meyering@lucent.com>
29407 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
29408 xrealloc, Instead, include "xalloc.h".
29409 (initbuffer): Don't cast xmalloc return value to char*.
29410 (readline): Reword comment.
29411 Don't cast xrealloc return value to char*
29412 Return NULL, not 0.
29414 2001-12-09 Jim Meyering <meyering@lucent.com>
29416 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
29417 about `signed and unsigned type in conditional expression'.
29418 * lib/posixtm.c (posix_time_parse): Likewise.
29420 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
29422 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
29423 to avoid a pedantic warning.
29425 * lib/getstr.c: Don't include assert.h.
29426 (getstr): Remove warning-evoking assertions.
29427 Return -1 if offset parameter is out of bounds.
29428 Change the type of a local from int to size_t.
29430 * lib/strftime.c (my_strftime_localtime_r): Include this function
29431 definition in the `#if ! HAVE_TM_GMTOFF' block.
29433 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
29434 Include xalloc.h instead.
29436 2001-12-02 Jim Meyering <meyering@lucent.com>
29438 * lib/tempname.c: Don't declare getenv, thus reverting the change of
29439 2001-11-18. It's no longer necessary, now that stdlib.h is always
29442 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
29443 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
29445 2001-11-30 Akim Demaille <akim@epita.fr>
29447 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
29448 before being defined.
29450 2001-11-27 Paul Eggert <eggert@twinsun.com>
29452 * lib/quotearg.h (quotearg_n, quotearg_n_style):
29453 First arg is int, not unsigned.
29454 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
29455 (SIZE_MAX, UINT_MAX): New macros.
29456 (quotearg_n_options): Abort if N is negative.
29457 Avoid overflow check on hosts where size_t is 64 bits and int
29458 is 32 bits, as overflow is impossible there.
29459 Fix off-by-one typo that caused unnecessary reallocation.
29461 2001-11-27 Jim Meyering <meyering@lucent.com>
29463 * lib/tempname.c: Merge with version from libc.
29464 * lib/regex.c: Likewise.
29466 * lib/tempname.c: Include stdlib.h unconditionally. On some old
29467 systems for which STDC_HEADERS is 0, it was not included, resulting in
29468 a warning about an integer-to-pointer conversion problem with getenv.
29469 Reported by Volker Borchert.
29471 2001-11-26 Jim Meyering <meyering@lucent.com>
29473 * lib/gtod.h: Remove file.
29474 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
29475 * lib/gettimeofday.c: Don't include gtod.h.
29476 (GTOD_init): Remove function.
29477 (rpl_gettimeofday): Do its job here instead, rather than aborting.
29478 Suggestion from Volker Borchert.
29480 2001-11-23 Jim Meyering <meyering@lucent.com>
29482 * lib/hash.h (struct hash_table): Don't define here. Merely declare
29484 * lib/hash.c (struct hash_table): Define it here instead.
29486 2001-11-22 Jim Meyering <meyering@lucent.com>
29488 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
29490 2001-11-20 Jim Meyering <meyering@lucent.com>
29492 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
29493 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
29495 2001-11-19 Jim Meyering <meyering@lucent.com>
29497 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
29498 directory. Use "conftestXXXXXX" as the template.
29499 Suggestion from Paul Eggert.
29501 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
29502 immediately, so the test doesn't mistakenly hit the max-open-files
29505 2001-11-18 Paul Eggert <eggert@twinsun.com>
29507 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
29508 (TEMPORARIES): New macro.
29509 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
29510 removes an artificial limitation (e.g. HP-UX 10.20, where
29513 2001-11-18 Jim Meyering <meyering@lucent.com>
29515 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
29517 2001-11-18 Jim Meyering <meyering@lucent.com>
29519 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
29522 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
29523 files will be created before anything else.
29525 2001-11-17 Paul Eggert <eggert@twinsun.com>
29527 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
29528 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
29530 2001-11-17 Jim Meyering <meyering@lucent.com>
29532 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
29533 Prompted by a report from Bob Proulx.
29535 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
29536 Instead, require UTILS_FUNC_MKSTEMP.
29538 2001-11-17 Jim Meyering <meyering@lucent.com>
29540 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
29541 Now, that's done as part of AC_FUNC_STRTOD.
29543 2001-11-17 Jim Meyering <meyering@lucent.com>
29545 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
29546 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
29547 rather than group writable. Patch by Juan F. Codagnone.
29549 * lib/readtokens.c: Remove explicit declarations of xmalloc and
29550 xrealloc, Instead, include "xalloc.h".
29552 * lib/mountlist.c: Include unlocked-io.h after all system headers.
29553 Remove explicit declarations of xmalloc, xrealloc,
29554 and xstrdup. Instead, include "xalloc.h".
29556 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
29558 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
29560 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
29562 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
29563 Reported by Padraig Brady.
29565 * lib/mkstemp.c: #undef mkstemp.
29567 (rpl_mkstemp): Rename from mkstemp.
29570 2001-11-16 Jim Meyering <meyering@lucent.com>
29572 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
29573 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
29574 determine the amount of total physical memory, use pstat_getstatic.
29575 HPUX-11 doesn't define _SC_PHYS_PAGES.
29576 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
29577 If sysconf couldn't be used to determine the amount of available
29578 physical memory, use both pstat_getstatic and pstat_getdynamic.
29579 Based on a patch from Bob Proulx.
29581 2001-11-10 Jim Meyering <meyering@lucent.com>
29583 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
29584 (jm_PREREQ): Use it.
29586 2001-11-09 Jim Meyering <meyering@lucent.com>
29588 * m4/jm-macros.m4: Require autoconf-2.52f.
29589 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
29590 Use these AC_-prefixed names, not the AM_-prefixed ones.
29592 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
29594 2001-11-05 Jim Meyering <meyering@lucent.com>
29596 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
29598 2001-11-04 Jim Meyering <meyering@lucent.com>
29600 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
29603 2001-11-03 Jim Meyering <meyering@lucent.com>
29605 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
29608 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
29609 know the name of the variable in the macro definition.
29611 2001-11-03 Jim Meyering <meyering@lucent.com>
29613 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
29614 in argmatch_to_argument call.
29616 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
29619 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
29620 e.g., a fault due to an attempt to free a NULL pointer.
29622 2001-11-01 Jim Meyering <meyering@lucent.com>
29624 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
29625 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
29627 2001-11-01 Jim Meyering <meyering@lucent.com>
29629 * lib/dirfd.c, lib/dirfd.h: New files.
29630 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
29632 * lib/hash.c (hash_print) [TESTING]: Clean up.
29634 2001-10-22 Paul Eggert <eggert@twinsun.com>
29636 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
29637 to avoid a warning if -Wall.
29639 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
29642 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
29643 (per RMS's instructions, this is now the canonical source)
29644 * lgpl/, gpl/: New directories.
29646 2001-10-21 Paul Eggert <eggert@twinsun.com>
29648 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
29650 2001-10-21 Jim Meyering <meyering@lucent.com>
29652 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
29653 this code would end up calling gettext even in packages built
29654 with --disable-nls.
29655 * lib/getopt.c (_): Likewise.
29656 * lib/regex.c (_): Likewise.
29658 2001-10-20 Paul Eggert <eggert@twinsun.com>
29660 * m4/error.m4 (jm_PREREQ_ERROR):
29661 Do not invoke AC_CHECK_FUNCS with strerror_r, as
29662 AC_FUNC_STRERROR_R does that.
29663 Check for strerror declaration.
29665 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
29666 are supposed to have them these days.
29667 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
29668 Merge changes from latest Autoconf CVS.
29669 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
29670 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
29671 POSIX decided to standardize on the int flavor of strerror_r.
29673 2001-10-20 Paul Eggert <eggert@twinsun.com>
29675 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
29676 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
29677 Use strerror_r that is only a macro, even if it is not a function.
29678 (strerror): Check for HAVE_DECL_STRERROR before declaring.
29679 (private_strerror): Use prototypes, not old-style function definition.
29680 (print_errno_message): New function.
29681 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
29682 char*-flavored one.
29683 (error_tail, error, error_at_line): Use it.
29685 2001-10-11 Jim Meyering <meyering@lucent.com>
29687 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
29688 and quote_n (1, ... to avoid clobbering a buffer.
29690 2001-10-05 Jim Meyering <meyering@lucent.com>
29692 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
29694 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
29695 * lib/hash-pjw.h: New file.
29697 2001-09-30 Jim Meyering <meyering@lucent.com>
29699 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
29700 `struct fsstat' has the `f_fstypename' member.
29701 Use that to define FS_TYPE, which is now used to make
29702 the getfsstat link test tighter.
29704 2001-09-30 Jim Meyering <meyering@lucent.com>
29706 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
29707 Include <sys/ucred.h>, for Apple Darwin.
29708 Include sys/mount.h and sys/fs_types.h only if available.
29710 (read_filesystem_list): Use FS_TYPE.
29712 2001-09-29 Paul Eggert <eggert@twinsun.com>
29714 * lib/exclude.c (excluded_filename): 0 -> false, since it's
29717 2001-09-29 Jim Meyering <meyering@lucent.com>
29719 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29720 [one-argument getmntent function]): Include stdio.h before mntent.h.
29721 SunOS 4.1.x needs it for the declaration of `FILE'.
29722 Patch by Volker Borchert.
29724 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29725 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29726 sys/fs_types.h, and make the link-test for getfsstat guard #include
29727 directives with appropriate #if HAVE_*_H tests so that we can
29728 detect getfsstat on Apple Darwin1.3.7 systems.
29729 Reported by Nelson Beebe.
29730 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29732 2001-09-28 Paul Eggert <eggert@twinsun.com>
29734 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29735 #defines strtoimax. Also treat the other strto* functions
29738 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29739 Check for strtoul and strtoumax,
29740 as those declarations are made even in the signed case.
29741 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29742 Likewise, for strtol and strtoimax.
29744 2001-09-28 Paul Eggert <eggert@twinsun.com>
29746 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29747 #defines strtoimax. Also treat the other strto* functions
29750 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29751 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29752 (strtoimax, strtoumax): Do not declare if already defined as a macro.
29754 2001-09-26 Jim Meyering <meyering@lucent.com>
29756 Most macros in unlocked-io.h had the wrong number of arguments.
29757 * lib/gen-uio: New script.
29758 (USE_UNLOCKED_IO): Define to 1 if not already defined.
29759 * lib/unlocked-io.hin: Remove file.
29760 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29761 rather than trying to embed it here.
29762 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
29763 Reported by Padraig Brady.
29765 2001-09-25 Volker Borchert <bt@teknon.de>
29767 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29770 2001-09-24 Jim Meyering <meyering@lucent.com>
29772 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29774 2001-09-23 Jim Meyering <meyering@lucent.com>
29776 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29777 instead of the mere test for existence of mntent.h. The latter
29778 would get a false-positive on AIX 3.4 systems.
29779 In the outer getmntent if-block, don't die if neither of the getmntent
29780 tests succeeds. Instead, just fall through and continue with the
29783 2001-09-23 Jim Meyering <meyering@lucent.com>
29785 * lib/mountlist.c: Remove useless parentheses in #if directives.
29786 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
29787 the deprecated MOUNTED symbol is no longer defined in mntent.h.
29789 2001-09-22 Jim Meyering <meyering@lucent.com>
29791 * m4/gettext.m4: New file. From gettext.
29792 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
29793 * m4/progtest.m4: Likewise
29794 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
29795 * m4/glibc21.m4: Likewise.
29797 * m4/libintl.m4: Remove. No longer used.
29799 2001-09-22 Jim Meyering <meyering@lucent.com>
29801 * lib/localcharset.c: Update from latest gettext.
29802 * lib/config.charset: Likewise.
29804 2001-09-20 Jim Meyering <meyering@lucent.com>
29806 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
29808 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
29811 2001-09-20 Jim Meyering <meyering@lucent.com>
29813 * lib/xstrtol.c (strtoimax): Guard declaration with
29814 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
29815 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
29816 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
29817 (strtoumax): Likewise, for completeness (it wasn't necessary).
29819 2001-09-17 Paul Eggert <eggert@twinsun.com>
29821 * lib/strtoimax.c (HAVE_LONG_LONG):
29822 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
29823 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
29824 to work around bug in IBM C compiler.
29826 2001-09-17 Jim Meyering <meyering@lucent.com>
29828 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
29829 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
29830 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
29831 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
29832 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
29833 whenever the right hand side need not be expanded by the shell.
29835 2001-09-16 Paul Eggert <eggert@twinsun.com>
29837 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
29838 library. It's not correct, as some older glibcs are buggy.
29839 fnmatch wasn't fixed until glibc 2.2.
29841 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
29842 special shell magic here.
29844 2001-09-16 Jim Meyering <meyering@lucent.com>
29846 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
29847 * m4/jm-macros.m4: Require it.
29849 2001-09-16 Jim Meyering <meyering@lucent.com>
29851 * lib/mkdir.c: New file.
29853 2001-09-15 Jim Meyering <meyering@lucent.com>
29855 * m4/jm-macros.m4: Check for help2man.
29857 2001-09-11 Jim Meyering <meyering@lucent.com>
29859 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
29860 The body, by Paul Eggert, was moved here from configure.in.
29861 * m4/jm-macros.m4: Require UTILS_HOST_OS.
29863 2001-09-04 Paul Eggert <eggert@twinsun.com>
29865 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
29866 (jm_PREREQ): Use it.
29868 2001-09-04 Paul Eggert <eggert@twinsun.com>
29870 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
29871 Use ssize_t, not int, to store result of readlink.
29872 Check for ssize_t overflow as well as size_t overflow,
29873 as POSIX says the result of readlink is implementation-defined
29874 when ssize_t overflows.
29875 Remove unnecessary cast to char*.
29876 Use free+malloc instead of realloc, as the storage doesn't need
29877 to be preserved and it's clearer and can be more efficient that way.
29878 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
29879 * lib/xreadlink.h (xreadlink): Update prototype.
29881 2001-09-04 Paul Eggert <eggert@twinsun.com>
29883 * lib/xgetcwd.c: Revert some of the previous change; intead,
29884 fix the HAVE_GETCWD_NULL code to behave more like the
29885 !HAVE_GETCWD_NULL code used to.
29887 Include "xalloc.h".
29888 (xgetcwd): Do not return NULL when memory is exhausted; instead,
29891 2001-09-03 Paul Eggert <eggert@twinsun.com>
29893 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
29894 sys/param.h, as pathmax.h includes them.
29896 2001-09-03 Paul Eggert <eggert@twinsun.com>
29898 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
29899 (jm_PREREQ_XGETCWD): New macro.
29901 * m4/getcwd.m4: New file.
29903 2001-09-03 Paul Eggert <eggert@twinsun.com>
29905 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
29906 like the HAVE_GETCWD_NULL code.
29907 Include pathmax.h if not HAVE_GETCWD.
29908 Do not include xalloc.h.
29909 (INITIAL_BUFFER_SIZE): New symbol.
29910 Do not use xmalloc / xrealloc, since the caller is responsible for
29911 handling errors. Preserve errno around `free' during failure.
29912 Do not overrun buffer when using getwd.
29914 2001-09-03 Paul Eggert <eggert@twinsun.com>
29916 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
29917 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
29920 2001-09-03 Paul Eggert <eggert@twinsun.com>
29922 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
29923 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
29924 spotted by Jim Meyering.
29926 2001-09-03 Jim Meyering <meyering@lucent.com>
29928 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
29931 2001-09-02 Jim Meyering <meyering@lucent.com>
29933 * lib/error.c: Update from GNU libc.
29935 2001-09-01 Jim Meyering <meyering@lucent.com>
29937 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
29940 2001-09-01 Jim Meyering <meyering@lucent.com>
29942 * lib/xreadlink.c: New file.
29943 * lib/xreadlink.h: New file.
29944 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
29947 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
29948 doesn't conflict with sparc Solaris 7's definition in
29949 /usr/include/sys/int_types.h.
29951 * lib/exclude.c: Use `""', not `<>' to #include non-system header
29953 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
29954 and strncasecmp as r-values. Unixware didn't have declarations.
29956 2001-08-31 Paul Eggert <eggert@twinsun.com>
29958 * lib/xstrtol.h: Add copyright notice.
29959 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
29960 LONGINT_INVALID_SUFFIX_CHAR.
29962 2001-08-31 Paul Eggert <eggert@twinsun.com>
29964 * lib/xstrtol.c (strtoimax): New decl.
29966 2001-08-31 Paul Eggert <eggert@twinsun.com>
29968 * lib/xgetcwd.c: Don't include pathmax.h.
29969 Include stdlib.h and unistd.h if available.
29971 (xmalloc, xstrdup, free): Remove decls.
29972 (xgetcwd): Don't assume sizes fit in unsigned.
29973 Check for overflow when computing sizes.
29974 Simplify reallocation code.
29976 2001-08-31 Paul Eggert <eggert@twinsun.com>
29978 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
29979 a directory's st_size can have an arbitrary value, so the old
29980 usage could waste an arbitrary amount of memory. All uses
29982 * lib/savedir.h: Update prototype.
29984 2001-08-31 Paul Eggert <eggert@twinsun.com>
29986 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
29988 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
29991 Also, make the following further changes to make this file's
29992 configuration more similar to that of strtol.c:
29993 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
29994 (strtoumax, uintmax_t, strtoull, strtol): Remove.
29995 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
29996 (strtoimax): Renamed from strtoumax. All uses of unsigned values
29997 changed to signed values.
29999 And make the following changes as well:
30000 Fix copyright notice, as 1999 was missing.
30001 (verify): New macro.
30002 (strtoimax): Check sizes at compile-time, not run-time.
30003 Prefer strtol to strtoll if both work.
30004 (main): Remove; it was not that useful and was a pain to maintain.
30006 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
30008 2001-08-31 Jim Meyering <meyering@lucent.com>
30010 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
30011 Use an initial, malloc'd, buffer of length 128 rather than
30012 a statically allocated one of length 1024.
30014 2001-08-30 Paul Eggert <eggert@twinsun.com>
30016 Simplify code, partly by assuming autoconf 2.52 semantics.
30018 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
30020 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
30021 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
30023 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
30024 Move AC_REQUIRE to next-to-top level, to avoid confusion.
30025 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
30026 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
30027 jm_AC_HEADER_INTTYPES_H.
30028 * m4/jm-macros.m4 (jm_MACROS): Likewise.
30030 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
30032 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
30033 Quote first arg of AC_DEFUN.
30034 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
30035 since they are needed to parse the include file even if we need
30036 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
30037 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
30038 but with opposite signedness.
30040 2001-08-30 Paul Eggert <eggert@twinsun.com>
30042 Merge 'exclude' changes from tar 1.13.22.
30043 This fixes one or two unlikely storage allocation overflow bugs,
30044 but doesn't change user-visible behavior otherwise.
30046 2001-08-30 Paul Eggert <eggert@twinsun.com>
30048 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
30049 (jm_PREREQ_EXCLUDE): New macro.
30051 2001-08-30 Paul Eggert <eggert@twinsun.com>
30053 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
30056 2001-08-30 Paul Eggert <eggert@twinsun.com>
30058 * lib/hash.c: Remove '2001' from copyright notice.
30060 2001-08-30 Paul Eggert <eggert@twinsun.com>
30062 * lib/full-write.h: New file.
30063 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
30064 * lib/full-write.c: Correct credits, as cccp.c no longer
30065 exists and anyway it was so heavily changed from the old cccp
30066 code as to be unrecognizable. Include full-write.h.
30067 (full_write) Return size_t, with short writes meaning failure.
30068 All callers changed. This fixes a bug with large buffers
30070 * lib/utime.c: Include full-write.h.
30072 2001-08-30 Paul Eggert <eggert@twinsun.com>
30074 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
30075 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
30076 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
30077 Include if available.
30078 (<xalloc.h>): Include
30079 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
30080 (verify): New macro. Use it to verify that EXCLUDE macros do not
30081 collide with FNM macros.
30082 (struct patopts): New struct.
30083 (struct exclude): Use it, as exclude patterns now come with options.
30084 (new_exclude): Support above changes.
30085 (new_exclude, add_exclude_file):
30086 Initial size must now be a power of two to simplify overflow checking.
30087 (free_exclude, fnmatch_no_wildcards): New function.
30088 (excluded_filename): No longer requires options arg, as the options
30089 are determined by add_exclude. Now returns bool, not int.
30090 (excluded_filename, add_exclude):
30091 Add support for the fancy new exclusion options.
30092 (add_exclude, add_exclude_file): Now takes int options arg.
30093 Check for arithmetic overflow when computing sizes.
30094 (add_exclude_file): xrealloc might modify errno, so don't
30095 realloc until after errno might be used.
30097 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
30099 (free_exclude): New decl.
30100 (add_exclude, add_exclude_file): Now takes int options arg.
30101 (excluded_filename): No longer requires options arg, as the options
30102 are determined by add_exclude. Now returns bool, not int.
30104 2001-08-30 Paul Eggert <eggert@twinsun.com>
30106 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
30108 2001-08-27 Jim Meyering <meyering@lucent.com>
30110 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
30112 * lib/version-etc.c (N_): Remove definition.
30113 Revert most of last change.
30114 Instead, simply don't mark the `Copyright...' string for translation.
30115 Based on advice from Paul Eggert.
30117 * lib/strtoxmax.c: Tweak comment.
30119 2001-08-26 Jim Meyering <meyering@lucent.com>
30121 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
30123 * m4/xstrtoimax.m4: New file.
30124 * m4/xstrtoumax.m4: Add comments explaining why we
30125 AC_REPLACE_FUNCS(strtol).
30127 2001-08-26 Jim Meyering <meyering@lucent.com>
30129 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
30130 of copyright with `%s' so translators don't get an untranslated
30132 (COPYRIGHT_YEAR): Define.
30133 (version_etc): Use fprintf rather than fputs.
30134 Suggestion from Ulrich Drepper.
30136 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
30138 * lib/strtoll.c: New file, from GNU libc.
30139 * lib/xstrtoimax.c: New file.
30141 * lib/xstrtol.h: Add xstrtoimax.
30142 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
30143 * lib/strtoimax.c: New file. Likewise, but first define
30146 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
30148 * lib/strtoxmax.c: ... then renamed to this.
30150 2001-08-18 Paul Eggert <eggert@twinsun.com>
30152 * m4/inttypes.m4: Add AC_PREREQ(2.13).
30153 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
30154 (jm_AC_TYPE_INTMAX_T): New macro.
30155 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
30157 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
30159 * m4/longlong.m4: Renamed from ulonglong.m4.
30160 * m4/inttypes.m4: Renamed from inttypes_h.m4.
30161 * m4/uintmax_t.m4: Removed.
30163 2001-08-13 Paul Eggert <eggert@twinsun.com>
30165 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
30166 Port to Solaris 8, where 'sed' requires a space after the 'r'
30167 command, and where sh dislikes "$/". Clean up the spacing a bit.
30168 Redirect output to $tmp just once.
30170 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
30172 * lib/addext.c (<errno.h>): Include.
30173 (errno): Declare if not defined.
30174 (addext): Work correctly when pathconf returns -1 and leaves
30175 errno alone because there is no limit. Also, work even if
30176 pathconf returns a value greater than SIZE_MAX.
30178 2001-08-12 Jim Meyering <meyering@lucent.com>
30180 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
30181 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
30182 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
30183 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
30184 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
30185 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
30186 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
30187 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
30188 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
30189 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
30190 utime.m4, utimes.m4, xstrtoumax.m4:
30191 Quote the first argument in each use of AC_DEFUN.
30193 2001-08-12 Jim Meyering <meyering@lucent.com>
30195 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
30196 Simply `return getcwd (NULL, 0);'.
30197 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
30198 Use 1300 as initial value for length, not PATH_MAX.
30200 * lib/pathmax.h: Clean up cpp syntax.
30202 2001-08-12 Jim Meyering <meyering@lucent.com>
30204 * lib/gettimeofday.c: New file.
30205 * lib/gtod.h: New file.
30206 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
30208 2001-08-05 Jim Meyering <meyering@lucent.com>
30210 * m4/jm-macros.m4: Require autoconf-2.52.
30212 2001-08-04 Jim Meyering <meyering@lucent.com>
30214 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
30215 stmt, to get in sync with glibc.
30217 2001-08-03 Paul Eggert <eggert@twinsun.com>
30219 The following changes are from gettext 0.10.39 as maintained by
30222 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
30223 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
30224 with inverted sense. All uses changed.
30226 * lib/mbswidth.c: Don't include <limits.h>.
30227 Include <stdlib.h> and <string.h> unconditionally.
30228 (iswcntrl, mbsinit, ISCNTRL): New macros.
30229 (mbsnwidth): Use K&R style function declarations.
30230 Don't bother checking for MB_LEN_MAX == 1, since the compiler
30231 can optimize it when MB_CUR_MAX == 1.
30232 The width of control characters is zero, not 1.
30234 2001-08-03 Paul Eggert <eggert@twinsun.com>
30236 The following changes are from gettext 0.10.39 as maintained by
30237 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
30239 * m4/codeset.m4: Upgrade to serial AM1.
30240 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
30241 all uses changed. Quote first arg of AC_DEFUN.
30242 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
30244 * m4/iconv.m4: Upgrade to serial AM2.
30245 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
30246 Add --with-libconv-prefix.
30247 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
30248 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
30249 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
30250 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
30251 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
30253 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
30254 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
30255 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
30256 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
30257 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
30258 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
30259 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30260 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
30261 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
30263 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
30266 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
30267 not the default value.
30269 2001-06-25 Bruno Haible <haible@clisp.cons.org>
30270 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
30271 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
30272 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
30273 Also check for iswcntrl, used for wcwidth fallback.
30274 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
30277 2001-08-03 Jim Meyering <meyering@lucent.com>
30279 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
30280 as it was in the original. Reported by Paul Eggert.
30282 2001-07-16 Jim Meyering <meyering@lucent.com>
30284 * m4/gettimeofday.m4: New file.
30285 Prompted by a report from Bernhard Baehr.
30287 2001-07-15 Jim Meyering <meyering@lucent.com>
30289 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
30290 stuff. Now it's in ../Makefile.cfg.
30292 2001-07-15 Jim Meyering <meyering@lucent.com>
30294 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
30295 (BUILT_SOURCES): Add unlocked-io.h.
30296 (io_functions): Define.
30297 (unlocked-io.h): New rule.
30298 (DISTCLEANFILES): Add unlocked-io.h.
30299 (all-local): Depend on unlocked-io.h, to ensure it is created.
30301 * lib/unlocked-io.hin: New file
30303 * lib/regex.c: Update from glibc.
30305 2001-07-05 Jim Meyering <meyering@lucent.com>
30307 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
30309 (libfetish_a_SOURCES): Put all .h files here instead.
30310 Remove a thus-exposed (better checks in automake) duplicate and
30311 two unnecessary .h files.
30313 2001-07-04 Jim Meyering <meyering@lucent.com>
30315 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
30316 that generates jm-glibc-io.m4 so that it doesn't trigger any make
30319 2001-07-02 Jim Meyering <meyering@lucent.com>
30321 The following changes were prompted by suggestions from Bruno Haible.
30323 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
30325 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
30326 definition of EXTRA_DIST.
30327 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
30328 ensure that the generated file is created/updated whenever the list
30329 of $(unlocked_functions) is changed.
30330 (jm-glibc-io.m4): New rule.
30331 (unlocked-io.h): New rule -- currently unused.
30333 2001-06-24 Jim Meyering <meyering@lucent.com>
30335 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
30336 unmatched right bracket, rather than kludging it with an extra,
30337 falsely-matching quote in a comment. Patch by Akim Demaille.
30339 2001-06-11 Jim Meyering <meyering@lucent.com>
30341 * lib/regex.c: Update from GNU libc.
30343 2001-05-27 Jim Meyering <meyering@lucent.com>
30345 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
30346 Check for ut_type in struct utmp.
30348 2001-05-27 Jim Meyering <meyering@lucent.com>
30350 * lib/readutmp.h (UT_TYPE): Define.
30352 2001-05-24 Jim Meyering <meyering@lucent.com>
30354 * lib/argmatch.c: Include "quote.h".
30355 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
30356 quote function. Reported by Göran Uddeborg.
30358 2001-05-22 Jim Meyering <meyering@lucent.com>
30360 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
30361 now that we use the package-supplied version unconditionally.
30362 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
30364 2001-05-21 Jim Meyering <meyering@lucent.com>
30366 * m4/regex.m4: Change a couple backticks to single quotes to avoid
30367 shell syntax errors.
30369 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
30371 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
30373 2001-05-20 Paul Eggert <eggert@twinsun.com>
30375 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
30376 Don't bother to check library strftime, since
30377 we'll be using our own my_strftime function anyway.
30378 Define my_strftime instead of strftime.
30380 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
30382 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
30383 which is not yet declared.
30385 2001-05-15 Jim Meyering <meyering@lucent.com>
30387 * m4/regex.m4: Use proper quoting so brackets appear in the test
30389 Reported by, and with help from, Bruno Haible.
30391 2001-05-13 Jim Meyering <meyering@lucent.com>
30393 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
30396 2001-05-11 Paul Eggert <eggert@twinsun.com>
30398 dirname code cleanup. base_name now behaves more compatibly
30399 with POSIX basename when given file names that have trailing
30400 slashes, and similarly for dir_name. Add new primitives
30401 base_len and dir_len. Put the directory-name-related decls
30404 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
30405 * lib/backupfile.c (base_name): Likewise.
30406 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
30407 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
30408 * lib/makepath.c (strip_trailing_slashes): Likewise.
30409 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
30410 ISSLASH): Likewise.
30411 * lib/rename.c (strip_trailing_slashes): Likewise.
30412 * lib/same.c (base_name): Likewise.
30413 * lib/stripslash.c (ISSLASH): Likewise.
30415 * lib/addext.c: Include <dirname.h> after size_t is defined.
30416 * lib/backupfile.c: Likewise.
30418 * lib/addext.c (addext): Use base_len to trim redundant
30419 trailing slashes instead of doing it ourselves.
30420 But do not trim the last slash if it is not redundant.
30422 * lib/backupfile.c (find_backup_file_name,
30423 max_backup_version): Use base_len instead of rolling it ourselves.
30424 Handle the case of "" and (on DOS) "C:" correctly.
30426 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
30427 needed. Include <string.h>, <dirname.h>.
30428 (base_name): Allow file names ending in slashes, other than names
30429 that are all slashes. In this case, return the basename followed
30430 by the slashes. This is more general, and can be used in places
30431 where the original base_name purposely had an assertion failure.
30432 (base_len): New function.
30434 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
30435 Do not include <assert.h>; no longer needed.
30437 (memrchr): Remove decl.
30438 (dir_name_r): Remove.
30439 (dir_len): Renamed from dirlen. All callers changed.
30440 Rewrite in terms of base_name, for simplicity and consistency.
30441 (dir_name): Never return NULL. All callers changed.
30442 Do not include <stdlib.h> in test program; no longer needed.
30443 return 0; is fine for test program.
30445 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
30447 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
30449 * lib/path-concat.c (path_concat): Use base_len to compute
30450 base length, not strlen; this means we cannot rely on memcpy
30453 * lib/same.c (STREQ): Remove.
30454 (same_name): Handle the case where the basename ends in trailing '/'.
30456 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
30457 a slash was stripped. Do not strip the last slash after a
30458 file system prefix.
30460 2001-05-11 Paul Eggert <eggert@twinsun.com>
30462 * lib/Makefile.am (libfetish_a_SOURCES):
30463 Add strftime.c, since we now compile it on all hosts.
30465 * lib/strftime.c (my_strftime):
30466 Define to nstrftime if emacs, but only if my_strftime is not defined.
30467 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
30468 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
30469 Add one more extra argument: a nanoseconds value.
30472 (my_strftime function): Add %N format.
30473 (emacs_strftimeu): Renamed from emacs_strftime,
30474 with extra ut argument.
30476 2001-05-09 Paul Eggert <eggert@twinsun.com>
30478 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
30480 2001-04-21 Jim Meyering <meyering@lucent.com>
30482 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
30485 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
30487 * m4/ftruncate.m4: Check for chsize.
30488 Link with ftruncate.o unconditionally if ftruncate is missing.
30489 This was required when cross-compiling to i586-mingw32msvc.
30491 2001-04-08 Jim Meyering <meyering@lucent.com>
30493 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
30494 recomputed; that's necessary when the offset spans a DST transition.
30495 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
30497 2001-04-02 Jim Meyering <meyering@lucent.com>
30499 * lib/regex.h, regex.c: Update from GNU libc.
30501 2001-03-24 Jim Meyering <meyering@lucent.com>
30503 * m4/jm-macros.m4: Require autoconf-2.49d.
30505 2001-03-20 Bruno Haible <haible@clisp.cons.org>
30507 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
30509 2001-03-19 Paul Eggert <eggert@twinsun.com>
30511 * lib/version-etc.c (version_etc_copyright): Update to 2001.
30513 2001-03-17 Jim Meyering <meyering@lucent.com>
30515 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
30516 now that the version in autoconf is equivalent.
30517 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
30519 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
30520 Suggestion from Akim Demaille.
30522 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
30523 (jm_PREREQ_TEMPNAME): New function.
30525 2001-03-16 Paul Eggert <eggert@twinsun.com>
30527 * lib/tempname.c (uint64_t): Define to uintmax_t if
30528 not defined, and if UINT64_MAX is not defined.
30529 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
30530 Reported by John David Anglin.
30532 2001-03-15 Bruno Haible <haible@clisp.cons.org>
30534 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
30535 resolve alias if codeset is empty.
30536 * lib/config.charset (BeOS): Use wildcard syntax.
30538 2001-03-13 Jim Meyering <meyering@lucent.com>
30540 * lib/path-concat.c (path_concat)
30541 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
30542 concatenating e.g., `C:' and `foo'.
30545 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30547 * lib/localcharset.c (locale_charset): Don't use
30548 setlocale(LC_CTYPE,NULL). Don't return NULL.
30549 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
30551 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30553 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
30554 support for DOS/DJGPP.
30556 2001-03-01 Paul Eggert <eggert@twinsun.com>
30558 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
30559 lacks mkstemp. Compile our own tempname.c if we compile our own
30560 mkstemp.c, as mkstemp relies on tempname.
30562 2001-03-01 Jim Meyering <meyering@lucent.com>
30564 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
30565 AH_VERBATIM really does output its argument verbatim.
30567 2001-02-28 Paul Eggert <eggert@twinsun.com>
30569 * lib/Makefile.am (libfetish_a_SOURCES):
30570 Add dup-safer.c, fopen-safer.c.
30571 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
30573 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
30574 * lib/unistd-safer.h: New files.
30576 2001-02-25 Paul Eggert <eggert@twinsun.com>
30578 The mkstemp replacement is taken from glibc 2.2.2, with some
30579 portability fixes for use outside glibc, as follows:
30581 * lib/tempname.c (struct_stat64): New macro.
30582 (direxists, __gen_tempname): Use it.
30583 This avoids a portability problem with Solaris 8.
30585 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
30586 (<stddef.h>, <stdint.h>, <string.h>):
30587 Include only if STDC_HEADERS || _LIBC.
30588 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
30589 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
30590 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
30591 (__set_errno): Define this macro if <errno.h> doesn't.
30592 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
30593 Define these macros if <stdio.h> doesn't.
30594 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
30595 Define these macros if <sys/stat.h>
30596 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
30597 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
30598 __xstat64): Define if not _LIBC.
30599 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
30600 (__gen_tempname): Invoke gettimeofday only if
30601 HAVE_GETTIMEOFDAY || _LIBC;
30602 otherwise, fall back on plain "time".
30603 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
30605 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
30607 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
30609 2001-02-18 Paul Eggert <eggert@twinsun.com>
30611 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
30613 2001-02-17 Paul Eggert <eggert@twinsun.com>
30615 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
30616 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
30617 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
30618 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30620 2001-02-17 Paul Eggert <eggert@twinsun.com>
30622 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
30623 Remove workaround macros for hosts that have mbrtowc but not
30624 mbstate_t, as we now insist on proper declarations for both
30625 before using mbrtowc.
30627 2001-02-17 Jim Meyering <meyering@lucent.com>
30629 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
30630 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
30631 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
30634 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
30635 rather than AC_CACHE_VAL.
30637 2001-02-17 Jim Meyering <meyering@lucent.com>
30639 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
30640 around included file name.
30642 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
30644 * lib/strftime.c: Update from GNU libc (the only changes were to
30647 2001-02-17 Jim Meyering <meyering@lucent.com>
30649 * lib/regex.c: Update from libc.
30651 2001-02-17 Bruno Haible <haible@clisp.cons.org>
30653 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
30656 2001-02-16 Paul Eggert <eggert@twinsun.com>
30658 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
30659 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
30660 Reported by Mark Hounschell via Paul Eggert.
30662 2001-02-07 Jim Meyering <meyering@lucent.com>
30664 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
30666 2001-02-05 Jim Meyering <meyering@lucent.com>
30668 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
30669 it includes the patch required for `large file' support with at least
30670 HP-UX's 10.20 /bin/cc.
30672 2001-02-03 Jim Meyering <meyering@lucent.com>
30674 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
30675 AS_IF, now that it works once again (mysteriously).
30676 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30678 2001-01-30 Jim Meyering <meyering@lucent.com>
30680 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
30681 * m4/chown.m4: Rename conftestchown to conftest.chown.
30682 * m4/rename.m4: s/conftestdir/conftest.d1/ and
30683 s/conftestdir2/conftest.d2/.
30684 * m4/utimes.m4: s/conftestdata/conftest.data/
30685 Inspired by Pavel Roskin's change in autoconf.
30687 2001-01-30 Bruno Haible <haible@clisp.cons.org>
30689 * lib/config.charset: Update for FreeBSD 4.2.
30691 2001-01-27 Jim Meyering <meyering@lucent.com>
30693 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
30695 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30697 2001-01-26 Jim Meyering <meyering@lucent.com>
30699 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
30700 quotearg.c includes it.
30702 2001-01-26 Jim Meyering <meyering@lucent.com>
30704 * lib/quotearg.c: Include stddef.h.
30705 * lib/quote.c: Include stddef.h.
30706 Reported by Axel Kittenberger.
30708 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
30709 line in double quotes so that it evokes a better diagnostic.
30710 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
30711 Reported by Axel Kittenberger.
30713 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
30715 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30716 as if it was a `charset'.
30718 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30720 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30723 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30725 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30726 to avoid a warning. Add back 'const' to inptr.
30728 2001-01-20 Jim Meyering <meyering@lucent.com>
30730 Be sure that headers are checked before used in code compiled
30731 for the type checks.
30732 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30733 In place of that, invoke jm_CHECK_ALL_TYPES.
30734 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30735 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30736 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30737 The check for ssize_t was mistakenly run before the test for unistd.h.
30739 The configure-time check for stdbool.h was missing.
30740 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30741 (jm_PREREQ_HASH): New function.
30743 2001-01-17 Jim Meyering <meyering@lucent.com>
30745 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30746 for autoconf-2.49c.
30747 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30749 2001-01-16 Jim Meyering <meyering@lucent.com>
30751 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30754 2001-01-14 Jim Meyering <meyering@lucent.com>
30756 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30757 foo and bar. Create conftestdir/ in the script, not in the C code.
30758 Remove directories in the script, not in the C code.
30759 Remove conftestdir{,2} before trying to create the directory.
30760 Make the entire configure script fail if the mkdir fails.
30762 2001-01-14 Jim Meyering <meyering@lucent.com>
30764 * lib/rename.c: New file. From Volker Borchert.
30765 Include stdlib.h, string.h or strings.h, and xalloc.h.
30766 Use strip_trailing_slashes rather than open-coding it.
30768 2001-01-03 Paul Eggert <eggert@twinsun.com>
30770 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30772 2001-01-03 Jim Meyering <meyering@lucent.com>
30774 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30775 of local `inptr' to avoid warning with some system declarations of
30778 2001-01-02 Volker Borchert <bt@teknon.de>
30780 * m4/rename.m4: New file.
30781 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
30783 2001-01-01 Jim Meyering <meyering@lucent.com>
30785 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
30786 even on systems with utmpx.h. It's necessary for the declaration of
30787 utmp's ut_user member. Reported by Andreas Jaeger.
30789 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
30790 available. They are required for the declarations of getgrgid and
30792 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
30793 Reported by Andreas Jaeger.
30795 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
30797 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
30798 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
30799 so `make install' also works in VPATH builds.
30801 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
30803 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
30804 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
30805 can be used in subdirectories.
30807 2000-12-29 Paul Eggert <eggert@twinsun.com>
30809 * lib/modechange.c: Do not assume that mode_t uses the
30810 traditional octal encoding. E.g. "chmod 1 FOO" should set
30811 the other-execute bit of FOO even if S_IXOTH != 1.
30813 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
30814 WOTH, XOTH, ALLM): New macros.
30815 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
30816 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
30818 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
30819 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
30821 No need to use uintmax_t; unsigned long is long enough.
30822 Don't bother to get suffix since we don't use it.
30824 2000-12-26 Jim Meyering <meyering@lucent.com>
30826 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
30827 better with autoheader.
30829 2000-12-24 Jim Meyering <meyering@lucent.com>
30831 * lib/hash.c (is_prime): Return explicit boolean values.
30832 (hash_get_first): Return NULL to appease Irix5.6's 89.
30833 Reported by Nelson Beebe.
30835 2000-12-19 Bruno Haible <haible@clisp.cons.org>
30837 * lib/localcharset.c (locale_charset): Add support for Win32.
30839 2000-12-18 Paul Eggert <eggert@twinsun.com>
30841 * lib/physmem.h, lib/physmem.c: New files.
30843 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
30844 (noinst_HEADERS): Add physmem.h.
30846 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
30847 't' for compatibility with Solaris 8 sort.
30849 2000-12-18 Bruno Haible <haible@clisp.cons.org>
30851 * lib/config.charset: Add support for BeOS.
30853 2000-12-17 Jim Meyering <meyering@lucent.com>
30855 * m4/dos.m4 (jm_AC_DOS): New file and macro.
30856 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
30858 2000-12-16 Jim Meyering <meyering@lucent.com>
30860 This bug had a serious impact on chown: `chown N:M FILE' (for integer
30861 N and M) would have treated it like `chown N:N FILE'.
30863 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
30865 2000-12-16 Jim Meyering <meyering@lucent.com>
30867 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
30868 SHELLS_FILE to a file name that's useful on djgpp systems.
30870 (ADDITIONAL_DEFAULT_SHELLS): Define.
30871 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
30872 Based mostly on a patch from Prashant TR.
30874 2000-12-16 Bruno Haible <haible@clisp.cons.org>
30876 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
30877 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
30878 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
30880 2000-12-08 Andreas Schwab <schwab@suse.de>
30882 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
30883 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
30885 2000-12-07 Jim Meyering <meyering@lucent.com>
30887 * lib/stripslash.c (ISSLASH): Define.
30888 (strip_trailing_slashes): Use ISSLASH rather than comparing against
30892 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
30893 (dir_name_r): Declare this function as static.
30894 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
30895 manifest itself on a name containing a mix of slashes and
30897 Make this function work with names starting with a DOS-style
30898 drive letter and colon prefix.
30899 (dir_name): Append `.' if necessary.
30900 Based mostly on patches from Prashant TR and Eli Zaretskii.
30902 * lib/dirname.h (dir_name_r): Remove prototype.
30904 2000-12-06 Paul Eggert <eggert@twinsun.com>
30906 * m4/off_t-format.m4: Remove this file.
30907 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
30909 2000-12-06 Jim Meyering <meyering@lucent.com>
30911 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
30912 replacement strtoull, we may well need the replacement strtoul, too.
30913 Check for declarations of strtoul and strtoull.
30914 Check for strtol. Mainly as a cue to cause automake to include
30915 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
30916 Check for limits.h -- strtol.c needs it.
30918 2000-12-05 Jim Meyering <meyering@lucent.com>
30920 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
30922 2000-12-04 Jim Meyering <meyering@lucent.com>
30924 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
30925 Also include memory.h, stdlib.h, unistd.h if appropriate.
30926 Reported by Andreas Jaeger (conflicting declaration of malloc).
30928 2000-12-02 Jim Meyering <meyering@lucent.com>
30930 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
30931 * m4/jm-macros.m4 (jm_MACROS): require it.
30933 2000-12-02 Jim Meyering <meyering@lucent.com>
30935 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
30937 2000-12-01 Paul Eggert <eggert@twinsun.com>
30939 * lib/memrchr.c: Include <config.h> before any system include file.
30941 2000-11-30 Jim Meyering <meyering@lucent.com>
30943 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
30945 2000-11-30 Jim Meyering <meyering@lucent.com>
30947 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
30949 2000-11-29 Paul Eggert <eggert@twinsun.com>
30951 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
30953 2000-11-26 Jim Meyering <meyering@lucent.com>
30955 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
30957 2000-11-22 Paul Eggert <eggert@twinsun.com>
30959 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
30960 size of (size_t) -1; it's not portable.
30962 2000-11-17 Jim Meyering <meyering@lucent.com>
30964 * lib/strstr.c: Update from GNU libc.
30966 2000-11-17 Akim Demaille <akim@epita.fr>
30968 * lib/obstack.h: Formatting changes.
30969 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
30970 prevent type checking.
30971 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
30972 cast the value to (void *): assigning a `foo *' to a `void *'
30974 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
30976 2000-11-16 Jim Meyering <meyering@lucent.com>
30978 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
30980 2000-11-11 Jim Meyering <meyering@lucent.com>
30982 * lib/error.c: Add a couple #includes, merging from GNU libc version.
30984 2000-11-10 Jim Meyering <meyering@lucent.com>
30986 * lib/obstack.h: Update from GNU libc.
30987 * lib/obstack.c: Likewise.
30989 2000-11-08 Bruno Haible <haible@clisp.cons.org>
30991 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
30993 2000-11-06 Paul Eggert <eggert@twinsun.com>
30995 * lib/getusershell.c (setusershell): Use rewind rather than
30996 fseek/fseeko, to avoid configuration hassles with fseeko.
30997 Don't bother opening SHELLS_FILE if shellstream is NULL;
30998 it's not necessary.
31000 2000-11-05 Jim Meyering <meyering@lucent.com>
31002 * lib/makepath.h (make_dir): Declare.
31003 * lib/makepath.c (make_dir): Remove `static' attribute.
31006 2000-11-04 Jim Meyering <meyering@lucent.com>
31008 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
31010 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
31012 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
31013 last one in a bucket, advance to the next bucket.
31015 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
31017 * lib/fnmatch.c: Do not comment out all the code if we are using
31018 the GNU C library, because in some cases we are replacing buggy
31019 code in the GNU C library itself.
31021 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
31023 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
31024 (regex_compile): Catch bogus \(\1\).
31026 2000-10-30 Paul Eggert <eggert@twinsun.com>
31028 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
31029 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
31030 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
31032 2000-10-30 Paul Eggert <eggert@twinsun.com>
31034 * lib/error.h, getline.h, modechange.h:
31035 Remove "2000" from Copyright line, as the file hasn't been
31036 changed this year other than in the copyright notice.
31038 * lib/xalloc.h: Add "2000" to Copyright line, as this file
31039 was changed this year.
31041 2000-10-29 Jim Meyering <meyering@lucent.com>
31043 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
31045 * m4/ls-mntd-fs.m4: Likewise
31047 2000-10-29 Jim Meyering <meyering@lucent.com>
31049 * lib/xstat.in: Fix grammar in comment.
31051 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
31053 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
31054 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
31055 doesn't define __restrict_arr.
31057 2000-10-28 Jim Meyering <meyering@lucent.com>
31059 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
31060 (jm_PREREQ_MEMCHR): New function.
31062 2000-10-28 Jim Meyering <meyering@lucent.com>
31064 * lib/memchr.c: Update from libc.
31065 Adjust for portability:
31066 [HAVE_STDLIB_H]: Include stdlib.h.
31067 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
31068 Undef __memchr, too.
31069 [!weak_alias]: Define __memchr to memchr.
31071 * lib/regex.c: Update from libc.
31072 * lib/regex.h: Likewise.
31073 * lib/getopt1.c: Likewise.
31074 * lib/memcmp.c: Likewise.
31076 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
31077 Avoid using fseek, when possible -- it's broken by design.
31078 Patch by Ulrich Drepper.
31080 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
31082 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
31083 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
31084 Giving in to popular pressure to shut up the compiler with casts.
31086 2000-10-26 Jim Meyering <meyering@lucent.com>
31088 * lib/strftime.c: Update from libc.
31090 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
31092 * regex.c: More `unsigned char' -> `re_char' changes.
31093 Also change several `int' into `re_wchar_t'.
31094 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
31095 (PUSH_FAILURE_POINTER): Don't cast any more.
31096 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
31097 We want GCC to complain, since this piece of code makes
31098 re_match non-reentrant, which *should* be fixed.
31099 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
31100 (EXTEND_BUFFER): Use RETALLOC.
31101 (SET_LIST_BIT): Don't cast.
31102 (re_wchar_t): New type.
31103 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
31104 that those two functions will always properly return.
31105 (IMMEDIATE_QUIT_CHECK): Cast to void.
31106 (analyse_first): Use recursion rather than an explicit stack.
31107 (re_compile_fastmap): Can't fail anymore.
31108 (re_search_2): Don't check re_compile_fastmap for failure.
31109 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
31110 Now also sets the new value (passed in a new argument).
31111 (re_match_2_internal): Use it.
31112 Also, use a new var `reg' of type size_t when looping through regs
31113 rather than reuse the inappropriate `mcnt'.
31115 2000-10-25 Jim Meyering <meyering@lucent.com>
31117 * lib/obstack.c: Update from libc.
31119 2000-10-24 Kenichi Handa <handa@etl.go.jp>
31121 * regex.c (regex_compile): Change the way of handling a range from
31122 a char less than 256 to a char not less than 256.
31124 2000-10-24 Andrew Innes <andrewi@gnu.org>
31126 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
31128 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
31129 so that re_search functions only quit when callers expect them to.
31131 2000-10-23 Jim Meyering <meyering@lucent.com>
31133 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
31134 wrong. That set_locale call must not have any side effects.
31137 2000-10-22 Jim Meyering <meyering@lucent.com>
31139 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
31140 [CYCLIC]: Remove now-unused definition.
31142 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
31143 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
31144 Suggestion from Ulrich Drepper.
31146 2000-10-21 Jim Meyering <meyering@lucent.com>
31148 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
31149 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
31150 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
31152 2000-10-21 Jim Meyering <meyering@lucent.com>
31154 * lib/dirname.c (memrchr): Declare if necessary.
31155 (dir_name): Remove the restriction that there be no
31156 trailing slashes. Now, this code skips past them, effectively
31158 [TEST_DIRNAME] (main): New unit tests.
31160 * lib/memrchr.c: New file from GNU libc.
31161 Undef __memrchr, too.
31162 [!weak_alias]: Define __memrchr to memrchr.
31163 Guard weak_alias use with `#ifdef weak_alias'.
31165 2000-10-21 Jim Meyering <meyering@lucent.com>
31167 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
31168 (dir_name): Use dir_name_r.
31169 * lib/dirname.h (dir_name_r): Declare it.
31171 2000-10-17 Jim Meyering <meyering@lucent.com>
31173 * lib/quote.h (PARAMS): Define and use.
31174 Reported by Akim Demaille.
31176 * lib/getopt.c: Update from libc.
31178 2000-10-16 Jim Meyering <meyering@lucent.com>
31180 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
31184 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
31186 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
31188 2000-09-25 Jim Meyering <meyering@lucent.com>
31190 * lib/md5.h (rol): Define (from GnuPG).
31192 * lib/sha.c: Give credit (GnuPG) where due.
31193 (M): Use rol rather than open-coding it.
31194 Add a FIXME comment.
31196 2000-09-21 Jim Meyering <meyering@lucent.com>
31198 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
31199 Reported by Michael Stone.
31201 2000-09-20 Jim Meyering <meyering@lucent.com>
31203 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
31204 (noinst_HEADERS): Add sha.h.
31205 Based on code from Scott G. Miller and from GnuPG.
31207 2000-09-18 Jim Meyering <meyering@lucent.com>
31209 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
31210 LIBS. Otherwise, everyone ends up linking with -lelf for some
31212 Reported by Mike Stone.
31214 2000-09-15 Jim Meyering <meyering@lucent.com>
31216 * lib/regex.c: Update from libc.
31218 2000-09-10 Jim Meyering <meyering@lucent.com>
31220 * lib/getopt.c (_getopt_internal): Update from glibc.
31222 2000-09-09 Jim Meyering <meyering@lucent.com>
31224 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
31225 think it should be used as a general replacement for isascii.
31226 * lib/fnmatch.c: Likewise.
31227 * lib/mbswidth.c: Likewise
31228 * lib/regex.c: Likewise.
31231 * lib/userspec.c: Include sys/param.h and limits.h.
31233 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
31234 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
31235 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
31236 UID, GID. Check range.
31238 2000-09-06 Jim Meyering <meyering@lucent.com>
31240 * lib/getopt.c (_getopt_internal): Update from glibc.
31242 2000-08-30 Jim Meyering <meyering@lucent.com>
31244 * lib/strftime.c: Merge in changes from GNU libc.
31246 2000-08-26 Jim Meyering <meyering@lucent.com>
31248 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
31249 * m4/fpending.m4: New file.
31251 2000-08-26 Jim Meyering <meyering@lucent.com>
31253 * lib/closeout.c: Include "__fpending.h".
31254 (close_stdout_status): Return right away if there's nothing to flush.
31256 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
31257 * lib/__fpending.c: New file.
31258 * lib/__fpending.h: New file.
31260 2000-08-20 Jim Meyering <meyering@lucent.com>
31262 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
31263 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
31264 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
31266 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
31268 Improve fileutils installation on systems where running
31269 programs (like install) can't be unlinked.
31270 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
31271 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
31273 2000-08-07 Paul Eggert <eggert@twinsun.com>
31275 Standardize on "memory exhausted" instead of "Memory exhausted"
31276 or "virtual memory exhausted".
31277 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
31278 "virtual memory exhausted".
31279 * lib/same.c (same_name): Invoke xalloc_die instead of printing
31281 * lib/userspec.c (parse_user_spec): Likewise.
31282 * lib/bumpalloc.h: comment fix
31283 * lib/same.c, userspec.c: Include xalloc.h.
31285 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
31286 not char *const and pointing to a constant array.
31287 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
31288 (xrealloc): Comment fix.
31290 * lib/userspec.c (parse_user_spec):
31291 Don't translate a message until just before returning,
31292 to avoid unnecessary translation.
31294 2000-08-07 Jim Meyering <meyering@lucent.com>
31296 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
31297 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
31298 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
31299 getgroups.c, gethostname.c, getopt.h, group-member.c,
31300 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
31301 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
31302 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
31303 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
31304 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
31305 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
31306 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
31307 yesno.c: Back out Copyright date changes for each file with no change
31308 this year. This eases coordination with other programs using the same
31309 source code modules. From Paul Eggert.
31311 2000-08-06 Paul Eggert <eggert@twinsun.com>
31313 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
31314 not char, for compatibility with glibc 2.1.3 strftime.c.
31316 2000-08-03 Greg McGary <greg@mcgary.org>
31318 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
31319 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
31320 (EXTEND_BUFFER): Use them.
31322 2000-08-01 Jim Meyering <meyering@lucent.com>
31324 * lib/dirname.c (ISSLASH): Define.
31325 (BACKSLASH_IS_PATH_SEPARATOR): Define.
31326 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
31327 both `\' and `/' may be use as path separators.
31328 Based on a patch from Prashant TR.
31330 2000-07-31 Paul Eggert <eggert@twinsun.com>
31332 * lib/quotearg.c (quotearg_n_options): Don't make the initial
31333 slot vector a constant, since it might get modified.
31335 2000-07-31 Jim Meyering <meyering@lucent.com>
31337 * lib/xmalloc.c: Use `virtual memory exhausted', not
31338 `Memory exhausted'.
31339 * lib/obstack.c (print_and_abort): Likewise.
31341 2000-07-30 Paul Eggert <eggert@twinsun.com>
31343 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
31344 buffer, so that the caller can always quote one small
31345 component of a "memory exhausted" message in slot 0.
31346 From a suggestion by Jim Meyering.
31348 2000-07-30 Jim Meyering <meyering@lucent.com>
31350 * lib/makepath.c (make_path): Quote the other instance, too.
31352 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
31353 (STATIC_BUF_SIZE): Define.
31354 (quotearg_n_options): Use only statically allocated storage when
31355 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
31356 than STATIC_BUF_SIZE.
31358 2000-07-29 Jim Meyering <meyering@lucent.com>
31360 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
31361 * lib/dirname.c (dir_name): Likewise.
31363 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
31366 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
31367 (dir_name): Assert that there are no trailing slashes.
31369 2000-07-29 Bruno Haible <haible@clisp.cons.org>
31371 * lib/mbswidth.h (mbswidth): Add a flags argument.
31372 (mbswidth): New declaration.
31373 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
31374 * lib/mbswidth.c (mbswidth): Add a flags argument.
31375 (mbsnwidth): New function.
31377 2000-07-24 Jim Meyering <meyering@lucent.com>
31379 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
31381 2000-07-23 Paul Eggert <eggert@twinsun.com>
31383 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
31385 2000-07-23 Paul Eggert <eggert@twinsun.com>
31387 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
31388 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
31389 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
31390 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
31391 invoke multibyte primitives.
31393 2000-07-23 Paul Eggert <eggert@twinsun.com>
31396 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
31397 so that mbstate_t is always defined.
31399 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
31400 be 1 in at least one GCC installation, and this configuration
31401 error is likely to be common. Ignoring MB_LEN_MAX hurts
31402 performance on hosts that have mbrtowc but have only unibyte
31403 locales, but I assume these hosts are rare.
31405 2000-07-23 Paul Eggert <eggert@twinsun.com>
31407 * lib/mbswidth.c (_XOPEN_SOURCE):
31408 Don't define; this causes problems on Solaris 7.
31409 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
31411 2000-07-23 Jim Meyering <meyering@lucent.com>
31413 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
31414 too: getgrgid, getpwuid, getuid.
31416 2000-07-23 Jim Meyering <meyering@lucent.com>
31418 * lib/basename.c (base_name): Add an assertion.
31420 2000-07-23 Bruno Haible <haible@clisp.cons.org>
31422 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
31423 shadow its mbsinit function.
31425 2000-07-17 Bruno Haible <haible@clisp.cons.org>
31427 * lib/mbswidth.h: New file.
31428 * lib/mbswidth.c: New file.
31429 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
31430 (noinst_HEADERS): Add mbswidth.h.
31432 2000-07-17 Bruno Haible <haible@clisp.cons.org>
31434 * lib/config.charset: Add support for FreeBSD. Improve support for
31437 2000-07-16 Bruno Haible <haible@clisp.cons.org>
31439 * m4/mbswidth.m4: New file.
31440 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
31442 2000-07-15 Jim Meyering <meyering@lucent.com>
31444 * lib/makepath.c: Include quote.h.
31445 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
31446 corresponding argument in a `quote (...)' call.
31447 Give better diagnostics.
31449 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
31450 (noinst_HEADERS): Add quote.h.
31452 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
31453 from tar's src/misc.c.
31454 * lib/quote.h: New file. Prototypes for same.
31456 2000-07-14 Paul Eggert <eggert@twinsun.com>
31458 From a suggestion by Bruno Haible.
31459 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
31460 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
31461 to decide whether to define the BeOS workaround macro;
31462 this adjusts to the change to AC_MBSTATE_T.
31464 2000-07-14 Jim Meyering <meyering@lucent.com>
31466 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
31467 jm_AC_TYPE_UINTMAX_T.
31469 2000-07-13 Paul Eggert <eggert@twinsun.com>
31471 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
31473 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
31474 quotearg_buffer_restyled): Add support for
31475 clocale_quoting_style. Undo previous change to
31476 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
31477 and "{RIGHT QUOTATION MARK}" msgids.
31479 2000-07-10 Paul Eggert <eggert@twinsun.com>
31481 From a suggestion by Bruno Haible.
31482 * m4/mbstate_t.m4 (AC_MBSTATE_T):
31483 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
31484 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
31485 and mbstate_t, to a single-part test that simply defines mbstate_t.
31486 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
31487 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
31489 2000-07-10 Jim Meyering <meyering@lucent.com>
31491 * m4/strerror_r.m4: Mirror the correction made in autoconf.
31493 * m4/gnu-source.m4: Output to confdefs.h directly.
31494 Suggestion from Akim Demaille.
31496 2000-07-09 Paul Eggert <eggert@twinsun.com>
31498 The old behavior of quoting `like this' doesn't look good with
31499 newer, ISO-style fonts. See:
31500 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
31502 Instead, quote "like this" by default. Let the translator
31503 tailor the locale-specific quoting behavior by providing
31504 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
31506 * lib/quotearg.c (N_): New macro.
31507 (gettext_default): New function.
31508 (quotearg_buffer_restyled): Use
31509 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
31510 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
31512 2000-07-09 Jim Meyering <meyering@lucent.com>
31514 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
31515 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
31517 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
31518 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
31520 2000-07-09 Jim Meyering <meyering@lucent.com>
31522 * lib/Most files: Update copyright dates to include 2000.
31524 2000-07-08 Jim Meyering <meyering@lucent.com>
31526 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
31528 (xgethostname): Remove now-unnecessary #ifdef.
31529 Move declaration of `err' into loop where it's used.
31531 2000-07-05 Paul Eggert <eggert@twinsun.com>
31532 and Bruno Haible <haible@clisp.cons.org>
31534 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
31535 only if the test for an object-type mbstate_t fails. This
31536 prevents us from mistakenly reporting that mbstate_t is a
31537 system object type after we "#define mbstate_t int" to work
31540 2000-07-05 Paul Eggert <eggert@twinsun.com>
31541 and Bruno Haible <haible@clisp.cons.org>
31543 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
31545 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31547 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
31549 Include <ctype.h> for use of isalpha.
31551 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31553 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
31554 by allocating a larger buffer. Test the gethostname return value for
31555 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
31556 returns an error and ENAMETOOLONG isn't defined.
31558 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31560 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
31563 2000-07-04 Jim Meyering <meyering@lucent.com>
31565 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
31566 of the deprecated AC_CHECKING.
31568 2000-07-04 Jim Meyering <meyering@lucent.com>
31570 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
31571 Reported by Bruno Haible.
31573 2000-07-04 Jim Meyering <meyering@lucent.com>
31575 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
31576 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
31579 2000-07-03 Paul Eggert <eggert@twinsun.com>
31581 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
31582 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
31584 2000-07-03 Paul Eggert <eggert@twinsun.com>
31585 and Bruno Haible <haible@clisp.cons.org>
31587 * lib/quotearg.c (mbrtowc):
31588 Assign to *pwc, and return 1 only if result is nonzero.
31589 (iswprint): Use ISPRINT when substituting our own mbrtowc.
31591 2000-07-03 Jim Meyering <meyering@lucent.com>
31593 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
31595 2000-07-03 Jim Meyering <meyering@lucent.com>
31597 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
31598 This is necessary to get a definition of e.g., UTMP_FILE on
31602 2000-07-02 Jim Meyering <meyering@lucent.com>
31604 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
31606 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
31607 AC_LIBOBJ(function_name).
31608 * m4/chown.m4: Likewise.
31609 * m4/fnmatch.m4: Likewise.
31610 * m4/ftruncate.m4: Likewise.
31611 * m4/getgroups.m4: Likewise.
31612 * m4/getline.m4: Likewise.
31613 * m4/group-member.m4: Likewise.
31614 * m4/jm-macros.m4: Likewise.
31615 * m4/lstat.m4: Likewise.
31616 * m4/malloc.m4: Likewise.
31617 * m4/memcmp.m4: Likewise.
31618 * m4/nanosleep.m4: Likewise.
31619 * m4/putenv.m4: Likewise.
31620 * m4/realloc.m4: Likewise.
31621 * m4/regex.m4: Likewise.
31622 * m4/stat.m4: Likewise.
31623 * m4/strftime.m4: Likewise.
31625 2000-07-02 Jim Meyering <meyering@lucent.com>
31627 * lib/quotearg.c (mbstate_t): Don't define here.
31629 2000-07-02 Jim Meyering <meyering@lucent.com>
31631 * lib/nanosleep.c (SIGCONT): Define if not already defined.
31633 2000-07-01 Jim Meyering <meyering@lucent.com>
31635 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
31637 2000-07-01 Jim Meyering <meyering@lucent.com>
31639 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
31642 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31644 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
31645 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
31647 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31649 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
31650 per change in ../m4/ls-mntd-fs.m4.
31651 (read_filesystem_list): Ignore symbolic links.
31653 2000-06-29 Jim Meyering <meyering@lucent.com>
31655 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
31656 for declaration of strcmp.
31658 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
31660 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
31661 Avoid warning by casting result to `char *' to remove `const'.
31663 2000-06-28 Jim Meyering <meyering@lucent.com>
31665 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
31666 included by quotearg.c, for which we perform this test. From
31669 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31671 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
31672 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
31673 <utmpx.h> exists, put readutmp.o into LIBOBJS.
31675 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31677 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
31679 2000-06-26 Paul Eggert <eggert@twinsun.com>
31681 savedir now sets errno on failure and invokes xmalloc to get memory.
31682 Fix a couple of other minor bugs while we're at it.
31684 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
31685 (NAMLEN): Remove macro.
31686 (malloc, realloc): Remove decls.
31687 (stpcpy): Likewise.
31688 ("xalloc.h"): Include.
31689 (NAME_SIZE_DEFAULT): New macro.
31690 (savedir): Use xmalloc / xrealloc to allocate memory.
31691 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
31692 Skip "" directory entries.
31693 Use strlen to calculate directory entry length, since the old method
31694 is rarely used these days and isn't worth supporting.
31695 Don't use a pointer after freeing it.
31696 Check for integer overflow when calculating allocation size.
31697 Use memcpy to copy entries, instead of stpcpy.
31698 Set errno properly when returning NULL.
31699 Check for readdir error.
31701 2000-06-26 Jim Meyering <meyering@lucent.com>
31703 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
31705 2000-06-25 Jim Meyering <meyering@lucent.com>
31707 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
31708 Linux header bug when _XOPEN_SOURCE is defined to 500.
31710 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31712 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
31715 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31717 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31719 Don't include <stdlib.h>. Don't declare malloc, realloc.
31721 2000-06-24 Jim Meyering <meyering@lucent.com>
31723 * m4/strerror_r.m4: Revive this file -- to try out an experimental
31724 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31725 for which strerror does return char*, but which lacks a conveniently
31726 accessible declaration of the function. If the compile-test says
31727 strerror_r doesn't work, then resort to a `run'-test that works on
31728 BeOS and segfaults on DEC Unix.
31730 2000-06-24 Jim Meyering <meyering@lucent.com>
31732 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31734 2000-06-23 Paul Eggert <eggert@twinsun.com>
31736 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31737 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
31739 2000-06-23 Paul Eggert <eggert@twinsun.com>
31741 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31742 (mbrtowc, mbstate_t): Define substitutes if
31743 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31744 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31745 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31747 2000-06-23 Jim Meyering <meyering@lucent.com>
31749 * m4/afs.m4: Add missing AC_MSG_RESULT.
31750 Reported by Bruno Haible.
31752 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31753 Suggestion from Bruno Haible.
31755 2000-06-23 Jim Meyering <meyering@lucent.com>
31757 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
31759 2000-06-21 Jim Meyering <meyering@lucent.com>
31761 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31763 2000-06-21 Jim Meyering <meyering@lucent.com>
31765 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31766 (noinst_HEADERS): Add getstr.h.
31768 * lib/getline.c (getstr): Move into a separate file.
31769 * lib/getstr.c (getstr): New file, extracted from getline.c, with
31770 the following changes: new parameter, delim2; both delim[12]
31771 parameters have type `int', not `char'. The latter would lose
31772 with 8-bit delimiters.
31773 * lib/getstr.h: New file.
31775 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31777 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31778 than 1024, return a memory chunk of least possible size, instead
31779 of size PATH_MAX + 2. In the loop, increment the size proportionally.
31780 Use free/xmalloc instead of xrealloc to avoid copying for very long
31783 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31785 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
31788 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31790 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
31791 address, not strdup. Include <stdlib.h> and don't declare free().
31793 2000-06-19 Jim Meyering <meyering@lucent.com>
31795 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
31797 2000-06-18 Jim Meyering <meyering@lucent.com>
31799 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
31801 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
31802 `checking whether...' message to be consistent with that of the
31805 2000-06-18 Jim Meyering <meyering@lucent.com>
31807 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
31808 Besides, these days every porting target provides a mkdir function.
31810 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
31811 needed. (this snippet comes from src/system.h).
31813 2000-06-16 Bruno Haible <haible@clisp.cons.org>
31815 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
31817 2000-06-15 Paul Eggert <eggert@twinsun.com>
31819 * lib/human.c (adjust_value): New function.
31820 (human_readable_inexact): Apply rounding style even when
31821 printing approximate values.
31823 2000-06-14 Paul Eggert <eggert@twinsun.com>
31825 * lib/human.c (human_readable_inexact): Allow an input block
31826 size that is not a multiple of the output block size, and vice versa.
31827 Reported by Piergiorgio Sartor.
31829 2000-06-14 Paul Eggert <eggert@twinsun.com>
31831 * lib/getdate.y (get_date): Apply relative times after time
31832 zone indicator, not before. Reported by Todd A. Jacobs.
31834 2000-06-13 Jim Meyering <meyering@lucent.com>
31836 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
31838 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
31840 2000-06-12 Paul Eggert <eggert@twinsun.com>
31842 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
31844 2000-06-12 Jim Meyering <meyering@lucent.com>
31846 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
31847 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
31849 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
31850 the optional argument, `lib'.
31852 2000-06-08 Jim Meyering <meyering@lucent.com>
31854 * m4/largefile.m4: Remove file (now that it's part of autoconf).
31856 2000-06-04 Paul Eggert <eggert@twinsun.com>
31858 Rewrite largefile configuration so that we don't need to run
31859 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
31860 AC_CANONICAL_HOST in configure.in -- jmm]
31862 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
31863 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
31864 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
31865 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
31866 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
31868 Instead of inspecting the output of getconf, try to compile the
31869 test program without and with the macro definition.
31870 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
31871 for getconf. Instead, check for the needed flags by compiling
31874 2000-06-04 Paul Eggert <eggert@twinsun.com>
31876 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
31878 2000-06-04 Jim Meyering <meyering@lucent.com>
31880 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
31881 SunOS 4.1.4 for which gid_t is an unsigned type.
31883 2000-06-03 Jim Meyering <meyering@lucent.com>
31885 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
31886 now that autoconf requires that.
31888 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
31889 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
31890 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
31892 2000-06-03 Jim Meyering <meyering@lucent.com>
31894 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
31896 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31898 * m4/glibc21.m4: New file.
31899 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
31901 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31903 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
31904 newer, don't install charset.alias.
31905 * lib/config.charset: Change the Linux/glibc rules so they become empty
31906 on glibc-2.1 or newer.
31908 2000-06-02 Jim Meyering <meyering@lucent.com>
31910 * lib/mountlist.c: Back out last change. Instead, do this...
31911 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
31912 me_dummy member using the same `ignore'-testing code.
31913 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
31917 2000-05-29 Jim Meyering <meyering@lucent.com>
31919 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
31920 mounts with the `ignore' attribute. Based on a patch from
31923 2000-05-28 Jim Meyering <meyering@lucent.com>
31925 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
31926 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31927 * m4/stat.m4: Likewise.
31928 * m4/lstat.m4: Likewise.
31929 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
31931 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
31932 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
31934 2000-05-26 Jim Meyering <meyering@lucent.com>
31936 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
31938 2000-05-24 Jim Meyering <meyering@lucent.com>
31940 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
31941 autoconf requires that.
31942 * m4/lib-check.m4: Likewise.
31943 * m4/jm-macros.m4: Likewise.
31944 * m4/strftime.m4: Likewise.
31946 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
31947 AC_CHECK_DECLS, now that autoconf requires that.
31949 2000-05-22 Jim Meyering <meyering@lucent.com>
31951 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31952 * m4/lstat.m4: Likewise.
31954 2000-05-22 Jim Meyering <meyering@lucent.com>
31956 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
31958 2000-05-20 Jim Meyering <meyering@lucent.com>
31960 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
31961 (jm_PREREQ): Use it.
31963 2000-05-18 Jim Meyering <meyering@lucent.com>
31965 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
31966 back, too, since it may have been modified by allocate_entry.
31967 (hash_delete): Rewrite to use neither the assignment operator
31968 nor the comma operator in an if-expression.
31970 2000-05-15 Paul Eggert <eggert@twinsun.com>
31973 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
31974 Remove; no longer needed.
31975 "quotearg.h": Add include.
31976 (file_name): Do not bother to explicitly initialize to NULL; it's less
31977 efficient on some hosts.
31978 (close_stdout_status): Remove test as to whether stdout was already
31979 closed; it breaks for the case "echo x | sort >&-".
31980 Quote file name colons.
31981 Do not assume that _("write error") lacks format strings.
31983 2000-05-15 Jim Meyering <meyering@lucent.com>
31985 * lib/version-etc.c (version_etc_copyright): Update the copyright
31986 string used in all --version output.
31988 2000-05-14 Jim Meyering <meyering@lucent.com>
31990 * lib/closeout.c (close_stdout_set_file_name): New function.
31991 (close_stdout_status): Use new file-scoped global.
31992 Return right away if fstat says the stdout file descriptor is invalid.
31993 * lib/closeout.h (close_stdout_set_file_name): Declare.
31995 2000-05-10 Jim Meyering <meyering@lucent.com>
31997 * lib/closeout.c [default_exit_status]: New file-scoped variable.
31998 (close_stdout_set_status): New function.
31999 * lib/closeout.h (close_stdout_set_status): Declare.
32001 2000-05-09 Jim Meyering <meyering@lucent.com>
32003 * m4/gettext.m4: Rename this...
32004 * m4/libintl.m4: ...to this.
32006 2000-05-08 Jim Meyering <meyering@lucent.com>
32008 * lib/long-options.c: Don't include closeout.h.
32009 (parse_long_options): Don't call close_stdout for --version.
32011 2000-05-06 Paul Eggert <eggert@twinsun.com>
32013 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
32014 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
32015 2.1.3 bug. This avoids a clash when files like regex.c define
32018 2000-05-06 Jim Meyering <meyering@lucent.com>
32020 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
32021 (AC_REPLACE_FUNCS): Add strnlen.
32023 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
32024 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
32026 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
32027 AC_SEARCH_LIBS call for nanosleep.
32028 (LIB_NANOSLEEP): Set and AC_SUBST.
32030 2000-05-06 Jim Meyering <meyering@lucent.com>
32032 * lib/strnlen.c: Undefine __strnlen and strnlen.
32033 [!weak_alias]: Define __strnlen to strnlen.
32035 * lib/atexit.c: New file, from libiberty.
32037 2000-05-06 Jim Meyering <meyering@lucent.com>
32039 * lib/closeout.c (close_stdout_status): Also check for errors on the
32042 2000-05-05 Jim Meyering <meyering@lucent.com>
32044 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
32045 AC_SEARCH_LIBS call for clock_gettime.
32046 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
32048 * m4/search-libs.m4: Update from autoconf.
32050 su doesn't work on Solaris 2.6.
32051 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
32052 <shadow.h>. Reported by Dragos Harabor.
32054 2000-05-05 Bruno Haible <haible@clisp.cons.org>
32056 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
32057 memcpy instead of xmalloc, xrealloc, path_concat.
32058 (locale_charset): Treat empty environment variables as absent.
32059 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
32061 2000-05-04 Jim Meyering <meyering@lucent.com>
32063 * lib/getopt.c: Update from glibc.
32064 * lib/obstack.c: Likewise.
32065 * lib/obstack.h: Likewise.
32066 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
32069 * lib/regex.h: Likewise.
32070 * lib/strndup.c: Likewise.
32071 * lib/strnlen.c: New file, from glibc.
32073 2000-05-03 Jim Meyering <meyering@lucent.com>
32075 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
32077 2000-05-02 Paul Eggert <eggert@twinsun.com>
32079 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
32080 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
32081 compile-time test, rather than inspecting host and OS, to
32082 decide whether to define _LARGEFILE_SOURCE.
32084 2000-05-01 Jim Meyering <meyering@lucent.com>
32086 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
32088 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
32089 Based on a patch from Bruno Haible.
32091 2000-05-01 Jim Meyering <meyering@lucent.com>
32093 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
32095 2000-04-29 Jim Meyering <meyering@lucent.com>
32097 * lib/path-concat.c: Declare strdup only if it's not defined.
32098 * lib/canon-host.c: Likewise.
32100 2000-04-28 Jim Meyering <meyering@lucent.com>
32102 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
32103 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
32104 is included first, then limits.h is included by locale.h by libintl.h.
32105 From John David Anglin.
32107 2000-04-25 Jim Meyering <meyering@lucent.com>
32109 * lib/makepath.c (S_IRWXUGO): Define.
32110 (make_path): Always perform explicit chmod if MODE specifies any
32111 of the `special' permission bits. Prompted by a bug report against
32112 install from Mate Wierdl and Joost van Baal.
32114 2000-04-18 Jim Meyering <meyering@lucent.com>
32116 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
32117 (jm_PREREQ): Use it.
32119 2000-04-18 Jim Meyering <meyering@lucent.com>
32121 * lib/README: New file.
32123 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
32124 getpagesize. For BeOS. Based on a patch from Bruno Haible.
32126 2000-04-17 Jim Meyering <meyering@lucent.com>
32129 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
32130 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
32131 Suggestion from Akim Demaille.
32133 2000-04-17 Jim Meyering <meyering@lucent.com>
32135 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
32136 the definition of it to rpl_strftime also defined-away the system's
32139 2000-04-15 Jim Meyering <meyering@lucent.com>
32141 Use `C' to denote so-called `contiguous' files, the same way
32143 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
32144 (ftypelet): Use S_ISCTG.
32145 From Michael Deutschmann.
32147 2000-04-14 Jim Meyering <meyering@lucent.com>
32149 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
32150 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
32153 2000-04-14 Jim Meyering <meyering@lucent.com>
32155 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
32157 2000-04-13 Jim Meyering <meyering@lucent.com>
32159 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
32160 AH_VERBATIM to insert required #ifndef into config.h.in.
32161 Suggestion from Akim Demaille.
32163 2000-04-12 Jim Meyering <meyering@lucent.com>
32165 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
32166 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
32167 Christian Krackowizer.
32169 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
32170 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
32171 (AC_SYS_LARGEFILE): Require.
32172 (AM_C_PROTOTYPES): Require.
32174 2000-04-08 Jim Meyering <meyering@lucent.com>
32176 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
32177 names don't conflict. Reported by Eli Zaretskii.
32179 2000-04-07 Jim Meyering <meyering@lucent.com>
32181 * lib/putenv.c: Move inclusion of errno.h so it follows that of
32182 sys/types.h, to work around system header problems on AIX 3.2.5.
32185 2000-04-07 Bruno Haible <haible@clisp.cons.org>
32187 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
32188 bug. Deal with the different error behavior of Irix iconv.
32190 2000-04-05 Paul Eggert <eggert@twinsun.com>
32192 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
32193 IRIX if the installer said otherwise.
32195 2000-04-05 Jim Meyering <meyering@lucent.com>
32197 Portability tweaks required for ultrix4.3.
32198 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
32199 (jm_CHECK_DECLS): Add getutent to the list of functions.
32200 (_jm_DECL_HEADERS): Add utmpx.h.
32201 From John David Anglin.
32203 * m4/strftime.m4: Back out the 2000-04-02 change.
32204 Instead of that change, simply undefine putenv in the test program.
32206 2000-04-05 Jim Meyering <meyering@lucent.com>
32208 Portability tweaks required for ultrix4.3.
32209 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
32211 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
32212 * lib/canon-host.c: Declare strdup.
32213 * lib/path-concat.c: Likewise.
32214 From John David Anglin.
32216 2000-04-04 Jim Meyering <meyering@lucent.com>
32218 Be more DOS 8.3-friendly.
32219 * lib/ref-add.sin: Renamed from ref-add.sed.in.
32220 * lib/ref-del.sin: Renamed from ref-del.sed.in.
32221 * lib/Makefile.am: Reflect renaming.
32222 Reported by Eli Zaretskii.
32224 Use a temporary file name that won't clash with `charset.alias'
32225 in the DOS 8.3 name space.
32226 * lib/Makefile.am (charset_tmp): Define.
32227 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
32228 (uninstall-local): Likewise.
32229 Reported by Eli Zaretskii.
32231 2000-04-03 Jim Meyering <meyering@lucent.com>
32233 * m4/gettext.m4: Fix typo in comment.
32235 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
32236 textutils/configure.in). Suggestion from Paul Eggert.
32237 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
32239 2000-04-02 Paul Eggert <eggert@twinsun.com>
32241 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
32242 variable in the shell rather than using putenv, which isn't
32243 portable. This avoids the configure-time inter-test dependency
32244 on the potentially-renamed putenv function.
32246 2000-03-30 Paul Eggert <eggert@twinsun.com>
32248 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
32249 before checking struct stat.st_blksize, so that
32250 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
32252 2000-03-29 Paul Eggert <eggert@twinsun.com>
32254 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
32255 since strftime.c uses HAVE_STRFTIME to decide whether to use
32256 the underlying strftime.
32258 2000-03-29 Paul Eggert <eggert@twinsun.com>
32260 * lib/time/strftime.c (my_strftime): Make sure we call the system
32261 strftime, not ourselves, when invoking the underlying strftime.
32263 2000-03-24 Jim Meyering <meyering@lucent.com>
32265 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
32266 (charset_alias): Define.
32267 (install-exec-local): Factor out common code.
32268 (uninstall-local): Split lines longer than 80.
32269 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
32270 (SUFFIXES): Define.
32271 (.sed.in.sed): New rule. Don't redirect directly to $@.
32272 (CLEANFILES): Add ref-add.sed and ref-del.sed.
32274 2000-03-19 Bruno Haible <haible@clisp.cons.org>
32276 * lib/config.charset: Output a line containing "Packages using this
32278 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
32279 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
32280 ref-del.sed): New rules.
32282 2000-03-17 Jim Meyering <meyering@lucent.com>
32284 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
32285 Otherwise, include <strings.h>
32287 2000-03-17 Bruno Haible <haible@clisp.cons.org>
32289 * lib/unicodeio.c (utf8_wctomb): New function.
32290 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
32291 format instead of in UCS-4 with platform dependent endianness.
32293 2000-03-10 Jim Meyering <meyering@lucent.com>
32295 * m4/lib-check.m4: Look for getspnam in -lgen, too.
32296 From Marco Franzen.
32298 2000-03-07 Paul Eggert <eggert@twinsun.com>
32300 * lib/savedir.c (savedir): Work even if directory size is
32301 negative; this can happen with some screwy NFS configurations.
32303 2000-03-06 Jim Meyering <meyering@lucent.com>
32305 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
32306 if it's NULL (because we ran out of memory). From Bruno Haible.
32308 2000-03-05 Jim Meyering <meyering@lucent.com>
32310 * lib/localcharset.c ("path-concat.h"): Include.
32311 (get_charset_aliases): Use path_concat instead of ANSI string
32314 * lib/unicodeio.h (PARAMS): Define.
32315 Use it to guard prototype.
32317 2000-03-04 Jim Meyering <meyering@lucent.com>
32319 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
32320 for lib/localcharset.c.
32322 2000-03-04 Jim Meyering <meyering@lucent.com>
32324 * lib/Makefile.am (install-exec-local): Create $(libdir) before
32325 installing into it.
32326 (uninstall-local): Uncomment this rule so `make distcheck' works
32329 * lib/unicodeio.c (<errno.h>): Include it.
32330 (errno): Declare if not defined.
32332 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
32334 * lib/config.charset: New version, incorporating remarks from a linux
32335 i18n mailing list. From Bruno Haible.
32337 2000-03-04 Bruno Haible <haible@clisp.cons.org>
32339 * m4/codeset.m4: New file.
32340 * m4/iconv.m4: New file.
32341 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
32343 2000-03-03 Jim Meyering <meyering@lucent.com>
32345 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
32347 2000-03-02 Jim Meyering <meyering@lucent.com>
32349 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
32350 the messages come out on separate lines.
32352 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
32353 rather than jm_CHECK_DECLARATIONS.
32354 * m4/decl.m4: Remove now-unused file.
32356 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
32359 2000-03-02 Jim Meyering <meyering@lucent.com>
32361 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
32363 2000-03-01 Jim Meyering <meyering@lucent.com>
32365 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
32366 * lib/unicodeio.c: Likewise.
32368 2000-03-01 Bruno Haible <haible@clisp.cons.org>
32370 * lib/config.charset: New file.
32371 * lib/localcharset.c: New file.
32372 * lib/unicodeio.h, lib/unicodeio.c: New files.
32373 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
32374 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
32375 (noinst_HEADERS): Add unicodeio.h.
32376 (all-local, install-exec-local, charset.alias): New targets.
32378 2000-02-28 Paul Eggert <eggert@twinsun.com>
32380 * lib/quotearg.c (ALERT_CHAR): New macro.
32381 (quotearg_buffer_restyled): Use it.
32383 2000-02-27 Jim Meyering <meyering@lucent.com>
32385 * m4/check-decl.m4: Add getenv to the list.
32387 2000-02-27 Jim Meyering <meyering@lucent.com>
32389 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
32390 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
32392 * lib/backupfile.c: Guard inclusion of stdlib.h with
32393 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
32394 Declare malloc if needed.
32396 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
32397 `#ifndef HAVE_DECL..'
32398 now that autoconf always defines the HAVE_DECL_ symbols.
32399 * lib/human.c: Likewise.
32400 * lib/same.c: Likewise.
32401 * lib/strtoumax.c: Likewise.
32403 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
32404 declaration check was not run.
32405 * lib/hash.c: Likewise.
32406 * lib/human.c: Likewise.
32407 * lib/same.c: Likewise.
32408 * lib/strtoumax.c: Likewise.
32410 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
32411 `.', then first look up the entire `.'-containing string as a login
32414 2000-02-23 Jim Meyering <meyering@lucent.com>
32416 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
32417 in place of my hack.
32419 2000-02-18 Paul Eggert <eggert@twinsun.com>
32421 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
32422 (textint): New typedef.
32423 (parser_control): Member year changed from int to textint.
32425 (YYSTYPE): Removed; replaced by %union with int and textint members.
32426 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
32427 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
32428 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
32429 (tSNUMBER, tUNUMBER): Now of type <textintval>.
32430 (date, number, to_year): Use width of number in digits, not its value,
32431 to determine whether it's a 2-digit year, or a 2-digit time.
32432 (yylex): Store number of digits of numeric tokens.
32433 Reported by John Kendall.
32435 (parser_control): Changed from struct parser_control to typedef (for
32436 consistency). All uses changed.
32438 (tID): Removed; not used.
32439 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
32441 2000-02-14 Paul Eggert <eggert@twinsun.com>
32443 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
32444 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
32446 2000-02-12 Jim Meyering <meyering@lucent.com>
32448 * lib/userspec.c (ISDIGIT): Define it.
32449 (isdigit): Remove definition.
32450 (is_number): Use ISDIGIT, not isdigit.
32451 <libintl.h>: Include.
32452 (_ and N_): Define.
32453 (parse_user_spec): Mark translatable strings.
32455 2000-02-10 Jim Meyering <meyering@lucent.com>
32457 With these changes, nanosleep.[ch] are finally enough like the other
32458 lib/* replacement files to compile on a few more losing systems.
32460 * lib/nanosleep.h: Don't include config.h.
32461 Remove prototype from declaration of nanosleep.
32462 (PARAMS): Remove now-unneeded definition.
32463 * lib/nanosleep.c: #undef nanosleep.
32464 (rpl_nanosleep): Rename from nanosleep.
32466 2000-02-10 Jim Meyering <meyering@lucent.com>
32468 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
32469 gnu_nanosleep to rpl_nanosleep.
32471 2000-02-09 Jim Meyering <meyering@lucent.com>
32473 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
32474 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
32476 2000-02-08 Akim Demaille <akim@epita.fr>
32478 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
32479 `[' and `]' and remove uses of `changequote'.
32480 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
32481 (AC_SYS_LARGEFILE): Likewise.
32482 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32483 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
32485 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
32486 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
32487 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
32488 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
32490 2000-02-05 Jim Meyering <meyering@lucent.com>
32492 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
32493 Remove explicit use of AC_HEADER_TIME. It is required by
32494 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
32495 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
32496 in autoconf whereby the expansion of the latter ended up preceding
32497 the expansion of its prerequisite, AC_HEADER_TIME.
32498 Reported by Volker Borchert.
32500 2000-02-03 Jim Meyering <meyering@lucent.com>
32502 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
32504 2000-02-03 Jim Meyering <meyering@lucent.com>
32506 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
32507 rather than with `#if HAVE_UTMPNAME'.
32509 2000-02-02 Jim Meyering <meyering@lucent.com>
32511 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
32512 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
32513 Reported by Eli Zaretskii.
32515 2000-02-01 Jim Meyering <meyering@lucent.com>
32517 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
32519 2000-01-31 Jim Meyering <meyering@lucent.com>
32521 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
32522 functions. Add the time.h and sys/time.h headers along with the
32523 AC_REQUIRE'ment of AC_HEADER_TIME.
32525 2000-01-31 Jim Meyering <meyering@lucent.com>
32527 * lib/nanosleep.h (nanosleep): Guard declaration with
32528 `#if ! HAVE_DECL_NANOSLEEP'.
32529 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
32530 the declaration in that vendor's sys/timers.h.
32531 Reported by Christian Krackowizer.
32533 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
32534 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
32535 (ISPRINT): Likewise.
32536 Reported by Tom Tromey.
32538 2000-01-30 Jim Meyering <meyering@lucent.com>
32540 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
32542 * m4/prereq.m4 (utmp_includes): Define.
32543 Check for ut_user and ut_name members in both struct utmpx
32546 2000-01-30 Jim Meyering <meyering@lucent.com>
32548 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
32549 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
32550 header files where only utmpx.ut_user is declared.
32552 * lib/readutmp.h (UT_USER): Define.
32554 2000-01-29 Jim Meyering <meyering@lucent.com>
32556 * m4/lib-check.m4: New file containing library-related checks from
32557 fileutils and sh-utils (textutils had none).
32559 2000-01-28 Jim Meyering <meyering@lucent.com>
32561 * m4/perl.m4: Change format of warning message to look more like that
32562 from the missing script. Suggestion from François Pinard.
32564 2000-01-25 Jim Meyering <meyering@lucent.com>
32566 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
32567 well as time.h in the compile check.
32568 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
32569 Fix typo in cross-compiling case: s/yes/no/.
32571 2000-01-23 Jim Meyering <meyering@lucent.com>
32573 * m4/jm-macros.m4: Move df-related tests here from
32574 fileutils/configure.in
32576 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
32577 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
32579 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
32580 s/space/ac_fsusage_space/.
32581 (jm_FILE_SYSTEM_USAGE): Take two parameters.
32583 * m4/ftruncate.m4: New file (derived from part of
32584 fileutils/configure.in).
32585 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
32586 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
32588 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
32589 AC_SUBST these here, rather than just in sh-util/configure.in, so
32590 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
32592 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
32593 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
32594 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
32595 (AC_SUBST(POW_LIBM)): Likewise.
32596 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
32598 2000-01-23 Jim Meyering <meyering@lucent.com>
32600 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
32603 2000-01-22 Jim Meyering <meyering@lucent.com>
32605 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
32607 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
32609 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
32611 (AC_CHECK_HEADERS): Likewise for sh-utils.
32612 (AC_CHECK_HEADERS): Likewise for textutils.
32613 Merge the three lists of headers.
32615 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
32616 from fileutils' configure.in.
32618 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
32619 code. Moved tests into their own function (_jm_DECL_HEADERS) in
32622 * m4/check-decl.m4: Use #if rather than #ifdef.
32623 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
32624 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
32625 (_jm_DECL_HEADERS): Define new function.
32626 (jm_CHECK_DECLARATIONS): Require it.
32628 2000-01-22 Jim Meyering <meyering@lucent.com>
32630 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
32631 [! HAVE_DECL_STRTOULL]: Declare strtoull.
32632 Required for some AIX systems. Reported by Christian Krackowizer.
32633 [TESTING] (main): New function.
32635 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
32636 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
32639 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
32642 * lib/strverscmp.c (ISDIGIT): Define.
32643 (strverscmp): Use ISDIGIT, not isdigit.
32645 2000-01-19 Jim Meyering <meyering@lucent.com>
32647 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
32648 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
32649 defines `struct timespec' in <sys/time.h>
32651 * m4/c-bs-a.m4: Remove uses of changequote altogether.
32652 Thanks to Akim for explaining.
32654 2000-01-17 Paul Eggert <eggert@twinsun.com>
32656 * lib/nanosleep.c (nanosleep):
32657 Don't use SA_INTERRUPT to decide whether to call sigaction, as
32658 POSIX.1 doesn't require SA_INTERRUPT and some systems
32659 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
32660 it's been part of POSIX.1 since day 1 (in 1988).
32662 2000-01-17 Jim Meyering <meyering@lucent.com>
32664 * lib/interlock: Remove unused file. Reported by François Pinard.
32666 2000-01-16 Paul Eggert <eggert@twinsun.com>
32668 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
32669 alert, backslash, formfeed, and vertical tab unnecessarily in
32670 shell quoting style.
32672 2000-01-16 Jim Meyering <meyering@lucent.com>
32674 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
32675 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
32676 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
32677 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
32679 2000-01-16 Jim Meyering <meyering@lucent.com>
32681 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
32682 because the latter didn't work.
32684 2000-01-15 Jim Meyering <meyering@lucent.com>
32686 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
32687 (AC_REPLACE_FUNCS): Add memcpy and memset.
32688 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
32690 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
32692 2000-01-12 Jim Meyering <meyering@lucent.com>
32694 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
32695 (jm_PREREQ): Use it.
32696 (jm_PREREQ_READUTMP): New macro.
32697 (jm_PREREQ): Use it.
32699 2000-01-11 Paul Eggert <eggert@twinsun.com>
32701 Quote multibyte characters correctly.
32702 * m4/c-bs-a.m4: New file.
32703 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
32704 (jm_PREREQ): Use it.
32706 2000-01-11 Paul Eggert <eggert@twinsun.com>
32708 * m4/uintmax_t.m4: Port to autoconf 2.13.
32710 2000-01-08 Jim Meyering <meyering@ascend.com>
32712 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
32713 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32715 2000-01-04 Jim Meyering <meyering@ascend.com>
32717 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32718 jm_STRUCT_DIRENT_D_TYPE.
32719 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32720 jm_STRUCT_DIRENT_D_INO.
32721 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32723 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32725 * m4/utime.m4: Likewise.
32727 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32728 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32730 2000-01-03 Paul Eggert <eggert@twinsun.com>
32732 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32733 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32735 2000-01-02 Jim Meyering <meyering@ascend.com>
32737 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
32738 remember if this is necessary.
32740 1999-12-26 Jim Meyering <meyering@ascend.com>
32742 * m4/jm-macros.m4: Use it here.
32743 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32745 1999-12-23 Jim Meyering <meyering@ascend.com>
32747 * m4/jm-macros.m4: Check for clock_gettime (moved from
32748 fileutils/configure.in)
32749 Check for gettimeofday.
32751 1999-12-20 Jim Meyering <meyering@ascend.com>
32753 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32754 autoconf-2.14a-1999-12-20.
32756 1999-12-19 Jim Meyering <meyering@ascend.com>
32758 * m4/lstat-slash.m4: New file.
32759 * m4/jm-macros.m4: Use the new macro:
32760 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32762 1999-12-07 Jim Meyering <meyering@ascend.com>
32764 * m4/perl.m4: Require that File::Compare be available, too.
32765 Too many systems seem to lack it.
32767 * m4/strftime.m4: Add checks for most of the cpp macros tested in
32768 GNU's strftime.c. Prompted by a patch from Paul Eggert.
32770 1999-11-18 Paul Eggert <eggert@twinsun.com>
32772 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32773 problem with the QNX 4.25 shell, which doesn't propagate exit
32774 status of failed commands inside shell assignments.
32776 1999-11-17 Jim Meyering <meyering@ascend.com>
32778 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32780 1999-11-07 Jim Meyering <meyering@ascend.com>
32782 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
32784 1999-11-06 Jim Meyering <meyering@ascend.com>
32786 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
32787 * m4/jm-macros.m4 (jm_MACROS): Use it here.
32789 1999-11-05 Jim Meyering <meyering@ascend.com>
32791 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
32792 configure.in of textutils, fileutils, and sh-utils into this one
32793 (shared between those packages) file.
32794 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
32795 AC_STRUCT_ST_BLKSIZE.
32797 1999-11-03 Jim Meyering <meyering@ascend.com>
32799 * m4/ssize_t.m4: Remove file. No longer needed since the new version
32800 of AC_CHECK_TYPE checks includes unistd.h.
32801 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
32802 Suggestion from Akim Demaille.
32804 1999-10-30 Jim Meyering <meyering@ascend.com>
32806 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
32808 * m4/ls-mntd-fs.m4: Likewise.
32809 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
32810 * m4/jm-winsz1.m4: Likewise.
32812 * m4/const.m4: Remove file, since the fix made it into the experimental
32813 version of autoconf.
32814 * m4/mktime.m4: Likewise.
32816 * m4/check-type.m4: Remove file, now that the latest version of
32817 AC_CHECK_TYPE takes a third arg to specify additional #includes.
32819 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
32820 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
32823 1999-10-04 Jim Meyering <meyering@ascend.com>
32825 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
32827 1999-09-22 Paul Eggert <eggert@twinsun.com>
32829 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
32830 2.95.1 bug with HP-UX 10.20.
32832 1999-09-17 Jim Meyering <meyering@ascend.com>
32834 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
32835 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
32836 due to missing strdup (against sh-utils-2.0).
32838 1999-08-29 Jim Meyering <meyering@ascend.com>
32840 * m4/jm-macros.m4: Require jm_BISON.
32841 * m4/bison.m4: New file.
32843 1999-08-17 Paul Eggert <eggert@twinsun.com>
32845 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
32846 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
32848 1999-08-05 Jim Meyering <meyering@ascend.com>
32850 * m4/getline.m4: Rename test file from conftestdata to conftest.data
32851 to avoid conflicts with `conftest' on 8+3 filesystems.
32852 Suggestion from Eli Zaretskii.
32854 1999-08-04 Jim Meyering <meyering@ascend.com>
32856 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
32857 fileutils and sh-utils (textutils's getline test was inadequate).
32858 (AM_FUNC_GETLINE): Run this test.
32859 (AC_CHECK_FUNCS): Check for getdelim.
32860 Reported by Bob Proulx.
32862 1999-08-02 Jim Meyering <meyering@ascend.com>
32864 * m4/jm-macros.m4: Add a comment.
32866 1999-08-01 Paul Eggert <eggert@twinsun.com>
32868 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
32869 <inttypes.h> defines strtoumax as a macro (and not as a
32872 1999-08-01 Paul Eggert <eggert@twinsun.com>
32874 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
32875 that we can shift, multiply and divide unsigned long long
32876 values; Ultrix cc can't do it.
32878 1999-08-01 Paul Eggert <eggert@twinsun.com>
32880 * m4/mktime.m4: New file, which is a preview of what should appear
32881 in the next public autoconf release.
32883 1999-08-01 Paul Eggert <eggert@twinsun.com>
32885 * m4/lfs.m4: Remove this file.
32886 * m4/largefile.m4: New file. It contains the old contents of
32887 lfs.m4, except that all names with prefix AC_LFS have been
32888 changed to use the prefix AC_SYS_LARGEFILE instead, to be
32889 compatible with future autoconf versions. Also, some minor m4
32890 quoting problems have been fixed.
32892 1999-08-01 Paul Eggert <eggert@twinsun.com>
32894 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
32895 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
32896 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
32897 and simplify the shell code.
32899 1999-08-01 Jim Meyering <meyering@ascend.com>
32901 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
32904 1999-07-20 Jim Meyering <meyering@ascend.com>
32906 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
32908 1999-07-15 Jim Meyering <meyering@ascend.com>
32910 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
32912 1999-05-22 Jim Meyering <meyering@ascend.com>
32914 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
32916 1999-05-20 Jim Meyering <meyering@ascend.com>
32918 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
32919 Add a colon after each `then' in case $4 is empty.
32921 1999-05-16 Jim Meyering <meyering@ascend.com>
32923 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
32925 1999-05-10 Jim Meyering <meyering@ascend.com>
32927 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
32929 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
32932 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
32934 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
32936 1999-05-04 Paul Eggert <eggert@twinsun.com>
32938 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
32939 not CPPFLAGS, so that linking works correctly in IRIX.
32941 1999-04-30 Paul Eggert <eggert@twinsun.com>
32943 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
32945 1999-04-20 Paul Eggert <eggert@twinsun.com>
32947 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
32948 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
32949 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
32950 jm_AC_TYPE_UNSIGNED_LONG_LONG.
32951 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
32953 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
32955 1999-04-20 Jim Meyering <meyering@ascend.com>
32957 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
32958 AC_REPLACE xstroull if necessary. From Paul Eggert.
32959 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
32961 1999-04-18 Jim Meyering <meyering@ascend.com>
32963 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
32964 * m4/jm-macros.m4: Use it.
32966 1999-04-06 Jim Meyering <meyering@ascend.com>
32968 * m4/strftime.m4: Remove test for %f.
32970 1999-03-29 Jim Meyering <meyering@ascend.com>
32972 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
32973 superset of the AC_TYPE_* checks in the textutils, fileutils,
32974 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
32977 1999-03-28 Jim Meyering <meyering@ascend.com>
32979 * m4/jm-macros.m4: Define GNU_PACKAGE here.
32980 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
32981 replaced e.g., in the *.sh files of the sh-utils.
32983 1999-03-20 Jim Meyering <meyering@ascend.com>
32985 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
32986 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
32987 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
32989 1999-03-19 Jim Meyering <meyering@ascend.com>
32991 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
32993 1999-03-12 Jim Meyering <meyering@ascend.com>
32995 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
32997 1999-03-07 Jim Meyering <meyering@ascend.com>
32999 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
33002 1999-02-17 Jim Meyering <meyering@ascend.com>
33004 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
33005 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
33007 1999-02-07 Jim Meyering <meyering@ascend.com>
33009 * m4/group-member.m4: New file -- extracted from sh-utils'
33012 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
33013 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
33015 1999-02-06 Jim Meyering <meyering@ascend.com>
33017 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
33018 * m4/fnmatch.m4: Likewise.
33019 * m4/getgroups.m4: Likewise.
33020 * m4/lstat.m4: Likewise.
33021 * m4/malloc.m4: Likewise.
33022 * m4/putenv.m4: Likewise.
33023 * m4/realloc.m4: Likewise.
33024 * m4/regex.m4: Likewise.
33025 * m4/stat.m4: Likewise.
33026 * m4/strftime.m4: Likewise.
33027 Suggestion from Alain Magloire.
33029 * m4/chown.m4: Use `.$ac_objext', not `.o'.
33030 * m4/fnmatch.m4: Likewise.
33031 * m4/getgroups.m4: Likewise.
33032 * m4/getline.m4: Likewise.
33033 * m4/lstat.m4: Likewise.
33034 * m4/malloc.m4: Likewise.
33035 * m4/memcmp.m4: Likewise.
33036 * m4/putenv.m4: Likewise.
33037 * m4/realloc.m4: Likewise.
33038 * m4/regex.m4: Likewise.
33039 * m4/stat.m4: Likewise.
33040 * m4/strftime.m4: Likewise.
33041 Suggestion from Alain Magloire.
33043 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
33046 * m4/regex.m4: Add a run-time Test for proper operation of
33047 re_compile_pattern.
33049 1999-01-31 Jim Meyering <meyering@ascend.com>
33051 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
33053 1999-01-30 Jim Meyering <meyering@ascend.com>
33055 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
33057 * m4/jm-mktime.m4: Make this a wrapper around the official
33058 AM_FUNC_MKTIME rather than my private copy, now that the official one
33060 * m4/mktime.m4: Remove file.
33062 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
33063 * m4/uptime.m4: Likewise.
33064 * m4/uintmax_t.m4: Likewise.
33066 1999-01-28 Jim Meyering <meyering@ascend.com>
33068 * m4/jm-macros.m4: Use jm_AFS.
33069 * m4/afs.m4: New file (from fileutils' configure.in).
33071 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
33072 * m4/chown.m4: Likewise.
33073 * m4/d-ino.m4: Likewise.
33074 * m4/d-type.m4: Likewise.
33075 * m4/fnmatch.m4: Likewise.
33076 * m4/getgroups.m4: Likewise.
33077 * m4/gettext.m4: Likewise.
33078 * m4/jm-mktime.m4: Likewise.
33079 * m4/jm-winsz2.m4: Likewise.
33080 * m4/lcmessage.m4: Likewise.
33081 * m4/ls-mntd-fs.m4: Likewise.
33082 * m4/malloc.m4: Likewise.
33083 * m4/memcmp.m4: Likewise.
33084 * m4/putenv.m4: Likewise.
33085 * m4/realloc.m4: Likewise.
33086 * m4/st_mtim.m4: Likewise.
33087 * m4/strftime.m4: Likewise.
33089 1999-01-16 Jim Meyering <meyering@ascend.com>
33091 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
33092 (ARGMATCH_DIE_DECL): Define.
33094 1999-01-12 Jim Meyering <meyering@ascend.com>
33096 * m4/Makefile.am.in: Rewrite to avoid using fmt.
33097 Reported by Lars Hecking.
33099 1999-01-10 Jim Meyering <meyering@ascend.com>
33101 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
33103 * m4/inttypes_h.m4: Likewise.
33104 * m4/lstat.m4: Likewise.
33105 * m4/malloc.m4: Likewise.
33106 * m4/readdir.m4: Likewise.
33107 * m4/realloc.m4: Likewise.
33108 * m4/st_dm_mode.m4: Likewise.
33109 * m4/stat.m4: Likewise.
33110 * m4/utimbuf.m4: Likewise.
33111 * m4/utimes.m4: Likewise.
33113 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
33114 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
33115 comments in config.h.in are meaningful.
33117 * m4/jm-macros.m4: Require autoconf-2.13 here.
33119 * m4/regex.m4: By default, don't use the included regex.c on systems
33120 with glibc 2. Suggestion from Uli Drepper.
33122 1999-01-02 Jim Meyering <meyering@ascend.com>
33124 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
33126 1998-12-18 Jim Meyering <meyering@ascend.com>
33128 * m4/Makefile.am.in (Makefile.am): Simplify rule.
33129 Based on a suggestion from Lars Hecking.
33131 1998-11-16 Paul Eggert <eggert@twinsun.com>
33133 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
33135 1998-11-16 Jim Meyering <meyering@ascend.com>
33137 * m4/lfs.m4: Double-quote the `uname...` expression.
33139 1998-11-14 Jim Meyering <meyering@ascend.com>
33141 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
33142 * m4/stat.m4: Likewise.
33144 1998-11-03 Jim Meyering <meyering@ascend.com>
33146 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
33147 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
33149 1998-10-18 Jim Meyering <meyering@ascend.com>
33151 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
33153 1998-10-17 Jim Meyering <meyering@ascend.com>
33155 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
33156 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
33157 calls for those previously hard-coded headers. Instead, take a new
33159 (jm_CHECK_DECLARATIONS): Reflect interface change.
33160 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
33161 (jm_CHECK_DECL_LOCALTIME_R): New macro.
33163 * m4/mktime.m4: Test for spring-forward gap before long-running test.
33165 1998-10-14 Jim Meyering <meyering@ascend.com>
33167 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
33168 instead of "TZ=America/Vancouver". From Paul Eggert.
33170 1998-10-11 Jim Meyering <meyering@ascend.com>
33172 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
33173 This adds a test for a recently added compatibility fix for mktime.c.
33174 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
33176 1998-09-27 Jim Meyering <meyering@ascend.com>
33178 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
33180 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
33181 ../configure.in, including a change from Gordon Matzigkeit to allow
33182 cross-compiling for the Hurd.
33184 * m4/glibc.m4: New file/macro to test for the GNU C Library
33185 versions 1 and 2. From Gordon Matzigkeit.
33188 1998-09-21 Jim Meyering <meyering@ascend.com>
33190 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
33192 1998-08-18 Paul Eggert <eggert@twinsun.com>
33194 Port nanosecond-resolution times to UnixWare 2.1.2 and
33195 pedantic Solaris 2.6.
33197 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
33199 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
33200 Generate name of ns member, instead of just 1 or undef.
33201 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
33203 1998-08-15 Jim Meyering <meyering@ascend.com>
33205 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
33206 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
33207 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
33208 instead of jm_TYPE_SSIZE_T.
33210 1998-08-12 Jim Meyering <meyering@ascend.com>
33212 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
33214 1998-08-02 Jim Meyering <meyering@ascend.com>
33216 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
33217 in acconfig.h manually.
33219 1998-07-31 Paul Eggert <eggert@twinsun.com>
33221 * m4/st_mtim.m4: New file.
33223 1998-07-28 Jim Meyering <meyering@ascend.com>
33225 * m4/utimes.m4: Undef stat.
33227 1998-07-25 Jim Meyering <meyering@ascend.com>
33229 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
33230 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
33232 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
33234 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
33235 uid and gid actually remain unchanged.
33237 1998-07-07 Jim Meyering <meyering@ascend.com>
33239 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
33241 1998-07-04 Jim Meyering <meyering@ascend.com>
33243 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
33244 to prove that this macro can be used in packages without regex.c.
33246 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
33248 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
33251 1998-07-03 Jim Meyering <meyering@ascend.com>
33253 * m4/gettext.m4: Add -lintl if it's found to be necessary.
33255 * m4/gettext.m4: New file -- from gettext-0.10.35.
33256 * m4/lcmessage.m4: Likewise.
33257 * m4/progtest.m4: Likewise.
33259 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
33260 * m4/jm-macros.m4: Require the new macro.
33262 1998-06-29 Jim Meyering <meyering@ascend.com>
33264 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
33265 for the definition of NGROUPS (used in a system header included
33268 1998-06-28 Jim Meyering <meyering@ascend.com>
33270 * m4/ls-mntd-fs.m4: New file.
33271 * m4/fstypename.m4: New file.
33273 * m4/jm-macros.m4: Require the new macro.
33274 * m4/jm-glibc-io.m4: New file.
33276 1998-05-19 Jim Meyering <meyering@ascend.com>
33278 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
33279 * m4/lchown.m4: New file.
33281 * m4/Makefile.am.in: New file.
33282 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
33284 1998-05-14 Jim Meyering <meyering@ascend.com>
33286 * m4/Makefile.am (EXTRA_DIST): Add them.
33287 * m4/jm-macros.m4: New file.
33288 * m4/utimbuf.m4: New file.
33290 1998-05-12 Jim Meyering <meyering@ascend.com>
33292 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
33294 1998-05-11 Jim Meyering <meyering@ascend.com>
33296 * m4/isc-posix.m4: New file.
33298 1998-05-10 Jim Meyering <meyering@ascend.com>
33300 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
33302 1998-05-09 Jim Meyering <meyering@ascend.com>
33304 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
33305 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
33308 * m4/ssize_t.m4: New file.
33309 * m4/mktime.m4: Remove file -- the new automake has this now.
33311 1998-04-26 Jim Meyering <meyering@ascend.com>
33313 * m4/assert.m4: New file.
33314 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
33316 1998-04-05 Jim Meyering <meyering@ascend.com>
33318 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
33319 (jm_PREREQ): Use it here.
33321 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
33323 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
33326 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
33328 * m4/prereq.m4: New file.
33329 * m4/error.m4: New file.
33330 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
33332 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
33334 * m4/getline.m4: Don't set am_cv_func_working_getline before the
33335 cache-check for the same variable -- that defeated the purpose of
33336 the test; the test program was never run. This was a problem only
33337 on systems with losing getline functions -- HP-UX 10.20 is one.
33338 Reported by Bjorn Helgaas.
33340 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
33342 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
33344 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
33346 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
33348 * m4/const.m4: New file. Use an initializer in this declaration
33349 typedef int charset[2]; const charset x;
33350 Reported by Bob Glickstein.
33352 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
33354 * m4/chown.m4: Fix reversed types on -1 args to chown.
33357 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
33359 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
33360 Add lseek and memchr.
33362 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
33363 T.E.Dickey <dickey@clark.net> said that some older preprocessors
33364 have a 20-character limit on names.
33366 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
33368 * m4/inttypes_h.m4: New file.
33369 * m4/uintmax_t.m4: New file.
33370 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
33372 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
33373 Free Software Foundation, Inc.
33374 Copying and distribution of this file, with or without modification,
33375 are permitted provided the copyright notice and this notice are preserved.