1 2009-10-04 Bruno Haible <bruno@clisp.org>
3 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
4 program_invocation_short_name.
5 * modules/progname (configure.ac): Test for presence of
6 program_invocation_short_name.
7 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9 2009-10-04 Bruno Haible <bruno@clisp.org>
11 * lib/progname.c (set_program_name): Fix comment.
12 Reported by Jim Meyering.
14 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
15 Bruno Haible <bruno@clisp.org>
17 * lib/uname.c: Include <string.h>.
18 (uname): Do only one call to GetVersionEx in the common case.
20 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
21 Bruno Haible <bruno@clisp.org>
23 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25 (uname): Add support for Windows CE and various non-x86 CPU types.
27 2009-10-03 Bruno Haible <bruno@clisp.org>
29 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30 invocation to tests/configure.ac.
31 Reported by Ian Beckwith <ianb@erislabs.net>.
33 2009-10-02 Eric Blake <ebb9@byu.net>
35 fchdir: avoid compiler warning
36 * lib/fchdir.c (canonicalize_file_name)
37 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39 test-open: support mingw errno values
40 * tests/test-open.h (test_open): Relax test.
41 * tests/test-fopen.h (test_fopen): Likewise.
42 * tests/test-openat-safer.c (main): Likewise.
44 open: fix opening directory on mingw
45 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
47 test-open: on GNU/Hurd, /dev/null is a directory
48 * tests/test-fopen.h (main): Rename...
49 (test_fopen): ...to this. Use a guaranteed non-directory when
50 confirming open behavior on trailing slash.
51 * tests/test-openat-safer.c (main): Likewise.
52 * tests/test-open.h (main): Likewise....
53 (test_open): ...to this.
54 * tests/test-fopen.c (main): Adjust caller.
55 * tests/test-fopen-safer.c (main): Likewise.
56 * tests/test-open.c (main): Likewise.
57 * tests/test-fcntl-safer.c (main): Likewise.
58 Reported by Samuel Thibault.
60 rename, fchdir: don't ignore chdir failure
61 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
62 * lib/rename.c (rpl_rename) [W32]: Likewise.
63 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
64 an empty destination directory if source cannot be renamed,
65 although there is still possibility for failure.
66 * doc/posix-functions/rename.texi (rename): Document the race.
67 Reported by Jim Meyering.
69 maint: cleanup whitespace in recent commits
70 * lib/rename.c (rpl_rename): Remove tabs.
71 * tests/test-link.h (test_link): Likewise.
72 * lib/fchdir.c (get_name): Likewise.
73 Reported by Jim Meyering.
75 2009-10-02 Ben Pfaff <blp@gnu.org>
77 relocatable-prog-wrapper: Add missing dependency on
79 * modules/relocatable-prog-wrapper: Add dependency.
80 Reported by Ian Beckwith <ianb@erislabs.net>.
82 2009-10-02 Eric Blake <ebb9@byu.net>
84 renameat: fix Solaris bugs
85 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
87 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
88 * modules/stdio (Makefile.am): Substitute it.
89 * lib/stdio.in.h (renameat): Declare replacement.
90 * lib/renameat.c (rpl_renameat): Implement fix.
93 * modules/renameat: New file.
94 * lib/renameat.c (renameat): Likewise.
95 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
96 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
97 * modules/stdio (Makefile.am): Substitute them.
98 * lib/stdio.in.h (renameat): Declare it.
99 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
100 * doc/posix-functions/renameat.texi (renameat): Likewise.
101 * modules/renameat-tests: New test.
102 * tests/test-renameat.c: Likewise.
104 rename: fix mingw bugs
105 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
106 directory overwrite bugs.
108 rename: fix another cygwin 1.5 bug
109 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
111 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
112 unnecessary cygwin workarounds. Also work around bug with moving
113 full directory onto an empty one.
114 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
116 rename-dest-slash: merge into rename module
117 * modules/rename-dest-slash (Status): Mark obsolete.
118 (Depends-on): Add rename.
119 (Files): Let rename do it all.
120 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
121 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
122 * m4/rename-dest-slash.m4: ...so this file can be deleted.
123 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
124 * lib/rename.c (rpl_rename): Update comments.
126 rename: fix cygwin 1.5.x bugs
127 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
128 * lib/rename.c (rpl_rename): Work around them.
129 * modules/rename (Depends-on): Add same-inode.
131 rename: fix Solaris 10 bug
132 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
133 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
136 rename: fix Solaris 9 bug
137 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
138 on non-directory. Avoid calling exit.
139 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
141 * modules/rename-tests (Depends-on): Drop lstat.
142 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
143 (gl_PREREQ_RENAME): Delete unused macro.
145 rename-dest-slash: fix NetBSD bug
146 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
148 * modules/rename-dest-slash (Depends-on): Add same-inode.
150 rename-tests: new test, exposes several platform bugs
151 * modules/rename-tests: New file.
152 * tests/test-rename.h: Likewise.
153 * tests/test-rename.c: Likewise.
154 * doc/posix-functions/rename.texi (rename): Improve documentation,
155 including bugs that will eventually be fixed in gnulib.
157 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
159 * lib/uname.c: Include <stdlib.h>
160 (uname): Assume version info is available.
162 2009-10-02 Jim Meyering <meyering@redhat.com>
164 gnu-web-doc-update: correct --help output
165 * build-aux/gnu-web-doc-update: Make --help output relevant.
167 gnu-web-doc-update: add standard options
168 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
170 gnu-web-doc-update: New module.
171 Use this script to automatically update the on-line web documentation
172 for your GNU project at http://www.gnu.org/software/$pkg/manual/
173 * modules/gnu-web-doc-update: New file, from coreutils.
174 * build-aux/gnu-web-doc-update: New script.
176 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
178 link: LoadLibrary is not needed.
179 * lib/link.c: Use GetModuleHandle.
181 2009-10-01 Eric Blake <ebb9@byu.net>
183 getopt: bump serial number
184 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
187 tests: tighten link, rmdir, and remove tests
188 * tests/test-link.h (includes): No need to use <config.h> here.
189 Clean up if directory hard link was created, otherwise test for
191 * tests/test-linkat.c (main): Simplify.
192 * tests/test-remove.c (main): Enhance test for trailing '.'.
193 * tests/test-rmdir.h (test_rmdir_func): Likewise.
195 2009-10-01 Jim Meyering <meyering@redhat.com>
197 maint.mk: requiring "make major" was annoying, for a "minor" release.
198 What is intended is "stable", to contrast with alpha and beta,
199 so require "make stable", not "make major".
200 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
201 (get_tool_versions): Likewise.
202 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
204 2009-09-30 Ben Pfaff <blp@gnu.org>
206 Fix broken build of replacement for Windows tmpfile().
207 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
208 flags argument added along with the 'mkostemp' module.
210 2009-09-28 Bruno Haible <bruno@clisp.org>
212 Avoid identifier clash with POSIX function 'remove' defined as a macro.
213 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
215 (gl_list_remove): Update.
216 * lib/gl_list.c (gl_list_remove): Update.
217 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
219 (gl_oset_remove): Update.
220 * lib/gl_list.c (gl_oset_remove): Update.
221 Reported by Eric Blake.
223 2009-09-28 Eric Blake <ebb9@byu.net>
225 doc: mention yet more cygwin 1.7 status
226 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
228 * doc/glibc-functions/execvpe.texi (execvpe): New file.
229 * doc/gnulib.texi (Glibc unistd.h): Mention it.
231 argp: fix test failure
232 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
233 that are not upper-case. Pass correct range to tolower.
235 2009-09-27 Jim Meyering <meyering@redhat.com>
237 test-yesno: work around sparc-dash here-document infelicity
238 Without this change, the literal \177 byte in a here document
239 would make dash 0.5.5.1-3 access uninitialized memory.
240 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
241 Instead, use a marker, "@", and filter through tr to create the desired
242 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
244 2009-09-27 Bruno Haible <bruno@clisp.org>
246 Disable untested support for new flavours of ACLs on AIX.
247 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
249 * lib/set-mode-acl.c (qset_acl): Likewise.
251 2008-12-07 Bruno Haible <bruno@clisp.org>
253 Add support for new flavours of ACLs on AIX. (Untested.)
254 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
255 (file_has_acl): Add support for newer AIX.
256 * lib/set-mode-acl.c (qset_acl): Likewise.
257 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
258 Rainer Tammer <tammer@tammer.net>.
260 2009-09-26 Eric Blake <ebb9@byu.net>
262 argp: fix compilation of getopt
263 * lib/getopt.in.h (includes): Use different guard than glibc.
264 Reported by Sergey Poznyakoff.
266 doc: mention more cygwin 1.7 status
267 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
269 * doc/posix-functions/execl.texi (execl): Likewise.
270 * doc/posix-functions/execle.texi (execle): Likewise.
271 * doc/posix-functions/execlp.texi (execlp): Likewise.
272 * doc/posix-functions/execv.texi (execv): Likewise.
273 * doc/posix-functions/execve.texi (execve): Likewise.
274 * doc/posix-functions/execvp.texi (execvp): Likewise.
275 * doc/glibc-functions/canonicalize_file_name.texi
276 (canonicalize_file_name): Cygwin 1.7 now provides this.
277 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
278 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
279 on AT_SYMLINK_NOFOLLOW.
281 2009-09-24 Eric Blake <ebb9@byu.net>
283 test-linkat: make test more robust
284 * tests/test-linkat.c (main): Avoid collision with EEXIST.
286 getopt: fix inclusion guards for cygwin
287 * modules/getopt-posix (Depends-on): Add include-next.
288 (Makefile.am): Substitute more items in replacement header.
289 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
291 * lib/getopt.in.h (includes): Use split inclusion guard, and
292 prefer <getopt.h> over include <unistd.h> when one is present.
293 (option): Also override name of 'struct option'.
295 same-inode: revert prior change; it is not yet ready
296 * NEWS: Undo mention of this change.
297 * lib/same-inode.h (same-inode.h): Undo tri-state change.
298 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
299 * lib/cycle-check.c (cycle_check): Likewise.
300 * lib/same.c (same_name): Likewise.
301 * lib/at-func2.c (at_func2): Likewise.
303 2009-09-23 Eric Blake <ebb9@byu.net>
306 * modules/linkat: New file.
307 * lib/at-func2.c (at_func2): Likewise.
308 * lib/linkat.c (linkat): Likewise.
309 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
310 * lib/openat-priv.h (at_func2): Add declaration.
311 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
312 * modules/unistd (Makefile.am): Substitute them.
313 * lib/unistd.in.h (linkat): Declare it.
314 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
315 * doc/posix-functions/linkat.texi (linkat): Likewise.
316 * doc/posix-functions/link.texi (link): Tweak wording.
317 * tests/test-link.c (main): Move guts...
318 * tests/test-link.h (test_link): ...into new file.
319 * modules/linkat-tests: New test.
320 * tests/test-linkat.c: Likewise.
321 * modules/link-tests (Files): Ship new file.
322 (Depends-on): Add stdbool.
324 dirname: add library-safe mdir_name
325 * lib/dirname.h (mdir_name): New prototype.
326 * lib/dirname.c (dir_name): Move guts...
327 (mdir_name): ...to new function that avoids xalloc_die.
329 fchdir: another mingw fix
330 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
331 * lib/fchdir.c (get_name): New helper method; skips canonicalize
332 on mingw (where it has not yet been ported), and make it optional
334 (_gl_register_fd): Use it.
336 same-inode: make SAME_INODE tri-state, to port to mingw
337 * NEWS: Mention this change.
338 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
339 st_ino always being 0.
340 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
341 * lib/cycle-check.c (cycle_check): Likewise.
342 * lib/same.c (same_name): Likewise.
344 lstat: avoid mingw compilation error
345 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
346 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
348 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
350 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
351 the checks for lstat.
352 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
354 link: fix test failure on Solaris 9
355 * lib/link.c (rpl_link): Don't assume link will catch bogus
356 trailing slash on source.
358 test-symlinkat: enhance test
359 * tests/test-readlink.c (main): Move guts...
360 * tests/test-readlink.h (test_readlink): ...into new file.
361 * tests/test-symlink.c (main): Move guts...
362 * tests/test-symlink.h (test_symlink): ...into new file.
363 * tests/test-symlinkat.c (main): Use new files for further
365 (do_symlink, do_readlink): New helper functions.
366 * modules/symlink-tests (Files): Ship new file.
367 (Depends-on): Add stdbool.
368 * modules/readlink-tests (Files): Ship new file.
369 (Depends-on): Add stdbool.
370 * modules/symlinkat-tests (Files): Use new files.
372 2009-09-23 Eric Blake <ebb9@byu.net>
374 readlink: document portability issue with symlink length
375 * doc/posix-functions/lstat.texi (lstat): Mention that some file
376 systems have bogus st_size on symlinks, and mention the
377 areadlink-with-size module.
378 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
379 * doc/posix-functions/readlink.texi (readlink): Mention the
380 areadlink module, and ERANGE failure.
381 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
382 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
384 readlink: fix Solaris 9 bug with trailing slash
385 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
386 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
387 * doc/posix-functions/readlink.texi (readlink): Document this.
388 * modules/readlink-tests: New test.
389 * tests/test-readlink.c: Likewise.
391 readlink: fix cygwin 1.5.x bug with return type
392 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
393 * lib/unistd.in.h (readlink): Use ssize_t.
394 * lib/readlink.c (readlink): Likewise.
395 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
396 * modules/unistd (Makefile.am): Substitute it.
397 * lib/unistd.in.h (readlink): Declare replacement.
398 * doc/posix-functions/readlink.texi (readlink): Document this.
400 symlink: use throughout gnulib
401 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
402 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
404 * modules/symlinkat (Depends-on): Add symlink.
405 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
406 * modules/canonicalize-tests (Depends-on): Likewise.
407 * modules/lstat-tests (Depends-on): Likewise.
408 * modules/openat-tests (Depends-on): Likewise.
409 * modules/remove-tests (Depends-on): Likewise.
410 * modules/rmdir-tests (Depends-on): Likewise.
411 * modules/unlink-tests (Depends-on): Likewise.
412 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
413 * tests/test-canonicalize.c (symlink): Likewise.
414 * tests/test-fstatat.c (symlink): Likewise.
415 * tests/test-lstat.c (symlink): Likewise.
416 * tests/test-remove.c (symlink): Likewise.
417 * tests/test-rmdir.c (symlink): Likewise.
418 * tests/test-unlink.c (symlink): Likewise.
419 * tests/test-unlinkat.c (symlink): Likewise.
421 symlink: new module, for Solaris 9 bug
422 * modules/symlink: New file.
423 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
424 * lib/symlink.c: Likewise.
425 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
426 * modules/unistd (Makefile.am): Substitute them.
427 * lib/unistd.in.h (symlink): Declare replacement.
428 * MODULES.html.sh (File system functions): Mention it.
429 * doc/posix-functions/symlink.texi (symlink): Likewise.
430 * modules/symlink-tests: New test.
431 * tests/test-symlink.c: Likewise.
433 2009-09-23 Bruno Haible <bruno@clisp.org>
435 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
437 Test case: gnulib-tool --import --with-tests atexit inttypes.
438 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
440 2009-09-23 Bruno Haible <bruno@clisp.org>
442 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
443 subcommand, not in a subshell.
445 2009-09-22 Eric Blake <ebb9@byu.net>
447 unistd: sort replacement declarations
448 * lib/unistd.in.h: Sort declarations.
450 open, openat: minor optimization
451 * lib/open.c (open): If open succeeded, len is non-zero.
452 * lib/openat.c (rpl_openat): Likewise.
454 link-follow: ensure correct result
455 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
456 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
457 distinguish between possible failures.
459 2009-09-21 Eric Blake <ebb9@byu.net>
461 fts: avoid compiler warning
462 * lib/fts.c (dirent_inode_sort_may_be_useful)
463 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
465 2009-09-19 Bruno Haible <bruno@clisp.org>
467 * lib/progreloc.c (canonicalize_file_name): New declaration.
469 2009-09-19 Eric Blake <ebb9@byu.net>
472 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
474 openat: fix openat bugs on Solaris 9
475 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
476 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
477 * modules/openat (Depends-on): Add open.
478 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
479 * modules/fcntl-h (Makefile.am): Substitute it.
480 * lib/fcntl.in.h (openat): Declare replacement.
481 * doc/posix-functions/openat.texi (openat): Document this.
483 openat: move fstatat and unlinkat into correct files
484 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
486 * lib/openat.c (fstatat, unlinkat): Move...
487 * lib/fstatat.c (fstatat): ...into correct files.
488 * lib/unlinkat.c (unlinkat): Likewise.
490 openat: fix unlinkat bugs on Solaris 9
491 * lib/unlinkat.c (unlinkat): New file.
492 * modules/openat (Depends-on): Add unlink.
493 (Files): Distribute it.
494 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
495 trailing slash behavior is broken.
496 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
497 * modules/unistd (Makefile.am): Substitute it.
498 * lib/unistd.in.h (unlinkat): Declare replacement.
499 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
501 openat: fix fstatat bugs on Solaris 9
502 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
504 * doc/posix-functions/fstatat.texi (fstatat): Document this.
506 test-unlinkat: enhance test, to expose Solaris 9 bug
507 * tests/test-unlink.c (main): Factor guts...
508 * tests/test-unlink.h (test_rmdir_func): ...into new file.
509 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
510 * tests/test-rmdir.c (main): Adjust caller.
511 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
512 (unlinker): New helper function.
513 (rmdirat): Enhance check.
514 * modules/rmdir-tests (Depends-on): Add stdbool.
515 * modules/unlink-tests (Depends-on): Likewise.
516 (Files): Add test-unlink.h.
517 * modules/openat-tests (Files): Likewise.
518 (Depends-on): Add unlinkdir.
520 test-fstatat: new test, to expose Solaris 9 bugs
521 * tests/test-stat.c (main): Factor guts...
522 * tests/test-stat.h (test_stat_func): ...into new file.
523 * tests/test-lstat.c (main): Factor guts...
524 * tests/test-lstat.h (test_lstat_func): ...into new file.
525 * tests/test-fstatat.c: New file.
526 * modules/stat-tests (Files): Add test-stat.h.
527 * modules/lstat-tests (Files): Add test-lstat.h.
528 (Depends-on): Add stdbool.
529 * modules/openat-tests (Depends-on): Add pathmax.
530 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
531 (Makefile.am): Run new test.
533 remove: new module, for mingw and Solaris 9 bugs
534 * modules/remove: New file.
535 * lib/remove.c: Likewise.
536 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
537 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
538 * modules/stdio (Makefile.am): Use them.
539 * lib/stdio.in.h (remove): Declare replacement.
540 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
541 * doc/posix-functions/remove.texi (remove): Likewise.
542 * modules/remove-tests: New test.
543 * tests/test-remove.c: Likewise.
545 unlink: new module, for Solaris 9 bug
546 * modules/unlink: New file.
547 * lib/unlink.c: Likewise.
548 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
549 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
550 * modules/unistd (Makefile.am): Use them.
551 * lib/unistd.in.h (stat): Declare replacement.
552 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
553 * doc/posix-functions/unlink.texi (unlink): Likewise.
554 * modules/unlink-tests: New test.
555 * tests/test-unlink.c: Likewise.
557 lstat: fix Solaris 9 bug
558 * lib/lstat.c (lstat): Also check for trailing slash on
559 non-symlink, non-directories. Use stat module to simplify logic.
560 * doc/posix-functions/lstat.texi (lstat): Document it.
561 * modules/lstat-tests (Depends-on): Add errno, same-inode.
562 (configure.ac): Check for symlink.
563 * tests/test-lstat.c (main): Add more tests.
565 stat: add as dependency to other modules
566 * modules/chown (Depends-on): Add stat.
567 * modules/euidaccess (Depends-on): Likewise.
568 * modules/fchdir (Depends-on): Likewise.
569 * modules/isdir (Depends-on): Likewise.
570 * modules/link (Depends-on): Likewise.
571 * modules/lstat (Depends-on): Likewise.
572 * modules/mkdir-p (Depends-on): Likewise.
573 * modules/modechange (Depends-on): Likewise.
574 * modules/open (Depends-on): Likewise.
575 * modules/readlink (Depends-on): Likewise.
576 * modules/same (Depends-on): Likewise.
578 stat: fix Solaris 9 bug
579 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
581 * lib/stat.c (rpl_stat): Work around it.
582 * doc/posix-functions/stat.texi (stat): Update documentation.
584 stat: new module, for mingw bug
585 * modules/stat: New file.
586 * lib/stat.c: Likewise.
587 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
588 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
589 * modules/sys_stat (Makefile.am): Use them.
590 * lib/sys_stat.in.h (stat): Declare replacement.
591 * lib/openat.c (fstatat): Deal with lstat and stat being function
593 * modules/openat (Depends-on): Add inline.
594 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
595 * doc/posix-functions/stat.texi (stat): Likewise.
596 * modules/stat-tests: New test.
597 * tests/test-stat.c: Likewise.
599 2009-09-19 Jim Meyering <meyering@redhat.com>
601 syntax-check: detect unnecessary inclusion of canonicalize.h
602 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
604 2009-09-19 Eric Blake <ebb9@byu.net>
606 canonicalize-lgpl: adjust clients to use correct header
607 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
608 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
609 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
610 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
611 * lib/progreloc.c (includes): Likewise.
613 2009-09-19 Jim Meyering <meyering@redhat.com>
615 test-posixtm.c: correct a comment
616 * tests/test-posixtm.c: Correct first-line comment.
617 Spotted by Eric Blake.
619 2009-09-16 Jim Meyering <meyering@redhat.com>
621 posixtm-tests: make T const-correct; add a test case
622 * tests/test-posixtm.c (T): Declare const.
623 Add a test for -(2^31+1).
624 Remove useless can-succeed-only-in-2002 test.
626 posixtm-tests: adjust the sole failing test
627 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
628 expected output matches what mktime now produces. Cross-checked via
629 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
631 posixtm: move #ifdef'd tests into a new module
632 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
633 * tests/test-posixtm.c: ... this new file.
634 * modules/posixtm-tests: New module.
636 2009-09-19 Eric Blake <ebb9@byu.net>
638 openat: simplify use of at-func.c
639 * lib/at-func.c (includes): Include prerequisites here, to
640 simplify requirements on client files.
641 * lib/openat-priv.h: Add double-inclusion guard.
642 * lib/faccessat.c (includes): Simplify.
643 * lib/fchmodat.c (includes): Likewise.
644 * lib/fchownat.c (includes): Likewise.
645 * lib/mkdirat.c (includes): Likewise.
646 * lib/mkfifoat.c (includes): Likewise.
647 * lib/symlinkat.c (includes): Likewise.
649 openat: allow return of fd 0
650 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
651 * modules/save-cwd (Depends-on): Replace fcntl-safer with
653 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
654 <fcntl.h>; this module does not leak fds.
655 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
656 must be allowed to return 0, leaving openat_safer to add the
658 (openat_permissive): Avoid writing to just-opened fd 2 if
659 restoring the current directory fails.
660 * lib/openat-die.c (openat_restore_fail): Add comment.
661 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
662 (save_cwd): Guarantee safe fd, but without use of open_safer.
663 * tests/test-openat.c: New test.
664 * modules/openat-tests (Files, Makefile.am): Distribute and build
667 relocatable-prog-wrapper: fix build
668 * modules/relocatable-prog-wrapper (Files): Update name of
669 canonicalize m4 file, broken on 2009-09-17.
670 Reported by emad hajjar <aleppos@hotmail.com>.
672 2009-09-19 Bruno Haible <bruno@clisp.org>
674 * lib/safe-alloc.h: Use the standard header with GPL copyright.
675 * lib/safe-alloc.c: Likewise.
676 Reported by Ian Beckwith <ianb@erislabs.net>.
678 2009-09-18 Bruno Haible <bruno@clisp.org>
680 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
681 Reported by <erobles@sensacd.com.mx>.
683 2009-09-17 Eric Blake <ebb9@byu.net>
685 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
686 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
687 slashes when checking if last component is missing.
688 * tests/test-canonicalize.c (main): Test this.
690 canonicalize, canonicalize-lgpl: honor // if distinct from /
691 * modules/canonicalize (Files): Add double-slash-root.m4.
692 * modules/canonicalize-lgpl (Files): Likewise.
693 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
694 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
695 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
697 (canonicalize_filename_mode): Use it to protect //.
698 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
699 (__realpath): Likewise.
700 * tests/test-canonicalize.c (main): Test this.
701 * tests/test-canonicalize-lgpl.c (main): Likewise.
702 * modules/canonicalize-tests (Depends-on): Add same-inode.
703 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
705 canonicalize-lgpl: fix glibc bug with trailing slash
706 * m4/canonicalize-lgpl.m4: Move contents...
707 * m4/canonicalize.m4: ...here.
708 (gl_CANONICALIZE_LGPL): Factor realpath check...
709 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
710 glibc 2.3.5 bug, fixed 2005-04-27.
711 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
712 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
713 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
714 * modules/canonicalize-lgpl (Files): Manage file rename.
715 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
716 * modules/stdlib (Makefile.am): Substitute witness.
717 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
719 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
720 replacement is required.
721 * lib/canonicalize.c (canonicalize_file_name): Likewise.
722 * doc/glibc-functions/canonicalize_file_name.texi
723 (canonicalize_file_name): Document this.
724 * doc/posix-functions/realpath.texi (realpath): Likewise.
726 canonicalize-lgpl: reject non-directory with trailing slash
727 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
728 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
729 catches failures in glibc 2.3.5.
730 * tests/test-canonicalize.c (main): Likewise.
732 canonicalize-lgpl: use native realpath if it works
733 * lib/canonicalize-lgpl.c (realpath): Guard with
735 * lib/stdlib.in.h (realpath): Make declaration optional based on
737 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
738 native realpath works.
739 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
740 * modules/stdlib (Makefile.am): Substitute witness.
742 canonicalize, canonicalize-lgpl: use <stdlib.h>
743 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
744 (Include): Mention <stdlib.h>.
745 (configure.ac): Mention functions we provide.
746 * modules/canonicalize (configure.ac): Likewise.
747 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
748 realpath if canonicalize_file_name is missing.
749 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
750 * modules/stdlib (Makefile.am): Substitute witnesses.
751 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
752 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
753 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
754 * NEWS: Document this.
755 * doc/glibc-functions/canonicalize_file_name.texi
756 (canonicalize_file_name): Likewise.
757 * doc/posix-functions/realpath.texi (realpath): Likewise.
758 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
760 test-canonicalize: consolidate into single C program
761 * tests/test-canonicalize.sh: Delete; move setup into...
762 * tests/test-canonicalize.c (main): ...the program, making it
763 easier to run in debugger. Add some tests.
764 * modules/canonicalize-tests (Files): Remove unused file.
765 (Depends-on): Add progname.
766 (configure.ac, Makefile.am): Simplify.
768 test-canonicalize-lgpl: consolidate into single C program
769 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
770 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
771 easier to run in debugger. Add some tests.
772 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
773 (configure.ac, Makefile.am): Simplify.
775 canonicalize: avoid resolvepath
776 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
778 * lib/canonicalize.c (includes): Simplify.
779 (canonicalize_file_name): Drop resolvepath implementation.
780 * modules/canonicalize (Depends-on): Drop filenamecat.
782 canonicalize: don't lose errno
783 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
786 canonicalize: simplify errno handling
787 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
790 canonicalize, canonicalize-lgpl: update module dependencies
791 * modules/canonicalize (Depends-on): Add extensions, lstat,
793 (Files): Drop pathmax.h.
794 (configure.ac): Adjust macro name.
795 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
796 lstat, stdlib, sys_stat.
797 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
798 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
800 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
801 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
802 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
803 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
804 declaration, if available.
805 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
806 we can rely on the readlink module.
807 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
808 (includes): Use <unistd.h> unconditionally.
810 2009-09-17 Eric Blake <ebb9@byu.net>
812 maint: make Include sections of modules consistent
813 * modules/alloca: Use only header name; no need to list #include.
814 * modules/alloca-opt: Likewise.
815 * modules/arpa_inet: Likewise.
816 * modules/canon-host: Likewise.
817 * modules/configmake: Likewise.
818 * modules/dirent: Likewise.
819 * modules/eealloc: Likewise.
820 * modules/environ: Likewise.
821 * modules/fchdir: Likewise.
822 * modules/fcntl: Likewise.
823 * modules/fcntl-h: Likewise.
824 * modules/gethrxtime: Likewise.
825 * modules/gettime: Likewise.
826 * modules/ignore-value: Likewise.
827 * modules/inet_ntop: Likewise.
828 * modules/inet_pton: Likewise.
829 * modules/inttypes: Likewise.
830 * modules/isnand-nolibm: Likewise.
831 * modules/isnanf-nolibm: Likewise.
832 * modules/mbchar: Likewise.
833 * modules/mbfile: Likewise.
834 * modules/mbiter: Likewise.
835 * modules/mbuiter: Likewise.
836 * modules/netdb: Likewise.
837 * modules/netinet_in: Likewise.
838 * modules/nproc: Likewise.
839 * modules/pagealign_alloc: Likewise.
840 * modules/poll: Likewise.
841 * modules/printf-frexp: Likewise.
842 * modules/pthread: Likewise.
843 * modules/putenv: Likewise.
844 * modules/random_r: Likewise.
845 * modules/relocatable-prog: Likewise.
846 * modules/search: Likewise.
847 * modules/select: Likewise.
848 * modules/selinux-h: Likewise.
849 * modules/settime: Likewise.
850 * modules/signal: Likewise.
851 * modules/size_max: Likewise.
852 * modules/socklen: Likewise.
853 * modules/ssize_t: Likewise.
854 * modules/stdarg: Likewise.
855 * modules/stdbool: Likewise.
856 * modules/stddef: Likewise.
857 * modules/stdint: Likewise.
858 * modules/stdio: Likewise.
859 * modules/stdlib: Likewise.
860 * modules/string: Likewise.
861 * modules/strings: Likewise.
862 * modules/sys_file: Likewise.
863 * modules/sys_ioctl: Likewise.
864 * modules/sys_select: Likewise.
865 * modules/sys_socket: Likewise.
866 * modules/sys_stat: Likewise.
867 * modules/sys_time: Likewise.
868 * modules/sys_times: Likewise.
869 * modules/sys_utsname: Likewise.
870 * modules/sys_wait: Likewise.
871 * modules/sysexits: Likewise.
872 * modules/time: Likewise.
873 * modules/times: Likewise.
874 * modules/tmpfile: Likewise.
875 * modules/trim: Likewise.
876 * modules/unistd: Likewise.
877 * modules/wchar: Likewise.
878 * modules/wctype: Likewise.
880 2009-09-17 Bruno Haible <bruno@clisp.org>
882 Make getdate.y compile on QNX and NetBSD 5 / i386.
883 * m4/getdate.m4 (gl_GETDATE): Conditionally define
884 TIME_T_FITS_IN_LONG_INT.
885 * lib/getdate.y (long_time_t): New type.
886 (relative_time): Change type of 'seconds' field to long_time_t.
887 (get_date): Update types of local variables. Check against overflow
888 during conversion from long_time_t to time_t.
889 Reported by Matt Kraai <kraai@ftbfs.org>
890 and Hasso Tepper <hasso@netbsd.org>.
892 2009-09-17 Bruno Haible <bruno@clisp.org>
894 * modules/COPYING: Update copyright years.
895 * modules/README: Likeiwse.
896 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
897 Reported by Ian Beckwith <ianb@erislabs.net>.
899 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
901 * users.txt: Update references for gnuit package.
903 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
905 * m4/getdelim.m4: Fix typo in copyright line.
907 2009-09-17 Bruno Haible <bruno@clisp.org>
909 * lib/atoll.c: Use the standard header with GPL copyright.
910 * lib/argz.in.h: Likewise.
911 * lib/glob.c: Likewise.
912 * lib/glob-libc.h: Likewise.
913 * lib/random_r.c: Likewise.
914 * lib/siglist.h: Likewise.
915 * lib/strsignal.c: Likewise.
916 Reported by Ian Beckwith <ianb@erislabs.net>.
918 2009-09-17 Eric Blake <ebb9@byu.net>
920 rmdir: ensure correct dependency order
921 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
923 2009-09-17 Bruno Haible <bruno@clisp.org>
925 Disable assertion that fails on NetBSD 5 / i386.
926 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
927 Reported by Sam Steingold <sds@gnu.org>
928 and Hasso Tepper <hasso@netbsd.org>.
930 2009-09-16 Eric Blake <ebb9@byu.net>
932 unlinkdir: port to mingw
933 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
934 on which no one can unlink a directory.
936 stdlib: sort witness names
937 * modules/stdlib (Makefile.am): Sort replacements.
938 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
939 * lib/stdlib.in.h: Likewise.
941 parse-duration-tests: avoid link failure
942 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
944 Reported by Tom G. Christensen.
946 openat-tests: ensure unlinkat behaves like rmdir
947 * tests/test-rmdir.c (main): Factor guts...
948 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
949 * modules/rmdir-tests (Files): Ship new file.
950 * modules/openat-tests: New test.
951 * tests/test-unlinkat.c: Likewise.
953 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
954 * modules/rmdir-errno (Status, Notice): Now obsolete.
956 rmdir: work around cygwin 1.5.x and mingw bugs
957 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
958 * lib/rmdir.c (rmdir): Work around it.
959 * modules/rmdir (Status, Notice): No longer obsolete.
961 (Depends-on): Add unistd.
962 (configure.ac): Set witnesses.
963 (License): Relax to LGPLv2+.
964 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
965 * modules/unistd (Makefile.am): Substitute witnesses.
966 * lib/unistd.in.h (rmdir): Declare replacement.
967 * doc/posix-functions/rmdir.texi (rmdir): Document this.
968 * modules/rmdir-tests: New tests.
969 * tests/test-rmdir.c: Likewise.
971 2009-09-15 Eric Blake <ebb9@byu.net>
973 fchdir: improve use of replacement functions
974 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
975 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
976 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
978 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
979 * modules/sys_stat (Makefile.am): Substitute correct witness.
980 * modules/dirent (Makefile.am): Likewise.
981 * modules/unistd (Makefile.am): Likewise.
982 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
983 * lib/unistd.in.h (dup): Likewise.
984 * lib/sys_stat.in.h (fstat): Likewise.
986 maint: ignore gnulib-tool temp files
987 * .gitignore: Ignore files created during gnulib-tool --test.
989 2009-09-13 Jim Meyering <meyering@redhat.com>
991 posixtm: don't reject a time that specify "60" as the number of seconds
992 * lib/posixtm.c (posixtime): The code to reject invalid dates
993 would also reject a time specified with the .60 suffix.
994 But POSIX allows that, in order to accommodate leap seconds.
996 (main): Adjust tests accordingly.
997 * modules/posixtm (Depends-on): Add stpcpy.
999 2009-09-11 Jim Meyering <meyering@redhat.com>
1001 announce-gen: include [$release_type] in emitted Subject:
1002 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
1003 e.g., [stable] in the emitted Subject: line.
1005 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1007 Remove obsolete macros from several modules.
1008 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
1009 obsolete Autoconf macros with their modern counterparts.
1010 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
1011 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
1012 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1013 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1014 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
1015 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1016 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1017 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1018 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1019 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
1020 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1021 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1022 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1023 * m4/sockets.m4 (gl_SOCKETS): Likewise.
1024 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
1025 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
1026 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1027 * m4/time_r.m4 (gl_TIME_R): Likewise.
1028 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1029 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
1030 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1032 Fix copyright header in build-aux scripts.
1033 * build-aux/git-version-gen: Fix copyright header to match GPLv3
1035 * build-aux/ncftpput-ftp: Likewise.
1036 * build-aux/update-copyright: Likewise.
1038 2009-09-09 Eric Blake <ebb9@byu.net>
1040 test-link: allow Linux choice of errno
1041 * tests/test-link.c (main): Relax test for alternate error.
1043 strndup: fix improper m4 caching
1044 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
1045 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
1046 (gl_PREREQ_STRNDUP): Delete.
1047 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
1048 * modules/string (Makefile.am): Substitute it.
1049 * lib/string.in.h (strndup): Modernize prototype.
1051 getcwd: port to mingw
1052 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
1053 different from the POSIX assumptions made throughout the getcwd
1054 module; fortunately, the mingw getcwd does not need replacement.
1055 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
1056 * modules/getcwd-tests: New test.
1057 * tests/test-getcwd.c: Likewise.
1059 link: fix platform bugs
1060 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
1061 * lib/link.c (link): Work around them. Fix related mingw bug.
1062 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
1063 * modules/unistd (Makefile.am): Substitute it.
1064 * lib/unistd.in.h (link): Declare replacement.
1065 * doc/posix-functions/link.texi (link): Document this.
1066 * modules/link (Depends-on): Add strdup-posix, sys_stat.
1068 test-link: consolidate into single C program, test more cases
1069 * tests/test-link.sh: Delete.
1070 * tests/test-link.c: Test more error conditions. Exposes bugs on
1071 at least Cygwin and Solaris.
1072 * modules/link-tests (Files): Remove unused file.
1073 (Depends-on): Add errno, sys_stat.
1074 (Makefile.am): Simplify.
1076 2009-09-08 Bruno Haible <bruno@clisp.org>
1078 Work around towlower, towupper bug on mingw.
1079 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
1080 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
1081 * doc/posix-functions/towlower.texi: Mention the mingw bug.
1082 * doc/posix-functions/towupper.texi: Likewise.
1083 Reported by Eric Blake.
1085 2009-09-08 Jim Meyering <meyering@redhat.com>
1087 build: don't try to run autoheader if we don't use it
1088 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
1089 is not used in configure.ac.
1091 2009-09-08 Eric Blake <ebb9@byu.net>
1093 euidaccess: fix compilation error
1094 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
1096 rawmemchr: relax license
1097 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
1099 Reported by Jim Meyering.
1101 mkfifoat: new module
1102 * modules/mkfifoat: New file.
1103 * lib/mkfifoat.c: Likewise.
1104 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
1105 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1106 * modules/sys_stat (Makefile.am): Use them.
1107 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
1108 * MODULES.html.sh (File system functions): Mention module.
1109 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
1110 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
1111 * modules/mkfifoat-tests: New test.
1112 * tests/test-mkfifoat.c: Likewise.
1114 strchrnul: relax license
1115 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
1117 Reported by Jim Meyering.
1119 2009-09-08 Eric Blake <ebb9@byu.net>
1121 fstatat: fix compilation on Solaris
1122 * lib/fstatat.c (includes): Add fcntl.h.
1123 Reported by Pádraig Brady.
1125 2009-09-07 Eric Blake <ebb9@byu.net>
1127 rename: modernize replacement
1128 * modules/rename (Depends-on): Add stdio.
1129 (configure.ac): Declare witness.
1130 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
1131 stdio take care of replacement.
1132 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
1133 * modules/stdio (Makefile.am): Substitute them.
1134 * lib/stdio.in.h (rename): Declare replacement.
1135 * lib/rename.c (includes): Allow cross-compilation to non-windows
1137 * doc/posix-functions/rename.texi (rename): Improve
1140 stdio: sort witness names
1141 * modules/stdio (Makefile.am): Sort replacements.
1142 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1143 * lib/stdio.in.h: Likewise.
1145 getcwd: minor cleanups
1146 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
1147 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
1149 openat: provide more convenience names
1150 * modules/faccessat (configure.ac): Add C witness.
1151 * lib/unistd.in.h (readlinkat): Fix typo.
1152 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
1153 convenience wrappers.
1154 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
1155 wrappers in syntax checks.
1157 2009-09-06 Eric Blake <ebb9@byu.net>
1159 doc: fix comments in recent patches
1160 * lib/faccessat.c: Mention correct function.
1161 * lib/fchmodat.c: Likewise.
1162 * lib/fchownat.c: Likewise.
1163 * lib/symlinkat.c: Likewise.
1164 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
1167 faccessat, symlinkat: continue cleanup of previous patch
1168 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
1169 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1170 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
1171 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
1172 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
1173 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
1176 2009-09-06 Bruno Haible <bruno@clisp.org>
1178 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
1179 (fstatat): Declare if GNULIB_FSTATAT is set.
1180 (mkdirat): Declare if GNULIB_MKDIRAT is set.
1181 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
1182 (unlinkat): Declare if GNULIB_UNLINKAT is set.
1183 * modules/fcntl-h (Files): Remove m4/openat.m4.
1184 * modules/sys_stat (Files): Remove m4/openat.m4.
1185 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
1186 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
1187 * modules/unistd (Files): Remove m4/openat.m4.
1188 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
1190 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
1191 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
1192 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1193 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
1194 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
1196 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
1197 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
1198 Don't require gl_OPENAT_DEFAULTS.
1199 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
1200 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
1201 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
1202 (gl_OPENAT_DEFAULTS): Remove macro.
1204 2009-09-06 Bruno Haible <bruno@clisp.org>
1206 * modules/openat (configure.ac): Remove unneeded witness.
1208 2009-09-06 Bruno Haible <bruno@clisp.org>
1210 Set errno to ENOSYS when a function is entirely unsupported.
1211 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
1213 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
1214 * modules/chown (Depends-on): Remove errno.
1216 2009-09-06 Bruno Haible <bruno@clisp.org>
1218 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
1220 2009-09-06 Bruno Haible <bruno@clisp.org>
1222 * lib/sys_stat.in.h: Fix preprocessor command indentation.
1224 2009-09-06 Ben Pfaff <blp@gnu.org>
1225 Bruno Haible <bruno@clisp.org>
1227 Work around a glibc bug in strtok_r.
1228 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
1229 Undefine if UNDEFINE_STRTOK_R is set.
1230 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
1231 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1232 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
1233 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
1234 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
1236 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
1238 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
1241 * lib/exclude.c: Include wctype.h
1243 2009-09-06 Akim Demaille <demaille@gostai.com>
1245 bootstrap: improve error message
1246 * build-aux/bootstrap (find_tool): Upon failure, report the list
1248 Honor the initial value of the envvar.
1250 2009-09-05 Eric Blake <ebb9@byu.net>
1252 symlinkat: new module
1253 * modules/symlinkat: New file.
1254 * lib/symlinkat.c: Likewise.
1255 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1256 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1257 * modules/unistd (Makefile.am): Use them.
1258 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
1259 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
1260 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
1261 * MODULES.html.sh (File system functions): Mention module.
1262 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
1263 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1264 * modules/symlinkat-tests: New test.
1265 * tests/test-symlinkat.c: Likewise.
1267 test-openat-safer: add more checks
1268 * tests/test-openat-safer.c (main): Check more code paths.
1270 2009-09-05 Jim Meyering <meyering@redhat.com>
1272 syntax-check: detect unnecessary inclusion of openat.h
1273 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
1275 2009-09-05 Bruno Haible <bruno@clisp.org>
1277 Support towlower, towupper.
1278 * doc/posix-functions/towlower.texi: Mention module wctype.
1279 * doc/posix-functions/towupper.texi: Likewise.
1280 * lib/wctype.in.h (towlower, towupper): New functions.
1281 * tests/test-wctype.c: Include stdio.h, stdlib.h.
1282 (ASSERT): New macro.
1284 (main): Test also towlower, towupper. Test WEOF argument.
1285 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1287 2009-09-05 Bruno Haible <bruno@clisp.org>
1289 Fix conversion behaviour when the input is invalid.
1290 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
1291 mark occurring in first pass of indirect conversion.
1292 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
1294 Found by clang's static analyzer.
1296 2009-09-05 Bruno Haible <bruno@clisp.org>
1298 * tests/test-striconveh.c (main): Test indirect conversion on platforms
1299 where direct conversion is possible.
1301 2009-09-04 Eric Blake <ebb9@byu.net>
1303 openat: fail with ENOENT on empty name
1304 * lib/openat-proc.c (openat_proc_name): Special-case the empty
1307 link-follow: fix logic bug in prior patch
1308 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
1309 reversed sense of yes and no in prior patch. Avoid confusing
1310 compilation failure with desired semantics.
1312 link-follow: accomodate mingw and cross-compilation
1313 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
1314 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
1315 cross-compilation results to -1, to make linkat easier to
1316 implement when cross-compiling. Trivially support mingw.
1317 * modules/link-follow (configure.ac): Call new name.
1318 * NEWS: Mention this.
1320 2009-09-03 Eric Blake <ebb9@byu.net>
1322 faccessat: compile replacement
1323 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
1326 fts: fix compilation error
1327 * lib/fts.c (includes): Re-add "openat.h", for
1328 openat_needs_fchdir.
1330 faccessat: new module
1331 * modules/faccessat: New file.
1332 * lib/faccessat.c: Likewise.
1333 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1334 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1335 * modules/unistd (Makefile.am): Use it.
1336 * lib/unistd.in.h (faccessat): Declare it.
1337 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
1338 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
1339 * MODULES.html.sh (File system functions): Mention it.
1340 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
1341 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
1343 euidaccess: prefer POSIX over non-standard implementation
1344 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
1345 * lib/euidaccess.c (euidaccess): Use it if available.
1347 openat: make template easier to use
1348 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
1349 AT_FUNC_F2 to be undefined.
1350 (VALIDATE_FLAG): New macro; use it to reject bad flags.
1351 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
1352 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
1353 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
1354 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
1356 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
1357 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
1358 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
1361 openat: declare in POSIX headers
1362 * NEWS: Mention this.
1363 * modules/openat (configure.ac): Declare witnesses.
1364 (Depends-on): Add fcntl-h, sys_stat, unistd.
1365 (Include): Mention correct headers.
1366 * modules/fcntl-h (Depends-on): Add link-warning.
1367 (Files): Add openat.m4.
1368 (Makefile.am): Substitute witnesses.
1369 * modules/sys_stat (Files, Makefile.am): Likewise.
1370 * modules/unistd (Files, Makefile.am): Likewise.
1371 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
1372 (gl_OPENAT_DEFAULTS): New macro.
1373 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
1374 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
1375 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
1376 (SYS_STAT_H): Remove unused variable.
1377 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
1378 * lib/fcntl--.h (includes): Remove unneeded header.
1379 * lib/openat-safer.c (includes): Likewise.
1380 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
1381 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
1382 appropriate headers.
1383 (__OPENAT_PREFIX): Delete.
1384 * lib/fcntl.in.h (openat): Provide declaration.
1385 (AT_FDCWD): Fix Solaris bug.
1386 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
1387 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
1388 * lib/fchmodat.c (includes): Adjust to find declaration.
1389 * lib/fchownat.c (includes): Likewise.
1390 * lib/mkdirat.c (includes): Likewise.
1391 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
1394 2009-09-02 Eric Blake <ebb9@byu.net>
1396 errno: use consistently
1397 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
1398 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
1399 * lib/canonicalize.c (ELOOP): Likewise.
1400 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
1401 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
1402 * lib/lchown.c (EOPNOTSUPP): Likewise.
1403 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
1404 * lib/savewd.c (ESTALE): Likewise.
1405 * lib/settime.c (ENOSYS): Likewise.
1406 * lib/utimens.c (ENOSYS): Likewise.
1407 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
1408 * lib/chdir-safer.c (ELOOP): Likewise.
1409 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
1410 * modules/c-stack (Depends-on): Add errno.
1411 * modules/canonicalize (Depends-on): Likewise.
1412 * modules/chdir-safer (Depends-on): Likewise.
1413 * modules/fdopendir (Depends-on): Likewise.
1414 * modules/inet_ntop (Depends-on): Likewise.
1415 * modules/inet_pton (Depends-on): Likewise.
1416 * modules/lchown (Depends-on): Likewise.
1417 * modules/openat (Depends-on): Likewise.
1418 * modules/savewd (Depends-on): Likewise.
1419 * modules/settime (Depends-on): Likewise.
1420 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
1422 fts: avoid leaking fds
1423 * modules/fts (Depends-on): Add cloexec.
1424 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
1427 fts: make directory fds more robust
1428 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
1429 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
1431 backupfile, chdir-long, fts, savedir: make safer
1432 * lib/backupfile.c (includes): Use "dirent--.h", since
1433 numbered_backup can write to stderr during readdir.
1434 * lib/savedir.c (includes): Likewise.
1435 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
1436 emulation can write to stderr on failure.
1437 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
1438 * lib/getcwd.c: Document why opendir_safer is unused.
1439 * lib/glob.c: Likewise.
1440 * lib/scandir.c: Likewise.
1441 * lib/openat-proc.c: Likewise, for open_safer.
1442 * modules/backupfile (Depends-on): Add dirent-safer.
1443 * modules/savedir (Depends-on): Likewise.
1444 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
1445 * modules/chdir-long (Depends-on): Add openat-safer.
1447 openat-safer: new module
1448 * modules/openat-safer: New file.
1449 * lib/openat-safer.c: Likewise.
1450 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
1451 * lib/fcntl-safer.h (openat_safer): Declare.
1452 * lib/fcntl--.h (openat): Override.
1453 * MODULES.html.sh (File descriptor based I/O): Mention it.
1454 * lib/openat.h: Add double-inclusion guards.
1455 * lib/openat.c (includes): Only include "fcntl-safer.h", not
1456 "fcntl--.h", so we can implement openat.
1457 * modules/openat-safer-tests: New test.
1458 * tests/test-openat-safer.c: New file.
1460 dirent-safer: new module
1461 * modules/dirent-safer: New file.
1462 * lib/dirent--.h: Likewise.
1463 * lib/dirent-safer.h: Likewise.
1464 * lib/opendir-safer.c: Likewise.
1465 * m4/dirent-safer.m4: Likewise.
1466 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
1467 * modules/dirent-safer-tests: New test.
1468 * tests/test-dirent-safer.c: New file.
1469 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
1471 fdopendir: optimize on mingw
1472 * lib/unistd.in.h (_gl_directory_name): New prototype.
1473 * lib/fchdir.c (_gl_directory_name): Implement it.
1474 (fchdir): Use it to simplify implementation.
1475 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
1476 fchdir, when available, to avoid calling [f]chdir().
1478 fdopendir: split into its own module
1479 * lib/openat.c (fdopendir): Move...
1480 * lib/fdopendir.c: ...into new file.
1481 * modules/fdopendir: New module.
1482 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
1483 * modules/openat (Depends-on): Add fdopendir.
1484 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
1486 * modules/savedir (Depends-on): Only need fdopendir, not full
1488 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
1489 * lib/openat.h (fdopendir): Drop prototype.
1490 * lib/dirent.in.h (fdopendir): Provide prototype.
1491 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
1492 * modules/dirent (Makefile.am): Substitute them.
1493 * MODULES.html.sh (File system functions): Mention it.
1494 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
1495 * modules/fdopendir-tests: New file.
1496 * tests/test-fdopendir.c: Likewise.
1498 fchdir: use more consistent macro convention
1499 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
1500 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
1501 REPLACE_FCHDIR, rather than relying on config.h macros.
1502 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
1503 inside a single make-time REPLACE_FCHDIR block, rather than using
1504 the config.h FCHDIR_REPLACEMENT.
1505 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
1506 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
1507 Manage fstat replacement.
1508 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
1510 * modules/sys_stat (Files): Add m4/unistd_h.m4.
1511 (Makefile.am): Substitute REPLACE_FCHDIR.
1512 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
1514 * lib/dup-safer.c (dup_safer): Likewise.
1515 * lib/dup2.c (rpl_dup2): Likewise.
1516 * lib/dup3.c (rpl_dup3): Likewise.
1517 * lib/open.c (rpl_open): Likewise.
1519 fchdir: simplify error handling, and support dup3
1520 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
1521 stdbool, malloc-posix, realloc-posix.
1522 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
1523 (ensure_dirs_slot): Return false on allocation failure.
1525 (_gl_register_dup): New function.
1526 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
1527 (_gl_register_fd): Close fd on allocation failure.
1528 * lib/fcntl.in.h (_gl_register_fd): Update signature.
1529 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
1531 (rpl_dup2_fchdir): Delete prototype.
1532 * lib/open.c (open): Update caller.
1533 * lib/dup2.c (dup2): Track fchdir metadata.
1534 * lib/dup3.c (dup3): Likewise.
1535 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
1536 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
1538 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1540 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
1541 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
1542 don't pass arguments to AC_OUTPUT.
1544 2009-09-02 Bruno Haible <bruno@clisp.org>
1546 * modules/mkdtemp (License): Relicense under LGPLv2+.
1547 Reported by Paolo Bonzini.
1549 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1551 Replace uses of obsolete autoconf macros in Jim's modules.
1552 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
1553 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
1554 can evoke a warning from autoconf when run with -Wobsolete
1555 enabled. They were declared obsolete for good reasons (see
1556 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
1557 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
1558 should not continue using the deprecated macros.
1559 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
1560 obsolete Autoconf macros with modern counterparts.
1561 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1562 * m4/dos.m4 (gl_AC_DOS): Likewise.
1563 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
1564 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1565 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
1566 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
1567 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
1568 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
1569 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
1570 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
1571 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
1573 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1574 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1575 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
1576 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
1577 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1578 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
1580 2009-09-01 Eric Blake <ebb9@byu.net>
1582 fchdir: fix off-by-one bug in previous patch
1583 * lib/fchdir.c (rpl_fstat): Use correct bounds.
1584 (_gl_unregister_fd): Delete useless if.
1586 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
1588 maint.mk: sort the list of syntax-check rules
1589 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
1590 easier to get a sense of progress when the rules are run sequentially
1591 and take a long time.
1593 2009-09-01 Simon Josefsson <simon@josefsson.org>
1595 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
1596 * modules/netinet_in: Likewise.
1597 * modules/sys_file: Likewise.
1598 * modules/sys_ioctl: Likewise.
1599 * modules/sys_select: Likewise.
1600 * modules/sys_socket: Likewise.
1601 * modules/sys_stat: Likewise.
1602 * modules/sys_time: Likewise.
1603 * modules/sys_times: Likewise.
1604 * modules/sys_utsname: Likewise.
1605 * modules/sys_wait: Likewise.
1607 2009-09-01 Jim Meyering <meyering@redhat.com>
1609 fts: help ensure that return values are not ignored
1610 * lib/fts_.h (__GNUC_PREREQ): Define.
1611 (__attribute_warn_unused_result__): Define.
1612 (fts_children, fts_close, fts_open, fts_read): Declare with
1613 __attribute_warn_unused_result__.
1615 fts: fts_close now fails also when closing a dir file descriptor fails
1616 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
1617 and propagate to caller, along with errno.
1619 announce-gen: correct formatting in --help output
1620 * build-aux/announce-gen (usage): Move the one-line description in
1621 --help output "up", to where it belongs, just after Usage:.
1623 2009-08-31 Eric Blake <ebb9@byu.net>
1625 fchdir: port to mingw
1626 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
1627 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
1628 opened, then use a substitute.
1629 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
1631 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
1632 (_gl_register_fd): No need to check stat if open already filters
1634 (fchdir): Fix error condition to match POSIX.
1635 * modules/fchdir (Depends-on): Add sys_stat.
1636 * doc/posix-functions/open.texi (open): Document the limitation.
1637 * modules/fchdir-tests: New file.
1638 * tests/test-fchdir.c: Likewise.
1640 canonicalize: allow cross-testing from cygwin to mingw
1641 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
1642 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
1643 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
1645 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
1646 target does not support symlinks.
1647 * tests/test-canonicalize-lgpl.sh: Likewise.
1649 chown: avoid compilation warning on mingw
1650 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
1651 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
1653 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
1654 * modules/chown (Depends-on): Add errno.
1656 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
1658 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
1661 2009-08-31 Jim Meyering <meyering@redhat.com>
1663 canonicalize: remove useless initialization
1664 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
1665 initialization of local, "end".
1667 2009-08-30 Bruno Haible <bruno@clisp.org>
1669 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
1670 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
1673 2009-08-30 Bruno Haible <bruno@clisp.org>
1675 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
1676 /usr/xpg4/bin/tr when it exists.
1677 * tests/test-pipe-filter-gi1.sh: Likewise.
1679 2009-08-30 Bruno Haible <bruno@clisp.org>
1681 Work around deficient /usr/bin/id program on Solaris.
1682 * tests/test-file-has-acl.sh (ID): New variable.
1683 * tests/test-set-mode-acl.sh (ID): Likewise.
1684 * tests/test-copy-acl.sh (ID): Likewise.
1685 * tests/test-copy-file.sh (ID): Likewise.
1687 2009-08-30 Bruno Haible <bruno@clisp.org>
1689 New module 'xstriconveh'.
1690 * lib/xstriconveh.h: New file.
1691 * lib/xstriconveh.c: New file.
1692 * modules/xstriconveh: New file.
1694 2009-08-30 Bruno Haible <bruno@clisp.org>
1696 Make it easier to use mem_cd_iconveh.
1697 * lib/striconveh.h (iconveh_t): New type.
1698 (iconveh_open, iconveh_close): New declarations.
1699 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
1700 with a single 'const iconveh_t *' argument.
1701 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
1702 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
1703 with a single 'const iconveh_t *' argument.
1704 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
1705 * tests/test-striconveh.c (main): Update.
1706 * NEWS: Mention the change.
1708 2009-08-30 Bruno Haible <bruno@clisp.org>
1710 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
1713 2009-08-30 Bruno Haible <bruno@clisp.org>
1715 Work around iconv_open problem on Solaris.
1716 * lib/iconv_open-solaris.gperf: New file.
1717 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
1718 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
1719 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
1720 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
1721 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
1722 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
1724 2009-08-29 Jim Meyering <meyering@redhat.com>
1726 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
1727 * top/maint.mk (cvs-check): Remove target; it was just an alias
1728 to the better-named vc-diff-check.
1729 (maintainer-distcheck): Remove rule. It was used only from
1730 the (alpha/beta/major) target, and all of its commands but one
1731 were coreutils-specific.
1732 (vc-dist): Remove rule.
1733 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
1734 Run vc-diff-check, not vc-dist.
1735 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
1737 2009-08-27 Bruno Haible <bruno@clisp.org>
1739 * tests/test-bitrotate.c (main): Remove test that uses a shift count
1742 2009-08-27 Bruno Haible <bruno@clisp.org>
1744 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
1746 * doc/func.texi: Document the SunPRO C bug.
1748 2009-08-27 Bruno Haible <bruno@clisp.org>
1750 Fix link error on Solaris.
1751 * tests/test-parse-duration.c (xstrdup): Remove function.
1753 2009-08-26 Pádraig Brady <P@draigbrady.com>
1755 ignore-value: handle pointer types, too
1756 * lib/ignore-value.h (__attribute__): Remove definition.
1757 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
1758 of a more concise and more-often effective "(void) i" statement.
1759 (ignore_ptr): New function to suppress warnings from functions that
1760 return pointers, and to make it explicit that one function doesn't
1763 2009-08-25 Bruno Haible <bruno@clisp.org>
1765 dup2: work around a Linux bug.
1766 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
1767 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
1768 * doc/posix-functions/dup2.texi: Mention the Linux bug.
1769 Reported by Simon Josefsson.
1771 2009-08-25 Jim Meyering <meyering@redhat.com>
1773 libguestfs uses gnulib
1774 * users.txt: Add libguestfs.
1776 2009-08-24 Eric Blake <ebb9@byu.net>
1778 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
1779 * lib/pipe2.c (includes): Add binary-io.h.
1780 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
1782 2009-08-24 Bruno Haible <bruno@clisp.org>
1784 Tolerate declared but missing accept4 syscall.
1785 * lib/accept4.c (accept4): Invoke original accept4 function first, if
1787 * lib/sys_socket.in.h (accept4): If the function is already present,
1789 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
1790 * modules/accept4 (Makefile.am): Compile accept4.c always.
1791 Reported by Paolo Bonzini and Eric Blake.
1793 2009-08-23 Bruno Haible <bruno@clisp.org>
1795 New module 'accept4'.
1796 * lib/sys_socket.in.h (accept4): New declaration.
1797 * lib/accept4.c: New file.
1798 * m4/accept4.m4: New file.
1799 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1800 GNULIB_ACCEPT4, HAVE_ACCEPT4.
1801 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
1803 * modules/accept4: New file.
1804 * doc/glibc-functions/accept4.texi: Mention the new module.
1806 2009-08-24 Jim Meyering <meyering@redhat.com>
1808 progname: also set global program_invocation_name, when possible
1809 Before this change, a libtool-enabled program that calls glibc's
1810 error function would report the program name as
1811 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
1812 * modules/progname (configure.ac): Check for a declaration of
1813 program_invocation_name.
1814 * lib/progname.c: Include <errno.h>.
1815 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
1816 Set program_invocation_name.
1818 2009-08-23 Bruno Haible <bruno@clisp.org>
1820 * lib/dup3.c: Include <string.h>.
1822 2009-08-23 Bruno Haible <bruno@clisp.org>
1824 * lib/dup3.c (dup3): Test only once whether the system actually exists.
1825 * lib/pipe2.c (pipe2): Likewise.
1826 Suggested by Eric Blake.
1828 2009-08-23 Bruno Haible <bruno@clisp.org>
1830 Tolerate declared but missing dup3 syscall.
1831 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
1832 * lib/unistd.in.h (dup3): If the function is already present,
1834 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
1835 * modules/dup3 (Makefile.am): Compile dup3.c always.
1836 Reported by Paolo Bonzini.
1838 2009-08-23 Bruno Haible <bruno@clisp.org>
1840 Tolerate declared but missing pipe2 syscall.
1841 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
1843 * lib/unistd.in.h (pipe2): If the function is already present,
1845 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
1846 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
1847 Reported by Paolo Bonzini.
1849 2009-08-23 Bruno Haible <bruno@clisp.org>
1851 * lib/pipe2.c (pipe2): Move #ifs inside function.
1853 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
1855 quotearg: document limitations of quote_these_too
1856 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
1857 those limitations are created.
1858 * lib/quotearg.h (set_char_quoting): Document that digits and
1859 letters that are special after backslash are not permitted.
1860 (quotearg_char): Cross-reference set_char_quoting documentation.
1862 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
1864 quotearg: implement custom_quoting_style
1865 * lib/quotearg.c: (struct quoting_options): Add left_quote and
1867 (set_custom_quoting): New public function.
1868 (quotearg_buffer_restyled): Add left_quote and right_quote
1869 arguments, handle them very much like locale quoting, and update
1871 (quotearg_n_custom): New public function.
1872 (quotearg_n_custom_mem): New public function.
1873 (quotearg_custom): New public function.
1874 (quotearg_custom_mem): New public function.
1875 * lib/quotearg.h: Prototype and document new public functions.
1876 (enum quoting_style): For escape_quoting_style and
1877 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
1878 ignored even though they're otherwise like c_quoting_style.
1879 Add custom_quoting_style member and document with comparison to
1880 clocale_quoting_style.
1881 * tests/test-quotearg.c (custom_quotes): New array.
1882 (custom_results): New array.
1883 (main): Extend to test custom quoting.
1885 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
1887 quotearg: fix right quote escaping when it's in quote_these_too
1888 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
1889 quote, be sure to prepend only one backslash.
1890 * tests/test-quotearg.c (use_quote_double_quotes): New function.
1893 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
1895 quotearg-tests: test escaping of embedded locale quotes
1896 * tests/test-quotearg.c (struct result_strings): Add member for
1898 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
1899 (inputs): Add new input.
1900 (results_g): Add expected results.
1901 (flag_results): Likewise.
1902 (locale_results): Likewise.
1903 (compare_strings): Check those.
1905 2009-08-23 Bruno Haible <bruno@clisp.org>
1907 Tests for module 'dup3'.
1908 * modules/dup3-tests: New file.
1909 * tests/test-dup3.c: New file.
1912 * lib/unistd.in.h (dup3): New declaration.
1913 * lib/dup3.c: New file.
1914 * m4/dup3.m4: New file.
1915 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
1917 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
1918 * modules/dup3: New file.
1919 * doc/glibc-functions/dup3.texi: Mention the new module.
1921 2009-08-23 Bruno Haible <bruno@clisp.org>
1923 Tweak the dup2 test.
1924 * tests/test-dup2.c (main): Create the test file empty. Verify that an
1925 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
1926 the test file is still empty. Fix argument order of lseek.
1928 2009-08-23 Bruno Haible <bruno@clisp.org>
1930 Avoid test link errors when the modules getopt-gnu, gettext are used.
1931 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
1932 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1934 2009-08-23 Bruno Haible <bruno@clisp.org>
1936 Fix getdtablesize() on mingw.
1937 * lib/getdtablesize.c (getdtablesize): Implement differently.
1938 * lib/unistd.in.h (getdtablesize): Improve comment.
1940 2009-08-23 Bruno Haible <bruno@clisp.org>
1942 New module 'mkostemp'.
1943 Based on Ulrich Drepper's 2007-08-10 change in glibc.
1944 * lib/stdlib.in.h (mksotemp): New declaration.
1945 * lib/mkostemp.c: New file, from glibc with modifications.
1946 * lib/tempname.h (GT_FILE): Remove outdated comment.
1947 (gen_tempname): Add flags argument.
1948 * lib/tempname.c (__GT_BIGFILE): Remove macro.
1949 (__GT_FILE): Map to 1.
1950 (small_open, large_open): Remove macros.
1951 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
1952 * lib/mkstemp.c (mkstemp): Update.
1953 * lib/mkdtemp.c (mkdtemp): Likewise.
1954 * m4/mkostemp.m4: New file.
1955 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
1957 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
1959 * modules/mkostemp: New file, based on modules/mkstemp.
1960 * doc/glibc-functions/mkostemp.texi: Mention the new module.
1961 * NEWS: Mention the change.
1963 2009-08-23 Bruno Haible <bruno@clisp.org>
1965 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
1966 Reported by Eric Blake.
1968 2009-08-23 Bruno Haible <bruno@clisp.org>
1970 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
1971 Reported by Eric Blake.
1973 2009-08-23 Bruno Haible <bruno@clisp.org>
1975 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
1976 * modules/pipe2 (Depends-on): Likewise.
1978 2009-08-23 Eric Blake <ebb9@byu.net>
1980 fcntl-h: add O_TTY_INIT support
1981 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
1982 * tests/test-fcntl-h.c (o): Test it.
1983 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1985 fcntl-h: rename from fcntl, in preparation for fcntl(2)
1986 * modules/fcntl: Move <fcntl.h> header replacement...
1987 * modules/fcntl-h: ...to new name, so as not to collide with
1988 like-named function.
1989 * tests/test-fcntl.c: Rename...
1990 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
1991 * modules/fcntl-tests: Rename...
1992 * modules/fcntl-h-tests: ...to this. Update test file name.
1993 * modules/chdir-long (Depends-on): Update clients.
1994 * modules/chdir-safer (Depends-on): Likewise.
1995 * modules/fcntl-safer (Depends-on): Likewise.
1996 * modules/fts (Depends-on): Likewise.
1997 * modules/mkancesdirs (Depends-on): Likewise.
1998 * modules/mkdir-p (Depends-on): Likewise.
1999 * modules/open (Depends-on): Likewise.
2000 * modules/savewd (Depends-on): Likewise.
2001 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
2002 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2004 2009-08-22 Bruno Haible <bruno@clisp.org>
2006 * modules/binary-io (License): Relicense under LGPL.
2007 * modules/pipe2 (License): Likewise.
2009 2009-08-22 Bruno Haible <bruno@clisp.org>
2011 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
2013 * lib/pipe-filter-gi.c (filter_init): Likewise.
2014 Reported by Eric Blake.
2016 2009-08-22 Bruno Haible <bruno@clisp.org>
2018 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
2019 * modules/pipe (Depends-on): Add pipe2.
2021 2009-08-22 Bruno Haible <bruno@clisp.org>
2023 Tests for module 'pipe2'.
2024 * modules/pipe2-tests: New file.
2025 * tests/test-pipe2.c: New file.
2028 * lib/unistd.in.h (pipe2): New declaration.
2029 * lib/pipe2.c: New file.
2030 * m4/pipe2.m4: New file.
2031 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
2033 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
2034 * modules/pipe2: New file.
2035 * doc/glibc-functions/pipe2.texi: Mention the new module.
2037 2009-08-22 Bruno Haible <bruno@clisp.org>
2039 Reference some new glibc functions.
2040 * doc/glibc-functions/accept4.texi: New file.
2041 * doc/glibc-functions/dup3.texi: New file.
2042 * doc/glibc-functions/mkostemp.texi: New file.
2043 * doc/glibc-functions/pipe2.texi: New file.
2044 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
2045 (Glibc sys/socket.h): Refer to accept4.
2046 (Glibc unistd.h): Refer to dup3, pipe2.
2047 Reported by Eric Blake.
2049 2009-08-22 Jim Meyering <meyering@redhat.com>
2050 Bruno Haible <bruno@clisp.org>
2052 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
2053 This makes it so packages using automake-1.11's silent-rules option
2054 can print e.g., a single "GEN configmake.h" line, rather than
2055 the 30+ statements that perform the job. If you want to see the
2056 actual commands, you can still run "make V=1".
2057 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
2058 so that make output is abbreviated when those variables are defined
2060 * modules/argz: Likewise.
2061 * modules/arpa_inet: Likewise.
2062 * modules/byteswap: Likewise.
2063 * modules/configmake: Likewise.
2064 * modules/dirent: Likewise.
2065 * modules/errno: Likewise.
2066 * modules/fcntl: Likewise.
2067 * modules/float: Likewise.
2068 * modules/fnmatch: Likewise.
2069 * modules/getopt-posix: Likewise.
2070 * modules/glob: Likewise.
2071 * modules/iconv_open: Likewise.
2072 * modules/inttypes: Likewise.
2073 * modules/localcharset: Likewise.
2074 * modules/locale: Likewise.
2075 * modules/math: Likewise.
2076 * modules/netdb: Likewise.
2077 * modules/netinet_in: Likewise.
2078 * modules/poll: Likewise.
2079 * modules/posix_spawnp-tests: Likewise.
2080 * modules/sched: Likewise.
2081 * modules/search: Likewise.
2082 * modules/selinux-h: Likewise.
2083 * modules/signal: Likewise.
2084 * modules/spawn: Likewise.
2085 * modules/stdarg: Likewise.
2086 * modules/stdbool: Likewise.
2087 * modules/stddef: Likewise.
2088 * modules/stdint: Likewise.
2089 * modules/stdio: Likewise.
2090 * modules/stdlib: Likewise.
2091 * modules/string: Likewise.
2092 * modules/strings: Likewise.
2093 * modules/sys_file: Likewise.
2094 * modules/sys_ioctl: Likewise.
2095 * modules/sys_select: Likewise.
2096 * modules/sys_socket: Likewise.
2097 * modules/sys_stat: Likewise.
2098 * modules/sys_time: Likewise.
2099 * modules/sys_times: Likewise.
2100 * modules/sys_utsname: Likewise.
2101 * modules/sys_wait: Likewise.
2102 * modules/sysexits: Likewise.
2103 * modules/time: Likewise.
2104 * modules/unistd: Likewise.
2105 * modules/wchar: Likewise.
2106 * modules/wctype: Likewise.
2108 2009-08-22 Jim Meyering <meyering@redhat.com>
2110 announce-gen: detect write failure
2111 * build-aux/announce-gen: Add Coda at end.
2112 Remove equivalent-but-more-verbose block at top.
2114 2009-08-19 Akim Demaille <demaille@gostai.com>
2116 bootstrap: --help to stdout.
2117 * bootstrap (usage): Don't send --help to stderr.
2118 Use a here doc instead of a long string.
2120 2009-08-21 Eric Blake <ebb9@byu.net>
2122 test-popen-safer: split from test-popen
2123 * tests/test-popen.c (main): Move...
2124 * tests/test-popen.h: ...into new file.
2125 * tests/test-popen-safer2.c: New file.
2126 * modules/popen-tests (Files): Add test-popen.h.
2127 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
2128 Suggested by Bruno Haible.
2130 test-fcntl-safer: split from test-open
2131 * tests/test-open.c (main): Move...
2132 * tests/test-open.h: ...into new file.
2133 * tests/test-fcntl-safer.c: New file.
2134 * modules/open-tests (Files): Add test-open.h.
2135 * modules/fcntl-safer-tests: New file.
2136 Suggested by Bruno Haible.
2138 test-fopen-safer: split from test-fopen
2139 * tests/test-fopen.c (main): Move...
2140 * tests/test-fopen.h: ...into new file.
2141 * tests/test-fopen-safer.c: New file.
2142 * modules/fopen-tests (Files): Add test-fopen.h.
2143 * modules/fopen-safer-tests: New file.
2144 Suggested by Bruno Haible.
2146 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
2148 popen-safer: test O_CLOEXEC at run-time.
2149 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
2151 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
2153 fcntl: move more flags to the header
2154 * lib/cloexec.c: Do not define FD_CLOEXEC here.
2155 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
2156 * lib/fcntl.in.h: Do both things here.
2158 2009-08-21 Jim Meyering <meyering@redhat.com>
2160 consistently remove $@-t before redirecting to it
2161 * modules/argz: Remove $@-t and $@ before redirecting to the former.
2162 * modules/alloca-opt: Likewise.
2163 * modules/byteswap: Likewise.
2164 * modules/fnmatch: Likewise.
2165 * modules/getopt-posix: Likewise.
2166 * modules/glob: Likewise.
2167 * modules/poll: Likewise.
2168 * modules/posix_spawnp-tests: Likewise.
2169 * modules/sys_socket: Likewise.
2170 * modules/sysexits: Likewise.
2172 2009-08-21 Eric Blake <ebb9@byu.net>
2174 popen: simplify access to original popen
2175 * lib/popen.c (rpl_popen): No need to worry about popen being a
2177 Reported by Bruno Haible.
2179 2009-08-20 Eric Blake <ebb9@byu.net>
2181 build: avoid some compiler warnings
2182 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
2183 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
2185 (new_exclude_segment, excluded_file_pattern_p)
2186 (excluded_file_name_p): Reduce scope.
2187 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
2188 old-style declaration.
2190 2009-08-20 Simon Josefsson <simon@josefsson.org>
2192 * tests/test-exclude1.sh: Handle Windows EOL.
2193 * tests/test-exclude2.sh: Likewise.
2194 * tests/test-exclude3.sh: Likewise.
2195 * tests/test-exclude4.sh: Likewise.
2196 * tests/test-exclude5.sh: Likewise.
2197 * tests/test-exclude6.sh: Likewise.
2198 * tests/test-exclude7.sh: Likewise.
2200 2009-08-19 Akim Demaille <demaille@gostai.com>
2202 bootstrap: find sha1sum when named gsha1sum.
2203 * bootstrap (find_tool): New.
2207 2009-08-20 Jim Meyering <meyering@redhat.com>
2209 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
2210 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
2211 expression that converts "." in a file name to "\." in the resulting
2212 regexp. Start with a dummy statement, so that prior shell variable
2213 definitions are expanded portably. Reported by Simon Josefsson.
2215 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
2217 Fix polling for writeability of a screen buffer.
2218 * lib/poll.c: Distinguish input and screen buffers for the
2219 Win32 implementation.
2220 * lib/select.c: Likewise.
2222 2009-08-19 Eric Blake <ebb9@byu.net>
2224 popen-safer: prevent popen from clobbering std descriptors
2225 * modules/popen-safer: New file.
2226 * lib/popen-safer.c: Likewise.
2227 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
2228 * lib/stdio--.h (popen): Provide override.
2229 * lib/stdio-safer.h (popen_safer): Provide declaration.
2230 * tests/test-popen.c (includes): Partially test this.
2231 * modules/popen-safer-tests: New file, for more tests.
2232 * tests/test-popen-safer.c: Likewise.
2233 * MODULES.html.sh (file stream based Input/Output): Mention it.
2235 tests: test some of the *-safer modules
2236 * modules/fopen-safer (Depends-on): Add fopen.
2237 * modules/fcntl-safer (Depends-on): Add fcntl.
2238 * modules/stdlib-safer (Depends-on): Add stdlib.
2239 (configure.ac): Set indicator.
2240 * modules/unistd-safer (configure.ac): Likewise.
2241 * modules/tmpfile-safer (configure.ac): Likewise.
2242 (Depends-on): Add tmpfile.
2243 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
2245 * tests/test-fopen.c (includes): Test safer versions when they are
2247 * tests/test-open.c (includes): Likewise.
2249 popen: fix cygwin 1.5 bug when stdin closed
2250 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
2251 * modules/popen: New file.
2252 * modules/popen-tests: Likewise.
2253 * tests/test-popen.c: Likewise.
2254 * m4/popen.m4: Likewise.
2255 * lib/popen.c: Likewise.
2256 * lib/stdio.in.h (popen): New declaration.
2257 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
2258 * modules/stdio (Makefile.am): Likewise.
2259 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
2261 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
2263 maint.mk: give full control over update-copyright exclusions
2264 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
2265 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
2266 (update-copyright): Don't force inclusion of top-level
2267 ChangeLog. Don't force exclusion of all COPYING files, but make
2268 them the default exclusion instead.
2270 2009-08-16 Bruno Haible <bruno@clisp.org>
2272 Fix test failures on Solaris 10.
2273 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
2274 tests when Solaris iconv() is used.
2275 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2276 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2277 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2278 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2279 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2281 2009-08-16 Bruno Haible <bruno@clisp.org>
2283 Fix test failures on Solaris 10.
2284 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
2285 'tr' program and pass it as first argument.
2286 * tests/test-pipe-filter-gi1.sh: Likewise.
2287 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
2288 program as first argument.
2289 * tests/test-pipe-filter-gi1.c (main): Likewise.
2291 2009-08-16 Eric Blake <ebb9@byu.net>
2293 fpurge: fix previous commits
2294 * modules/fpurge (Makefile.am): Make replacement conditional,
2295 partially reverting 2007-04-29 change; missed in previous
2297 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
2300 2009-08-16 Bruno Haible <bruno@clisp.org>
2302 Clarify fpurge's effect on the file position.
2303 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
2304 * tests/test-fpurge.c (main): Make a second pass for checking the file
2307 2009-08-16 Bruno Haible <bruno@clisp.org>
2309 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
2310 declaration of fpurge is missing.
2311 * tests/test-fpurge.c (main): Check that the file has not more contents
2312 than expected. Close the file before removing it.
2314 2009-08-15 Eric Blake <ebb9@byu.net>
2316 fpurge: don't wrap working cygwin implementation
2317 * lib/fpurge.c (fpurge): Fix comment typo.
2318 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
2319 1.7 to avoid replacement.
2320 * tests/test-fpurge.c (main): Enhance test.
2322 2009-08-15 Eric Blake <ebb9@byu.net>
2323 and Jim Meyering <meyering@redhat.com>
2325 test-update-copyright: skip if perl is insufficient
2326 * tests/test-update-copyright.sh: Failure to run maintainer tool
2327 should not cause testsuite failure on cygwin 1.5.
2329 2009-08-14 Eric Blake <ebb9@byu.net>
2331 doc: mention more functions added in cygwin 1.7.0
2332 * doc/posix-headers/limits.texi (limits.h): Update for recent
2334 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
2335 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2336 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
2337 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
2338 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
2340 2009-08-14 Eric Blake <ebb9@byu.net>
2342 maint.mk: simplify update-copyright rule
2343 * top/maint.mk (update-copyright-local): Delete, and document how
2344 to do it in cfg.mk instead.
2345 (update-copyright-exclude-regexp): Delete, and document how to do
2346 it in .x-update-copyright instead.
2347 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
2350 2009-08-14 Bruno Haible <bruno@clisp.org>
2352 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
2354 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2356 maint.mk: support update-copyright-env
2357 * top/maint.mk (update-copyright-env): Define place-holder.
2358 (update-copyright): Expand $(update-copyright-env) before
2359 invoking update-copyright.
2361 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2363 update-copyright: implement forced reformatting
2364 * build-aux/update-copyright: Implement and document
2365 UPDATE_COPYRIGHT_FORCE.
2366 * tests/test-update-copyright.sh: Test it.
2368 2009-08-14 Eric Blake <ebb9@byu.net>
2369 and Bruno Haible <bruno@clisp.org>
2371 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
2372 * tests/test-locale.c: Revert previous patch related to NULL.
2373 * tests/test-stdio.c: Likewise.
2374 * tests/test-stdlib.c: Likewise.
2375 * tests/test-string.c: Likewise.
2376 * tests/test-unistd.c: Likewise.
2377 * modules/time-tests (Depends-on): Add verify.
2378 * modules/wchar-tests (Depends-on): Likewise.
2379 * tests/test-time.c: Test for NULL compliance.
2380 * tests/test-wchar.c: Likewise.
2381 * modules/locale (Depends-on): Add stddef.
2382 * modules/stdio (Depends-on): Likewise.
2383 * modules/stdlib (Depends-on): Likewise.
2384 * modules/string (Depends-on): Likewise.
2385 * modules/time (Depends-on): Likewise.
2386 * modules/unistd (Depends-on): Likewise.
2387 * modules/wchar (Depends-on): Likewise.
2388 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
2389 * lib/stdlib.in.h (includes): Likewise.
2390 * lib/string.in.h (includes): Likewise.
2391 * lib/time.in.h (includes): Likewise.
2392 * lib/unistd.in.h (includes): Likewise.
2393 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
2395 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2396 * m4/stddef_h.m4: New file.
2397 * modules/stddef: Likewise.
2398 * lib/stddef.in.h: Likewise.
2399 * modules/stddef-tests: Likewise.
2400 * tests/test-stddef.c: Likewise.
2401 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
2402 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
2403 * doc/posix-headers/locale.texi (locale.h): Likewise.
2404 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
2405 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2406 * doc/posix-headers/string.texi (string.h): Likewise.
2407 * doc/posix-headers/time.texi (time.h): Likewise.
2408 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
2409 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
2411 2009-08-14 Eric Blake <ebb9@byu.net>
2413 doc: improve git diff of texinfo files
2414 * .gitattributes: Add rule for *.texi files, with hint on how to
2416 Copied from m4, and based on a report by Bruno Haible.
2418 2009-08-14 Bruno Haible <bruno@clisp.org>
2420 Disable multithread support by default on Cygwin 1.5.x for real.
2421 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
2423 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2425 update-copyright: much ado about intervals
2426 * build-aux/update-copyright: Implement and document
2427 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
2428 of copyright year intervals.
2429 Also, document UPDATE_COPYRIGHT_YEAR.
2430 * tests/test-update-copyright.sh: Test it.
2432 update-copyright: convert 2-digit to 4-digit years
2433 * build-aux/update-copyright: Implement and document.
2434 * tests/test-update-copyright.sh: Update.
2436 2009-08-14 Jim Meyering <meyering@redhat.com>
2438 test-exclude: avoid coreutils "make check" failure
2439 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
2440 just as in test-argmatch.c.
2442 2009-08-13 Eric Blake <ebb9@byu.net>
2444 test-dup2: fix bad assumption
2445 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
2446 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
2448 test-version-etc: fix CRLF portability issue
2449 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
2451 * tests/test-argp-version-etc-1.sh: Likewise.
2453 getopt: update client modules
2454 * modules/argp (Depends-on): Use getopt-gnu.
2455 * modules/git-merge-changelog (Depends-on): Likewise.
2456 * modules/long-options (Depends-on): Likewise.
2457 * modules/xstrtol (Depends-on): Likewise.
2459 2009-08-13 Simon Josefsson <simon@josefsson.org>
2461 * tests/test-version-etc.sh: Don't fail on different
2462 project/version. Don't fail on CRLF differences. Rewrite to use
2463 multiple -e instead of multiple sed forks, suggested by Eric Blake
2465 * tests/test-argp-version-etc-1.sh: Likewise.
2467 2009-08-13 Simon Josefsson <simon@josefsson.org>
2469 * tests/test-version-etc.sh: Don't fail on different
2472 2009-08-12 Bruno Haible <bruno@clisp.org>
2474 Tests for modules 'getopt-posix', 'getopt-gnu'.
2475 * modules/getopt-posix-tests: New file.
2476 * tests/test-getopt.c: New file.
2477 * tests/test-getopt.h: New file.
2478 * tests/test-getopt_long.h: New file.
2480 New modules 'getopt-posix', 'getopt-gnu'.
2481 * modules/getopt-gnu: New file, renamed from modules/getopt.
2482 * modules/getopt-posix: New file.
2483 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
2484 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
2485 (gl_GETOPT): Remove macro.
2486 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
2487 Disable the test against BSD systems that declare optreset. Test
2488 against mingw bug. Test against lack of support of optional arguments
2490 * doc/glibc-headers/getopt.texi: Update module name and list of
2492 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
2493 'getopt-gnu' and more portability problems.
2494 * NEWS: Mention the changes.
2496 2009-08-12 Bruno Haible <bruno@clisp.org>
2498 Ensure that optarg etc. get declared by <unistd.h>.
2499 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
2500 AC_USE_SYSTEM_EXTENSIONS.
2501 * modules/getopt (Depends-on): Add 'extensions'.
2503 2009-08-12 Bruno Haible <bruno@clisp.org>
2505 Avoid test link errors.
2506 * modules/pipe-filter-ii-tests (Makefile.am): Define
2507 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
2508 * modules/pipe-filter-gi-tests (Makefile.am): Define
2509 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
2510 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2512 2009-08-12 Bruno Haible <bruno@clisp.org>
2514 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
2515 gl_GETOPT_SUBSTITUTE before.
2516 (gl_GETOPT): Use it.
2517 * m4/argp.m4 (gl_ARGP): Update.
2518 Reported by Sergey Poznyakoff.
2520 * m4/getopt.m4: Reorder macros.
2521 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
2522 (gl_GETOPT_SUBSTITUTE): Remove macro.
2524 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
2526 Minor improvement in gitlog-to-changelog
2528 * build-aux/gitlog-to-changelog: New option `--format' makes
2529 output format string configurable.
2531 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
2533 Optimize exclude: use hash tables for non-wildcard patterns.
2535 * lib/exclude.c: Include hash.h and mbuiter.h
2536 (struct exclude_pattern, exclude_segment): New data types.
2537 (struct exclude): Rewrite.
2538 (fnmatch_pattern_has_wildcards): New function.
2539 (new_exclude_segment, free_exclude_segment): New functions.
2540 (excluded_file_pattern_p, excluded_file_name_p): New functions.
2541 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
2542 * lib/exclude.h (is_fnmatch_pattern): New prototype.
2543 * modules/exclude: Depend on hash and mbuiter.
2545 * modules/exclude-tests: New file.
2546 * tests/test-exclude.c: New file.
2547 * tests/test-exclude1.sh: New file.
2548 * tests/test-exclude2.sh: New file.
2549 * tests/test-exclude3.sh: New file.
2550 * tests/test-exclude4.sh: New file.
2551 * tests/test-exclude5.sh: New file.
2552 * tests/test-exclude6.sh: New file.
2553 * tests/test-exclude7.sh: New file.
2555 2009-08-12 Bruno Haible <bruno@clisp.org>
2557 Ensure that getopt() gets declared by <unistd.h>.
2558 * lib/unistd.in.h: Conditionally include getopt.h.
2559 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
2560 Set GNULIB_UNISTD_H_GETOPT.
2561 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2562 GNULIB_UNISTD_H_GETOPT.
2563 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
2565 2009-08-12 Bruno Haible <bruno@clisp.org>
2568 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
2569 gl_replace_getopt instead of GETOPT_H.
2571 2009-08-12 Bruno Haible <bruno@clisp.org>
2573 * m4/getopt.m4: Add comments.
2575 2009-08-12 Bruno Haible <bruno@clisp.org>
2577 Disable multithread support by default on Cygwin 1.5.x.
2578 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
2579 set gl_use_threads=no if not specified otherwise.
2581 2009-08-11 Bruno Haible <bruno@clisp.org>
2583 Avoid compilation error on NetBSD 5.0.
2584 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
2585 * tests/test-stdio.c: Likewise.
2586 * tests/test-stdlib.c: Likewise.
2587 * tests/test-string.c: Likewise.
2588 * tests/test-unistd.c: Likewise.
2589 Reported by Greg Troxel <gdt@ir.bbn.com>
2590 at <https://savannah.gnu.org/support/?106973>.
2592 2009-08-11 Bruno Haible <bruno@clisp.org>
2594 * modules/dup2-tests (Depends-on): Remove close.
2596 Undo 2009-07-19 commit.
2597 * modules/acl-tests (Depends-on): Remove close.
2598 * modules/binary-io-tests (Depends-on): Likewise.
2599 * modules/closein-tests (Depends-on): Likewise.
2600 * modules/flock-tests (Depends-on): Likewise.
2601 * modules/fsync-tests (Depends-on): Likewise.
2602 * modules/lseek-tests (Depends-on): Likewise.
2603 * modules/pipe-tests (Depends-on): Likewise.
2604 * modules/posix_spawn-tests (Depends-on): Likewise.
2605 * modules/posix_spawnp-tests (Depends-on): Likewise.
2606 * modules/stat-time-tests (Depends-on): Likewise.
2607 * modules/yesno-tests (Depends-on): Likewise.
2609 2009-08-10 Bruno Haible <bruno@clisp.org>
2611 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
2613 2009-08-10 Bruno Haible <bruno@clisp.org>
2616 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
2618 2009-08-10 Bruno Haible <bruno@clisp.org>
2620 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
2621 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
2622 not only the first time.
2623 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
2624 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
2625 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
2626 is 1, not only the the first time.
2628 2009-08-10 Bruno Haible <bruno@clisp.org>
2630 Make it possible to use module 'gethostname' without module 'close'.
2631 * lib/unistd.in.h (close): Evoke a link error only if
2632 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
2633 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2634 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2635 * modules/unistd (Makefile.am): Substitute
2636 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2637 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
2638 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
2639 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
2640 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2641 * modules/sys_ioctl (Makefile.am): Substitute
2642 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2643 * modules/socket (configure.ac): On native Windows, set
2644 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
2645 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2646 Reported by Sam Steingold <sds@gnu.org>.
2648 2009-08-10 Bruno Haible <bruno@clisp.org>
2650 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
2651 * modules/ioctl (configure.ac): Likewise.
2653 2009-08-10 Bruno Haible <bruno@clisp.org>
2655 Avoid collision between gnulib wrapper and libintl wrapper.
2656 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
2657 already defined in intl/printf.c.
2658 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
2659 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
2661 2009-08-09 Bruno Haible <bruno@clisp.org>
2663 Make <sys/select.h> really self-contained, also on Solaris 10.
2664 * lib/sys_select.in.h: Include <string.h>.
2665 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
2667 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
2668 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
2669 Reported by Jim Meyering.
2671 2009-08-09 Bruno Haible <bruno@clisp.org>
2673 Avoid warnings from 'aclocal' that are due to a use of macro name
2674 AM_XGETTEXT_OPTION that is not defined in automake.
2675 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
2677 * modules/error (configure.ac): Likewise.
2678 * modules/propername (configure.ac): Likewise.
2679 * modules/vasprintf (configure.ac): Likewise.
2680 * modules/verror (configure.ac): Likewise.
2681 * modules/xprintf (configure.ac): Likewise.
2682 * modules/xvasprintf (configure.ac): Likewise.
2684 2009-08-08 Bruno Haible <bruno@clisp.org>
2686 Avoid compilation error in C++ mode.
2687 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
2688 Reported by Sam Steingold <sds@gnu.org>.
2690 2009-08-08 Bruno Haible <bruno@clisp.org>
2692 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
2693 for the various Unix platforms.
2694 * doc/posix-headers/limits.texi: Update platforms list regarding
2696 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2698 2009-08-07 Jim Meyering <meyering@redhat.com>
2700 selinux-at: fix typo in a comment
2701 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
2702 Spotted by Paolo Bonzini.
2704 selinux-at: remove redundant m4 code, add documentation
2705 * modules/selinux-at (configure.ac): Remove redundant code.
2706 LIB_SELINUX is already set via the dependent module, selinux-h.
2707 (Include): Add quotes around selinux-at.h.
2708 * lib/selinux-at.h: Add documentation.
2709 Reported by Bruno Haible in
2710 http://marc.info/?l=gnulib-bug&m=124958988300749
2712 2009-08-07 Bruno Haible <bruno@clisp.org>
2714 Avoid link error on MacOS X 10.3 and 10.4.
2715 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
2717 * lib/argp-pv.c (argp_program_version): Likewise.
2718 Reported by Simon Josefsson.
2720 2009-08-07 Simon Josefsson <simon@josefsson.org>
2722 * tests/test-version-etc.sh: Use $EXEEXT.
2724 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
2726 update-copyright: update documentation to point to maint.mk
2727 * build-aux/update-copyright: Here.
2729 2009-08-06 Jim Meyering <meyering@redhat.com>
2731 maint.mk: support update-copyright-local
2732 * top/maint.mk (update-copyright-local): Define place-holder.
2733 (update-copyright): Depend on $(update-copyright-local).
2735 2009-08-06 Jim Meyering <meyering@redhat.com>
2737 selinux-at: new module
2738 Initially written for coreutils, this module will soon be
2739 used by findutils, too.
2740 * MODULES.html.sh [Misc]: Add selinux-at.
2741 * lib/selinux-at.h: New file, from coreutils.
2742 * lib/selinux-at.c: Likewise.
2743 * modules/selinux-at: Likewise.
2744 (License): Change from LGPL to GPL, since it depends
2745 on the GPL'd openat module.
2748 * README: Remove references to cogito.
2749 Remove cvs-repo-updating instructions from 2007.
2750 Don't imply that CVS is better if you have limited disk space.
2752 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2754 update-copyright: support C-style comments
2755 * build-aux/update-copyright: Implement and document.
2756 * tests/test-update-copyright.sh: Test.
2758 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2760 update-copyright: support omitted "(C)"
2761 * build-aux/update-copyright: Implement and document. Also,
2762 allow variable whitespace before "(C)".
2763 * tests/test-update-copyright.sh: Test.
2765 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2767 update-copyright: don't trip on non-FSF copyright statements
2768 * build-aux/update-copyright: Fix so that the first correctly
2769 formatted FSF copyright statement is recognized no matter what
2770 appears before it. Update documentation.
2771 * tests/test-update-copyright.sh: Test that.
2773 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2775 update-copyright: clean up code a little
2776 * build-aux/update-copyright: Append "_re" to the name of any
2777 variable holding a regular expression.
2778 Replace "old" and "new" with "stmt" in variable names.
2779 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
2781 Format code more consistently.
2783 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2785 update-copyright-tests: improve portability
2786 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
2787 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
2789 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
2791 update-copyright: support @copyright{} and ©
2792 * build-aux/update-copyright: Implement and document.
2793 * tests/test-update-copyright.sh: Test.
2795 2009-08-04 Jim Meyering <meyering@redhat.com>
2797 update-copyright-tests: correctly test EOL=\r\n handling
2798 * tests/test-update-copyright.sh: Put \r at the end of some lines
2799 for the dos-eol tests. Based on a patch by Joel E. Denny.
2801 maint.mk: make update-copyright exclusion list more configurable
2802 * top/maint.mk (update-copyright): Default to excluding COPYING,
2803 but allow an override, in case someone does want to update that file.
2805 maint.mk: don't update copyright date in COPYING
2806 * top/maint.mk (update-copyright): Exclude COPYING.
2808 maint.mk: add a copyright-updating rule
2809 * top/maint.mk (update-copyright): New rule.
2810 Derived from coreutils/Makefile.am.
2812 update-copyright: rename some variables
2813 * build-aux/update-copyright: Rename a few variables for clarity.
2814 Tweak syntax. List Joel E. Denny as coauthor.
2816 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
2818 update-copyright: fix bug for 2-digit last year and add tests
2819 * build-aux/update-copyright: Fix bug.
2820 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
2822 * modules/update-copyright-tests: New
2823 * tests/test-update-copyright.sh: New.
2825 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
2827 update-copyright: handle leading tabs in line prefix
2828 * build-aux/update-copyright: Count leading tabs as 8 spaces
2829 when computing margin. This helps with the formatting of
2830 ChangeLogs, for example.
2831 Fix documentation a little.
2833 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
2835 update-copyright: support EOL=\r\n
2836 * build-aux/update-copyright: Implement that.
2838 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
2840 update-copyright: automatically format copyright statements
2841 * build-aux/update-copyright: Implement that.
2842 Also, be a little more predictable and safer by always failing
2843 when the full copyright format is not perfectly recognized as an
2844 unbroken whole. Discussed at
2845 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
2846 Rewrite documentation.
2848 2009-08-03 Bruno Haible <bruno@clisp.org>
2850 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
2852 2009-08-02 Bruno Haible <bruno@clisp.org>
2854 Tests for module 'uname'.
2855 * modules/uname-tests: New file.
2856 * tests/test-uname.c: New file.
2859 * lib/uname.c: New file.
2860 * m4/uname.m4: New file.
2861 * modules/uname: New file.
2862 * doc/posix-functions/uname.texi: Mention the new module.
2864 2009-08-02 Bruno Haible <bruno@clisp.org>
2866 Tests for module 'sys_utsname'.
2867 * modules/sys_utsname-tests: New file.
2868 * tests/test-sys_utsname.c: New file.
2870 New module 'sys_utsname'.
2871 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
2872 * m4/sys_utsname_h.m4: New file.
2873 * modules/sys_utsname: New file.
2874 * doc/posix-headers/sys_utsname.texi: Mention the new module.
2876 2009-08-02 Bruno Haible <bruno@clisp.org>
2878 Implicitly initialize the sockets library.
2879 * lib/gethostname.c: Include sockets.h.
2880 (rpl_gethostname): Invoke gl_sockets_startup.
2881 * lib/socket.c: Include sockets.h.
2882 (rpl_socket): Invoke gl_sockets_startup.
2883 * modules/gethostname (Depends-on): Add sockets.
2884 * modules/socket (Depends-on): Likewise.
2885 * tests/test-poll.c: Don't include sockets.h.
2886 (main): Don't invoke gl_sockets_startup.
2887 * tests/test-select.c: Don't include sockets.h.
2888 (main): Don't invoke gl_sockets_startup.
2890 2009-08-02 Bruno Haible <bruno@clisp.org>
2892 Allow multiple calls to gl_sockets_startup.
2893 * lib/sockets.c (initialized_sockets_version): New variable.
2894 (gl_sockets_startup): Do nothing if already called for this or a higher
2896 (gl_sockets_cleanup): Reset initialized_sockets_version.
2898 2009-08-03 Simon Josefsson <simon@josefsson.org>
2900 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
2901 different project/version.
2903 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
2904 Bruno Haible <bruno@clisp.org>
2906 Tests for module 'pipe-filter-gi'.
2907 * modules/pipe-filter-gi-tests: New file.
2908 * tests/test-pipe-filter-gi1.sh: New file.
2909 * tests/test-pipe-filter-gi1.c: New file.
2910 * tests/test-pipe-filter-gi2.sh: New file.
2911 * tests/test-pipe-filter-gi2-main.c: New file.
2912 * tests/test-pipe-filter-gi2-child.c: New file.
2914 New module 'pipe-filter-gi'.
2915 * lib/pipe-filter-gi.c: New file.
2916 * modules/pipe-filter-gi: New file.
2918 2009-08-02 Bruno Haible <bruno@clisp.org>
2919 Paolo Bonzini <bonzini@gnu.org>
2921 Tests for module 'pipe-filter-ii'.
2922 * modules/pipe-filter-ii-tests: New file.
2923 * tests/test-pipe-filter-ii1.sh: New file.
2924 * tests/test-pipe-filter-ii1.c: New file.
2925 * tests/test-pipe-filter-ii2.sh: New file.
2926 * tests/test-pipe-filter-ii2-main.c: New file.
2927 * tests/test-pipe-filter-ii2-child.c: New file.
2929 New module 'pipe-filter-ii'.
2930 * lib/pipe-filter.h: New file.
2931 * lib/pipe-filter-ii.c: New file.
2932 * lib/pipe-filter-aux.h: New file.
2933 * modules/pipe-filter-ii: New file.
2935 2009-08-02 Simon Josefsson <simon@josefsson.org>
2937 * lib/gc-libgcrypt.c: Change copyright to FSF.
2938 * lib/gc-gnulib.c: Likewise.
2940 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
2942 * lib/gethostname.c: Include limits.h.
2944 2009-08-02 Simon Josefsson <simon@josefsson.org>
2945 Bruno Haible <bruno@clisp.org>
2947 Ensure HOST_NAME_MAX as part of the gethostname module.
2948 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
2949 define also HOST_NAME_MAX.
2950 * tests/test-gethostname.c: Include <limits.h>.
2951 (main): Check also HOST_NAME_MAX.
2952 * doc/posix-headers/limits.texi: Document the mingw problem.
2954 2009-08-02 Bruno Haible <bruno@clisp.org>
2956 * lib/gethostname.c (gethostname): Fix handling of large len argument.
2959 2009-03-31 Simon Josefsson <simon@josefsson.org>
2961 * lib/gethostname.c: Add Windows wrapper.
2962 * m4/gethostname.m4: Look for gethostname in -lws2_32.
2963 * modules/gethostname: Depend on sys_socket & errno, for also
2964 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
2965 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
2967 2009-07-31 Jim Meyering <meyering@redhat.com>
2969 getloadavg: fix symbol name in comment
2970 * lib/getloadavg.c: Correct a typo I introduced when adding
2971 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
2972 Matt Kraai spotted the problem.
2974 2009-07-29 Matt Kraai <mkraai@beckman.com>
2976 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
2977 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
2978 code also if ! defined N_NAME_POINTER.
2979 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
2980 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
2981 but the n_name member is a 12-byte array.
2983 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
2985 update-copyright: generalize comment handling
2986 * build-aux/update-copyright: Handle copyright statements
2987 within more comment styles.
2989 Report any file with an external copyright holder or parse failure.
2991 2009-07-29 Jim Meyering <meyering@redhat.com>
2993 mktime: correct setting of REPLACE_MKTIME
2994 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
2996 update-copyright: new module
2997 * modules/update-copyright: New file.
2998 * build-aux/update-copyright: New file.
2999 * MODULES.html.sh (maint+release support): Add update-copyright.
3001 2009-07-27 Bruno Haible <bruno@clisp.org>
3003 Fix compilation error when <ctime> is used and mktime is replaced.
3004 * lib/time.in.h (mktime): New declaration.
3005 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
3006 REPLACE_MKTIME instead of defining mktime in config.h.
3007 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
3008 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
3009 Reported by Ross McFarland <rwmcfa1@neces.com>.
3011 2009-07-27 Bruno Haible <bruno@clisp.org>
3013 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
3014 Reported by Matt Kraai <mkraai@beckman.com>.
3016 2009-07-25 Jim Meyering <meyering@redhat.com>
3018 maint.mk: avoid warnings about missing files
3019 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
3020 diagnostic when .prev-version does not exist.
3021 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
3022 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
3024 Suggestions from Simon Josefsson.
3026 2009-07-25 Bruno Haible <bruno@clisp.org>
3028 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
3029 defined as macros. Needed on QNX 6.4.1.
3030 Reported by Matt Kraai <mkraai@beckman.com>.
3032 2009-07-23 Jim Meyering <meyering@redhat.com>
3034 maint.mk: invoke "make dist" with a working value of XZ_OPT
3035 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
3037 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
3039 Make fseeko.c compile on QNX.
3040 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
3042 2009-07-22 Peter Simons <simons@cryp.to>
3044 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
3045 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
3046 * lib/md4.h: Likewise.
3047 * lib/md5.h: Likewise.
3048 * lib/sha1.h: Likewise.
3049 * lib/sha256.h: Likewise.
3050 * lib/sha512.h: Likewise.
3052 tests-sha1: don't assign literal string to 'char *' variable
3053 * tests/test-sha1.c (main): Declare locals with "const" to match
3054 attributes of the right hand side.
3056 2009-07-21 Eric Blake <ebb9@byu.net>
3058 dup2: fix more mingw problems
3059 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
3061 * doc/posix-functions/dup2.texi (dup2): Document the bug.
3062 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
3063 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
3064 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
3067 2009-07-21 Jim Meyering <meyering@redhat.com>
3069 vc-list-files: avoid failure when /bin/sh is dash
3070 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
3071 On some Debian based systems, /bin/sh is a symlink to dash, and running
3072 this command would omit the "/" following each 'tests' prefix:
3073 dash -x build-aux/vc-list-files -C . tests
3074 That is because bash and dash work differently:
3075 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
3079 2009-07-21 Eric Blake <ebb9@byu.net>
3081 dup2-tests: test previous patch
3082 * modules/dup2-tests: New file.
3083 * tests/test-dup2.c: Likewise.
3084 * tests/test-open.c (main): Avoid unspecified behavior.
3085 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
3088 dup2: work around mingw and cygwin 1.5 bug
3089 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
3090 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3091 * modules/unistd (Makefile.am): Substitute it.
3092 * lib/unistd.in.h (dup2): Declare the replacement.
3093 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
3094 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
3095 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
3096 * modules/execute (Depends-on): Add dup2.
3097 * modules/fseterr (Depends-on): Likewise.
3098 * modules/pipe (Depends-on): Likewise.
3099 * modules/posix_spawn-internal (Depends-on): Likewise.
3101 2009-07-21 Bruno Haible <bruno@clisp.org>
3103 * modules/.gitattributes: New file.
3105 2009-07-20 Bruno Haible <bruno@clisp.org>
3107 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
3110 2009-07-20 Eric Blake <ebb9@byu.net>
3112 test-pipe: make a bit more robust.
3113 * tests/test-pipe.c (myerr): Allow error messages regardless of
3114 what we do to stderr.
3115 (test_pipe): Rearrange to avoid deadlock.
3116 (child_main): Try a larger read, to ensure we avoided deadlock.
3117 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
3118 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
3121 2009-07-19 Jim Meyering <meyering@redhat.com>
3123 fts: avoid false-positive cycle-detection
3124 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
3125 for each new command line argument.
3127 2009-07-19 Bruno Haible <bruno@clisp.org>
3129 Fix build error on mingw with the modules sys_select and unistd.
3130 * modules/acl-tests (Depends-on): Add close.
3131 * modules/binary-io-tests (Depends-on): Likewise.
3132 * modules/closein-tests (Depends-on): Likewise.
3133 * modules/flock-tests (Depends-on): Likewise.
3134 * modules/fsync-tests (Depends-on): Likewise.
3135 * modules/lseek-tests (Depends-on): Likewise.
3136 * modules/pipe-tests (Depends-on): Likewise.
3137 * modules/posix_spawn-tests (Depends-on): Likewise.
3138 * modules/posix_spawnp-tests (Depends-on): Likewise.
3139 * modules/stat-time-tests (Depends-on): Likewise.
3140 * modules/yesno-tests (Depends-on): Likewise.
3142 2009-07-19 Bruno Haible <bruno@clisp.org>
3145 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
3146 macros, not at the compiler macros.
3147 * lib/pipe.c: Likewise.
3148 * lib/execute.c: Likewise.
3149 * lib/spawni.c: Likewise.
3151 2009-07-19 Bruno Haible <bruno@clisp.org>
3153 Fix handling of closed stdin/stdout/stderr on mingw.
3154 * lib/w32spawn.h: Include unistd.h.
3155 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
3156 file descriptor with O_NOINHERIT flag.
3157 (fd_safer_noinherit): New function, based on fd-safer.c.
3158 (dup_safer_noinherit): New function, based on dup-safer.c.
3159 (undup_safer_noinherit): New function.
3160 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
3161 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
3162 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
3163 instead of fd_safer.
3164 * tests/test-pipe.c: Include <windows.h>.
3165 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
3167 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
3169 (test_pipe): Pass an extra argument for disambiguation.
3170 (main): Invoke parent_main or child_main.
3172 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
3175 2009-07-18 Eric Blake <ebb9@byu.net>
3177 test-pipe: fix mingw build
3178 * tests/test-pipe.c (main): Avoid fcntl on mingw.
3180 2009-07-18 Bruno Haible <bruno@clisp.org>
3182 * modules/pipe-tests (Makefile.am): Fix typo.
3184 2009-07-18 Eric Blake <ebb9@byu.net>
3186 error: fix mingw build
3187 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
3188 Reported by Bruno Haible.
3190 error: avoid undefined use of stdout
3191 * lib/error.c (error, error_at_line): Check that fd 1 is open
3192 before flushing stdout. Avoids a crash on cygwin when libsigsegv
3193 is handling faults and the close_stdout module wants to report the
3194 detection of closed stdout as an error.
3196 2009-07-17 Eric Blake <ebb9@byu.net>
3198 pipe: be robust in face of closed fds
3199 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
3200 should cause child to misbehave.
3201 * modules/pipe-tests: New module.
3202 * tests/test-pipe.c: New file.
3203 * tests/test-pipe.sh: New file.
3204 Reported by Akim Demaille.
3206 2009-07-14 Bruno Haible <bruno@clisp.org>
3208 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
3209 Reported by anonymous kc.
3211 2009-07-07 Jim Meyering <meyering@redhat.com>
3213 maint.mk: don't look for translatable strings in *.m4 or *.mk
3214 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
3215 when searching for translatable strings.
3217 2009-07-05 Jim Meyering <meyering@redhat.com>
3219 remove superfluous parentheses in STREQ definition
3220 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
3221 * lib/getugroups.c (STREQ): Likewise.
3222 * lib/fnmatch.c (STREQ): Likewise.
3223 Spotted by Bruno Haible.
3225 2009-07-04 Jim Meyering <meyering@redhat.com>
3227 argv-iter: new module
3228 * MODULES.html.sh: Add argv-iter.
3229 * lib/argv-iter.c, lib/argv-iter.h: New files.
3230 * modules/argv-iter: New file.
3231 * modules/argv-iter-tests: New file.
3232 * tests/test-argv-iter.c: Test it.
3234 2009-07-04 Bruno Haible <bruno@clisp.org>
3237 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
3238 contains more exact copies of a given entry than file2, leave the extra
3239 copies unpaired rather than aborting.
3240 Reported by Eric Blake.
3242 2009-07-02 Bruno Haible <bruno@clisp.org>
3244 Speedup git-merge-changelog for git cherry-pick.
3245 * lib/git-merge-changelog.c (struct entries_mapping): New type.
3246 (entries_mapping_get): New function, extracted from compute_mapping.
3247 (entries_mapping_reverse_get): New function.
3248 (compute_mapping): Add a 'full' argument. Return the result in a
3249 'struct entries_mapping'.
3250 (main): Update. Access the mappings through entries_mapping_get.
3251 Reported by Eric Blake.
3253 2009-07-02 Bruno Haible <bruno@clisp.org>
3255 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
3258 2009-07-02 Bruno Haible <bruno@clisp.org>
3260 Speed up approximate search for matching ChangeLog entries.
3261 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
3262 argument. Call fstrcmp_bounded instead of fstrcmp.
3263 (compute_mapping, try_split_merged_entry, main): Update callers.
3265 2009-07-02 Bruno Haible <bruno@clisp.org>
3267 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
3269 2009-06-30 Bruno Haible <bruno@clisp.org>
3271 Reduce the number of uc_is_cased calls.
3272 * lib/unicase.h (casing_suffix_context_t): Add
3273 'first_char_except_ignorable' field.
3274 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
3275 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
3276 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
3278 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
3279 case-ignorable characters.
3280 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
3281 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
3282 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
3283 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
3284 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
3286 2009-06-30 Bruno Haible <bruno@clisp.org>
3288 Tests for module 'unicase/ignorable'.
3289 * modules/unicase/ignorable-tests: New file.
3290 * tests/unicase/test-ignorable.c: New file, generated by
3293 Tests for module 'unicase/cased'.
3294 * modules/unicase/cased-tests: New file.
3295 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
3296 * tests/unicase/test-predicate-part1.h: New file, derived from
3297 tests/unictype/test-predicate-part1.h.
3298 * tests/unicase/test-predicate-part2.h: New file, same as
3299 tests/unictype/test-predicate-part2.h.
3301 Fix evaluation of "Before C" condition of FINAL_SIGMA.
3302 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
3303 (output_casing_properties): New function.
3305 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
3306 * lib/unicase/cased.c: Include unictype/bitmap.h.
3307 (uc_is_cased): Define through a bitmap lookup.
3308 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
3309 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
3310 (uc_is_case_ignorable): Define through a bitmap lookup.
3311 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
3312 lib/unictype/bitmap.h.
3313 (Depends-on): Add inline. Clean up.
3314 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
3315 lib/unictype/bitmap.h.
3316 (Depends-on): Add inline. Clean up.
3317 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
3319 * tests/unicase/test-u16-tolower.c (main): Likewise.
3320 * tests/unicase/test-u32-tolower.c (main): Likewise.
3322 2009-06-30 Bruno Haible <bruno@clisp.org>
3324 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
3325 * lib/unicase/u16-casemap.c: Likewise.
3326 * lib/unicase/u32-casemap.c: Likewise.
3328 2009-06-29 Bruno Haible <bruno@clisp.org>
3330 Define u32_casefold as a wrapper around u32_ct_casefold.
3331 * lib/unicase/u32-casefold.c: Update.
3332 * modules/unicase/u32-casefold (Depends-on): Add
3333 unicase/u32-ct-casefold, unicase/empty-prefix-context,
3334 unicase/empty-suffix-context. Clean up.
3336 Define u16_casefold as a wrapper around u16_ct_casefold.
3337 * lib/unicase/u16-casefold.c: Update.
3338 * modules/unicase/u16-casefold (Depends-on): Add
3339 unicase/u16-ct-casefold, unicase/empty-prefix-context,
3340 unicase/empty-suffix-context. Clean up.
3342 Define u8_casefold as a wrapper around u8_ct_casefold.
3343 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
3344 * lib/unicase/u8-casefold.c: Update.
3345 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
3346 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3348 Define u32_totitle as a wrapper around u32_ct_totitle.
3349 * lib/unicase/u32-totitle.c: Update.
3350 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
3351 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3353 Define u16_totitle as a wrapper around u16_ct_totitle.
3354 * lib/unicase/u16-totitle.c: Update.
3355 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
3356 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3358 Define u8_totitle as a wrapper around u8_ct_totitle.
3359 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
3361 (FUNC): Delegate to U_CT_TOTITLE.
3362 * lib/unicase/u8-totitle.c: Update.
3363 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
3364 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3366 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
3368 * modules/unicase/u32-tolower (Depends-on): Add
3369 unicase/empty-prefix-context, unicase/empty-suffix-context.
3371 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
3373 * modules/unicase/u16-tolower (Depends-on): Add
3374 unicase/empty-prefix-context, unicase/empty-suffix-context.
3376 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
3377 * modules/unicase/u8-tolower (Depends-on): Add
3378 unicase/empty-prefix-context, unicase/empty-suffix-context.
3380 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
3382 * modules/unicase/u32-toupper (Depends-on): Add
3383 unicase/empty-prefix-context, unicase/empty-suffix-context.
3385 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
3387 * modules/unicase/u16-toupper (Depends-on): Add
3388 unicase/empty-prefix-context, unicase/empty-suffix-context.
3390 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
3391 * modules/unicase/u8-toupper (Depends-on): Add
3392 unicase/empty-prefix-context, unicase/empty-suffix-context.
3394 New module 'unicase/u32-ct-casefold'.
3395 * lib/unicase/u32-ct-casefold.c: New file.
3396 * modules/unicase/u32-ct-casefold: New file.
3398 New module 'unicase/u16-ct-casefold'.
3399 * lib/unicase/u16-ct-casefold.c: New file.
3400 * modules/unicase/u16-ct-casefold: New file.
3402 New module 'unicase/u8-ct-casefold'.
3403 * lib/unicase/u8-ct-casefold.c: New file.
3404 * lib/unicase/u-ct-casefold.h: New file, derived from
3405 lib/unicase/u-casefold.h.
3406 * modules/unicase/u8-ct-casefold: New file.
3408 New module 'unicase/u32-ct-totitle'.
3409 * lib/unicase/u32-ct-totitle.c: New file.
3410 * modules/unicase/u32-ct-totitle: New file.
3412 New module 'unicase/u16-ct-totitle'.
3413 * lib/unicase/u16-ct-totitle.c: New file.
3414 * modules/unicase/u16-ct-totitle: New file.
3416 New module 'unicase/u8-ct-totitle'.
3417 * lib/unicase/u8-ct-totitle.c: New file.
3418 * lib/unicase/u-ct-totitle.h: New file, derived from
3419 lib/unicase/u-totitle.h.
3420 * modules/unicase/u8-ct-totitle: New file.
3422 New module 'unicase/u32-ct-tolower'.
3423 * lib/unicase/u32-ct-tolower.c: New file.
3424 * modules/unicase/u32-ct-tolower: New file.
3426 New module 'unicase/u16-ct-tolower'.
3427 * lib/unicase/u16-ct-tolower.c: New file.
3428 * modules/unicase/u16-ct-tolower: New file.
3430 New module 'unicase/u8-ct-tolower'.
3431 * lib/unicase/u8-ct-tolower.c: New file.
3432 * modules/unicase/u8-ct-tolower: New file.
3434 New module 'unicase/u32-ct-toupper'.
3435 * lib/unicase/u32-ct-toupper.c: New file.
3436 * modules/unicase/u32-ct-toupper: New file.
3438 New module 'unicase/u16-ct-toupper'.
3439 * lib/unicase/u16-ct-toupper.c: New file.
3440 * modules/unicase/u16-ct-toupper: New file.
3442 New module 'unicase/u8-ct-toupper'.
3443 * lib/unicase/u8-ct-toupper.c: New file.
3444 * modules/unicase/u8-ct-toupper: New file.
3446 Add context arguments to u*_casemap functions.
3447 * lib/unicase/unicasemap.h: Include unicase.h.
3448 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
3449 suffix_context arguments.
3450 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
3452 (FUNC): Add prefix_context and suffix_context arguments. Use
3453 uc_is_cased and uc_is_case_ignorable.
3454 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
3455 * lib/unicase/u16-casemap.c: Likewise.
3456 * lib/unicase/u32-casemap.c: Likewise.
3457 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
3458 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3459 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
3460 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3461 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
3462 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3464 New module 'unicase/u32-suffix-context'.
3465 * lib/unicase/u32-suffix-context.c: New file.
3466 * modules/unicase/u32-suffix-context: New file.
3468 New module 'unicase/u16-suffix-context'.
3469 * lib/unicase/u16-suffix-context.c: New file.
3470 * modules/unicase/u16-suffix-context: New file.
3472 New module 'unicase/u8-suffix-context'.
3473 * lib/unicase/u8-suffix-context.c: New file.
3474 * lib/unicase/u-suffix-context.h: New file.
3475 * modules/unicase/u8-suffix-context: New file.
3477 New module 'unicase/empty-suffix-context'.
3478 * lib/unicase/empty-suffix-context.c: New file.
3479 * modules/unicase/empty-suffix-context: New file.
3481 New module 'unicase/u32-prefix-context'.
3482 * lib/unicase/u32-prefix-context.c: New file.
3483 * modules/unicase/u32-prefix-context: New file.
3485 New module 'unicase/u16-prefix-context'.
3486 * lib/unicase/u16-prefix-context.c: New file.
3487 * modules/unicase/u16-prefix-context: New file.
3489 New module 'unicase/u8-prefix-context'.
3490 * lib/unicase/u8-prefix-context.c: New file.
3491 * lib/unicase/u-prefix-context.h: New file.
3492 * lib/unicase/context.h: New file.
3493 * modules/unicase/u8-prefix-context: New file.
3495 New module 'unicase/empty-prefix-context'.
3496 * lib/unicase/empty-prefix-context.c: New file.
3497 * modules/unicase/empty-prefix-context: New file.
3499 New module 'unicase/ignorable'.
3500 * lib/unicase/ignorable.c: New file.
3501 * modules/unicase/ignorable: New file.
3503 New module 'unicase/cased'.
3504 * lib/unicase/caseprop.h: New file.
3505 * lib/unicase/cased.c: New file.
3506 * modules/unicase/cased: New file.
3508 New functions for case mapping of substrings.
3509 * lib/unicase.h (casing_prefix_context_t): New type.
3510 (unicase_empty_prefix_context): New variable.
3511 (u8_casing_prefix_context, u16_casing_prefix_context,
3512 u32_casing_prefix_context, u8_casing_prefixes_context,
3513 u16_casing_prefixes_context, u32_casing_prefixes_context): New
3515 (casing_suffix_context_t): New type.
3516 (unicase_empty_suffix_context): New variable.
3517 (u8_casing_suffix_context, u16_casing_suffix_context,
3518 u32_casing_suffix_context, u8_casing_suffixes_context,
3519 u16_casing_suffixes_context, u32_casing_suffixes_context,
3520 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3521 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3522 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
3525 2009-06-28 Jim Meyering <meyering@redhat.com>
3527 boostrap: indent only with spaces
3528 * build-aux/bootstrap: Indent only with spaces, never TABs.
3530 bootstrap: split long lines
3531 * build-aux/bootstrap: Keep line length < 80.
3533 bootstrap: sync from coreutils
3534 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
3535 just as autoreconf does. Verify a list of prerequisite
3536 package-name,version-number pairs if defined in bootstrap.conf.
3537 Refer to README-prereq, if prerequisites are not satisfied.
3539 2009-06-27 Eric Blake <ebb9@byu.net>
3541 tests: add test for bogus NULL definition
3542 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
3543 * tests/test-stdlib.c: Likewise.
3544 * tests/test-string.c: Likewise.
3545 * tests/test-locale.c: Likewise.
3546 * tests/test-unistd.c: Likewise.
3547 * modules/stdio-tests (Depends-on): Add verify.
3548 * modules/stdlib-tests (Depends-on): Likewise.
3549 * modules/string-tests (Depends-on): Likewise.
3550 * modules/locale-tests (Depends-on): Likewise.
3551 * modules/unistd-tests (Depends-on): Likewise.
3553 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
3555 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
3556 self-explaining comment.
3557 * m4/selinux-selinux-h: Update serial.
3558 (gl_LIBSELINUX): New macro, adding a warning for missing development
3559 packages to code extracted from...
3560 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
3561 Add warning for missing development packages here, too.
3563 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
3565 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
3567 2009-06-25 Eric Blake <ebb9@byu.net>
3569 version-etc: fix regression
3570 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
3572 (version_etc): Use it, to catch bugs with trailing NULL.
3573 * lib/version-etc.c (version_etc_arn): Delete unused argument.
3574 (version_etc_va): Fix logic bug.
3575 * modules/version-etc-tests: Add test.
3576 * tests/test-version-etc.c: New file.
3577 * tests/test-version-etc.sh: Likewise.
3579 2009-06-25 Sam Steingold <sds@gnu.org>
3581 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
3584 2009-06-25 Eric Blake <ebb9@byu.net>
3586 fpurge: migrate into <stdio.h>
3587 * lib/fpurge.h: Delete...
3588 * lib/stdio.in.h (fpurge): ...and declare here, instead.
3589 * lib/fpurge.c (fpurge): Change declaring header.
3590 * modules/fpurge (Files): Drop deleted file.
3591 (Depends-on): Add stdio.
3592 (configure.ac): Set witness.
3593 * modules/stdio (Makefile.am): Support fpurge macros.
3594 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3595 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
3596 * lib/fflush.c: Update client.
3597 * tests/test-fpurge.c: Likewise.
3598 * NEWS: Mention the change.
3600 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
3602 * lib/argp-version-etc.c (program_authors): Add const
3604 * lib/version-etc.c: Fix typos in the comments.
3605 * modules/argp-version-etc: Depends on version-etc.
3607 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
3609 argp-version-etc: new module.
3611 * lib/argp-version-etc.c: New file.
3612 * lib/argp-version-etc.h: New file.
3613 * modules/argp-version-etc: New file.
3614 * modules/argp-version-etc-tests: New file.
3615 * tests/test-argp-version-etc.c: New test.
3616 * tests/test-argp-version-etc-1.sh: New test.
3618 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
3620 Provide additional interfaces and documentation for version-etc
3623 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
3625 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
3628 2009-06-24 Bruno Haible <bruno@clisp.org>
3630 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
3631 HAVE_LIB${NAME} macro.
3632 Reported by Sam Steingold <sds@gnu.org>.
3634 2009-06-23 Simon Josefsson <simon@josefsson.org>
3636 * modules/hash-tests (test_hash_LDADD): Link to libintl when
3639 2009-06-21 Bruno Haible <bruno@clisp.org>
3641 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
3643 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
3644 together with LIB${NAME}, LTLIB${NAME}.
3645 Reported by Sam Steingold <sds@gnu.org>.
3647 2009-06-20 Jim Meyering <meyering@redhat.com>
3649 tests: make sc_require_test_exit_idiom more generic
3650 * top/maint.mk (Exit_witness_file): New overridable variable.
3651 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
3652 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
3654 2009-06-19 Jim Meyering <meyering@redhat.com>
3656 hash: reverse order of src/dst parameters in an internal interface
3657 * lib/hash.c (transfer_entries): Reverse order of parameters to
3658 put DST before SRC. Adjust callers.
3660 tests: test-hash: avoid wholesale duplication
3661 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
3662 Instead, use a loop and add a single conditional.
3664 tests: test-hash: allow seed selection via a command line argument
3665 * tests/test-hash.c (get_seed): New function.
3668 2009-06-19 Eric Blake <ebb9@byu.net>
3670 hash: avoid memory leak on allocation failure
3671 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
3672 failure. Factor repeated algorithm...
3673 (transfer_entries): ...into new helper routine.
3674 (hash_delete): React to hash_rehash return value.
3676 hash: reduce memory pressure in hash_rehash no-op case
3677 * lib/hash.c (next_prime): Avoid overflow.
3678 (hash_initialize): Factor bucket size computation...
3679 (compute_bucket_size): ...into new helper function.
3680 (hash_rehash): Use new function and open coding to reduce memory
3681 pressure, and avoid a memory leak in USE_OBSTACK code.
3682 Reported by Jim Meyering.
3684 2009-06-18 Eric Blake <ebb9@byu.net>
3686 hash: make rotation more obvious
3687 * modules/hash (Depends-on): Add bitrotate and stdint.
3688 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
3689 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
3690 (SIZE_MAX): Rely on headers for definition.
3691 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
3692 (raw_hasher): Use rotr_sz.
3693 Suggested by Jim Meyering.
3695 hash: fix memory leak in last patch
3696 * lib/hash.c (hash_rehash): Avoid memory leak.
3698 hash: avoid no-op rehashing
3699 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
3701 hash: provide default callback functions
3702 * lib/hash.c (raw_hasher, raw_comparator): New functions.
3703 (hash_initialize): Use them as defaults.
3704 * tests/test-hash.c (main): Test this.
3706 hash: minor optimization
3707 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
3709 (hash_initialize): Document this promise.
3710 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
3711 * tests/test-hash.c (hash_compare_strings): Test this.
3713 2009-06-18 Bruno Haible <bruno@clisp.org>
3715 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
3716 going to be replaced anyway.
3718 2009-06-18 Bruno Haible <bruno@clisp.org>
3720 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
3722 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
3725 2009-06-18 Eric Blake <ebb9@byu.net>
3727 hash: check for resize before insertion
3728 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
3729 threshold before insertion, so that a pathological hash_rehash
3730 that fills every bucket can still trigger another rehash.
3732 2009-06-18 Jim Meyering <meyering@redhat.com>
3734 hash-tests: add a loop around the small tests
3735 * tests/test-hash.c (main): Repeat small tests with selected
3736 small initial table sizes.
3738 2009-06-17 Eric Blake <ebb9@byu.net>
3740 hash: minor cleanups
3741 * lib/hash.h (hash_entry): Make opaque, by moving...
3742 * lib/hash.c (hash_entry): ...here.
3743 (hash_insert): Clarify restrictions on what can be inserted.
3744 (hash_get_next): Clarify when it is safe to remove an element
3746 (check_tuning): Skip verification when tuning is known safe.
3747 (hash_initialize): Clarify restrictions on tuning.
3749 2009-06-17 Jim Meyering <jim@meyering.net>
3750 and Eric Blake <ebb9@byu.net>
3752 hash-tests: new module
3753 * modules/hash-tests: New file.
3754 * tests/test-hash.c: New file.
3756 2009-06-17 Eric Blake <ebb9@byu.net>
3758 strstr-simple: document new module
3759 * MODULES.html.sh: Document new module.
3761 strstr, strcasestr: replace on platforms with broken memchr
3762 * modules/strstr: Split into...
3763 * modules/strstr-simple: ...new module that does not care about
3764 performance, but does care about glibc bug.
3765 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
3766 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
3767 if platform memchr is broken, per Debian bug 521737.
3768 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
3770 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
3771 * doc/posix-functions/strstr.texi (strstr): Document the fix.
3772 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3773 * modules/mountlist (Depends-on): Add strstr-simple.
3774 * modules/gen-uni-tables (Depends-on): Likewise.
3775 * modules/argz (Depends-on): Add strstr.
3777 2009-06-17 Bruno Haible <bruno@clisp.org>
3779 * modules/posix_spawn-internal (Depends-on): Add errno.
3781 2009-06-17 Bruno Haible <bruno@clisp.org>
3783 Define missing ESTALE on Interix 3.5.
3784 * lib/errno.in.h (ESTALE): Assign a value if missing.
3785 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
3786 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
3788 * doc/posix-headers/errno.texi: Mention the Interix bug.
3789 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
3791 2009-06-15 Eric Blake <ebb9@byu.net>
3793 memchr, memchr2: add valgrind exception
3794 * lib/memchr.valgrind: New file.
3795 * lib/memchr2.valgrind: New file.
3796 * modules/memchr (Files): Distribute valgrind file.
3797 * modules/memchr2 (Files): Likewise.
3799 docs: memchr is no longer obsolete
3800 * MODULES.html.sh: Move memchr from obsolete to string.h section.
3801 * lib/string.in.h (memchr): Simplify logic.
3803 2009-06-14 Jim Meyering <meyering@redhat.com>
3805 link-follow: fix the "checking..." message to not mention trailing slash
3806 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
3807 never considered trailing slashes.
3809 2009-06-14 Bruno Haible <bruno@clisp.org>
3811 * m4/memchr.m4: Mention also the bug on IA-64.
3812 * doc/posix-functions/memchr.texi: Likewise.
3814 2009-06-12 Eric Blake <ebb9@byu.net>
3816 memchr: detect broken x86_64 and alpha implementations
3817 * modules/memchr-tests (Depends-on): Move mmap detection...
3818 * modules/memchr (Depends-on): ...here.
3819 (configure.ac): Set indicator.
3820 * lib/string.in.h (memchr): Declare replacement.
3821 * modules/string (Makefile.am): Trigger replacement.
3822 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3823 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
3825 * doc/posix-functions/memchr.texi (memchr): Document the bug.
3826 * modules/getpagesize (License): Relax license.
3828 2009-06-11 Bruno Haible <bruno@clisp.org>
3830 * lib/idpriv.h: Add more references.
3832 2009-06-08 Bruno Haible <bruno@clisp.org>
3834 Tests for module 'idpriv-droptemp'.
3835 * modules/idpriv-droptemp-tests: New file.
3836 * tests/test-idpriv-droptemp.sh: New file.
3837 * tests/test-idpriv-droptemp.su.sh: New file.
3838 * tests/test-idpriv-droptemp.c: New file.
3840 New module 'idpriv-droptemp'.
3841 * lib/idpriv-droptemp.c: New file.
3842 * modules/idpriv-droptemp: New file.
3844 2009-06-08 Bruno Haible <bruno@clisp.org>
3846 Tests for module 'idpriv-drop'.
3847 * modules/idpriv-drop-tests: New file.
3848 * tests/test-idpriv-drop.sh: New file.
3849 * tests/test-idpriv-drop.su.sh: New file.
3850 * tests/test-idpriv-drop.c: New file.
3852 New module 'idpriv-drop'.
3853 * lib/idpriv.h: New file.
3854 * lib-idpriv-drop.c: New file.
3855 * m4/idpriv.m4: New file.
3856 * modules/idpriv-drop: New file.
3858 2009-06-08 Bruno Haible <bruno@clisp.org>
3860 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
3861 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3862 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3863 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3864 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3865 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3866 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3868 2009-06-08 Eric Blake <ebb9@byu.net>
3870 test-strstr: use memory fence, when possible
3871 * tests/test-strstr.c (main): Use memory fence, in order to be
3872 more likely to trigger Debian bug 521737.
3873 * modules/strstr-tests (Files): Pull in additional files.
3875 memchr: no longer obsolete, for wider field testing
3876 * modules/memchr (Status, Notice): Delete, this module is no
3878 * modules/vasnprintf (Depends-on): Add memchr.
3880 2009-06-07 Jim Meyering <meyering@redhat.com>
3882 hash: declare some functions with the warn_unused_result attribute
3883 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
3885 2009-06-07 Bruno Haible <bruno@clisp.org>
3887 * tests/test-alignof.c: Don't test int64_t if it does not exist.
3888 Reported by Eric Blake.
3890 2009-06-06 Eric Blake <ebb9@byu.net>
3892 test-alignof: fix typo with long double
3893 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
3896 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
3898 Escape non-texinfo { and }s.
3899 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
3902 2009-06-04 Jim Meyering <meyering@redhat.com>
3904 gitlog-to-changelog: don't infloop on an empty commit log
3905 * build-aux/gitlog-to-changelog: Warn about an empty log message.
3906 Reported by Boris Petersen <transacid@centerim.org>.
3908 2009-06-03 Mike Frysinger <vapier@gentoo.org>
3910 version-etc: extend for packagers
3911 Add three new configure options, intended for packagers:
3912 --with-packager="packager name"
3913 --with-packager-version="packager-specific version"
3914 --with-packager-bug-reports="packager bug reporting"
3915 An example with coreutils:
3917 --with-packager=Gentoo \
3918 --with-packager-bug-report=http://bugs.gentoo.org/ \
3919 --with-packager-version="patchset 1.6"
3920 $ ./src/ls --version | head -n3
3921 ls (GNU coreutils) 7.1-dirty
3922 Packaged by Gentoo (patchset 1.6)
3923 Copyright (C) 2009 Free Software Foundation, Inc.
3924 Note that the bug reporting info via --help doesn't show up because
3925 coreutils uses its own custom emit_bug_reporting_address() implementation
3926 in src/system.h. If it didn't, it'd look like:
3927 $ ./src/ls --help | tail -n4
3928 Report bugs to <bug-coreutils@gnu.org>.
3929 Report Gentoo bugs to <http://bugs.gentoo.org/>.
3930 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
3931 General help using GNU software: <http://www.gnu.org/gethelp/>.
3932 * lib/version-etc.c: Print new information, if provided.
3933 * m4/version-etc.m4: New file.
3934 * modules/version-etc (Files): Add m4/version-etc.m4.
3935 (configure.ac): Add gl_VERSION_ETC.
3937 2009-05-31 Bruno Haible <bruno@clisp.org>
3939 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
3941 * modules/alignof-tests (Dependencies): Add stdint.
3942 Reported by Eric Blake.
3944 2009-05-31 Bruno Haible <bruno@clisp.org>
3946 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
3947 restriction due to compiler bugs.
3948 Reported by Eric Blake.
3950 2009-05-31 Simon Josefsson <simon@josefsson.org>
3951 Bruno Haible <bruno@clisp.org>
3953 Fix test-alignof failure.
3954 * lib/alignof.h (alignof_slot): New macro.
3955 (alignof_type): New macro, with the same semantics as the previous
3957 (alignof): Alias to alignof_slot.
3958 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
3959 check that the results are usable as constant expressions.
3961 2009-05-31 Bruno Haible <bruno@clisp.org>
3963 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
3964 * tests/test-memchr.c (main): Check that memchr does not read past the
3965 first occurrence of the byte.
3966 * tests/test-strstr.c (main): Update comment.
3967 Suggested by Eric Blake.
3969 2009-05-30 Bruno Haible <bruno@clisp.org>
3971 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
3972 detail how to use dumpbin.
3973 Reported by David Byron <dbyron@dbyron.com>.
3975 2009-06-02 Simon Josefsson <simon@josefsson.org>
3977 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
3979 2009-06-02 Simon Josefsson <simon@josefsson.org>
3981 * m4/manywarnings.m4: Add GCC 4.4 warnings.
3983 2009-05-28 Bruno Haible <bruno@clisp.org>
3985 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
3988 2009-05-28 Simon Josefsson <simon@josefsson.org>
3990 * gnulib-tool (func_import): Transform license on build-aux/ files too.
3992 2009-05-27 Simon Josefsson <simon@josefsson.org>
3994 * gnulib-tool (sed_transform_main_lib_file)
3995 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
3998 2009-05-26 Simon Josefsson <simon@josefsson.org>
4000 * tests/test-strstr.c: Add another self-test.
4001 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
4002 strdup. Suggested by Eric Blake <ebb9@byu.net>.
4004 2009-05-23 Bruno Haible <bruno@clisp.org>
4006 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
4009 2009-05-21 Bruno Haible <bruno@clisp.org>
4011 Simplify use of mode_t varargs.
4012 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
4013 uses 'mode_t' or 'int'.
4014 * lib/openat.c (openat): Likewise.
4015 * lib/open-safer.c (open_safer): Likewise.
4016 * m4/mode_t.m4: New file.
4017 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
4018 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
4019 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
4020 * modules/open (Files): Add m4/mode_t.m4.
4021 * modules/openat (Files): Likewise.
4022 * modules/fcntl-safer (Files): Likewise.
4023 Suggested by Eric Blake.
4025 2009-05-21 Pádraig Brady <P@draigbrady.com>
4027 * doc/glibc-functions/fallocate.texi: New file.
4028 * doc/gnulib.texi: Include it.
4030 2009-05-21 Eric Blake <ebb9@byu.net>
4031 Bruno Haible <bruno@clisp.org>
4033 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
4035 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4037 2009-05-21 Eric Blake <ebb9@byu.net>
4038 Bruno Haible <bruno@clisp.org>
4040 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
4041 include_next. Fix of 2008-11-20 commit.
4042 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
4043 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
4044 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
4046 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
4047 instead of NEXT_MATH_H.
4049 2009-05-21 Bruno Haible <bruno@clisp.org>
4051 Avoid redefinition warnings for SIZE_MAX.
4052 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
4053 Reported by Simon Josefsson.
4055 2009-05-21 Bruno Haible <bruno@clisp.org>
4057 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
4060 2009-05-20 Bruno Haible <bruno@clisp.org>
4062 Make zeroptr.h work on mingw.
4063 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
4065 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
4066 * modules/memchr2-tests (configure.ac): Likewise.
4067 * modules/memcmp-tests (configure.ac): Likewise.
4068 * modules/memmem-tests (configure.ac): Likewise.
4069 * modules/memrchr-tests (configure.ac): Likewise.
4070 Reported by Simon Josefsson.
4072 2009-05-20 Simon Josefsson <simon@josefsson.org>
4074 * tests/test-glob.c: Include string.h for strcmp prototype.
4076 2009-05-20 Simon Josefsson <simon@josefsson.org>
4078 * modules/getdelim (Depends-on): Add explicit stdint, although it
4079 was implicitly already pulled in via realloc-posix.
4080 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
4082 2009-05-20 Simon Josefsson <simon@josefsson.org>
4084 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
4085 G. Christensen" <tgc@jupiterrise.com>.
4086 * m4/sys_socket_h.m4: Check for sa_family_t.
4087 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
4088 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
4089 * tests/test-sys_socket.c: Check that sa_family_t works.
4091 2009-05-18 Eric Blake <ebb9@byu.net>
4093 maint.mk: allow gnulib_dir in VPATH build
4094 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
4096 2009-05-15 Jim Meyering <meyering@redhat.com>
4098 maint.mk: Give gnulib_dir a default definition.
4099 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
4100 Thus, most packages no longer need to specify this variable in cfg.mk
4102 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
4104 rename.m4: fix typos that would make non-mingw cross-configure fail
4105 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
4107 2009-05-13 Eric Blake <ebb9@byu.net>
4109 mmap-anon: avoid out-of-order autoconf expansion
4110 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
4111 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
4112 * modules/memchr-tests (Depends-on): Add extensions.
4113 * modules/memchr2-tests (Depends-on): Add extensions.
4114 * modules/memcmp-tests (Depends-on): Add extensions.
4115 * modules/memmem-tests (Depends-on): Add extensions.
4116 * modules/memrchr-tests (Depends-on): Add extensions.
4118 2009-05-13 Bruno Haible <bruno@clisp.org>
4120 Make some tests ISO C 99 compliant.
4121 * tests/zerosize-ptr.h: New file.
4122 * tests/test-memchr.c: Include zerosize-ptr.h.
4123 (main): Use a zero-size object pointer instead of NULL.
4124 * tests/test-memchr2.c: Include zerosize-ptr.h.
4125 (main): Use a zero-size object pointer instead of NULL.
4126 * tests/test-memcmp.c: Include zerosize-ptr.h.
4127 (main): Use a zero-size object pointer instead of NULL.
4128 * tests/test-memmem.c: Include zerosize-ptr.h.
4129 (main): Use a zero-size object pointer instead of NULL.
4130 * tests/test-memrchr.c: Include zerosize-ptr.h.
4131 (main): Use a zero-size object pointer instead of NULL.
4132 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
4134 (Depends-on): Add getpagesize.
4135 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4136 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
4138 (Depends-on): Add getpagesize.
4139 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4140 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
4142 (Depends-on): Add getpagesize.
4143 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4144 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
4146 (Depends-on): Add getpagesize.
4147 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4148 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
4150 (Depends-on): Add getpagesize.
4151 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4153 2009-05-12 Bruno Haible <bruno@clisp.org>
4155 Tests for module 'alignof'.
4156 * modules/alignof-tests: New file.
4157 * tests/test-alignof.c: New file.
4159 2009-05-12 Bruno Haible <bruno@clisp.org>
4162 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
4163 vendor compilers that are always correct.
4165 2009-05-12 Bruno Haible <bruno@clisp.org>
4167 Make the MAP_ANONYMOUS detection work on HP-UX 11.
4168 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
4169 not whether its fully works.
4171 2009-05-12 Bruno Haible <bruno@clisp.org>
4173 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
4175 2009-05-12 Jim Meyering <meyering@redhat.com>
4177 * top/maint.mk: Adjust backslash alignment.
4179 2009-05-11 Simon Josefsson <simon@josefsson.org>
4181 * top/maint.mk: Make $(srcdir)/build-aux configurable.
4183 2009-05-11 Eric Blake <ebb9@byu.net>
4185 argp: avoid undefined behavior
4186 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
4189 2009-05-08 Simon Josefsson <simon@josefsson.org>
4191 * tests/test-vc-list-files-git.sh: Do git config of user.email and
4192 user.name to prevent git commit from complaining.
4194 2009-05-10 Bruno Haible <bruno@clisp.org>
4196 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
4197 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
4198 it rewrites every file name only once.
4199 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
4201 2009-05-08 Bruno Haible <bruno@clisp.org>
4203 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
4206 2009-05-08 Simon Josefsson <simon@josefsson.org>
4208 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
4209 sockaddr_storage test.
4211 2009-05-07 Simon Josefsson <simon@josefsson.org>
4213 * modules/sys_socket (Makefile.am): Substitute
4214 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
4215 * m4/sys_socket_h.m4: Check for sockaddr_storage.
4216 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
4217 * tests/test-sys_socket.c: Check sockaddr_storage.
4219 2009-05-08 Bruno Haible <bruno@clisp.org>
4221 New module 'alignof'.
4222 * lib/alignof.h: New file.
4223 * modules/alignof: New file.
4225 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4226 Bruno Haible <bruno@clisp.org>
4228 Fix test-file-has-acl on FreeBSD.
4229 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
4230 mask is implicitly added.
4231 * tests/test-file-has-acl.c: Include <signal.h>.
4232 (main): Terminate the test after 5 seconds.
4233 * modules/acl-tests (configure.ac): Check for alarm function.
4235 2009-05-04 Bruno Haible <bruno@clisp.org>
4237 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
4238 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
4239 * modules/errno (configure.ac): Drop AC_REQUIRE.
4240 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
4241 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
4243 2009-05-04 Simon Josefsson <simon@josefsson.org>
4245 * modules/glob-tests: New module.
4246 * tests/test-glob.c: Add.
4248 2009-05-04 Simon Josefsson <simon@josefsson.org>
4250 * modules/fnmatch-tests: New module.
4251 * tests/test-fnmatch.c: Add.
4253 2009-05-04 Eric Blake <ebb9@byu.net>
4255 maint: make the new no-submodule-changes rule VPATH-safe
4256 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
4258 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4259 Bruno Haible <bruno@clisp.org>
4261 acl: Fix infinite loop on FreeBSD.
4262 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
4263 of return value from acl_get_entry.
4264 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
4267 2009-05-03 Bruno Haible <bruno@clisp.org>
4269 * lib/acl-internal.h (acl_entries): Clarify return value.
4270 * lib/acl_entries.c (acl_entries): Likewise.
4272 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4274 Bug fix in acl module.
4275 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
4277 2009-05-03 Bruno Haible <bruno@clisp.org>
4279 Create gperf-generated file in the source dir, not in the build dir.
4280 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
4281 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
4282 * modules/unicase/locale-language (unicase/locale-languages.h):
4284 * modules/unicase/special-casing (unicase/special-casing-table.h):
4286 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
4287 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
4288 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
4289 Reported by Ralf Wildenhues.
4291 2009-05-03 Bruno Haible <bruno@clisp.org>
4293 * modules/fnmatch (Description, configure.ac): Taken from
4295 * modules/fnmatch-posix: Turn into a symbolic reference to the
4296 'fnmatch' module, and deprecate.
4297 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
4299 2009-05-03 Bruno Haible <bruno@clisp.org>
4301 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
4302 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
4303 Reported by Ralf Wildenhues.
4305 2009-05-04 Simon Josefsson <simon@josefsson.org>
4307 * m4/fnmatch.m4: Fix fnmatch re-define.
4309 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
4311 priv-set: new module and tests; adapt write-any-file
4312 * lib/priv-set.c: New file.
4313 * lib/priv-set.h: New file.
4314 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
4315 * lib/write-any-file.c: Simplify by using priv-set module.
4316 * m4/priv-set.m4: New file.
4317 * modules/priv-set: New file.
4318 * modules/unlinkdir: Add dependency on priv-set module.
4319 * modules/write-any-file: Likewise.
4321 Tests for module 'priv-set'.
4322 * modules/priv-set-tests: New file.
4323 * tests/test-priv-set.c: New file.
4325 2009-05-03 Jim Meyering <meyering@redhat.com>
4326 Bruno Haible <bruno@clisp.org>
4328 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
4329 use the converted UTF-8 variant of the name instead.
4331 2009-05-03 Jim Meyering <meyering@redhat.com>
4333 tests: tighten some getdate tests
4334 * tests/test-getdate.c (main): Tighten tests: require equality,
4335 not just greater than. Set TZ envvar to UTC0.
4337 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
4339 getdate: correctly interpret "next monday" when run on a Monday
4340 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
4341 that e.g., "next tues" (when run on a tuesday) results in a date
4342 that is one week in the future, and not today's date.
4343 I.e., add a week when the wday is the same as the current one.
4344 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
4345 and earlier by Martin Bernreuther and Jan Minář.
4346 * tests/test-getdate.c (main): Check that "next DAY" is always in
4347 the future and that "last DAY" is always in the past.
4349 2009-05-02 Jim Meyering <meyering@redhat.com>
4351 build: ensure that a release build fails when a submodule is unclean
4352 * top/maint.mk (no-submodule-changes): New rule.
4353 (alpha beta major): Depend on it.
4355 2009-05-02 Bruno Haible <bruno@clisp.org>
4357 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
4358 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
4359 shell variable gl_fnmatch_required to detect which variant is
4361 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
4362 gl_FUNC_FNMATCH_POSIX.
4363 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
4364 exclude fnmatch-posix.
4366 2009-05-02 Bruno Haible <bruno@clisp.org>
4368 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
4369 * modules/mbsrtowcs (License): Change to LGPLv2+.
4370 * modules/strnlen1 (License): Likewise.
4371 Reported by Simon Josefsson.
4373 2009-05-02 Bruno Haible <bruno@clisp.org>
4375 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
4377 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
4378 gnulib-tool was called with option --source-base=lib.
4380 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4382 Use automake *-local hooks without commands, for extensibility.
4383 * modules/localcharset (Makefile.am): Rename install-exec-local
4384 rule to install-exec-localcharset, and make it a prerequisite of
4385 install-exec-local. Likewise, rename the uninstall-local rule to
4386 uninstall-localcharset, and make it a prerequisite of the former.
4388 2009-05-01 Bruno Haible <bruno@clisp.org>
4390 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
4391 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4392 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
4393 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
4394 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
4395 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4396 m4/locale-zh.m4, m4/codeset.m4.
4398 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4399 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
4400 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4403 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
4404 REPLACE_WCRTOMB if mbstate_t must be replaced.
4405 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
4406 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
4408 2009-05-01 Bruno Haible <bruno@clisp.org>
4410 Avoid compiler warnings when redefining macros defined by <libintl.h>.
4411 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
4412 dngettext, dcngettext, textdomain, bindtextdomain,
4413 bind_textdomain_codeset): Undefine before redefining.
4415 2009-04-30 Bruno Haible <bruno@clisp.org>
4417 Fix bug introduced on 2009-04-25.
4418 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
4419 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
4420 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
4422 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
4424 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
4426 Reported by Elbert_Pol <elbert.pol@gmail.com>.
4428 2009-04-28 Bruno Haible <bruno@clisp.org>
4431 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
4432 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
4433 * lib/unicase.h (u*_casexfrm): Likewise.
4434 Reported by Paolo Bonzini.
4436 2009-04-28 Bruno Haible <bruno@clisp.org>
4438 Fix a compilation error.
4439 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
4440 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
4441 Reported by Jim Meyering.
4443 2009-04-27 Bruno Haible <bruno@clisp.org>
4445 New module 'libunistring'.
4446 * modules/libunistring: New file.
4447 * m4/libunistring.m4: New file.
4448 * MODULES.html.sh (Unicode string functions): Add it.
4450 2009-04-27 Eric Blake <ebb9@byu.net>
4452 maint.mk: allow package-specific header to provide <config.h>
4453 * top/maint.mk (sc_require_config_h): New variable.
4454 (sc_require_config_h, sc_require_config_h_first): Use it.
4456 2009-04-27 Simon Josefsson <simon@josefsson.org>
4458 * top/maint.mk (sc_avoid_if_before_free): Except
4459 useless-if-before-free script.
4461 2009-04-27 Eric Blake <ebb9@byu.net>
4463 maintainer-makefile: depend on all required helper scripts
4464 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
4465 useless-if-before-free.
4466 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
4467 version, rather than assuming gnulib checkout is available.
4468 Reported by Simen Josefsson.
4470 2009-04-26 Bruno Haible <bruno@clisp.org>
4472 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
4473 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
4476 2009-04-26 Bruno Haible <bruno@clisp.org>
4478 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
4479 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
4480 AC_LIB_HAVE_LINKFLAGS.
4482 2009-04-26 Bruno Haible <bruno@clisp.org>
4484 Simplify calling convention of u*_conv_from_encoding.
4485 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
4486 u32_conv_from_encoding): Expect a resultbuf argument and return the
4487 result directly as a pointer.
4488 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
4489 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
4490 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
4491 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
4492 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
4493 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4495 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
4496 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
4497 * lib/vasnprintf.c (VASNPRINTF): Update.
4498 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
4499 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
4500 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
4501 * NEWS: Mention the change.
4503 2009-04-26 Bruno Haible <bruno@clisp.org>
4505 Simplify calling convention of u*_conv_to_encoding.
4506 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
4507 u32_conv_to_encoding): Expect a resultbuf argument and return the
4508 result directly as a pointer.
4509 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4510 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
4511 freeing scaled_offsets if mem_iconveha failed.
4512 * lib/unicase/u-casexfrm.h (FUNC): Update.
4513 * lib/uninorm/u-normxfrm.h (FUNC): Update.
4514 * lib/vasnprintf.c (VASNPRINTF): Update.
4515 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
4516 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
4517 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
4518 * NEWS: Mention the change.
4520 2009-04-26 Bruno Haible <bruno@clisp.org>
4522 Avoid test failures on AIX and OSF/1.
4523 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
4525 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4526 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4528 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
4529 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
4530 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
4531 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
4532 * doc/posix-functions/malloc.texi: Document the portability problem
4533 related to malloc(0).
4535 2009-04-26 Bruno Haible <bruno@clisp.org>
4537 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
4538 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
4539 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
4541 2009-04-25 Bruno Haible <bruno@clisp.org>
4543 Avoid link error when creating a namespace clean library.
4544 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
4545 as macro with arguments if already defined as an alias.
4546 * lib/signbitf.c (gl_signbitf): Don't undefine.
4547 * lib/signbitd.c (gl_signbitd): Don't undefine.
4548 * lib/signbitl.c (gl_signbitl): Don't undefine.
4550 2009-04-25 Jim Meyering <meyering@redhat.com>
4552 vc-list-files: fix another quoting bug
4553 * build-aux/vc-list-files: Avoid sed backslash expansion
4554 of pathological directory names.
4556 2009-04-25 Eric Blake <ebb9@byu.net>
4558 vc-list-files: fix shell quoting error
4559 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
4562 2009-04-25 Jim Meyering <meyering@redhat.com>
4564 vc-list-files: restore lost functionality with subdir argument
4565 * build-aux/vc-list-files: When given a non-"." sub-directory
4566 argument, substitute the $dir/ prefix back onto each resulting name.
4567 Otherwise, coreutils' root_tests check would fail.
4569 2009-04-24 Eric Blake <ebb9@byu.net>
4571 vc-list-files: ignore git symlinks
4572 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
4573 than ls-files, to ignore git symlinks.
4575 maint.mk: import improvements from m4
4576 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
4577 (move_if_change): Delete unused macro.
4578 (news-date-check, vc-diff-check): Support VPATH builds.
4579 (announcement): Likewise. Split --bootstrap-tools list...
4580 (boostrap-tools): ...into separate list, which can be overridden
4582 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
4583 requiring dependency on useless-if-before-free module.
4584 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
4585 Support VPATH builds.
4587 2009-04-24 Jim Meyering <meyering@redhat.com>
4589 maint.mk: remove coreutils-specific rules and variables
4590 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
4591 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
4592 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
4594 maint.mk: remove obsolete rule
4595 * top/maint.mk (rel-check): Remove rule.
4596 (WGET, WGETFLAGS): Remove now-unused variables.
4598 2009-04-24 Simon Josefsson <simon@josefsson.org>
4600 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
4603 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
4604 '$(PATH_SEPARATOR)' instead of ':'.
4606 2009-04-24 Simon Josefsson <simon@josefsson.org>
4608 * lib/getopt1.c (main): Use 'const' for static array.
4610 2009-04-24 Simon Josefsson <simon@josefsson.org>
4612 * top/maint.mk: Sync with coreutils.
4613 * NEWS: Explain incompatibilities.
4615 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4616 Bruno Haible <bruno@clisp.org>
4618 Fix cross-compilation results.
4619 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
4620 statement, as third argument of AC_TRY_RUN.
4621 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4622 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
4624 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4625 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4627 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4628 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
4629 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
4631 2009-04-20 Bruno Haible <bruno@clisp.org>
4633 Avoid test failure on mingw.
4634 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
4636 2009-04-20 Bruno Haible <bruno@clisp.org>
4638 Avoid compilation error on mingw.
4639 * modules/localename-tests (Depends-on): Add locale.
4641 2009-04-19 Bruno Haible <bruno@clisp.org>
4643 Support for building a shared library on Windows platforms.
4644 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
4645 (main): Test the presence of UNINORM_NFC here.
4646 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
4647 (main): Test the presence of UNINORM_NFD here.
4648 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
4649 (main): Test the presence of UNINORM_NFKC here.
4650 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
4651 (main): Test the presence of UNINORM_NFKD here.
4653 2009-04-19 Bruno Haible <bruno@clisp.org>
4655 Avoid a compiler warning.
4656 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
4657 Change type of variable 'sequence'.
4659 2009-04-19 Bruno Haible <bruno@clisp.org>
4661 * modules/configmake (Makefile.am): When the contents of configmake.h
4662 does not change, arrange to preserve its modification time.
4664 2009-04-17 Simon Josefsson <simon@josefsson.org>
4666 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
4669 2009-04-16 Jim Meyering <meyering@redhat.com>
4671 useless-if-before-free: improve conversion code
4672 * build-aux/useless-if-before-free: Adjust code-in-comment to match
4673 "...!= 0" as well as "...!= NULL". emacs has one of the former.
4675 2009-04-14 Bruno Haible <bruno@clisp.org>
4677 * modules/fcntl (Depends-on): Add extensions.
4678 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
4680 2009-04-12 Ben Pfaff <blp@gnu.org>
4682 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
4683 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
4685 2009-03-20 Ben Pfaff <blp@gnu.org>
4687 Make rename replace existing destinations on Windows.
4688 * m4/rename.m4: Add test for Mingw.
4689 * lib/rename.c: Add rename replacement that uses MoveFileEx with
4690 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
4691 * doc/posix-functions/rename.texi: Document.
4693 2009-04-10 Bruno Haible <bruno@clisp.org>
4695 New include file "iconveh.h".
4696 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
4697 * lib/striconveh.h: Include it.
4698 (enum iconv_ilseq_handler): Remove definition.
4699 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
4701 * lib/striconveha.c: Include striconveh.h.
4702 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
4703 * modules/striconveh (Files): Add lib/iconveh.h.
4704 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
4707 2009-04-10 Bruno Haible <bruno@clisp.org>
4709 * lib/uniconv.h: Update comment.
4711 2009-04-10 Bruno Haible <bruno@clisp.org>
4713 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
4715 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
4716 * lib/unistr/u16-mbtouc-aux.c: Likewise.
4717 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
4718 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
4719 "unistring-notinline.h", so that the function gets defined always.
4720 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
4721 * lib/unistr/u8-uctomb.c: Likewise.
4722 * lib/unistr/u16-mbtouc.c: Likewise.
4723 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
4724 * lib/unistr/u16-uctomb.c: Likewise.
4725 * lib/unistr/u32-mbtouc.c: Likewise.
4726 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
4727 * lib/unistr/u32-uctomb.c: Likewise.
4729 2009-04-10 Bruno Haible <bruno@clisp.org>
4731 Mark 'utime' obsolete.
4732 * modules/utime (Status, Notice): New sections.
4733 Suggested by Jim Meyering.
4735 Fix cross-compile guess for utime test.
4736 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
4738 * doc/posix-functions/utime.texi: Give more precisions.
4739 Reported by Jan <ipif@ymail.com>.
4741 2009-04-09 Kamil Dudka <kdudka@redhat.com>
4743 filevercmp: correct today's change
4744 * lib/filevercmp.c: Also handle coreutils' test inputs.
4745 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
4747 Fix regression in 'filevercmp' module. Thanks Sven Joachim
4749 * lib/filevercmp.c: Special handle for "", "." and "..".
4750 * tests/test-filevercmp.c: Enlarge the set suite.
4752 2009-04-07 Jim Meyering <meyering@redhat.com>
4754 useless-if-before-free: show how to remove braced useless free, too
4755 * build-aux/useless-if-before-free: still only in a comment, though.
4757 2009-04-07 Reuben Thomas <rrt@sc3d.org>
4759 maint.mk: import changes to syntax-check macros from coreutils
4760 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
4761 Use them in the relevant macros.
4763 2009-04-06 Bruno Haible <bruno@clisp.org>
4765 Fix unportable use of bit-fields.
4766 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
4767 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
4768 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
4770 2009-04-06 Bruno Haible <bruno@clisp.org>
4772 Avoid test failures on AIX and OSF/1.
4773 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
4774 that malloc(0) = NULL.
4775 * tests/unicase/test-u8-tolower.c (check): Likewise.
4776 * tests/unicase/test-u8-totitle.c (check): Likewise.
4777 * tests/unicase/test-u8-toupper.c (check): Likewise.
4778 * tests/unicase/test-u16-casefold.c (check): Likewise.
4779 * tests/unicase/test-u16-tolower.c (check): Likewise.
4780 * tests/unicase/test-u16-totitle.c (check): Likewise.
4781 * tests/unicase/test-u16-toupper.c (check): Likewise.
4782 * tests/unicase/test-u32-casefold.c (check): Likewise.
4783 * tests/unicase/test-u32-tolower.c (check): Likewise.
4784 * tests/unicase/test-u32-totitle.c (check): Likewise.
4785 * tests/unicase/test-u32-toupper.c (check): Likewise.
4786 * tests/uninorm/test-u8-nfc.c (check): Likewise.
4787 * tests/uninorm/test-u8-nfd.c (check): Likewise.
4788 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
4789 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
4790 * tests/uninorm/test-u16-nfc.c (check): Likewise.
4791 * tests/uninorm/test-u16-nfd.c (check): Likewise.
4792 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
4793 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
4794 * tests/uninorm/test-u32-nfc.c (check): Likewise.
4795 * tests/uninorm/test-u32-nfd.c (check): Likewise.
4796 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
4797 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
4799 2009-04-05 Bruno Haible <bruno@clisp.org>
4801 Work around an autoconf limitation.
4802 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
4803 comment line if it would be longer than 3 KB.
4805 2009-04-05 Bruno Haible <bruno@clisp.org>
4807 Avoid test failure with libiconv-1.13.
4808 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
4809 of the expected test results.
4811 2009-04-05 Bruno Haible <bruno@clisp.org>
4813 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
4814 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
4815 that it should be installed.
4817 2009-04-05 Bruno Haible <bruno@clisp.org>
4819 * gnulib-tool: New option --copy-file.
4820 (func_usage): Document it.
4821 (func_dest_tmpfilename): Moved out of func_import.
4822 (func_add_file, func_update_file): New functions, extracted from
4824 (func_import): Update.
4826 2009-04-05 Karl Berry <karl@gnu.org>
4828 * README: prominently mention gnulib-tool.
4829 Rearrange sections so getting the code is near the top.
4831 2009-04-05 Bruno Haible <bruno@clisp.org>
4833 * lib/unicase.h: Mention u*_cmp2.
4834 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
4835 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
4836 * lib/unicase/ulc-casecmp.c: Likewise.
4837 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
4838 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
4839 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
4841 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
4842 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
4844 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
4847 * lib/uninorm.h: Mention u*_cmp2.
4848 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
4849 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
4850 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
4851 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
4852 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
4854 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
4856 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
4859 New module 'unistr/u32-cmp2'.
4860 * lib/unistr/u32-cmp2.c: New file.
4861 * modules/unistr/u32-cmp2: New file.
4863 New module 'unistr/u16-cmp2'.
4864 * lib/unistr/u16-cmp2.c: New file.
4865 * modules/unistr/u16-cmp2: New file.
4867 New module 'unistr/u8-cmp2'.
4868 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
4869 * lib/unistr/u8-cmp2.c: New file.
4870 * lib/unistr/u-cmp2.h: New file.
4871 * modules/unistr/u8-cmp2: New file.
4873 2009-04-05 Bruno Haible <bruno@clisp.org>
4875 * lib/unictype.h (uc_property_is_valid): New macro.
4876 * tests/unictype/test-pr_byname.c (main): Use it.
4878 * lib/unistr.h: Doc fixes.
4879 * lib/uniconv.h: Doc fixes.
4880 * lib/unictype.h: Doc fixes.
4882 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
4884 Port coreutils 7.2 to Solaris 8.
4886 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
4887 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
4888 for Solaris 8. This is a bit of a hack, as it means it's the
4889 caller's responsibility to add -lnsl if needed, but most likely it
4890 won't be needed since only getaddrinfo uses this and getaddrinfo
4891 isn't needed on Solaris 8.
4893 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
4894 problem to Solaris 8 encountered with coreutils 7.2, which
4895 resulted in a message "fnmatch.c:292: warning: passing argument 4
4896 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
4897 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
4899 2009-04-03 Simon Josefsson <simon@josefsson.org>
4901 * m4/ld-version-script.m4: Add FIXME comment.
4903 2009-04-02 Simon Josefsson <simon@josefsson.org>
4905 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
4908 2009-04-02 Bruno Haible <bruno@clisp.org>
4910 * Makefile (info, html, dvi, pdf): Combine the rules.
4911 Suggested by Jim Meyering.
4913 2009-04-01 Bruno Haible <bruno@clisp.org>
4915 * Makefile (info, html, dvi, pdf): New targets.
4916 Reported by Reuben Thomas <rrt@sc3d.org>.
4918 2009-04-01 Bruno Haible <bruno@clisp.org>
4920 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
4921 can be put into PATH.
4922 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
4924 2009-04-01 Bruno Haible <bruno@clisp.org>
4926 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
4928 2009-04-01 Bruno Haible <bruno@clisp.org>
4930 Rename module 'visibility'.
4931 * modules/lib-symbol-visibility: Renamed from modules/visibility.
4932 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
4933 * doc/gnulib.texi: Update.
4934 * MODULES.html.sh (Misc): Update.
4935 * NEWS: Mention the change.
4937 2009-04-01 Simon Josefsson <simon@josefsson.org>
4939 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
4940 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
4941 Eric Blake <ebb9@byu.net> for review.
4942 * MODULES.html.sh: Add lib-msvc-compat.
4943 * doc/gnulib.texi: Link to new section.
4944 * m4/ld-output-def.m4: New file.
4945 * doc/ld-output-def.texi: New file.
4947 2009-04-01 Simon Josefsson <simon@josefsson.org>
4949 Rename ld-version-script to lib-symbol-versions. Suggested by
4950 Bruno Haible <bruno@clisp.org>.
4951 * modules/ld-version-script: Renamed to lib-symbol-versions.
4952 * doc/ld-version-script.texi: Fix module name.
4953 * MODULES.html.sh: Add lib-symbol-versions.
4955 2009-03-31 Simon Josefsson <simon@josefsson.org>
4957 * modules/u64-tests: New file.
4958 * tests/test-u64.c: New file.
4960 2009-03-04 Simon Josefsson <simon@josefsson.org>
4962 * MODULES.html.sh: Mention u64.
4963 * modules/u64: New module.
4964 * modules/crypto/sha512: Depend on u64 module instead of providing
4967 2009-03-27 Eric Blake <ebb9@byu.net>
4969 test-strerror: make debugging EAI_SYSTEM easier
4970 * modules/getaddrinfo-tests (Depends-on): Add strerror.
4971 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
4972 failure was EAI_SYSTEM.
4974 2009-03-25 Bruno Haible <bruno@clisp.org>
4976 Fix a problem with --enable-relocatable on Solaris 7.
4977 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
4980 2009-03-25 Eric Blake <ebb9@byu.net>
4982 test-sockets: avoid gcc warning
4983 * tests/test-sockets.c (main): Silence compiler warning.
4985 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
4987 New modules nproc, pthread, contributed by Glen Lenker.
4989 * MODULES.html.sh: Add pthread, nproc.
4990 * lib/nproc.c: New file.
4991 * lib/nproc.h: New file.
4992 * lib/pthread.in.h: New file.
4993 * m4/pthread.m4: New file.
4994 * modules/nproc: New file.
4995 * modules/pthread: New file.
4997 2009-03-24 Simon Josefsson <simon@josefsson.org>
4999 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
5002 2009-03-24 Kamil Dudka <kdudka@redhat.com>
5004 filevercmp: handle simple~ and numbered.~3~ backup suffixes
5005 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
5006 * tests/test-filevercmp.c: Add tests for backup suffixes.
5008 2009-03-24 Simon Josefsson <simon@josefsson.org>
5010 * modules/stdlib (Depends-on): Add stdint, needed when defining
5011 struct random_data on, for example, HP-UX 10.20. Reported by
5012 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5014 2009-03-24 Simon Josefsson <simon@josefsson.org>
5016 * lib/readline.c (readline): Call fflush on stdout after printing
5019 2009-03-20 Bruno Haible <bruno@clisp.org>
5021 Remove dependency from 'close' module to -lws2_32 on native Windows.
5022 * lib/close-hook.h: New file.
5023 * lib/close-hook.c: New file.
5024 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
5026 (_gl_close_fd_maybe_socket): Remove function.
5027 (rpl_close): Invoke execute_all_close_hooks instead of
5028 _gl_close_fd_maybe_socket.
5029 * lib/sockets.c: Include close-hook.h, w32sock.h.
5030 (close_fd_maybe_socket): New function, essentially from lib/close.c.
5031 (close_sockets_hook): New variable.
5032 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
5033 (gl_sockets_cleanup): Unregister it.
5034 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
5035 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
5036 * modules/close-hook: New file.
5037 * modules/close (Files): Remove lib/w32sock.h.
5038 (Depends-on): Add close-hook.
5039 (Link): Remove section.
5040 * modules/sockets (Files): Add lib/w32sock.h.
5041 (Depends-on): Add close-hook.
5042 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
5044 * NEWS: Mention that LIB_CLOSE is gone.
5046 2009-03-23 Eric Blake <ebb9@byu.net>
5048 signal-tests: test previous patch
5049 * tests/test-signal.c: New file.
5050 * modules/signal-tests: Likewise.
5052 signal.h: always support 'volatile sig_atomic_t'
5053 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
5054 (gl_SIGNAL_H_DEFAULTS): Add a default.
5055 * modules/signal (Makefile.am): Substitute if needed.
5056 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
5057 users can blindly add volatile.
5058 * doc/posix-headers/signal.texi (signal.h): Document it.
5059 Reported by Matthew Woehlke.
5061 2009-03-23 Jim Meyering <meyering@redhat.com>
5063 pathmax: PATH_MAX: use pathconf only when available
5064 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
5065 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
5066 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
5067 This avoids a link failure in a PSP cross-compilation environment
5068 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
5070 * lib/vasnprintf.c (divide): Fix typo in comment.
5072 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5074 * gnulib-tool (func_filter_filelist): Fix comment.
5076 2009-03-20 Bruno Haible <bruno@clisp.org>
5078 Make sockets.h self-contained.
5079 * lib/sockets.c: Include sockets.h first.
5080 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
5082 2009-03-19 Eric Blake <ebb9@byu.net>
5084 doc: mention more functions added in cygwin 1.7.0
5085 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
5087 * doc/posix-functions/log2f.texi: Likewise.
5089 2009-03-19 Jim Meyering <meyering@redhat.com>
5091 fsusage: avoid syntax error due to statement-before-declaration
5092 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
5093 after all declarations. Reported by Matthew Woehlke in
5094 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
5096 2009-03-18 Eric Blake <ebb9@byu.net>
5098 build-aux/compile: sync from automake
5099 * build-aux/compile: New file, from automake.
5100 * config/srclist.txt: Mention build-aux/compile.
5102 2009-03-17 Bruno Haible <bruno@clisp.org>
5104 * lib/git-merge-changelog.c: Fix typo in comment.
5105 Reported by Reuben Thomas <rrt@sc3d.org>.
5107 2009-03-17 Reuben Thomas <rrt@sc3d.org>
5109 * m4/regex.m4: update and improve help for
5110 --without-included-regex.
5112 2009-03-17 Simon Josefsson <simon@josefsson.org>
5114 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
5115 failure on missing include files.
5117 2009-03-17 Eric Blake <ebb9@byu.net>
5119 doc: mention more functions added in cygwin 1.7.0
5120 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
5122 * doc/posix-functions/fwscanf.texi: Likewise.
5123 * doc/posix-functions/swprintf.texi: Likewise.
5124 * doc/posix-functions/swscanf.texi: Likewise.
5125 * doc/posix-functions/vfwprintf.texi: Likewise.
5126 * doc/posix-functions/vfwscanf.texi: Likewise.
5127 * doc/posix-functions/vswprintf.texi: Likewise.
5128 * doc/posix-functions/vswscanf.texi: Likewise.
5129 * doc/posix-functions/vwprintf.texi: Likewise.
5130 * doc/posix-functions/vwscanf.texi: Likewise.
5131 * doc/posix-functions/wcscasecmp.texi: Likewise.
5132 * doc/posix-functions/wcsdup.texi: Likewise.
5133 * doc/posix-functions/wcsftime.texi: Likewise.
5134 * doc/posix-functions/wcsncasecmp.texi: Likewise.
5135 * doc/posix-functions/wprintf.texi: Likewise.
5136 * doc/posix-functions/wscanf.texi: Likewise.
5137 * doc/glibc-functions/gethostbyname2.texi: Likewise.
5139 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5141 maint.mk: really add $(AM_MAKEFLAGS)
5142 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
5143 was inadvertently omitted in the last commit.
5144 Spotted by Bruno Haible.
5146 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
5147 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
5148 $(AM_MAKEFLAGS)' rather than plain `make'.
5150 gnulib-tool: execute $MAKE not make
5151 * gnulib-tool: Default $MAKE to 'make'.
5152 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
5153 than make. Initialize $MAKE in the do-autobuild script.
5155 gnulib-tool: use $MAKE not make in generated files
5156 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
5157 make, in generated files. Initialize $MAKE in the do-autobuild
5160 * top/GNUmakefile (_have-git-version-gen): Fix typo.
5162 GNUmakefile: disable parallelism only for multiple, recursive targets
5163 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
5164 additions in the Makefile.
5165 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
5167 (.NOTPARALLEL): Only disable parallel builds if multiple targets
5168 are listed on the command line and at least one of them is
5169 listed in $(ALL_RECURSIVE_TARGETS).
5171 2009-03-14 Bruno Haible <bruno@clisp.org>
5173 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
5174 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
5175 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
5176 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
5177 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
5178 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
5179 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
5181 * modules/unistr/u8-strchr (Depends-on): Likewise.
5182 * modules/unistr/u8-strrchr (Depends-on): Likewise.
5183 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
5185 * modules/unistr/u16-strchr (Depends-on): Likewise.
5186 * modules/unistr/u16-strrchr (Depends-on): Likewise.
5188 2009-03-12 Bruno Haible <bruno@clisp.org>
5190 Work around select() bug on Interix 3.5.
5191 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
5192 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
5193 * m4/select.m4: New file.
5194 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
5195 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
5196 * modules/select (Files): Add m4/select.m4.
5197 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
5198 * modules/nanosleep (Depends-on): Add select.
5199 * modules/poll (Depends-on): Likewise.
5200 * doc/posix-functions/select.texi: Mention the Interix bug.
5201 Reported by Markus Duft <mduft@gentoo.org>.
5203 * lib/select.c: Renamed from lib/winsock-select.c.
5204 * modules/select (Files): Add lib/select.c, remove
5205 lib/winsock-select.c.
5206 (configure.ac): Update.
5208 2009-03-12 Jim Meyering <meyering@redhat.com>
5210 avoid gcc warnings about unused macro definitions
5211 * lib/readtokens.c (STREQ): Remove unused definition.
5212 * lib/xmalloc.c (SIZE_MAX): Likewise.
5213 * lib/openat-die.c (N_): Likewise.
5214 * lib/mountlist.c (SIZE_MAX): Remove definition.
5215 Instead, include <stdint.h>.
5216 * lib/readutmp.c: Likewise.
5217 * modules/readutmp (Depends-on): Add stdint.
5218 * modules/mountlist (Depends-on): Add stdint.
5219 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
5221 2009-03-10 Bruno Haible <bruno@clisp.org>
5223 Tests for module 'mbmemcasecoll'.
5224 * modules/mbmemcasecoll-tests: New file.
5225 * tests/test-mbmemcasecoll1.sh: New file.
5226 * tests/test-mbmemcasecoll2.sh: New file.
5227 * tests/test-mbmemcasecoll3.sh: New file.
5228 * tests/test-mbmemcasecoll.c: New file.
5230 New module 'mbmemcasecoll'.
5231 * lib/mbmemcasecoll.h: New file.
5232 * lib/mbmemcasecoll.c: New file.
5233 * modules/mbmemcasecoll: New file.
5235 * tests/test-mbmemcasecmp.h: New file, extracted from
5236 tests/test-mbmemcasecmp.c.
5237 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
5238 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
5240 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
5242 2009-03-09 Bruno Haible <bruno@clisp.org>
5244 Tests for module 'mbmemcasecmp'.
5245 * modules/mbmemcasecmp-tests: New file.
5246 * tests/test-mbmemcasecmp1.sh: New file.
5247 * tests/test-mbmemcasecmp2.sh: New file.
5248 * tests/test-mbmemcasecmp3.sh: New file.
5249 * tests/test-mbmemcasecmp.c: New file.
5251 New module 'mbmemcasecmp'.
5252 * lib/mbmemcasecmp.h: New file.
5253 * lib/mbmemcasecmp.c: New file.
5254 * modules/mbmemcasecmp: New file.
5256 2009-03-09 Bruno Haible <bruno@clisp.org>
5258 Tests for module 'unicase/ulc-casecoll'.
5259 * modules/unicase/ulc-casecoll-tests: New file.
5260 * tests/unicase/test-ulc-casecoll1.sh: New file.
5261 * tests/unicase/test-ulc-casecoll2.sh: New file.
5262 * tests/unicase/test-ulc-casecoll.c: New file.
5264 New module 'unicase/ulc-casecoll'.
5265 * lib/unicase.h (ulc_casecoll): New declaration.
5266 * lib/unicase/ulc-casecoll.c: New file.
5267 * modules/unicase/ulc-casecoll: New file.
5269 New module 'unicase/ulc-casexfrm'.
5270 * lib/unicase.h (ulc_casexfrm): New declaration.
5271 * lib/unicase/ulc-casexfrm.c: New file.
5272 * modules/unicase/ulc-casexfrm: New file.
5274 2009-03-09 Bruno Haible <bruno@clisp.org>
5276 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
5279 * m4/mbscasecmp.m4: Remove file.
5280 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
5281 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
5283 * m4/mbscasestr.m4: Remove file.
5284 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
5285 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
5287 * m4/mbschr.m4: Remove file.
5288 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
5289 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
5291 * m4/mbscspn.m4: Remove file.
5292 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
5293 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
5295 * m4/mbslen.m4: Remove file.
5296 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
5297 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
5299 * m4/mbsncasecmp.m4: Remove file.
5300 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
5301 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
5303 * m4/mbsnlen.m4: Remove file.
5304 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
5305 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
5307 * m4/mbspbrk.m4: Remove file.
5308 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
5309 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
5311 * m4/mbspcasecmp.m4: Remove file.
5312 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
5313 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
5315 * m4/mbsrchr.m4: Remove file.
5316 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
5317 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
5319 * m4/mbssep.m4: Remove file.
5320 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
5321 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
5323 * m4/mbsspn.m4: Remove file.
5324 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
5325 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
5327 * m4/mbsstr.m4: Remove file.
5328 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
5329 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
5331 * m4/mbstok_r.m4: Remove file.
5332 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
5333 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
5335 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
5337 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
5338 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
5340 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
5342 2009-03-08 Bruno Haible <bruno@clisp.org>
5344 Tests for module 'unicase/ulc-casecmp'.
5345 * modules/unicase/ulc-casecmp-tests: New file.
5346 * tests/unicase/test-ulc-casecmp1.sh: New file.
5347 * tests/unicase/test-ulc-casecmp2.sh: New file.
5348 * tests/unicase/test-ulc-casecmp.c: New file.
5350 New module 'unicase/ulc-casecmp'.
5351 * lib/unicase.h (ulc_casecmp): New declaration.
5352 * lib/unicase/ulc-casecmp.c: New file.
5353 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
5355 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
5356 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
5357 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
5358 * modules/unicase/ulc-casecmp: New file.
5360 Tests for module 'unicase/u32-is-cased'.
5361 * modules/unicase/u32-is-cased-tests: New file.
5362 * tests/unicase/test-u32-is-cased.c: New file.
5364 Tests for module 'unicase/u16-is-cased'.
5365 * modules/unicase/u16-is-cased-tests: New file.
5366 * tests/unicase/test-u16-is-cased.c: New file.
5368 Tests for module 'unicase/u8-is-cased'.
5369 * modules/unicase/u8-is-cased-tests: New file.
5370 * tests/unicase/test-u8-is-cased.c: New file.
5371 * tests/unicase/test-is-cased.h: New file.
5373 New module 'unicase/u32-is-cased'.
5374 * lib/unicase/u32-is-cased.c: New file.
5375 * modules/unicase/u32-is-cased: New file.
5377 New module 'unicase/u16-is-cased'.
5378 * lib/unicase/u16-is-cased.c: New file.
5379 * modules/unicase/u16-is-cased: New file.
5381 New module 'unicase/u8-is-cased'.
5382 * lib/unicase/u8-is-cased.c: New file.
5383 * lib/unicase/u-is-cased.h: New file.
5384 * modules/unicase/u8-is-cased: New file.
5386 Tests for module 'unicase/u32-is-casefolded'.
5387 * modules/unicase/u32-is-casefolded-tests: New file.
5388 * tests/unicase/test-u32-is-casefolded.c: New file.
5390 Tests for module 'unicase/u16-is-casefolded'.
5391 * modules/unicase/u16-is-casefolded-tests: New file.
5392 * tests/unicase/test-u16-is-casefolded.c: New file.
5394 Tests for module 'unicase/u8-is-casefolded'.
5395 * modules/unicase/u8-is-casefolded-tests: New file.
5396 * tests/unicase/test-u8-is-casefolded.c: New file.
5397 * tests/unicase/test-is-casefolded.h: New file.
5399 New module 'unicase/u32-is-casefolded'.
5400 * lib/unicase/u32-is-casefolded.c: New file.
5401 * modules/unicase/u32-is-casefolded: New file.
5403 New module 'unicase/u16-is-casefolded'.
5404 * lib/unicase/u16-is-casefolded.c: New file.
5405 * modules/unicase/u16-is-casefolded: New file.
5407 New module 'unicase/u8-is-casefolded'.
5408 * lib/unicase/u8-is-casefolded.c: New file.
5409 * modules/unicase/u8-is-casefolded: New file.
5411 Tests for module 'unicase/u32-is-titlecase'.
5412 * modules/unicase/u32-is-titlecase-tests: New file.
5413 * tests/unicase/test-u32-is-titlecase.c: New file.
5415 Tests for module 'unicase/u16-is-titlecase'.
5416 * modules/unicase/u16-is-titlecase-tests: New file.
5417 * tests/unicase/test-u16-is-titlecase.c: New file.
5419 Tests for module 'unicase/u8-is-titlecase'.
5420 * modules/unicase/u8-is-titlecase-tests: New file.
5421 * tests/unicase/test-u8-is-titlecase.c: New file.
5422 * tests/unicase/test-is-titlecase.h: New file.
5424 New module 'unicase/u32-is-titlecase'.
5425 * lib/unicase/u32-is-titlecase.c: New file.
5426 * modules/unicase/u32-is-titlecase: New file.
5428 New module 'unicase/u16-is-titlecase'.
5429 * lib/unicase/u16-is-titlecase.c: New file.
5430 * modules/unicase/u16-is-titlecase: New file.
5432 New module 'unicase/u8-is-titlecase'.
5433 * lib/unicase/u8-is-titlecase.c: New file.
5434 * modules/unicase/u8-is-titlecase: New file.
5436 Tests for module 'unicase/u32-is-lowercase'.
5437 * modules/unicase/u32-is-lowercase-tests: New file.
5438 * tests/unicase/test-u32-is-lowercase.c: New file.
5440 Tests for module 'unicase/u16-is-lowercase'.
5441 * modules/unicase/u16-is-lowercase-tests: New file.
5442 * tests/unicase/test-u16-is-lowercase.c: New file.
5444 Tests for module 'unicase/u8-is-lowercase'.
5445 * modules/unicase/u8-is-lowercase-tests: New file.
5446 * tests/unicase/test-u8-is-lowercase.c: New file.
5447 * tests/unicase/test-is-lowercase.h: New file.
5449 New module 'unicase/u32-is-lowercase'.
5450 * lib/unicase/u32-is-lowercase.c: New file.
5451 * modules/unicase/u32-is-lowercase: New file.
5453 New module 'unicase/u16-is-lowercase'.
5454 * lib/unicase/u16-is-lowercase.c: New file.
5455 * modules/unicase/u16-is-lowercase: New file.
5457 New module 'unicase/u8-is-lowercase'.
5458 * lib/unicase/u8-is-lowercase.c: New file.
5459 * modules/unicase/u8-is-lowercase: New file.
5461 Tests for module 'unicase/u32-is-uppercase'.
5462 * modules/unicase/u32-is-uppercase-tests: New file.
5463 * tests/unicase/test-u32-is-uppercase.c: New file.
5465 Tests for module 'unicase/u16-is-uppercase'.
5466 * modules/unicase/u16-is-uppercase-tests: New file.
5467 * tests/unicase/test-u16-is-uppercase.c: New file.
5469 Tests for module 'unicase/u8-is-uppercase'.
5470 * modules/unicase/u8-is-uppercase-tests: New file.
5471 * tests/unicase/test-u8-is-uppercase.c: New file.
5472 * tests/unicase/test-is-uppercase.h: New file.
5474 New module 'unicase/u32-is-uppercase'.
5475 * lib/unicase/u32-is-uppercase.c: New file.
5476 * modules/unicase/u32-is-uppercase: New file.
5478 New module 'unicase/u16-is-uppercase'.
5479 * lib/unicase/u16-is-uppercase.c: New file.
5480 * modules/unicase/u16-is-uppercase: New file.
5482 New module 'unicase/u8-is-uppercase'.
5483 * lib/unicase/u8-is-uppercase.c: New file.
5484 * modules/unicase/u8-is-uppercase: New file.
5486 New module 'unicase/u32-is-invariant'.
5487 * lib/unicase/u32-is-invariant.c: New file.
5488 * modules/unicase/u32-is-invariant: New file.
5490 New module 'unicase/u16-is-invariant'.
5491 * lib/unicase/u16-is-invariant.c: New file.
5492 * modules/unicase/u16-is-invariant: New file.
5494 New module 'unicase/u8-is-invariant'.
5495 * lib/unicase/u8-is-invariant.c: New file.
5496 * lib/unicase/invariant.h: New file.
5497 * lib/unicase/u-is-invariant.h: New file.
5498 * modules/unicase/u8-is-invariant: New file.
5500 Tests for module 'unicase/u32-casecoll'.
5501 * modules/unicase/u32-casecoll-tests: New file.
5502 * tests/unicase/test-u32-casecoll.c: New file.
5504 Tests for module 'unicase/u16-casecoll'.
5505 * modules/unicase/u16-casecoll-tests: New file.
5506 * tests/unicase/test-u16-casecoll.c: New file.
5508 Tests for module 'unicase/u8-casecoll'.
5509 * modules/unicase/u8-casecoll-tests: New file.
5510 * tests/unicase/test-u8-casecoll.c: New file.
5512 New module 'unicase/u32-casecoll'.
5513 * lib/unicase/u32-casecoll.c: New file.
5514 * modules/unicase/u32-casecoll: New file.
5516 New module 'unicase/u16-casecoll'.
5517 * lib/unicase/u16-casecoll.c: New file.
5518 * modules/unicase/u16-casecoll: New file.
5520 New module 'unicase/u8-casecoll'.
5521 * lib/unicase/u8-casecoll.c: New file.
5522 * lib/unicase/u-casecoll.h: New file.
5523 * modules/unicase/u8-casecoll: New file.
5525 New module 'unicase/u32-casexfrm'.
5526 * lib/unicase/u32-casexfrm.c: New file.
5527 * modules/unicase/u32-casexfrm: New file.
5529 New module 'unicase/u16-casexfrm'.
5530 * lib/unicase/u16-casexfrm.c: New file.
5531 * modules/unicase/u16-casexfrm: New file.
5533 New module 'unicase/u8-casexfrm'.
5534 * lib/unicase/u8-casexfrm.c: New file.
5535 * lib/unicase/u-casexfrm.h: New file.
5536 * modules/unicase/u8-casexfrm: New file.
5538 Tests for module 'unicase/u32-casecmp'.
5539 * modules/unicase/u32-casecmp-tests: New file.
5540 * tests/unicase/test-u32-casecmp.c: New file.
5542 Tests for module 'unicase/u16-casecmp'.
5543 * modules/unicase/u16-casecmp-tests: New file.
5544 * tests/unicase/test-u16-casecmp.c: New file.
5546 Tests for module 'unicase/u8-casecmp'.
5547 * modules/unicase/u8-casecmp-tests: New file.
5548 * tests/unicase/test-u8-casecmp.c: New file.
5549 * tests/unicase/test-casecmp.h: New file.
5551 New module 'unicase/u32-casecmp'.
5552 * lib/unicase/u32-casecmp.c: New file.
5553 * modules/unicase/u32-casecmp: New file.
5555 New module 'unicase/u16-casecmp'.
5556 * lib/unicase/u16-casecmp.c: New file.
5557 * modules/unicase/u16-casecmp: New file.
5559 New module 'unicase/u8-casecmp'.
5560 * lib/unicase/u8-casecmp.c: New file.
5561 * lib/unicase/u-casecmp.h: New file.
5562 * modules/unicase/u8-casecmp: New file.
5564 Tests for module 'unicase/u32-casefold'.
5565 * modules/unicase/u32-casefold-tests: New file.
5566 * tests/unicase/test-u32-casefold.c: New file.
5568 Tests for module 'unicase/u16-casefold'.
5569 * modules/unicase/u16-casefold-tests: New file.
5570 * tests/unicase/test-u16-casefold.c: New file.
5572 Tests for module 'unicase/u8-casefold'.
5573 * modules/unicase/u8-casefold-tests: New file.
5574 * tests/unicase/test-u8-casefold.c: New file.
5576 New module 'unicase/u32-casefold'.
5577 * lib/unicase/u32-casefold.c: New file.
5578 * modules/unicase/u32-casefold: New file.
5580 New module 'unicase/u16-casefold'.
5581 * lib/unicase/u16-casefold.c: New file.
5582 * modules/unicase/u16-casefold: New file.
5584 New module 'unicase/u8-casefold'.
5585 * lib/unicase/u8-casefold.c: New file.
5586 * lib/unicase/u-casefold.h: New file.
5587 * modules/unicase/u8-casefold: New file.
5589 New module 'unicase/tocasefold'.
5590 * lib/unicase/casefold.h: New file.
5591 * lib/unicase/tocasefold.c: New file.
5592 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
5593 * modules/unicase/tocasefold: New file.
5595 Tests for module 'unicase/u32-totitle'.
5596 * modules/unicase/u32-totitle-tests: New file.
5597 * tests/unicase/test-u32-totitle.c: New file.
5599 Tests for module 'unicase/u16-totitle'.
5600 * modules/unicase/u16-totitle-tests: New file.
5601 * tests/unicase/test-u16-totitle.c: New file.
5603 Tests for module 'unicase/u8-totitle'.
5604 * modules/unicase/u8-totitle-tests: New file.
5605 * tests/unicase/test-u8-totitle.c: New file.
5607 New module 'unicase/u32-totitle'.
5608 * lib/unicase/u32-totitle.c: New file.
5609 * modules/unicase/u32-totitle: New file.
5611 New module 'unicase/u16-totitle'.
5612 * lib/unicase/u16-totitle.c: New file.
5613 * modules/unicase/u16-totitle: New file.
5615 New module 'unicase/u8-totitle'.
5616 * lib/unicase/u8-totitle.c: New file.
5617 * lib/unicase/u-totitle.h: New file.
5618 * modules/unicase/u8-totitle: New file.
5620 Tests for module 'unicase/u32-tolower'.
5621 * modules/unicase/u32-tolower-tests: New file.
5622 * tests/unicase/test-u32-tolower.c: New file.
5624 Tests for module 'unicase/u16-tolower'.
5625 * modules/unicase/u16-tolower-tests: New file.
5626 * tests/unicase/test-u16-tolower.c: New file.
5628 Tests for module 'unicase/u8-tolower'.
5629 * modules/unicase/u8-tolower-tests: New file.
5630 * tests/unicase/test-u8-tolower.c: New file.
5632 New module 'unicase/u32-tolower'.
5633 * lib/unicase/u32-tolower.c: New file.
5634 * modules/unicase/u32-tolower: New file.
5636 New module 'unicase/u16-tolower'.
5637 * lib/unicase/u16-tolower.c: New file.
5638 * modules/unicase/u16-tolower: New file.
5640 New module 'unicase/u8-tolower'.
5641 * lib/unicase/u8-tolower.c: New file.
5642 * modules/unicase/u8-tolower: New file.
5644 Tests for module 'unicase/u32-toupper'.
5645 * modules/unicase/u32-toupper-tests: New file.
5646 * tests/unicase/test-u32-toupper.c: New file.
5648 Tests for module 'unicase/u16-toupper'.
5649 * modules/unicase/u16-toupper-tests: New file.
5650 * tests/unicase/test-u16-toupper.c: New file.
5652 Tests for module 'unicase/u8-toupper'.
5653 * modules/unicase/u8-toupper-tests: New file.
5654 * tests/unicase/test-u8-toupper.c: New file.
5656 New module 'unicase/u32-toupper'.
5657 * lib/unicase/u32-toupper.c: New file.
5658 * modules/unicase/u32-toupper: New file.
5660 New module 'unicase/u16-toupper'.
5661 * lib/unicase/u16-toupper.c: New file.
5662 * modules/unicase/u16-toupper: New file.
5664 New module 'unicase/u8-toupper'.
5665 * lib/unicase/u8-toupper.c: New file.
5666 * modules/unicase/u8-toupper: New file.
5668 New module 'unicase/u32-casemap'.
5669 * lib/unicase/u32-casemap.c: New file.
5670 * modules/unicase/u32-casemap: New file.
5672 New module 'unicase/u16-casemap'.
5673 * lib/unicase/u16-casemap.c: New file.
5674 * modules/unicase/u16-casemap: New file.
5676 New module 'unicase/u8-casemap'.
5677 * lib/unicase/unicasemap.h: New file.
5678 * lib/unicase/u8-casemap.c: New file.
5679 * lib/unicase/u-casemap.h: New file.
5680 * modules/unicase/u8-casemap: New file.
5682 New module 'unicase/special-casing'.
5683 * lib/unicase/special-casing.h: New file.
5684 * lib/unicase/special-casing.c: New file.
5685 * lib/unicase/special-casing-table.gperf: New file, generated by
5687 * modules/unicase/special-casing: New file.
5689 Tests for module 'unicase/locale-language'.
5690 * modules/unicase/locale-language-tests: New file.
5691 * tests/unicase/test-locale-language.sh: New file.
5692 * tests/unicase/test-locale-language.c: New file.
5694 New module 'unicase/locale-language'.
5695 * lib/unicase/locale-language.c: New file.
5696 * lib/unicase/locale-languages.gperf: New file.
5697 * modules/unicase/locale-language: New file.
5699 Generate more tables for case conversion and case folding.
5700 * lib/gen-uni-tables.c (SCC_*): New enum items.
5701 (struct special_casing_rule): New type.
5702 (casing_rules, num_casing_rules, allocated_casing_rules): New
5704 (add_casing_rule, fill_casing_rules): New functions.
5705 (struct casefold_rule): New type.
5706 (casefolding_rules, num_casefolding_rules,
5707 allocated_casefolding_rules): New variables.
5708 (fill_casefolding_rules): New function.
5709 (unicode_casefold): New variable.
5710 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
5711 sort_casing_rules, output_casing_rules): New functions.
5712 (main): Accept to more arguments: SpecialCasing.txt and
5713 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
5714 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
5715 Output mapping for casefolding.
5717 * lib/unicase.h: Include stdbool.h, uninorm.h.
5718 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
5719 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
5720 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
5722 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
5724 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
5725 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
5727 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
5728 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
5729 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
5730 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
5732 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
5734 2009-03-08 Bruno Haible <bruno@clisp.org>
5736 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
5737 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
5738 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
5739 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
5741 2009-03-07 Bruno Haible <bruno@clisp.org>
5743 Adjust u*_normcmp, u*_normcoll API.
5744 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
5745 u16_normcoll, u32_normcoll): Change failure conventions.
5746 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
5747 errno and return -1.
5748 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
5750 2009-03-07 Bruno Haible <bruno@clisp.org>
5752 Tests for module 'uninorm/u32-normcoll'.
5753 * modules/uninorm/u32-normcoll-tests: New file.
5754 * tests/uninorm/test-u32-normcoll.c: New file.
5756 Tests for module 'uninorm/u16-normcoll'.
5757 * modules/uninorm/u16-normcoll-tests: New file.
5758 * tests/uninorm/test-u16-normcoll.c: New file.
5760 Tests for module 'uninorm/u8-normcoll'.
5761 * modules/uninorm/u8-normcoll-tests: New file.
5762 * tests/uninorm/test-u8-normcoll.c: New file.
5764 2009-03-07 Bruno Haible <bruno@clisp.org>
5766 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
5767 tests/uninorm/test-u32-normcmp.c.
5768 * tests/uninorm/test-u32-normcmp.c: Include it.
5769 (test_nonascii): New function, extracted from main. Add some more
5771 (main): Invoke test_ascii and test_nonascii.
5772 * modules/uninorm/u32-normcmp-tests (Files): Add
5773 tests/uninorm/test-u32-normcmp.h.
5774 (Depends-on): Remove uninorm/u32-normcmp.
5776 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
5777 tests/uninorm/test-u16-normcmp.c.
5778 * tests/uninorm/test-u16-normcmp.c: Include it.
5779 (test_nonascii): New function, extracted from main. Add some more
5781 (main): Invoke test_ascii and test_nonascii.
5782 * modules/uninorm/u16-normcmp-tests (Files): Add
5783 tests/uninorm/test-u16-normcmp.h.
5784 (Depends-on): Remove uninorm/u16-normcmp.
5786 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
5787 tests/uninorm/test-u8-normcmp.c.
5788 * tests/uninorm/test-u8-normcmp.c: Include it.
5789 (test_nonascii): New function, extracted from main. Add some more
5791 (main): Invoke test_ascii and test_nonascii.
5792 * modules/uninorm/u8-normcmp-tests (Files): Add
5793 tests/uninorm/test-u8-normcmp.h.
5794 (Depends-on): Remove uninorm/u8-normcmp.
5796 2009-03-07 Bruno Haible <bruno@clisp.org>
5798 New module 'uninorm/u32-normcoll'.
5799 * lib/uninorm/u32-normcoll.c: New file.
5800 * modules/uninorm/u32-normcoll: New file.
5802 New module 'uninorm/u16-normcoll'.
5803 * lib/uninorm/u16-normcoll.c: New file.
5804 * modules/uninorm/u16-normcoll: New file.
5806 New module 'uninorm/u8-normcoll'.
5807 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
5809 * lib/uninorm/u8-normcoll.c: New file.
5810 * lib/uninorm/u-normcoll.h: New file.
5811 * modules/uninorm/u8-normcoll: New file.
5813 New module 'uninorm/u32-normxfrm'.
5814 * lib/uninorm/u32-normxfrm.c: New file.
5815 * modules/uninorm/u32-normxfrm: New file.
5817 New module 'uninorm/u16-normxfrm'.
5818 * lib/uninorm/u16-normxfrm.c: New file.
5819 * modules/uninorm/u16-normxfrm: New file.
5821 New module 'uninorm/u8-normxfrm'.
5822 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
5824 * lib/uninorm/u8-normxfrm.c: New file.
5825 * lib/uninorm/u-normxfrm.h: New file.
5826 * modules/uninorm/u8-normxfrm: New file.
5828 2009-03-07 Bruno Haible <bruno@clisp.org>
5830 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
5831 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
5832 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
5834 2009-03-07 Bruno Haible <bruno@clisp.org>
5836 New module 'memxfrm'.
5837 * lib/memxfrm.h: New file.
5838 * lib/memxfrm.c: New file.
5839 * modules/memxfrm: New file.
5841 2009-03-07 Bruno Haible <bruno@clisp.org>
5843 New module 'memcmp2'.
5844 * lib/memcmp2.h: New file.
5845 * lib/memcmp2.c: New file.
5846 * modules/memcmp2: New file.
5848 2009-03-07 Bruno Haible <bruno@clisp.org>
5850 Tests for module 'uninorm/decomposing-form'.
5851 * modules/uninorm/decomposing-form-tests: New file.
5852 * tests/uninorm/test-decomposing-form.c: New file.
5854 New module 'uninorm/decomposing-form'.
5855 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
5856 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
5857 Add 'decomposing_variant' field.
5858 * lib/uninorm/decomposing-form.c: New file.
5859 * lib/uninorm/nfc.c (uninorm_nfc): Update.
5860 * lib/uninorm/nfd.c (uninorm_nfd): Update.
5861 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
5862 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
5863 * modules/uninorm/decomposing-form: New file.
5864 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
5865 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
5867 2009-03-07 Bruno Haible <bruno@clisp.org>
5869 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
5872 2009-03-06 Bruno Haible <bruno@clisp.org>
5874 Tests for module 'uninorm/u32-normcmp'.
5875 * tests/uninorm/test-u32-normcmp.c: New file.
5876 * modules/uninorm/u32-normcmp-tests: New file.
5878 Tests for module 'uninorm/u16-normcmp'.
5879 * tests/uninorm/test-u16-normcmp.c: New file.
5880 * modules/uninorm/u16-normcmp-tests: New file.
5882 Tests for module 'uninorm/u8-normcmp'.
5883 * tests/uninorm/test-u8-normcmp.c: New file.
5884 * modules/uninorm/u8-normcmp-tests: New file.
5886 New module 'uninorm/u32-normcmp'.
5887 * lib/uninorm/u32-normcmp.c: New file.
5888 * modules/uninorm/u32-normcmp: New file.
5890 New module 'uninorm/u16-normcmp'.
5891 * lib/uninorm/u16-normcmp.c: New file.
5892 * modules/uninorm/u16-normcmp: New file.
5894 New module 'uninorm/u8-normcmp'.
5895 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
5897 * lib/uninorm/u8-normcmp.c: New file.
5898 * lib/uninorm/u-normcmp.h: New file.
5899 * modules/uninorm/u8-normcmp: New file.
5901 2009-03-06 Bruno Haible <bruno@clisp.org>
5903 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
5904 Reported by Eric Blake.
5906 2009-03-06 Eric Blake <ebb9@byu.net>
5907 Bruno Haible <bruno@clisp.org>
5909 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
5910 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
5912 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5913 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
5915 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5917 2009-03-06 Eric Blake <ebb9@byu.net>
5919 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
5920 to avoid compiler warnings.
5921 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
5923 2009-03-05 Bruno Haible <bruno@clisp.org>
5925 * tests/test-ftell.c (main): Disable test beyond end of file on
5927 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
5929 2009-03-05 Kamil Dudka <kdudka@redhat.com>
5931 * lib/filevercmp.c: Move hidden files up in ordering.
5932 * tests/test-filevercmp.c: Add tests for hidden files.
5934 2009-03-04 Bruno Haible <bruno@clisp.org>
5936 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
5937 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
5939 Reported by Simon Josefsson.
5941 2009-03-03 Bruno Haible <bruno@clisp.org>
5943 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
5944 Reported by Simon Josefsson.
5946 * doc/ld-version-script.texi: Update node reference.
5948 2009-03-03 Bruno Haible <bruno@clisp.org>
5950 * modules/visibility (License): Change to 'unlimited'.
5951 Suggested by Simon Josefsson.
5953 2009-03-03 Jim Meyering <meyering@redhat.com>
5955 unlinkdir: cannot_unlink_dir may modify process state
5956 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
5957 it's neither thread-safe nor appropriate for use in a library.
5959 2009-03-03 Eric Blake <ebb9@byu.net>
5961 test-closein: silence test under Darwin
5962 * tests/test-closein.sh: Ignore stderr from cat, since we don't
5963 care if it dies from EPIPE or EBADF.
5965 2009-03-03 Bruno Haible <bruno@clisp.org>
5967 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
5969 * doc/visibility.texi: Fix @node and @section.
5971 2009-03-03 Simon Josefsson <simon@josefsson.org>
5973 * doc/gnulib.texi: Link to sections for ld version script and
5975 * doc/visibility.texi: Add @node and @section.
5976 * modules/ld-version-script: New module.
5977 * m4/ld-version-script.m4: New file.
5978 * doc/ld-version-script.texi: New file.
5980 2009-03-02 David Lutterkort <lutter@redhat.com>
5982 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
5983 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5985 2009-03-02 Bruno Haible <bruno@clisp.org>
5987 * doc/visibility.texi: Mention libtool's -export-symbols option.
5989 2009-03-02 Jim Meyering <meyering@redhat.com>
5991 announce-gen: new option: --no-print-checksums
5992 * build-aux/announce-gen (usage): Describe it.
5993 (print_checksums): Print a newline here, not in the [*] footnote.
5996 2009-03-01 Bruno Haible <bruno@clisp.org>
5998 Use socklen_t in the native Windows replacements prototypes.
5999 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
6001 * lib/getsockopt.c (rpl_getsockopt): Likewise.
6002 * lib/setsockopt.c (rpl_setsockopt): Likewise.
6003 * modules/getsockopt (Depends-on): Add socklen.
6004 * modules/setsockopt (Depends-on): Add socklen.
6006 2009-03-01 Bruno Haible <bruno@clisp.org>
6008 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
6011 2009-03-01 Eric Blake <ebb9@byu.net>
6012 Bruno Haible <bruno@clisp.org>
6014 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
6016 * lib/wait-process.c (wait_subprocess): Omit error message about
6017 deadly signal sent to the child of termsigp != NULL.
6019 2009-03-01 Eric Blake <ebb9@byu.net>
6021 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
6023 2009-03-01 Bruno Haible <bruno@clisp.org>
6025 Avoid a gcc warning.
6026 * tests/test-sched.c (b): Make global.
6027 Reported by Eric Blake.
6029 2009-01-19 Martin Lambers <marlam@marlam.de>
6031 Provide POSIX semantics for socket timeout options on W32.
6032 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
6033 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
6034 * modules/setsockopt: Depend on sys_time module for struct timeval.
6035 * modules/getsockopt: Depend on sys_time module for struct timeval.
6037 2009-03-01 Simon Josefsson <simon@josefsson.org>
6039 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
6040 __USE_GNU, for consistency with netdb.in.h.
6041 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6043 2009-03-01 Bruno Haible <bruno@clisp.org>
6045 More support for FreeMiNT.
6046 * lib/fseeko.c (rpl_fseeko): Complete last commit.
6047 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6049 2009-03-01 Bruno Haible <bruno@clisp.org>
6051 More support for FreeMiNT.
6052 * lib/fpurge.c (fpurge): Correct last commit.
6053 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6055 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6057 Fix unportable awk script in vc-list-files.
6058 * build-aux/vc-list-files: In the replacement awk script, use
6059 substr with a second argument of 1, not zero.
6060 Report by Simon Josefsson.
6062 2009-02-28 Bruno Haible <bruno@clisp.org>
6064 More support for FreeMiNT.
6065 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
6067 * lib/fwriting.c (fwriting): Likewise.
6068 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
6070 2009-02-28 Bruno Haible <bruno@clisp.org>
6072 * tests/test-freadseek.c (main): Disable test beyond end of file on
6074 * tests/test-ftello.c (main): Likewise.
6075 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6077 2009-02-28 Bruno Haible <bruno@clisp.org>
6079 Add tentative support for FreeMiNT.
6080 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
6081 * lib/fpurge.c (fpurge): Likewise.
6082 * lib/freadable.c (freadable): Likewise.
6083 * lib/freading.c (freading): Likewise.
6084 * lib/freadptr.c (freadptr): Likewise.
6085 * lib/freadseek.c (freadptrinc): Likewise.
6086 * lib/fseeko.c (rpl_fseeko): Likewise.
6087 * lib/fseterr.c (fseterr): Likewise.
6088 * lib/fwritable.c (fwritable): Likewise.
6089 * lib/fwriting.c (fwriting): Likewise.
6090 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
6092 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6094 2009-02-28 Bruno Haible <bruno@clisp.org>
6096 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
6098 Reported by Jim Meyering.
6100 2009-02-28 Bruno Haible <bruno@clisp.org>
6102 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
6103 Mention the results of these tests on various platforms.
6104 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
6106 * doc/posix-functions/printf.texi: Likewise.
6107 * doc/posix-functions/snprintf.texi: Likewise.
6108 * doc/posix-functions/sprintf.texi: Likewise.
6109 * doc/posix-functions/vfprintf.texi: Likewise.
6110 * doc/posix-functions/vprintf.texi: Likewise.
6111 * doc/posix-functions/vsnprintf.texi: Likewise.
6112 * doc/posix-functions/vsprintf.texi: Likewise.
6113 * doc/glibc-functions/obstack_printf.texi: Likewise.
6114 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6116 2009-02-28 Bruno Haible <bruno@clisp.org>
6118 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
6119 Reported by Loïc Minier <lool@dooz.org>.
6121 2009-02-27 Bruno Haible <bruno@clisp.org>
6123 * gnulib-tool (func_import): Make the sed expression used to create the
6124 sed script for updating the .gitignore file POSIX compliant.
6125 Reported by Eric Blake.
6127 2009-02-27 Bruno Haible <bruno@clisp.org>
6129 * gnulib-tool (sed): Don't alias as "sed --posix".
6130 Reported by Eric Blake.
6132 2009-02-27 Bruno Haible <bruno@clisp.org>
6134 Avoid test link errors.
6135 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
6136 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
6137 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
6138 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
6139 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6141 2009-02-27 Bruno Haible <bruno@clisp.org>
6143 Avoid spurious "(cached)" in configure output.
6144 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
6145 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
6146 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6147 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6148 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6149 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6150 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6151 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6152 Reported by Eric Blake.
6154 2009-02-27 Eric Blake <ebb9@byu.net>
6156 printf: fix regression in previous patch
6157 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
6159 2009-02-27 Bruno Haible <bruno@clisp.org>
6161 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
6163 * lib/stdint.in.h: Likewise.
6164 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
6166 2009-02-27 Eric Blake <ebb9@byu.net>
6168 doc: mention more functions added in cygwin 1.7.0
6169 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
6171 * doc/posix-functions/open_wmemstream.texi: Likewise.
6172 * doc/posix-functions/wcsnlen.texi: Likewise.
6173 * doc/posix-functions/wcsnrtombs.texi: Likewise.
6174 * doc/posix-functions/wcstod.texi: Likewise.
6175 * doc/posix-functions/wcstof.texi: Likewise.
6176 * doc/posix-functions/wcstoimax.texi: Likewise.
6177 * doc/posix-functions/wcstok.texi: Likewise.
6178 * doc/posix-functions/wcstoumax.texi: Likewise.
6180 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
6181 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
6182 * doc/posix-functions/fprintf.texi: Update.
6183 * doc/posix-functions/printf.texi: Update.
6184 * doc/posix-functions/snprintf.texi: Update.
6185 * doc/posix-functions/sprintf.texi: Update.
6186 * doc/posix-functions/vfprintf.texi: Update.
6187 * doc/posix-functions/vprintf.texi: Update.
6188 * doc/posix-functions/vsnprintf.texi: Update.
6189 * doc/posix-functions/vsprintf.texi: Update.
6190 * doc/glibc-functions/obstack_printf.texi: Update.
6191 * doc/glibc-functions/obstack_vprintf.texi: Update.
6193 2009-02-26 Eric Blake <ebb9@byu.net>
6195 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
6196 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
6197 compilation bug by using runtime conversion.
6198 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6199 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
6200 * modules/ceill-tests (Files): Use nan.h.
6201 * modules/floorl-tests (Files): Likewise.
6202 * modules/frexpl-tests (Files): Likewise.
6203 * modules/isnanl-tests (Files): Likewise.
6204 * modules/ldexpl-tests (Files): Likewise.
6205 * modules/roundl-tests (Files): Likewise.
6206 * modules/truncl-tests (Files): Likewise.
6207 * tests/test-ceill.c (main): Use a working NaN.
6208 * tests/test-floorl.c (main): Likewise.
6209 * tests/test-frexpl.c (main): Likewise.
6210 * tests/test-isnan.c (test_long_double): Likewise.
6211 * tests/test-isnanl.h (main): Likewise.
6212 * tests/test-ldexpl.h (main): Likewise.
6213 * tests/test-roundl.h (main): Likewise.
6214 * tests/test-truncl.h (main): Likewise.
6215 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
6217 2009-02-26 Eric Blake <ebb9@byu.net>
6218 Bruno Haible <bruno@clisp.org>
6220 Work around a *printf bug with %ls on Solaris.
6221 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
6222 precision is specified, sprintf stops converting the wide string
6223 argument when the number of bytes that have been produced by this
6224 conversion equals or exceeds the precision.
6225 * doc/posix-functions/fprintf.texi: Update.
6226 * doc/posix-functions/printf.texi: Update.
6227 * doc/posix-functions/snprintf.texi: Update.
6228 * doc/posix-functions/sprintf.texi: Update.
6229 * doc/posix-functions/vfprintf.texi: Update.
6230 * doc/posix-functions/vprintf.texi: Update.
6231 * doc/posix-functions/vsnprintf.texi: Update.
6232 * doc/posix-functions/vsprintf.texi: Update.
6233 * doc/glibc-functions/obstack_printf.texi: Update.
6234 * doc/glibc-functions/obstack_vprintf.texi: Update.
6236 2009-02-26 Eric Blake <ebb9@byu.net>
6238 stdlib: favor compiler check of random.h
6239 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
6240 to avoid an ObjC random.h installed by Swarm.
6242 2009-02-26 Bruno Haible <bruno@clisp.org>
6244 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
6245 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
6246 Reported by Gary V. Vaughan <gary@gnu.org>.
6248 2009-02-26 Bruno Haible <bruno@clisp.org>
6250 Fix *printf behaviour regarding the %ls directive.
6251 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
6252 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
6253 NEED_PRINTF_DIRECTIVE_LS.
6254 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
6255 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6256 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6257 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
6258 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
6259 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
6260 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
6261 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6262 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6263 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6264 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6265 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
6266 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6267 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6268 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6269 * doc/posix-functions/fprintf.texi: Update.
6270 * doc/posix-functions/printf.texi: Update.
6271 * doc/posix-functions/snprintf.texi: Update.
6272 * doc/posix-functions/sprintf.texi: Update.
6273 * doc/posix-functions/vfprintf.texi: Update.
6274 * doc/posix-functions/vprintf.texi: Update.
6275 * doc/posix-functions/vsnprintf.texi: Update.
6276 * doc/posix-functions/vsprintf.texi: Update.
6277 * doc/glibc-functions/obstack_printf.texi: Update.
6278 * doc/glibc-functions/obstack_vprintf.texi: Update.
6279 Reported by Eric Blake.
6281 2009-02-25 Bruno Haible <bruno@clisp.org>
6283 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
6285 Reported by Gary V. Vaughan <gary@gnu.org>.
6287 2009-02-25 Bruno Haible <bruno@clisp.org>
6289 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
6290 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
6291 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
6292 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
6293 Reported by Gary V. Vaughan <gary@gnu.org>.
6295 2009-02-25 Bruno Haible <bruno@clisp.org>
6297 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
6298 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
6299 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
6300 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
6301 Reported by Gary V. Vaughan <gary@gnu.org>.
6303 2009-02-25 Eric Blake <ebb9@byu.net>
6305 tests: skip fseek/ftell tests if ungetc is broken
6306 * m4/ungetc.m4: New file.
6307 * modules/fseek-tests: Split test, so ungetc dependency is
6308 separate from rest of test.
6309 * modules/fseeko-tests: Likewise.
6310 * modules/ftell-tests: Likewise.
6311 * modules/ftello-tests: Likewise.
6312 * tests/test-fseek.c (main): Isolate ungetc dependency.
6313 * tests/test-fseeko.c (main): Likewise.
6314 * tests/test-ftell.c (main): Likewise.
6315 * tests/test-ftello.c (main): Likewise.
6316 * tests/test-fseek2.sh: New file.
6317 * tests/test-fseeko2.sh: Likewise.
6318 * tests/test-ftell2.sh: Likewise.
6319 * tests/test-ftello2.sh: Likewise.
6321 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
6323 test-getaddrinfo: fix usage of skip return code 77
6324 * tests/test-gettaddrinfo.c: Return skip code 77 only
6325 for first occurance of skip (4x77 is not 77)
6327 2009-02-25 Gary V. Vaughan <gary@gnu.org>
6329 strtod: avoid C99 decl-after-statement
6330 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
6332 2009-02-24 Eric Blake <ebb9@byu.net>
6334 strtod: detect HP-UX 11.31 bug
6335 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
6336 Reported by Gary V. Vaughan.
6338 2009-02-23 Bruno Haible <bruno@clisp.org>
6340 Fix invalid read past end of memory block.
6341 * lib/vasnprintf.c (DCHAR_SET): Define.
6342 (local_wcslen): Define only when needed.
6343 (local_strnlen, local_wcsnlen): New functions.
6344 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
6345 directives that involve a conversion ourselves.
6346 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
6347 wcsnlen, mbrtowc, wcrtomb.
6348 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
6349 * tests/test-vasprintf-posix.c (test_function): Likewise.
6350 * tests/test-snprintf-posix.h (test_function): Likewise.
6351 * tests/test-sprintf-posix.h (test_function): Likewise.
6352 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6354 2009-02-22 Bruno Haible <bruno@clisp.org>
6356 Implement new clarified decomposition of Hangul syllables.
6357 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
6358 of type LTV, return only a pairwise decomposition.
6359 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
6361 * tests/uninorm/test-decomposition.c (main): Updated expected result.
6362 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
6363 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
6365 2009-02-22 Bruno Haible <bruno@clisp.org>
6367 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
6368 zero-length results and shrink excess allocated memory.
6369 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
6370 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
6371 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
6372 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
6373 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
6374 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
6375 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
6376 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
6377 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
6378 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
6379 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
6380 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
6382 2009-02-21 Bruno Haible <bruno@clisp.org>
6384 * doc/gnulib.texi: Include safe-alloc.texi earlier.
6385 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
6386 spaces after a period. Put a space between a macro name and its
6387 argument list. Trivial rewordings.
6388 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
6389 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
6390 (main): Return 0 explicitly.
6392 2009-02-21 Bruno Haible <bruno@clisp.org>
6394 Tests for module 'uninorm/filter'.
6395 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
6396 * modules/uninorm/filter-tests: New file.
6398 New module 'uninorm/filter'.
6399 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
6400 uninorm_filter_flush, uninorm_filter_free): New declarations.
6401 * lib/uninorm/uninorm-filter.c: New file.
6402 * modules/uninorm/filter: New file.
6404 2009-02-21 Bruno Haible <bruno@clisp.org>
6406 Tests for module 'uninorm/nfkc'.
6407 * tests/uninorm/test-nfkc.c: New file.
6408 * tests/uninorm/test-u8-nfkc.c: New file.
6409 * tests/uninorm/test-u16-nfkc.c: New file.
6410 * tests/uninorm/test-u32-nfkc.c: New file.
6411 * tests/uninorm/test-u32-nfkc-big.sh: New file.
6412 * tests/uninorm/test-u32-nfkc-big.c: New file.
6413 * modules/uninorm/nfkc-tests: New file.
6415 New module 'uninorm/nfkc'.
6416 * lib/uninorm/nfkc.c: New file.
6417 * modules/uninorm/nfkc: New file.
6419 Tests for module 'uninorm/nfkd'.
6420 * tests/uninorm/test-nfkd.c: New file.
6421 * tests/uninorm/test-u8-nfkd.c: New file.
6422 * tests/uninorm/test-u16-nfkd.c: New file.
6423 * tests/uninorm/test-u32-nfkd.c: New file.
6424 * tests/uninorm/test-u32-nfkd-big.sh: New file.
6425 * tests/uninorm/test-u32-nfkd-big.c: New file.
6426 * modules/uninorm/nfkd-tests: New file.
6428 New module 'uninorm/nfkd'.
6429 * lib/uninorm/nfkd.c: New file.
6430 * modules/uninorm/nfkd: New file.
6432 Tests for module 'uninorm/nfc'.
6433 * tests/uninorm/test-nfc.c: New file.
6434 * tests/uninorm/test-u8-nfc.c: New file.
6435 * tests/uninorm/test-u16-nfc.c: New file.
6436 * tests/uninorm/test-u32-nfc.c: New file.
6437 * tests/uninorm/test-u32-nfc-big.sh: New file.
6438 * tests/uninorm/test-u32-nfc-big.c: New file.
6439 * modules/uninorm/nfc-tests: New file.
6441 New module 'uninorm/nfc'.
6442 * lib/uninorm/nfc.c: New file.
6443 * modules/uninorm/nfc: New file.
6445 Tests for module 'uninorm/nfd'.
6446 * tests/uninorm/test-nfd.c: New file.
6447 * tests/uninorm/test-u8-nfd.c: New file.
6448 * tests/uninorm/test-u16-nfd.c: New file.
6449 * tests/uninorm/test-u32-nfd.c: New file.
6450 * tests/uninorm/test-u32-nfd-big.sh: New file.
6451 * tests/uninorm/test-u32-nfd-big.c: New file.
6452 * tests/uninorm/test-u32-normalize-big.h: New file.
6453 * tests/uninorm/test-u32-normalize-big.c: New file.
6454 * tests/uninorm/NormalizationTest.txt: New file, created from
6455 Unicode 5.1.0 NormalizationTest.txt.
6456 * modules/uninorm/nfd-tests: New file.
6458 New module 'uninorm/nfd'.
6459 * lib/uninorm/nfd.c: New file.
6460 * modules/uninorm/nfd: New file.
6462 New module 'uninorm/u32-normalize'.
6463 * lib/uninorm/u32-normalize.c: New file.
6464 * modules/uninorm/u32-normalize: New file.
6466 New module 'uninorm/u16-normalize'.
6467 * lib/uninorm/u16-normalize.c: New file.
6468 * modules/uninorm/u16-normalize: New file.
6470 New module 'uninorm/u8-normalize'.
6471 * lib/uninorm/u8-normalize.c: New file.
6472 * lib/uninorm/normalize-internal.h: New file.
6473 * lib/uninorm/u-normalize-internal.h: New file.
6474 * modules/uninorm/u8-normalize: New file.
6476 New module 'uninorm/decompose-internal'.
6477 * lib/uninorm/decompose-internal.c: New file.
6478 * modules/uninorm/decompose-internal: New file.
6480 Tests for module 'uninorm/composition'.
6481 * tests/uninorm/test-composition.c: New file.
6482 * modules/uninorm/composition-tests: New file.
6484 New module 'uninorm/composition'.
6485 * lib/uninorm/composition.c: New file.
6486 * lib/uninorm/composition-table.gperf: New file, generated by
6488 * modules/uninorm/composition: New file.
6490 Tests for module 'uninorm/compat-decomposition'.
6491 * tests/uninorm/test-compat-decomposition.c: New file.
6492 * modules/uninorm/compat-decomposition-tests: New file.
6494 New module 'uninorm/compat-decomposition'.
6495 * lib/uninorm/decompose-internal.h: New file.
6496 * lib/uninorm/compat-decomposition.c: New file.
6497 * modules/uninorm/compat-decomposition: New file.
6499 Tests for module 'uninorm/canonical-decomposition'.
6500 * tests/uninorm/test-canonical-decomposition.c: New file.
6501 * modules/uninorm/canonical-decomposition-tests: New file.
6503 New module 'uninorm/canonical-decomposition'.
6504 * lib/uninorm/canonical-decomposition.c: New file.
6505 * modules/uninorm/canonical-decomposition: New file.
6507 Tests for module 'uninorm/decomposition'.
6508 * tests/uninorm/test-decomposition.c: New file.
6509 * modules/uninorm/decomposition-tests: New file.
6511 New module 'uninorm/decomposition'.
6512 * lib/uninorm/decomposition.c: New file.
6513 * modules/uninorm/decomposition: New file.
6515 New module 'uninorm/decomposition-table'.
6516 * lib/uninorm/decomposition-table.h: New file.
6517 * lib/uninorm/decomposition-table.c: New file.
6518 * lib/uninorm/decomposition-table1.h: New file, generated by
6520 * lib/uninorm/decomposition-table2.h: New file, generated by
6522 * modules/uninorm/decomposition-table: New file.
6524 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
6525 (UC_DECOMP_*): New enumeration items.
6526 (get_decomposition): New function.
6527 (struct decomp_table): New type.
6528 (output_decomposition, output_decomposition_tables): New functions.
6529 (unicode_composition_exclusions): New variable.
6530 (fill_composition_exclusions, debug_output_composition_tables): New
6532 (main): Accept one more argument. Invoke fill_composition_exclusions.
6533 Output decomposition and composition tables.
6535 New module 'uninorm/base'.
6536 * lib/uninorm.h: New file.
6537 * lib/unictype.h: Update comment.
6538 * modules/uninorm/base: New file.
6540 2009-02-21 David Lutterkort <lutter@redhat.com>
6542 Tests for module 'safe-alloc'.
6543 * tests/test-safe-alloc.c: New file.
6544 * modules/safe-alloc-tests: New file.
6546 New module 'safe-alloc'.
6547 * lib/safe-alloc.h: New file.
6548 * lib/safe-alloc.c: New file.
6549 * m4/safe-alloc.m4: New file.
6550 * modules/safe-alloc: New file.
6551 * doc/safe-alloc.texi: New file.
6552 * doc/gnulib.texi: Include it.
6553 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6556 2009-02-18 Bruno Haible <bruno@clisp.org>
6558 Fix link error on non-glibc systems.
6559 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
6561 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6563 2009-02-18 Jim Meyering <meyering@redhat.com>
6565 fts: avoid used-uninitialized error due to recent change
6566 * lib/fts.c (fts_read): Guard uses of the new member,
6567 parent->fts_n_dirs_remaining, since it's not relevant for
6568 the parent of a directory specified on the command-line.
6570 2009-02-17 James Youngman <jay@gnu.org>
6571 Bruno Haible <bruno@clisp.org>
6573 * m4/include_next.m4: Reformulate comment.
6575 2009-02-16 Jim Meyering <meyering@redhat.com>
6577 fts: add #if guards so that the fts_lgpl module still builds
6578 * lib/fts.c: Guard just-added hash-table-using parts with
6579 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
6580 Reported by Simon Josefsson.
6582 2009-02-15 Bruno Haible <bruno@clisp.org>
6584 * modules/array-mergesort-tests: New file.
6585 * tests/test-array-mergesort.c: New file.
6587 New module 'array-mergesort'.
6588 * modules/array-mergesort: New file.
6589 * lib/array-mergesort.h: New file.
6591 2009-02-15 Bruno Haible <bruno@clisp.org>
6593 Fix 2009-02-07 commit.
6594 * lib/gen-uni-tables.c (output_predicate, output_category,
6595 output_combclass, output_bidi_category, output_decimal_digit,
6596 output_digit, output_numeric, output_mirror, output_scripts,
6597 output_ident_category, output_simple_mapping): Fix format directives.
6598 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
6600 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
6602 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
6603 fixes are available from IBM.
6605 2009-02-13 Jim Meyering <meyering@redhat.com>
6607 fts: arrange not to stat non-directories in more cases
6608 This makes GNU find (when it doesn't need to stat each file)
6609 *much* more efficient at traversing reiserfs file systems.
6610 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
6611 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
6612 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
6613 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
6614 (leaf_optimization_applies): New function.
6615 (LCO_hash, LCO_compare): New helper functions.
6616 (link_count_optimize_ok): New function.
6617 (fts_stat): Initialize new member (if dir).
6618 (fts_read): Decrement parent's fts_n_dirs_remaining count if
6619 we've just stat'ed a directory. Skip the stat call when possible.
6621 Note this AFS-related exchange:
6622 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
6623 and note find's pioctl call in find/fstype.c.
6624 But that is necessary only if you want to enable the
6625 optimization for AFS, and for now, I don't.
6627 fts: move a function definition "up" (no semantic change)
6628 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
6629 "up" to precede upcoming use of a related function.
6631 2009-02-11 Jim Meyering <meyering@redhat.com>
6633 fts: correct internal computation of nlinks (optimization-related)
6634 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
6635 whether the current entry is a directory, so don't test it.
6637 2009-02-10 Bruno Haible <bruno@clisp.org>
6639 Tests for module 'uniwbrk/ulc-wordbreaks'.
6640 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
6641 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
6642 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
6644 Tests for module 'uniwbrk/u32-wordbreaks'.
6645 * modules/uniwbrk/u32-wordbreaks-tests: New file.
6646 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
6648 Tests for module 'uniwbrk/u16-wordbreaks'.
6649 * modules/uniwbrk/u16-wordbreaks-tests: New file.
6650 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
6652 Tests for module 'uniwbrk/u8-wordbreaks'.
6653 * modules/uniwbrk/u8-wordbreaks-tests: New file.
6654 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
6656 2009-02-10 Bruno Haible <bruno@clisp.org>
6658 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
6660 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
6661 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
6662 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
6664 2009-02-10 Simon Josefsson <simon@josefsson.org>
6666 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
6667 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
6669 2009-02-10 Bruno Haible <bruno@clisp.org>
6671 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
6672 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
6673 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
6674 * lib/unilbrk/u8-possible-linebreaks.c: Update.
6675 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
6676 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
6678 2009-02-09 Simon Josefsson <simon@josefsson.org>
6680 * lib/sockets.h (gl_fd_to_handle): New function.
6682 * tests/test-sockets.c: Call gl_fd_to_handle.
6684 2009-02-09 Bruno Haible <bruno@clisp.org>
6686 * doc/havelib.texi: Document the conventions on bi-arch systems.
6688 2009-02-08 Bruno Haible <bruno@clisp.org>
6690 Document the AC_LIB_LINKFLAGS macro.
6691 * doc/havelib.texi: New file, mostly written on 2005-05-24.
6692 * doc/gnulib.texi: Include it.
6694 2009-02-08 Bruno Haible <bruno@clisp.org>
6696 Fix wrong order of sections, compared to TOC.
6697 * doc/gnulib.texi: Include relocatable-maint.texi after the
6698 "Regular expressions" node, not before.
6700 2009-02-08 Bruno Haible <bruno@clisp.org>
6702 Tests for module 'unicase/totitle'.
6703 * modules/unicase/totitle-tests: New file.
6705 Tests for module 'unicase/tolower'.
6706 * modules/unicase/tolower-tests: New file.
6708 Tests for module 'unicase/toupper'.
6709 * modules/unicase/toupper-tests: New file.
6710 * tests/unicase/test-mapping-part1.h: New file.
6711 * tests/unicase/test-mapping-part2.h: New file.
6713 New module 'unicase/totitle'.
6714 * modules/unicase/totitle: New file.
6715 * lib/unicase/totitle.c: New file.
6717 New module 'unicase/tolower'.
6718 * modules/unicase/tolower: New file.
6719 * lib/unicase/tolower.c: New file.
6721 New module 'unicase/toupper'.
6722 * modules/unicase/toupper: New file.
6723 * lib/unicase/toupper.c: New file.
6724 * lib/unicase/simple-mapping.h: New file.
6726 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
6727 (mapping_table): New structure.
6728 (output_simple_mapping): New function.
6729 (main): Invoke output_simple_mapping_test and output_simple_mapping.
6730 * modules/gen-uni-tables (Description): Update.
6731 * lib/unicase/toupper.h: New file, automatically generated by
6733 * lib/unicase/tolower.h: New file, automatically generated by
6735 * lib/unicase/totitle.h: New file, automatically generated by
6737 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
6739 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
6741 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
6744 New module 'unicase/base'.
6745 * modules/unicase/base: New file.
6746 * lib/unicase.h: New file.
6748 2009-02-08 Bruno Haible <bruno@clisp.org>
6750 New module 'uniwbrk/ulc-wordbreaks'.
6751 * modules/uniwbrk/ulc-wordbreaks: New file.
6752 * lib/uniwbrk/ulc-wordbreaks.c: New file.
6754 New module 'uniwbrk/u32-wordbreaks'.
6755 * modules/uniwbrk/u32-wordbreaks: New file.
6756 * lib/uniwbrk/u32-wordbreaks.c: New file.
6758 New module 'uniwbrk/u16-wordbreaks'.
6759 * modules/uniwbrk/u16-wordbreaks: New file.
6760 * lib/uniwbrk/u16-wordbreaks.c: New file.
6762 New module 'uniwbrk/u8-wordbreaks'.
6763 * modules/uniwbrk/u8-wordbreaks: New file.
6764 * lib/uniwbrk/u8-wordbreaks.c: New file.
6765 * lib/uniwbrk/u-wordbreaks.h: New file.
6767 New module 'uniwbrk/table'.
6768 * modules/uniwbrk/table: New file.
6769 * lib/uniwbrk/wbrktable.h: New file.
6770 * lib/uniwbrk/wbrktable.c: New file.
6772 New module 'uniwbrk/wordbreak-property'.
6773 * modules/uniwbrk/wordbreak-property: New file.
6774 * lib/uniwbrk/wordbreak-property.c: New file.
6776 * lib/gen-uni-tables.c (WBP_*): New enum items.
6777 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
6778 (unicode_org_wbp): New variable.
6779 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
6781 (wbp_table): New structure.
6782 (output_wbp, output_wbrk_tables): New functions.
6783 (main): Accept additional argument. Invoke fill_org_wbp,
6784 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
6786 * modules/gen-uni-tables (Description): Update.
6787 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
6790 New module 'uniwbrk/base'.
6791 * modules/uniwbrk/base: New file.
6792 * lib/uniwbrk.h: New file.
6794 2009-02-08 Bruno Haible <bruno@clisp.org>
6796 Update to Unicode 5.1.0.
6797 * lib/gen-uni-tables.c (is_property_alphabetic): Include
6799 (is_property_default_ignorable_code_point): Don't include characters
6800 of category Cc or Cs and not-a-characters.
6801 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
6802 U+0D79, U+109E, U+109F, U+A60C.
6803 * lib/unictype/bidi_of.h: Regenerated.
6804 * lib/unictype/blocks.h: Regenerated.
6805 * lib/unictype/categ_C.h: Regenerated.
6806 * lib/unictype/categ_Cf.h: Regenerated.
6807 * lib/unictype/categ_Cn.h: Regenerated.
6808 * lib/unictype/categ_L.h: Regenerated.
6809 * lib/unictype/categ_Ll.h: Regenerated.
6810 * lib/unictype/categ_Lm.h: Regenerated.
6811 * lib/unictype/categ_Lo.h: Regenerated.
6812 * lib/unictype/categ_Lu.h: Regenerated.
6813 * lib/unictype/categ_M.h: Regenerated.
6814 * lib/unictype/categ_Mc.h: Regenerated.
6815 * lib/unictype/categ_Me.h: Regenerated.
6816 * lib/unictype/categ_Mn.h: Regenerated.
6817 * lib/unictype/categ_N.h: Regenerated.
6818 * lib/unictype/categ_Nd.h: Regenerated.
6819 * lib/unictype/categ_Nl.h: Regenerated.
6820 * lib/unictype/categ_No.h: Regenerated.
6821 * lib/unictype/categ_P.h: Regenerated.
6822 * lib/unictype/categ_Pd.h: Regenerated.
6823 * lib/unictype/categ_Pe.h: Regenerated.
6824 * lib/unictype/categ_Pf.h: Regenerated.
6825 * lib/unictype/categ_Pi.h: Regenerated.
6826 * lib/unictype/categ_Po.h: Regenerated.
6827 * lib/unictype/categ_Ps.h: Regenerated.
6828 * lib/unictype/categ_S.h: Regenerated.
6829 * lib/unictype/categ_Sk.h: Regenerated.
6830 * lib/unictype/categ_Sm.h: Regenerated.
6831 * lib/unictype/categ_So.h: Regenerated.
6832 * lib/unictype/categ_of.h: Regenerated.
6833 * lib/unictype/combining.h: Regenerated.
6834 * lib/unictype/ctype_alnum.h: Regenerated.
6835 * lib/unictype/ctype_alpha.h: Regenerated.
6836 * lib/unictype/ctype_graph.h: Regenerated.
6837 * lib/unictype/ctype_lower.h: Regenerated.
6838 * lib/unictype/ctype_print.h: Regenerated.
6839 * lib/unictype/ctype_punct.h: Regenerated.
6840 * lib/unictype/ctype_upper.h: Regenerated.
6841 * lib/unictype/decdigit.h: Regenerated.
6842 * lib/unictype/digit.h: Regenerated.
6843 * lib/unictype/mirror.h: Regenerated.
6844 * lib/unictype/numeric.h: Regenerated.
6845 * lib/unictype/pr_alphabetic.h: Regenerated.
6846 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
6847 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
6848 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
6849 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
6850 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
6851 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
6852 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
6853 * lib/unictype/pr_combining.h: Regenerated.
6854 * lib/unictype/pr_dash.h: Regenerated.
6855 * lib/unictype/pr_decimal_digit.h: Regenerated.
6856 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
6857 * lib/unictype/pr_deprecated.h: Regenerated.
6858 * lib/unictype/pr_diacritic.h: Regenerated.
6859 * lib/unictype/pr_extender.h: Regenerated.
6860 * lib/unictype/pr_format_control.h: Regenerated.
6861 * lib/unictype/pr_grapheme_base.h: Regenerated.
6862 * lib/unictype/pr_grapheme_extend.h: Regenerated.
6863 * lib/unictype/pr_grapheme_link.h: Regenerated.
6864 * lib/unictype/pr_id_continue.h: Regenerated.
6865 * lib/unictype/pr_id_start.h: Regenerated.
6866 * lib/unictype/pr_ideographic.h: Regenerated.
6867 * lib/unictype/pr_ignorable_control.h: Regenerated.
6868 * lib/unictype/pr_lowercase.h: Regenerated.
6869 * lib/unictype/pr_math.h: Regenerated.
6870 * lib/unictype/pr_numeric.h: Regenerated.
6871 * lib/unictype/pr_other_alphabetic.h: Regenerated.
6872 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
6873 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
6874 * lib/unictype/pr_other_id_continue.h: Regenerated.
6875 * lib/unictype/pr_other_lowercase.h: Regenerated.
6876 * lib/unictype/pr_other_math.h: Regenerated.
6877 * lib/unictype/pr_punctuation.h: Regenerated.
6878 * lib/unictype/pr_sentence_terminal.h: Regenerated.
6879 * lib/unictype/pr_soft_dotted.h: Regenerated.
6880 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
6881 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
6882 * lib/unictype/pr_unified_ideograph.h: Regenerated.
6883 * lib/unictype/pr_uppercase.h: Regenerated.
6884 * lib/unictype/pr_xid_continue.h: Regenerated.
6885 * lib/unictype/pr_xid_start.h: Regenerated.
6886 * lib/unictype/pr_zero_width.h: Regenerated.
6887 * lib/unictype/scripts.h: Regenerated.
6888 * lib/unictype/scripts_byname.gperf: Regenerated.
6889 * lib/unictype/sy_java_ident.h: Regenerated.
6890 * lib/unilbrk/lbrkprop1.h: Regenerated.
6891 * lib/unilbrk/lbrkprop2.h: Regenerated.
6892 * tests/unictype/test-categ_C.c: Regenerated.
6893 * tests/unictype/test-categ_Cf.c: Regenerated.
6894 * tests/unictype/test-categ_Cn.c: Regenerated.
6895 * tests/unictype/test-categ_L.c: Regenerated.
6896 * tests/unictype/test-categ_Ll.c: Regenerated.
6897 * tests/unictype/test-categ_Lm.c: Regenerated.
6898 * tests/unictype/test-categ_Lo.c: Regenerated.
6899 * tests/unictype/test-categ_Lu.c: Regenerated.
6900 * tests/unictype/test-categ_M.c: Regenerated.
6901 * tests/unictype/test-categ_Mc.c: Regenerated.
6902 * tests/unictype/test-categ_Me.c: Regenerated.
6903 * tests/unictype/test-categ_Mn.c: Regenerated.
6904 * tests/unictype/test-categ_N.c: Regenerated.
6905 * tests/unictype/test-categ_Nd.c: Regenerated.
6906 * tests/unictype/test-categ_Nl.c: Regenerated.
6907 * tests/unictype/test-categ_No.c: Regenerated.
6908 * tests/unictype/test-categ_P.c: Regenerated.
6909 * tests/unictype/test-categ_Pd.c: Regenerated.
6910 * tests/unictype/test-categ_Pe.c: Regenerated.
6911 * tests/unictype/test-categ_Pf.c: Regenerated.
6912 * tests/unictype/test-categ_Pi.c: Regenerated.
6913 * tests/unictype/test-categ_Po.c: Regenerated.
6914 * tests/unictype/test-categ_Ps.c: Regenerated.
6915 * tests/unictype/test-categ_S.c: Regenerated.
6916 * tests/unictype/test-categ_Sk.c: Regenerated.
6917 * tests/unictype/test-categ_Sm.c: Regenerated.
6918 * tests/unictype/test-categ_So.c: Regenerated.
6919 * tests/unictype/test-ctype_alnum.c: Regenerated.
6920 * tests/unictype/test-ctype_alpha.c: Regenerated.
6921 * tests/unictype/test-ctype_graph.c: Regenerated.
6922 * tests/unictype/test-ctype_lower.c: Regenerated.
6923 * tests/unictype/test-ctype_print.c: Regenerated.
6924 * tests/unictype/test-ctype_punct.c: Regenerated.
6925 * tests/unictype/test-ctype_upper.c: Regenerated.
6926 * tests/unictype/test-decdigit.h: Regenerated.
6927 * tests/unictype/test-digit.h: Regenerated.
6928 * tests/unictype/test-numeric.h: Regenerated.
6929 * tests/unictype/test-pr_alphabetic.c: Regenerated.
6930 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
6931 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
6932 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
6933 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
6934 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
6935 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
6936 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
6937 * tests/unictype/test-pr_combining.c: Regenerated.
6938 * tests/unictype/test-pr_dash.c: Regenerated.
6939 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
6940 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
6941 * tests/unictype/test-pr_deprecated.c: Regenerated.
6942 * tests/unictype/test-pr_diacritic.c: Regenerated.
6943 * tests/unictype/test-pr_extender.c: Regenerated.
6944 * tests/unictype/test-pr_format_control.c: Regenerated.
6945 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
6946 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
6947 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
6948 * tests/unictype/test-pr_id_continue.c: Regenerated.
6949 * tests/unictype/test-pr_id_start.c: Regenerated.
6950 * tests/unictype/test-pr_ideographic.c: Regenerated.
6951 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
6952 * tests/unictype/test-pr_lowercase.c: Regenerated.
6953 * tests/unictype/test-pr_math.c: Regenerated.
6954 * tests/unictype/test-pr_numeric.c: Regenerated.
6955 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
6956 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
6958 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
6959 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
6960 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
6961 * tests/unictype/test-pr_other_math.c: Regenerated.
6962 * tests/unictype/test-pr_punctuation.c: Regenerated.
6963 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
6964 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
6965 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
6966 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
6967 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
6968 * tests/unictype/test-pr_uppercase.c: Regenerated.
6969 * tests/unictype/test-pr_xid_continue.c: Regenerated.
6970 * tests/unictype/test-pr_xid_start.c: Regenerated.
6971 * tests/unictype/test-pr_zero_width.c: Regenerated.
6973 Update to Unicode 5.1.0.
6974 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
6975 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
6976 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
6977 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
6978 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
6979 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
6980 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
6981 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
6982 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
6983 (nonspacing_table_ind): Update.
6984 * tests/uniwidth/test-uc_width2.sh: Update expected result.
6986 Update to Unicode 5.1.0.
6987 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
6989 * lib/uniname/uniname.c (unicode_character_name,
6990 unicode_name_character): Add the range 0x1Fxxx to the code transform.
6991 * lib/uniname/uninames.h: Regenerated.
6992 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
6994 2009-02-07 Bruno Haible <bruno@clisp.org>
6996 Merge gen-ctype and gen-lbrk into a single program.
6997 * lib/gen-uni-tables.c: New file, incorporating
6998 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
6999 Add directory prefixes to the names of the generated files.
7000 * lib/unictype/gen-ctype.c: Remove file.
7001 * lib/unilbrk/gen-lbrk.c: Remove file.
7002 * modules/gen-uni-tables: New file.
7003 * modules/unictype/gen-ctype: Remove file.
7004 * modules/unilbrk/gen-lbrk: Remove file.
7006 2009-02-07 Bruno Haible <bruno@clisp.org>
7008 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
7010 New module 'unistr/u32-strcoll'.
7011 * modules/unistr/u32-strcoll: New file.
7012 * lib/unistr/u32-strcoll.c: New file.
7014 New module 'unistr/u16-strcoll'.
7015 * modules/unistr/u16-strcoll: New file.
7016 * lib/unistr/u16-strcoll.c: New file.
7018 New module 'unistr/u8-strcoll'.
7019 * modules/unistr/u8-strcoll: New file.
7020 * lib/unistr/u8-strcoll.c: New file.
7021 * lib/unistr/u-strcoll.h: New file.
7023 2009-02-07 Bruno Haible <bruno@clisp.org>
7025 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
7026 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7027 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7028 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
7029 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
7030 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
7032 2009-02-07 Bruno Haible <bruno@clisp.org>
7035 * lib/unictype/gen-ctype.c (output_predicate, output_category,
7036 output_combclass, output_bidi_category, output_decimal_digit,
7037 output_digit, output_numeric, output_mirror, output_scripts,
7038 output_ident_category): Use proper width specifier in format strings.
7040 2009-02-07 Bruno Haible <bruno@clisp.org>
7042 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
7045 2009-02-07 Jim Meyering <meyering@redhat.com>
7047 regex: avoid compilation failure with upcoming gcc-4.4
7048 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
7049 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
7050 "... error: integer overflow in preprocessor expression".
7052 2009-02-05 Ben Pfaff <blp@gnu.org>
7054 Fix link errors on Windows when close module is used.
7055 * modules/close: Add $(LIB_CLOSE) to Link section.
7056 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
7057 $(LIB_CLOSE) on Windows.
7059 2009-02-05 Jim Meyering <meyering@redhat.com>
7061 still avoid unused-parameter warnings, but do it cleanly
7062 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
7063 (get_fs_usage): Cast to void instead.
7064 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
7065 (dev_from_mount_options, read_file_system_list): Cast to void.
7066 Prompted by Bruno Haible.
7068 2009-02-04 Jim Meyering <meyering@redhat.com>
7070 fsusage.c: correct copyright year
7071 * lib/fsusage.c: Reflect year in which the change is pushed into
7073 avoid misc. warnings
7074 * lib/fsusage.c (UNUSED_PARAM): Define.
7075 (get_fs_usage): Mark parameter "disk" as unused.
7076 * lib/getugroups.c (getgrent): Use "void" in prototype.
7077 * lib/mountlist.c: Mark unused parameters.
7078 (read_file_system_list): Declare a local with "const".
7079 * lib/nanosleep.c (getnow): Declare static.
7080 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
7082 dirfd: set errno upon failure
7083 * lib/dirfd.c: Include <errno.h>.
7084 Set errno to ENOTSUP when returning -1.
7085 * modules/dirfd (Depends-on): Add errno.
7086 Suggested by John Kodis <kodis@comcast.net>.
7088 2009-02-01 Bruno Haible <bruno@clisp.org>
7090 Don't assume sizeof (long) >= sizeof (void *).
7091 * lib/memcmp.c: Include stdint.h.
7092 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
7093 srcp2 to 'const byte *'.
7094 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
7096 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
7097 * modules/memcmp (Depends-on): Add stdint.
7098 Reported by Ozkan Sezer <sezeroz@gmail.com>.
7100 2009-01-30 Eric Blake <ebb9@byu.net>
7102 fix more require-before-expand issues
7103 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
7104 expand, AC_PROG_AWK.
7105 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
7107 2009-01-28 Eric Blake <ebb9@byu.net>
7109 version-etc: use consistent URL formatting
7110 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
7111 Improve formatting. Use fputs for string without %.
7113 2009-01-28 Jim Meyering <meyering@redhat.com>
7115 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
7116 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
7117 "underquoted definition of NAME" from autoconf-2.59.
7119 2009-01-28 Bruno Haible <bruno@clisp.org>
7121 * doc/gnulib.texi: Add "Obsolete modules" to index.
7123 2009-01-28 Jim Meyering <meyering@redhat.com>
7125 useless-if-before-free: recognize more variants
7126 * build-aux/useless-if-before-free: Also recognize e.g.,
7127 if (NULL != p) free (p);
7129 2009-01-27 Mark McLoughlin <markmc@redhat.com>
7131 test-getaddrinfo: skip (don't fail) this test when there's no network
7132 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
7133 on the presumption that it means you lack network access.
7135 2009-01-26 Jim Meyering <meyering@redhat.com>
7137 fflush: avoid warnings on modern systems
7138 * lib/fflush.c (rpl_fflush): Move declarations of locals,
7139 pos and result, into scopes where they're used.
7141 2009-01-26 Eric Blake <ebb9@byu.net>
7143 Silence warning reintroduced by recent extensions patch.
7144 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
7145 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
7148 Backport improved autoconf semantics of AC_DEFUN_ONCE.
7149 * m4/00gnulib.m4: New file.
7150 * gnulib-tool (func_get_filelist): Always use it.
7151 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
7152 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
7154 2009-01-25 Bruno Haible <bruno@clisp.org>
7156 Make test-quotearg work on MacOS X and AIX.
7157 * tests/test-quotearg.sh: New file.
7158 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
7159 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
7160 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
7161 include <libintl.h>.
7162 (fake_locale): Remove variable.
7163 (gettext, dgettext, dcgettext): Remove functions.
7164 (main): Instead of setting a fake locale, set a real locale. Call
7165 textdomain and bindtextdomain.
7166 * modules/quotearg-tests (Files): Add the new files.
7167 (Depends-on): Add gettext, setenv, unsetenv.
7168 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
7169 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
7170 Augment TESTS_ENVIRONMENT.
7172 2009-01-25 Bruno Haible <bruno@clisp.org>
7174 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
7175 fr_FR.ISO8859-1 locale on MacOS X.
7176 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
7177 ja_JP.eucJP locale on MacOS X.
7178 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
7179 zh_CN.GB18030 locale on MacOS X.
7181 2009-01-25 Bruno Haible <bruno@clisp.org>
7183 Avoid link errors on MacOS X 10.3.
7184 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
7185 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7187 2009-01-25 Bruno Haible <bruno@clisp.org>
7189 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7190 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
7191 * modules/pipe (Files): Remove m4/posix_spawn.m4.
7192 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7193 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
7194 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7195 posix_spawnattr_init, posix_spawnattr_setsigmask,
7196 posix_spawnattr_setflags, posix_spawnattr_destroy.
7198 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7199 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
7200 * modules/execute (Files): Remove m4/posix_spawn.m4.
7201 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7202 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7203 posix_spawnattr_init, posix_spawnattr_setsigmask,
7204 posix_spawnattr_setflags, posix_spawnattr_destroy.
7206 2009-01-25 Bruno Haible <bruno@clisp.org>
7208 * lib/glthread/threadlib.c: Include <stdlib.h>.
7210 2009-01-25 Bruno Haible <bruno@clisp.org>
7212 * lib/glthread/threadlib.c (dummy): New declaration.
7214 2009-01-25 Bruno Haible <bruno@clisp.org>
7216 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
7217 multibyte characters also for the GB18030 encoding. Don't crash when
7218 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
7220 2009-01-25 Bruno Haible <bruno@clisp.org>
7222 Avoid redefining 'struct random_data' on OSF/1 5.1.
7223 * lib/stdlib.in.h: Include <random.h> if it exists.
7224 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
7225 HAVE_RANDOM_H. Include <random.h> when testing whether
7226 'struct random_data' exists.
7227 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
7229 2009-01-25 Bruno Haible <bruno@clisp.org>
7231 Don't install charset.alias on MacOS X >= 10.3.
7232 * lib/localcharset.c (DARWIN7): New macro.
7233 (get_charset_aliases): Hardcode the result for Darwin7.
7234 * modules/localcharset (install-exec-local): Don't install
7235 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
7237 2009-01-25 Bruno Haible <bruno@clisp.org>
7239 Don't install charset.alias on mingw and Cygwin.
7240 * modules/localcharset (install-exec-local): Don't install
7241 charset.alias on mingw and Cygwin, if the file does not yet exist.
7242 The result for these platforms is hardcoded in localcharset.c.
7244 2009-01-25 Bruno Haible <bruno@clisp.org>
7246 Make it possible again to use AC_GNU_SOURCE together with gnulib.
7247 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
7248 before requiring AC_USE_SYSTEM_EXTENSIONS.
7250 2009-01-25 Jim Meyering <meyering@redhat.com>
7252 c-strtod: avoid warnings
7253 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
7254 "assignment discards qualifiers from pointer target type" warnings.
7256 2009-01-24 Bruno Haible <bruno@clisp.org>
7258 Add support for non-UTF-8 locales on MacOS X.
7259 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
7260 canonical encodings. For Darwin 7 and newer, don't map traditional
7262 Reported by Vincent Lefevre <vincent@vinc17.org>
7263 at <http://savannah.gnu.org/bugs/?25235>.
7265 2009-01-24 Bruno Haible <bruno@clisp.org>
7267 * doc/gnulib.texi (Obsolete modules): New section.
7268 Reported by Mike Frysinger <vapier@gentoo.org>.
7270 2009-01-24 Bruno Haible <bruno@clisp.org>
7272 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
7275 2009-01-24 Bruno Haible <bruno@clisp.org>
7277 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
7278 Reported by Eric Blake.
7280 2009-01-24 Bruno Haible <bruno@clisp.org>
7282 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
7283 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
7284 Reported by Gary V. Vaughan <gary@gnu.org>.
7286 2009-01-24 Bruno Haible <bruno@clisp.org>
7288 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
7290 2009-01-23 Bruno Haible <bruno@clisp.org>
7292 Make c-strtod, c-strtold usable in libraries.
7293 * lib/c-strtod.c: Include string.h instead of xalloc.h.
7294 (C_STRTOD): Call strdup instead of xstrdup.
7295 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
7296 * modules/c-strtold (Depends-on): Likewise.
7297 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
7298 * NEWS: Mention the change.
7299 Reported by Michael Gold <mgold@ncf.ca>.
7301 2009-01-23 Jim Meyering <meyering@redhat.com>
7303 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
7304 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
7305 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
7307 2009-01-23 Simon Josefsson <simon@josefsson.org>
7309 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
7311 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
7312 * modules/version-etc (Description): Update.
7314 2009-01-22 Bruno Haible <bruno@clisp.org>
7316 Cache the C locale object.
7317 * lib/c-strtod.c (c_locale_cache): New variable.
7318 (c_locale): New function.
7319 (C_STRTOD): Use it, and don't call freelocale.
7320 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
7321 Suggested by Paolo Bonzini.
7323 2009-01-21 Bruno Haible <bruno@clisp.org>
7325 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
7326 conditions other than overflow.
7328 2009-01-21 Bruno Haible <bruno@clisp.org>
7330 * lib/c-strtod.c: Include errno.h.
7331 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
7332 value from STRTOD_L and STRTOD.
7334 2009-01-21 Bruno Haible <bruno@clisp.org>
7335 and Jim Meyering <meyering@redhat.com>
7337 nanosleep: skip configure test (fail it) for apple universal builds
7338 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
7339 universal builds, assume that nanosleep does not work.
7340 * modules/nanosleep (Depends-on): Add multiarch.
7342 mktime: skip configure test (fail it) for apple universal builds
7343 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
7344 universal builds, assume that mktime does not work.
7345 * modules/mktime (Depends-on): Add multiarch.
7347 2009-01-21 Eric Blake <ebb9@byu.net>
7349 multiarch: avoid expand-before-require warning
7350 * modules/multiarch (configure.ac): Require, rather than expand,
7352 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
7353 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
7354 enforce that all clients require it. Partial reversion of
7357 error: avoid expand-before-require warning
7358 * modules/errno (configure.ac): Require, rather than expand,
7360 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
7361 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
7362 enforce that all clients require it.
7364 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
7365 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
7366 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
7367 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
7369 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
7372 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7374 regex: do not depend on obsolete modules.
7375 * modules/regex: Remove memcmp and memmove.
7377 2009-01-20 Bruno Haible <bruno@clisp.org>
7379 Make the 'link' module link on Windows NT 4.
7380 * lib/link.c (_WIN32_WINNT): Don't define.
7381 (CreateHardLinkFuncType): New type.
7382 (CreateHardLinkFunc, initialized): New variables.
7383 (initialize): New function.
7384 (link): Invoke CreateHardLink indirectly through the function pointer.
7386 2009-01-20 Bruno Haible <bruno@clisp.org>
7388 Fix compilation failure on mingw.
7389 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
7391 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
7393 * doc/c-strtod.texi: Mention a couple of restrictions.
7395 2009-01-20 Jim Meyering <meyering@redhat.com>
7397 gettimeofday: move more declarations out of functions
7398 * lib/gettimeofday.c: Move extern declarations of tzset and
7399 gmtime out of containing functions. Prompted by Bruno Haible.
7401 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7403 regex: do not depend on obsolete modules.
7404 * modules/regex: Remove memcmp and memmove.
7406 2009-01-19 Bruno Haible <bruno@clisp.org>
7408 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7409 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
7410 gl_BIGENDIAN, not AC_C_BIGENDIAN.
7411 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
7412 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
7414 2009-01-19 Bruno Haible <bruno@clisp.org>
7416 * tests/test-link.c: Include <errno.h>.
7417 (main): Exit with code 77 when a hard link cannot be created due to
7419 * tests/test-link.sh: Skip test when a hard link cannot be created due
7421 Suggested by Eric Blake.
7423 2009-01-19 Martin Lambers <marlam@marlam.de>
7425 * modules/link-tests: New file.
7426 * tests/test-link.sh: New file.
7427 * tests/test-link.c: New file.
7429 2009-01-19 Eric Blake <ebb9@byu.net>
7431 doc: mention another function added in cygwin 1.7.0
7432 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
7433 Another new function in cygwin 1.7.
7435 2009-01-19 Bruno Haible <bruno@clisp.org>
7437 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7438 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
7439 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
7440 gl_BIGENDIAN, not AC_C_BIGENDIAN.
7441 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7442 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
7443 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7444 * m4/md4.m4 (gl_MD4): Likewise.
7445 * m4/md5.m4 (gl_MD5): Likewise.
7446 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
7447 * m4/sha1.m4 (gl_SHA1): Likewise.
7448 * m4/sha256.m4 (gl_SHA256): Likewise.
7449 * m4/sha512.m4 (gl_SHA512): Likewise.
7451 2009-01-19 Bruno Haible <bruno@clisp.org>
7453 * modules/uniname/uniname-tests (Depends-on): Add progname.
7454 * tests/uniname/test-uninames.c: Include progname.h.
7455 (main): Call set_program_name.
7457 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
7458 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
7459 (main): Call set_program_name.
7461 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
7462 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
7463 (main): Call set_program_name.
7465 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
7466 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
7467 (main): Call set_program_name.
7469 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
7470 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
7471 (main): Call set_program_name.
7473 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
7474 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
7475 (main): Call set_program_name.
7477 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
7478 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
7479 (main): Call set_program_name.
7481 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
7482 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
7483 (main): Call set_program_name.
7485 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
7486 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
7487 (main): Call set_program_name.
7489 2009-01-19 Eric Blake <ebb9@byu.net>
7491 test-unistd: test previous patch
7492 * tests/test-unistd.c: Test *_FILENO macros.
7494 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
7495 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7496 Guarantee a definition.
7497 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
7498 * modules/unistd-safer (Depends-on): Add dependency on unistd.
7499 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
7500 * lib/dup-safer.c (STDERR_FILENO): Likewise.
7501 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7503 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
7504 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
7505 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7507 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
7508 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
7509 (STDERR_FILENO): Likewise.
7510 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
7511 (STDERR_FILENO): Likewise.
7512 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
7513 (STDERR_FILENO): Likewise.
7514 Reported by Elbert Pol.
7516 2009-01-19 Eric Blake <ebb9@byu.net>
7518 doc: mention more functions added in cygwin 1.7.0
7519 * doc/posix-functions/abort.texi (abort): Update wording related
7521 * doc/posix-functions/daylight.texi (daylight): Likewise.
7522 * doc/posix-functions/optarg.texi (optarg): Likewise.
7523 * doc/posix-functions/optarg.texi (opterr): Likewise.
7524 * doc/posix-functions/optarg.texi (optind): Likewise.
7525 * doc/posix-functions/optarg.texi (optopt): Likewise.
7526 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
7527 worked in 1.5.x, and was withdrawn in 1.7.
7528 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7529 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
7531 * doc/posix-functions/perror.texi (perror): Likewise.
7532 * doc/posix-functions/printf.texi (printf): Likewise.
7533 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
7534 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
7535 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7536 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7537 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7538 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
7539 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
7541 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
7543 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
7545 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
7546 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
7548 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
7549 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
7550 * doc/posix-functions/confstr.texi (confstr): Likewise.
7551 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
7552 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
7553 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
7554 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
7555 * doc/posix-functions/fputws.texi (fputws): Likewise.
7556 * doc/posix-functions/fwide.texi (fwide): Likewise.
7557 * doc/posix-functions/getwc.texi (getwc): Likewise.
7558 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
7559 * doc/posix-functions/putwc.texi (putwc): Likewise.
7560 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7561 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
7562 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
7563 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7564 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
7565 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
7566 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
7567 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
7568 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
7569 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
7570 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
7572 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
7574 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
7575 * lib/ioctl.c: Include <sys/ioctl.h>.
7577 2009-01-19 Simon Josefsson <simon@josefsson.org>
7579 * modules/getdate-tests (Depends-on): Add progname.
7580 * tests/test-getdate.c: Use progname module, to avoid link errors
7581 on non-glibc systems.
7583 2009-01-18 Simon Josefsson <simon@josefsson.org>
7585 * modules/filenamecat-tests (Depends-on): Add progname.
7586 * modules/fstrcmp-tests (Depends-on): Likewise.
7588 * tests/test-filenamecat.c: Use progname module, to avoid link
7589 errors on non-glibc systems.
7590 * tests/test-fstrcmp.c: Likewise.
7592 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
7594 gettimeofday: avoid warning: nested extern declaration of 'localtime'
7595 * lib/gettimeofday.c: Move extern declaration out of function.
7597 2009-01-18 Bruno Haible <bruno@clisp.org>
7599 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
7600 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
7601 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
7603 2009-01-18 Bruno Haible <bruno@clisp.org>
7605 * lib/strftime.c (MEMPCPY): Remove unused macro.
7606 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
7608 2009-01-18 Martin Lambers <marlam@marlam.de>
7611 * lib/unistd.in.h (link): New declaration.
7612 * lib/link.c: New file.
7613 * m4/link.m4: New file.
7614 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
7616 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
7617 * modules/link: New file.
7618 * doc/posix-functions/link.texi: Mention the new module.
7620 2009-01-18 Bruno Haible <bruno@clisp.org>
7622 * tests/test-avltree_list.c (main): Call set_program_name.
7623 * tests/test-avltree_oset.c (main): Likewise.
7624 * tests/test-obstack-printf.c: Include progname.h.
7625 (main): Call set_program_name.
7626 * tests/test-quotearg.c: Include progname.h.
7627 (main): Call set_program_name.
7628 * tests/test-xmemdup0.c: Include progname.h.
7629 (main): Call set_program_name.
7631 2009-01-18 Bruno Haible <bruno@clisp.org>
7633 New module 'alphasort'.
7634 * lib/dirent.in.h (alphasort): New declaration.
7635 * lib/alphasort.c: New file, from glibc with modifications.
7636 * m4/alphasort.m4: New file.
7637 * modules/alphasort: New file.
7638 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
7640 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
7642 * doc/posix-functions/alphasort.texi: Mention the new module and the
7643 portability problems.
7645 2009-01-18 Bruno Haible <bruno@clisp.org>
7647 New module 'scandir'.
7648 * lib/dirent.in.h (scandir): New declaration.
7649 * lib/scandir.c: New file, from glibc with modifications.
7650 * m4/scandir.m4: New file.
7651 * modules/scandir: New file.
7652 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
7654 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
7656 * doc/posix-functions/scandir.texi: Mention the new module and the
7657 portability problems.
7659 2009-01-17 Bruno Haible <bruno@clisp.org>
7661 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
7662 Update documentation.
7663 (func_remove_suffix): Escape all dots in the suffix. Update
7665 (func_filter_filelist): Update documentation.
7666 Reported by Ralf Wildenhues.
7668 2009-01-17 Bruno Haible <bruno@clisp.org>
7670 * modules/dprintf-posix-tests: New file.
7671 * tests/test-dprintf-posix.sh: New file.
7672 * tests/test-dprintf-posix.c: New file.
7674 New modules 'dprintf', 'dprintf-posix'.
7675 * lib/stdio.in.h (dprintf): New declaration.
7676 * lib/dprintf.c: New file.
7677 * m4/dprintf.m4: New file.
7678 * m4/dprintf-posix.m4: New file.
7679 * modules/dprintf: New file.
7680 * modules/dprintf-posix: New file.
7681 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
7682 HAVE_DPRINTF, REPLACE_DPRINTF.
7683 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
7684 HAVE_DPRINTF, REPLACE_DPRINTF.
7685 * doc/posix-functions/dprintf.texi: Mention the new modules.
7687 2009-01-17 Bruno Haible <bruno@clisp.org>
7689 * modules/vdprintf-posix-tests: New file.
7690 * tests/test-vdprintf-posix.sh: New file.
7691 * tests/test-vdprintf-posix.c: New file.
7693 New modules 'vdprintf', 'vdprintf-posix'.
7694 * lib/stdio.in.h (vdprintf): New declaration.
7695 * lib/vdprintf.c: New file.
7696 * m4/vdprintf.m4: New file.
7697 * m4/vdprintf-posix.m4: New file.
7698 * modules/vdprintf: New file.
7699 * modules/vdprintf-posix: New file.
7700 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
7701 HAVE_VDPRINTF, REPLACE_VDPRINTF.
7702 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
7703 HAVE_VDPRINTF, REPLACE_VDPRINTF.
7704 * doc/posix-functions/vdprintf.texi: Mention the new modules.
7706 2009-01-17 Bruno Haible <bruno@clisp.org>
7708 Fix replacement of fopen on mingw.
7709 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
7712 2009-01-17 Bruno Haible <bruno@clisp.org>
7714 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
7715 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
7717 2009-01-17 Bruno Haible <bruno@clisp.org>
7719 Avoid test-fflush2.sh failure on mingw.
7720 * tests/test-fflush2.c: Include binary-io.h.
7721 (main): Put standard input into binary mode.
7722 * modules/fflush-tests (Depends-on): Add binary-io.
7724 2009-01-17 Bruno Haible <bruno@clisp.org>
7726 * lib/wchar.in.h: In another particular situation, include only the
7727 system's <wchar.h> file.
7728 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
7729 Reported by Albert Chin-A-Young <china@thewrittenword.com>
7730 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
7732 2009-01-17 Bruno Haible <bruno@clisp.org>
7734 Support for stripping executables in --enable-relocatable.
7735 * build-aux/install-reloc: Expect one more argument, or an environment
7736 variable RELOC_STRIP_PROG. If set, strip the destination program and
7738 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
7740 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
7741 to set RELOCATABLE_STRIP.
7742 * NEWS: Mention the new Makefile requirement.
7744 2009-01-17 Bruno Haible <bruno@clisp.org>
7746 * build-aux/install-reloc: Remove debugging information left over by
7747 C compiler on MacOS X.
7749 2009-01-17 Bruno Haible <bruno@clisp.org>
7751 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
7752 * lib/progreloc.c (find_executable): Fix type of pointer passed to
7753 _NSGetExecutablePath.
7755 2009-01-16 Jim Meyering <meyering@redhat.com>
7757 strerror: avoid warnings about discarding "const"
7758 * lib/strerror.c (rpl_strerror): Instead of returning a const
7759 string from each and every "case", use a variable, and add a single
7760 cast after the switch.
7762 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
7764 * lib/arpa_inet.in.h: Add extern "C" block for C++.
7766 2009-01-16 Bruno Haible <bruno@clisp.org>
7768 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
7769 array initializer syntax that also works in C++ mode.
7770 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7772 2009-01-16 Jim Meyering <meyering@redhat.com>
7774 poll: suppress a warning
7775 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
7776 to ignore "...unsigned expression < 0 is always false" warnings.
7778 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
7780 poll: remove declarations of unused variables
7781 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
7784 2009-01-15 Bruno Haible <bruno@clisp.org>
7786 Make fflush-after-ungetc POSIX compliant on BSD systems.
7787 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
7788 (clear_ungetc_buffer): Implement also for other systems.
7789 (rpl_fflush): On glibc systems, invoke
7790 clear_ungetc_buffer_preserving_position. Otherwise, invoke
7791 clear_ungetc_buffer after fetching the stream's position, not before.
7793 2009-01-15 Bruno Haible <bruno@clisp.org>
7795 Make fflush-after-ungetc POSIX compliant on glibc systems.
7796 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
7798 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
7799 (rpl_fflush): On glibc systems, simply call the system's fflush
7800 function after clearing the ungetc buffer.
7801 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
7802 Instead, lseek only to the end of file, then use the system's fseeko
7803 for the rest. On glibc systems, reset the EOF indicator bit.
7805 2009-01-15 Jim Meyering <meyering@redhat.com>
7807 openmp.m4: revert quote-adding change, for portability to older autoconf
7808 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
7809 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
7810 Simon Josefsson noticed the problem when using autoconf-2.61.
7812 2009-01-15 Bruno Haible <bruno@clisp.org>
7814 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
7815 * tests/test-fflush2.c (ASSERT): Always fail.
7816 (main): Add two tests for fflush() after ungetc(), taking into account
7817 the Austin Group's clarification.
7818 Suggested by Eric Blake.
7820 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
7822 mktime.m4: remove K&R-style function prototypes
7823 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
7824 for the Sun C++ compiler.
7826 2009-01-14 Bruno Haible <bruno@clisp.org>
7828 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
7829 while including <wchar.h>.
7830 * lib/wchar.in.h: In two particular situations on HP-UX, include only
7831 the system's <wchar.h> file.
7832 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7834 2009-01-14 Bruno Haible <bruno@clisp.org>
7836 * m4/csharp.m4: Don't mention gettext on the serial number line.
7837 * m4/csharpexec.m4: Likewise.
7838 * m4/eaccess.m4: Likewise.
7839 * m4/javaexec.m4: Likewise.
7840 * m4/sig_atomic_t.m4: Likewise.
7841 * m4/tmpdir.m4: Likewise.
7842 * m4/intldir.m4: Bump gettext version.
7843 * m4/lib-ld.m4: Likewise.
7845 2009-01-14 Bruno Haible <bruno@clisp.org>
7847 * lib/progname.c (set_program_name): Add more comments.
7848 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7850 2009-01-14 Simon Josefsson <simon@josefsson.org>
7852 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
7853 were sys/stat.h does not define it.
7855 2009-01-14 Jim Meyering <meyering@redhat.com>
7857 many *.m4 files: improve m4 quoting
7858 99% of this change was performed by running the following commands:
7859 git ls-files | grep '\.m4$' | xargs perl -pi \
7860 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
7861 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
7862 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
7863 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
7864 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
7865 The remainder were to add Copyright dates, increment serial numbers,
7866 undo some changes in comments, exclude m4/intl.m4, and add quotes
7867 around the "1" in ",1" where the unusual spacing prohibited the
7868 above regexps from doing the job. For more details, see
7869 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
7870 * m4/acl.m4: Modified.
7871 * m4/afs.m4: Likewise.
7872 * m4/alloca.m4: Likewise.
7873 * m4/argp.m4: Likewise.
7874 * m4/argz.m4: Likewise.
7875 * m4/atexit.m4: Likewise.
7876 * m4/bison-i18n.m4: Likewise.
7877 * m4/bison.m4: Likewise.
7878 * m4/byteswap.m4: Likewise.
7879 * m4/c-stack.m4: Likewise.
7880 * m4/c-strtod.m4: Likewise.
7881 * m4/calloc.m4: Likewise.
7882 * m4/canonicalize-lgpl.m4: Likewise.
7883 * m4/chown.m4: Likewise.
7884 * m4/clock_time.m4: Likewise.
7885 * m4/codeset.m4: Likewise.
7886 * m4/copy-file.m4: Likewise.
7887 * m4/csharp.m4: Likewise.
7888 * m4/csharpcomp.m4: Likewise.
7889 * m4/csharpexec.m4: Likewise.
7890 * m4/d-ino.m4: Likewise.
7891 * m4/d-type.m4: Likewise.
7892 * m4/dirfd.m4: Likewise.
7893 * m4/double-slash-root.m4: Likewise.
7894 * m4/eaccess.m4: Likewise.
7895 * m4/eealloc.m4: Likewise.
7896 * m4/environ.m4: Likewise.
7897 * m4/errno_h.m4: Likewise.
7898 * m4/euidaccess.m4: Likewise.
7899 * m4/execute.m4: Likewise.
7900 * m4/fatal-signal.m4: Likewise.
7901 * m4/fchdir.m4: Likewise.
7902 * m4/fcntl_h.m4: Likewise.
7903 * m4/fileblocks.m4: Likewise.
7904 * m4/filenamecat.m4: Likewise.
7905 * m4/findprog.m4: Likewise.
7906 * m4/flexmember.m4: Likewise.
7907 * m4/fnmatch.m4: Likewise.
7908 * m4/fopen.m4: Likewise.
7909 * m4/fpending.m4: Likewise.
7910 * m4/fprintf-posix.m4: Likewise.
7911 * m4/free.m4: Likewise.
7912 * m4/frexp.m4: Likewise.
7913 * m4/frexpl.m4: Likewise.
7914 * m4/fsusage.m4: Likewise.
7915 * m4/ftruncate.m4: Likewise.
7916 * m4/gc-camellia.m4: Likewise.
7917 * m4/gc-random.m4: Likewise.
7918 * m4/gc.m4: Likewise.
7919 * m4/getaddrinfo.m4: Likewise.
7920 * m4/getcwd-abort-bug.m4: Likewise.
7921 * m4/getcwd-path-max.m4: Likewise.
7922 * m4/getdate.m4: Likewise.
7923 * m4/getdomainname.m4: Likewise.
7924 * m4/getgroups.m4: Likewise.
7925 * m4/gethostname.m4: Likewise.
7926 * m4/gethrxtime.m4: Likewise.
7927 * m4/getline.m4: Likewise.
7928 * m4/getloadavg.m4: Likewise.
7929 * m4/getndelim2.m4: Likewise.
7930 * m4/getpass.m4: Likewise.
7931 * m4/gettext.m4: Likewise.
7932 * m4/gettime.m4: Likewise.
7933 * m4/gettimeofday.m4: Likewise.
7934 * m4/gnulib-common.m4: Likewise.
7935 * m4/group-member.m4: Likewise.
7936 * m4/host-os.m4: Likewise.
7937 * m4/iconv.m4: Likewise.
7938 * m4/iconv_open.m4: Likewise.
7939 * m4/inet_ntop.m4: Likewise.
7940 * m4/inet_pton.m4: Likewise.
7941 * m4/inline.m4: Likewise.
7942 * m4/intldir.m4: Likewise.
7943 * m4/intlmacosx.m4: Likewise.
7944 * m4/intmax.m4: Likewise.
7945 * m4/intmax_t.m4: Likewise.
7946 * m4/inttypes.m4: Likewise.
7947 * m4/inttypes_h.m4: Likewise.
7948 * m4/inttypes-pri.m4: Likewise.
7949 * m4/isapipe.m4: Likewise.
7950 * m4/isnand.m4: Likewise.
7951 * m4/isnanf.m4: Likewise.
7952 * m4/isnanl.m4: Likewise.
7953 * m4/javacomp.m4: Likewise.
7954 * m4/javaexec.m4: Likewise.
7955 * m4/jm-winsz1.m4: Likewise.
7956 * m4/jm-winsz2.m4: Likewise.
7957 * m4/lchown.m4: Likewise.
7958 * m4/lcmessage.m4: Likewise.
7959 * m4/ldexpl.m4: Likewise.
7960 * m4/lib-ld.m4: Likewise.
7961 * m4/lib-link.m4: Likewise.
7962 * m4/libsigsegv.m4: Likewise.
7963 * m4/link-follow.m4: Likewise.
7964 * m4/localcharset.m4: Likewise.
7965 * m4/locale-fr.m4: Likewise.
7966 * m4/locale-ja.m4: Likewise.
7967 * m4/locale-tr.m4: Likewise.
7968 * m4/locale-zh.m4: Likewise.
7969 * m4/lock.m4: Likewise.
7970 * m4/longlong.m4: Likewise.
7971 * m4/ls-mntd-fs.m4: Likewise.
7972 * m4/lstat.m4: Likewise.
7973 * m4/malloc.m4: Likewise.
7974 * m4/mathl.m4: Likewise.
7975 * m4/mbrtowc.m4: Likewise.
7976 * m4/mbstate_t.m4: Likewise.
7977 * m4/mbswidth.m4: Likewise.
7978 * m4/memchr.m4: Likewise.
7979 * m4/memcmp.m4: Likewise.
7980 * m4/memcpy.m4: Likewise.
7981 * m4/memmem.m4: Likewise.
7982 * m4/memmove.m4: Likewise.
7983 * m4/mempcpy.m4: Likewise.
7984 * m4/memrchr.m4: Likewise.
7985 * m4/memset.m4: Likewise.
7986 * m4/minmax.m4: Likewise.
7987 * m4/mkdir-slash.m4: Likewise.
7988 * m4/mkdtemp.m4: Likewise.
7989 * m4/mktime.m4: Likewise.
7990 * m4/mmap-anon.m4: Likewise.
7991 * m4/mountlist.m4: Likewise.
7992 * m4/nanosleep.m4: Likewise.
7993 * m4/nls.m4: Likewise.
7994 * m4/nocrash.m4: Likewise.
7995 * m4/open.m4: Likewise.
7996 * m4/openat.m4: Likewise.
7997 * m4/openmp.m4: Likewise.
7998 * m4/pathmax.m4: Likewise.
7999 * m4/perl.m4: Likewise.
8000 * m4/physmem.m4: Likewise.
8001 * m4/pipe.m4: Likewise.
8002 * m4/po.m4: Likewise.
8003 * m4/poll.m4: Likewise.
8004 * m4/posixtm.m4: Likewise.
8005 * m4/posixver.m4: Likewise.
8006 * m4/printf-frexp.m4: Likewise.
8007 * m4/printf-frexpl.m4: Likewise.
8008 * m4/printf-posix.m4: Likewise.
8009 * m4/printf-posix-rpl.m4: Likewise.
8010 * m4/printf.m4: Likewise.
8011 * m4/progtest.m4: Likewise.
8012 * m4/putenv.m4: Likewise.
8013 * m4/readline.m4: Likewise.
8014 * m4/readlink.m4: Likewise.
8015 * m4/readutmp.m4: Likewise.
8016 * m4/realloc.m4: Likewise.
8017 * m4/regex.m4: Likewise.
8018 * m4/relocatable.m4: Likewise.
8019 * m4/relocatable-lib.m4: Likewise.
8020 * m4/rename-dest-slash.m4: Likewise.
8021 * m4/rename.m4: Likewise.
8022 * m4/rmdir-errno.m4: Likewise.
8023 * m4/rmdir.m4: Likewise.
8024 * m4/roundf.m4: Likewise.
8025 * m4/roundl.m4: Likewise.
8026 * m4/rpmatch.m4: Likewise.
8027 * m4/save-cwd.m4: Likewise.
8028 * m4/selinux-selinux-h.m4: Likewise.
8029 * m4/setenv.m4: Likewise.
8030 * m4/settime.m4: Likewise.
8031 * m4/sig2str.m4: Likewise.
8032 * m4/sig_atomic_t.m4: Likewise.
8033 * m4/signalblocking.m4: Likewise.
8034 * m4/signbit.m4: Likewise.
8035 * m4/sigpipe.m4: Likewise.
8036 * m4/sockets.m4: Likewise.
8037 * m4/sockpfaf.m4: Likewise.
8038 * m4/st_dm_mode.m4: Likewise.
8039 * m4/stat-time.m4: Likewise.
8040 * m4/stdbool.m4: Likewise.
8041 * m4/stdint.m4: Likewise.
8042 * m4/stdint_h.m4: Likewise.
8043 * m4/stpcpy.m4: Likewise.
8044 * m4/stpncpy.m4: Likewise.
8045 * m4/strcase.m4: Likewise.
8046 * m4/strchrnul.m4: Likewise.
8047 * m4/strcspn.m4: Likewise.
8048 * m4/strdup.m4: Likewise.
8049 * m4/strftime.m4: Likewise.
8050 * m4/strndup.m4: Likewise.
8051 * m4/strnlen.m4: Likewise.
8052 * m4/strpbrk.m4: Likewise.
8053 * m4/strptime.m4: Likewise.
8054 * m4/strsep.m4: Likewise.
8055 * m4/strtod.m4: Likewise.
8056 * m4/strtoimax.m4: Likewise.
8057 * m4/strtok_r.m4: Likewise.
8058 * m4/strtol.m4: Likewise.
8059 * m4/strtoll.m4: Likewise.
8060 * m4/strtoul.m4: Likewise.
8061 * m4/strtoull.m4: Likewise.
8062 * m4/strtoumax.m4: Likewise.
8063 * m4/strverscmp.m4: Likewise.
8064 * m4/threadlib.m4: Likewise.
8065 * m4/timegm.m4: Likewise.
8066 * m4/tm_gmtoff.m4: Likewise.
8067 * m4/tmpdir.m4: Likewise.
8068 * m4/tmpfile.m4: Likewise.
8069 * m4/tzset.m4: Likewise.
8070 * m4/uintmax_t.m4: Likewise.
8071 * m4/unlinkdir.m4: Likewise.
8072 * m4/unlocked-io.m4: Likewise.
8073 * m4/uptime.m4: Likewise.
8074 * m4/userspec.m4: Likewise.
8075 * m4/utimbuf.m4: Likewise.
8076 * m4/utime.m4: Likewise.
8077 * m4/utimes-null.m4: Likewise.
8078 * m4/utimes.m4: Likewise.
8079 * m4/vararrays.m4: Likewise.
8080 * m4/vasnprintf.m4: Likewise.
8081 * m4/vfprintf-posix.m4: Likewise.
8082 * m4/vprintf-posix.m4: Likewise.
8083 * m4/wait-process.m4: Likewise.
8084 * m4/wchar_t.m4: Likewise.
8085 * m4/wint_t.m4: Likewise.
8086 * m4/write-any-file.m4: Likewise.
8087 * m4/yield.m4: Likewise.
8089 2009-01-13 Bruno Haible <bruno@clisp.org>
8091 Avoid test-copy-file.sh failures when ACL support insufficient.
8092 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
8094 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
8095 Reported by Jim Meyering.
8097 2009-01-13 Bruno Haible <bruno@clisp.org>
8099 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
8100 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
8101 * modules/unistdio/u8-printf-parse (Files): Likewise.
8102 * modules/unistdio/u32-printf-parse (Files): Likewise.
8103 * modules/unistdio/ulc-printf-parse (Files): Likewise.
8105 2009-01-13 Simon Josefsson <simon@josefsson.org>
8107 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
8108 and m4/inttypes_h.m4 too.
8110 2009-01-12 Eric Blake <ebb9@byu.net>
8112 tests: IRIX 6.2 cc can't compile -0.0 into .data
8113 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
8114 rather than at compile-time.
8115 * tests/test-floorl.c (minus_zero): Likewise.
8116 * tests/test-frexpl.c (minus_zero): Likewise.
8117 * tests/test-isnan.c (minus_zerol): Likewise.
8118 * tests/test-isnanl.h (minus_zero): Likewise.
8119 * tests/test-ldexpl.c (minus_zero): Likewise.
8120 * tests/test-roundl.c (minus_zero): Likewise.
8121 * tests/test-signbit.c (minus_zerol): Likewise.
8122 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8123 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8124 * tests/test-truncl.c (minus_zero): Likewise.
8125 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8126 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8127 Reported by Tom G. Christensen and Nelson H. F. Beebe.
8129 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
8131 regex: fix glibc bug 9697
8132 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
8135 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
8137 regex: fix glibc bug 697
8138 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
8139 being NULL also if there are no backreferences.
8141 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
8143 regex: merge glibc changes
8144 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
8145 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
8146 re_string_skip_chars, re_string_reconstruct): Likewise.
8147 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
8149 2009-01-07 Jim Meyering <meyering@redhat.com>
8151 poll: filter through cppi
8152 * lib/poll.c: Indent cpp directives to reflect nesting.
8154 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
8156 poll: don't return uninitialized
8157 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
8159 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
8161 avoid compile failure on AIX 6.1
8162 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
8163 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
8165 2009-01-04 Jim Meyering <meyering@redhat.com>
8167 remove duplicate inclusion of <stdio.h>
8168 * tests/test-fprintf-posix.c: Likewise.
8169 * tests/test-printf-posix.c: Likewise.
8170 * tests/test-snprintf-posix.c: Likewise.
8171 * tests/test-sprintf-posix.c: Likewise.
8172 * tests/test-vasprintf-posix.c: Likewise.
8173 * tests/test-vfprintf-posix.c: Likewise.
8174 * tests/test-vprintf-posix.c: Likewise.
8175 * tests/test-vsnprintf-posix.c: Likewise.
8176 * tests/test-vsprintf-posix.c: Likewise.
8178 2009-01-03 Jim Meyering <meyering@redhat.com>
8180 gnulib-tool: fix sed-based filtering
8181 * gnulib-tool (func_filter_filelist): Remove extra backslash
8182 in sed_fff_filter definition.
8184 2009-01-02 Jim Meyering <meyering@redhat.com>
8186 strftime: avoid compilation failure on Solaris 2.6
8187 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
8188 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
8189 Don't #define mbrlen or mbsinit, since now they're guaranteed to
8190 be available. Reported by Tom G. Christensen. Details in
8191 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
8193 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8194 Bruno Haible <bruno@clisp.org>
8196 Speed up gnulib-tool by doing more string processing through shell
8198 * gnulib-tool (fast_func_append): New variable.
8199 (func_remove_prefix, func_remove_suffix): New functions.
8200 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
8201 (func_filter_filelist): New function.
8202 (func_get_dependencies): Use func_remove_suffix instead of sed.
8203 (func_get_automake_snippet): Use func_filter_filelist instead of a
8204 subshell and sed invocation.
8206 2009-01-01 Bruno Haible <bruno@clisp.org>
8209 * gnulib-tool (func_import, import, update): Don't allow the characters
8210 '"', '$', '`', '\' in macro arguments that become part of commands that
8213 2009-01-01 Bruno Haible <bruno@clisp.org>
8215 * gnulib-tool (func_reset_sigpipe): Add more comments.
8217 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8219 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
8220 func_emit_tests_Makefile_am, func_import): Abort loops early if we
8221 already know the answer.
8223 2009-01-01 Jim Meyering <meyering@redhat.com>
8225 * lib/version-etc.c (version_etc_va): Update copyright year.
8227 2008-12-30 Bruno Haible <bruno@clisp.org>
8229 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
8230 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
8231 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
8233 2008-12-29 Eric Blake <ebb9@byu.net>
8235 multiarch: avoid autoconf AC_REQUIRE bug
8236 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
8237 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
8239 Reported by Bruno Haible, and analyzed in
8240 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
8242 2008-12-29 Bruno Haible <bruno@clisp.org>
8244 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
8245 files in subdirectories correctly.
8246 Reported by Ralf Wildenhues.
8248 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8250 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
8251 rather than 'join FILE -', for Solaris join.
8253 2008-12-29 Bruno Haible <bruno@clisp.org>
8255 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
8257 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8258 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8259 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8260 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
8261 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8262 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8263 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8264 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8265 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8266 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8267 * m4/nls.m4 (AM_NLS): Likewise.
8268 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
8269 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8270 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8271 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8272 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8273 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8274 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
8275 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8276 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8277 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8278 * m4/xsize.m4 (gl_XSIZE): Likewise.
8279 Suggested by Jim Meyering.
8281 2008-11-17 Bruce Korb <bkorb@gnu.org>
8283 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
8284 * lib/parse-duration.c: use a switch instead of cascading if's.
8286 2008-12-29 Eric Blake <ebb9@byu.net>
8288 wchar.h: supply WEOF on Irix 5.3
8289 * lib/wchar.in.h (wint_t): Also supply WEOF.
8290 * lib/wctype.in.h (wint_t): Likewise.
8291 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
8292 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
8293 Reported by Tom G. Christensen.
8295 2008-12-26 Bruno Haible <bruno@clisp.org>
8297 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
8300 2008-12-26 Bruno Haible <bruno@clisp.org>
8302 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
8304 2008-12-26 Bruno Haible <bruno@clisp.org>
8306 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
8307 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
8308 not __STDC_CONSTANT_MACROS.
8309 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8311 2008-12-25 Bruno Haible <bruno@clisp.org>
8313 Add support for universal builds to vasnprintf.
8314 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
8315 universal builds, guess no.
8316 * modules/vasnprintf-posix (Depends-on): Add multiarch.
8317 * modules/vasprintf-posix (Depends-on): Likewise.
8318 * modules/fprintf-posix (Depends-on): Likewise.
8319 * modules/vfprintf-posix (Depends-on): Likewise.
8320 * modules/snprintf-posix (Depends-on): Likewise.
8321 * modules/vsnprintf-posix (Depends-on): Likewise.
8322 * modules/sprintf-posix (Depends-on): Likewise.
8323 * modules/vsprintf-posix (Depends-on): Likewise.
8324 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8325 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8326 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8327 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8328 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8329 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8330 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8332 Add support for universal builds to <inttypes.h>.
8333 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8334 _SCNu64_PREFIX): In Apple
8335 universal builds, define directly, using _LP64.
8336 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
8337 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
8338 * modules/inttypes (Depends-on): Add multiarch.
8339 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8341 Add support for universal builds to <stdint.h>.
8342 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
8343 universal builds, define directly, using _LP64.
8344 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
8345 Apple universal builds, don't test for the size and suffix of ptrdiff_t
8347 * modules/stdint (Depends-on): Add multiarch.
8348 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8350 New module 'multiarch'.
8351 * modules/multiarch: New file.
8352 * m4/multiarch.m4: New file.
8354 2008-12-25 Bruno Haible <bruno@clisp.org>
8356 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
8358 2008-12-25 Bruno Haible <bruno@clisp.org>
8360 * modules/btowc (License): Relicense under LGPLv2+.
8361 * modules/mbsinit (License): Likewise.
8362 * modules/mbrtowc (License): Likewise.
8363 * modules/wcrtomb (License): Likewise.
8364 * modules/streq (License): Likewise.
8365 Reported by David Lutterkort <lutter@redhat.com>.
8367 2008-12-23 Bruno Haible <bruno@clisp.org>
8369 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
8371 2008-12-23 Bruno Haible <bruno@clisp.org>
8373 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
8374 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
8375 GETADDRINFO_LIB, not in LIBS.
8376 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
8377 * modules/canon-host (Link): Likewise.
8378 * NEWS: Mention the change.
8379 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
8382 2008-12-22 Bruno Haible <bruno@clisp.org>
8384 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
8385 * doc/posix-functions/iswalpha_l.texi: Likewise.
8386 * doc/posix-functions/iswblank_l.texi: Likewise.
8387 * doc/posix-functions/iswcntrl_l.texi: Likewise.
8388 * doc/posix-functions/iswctype_l.texi: Likewise.
8389 * doc/posix-functions/iswdigit_l.texi: Likewise.
8390 * doc/posix-functions/iswgraph_l.texi: Likewise.
8391 * doc/posix-functions/iswlower_l.texi: Likewise.
8392 * doc/posix-functions/iswprint_l.texi: Likewise.
8393 * doc/posix-functions/iswpunct_l.texi: Likewise.
8394 * doc/posix-functions/iswspace_l.texi: Likewise.
8395 * doc/posix-functions/iswupper_l.texi: Likewise.
8396 * doc/posix-functions/iswxdigit_l.texi: Likewise.
8397 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
8398 * doc/posix-functions/open_wmemstream.texi: Likewise.
8399 * doc/posix-functions/swscanf.texi: Likewise.
8400 * doc/posix-functions/towctrans_l.texi: Likewise.
8401 * doc/posix-functions/towlower.texi: Likewise.
8402 * doc/posix-functions/towlower_l.texi: Likewise.
8403 * doc/posix-functions/towupper.texi: Likewise.
8404 * doc/posix-functions/towupper_l.texi: Likewise.
8405 * doc/posix-functions/vfwprintf.texi: Likewise.
8406 * doc/posix-functions/vfwscanf.texi: Likewise.
8407 * doc/posix-functions/vswscanf.texi: Likewise.
8408 * doc/posix-functions/vwprintf.texi: Likewise.
8409 * doc/posix-functions/vwscanf.texi: Likewise.
8410 * doc/posix-functions/wcpcpy.texi: Likewise.
8411 * doc/posix-functions/wcpncpy.texi: Likewise.
8412 * doc/posix-functions/wcscasecmp.texi: Likewise.
8413 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
8414 * doc/posix-functions/wcscoll_l.texi: Likewise.
8415 * doc/posix-functions/wcsdup.texi: Likewise.
8416 * doc/posix-functions/wcsncasecmp.texi: Likewise.
8417 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
8418 * doc/posix-functions/wcsnlen.texi: Likewise.
8419 * doc/posix-functions/wcsnrtombs.texi: Likewise.
8420 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8421 * doc/posix-functions/wctrans_l.texi: Likewise.
8422 * doc/posix-functions/wctype_l.texi: Likewise.
8423 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
8424 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
8425 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
8426 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
8427 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
8428 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
8429 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
8430 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
8431 * doc/glibc-functions/wcschrnul.texi: Likewise.
8432 * doc/glibc-functions/wcsftime_l.texi: Likewise.
8433 * doc/glibc-functions/wcstod_l.texi: Likewise.
8434 * doc/glibc-functions/wcstof_l.texi: Likewise.
8435 * doc/glibc-functions/wcstol_l.texi: Likewise.
8436 * doc/glibc-functions/wcstold_l.texi: Likewise.
8437 * doc/glibc-functions/wcstoll_l.texi: Likewise.
8438 * doc/glibc-functions/wcstoq.texi: Likewise.
8439 * doc/glibc-functions/wcstoul_l.texi: Likewise.
8440 * doc/glibc-functions/wcstoull_l.texi: Likewise.
8441 * doc/glibc-functions/wcstouq.texi: Likewise.
8442 * doc/glibc-functions/wmempcpy.texi: Likewise.
8444 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
8445 Eric Blake <ebb9@byu.net>
8446 Paolo Bonzini <bonzini@gnu.org>
8447 Bruno Haible <bruno@clisp.org>
8449 Make c-stack work on Haiku.
8450 * lib/c-stack.c (SA_ONSTACK): Define fallback.
8451 (c_stack_action): Use SA_ONSTACK flag.
8453 2008-12-22 Bruno Haible <bruno@clisp.org>
8455 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
8457 2008-12-22 Bruno Haible <bruno@clisp.org>
8459 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
8460 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
8462 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
8464 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
8465 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
8466 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
8467 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
8469 2008-12-22 Bruno Haible <bruno@clisp.org>
8471 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
8474 2008-12-22 Eric Blake <ebb9@byu.net>
8476 Avoid gcc warnings on cygwin.
8477 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
8478 Avoid unused variable.
8479 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
8482 2008-12-22 Bruno Haible <bruno@clisp.org>
8484 Remove HAVE_MBRTOWC conditionals.
8485 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
8486 (mbscasecmp): Assume mbrtowc function.
8487 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
8488 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
8489 * lib/mbschr.c: Include mbuiter.h unconditionally.
8490 (mbschr): Assume mbrtowc function.
8491 * lib/mbscspn.c: Include mbuiter.h unconditionally.
8492 (mbscspn): Assume mbrtowc function.
8493 * lib/mbslen.c: Include mbuiter.h unconditionally.
8494 (mbslen): Assume mbrtowc function.
8495 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
8496 (mbsncasecmp): Assume mbrtowc function.
8497 * lib/mbsnlen.c: Include mbiter.h unconditionally.
8498 (mbsnlen): Assume mbrtowc function.
8499 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
8500 (mbspbrk): Assume mbrtowc function.
8501 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
8502 (mbspcasecmp): Assume mbrtowc function.
8503 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
8504 (mbsrchr): Assume mbrtowc function.
8505 * lib/mbssep.c: Include mbuiter.h unconditionally.
8506 (mbssep): Assume mbrtowc function.
8507 * lib/mbsspn.c: Include mbuiter.h unconditionally.
8508 (mbsspn): Assume mbrtowc function.
8509 * lib/mbsstr.c: Include mbuiter.h unconditionally.
8510 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
8511 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
8512 (mbstok_r): Assume mbrtowc function.
8513 * lib/propername.c: Include mbuiter.h unconditionally.
8514 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
8515 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
8516 (trim2): Assume mbrtowc function.
8517 * lib/mbswidth.c (mbsinit): Remove fallback definition.
8518 (mbsnwidth): Assume mbrtowc function.
8519 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
8520 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
8521 fallback definitions.
8522 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
8524 2008-12-22 Bruno Haible <bruno@clisp.org>
8526 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
8528 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
8530 * modules/regex: Request emulations for the mb*/wc* functions we need.
8531 * m4/regex.m4: Don't look for those functions here.
8532 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
8534 2008-12-22 Bruno Haible <bruno@clisp.org>
8536 * modules/fnmatch (Depends-on): Remove duplicated dependency.
8538 2008-12-21 Bruno Haible <bruno@clisp.org>
8540 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
8541 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
8542 (Include): Remove conditionalization.
8543 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
8544 (Include): Remove conditionalization.
8545 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
8546 (Include): Remove conditionalization.
8547 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
8548 * m4/mbfile.m4 (gl_MBFILE): Likewise.
8549 * NEWS: Mention the change.
8550 Reported by Alan Hourihane <alanh@fairlite.co.uk>
8551 via Sergey Poznyakoff <gray@gnu.org.ua>.
8553 2008-12-21 Bruno Haible <bruno@clisp.org>
8555 * MODULES.html.sh (Extended multibyte and wide character utilities
8556 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
8558 (Support for systems lacking POSIX:2008): Add accept, bind, close,
8559 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
8560 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
8561 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
8563 2008-12-21 Bruno Haible <bruno@clisp.org>
8565 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
8567 2008-12-21 Bruno Haible <bruno@clisp.org>
8569 * modules/wcsnrtombs-tests: New file.
8570 * tests/test-wcsnrtombs1.sh: New file.
8571 * tests/test-wcsnrtombs2.sh: New file.
8572 * tests/test-wcsnrtombs3.sh: New file.
8573 * tests/test-wcsnrtombs4.sh: New file.
8574 * tests/test-wcsnrtombs.c: New file.
8576 New module 'wcsnrtombs'.
8577 * lib/wchar.in.h (wcsnrtombs): New declaration.
8578 * lib/wcsnrtombs.c: New file.
8579 * lib/wcsrtombs-state.c: New file.
8580 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
8581 (internal_state): Remove variable.
8582 * m4/wcsnrtombs.m4: New file.
8583 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
8585 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
8587 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
8589 * modules/wcsnrtombs: New file.
8590 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
8591 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8593 2008-12-21 Bruno Haible <bruno@clisp.org>
8595 * modules/wcsrtombs-tests: New file.
8596 * tests/test-wcsrtombs1.sh: New file.
8597 * tests/test-wcsrtombs2.sh: New file.
8598 * tests/test-wcsrtombs3.sh: New file.
8599 * tests/test-wcsrtombs4.sh: New file.
8600 * tests/test-wcsrtombs.c: New file.
8602 New module 'wcsrtombs'.
8603 * lib/wchar.in.h (wcsrtombs): New declaration.
8604 * lib/wcsrtombs.c: New file.
8605 * m4/wcsrtombs.m4: New file.
8606 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
8607 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
8608 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
8609 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
8610 * modules/wcsrtombs: New file.
8611 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
8614 2008-12-21 Bruno Haible <bruno@clisp.org>
8616 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
8617 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
8618 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
8619 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
8621 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
8622 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
8623 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8624 m4/locale-zh.m4, m4/codeset.m4.
8625 * doc/posix-functions/wcrtomb.texi: Document the bug.
8627 2008-12-21 Bruno Haible <bruno@clisp.org>
8629 Work around a btowc() bug on IRIX 6.5.
8630 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
8631 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
8632 REPLACE_WTOBC if not.
8633 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
8634 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
8635 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
8637 2008-12-21 Bruno Haible <bruno@clisp.org>
8639 * modules/wcrtomb-tests: New file.
8640 * tests/test-wcrtomb.sh: New file.
8641 * tests/test-wcrtomb.c: New file.
8643 New module 'wcrtomb'.
8644 * lib/wchar.in.h (wcrtomb): New declaration.
8645 * lib/wcrtomb.c: New file.
8646 * m4/wcrtomb.m4: New file.
8647 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
8649 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
8651 * modules/wcrtomb: New file.
8652 * doc/posix-functions/wcrtomb.texi: Mention the new module.
8654 2008-12-21 Bruno Haible <bruno@clisp.org>
8656 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
8657 * modules/mbsrtowcs (Files): Likewise.
8658 * modules/wctob (Files): Likewise.
8659 * modules/c-strcase-tests (Files): Likewise.
8660 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
8661 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
8662 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
8663 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
8664 * modules/vasnprintf-posix-tests (Files): Likewise.
8666 2008-12-21 William Pursell <bill.pursell@gmail.com>
8668 gitlog-to-changelog: pass all command-line arguments to git-log
8669 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
8670 it is sometimes convenient to filter the commits in various ways.
8671 gitlog-to-changelog only allows --since to specify a start date,
8672 but git-log itself supports many other filtering mechanisms.
8673 At the moment, I want to filter by branch name. Rather than
8674 adding a --branch option to gitlog-to-changelog, it seems more
8675 flexible to simply pass all options directly to git-log and let
8676 git do the work. Notice that this effectively makes --since a
8677 redundant option for gitlog-to-changelog, but removing it would
8678 require current usage to change since calls would then require
8681 2008-12-21 Bruno Haible <bruno@clisp.org>
8683 * modules/mbsnrtowcs-tests: New file.
8684 * tests/test-mbsnrtowcs1.sh: New file.
8685 * tests/test-mbsnrtowcs2.sh: New file.
8686 * tests/test-mbsnrtowcs3.sh: New file.
8687 * tests/test-mbsnrtowcs4.sh: New file.
8688 * tests/test-mbsnrtowcs.c: New file.
8690 New module 'mbsnrtowcs'.
8691 * lib/wchar.in.h (mbsnrtowcs): New declaration.
8692 * lib/mbsnrtowcs.c: New file.
8693 * lib/mbsrtowcs-state.c: New file.
8694 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
8695 (internal_state): Remove variable.
8696 * m4/mbsnrtowcs.m4: New file.
8697 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
8699 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
8700 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
8701 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
8702 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
8703 * modules/mbsnrtowcs: New file.
8704 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
8705 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
8706 portability problem.
8708 2008-12-21 Bruno Haible <bruno@clisp.org>
8710 Work around mbsrtowcs bug.
8711 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
8712 (gl_FUNC_MBSRTOWCS): Invoke it.
8713 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8715 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
8717 2008-12-21 Bruno Haible <bruno@clisp.org>
8719 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
8721 2008-12-21 Bruno Haible <bruno@clisp.org>
8724 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
8725 16-bit wchar_t type.
8726 * doc/posix-functions/btowc.texi: Likewise.
8727 * doc/posix-functions/fgetwc.texi: Likewise.
8728 * doc/posix-functions/fgetws.texi: Likewise.
8729 * doc/posix-functions/fputwc.texi: Likewise.
8730 * doc/posix-functions/fputws.texi: Likewise.
8731 * doc/posix-functions/fwide.texi: Likewise.
8732 * doc/posix-functions/fwprintf.texi: Likewise.
8733 * doc/posix-functions/fwscanf.texi: Likewise.
8734 * doc/posix-functions/getwchar.texi: Likewise.
8735 * doc/posix-functions/getwc.texi: Likewise.
8736 * doc/posix-functions/iswalnum.texi: Likewise.
8737 * doc/posix-functions/iswalpha.texi: Likewise.
8738 * doc/posix-functions/iswblank.texi: Likewise.
8739 * doc/posix-functions/iswcntrl.texi: Likewise.
8740 * doc/posix-functions/iswctype.texi: Likewise.
8741 * doc/posix-functions/iswdigit.texi: Likewise.
8742 * doc/posix-functions/iswgraph.texi: Likewise.
8743 * doc/posix-functions/iswlower.texi: Likewise.
8744 * doc/posix-functions/iswprint.texi: Likewise.
8745 * doc/posix-functions/iswpunct.texi: Likewise.
8746 * doc/posix-functions/iswspace.texi: Likewise.
8747 * doc/posix-functions/iswupper.texi: Likewise.
8748 * doc/posix-functions/iswxdigit.texi: Likewise.
8749 * doc/posix-functions/mbrtowc.texi: Likewise.
8750 * doc/posix-functions/mbsrtowcs.texi: Likewise.
8751 * doc/posix-functions/mbstowcs.texi: Likewise.
8752 * doc/posix-functions/mbtowc.texi: Likewise.
8753 * doc/posix-functions/putwchar.texi: Likewise.
8754 * doc/posix-functions/putwc.texi: Likewise.
8755 * doc/posix-functions/swprintf.texi: Likewise.
8756 * doc/posix-functions/tolower.texi: Likewise.
8757 * doc/posix-functions/toupper.texi: Likewise.
8758 * doc/posix-functions/towctrans.texi: Likewise.
8759 * doc/posix-functions/ungetwc.texi: Likewise.
8760 * doc/posix-functions/vswprintf.texi: Likewise.
8761 * doc/posix-functions/wcrtomb.texi: Likewise.
8762 * doc/posix-functions/wcscat.texi: Likewise.
8763 * doc/posix-functions/wcschr.texi: Likewise.
8764 * doc/posix-functions/wcscmp.texi: Likewise.
8765 * doc/posix-functions/wcscoll.texi: Likewise.
8766 * doc/posix-functions/wcscpy.texi: Likewise.
8767 * doc/posix-functions/wcscspn.texi: Likewise.
8768 * doc/posix-functions/wcsftime.texi: Likewise.
8769 * doc/posix-functions/wcslen.texi: Likewise.
8770 * doc/posix-functions/wcsncat.texi: Likewise.
8771 * doc/posix-functions/wcsncmp.texi: Likewise.
8772 * doc/posix-functions/wcsncpy.texi: Likewise.
8773 * doc/posix-functions/wcspbrk.texi: Likewise.
8774 * doc/posix-functions/wcsrchr.texi: Likewise.
8775 * doc/posix-functions/wcsrtombs.texi: Likewise.
8776 * doc/posix-functions/wcsspn.texi: Likewise.
8777 * doc/posix-functions/wcsstr.texi: Likewise.
8778 * doc/posix-functions/wcstod.texi: Likewise.
8779 * doc/posix-functions/wcstof.texi: Likewise.
8780 * doc/posix-functions/wcstoimax.texi: Likewise.
8781 * doc/posix-functions/wcstok.texi: Likewise.
8782 * doc/posix-functions/wcstold.texi: Likewise.
8783 * doc/posix-functions/wcstoll.texi: Likewise.
8784 * doc/posix-functions/wcstol.texi: Likewise.
8785 * doc/posix-functions/wcstombs.texi: Likewise.
8786 * doc/posix-functions/wcstoull.texi: Likewise.
8787 * doc/posix-functions/wcstoul.texi: Likewise.
8788 * doc/posix-functions/wcstoumax.texi: Likewise.
8789 * doc/posix-functions/wcswidth.texi: Likewise.
8790 * doc/posix-functions/wcsxfrm.texi: Likewise.
8791 * doc/posix-functions/wctob.texi: Likewise.
8792 * doc/posix-functions/wctomb.texi: Likewise.
8793 * doc/posix-functions/wctrans.texi: Likewise.
8794 * doc/posix-functions/wctype.texi: Likewise.
8795 * doc/posix-functions/wcwidth.texi: Likewise.
8796 * doc/posix-functions/wmemchr.texi: Likewise.
8797 * doc/posix-functions/wmemcmp.texi: Likewise.
8798 * doc/posix-functions/wmemcpy.texi: Likewise.
8799 * doc/posix-functions/wmemmove.texi: Likewise.
8800 * doc/posix-functions/wmemset.texi: Likewise.
8801 * doc/posix-functions/wprintf.texi: Likewise.
8802 * doc/posix-functions/wscanf.texi: Likewise.
8804 2008-12-21 Bruno Haible <bruno@clisp.org>
8806 Update doc for HP-UX 11.11.
8807 * doc/posix-functions/btowc.texi: Clarify that the function is missing
8808 in HP-UX version 11.00, not in all versions of HP-UX 11.
8809 * doc/posix-functions/fwide.texi: Likewise.
8810 * doc/posix-functions/fwprintf.texi: Likewise.
8811 * doc/posix-functions/fwscanf.texi: Likewise.
8812 * doc/posix-functions/inet_ntop.texi: Likewise.
8813 * doc/posix-functions/inet_pton.texi: Likewise.
8814 * doc/posix-functions/mbrlen.texi: Likewise.
8815 * doc/posix-functions/mbrtowc.texi: Likewise.
8816 * doc/posix-functions/mbsinit.texi: Likewise.
8817 * doc/posix-functions/mbsrtowcs.texi: Likewise.
8818 * doc/posix-functions/swprintf.texi: Likewise.
8819 * doc/posix-functions/swscanf.texi: Likewise.
8820 * doc/posix-functions/towctrans.texi: Likewise.
8821 * doc/posix-functions/vfwprintf.texi: Likewise.
8822 * doc/posix-functions/vswprintf.texi: Likewise.
8823 * doc/posix-functions/vwprintf.texi: Likewise.
8824 * doc/posix-functions/wcrtomb.texi: Likewise.
8825 * doc/posix-functions/wcsrtombs.texi: Likewise.
8826 * doc/posix-functions/wcsstr.texi: Likewise.
8827 * doc/posix-functions/wctob.texi: Likewise.
8828 * doc/posix-functions/wctrans.texi: Likewise.
8829 * doc/posix-functions/wmemchr.texi: Likewise.
8830 * doc/posix-functions/wmemcmp.texi: Likewise.
8831 * doc/posix-functions/wmemcpy.texi: Likewise.
8832 * doc/posix-functions/wmemmove.texi: Likewise.
8833 * doc/posix-functions/wmemset.texi: Likewise.
8834 * doc/posix-functions/wprintf.texi: Likewise.
8835 * doc/posix-functions/wscanf.texi: Likewise.
8837 2008-12-21 Bruno Haible <bruno@clisp.org>
8839 Work around a portability problem.
8840 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
8841 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
8843 2008-12-20 Bruno Haible <bruno@clisp.org>
8845 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
8846 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
8847 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
8848 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
8849 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
8851 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
8852 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
8854 (GNULIB_defined_mbstate_t): New macro.
8855 (mbsinit): Redefine if REPLACE_MBSINIT is set.
8856 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
8857 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
8858 reuses the system's mbrtowc function but works around the bugs.
8859 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
8860 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
8862 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
8863 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
8864 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
8865 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
8866 REPLACE_MBSINIT if mbsinit needs to be overridden.
8867 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
8868 REPLACE_MBSINIT, REPLACE_MBRTOWC.
8869 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
8870 REPLACE_MBSINIT, REPLACE_MBRTOWC.
8871 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8873 (Depends): Add mbsinit.
8874 * modules/mbsinit (Depends): Add mbrtowc.
8875 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
8877 2008-12-20 Bruno Haible <bruno@clisp.org>
8879 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
8880 so that there are no conversion errors on AIX.
8881 * tests/test-mbsrtowcs.c (main): LIkewise.
8883 2008-12-20 Bruno Haible <bruno@clisp.org>
8885 Work around wctob bug on Solaris <= 9.
8886 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
8887 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
8888 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
8889 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
8890 * modules/wctob (Files): Add m4/locale-fr.m4.
8891 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
8893 2008-12-20 Bruno Haible <bruno@clisp.org>
8895 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
8897 * tests/test-select-in.sh: Likewise.
8898 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8900 2008-12-20 Bruno Haible <bruno@clisp.org>
8902 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
8903 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
8906 2008-12-20 Bruno Haible <bruno@clisp.org>
8908 Ensure mbstate_t is defined on HP-UX 11.11.
8909 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
8910 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
8911 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
8912 AC_USE_SYSTEM_EXTENSIONS.
8913 * modules/fnmatch (Depends-on): Add extensions.
8914 * modules/mbrlen (Depends-on): Likewise.
8915 * modules/mbrtowc (Depends-on): Likewise.
8916 * modules/mbsinit (Depends-on): Likewise.
8917 * modules/mbsrtowcs (Depends-on): Likewise.
8918 * modules/mbswidth (Depends-on): Likewise.
8919 * modules/quotearg (Depends-on): Likewise.
8920 * modules/strftime (Depends-on): Likewise.
8922 2008-12-20 Bruno Haible <bruno@clisp.org>
8924 Ensure wctob is declared on IRIX 6.5.
8925 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
8926 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
8927 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
8928 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
8930 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
8932 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
8934 2008-12-19 Bruno Haible <bruno@clisp.org>
8936 * modules/mbsrtowcs-tests: New file.
8937 * tests/test-mbsrtowcs1.sh: New file.
8938 * tests/test-mbsrtowcs2.sh: New file.
8939 * tests/test-mbsrtowcs3.sh: New file.
8940 * tests/test-mbsrtowcs4.sh: New file.
8941 * tests/test-mbsrtowcs.c: New file.
8943 New module 'mbsrtowcs'.
8944 * lib/wchar.in.h (mbsrtowcs): New declaration.
8945 * lib/mbsrtowcs.c: New file.
8946 * m4/mbsrtowcs.m4: New file.
8947 * modules/mbsrtowcs: New file.
8948 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
8950 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
8952 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
8954 2008-12-19 Bruno Haible <bruno@clisp.org>
8956 New module 'mbrlen'.
8957 * lib/wchar.in.h (mbrlen): New declaration.
8958 * lib/mbrlen.c: New file.
8959 * m4/mbrlen.m4: New file.
8960 * modules/mbrlen: New file.
8961 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
8963 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
8965 * doc/posix-functions/mbrlen.texi: Document the new module.
8967 2008-12-19 Bruno Haible <bruno@clisp.org>
8969 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
8970 * modules/mbrtowc (Depends-on): Add verify.
8971 Suggested by Paul Eggert.
8973 2008-12-18 Bruno Haible <bruno@clisp.org>
8975 * modules/mbsinit-tests: New file.
8976 * tests/test-mbsinit.sh: New file.
8977 * tests/test-mbsinit.c: New file.
8979 2008-12-18 Bruno Haible <bruno@clisp.org>
8981 * modules/mbrtowc-tests: New file.
8982 * tests/test-mbrtowc1.sh: New file.
8983 * tests/test-mbrtowc2.sh: New file.
8984 * tests/test-mbrtowc3.sh: New file.
8985 * tests/test-mbrtowc4.sh: New file.
8986 * tests/test-mbrtowc.c: New file.
8988 New module 'mbrtowc'.
8989 * lib/wchar.in.h (mbstate_t): Override when the system does not have
8990 mbsinit and mbrtowc.
8991 (mbrtowc): New declaration.
8992 * lib/mbrtowc.c: New file.
8993 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
8994 * modules/mbrtowc: New file.
8995 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
8997 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
8999 * doc/posix-functions/mbrtowc.texi: Document the new module.
9001 2008-12-18 Bruno Haible <bruno@clisp.org>
9004 * lib/wchar.in.h (wctob): New declaration.
9005 * lib/wctob.c: New file.
9006 * m4/wctob.m4: New file.
9007 * modules/wctob: New file.
9008 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
9010 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
9011 * doc/posix-functions/wctob.texi: Document the new module.
9013 2008-12-18 Bruno Haible <bruno@clisp.org>
9015 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
9016 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
9018 2008-12-18 Simon Josefsson <simon@josefsson.org>
9020 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
9021 G. Christensen" <tgc@jupiterrise.com>.
9023 * lib/flock.c: Need to include errno.h. Reported by "Tom
9024 G. Christensen" <tgc@jupiterrise.com>.
9026 * lib/flock.c: Need to include string.h. Reported by "Tom
9027 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
9030 2008-12-18 Bruno Haible <bruno@clisp.org>
9032 * m4/locale-ja.m4: New file, from GNU gettext.
9034 2008-12-17 Bruno Haible <bruno@clisp.org>
9036 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
9037 Suggested by Eric Blake.
9039 2008-12-17 Bruno Haible <bruno@clisp.org>
9041 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
9043 2008-12-17 Bruno Haible <bruno@clisp.org>
9045 * lib/mbsinit.c: Include verify.h. Verify an assumption.
9046 * modules/mbsinit (Depends-on): Add verify.
9047 Suggested by Paul Eggert.
9049 2008-12-17 Bruno Haible <bruno@clisp.org>
9051 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
9052 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
9054 * m4/mbiter.m4 (gl_MBITER): LIkewise.
9055 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
9056 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
9057 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
9058 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
9059 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
9060 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
9061 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
9062 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
9063 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
9064 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
9065 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
9066 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
9067 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
9068 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
9069 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9070 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
9071 * modules/trim (configure.ac): Likewise.
9073 2008-12-17 Bruno Haible <bruno@clisp.org>
9075 * modules/btowc-tests: New file.
9076 * tests/test-btowc1.sh: New file.
9077 * tests/test-btowc2.sh: New file.
9078 * tests/test-btowc.c: New file.
9081 * lib/wchar.in.h (btowc): New declaration.
9082 * lib/btowc.c: New file.
9083 * m4/btowc.m4: New file.
9084 * modules/btowc: New file.
9085 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
9087 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
9088 * doc/posix-functions/btowc.texi: Document the new module.
9090 2008-12-17 Bruno Haible <bruno@clisp.org>
9092 New module 'mbsinit'.
9093 * lib/wchar.in.h (mbsinit): New declaration.
9094 * lib/mbsinit.c: New file.
9095 * m4/mbsinit.m4: New file.
9096 * modules/mbsinit: New file.
9097 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
9099 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
9101 * doc/posix-functions/mbsinit.texi: Document the new module.
9103 2008-12-16 Bruno Haible <bruno@clisp.org>
9105 * lib/unistd.in.h: Add comment.
9106 * tests/test-environ.c: Don't include <stdlib.h>.
9108 2008-12-16 Bruno Haible <bruno@clisp.org>
9110 * lib/parse-duration.h (parse_duration): Document return value
9112 * lib/parse-duration.c: Include specification header first. Add
9115 (parse_year_month_day, parse_hour_minute_second): Move side effects
9116 outside of strchr call.
9117 (parse_non_iso8601): Move side effects outside of isspace call.
9118 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
9121 2008-12-16 Bruno Haible <bruno@clisp.org>
9123 * tests/test-parse-duration.sh: Produce no output when the test
9126 2008-12-16 Bruno Haible <bruno@clisp.org>
9128 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
9131 2008-12-15 Bruno Haible <bruno@clisp.org>
9133 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
9134 * doc/glibc-functions/flistxattr.texi: Likewise.
9135 * doc/glibc-functions/fopencookie.texi: Likewise.
9136 * doc/glibc-functions/fremovexattr.texi: Likewise.
9137 * doc/glibc-functions/fsetxattr.texi: Likewise.
9138 * doc/glibc-functions/getxattr.texi: Likewise.
9139 * doc/glibc-functions/lgetxattr.texi: Likewise.
9140 * doc/glibc-functions/listxattr.texi: Likewise.
9141 * doc/glibc-functions/llistxattr.texi: Likewise.
9142 * doc/glibc-functions/lremovexattr.texi: Likewise.
9143 * doc/glibc-functions/lsetxattr.texi: Likewise.
9144 * doc/glibc-functions/removexattr.texi: Likewise.
9145 * doc/glibc-functions/setxattr.texi: Likewise.
9146 * doc/posix-functions/open_memstream.texi: Likewise.
9148 2008-12-15 Eric Blake <ebb9@byu.net>
9150 Update doc for cygwin 1.7.
9151 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
9153 * doc/posix-functions/fchmodat.texi: Likewise.
9154 * doc/posix-functions/fchownat.texi: Likewise.
9155 * doc/posix-functions/fdopendir.texi: Likewise.
9156 * doc/posix-functions/fmemopen.texi: Likewise.
9157 * doc/posix-functions/freeaddrinfo.texi: Likewise.
9158 * doc/posix-functions/fstatat.texi: Likewise.
9159 * doc/posix-functions/futimens.texi: Likewise.
9160 * doc/posix-functions/gai_strerror.texi: Likewise.
9161 * doc/posix-functions/getaddrinfo.texi: Likewise.
9162 * doc/posix-functions/getnameinfo.texi: Likewise.
9163 * doc/posix-functions/if_freenameindex.texi: Likewise.
9164 * doc/posix-functions/if_indextoname.texi: Likewise.
9165 * doc/posix-functions/if_nameindex.texi: Likewise.
9166 * doc/posix-functions/if_nametoindex.texi: Likewise.
9167 * doc/posix-functions/insque.texi: Likewise.
9168 * doc/posix-functions/linkat.texi: Likewise.
9169 * doc/posix-functions/llrint.texi: Likewise.
9170 * doc/posix-functions/llrintf.texi: Likewise.
9171 * doc/posix-functions/llrintl.texi: Likewise.
9172 * doc/posix-functions/lockf.texi: Likewise.
9173 * doc/posix-functions/lrintl.texi: Likewise.
9174 * doc/posix-functions/mkdirat.texi: Likewise.
9175 * doc/posix-functions/mkfifoat.texi: Likewise.
9176 * doc/posix-functions/mknodat.texi: Likewise.
9177 * doc/posix-functions/mq_close.texi: Likewise.
9178 * doc/posix-functions/mq_getattr.texi: Likewise.
9179 * doc/posix-functions/mq_notify.texi: Likewise.
9180 * doc/posix-functions/mq_open.texi: Likewise.
9181 * doc/posix-functions/mq_receive.texi: Likewise.
9182 * doc/posix-functions/mq_send.texi: Likewise.
9183 * doc/posix-functions/mq_setattr.texi: Likewise.
9184 * doc/posix-functions/mq_timedreceive.texi: Likewise.
9185 * doc/posix-functions/mq_timedsend.texi: Likewise.
9186 * doc/posix-functions/mq_unlink.texi: Likewise.
9187 * doc/posix-functions/open_memstream.texi: Likewise.
9188 * doc/posix-functions/openat.texi: Likewise.
9189 * doc/posix-functions/posix_fadvise.texi: Likewise.
9190 * doc/posix-functions/posix_fallocate.texi: Likewise.
9191 * doc/posix-functions/posix_madvise.texi: Likewise.
9192 * doc/posix-functions/posix_memalign.texi: Likewise.
9193 * doc/posix-functions/posix_openpt.texi: Likewise.
9194 * doc/posix-functions/readlinkat.texi: Likewise.
9195 * doc/posix-functions/remque.texi: Likewise.
9196 * doc/posix-functions/renameat.texi: Likewise.
9197 * doc/posix-functions/rintl.texi: Likewise.
9198 * doc/posix-functions/sem_unlink.texi: Likewise.
9199 * doc/posix-functions/shm_open.texi: Likewise.
9200 * doc/posix-functions/shm_unlink.texi: Likewise.
9201 * doc/posix-functions/signgam.texi: Likewise.
9202 * doc/posix-functions/sigset.texi: Likewise.
9203 * doc/posix-functions/stpcpy.texi: Likewise.
9204 * doc/posix-functions/stpncpy.texi: Likewise.
9205 * doc/posix-functions/strerror.texi: Likewise.
9206 * doc/posix-functions/strtod.texi: Likewise.
9207 * doc/posix-functions/symlinkat.texi: Likewise.
9208 * doc/posix-functions/unlinkat.texi: Likewise.
9209 * doc/posix-functions/utimensat.texi: Likewise.
9210 * doc/glibc-functions/bindresvport.texi: Likewise.
9211 * doc/glibc-functions/dn_expand.texi: Likewise.
9212 * doc/glibc-functions/exp10.texi: Likewise.
9213 * doc/glibc-functions/exp10f.texi: Likewise.
9214 * doc/glibc-functions/fgetxattr.texi: Likewise.
9215 * doc/glibc-functions/flistxattr.texi: Likewise.
9216 * doc/glibc-functions/fopencookie.texi: Likewise.
9217 * doc/glibc-functions/freeifaddrs.texi: Likewise.
9218 * doc/glibc-functions/fremovexattr.texi: Likewise.
9219 * doc/glibc-functions/fsetxattr.texi: Likewise.
9220 * doc/glibc-functions/getifaddrs.texi: Likewise.
9221 * doc/glibc-functions/getxattr.texi: Likewise.
9222 * doc/glibc-functions/lgetxattr.texi: Likewise.
9223 * doc/glibc-functions/listxattr.texi: Likewise.
9224 * doc/glibc-functions/llistxattr.texi: Likewise.
9225 * doc/glibc-functions/lremovexattr.texi: Likewise.
9226 * doc/glibc-functions/lsetxattr.texi: Likewise.
9227 * doc/glibc-functions/pow10.texi: Likewise.
9228 * doc/glibc-functions/pow10f.texi: Likewise.
9229 * doc/glibc-functions/rcmd_af.texi: Likewise.
9230 * doc/glibc-functions/removexattr.texi: Likewise.
9231 * doc/glibc-functions/res_init.texi: Likewise.
9232 * doc/glibc-functions/res_mkquery.texi: Likewise.
9233 * doc/glibc-functions/res_query.texi: Likewise.
9234 * doc/glibc-functions/res_querydomain.texi: Likewise.
9235 * doc/glibc-functions/res_send.texi: Likewise.
9236 * doc/glibc-functions/rresvport_af.texi: Likewise.
9237 * doc/glibc-functions/setxattr.texi: Likewise.
9238 * doc/glibc-functions/strcasestr.texi: Likewise.
9240 2008-12-15 Bruno Haible <bruno@clisp.org>
9242 Fix compilation error on OSF/1 4.0.
9243 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
9244 <sys/time.h>, simply delegate to the system header.
9245 Reported by Daniel Richard G. <oss@teragram.com>.
9247 2008-12-15 Bruno Haible <bruno@clisp.org>
9249 * doc/posix-functions/openat.texi: Mention the 'openat' module.
9250 * doc/posix-functions/fchmodat.texi: Likewise.
9251 * doc/posix-functions/fchownat.texi: Likewise.
9252 * doc/posix-functions/fdopendir.texi: Likewise.
9253 * doc/posix-functions/fstatat.texi: Likewise.
9254 * doc/posix-functions/mkdirat.texi: Likewise.
9255 * doc/posix-functions/unlinkat.texi: Likewise.
9257 2008-12-14 Bruno Haible <bruno@clisp.org>
9259 Update doc for POSIX:2008.
9260 * doc/posix-functions/faccessat.texi: New file.
9261 * doc/posix-functions/fchmodat.texi: New file.
9262 * doc/posix-functions/fchownat.texi: New file.
9263 * doc/posix-functions/fdopendir.texi: New file.
9264 * doc/posix-functions/fstatat.texi: New file.
9265 * doc/posix-functions/futimens.texi: New file.
9266 * doc/posix-functions/linkat.texi: New file.
9267 * doc/posix-functions/mkdirat.texi: New file.
9268 * doc/posix-functions/mkfifoat.texi: New file.
9269 * doc/posix-functions/mknodat.texi: New file.
9270 * doc/posix-functions/open_wmemstream.texi: New file.
9271 * doc/posix-functions/openat.texi: New file.
9272 * doc/posix-functions/psiginfo.texi: New file.
9273 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
9274 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
9275 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
9276 * doc/posix-functions/readlinkat.texi: New file.
9277 * doc/posix-functions/renameat.texi: New file.
9278 * doc/posix-functions/strerror_l.texi: New file.
9279 * doc/posix-functions/symlinkat.texi: New file.
9280 * doc/posix-functions/unlinkat.texi: New file.
9281 * doc/posix-functions/utimensat.texi: New file.
9282 * doc/gnulib.texi (Function Substitutes): Add these subsections.
9284 2008-12-14 Bruno Haible <bruno@clisp.org>
9286 Update doc for POSIX:2008.
9287 * doc/posix-functions/alphasort.texi: Renamed from
9288 doc/glibc-functions/alphasort.texi.
9289 * doc/posix-functions/dirfd.texi: Renamed from
9290 doc/glibc-functions/dirfd.texi.
9291 * doc/posix-functions/dprintf.texi: Renamed from
9292 doc/glibc-functions/dprintf.texi.
9293 * doc/posix-functions/duplocale.texi: Renamed from
9294 doc/glibc-functions/duplocale.texi.
9295 * doc/posix-functions/fexecve.texi: Renamed from
9296 doc/glibc-functions/fexecve.texi.
9297 * doc/posix-functions/fmemopen.texi: Renamed from
9298 doc/glibc-functions/fmemopen.texi.
9299 * doc/posix-functions/freelocale.texi: Renamed from
9300 doc/glibc-functions/freelocale.texi.
9301 * doc/posix-functions/getdate_err.texi: Renamed from
9302 doc/glibc-functions/getdate_err.texi.
9303 * doc/posix-functions/isalnum_l.texi: Renamed from
9304 doc/glibc-functions/isalnum_l.texi.
9305 * doc/posix-functions/isalpha_l.texi: Renamed from
9306 doc/glibc-functions/isalpha_l.texi.
9307 * doc/posix-functions/isblank_l.texi: Renamed from
9308 doc/glibc-functions/isblank_l.texi.
9309 * doc/posix-functions/iscntrl_l.texi: Renamed from
9310 doc/glibc-functions/iscntrl_l.texi.
9311 * doc/posix-functions/isdigit_l.texi: Renamed from
9312 doc/glibc-functions/isdigit_l.texi.
9313 * doc/posix-functions/isgraph_l.texi: Renamed from
9314 doc/glibc-functions/isgraph_l.texi.
9315 * doc/posix-functions/islower_l.texi: Renamed from
9316 doc/glibc-functions/islower_l.texi.
9317 * doc/posix-functions/isprint_l.texi: Renamed from
9318 doc/glibc-functions/isprint_l.texi.
9319 * doc/posix-functions/ispunct_l.texi: Renamed from
9320 doc/glibc-functions/ispunct_l.texi.
9321 * doc/posix-functions/isspace_l.texi: Renamed from
9322 doc/glibc-functions/isspace_l.texi.
9323 * doc/posix-functions/isupper_l.texi: Renamed from
9324 doc/glibc-functions/isupper_l.texi.
9325 * doc/posix-functions/iswalnum_l.texi: Renamed from
9326 doc/glibc-functions/iswalnum_l.texi.
9327 * doc/posix-functions/iswalpha_l.texi: Renamed from
9328 doc/glibc-functions/iswalpha_l.texi.
9329 * doc/posix-functions/iswblank_l.texi: Renamed from
9330 doc/glibc-functions/iswblank_l.texi.
9331 * doc/posix-functions/iswcntrl_l.texi: Renamed from
9332 doc/glibc-functions/iswcntrl_l.texi.
9333 * doc/posix-functions/iswctype_l.texi: Renamed from
9334 doc/glibc-functions/iswctype_l.texi.
9335 * doc/posix-functions/iswdigit_l.texi: Renamed from
9336 doc/glibc-functions/iswdigit_l.texi.
9337 * doc/posix-functions/iswgraph_l.texi: Renamed from
9338 doc/glibc-functions/iswgraph_l.texi.
9339 * doc/posix-functions/iswlower_l.texi: Renamed from
9340 doc/glibc-functions/iswlower_l.texi.
9341 * doc/posix-functions/iswprint_l.texi: Renamed from
9342 doc/glibc-functions/iswprint_l.texi.
9343 * doc/posix-functions/iswpunct_l.texi: Renamed from
9344 doc/glibc-functions/iswpunct_l.texi.
9345 * doc/posix-functions/iswspace_l.texi: Renamed from
9346 doc/glibc-functions/iswspace_l.texi.
9347 * doc/posix-functions/iswupper_l.texi: Renamed from
9348 doc/glibc-functions/iswupper_l.texi.
9349 * doc/posix-functions/iswxdigit_l.texi: Renamed from
9350 doc/glibc-functions/iswxdigit_l.texi.
9351 * doc/posix-functions/isxdigit_l.texi: Renamed from
9352 doc/glibc-functions/isxdigit_l.texi.
9353 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
9354 doc/glibc-functions/mbsnrtowcs.texi.
9355 * doc/posix-functions/mkdtemp.texi: Renamed from
9356 doc/glibc-functions/mkdtemp.texi.
9357 * doc/posix-functions/newlocale.texi: Renamed from
9358 doc/glibc-functions/newlocale.texi.
9359 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
9360 doc/glibc-functions/nl_langinfo_l.texi.
9361 * doc/posix-functions/open_memstream.texi: Renamed from
9362 doc/glibc-functions/open_memstream.texi.
9363 * doc/posix-functions/opterr.texi: Renamed from
9364 doc/glibc-functions/opterr.texi.
9365 * doc/posix-functions/optind.texi: Renamed from
9366 doc/glibc-functions/optind.texi.
9367 * doc/posix-functions/optopt.texi: Renamed from
9368 doc/glibc-functions/optopt.texi.
9369 * doc/posix-functions/psignal.texi: Renamed from
9370 doc/glibc-functions/psignal.texi.
9371 * doc/posix-functions/scandir.texi: Renamed from
9372 doc/glibc-functions/scandir.texi.
9373 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
9374 doc/glibc-functions/sched_get_priority_min.texi.
9375 * doc/posix-functions/signgam.texi: Renamed from
9376 doc/glibc-functions/signgam.texi.
9377 * doc/posix-functions/stpcpy.texi: Renamed from
9378 doc/glibc-functions/stpcpy.texi.
9379 * doc/posix-functions/stpncpy.texi: Renamed from
9380 doc/glibc-functions/stpncpy.texi.
9381 * doc/posix-functions/strcasecmp_l.texi: Renamed from
9382 doc/glibc-functions/strcasecmp_l.texi.
9383 * doc/posix-functions/strcoll_l.texi: Renamed from
9384 doc/glibc-functions/strcoll_l.texi.
9385 * doc/posix-functions/strfmon_l.texi: Renamed from
9386 doc/glibc-functions/strfmon_l.texi.
9387 * doc/posix-functions/strftime_l.texi: Renamed from
9388 doc/glibc-functions/strftime_l.texi.
9389 * doc/posix-functions/strncasecmp_l.texi: Renamed from
9390 doc/glibc-functions/strncasecmp_l.texi.
9391 * doc/posix-functions/strndup.texi: Renamed from
9392 doc/glibc-functions/strndup.texi.
9393 * doc/posix-functions/strnlen.texi: Renamed from
9394 doc/glibc-functions/strnlen.texi.
9395 * doc/posix-functions/strsignal.texi: Renamed from
9396 doc/glibc-functions/strsignal.texi.
9397 * doc/posix-functions/strxfrm_l.texi: Renamed from
9398 doc/glibc-functions/strxfrm_l.texi.
9399 * doc/posix-functions/timer_gettime.texi: Renamed from
9400 doc/glibc-functions/timer_gettime.texi.
9401 * doc/posix-functions/tolower_l.texi: Renamed from
9402 doc/glibc-functions/tolower_l.texi.
9403 * doc/posix-functions/toupper_l.texi: Renamed from
9404 doc/glibc-functions/toupper_l.texi.
9405 * doc/posix-functions/towctrans_l.texi: Renamed from
9406 doc/glibc-functions/towctrans_l.texi.
9407 * doc/posix-functions/towlower_l.texi: Renamed from
9408 doc/glibc-functions/towlower_l.texi.
9409 * doc/posix-functions/towupper_l.texi: Renamed from
9410 doc/glibc-functions/towupper_l.texi.
9411 * doc/posix-functions/uselocale.texi: Renamed from
9412 doc/glibc-functions/uselocale.texi.
9413 * doc/posix-functions/vdprintf.texi: Renamed from
9414 doc/glibc-functions/vdprintf.texi.
9415 * doc/posix-functions/wcpcpy.texi:
9416 Renamed from doc/glibc-functions/wcpcpy.texi.
9417 * doc/posix-functions/wcpncpy.texi: Renamed from
9418 doc/glibc-functions/wcpncpy.texi.
9419 * doc/posix-functions/wcscasecmp.texi: Renamed from
9420 doc/glibc-functions/wcscasecmp.texi.
9421 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
9422 doc/glibc-functions/wcscasecmp_l.texi.
9423 * doc/posix-functions/wcscoll_l.texi: Renamed from
9424 doc/glibc-functions/wcscoll_l.texi.
9425 * doc/posix-functions/wcsdup.texi: Renamed from
9426 doc/glibc-functions/wcsdup.texi.
9427 * doc/posix-functions/wcsncasecmp.texi: Renamed from
9428 doc/glibc-functions/wcsncasecmp.texi.
9429 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
9430 doc/glibc-functions/wcsncasecmp_l.texi.
9431 * doc/posix-functions/wcsnlen.texi: Renamed from
9432 doc/glibc-functions/wcsnlen.texi.
9433 * doc/posix-functions/wcsnrtombs.texi: Renamed from
9434 doc/glibc-functions/wcsnrtombs.texi.
9435 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
9436 doc/glibc-functions/wcsxfrm_l.texi.
9437 * doc/posix-functions/wctrans_l.texi: Renamed from
9438 doc/glibc-functions/wctrans_l.texi.
9439 * doc/posix-functions/wctype_l.texi: Renamed from
9440 doc/glibc-functions/wctype_l.texi.
9441 * doc/gnulib.texi (Function Substitutes): Add these subsections.
9442 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
9443 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
9444 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
9446 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
9449 2008-12-14 Bruno Haible <bruno@clisp.org>
9451 Update doc for POSIX:2008.
9452 * doc/posix-functions/*.texi: Update URL of POSIX specification.
9454 2008-12-14 Bruno Haible <bruno@clisp.org>
9456 Update doc for POSIX:2008.
9457 * doc/pastposix-functions/bcmp.texi: Renamed from
9458 doc/posix-functions/bcmp.texi.
9459 * doc/pastposix-functions/bcopy.texi: Renamed from
9460 doc/posix-functions/bcopy.texi.
9461 * doc/pastposix-functions/bsd_signal.texi: Renamed from
9462 doc/posix-functions/bsd_signal.texi.
9463 * doc/pastposix-functions/bzero.texi: Renamed from
9464 doc/posix-functions/bzero.texi.
9465 * doc/pastposix-functions/ecvt.texi: Renamed from
9466 doc/posix-functions/ecvt.texi.
9467 * doc/pastposix-functions/fcvt.texi: Renamed from
9468 doc/posix-functions/fcvt.texi.
9469 * doc/pastposix-functions/ftime.texi: Renamed from
9470 doc/posix-functions/ftime.texi.
9471 * doc/pastposix-functions/gcvt.texi: Renamed from
9472 doc/posix-functions/gcvt.texi.
9473 * doc/pastposix-functions/getcontext.texi: Renamed from
9474 doc/posix-functions/getcontext.texi.
9475 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
9476 doc/posix-functions/gethostbyaddr.texi.
9477 * doc/pastposix-functions/gethostbyname.texi: Renamed from
9478 doc/posix-functions/gethostbyname.texi.
9479 * doc/pastposix-functions/getwd.texi: Renamed from
9480 doc/posix-functions/getwd.texi.
9481 * doc/pastposix-functions/h_errno.texi: Renamed from
9482 doc/posix-functions/h_errno.texi.
9483 * doc/pastposix-functions/index.texi: Renamed from
9484 doc/posix-functions/index.texi.
9485 * doc/pastposix-functions/makecontext.texi: Renamed from
9486 doc/posix-functions/makecontext.texi.
9487 * doc/pastposix-functions/mktemp.texi: Renamed from
9488 doc/posix-functions/mktemp.texi.
9489 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
9490 doc/posix-functions/pthread_attr_getstackaddr.texi.
9491 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
9492 doc/posix-functions/pthread_attr_setstackaddr.texi.
9493 * doc/pastposix-functions/rindex.texi: Renamed from
9494 doc/posix-functions/rindex.texi.
9495 * doc/pastposix-functions/scalb.texi: Renamed from
9496 doc/posix-functions/scalb.texi.
9497 * doc/pastposix-functions/setcontext.texi: Renamed from
9498 doc/posix-functions/setcontext.texi.
9499 * doc/pastposix-functions/swapcontext.texi: Renamed from
9500 doc/posix-functions/swapcontext.texi.
9501 * doc/pastposix-functions/ualarm.texi: Renamed from
9502 doc/posix-functions/ualarm.texi.
9503 * doc/pastposix-functions/usleep.texi: Renamed from
9504 doc/posix-functions/usleep.texi.
9505 * doc/pastposix-functions/vfork.texi: Renamed from
9506 doc/posix-functions/vfork.texi.
9507 * doc/pastposix-functions/wcswcs.texi: Renamed from
9508 doc/posix-functions/wcswcs.texi.
9509 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
9510 (Function Substitutes): Update.
9512 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9514 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
9517 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9518 Bruno Haible <bruno@clisp.org>
9520 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
9522 2008-12-13 Bruno Haible <bruno@clisp.org>
9524 * modules/strtoull (Depends-on): Remove unistd.
9526 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9528 * modules/strtoull (Depends-on): Add stdlib.
9530 2008-12-11 Simon Josefsson <simon@josefsson.org>
9532 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
9534 2008-12-10 Jim Meyering <meyering@redhat.com>
9536 gl_ASSERT: don't say assertions are disabled when they're not
9537 * m4/assert.m4 (gl_ASSERT): Do not make configure report
9538 "checking whether to enable assertions... no", when they are in
9539 fact enabled. This is solely a bug in the output of configure.
9540 In spite of saying "no", NDEBUG was not defined in that case.
9541 Also, as noted by Eric Blake, leave assertions enabled upon
9542 --enable-assert=INVALID.
9544 2008-12-10 Bruno Haible <bruno@clisp.org>
9546 Change MODULES.html to refer to POSIX:2008 where possible.
9547 * MODULES.html.sh (POSIX2008_URL): New variable.
9548 (posix_headers): Remove sys/timeb, ucontext.
9549 (posix2001_headers): New variable.
9550 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
9551 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
9552 index, makecontext, mktemp, pthread_attr_getstackaddr,
9553 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
9554 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
9555 (posix2001_functions): New variable.
9556 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
9559 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9561 add missing include to parse-duration.c
9562 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
9563 * modules/parse-duration (Depends-on): Add xalloc.
9565 fix sed script reading maint.mk
9566 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
9567 (syntax-check-rules): Use it.
9569 2008-12-09 Bruno Haible <bruno@clisp.org>
9571 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
9572 MacOS X 10.4/PowerPC.
9573 Reported by Simon Josefsson.
9575 2008-12-08 Jim Meyering <meyering@redhat.com>
9577 work around mingw's lack of some S_IF definitions
9578 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
9579 Reported by Simon Josefsson.
9581 2008-12-08 Bruno Haible <bruno@clisp.org>
9583 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
9584 applied to variables. Needed on MacOS X 10.4/PowerPC.
9585 Reported by Simon Josefsson.
9587 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
9588 and Eric Blake <ebb9@byu.net>
9590 assert: honor --enable-assert
9591 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
9592 order to honor --enable-assert, rather than treating it as a
9593 synonym for --disable-assert.
9595 2008-12-08 Jim Meyering <meyering@redhat.com>
9597 * lib/posixtm.c: Remove now-useless declaration of mktime.
9599 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
9601 2008-12-07 Bruno Haible <bruno@clisp.org>
9603 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
9604 test_once): Mark functions as static.
9605 * tests/test-tls.c (test_tls): Likewise.
9607 2008-12-07 Bruno Haible <bruno@clisp.org>
9609 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
9610 iconv_register_autodetect.
9612 2008-12-07 Jim Meyering <meyering@redhat.com>
9614 posixtm.c: avoid a warning
9615 * lib/posixtm.c (posixtime): Don't initialize tm0.
9616 It's no longer needed to placate gcc4's -Wuninitialized,
9617 and the attempt to placate would elicit a new warning.
9619 unicodeio.c: mark unused parameters
9620 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
9621 (fallback_failure_callback): Likewise.
9623 2008-12-07 Bruno Haible <bruno@clisp.org>
9625 * gnulib-tool (func_create_testdir): When building the tests
9626 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
9627 Reported by Simon Josefsson.
9629 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9631 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
9633 2008-12-06 Bruno Haible <bruno@clisp.org>
9635 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
9636 Suggested by Eric Blake.
9638 2008-12-06 Bruno Haible <bruno@clisp.org>
9640 Fix a c-stack test failure on MacOS X.
9641 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
9642 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
9643 handler for SIGBUS as well.
9644 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
9645 install a signal handler for SIGBUS as well.
9646 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
9648 2008-12-06 Bruno Haible <bruno@clisp.org>
9650 Advocacy documentation.
9651 * doc/gnulib-intro.texi (Benefits): New section.
9652 * doc/gnulib.texi: Update.
9654 2008-12-06 Bruno Haible <bruno@clisp.org>
9656 Document the 'manywarnings' module.
9657 * doc/manywarnings.texi: New file.
9658 * doc/gnulib.texi: Include it.
9660 2008-12-05 Eric Blake <ebb9@byu.net>
9662 tests: silence some gcc warnings
9663 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
9664 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
9667 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9668 Bruno Haible <bruno@clisp.org>
9670 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
9672 2008-11-29 Jim Meyering <meyering@redhat.com>
9674 unicodeio.c: mark unused parameters
9675 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
9676 (fallback_failure_callback): Likewise.
9679 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
9680 (set_stat_type): Return S_IF*-valued "type" directly.
9681 Prompted by James Youngman's spotting a related bug.
9682 Confirmed by further testing through find.
9684 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
9685 * lib/fts.c (D_TYPE): Define.
9686 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
9687 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
9688 (s_ifmt_shift_bits): New function.
9689 (set_stat_type): New function.
9690 (fts_build): When not calling fts_stat, call set_stat_type
9691 to propagate dirent.d_type info to fts_read caller.
9692 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
9693 fts_statp->st_mode type information may be valid.
9695 2008-11-28 Simon Josefsson <simon@josefsson.org>
9697 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
9698 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
9701 2008-11-20 Bruno Haible <bruno@clisp.org>
9703 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
9704 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
9706 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
9707 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
9708 * modules/math (Makefile.am): Substitute
9709 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
9710 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9712 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
9713 Bruno Haible <bruno@clisp.org>
9715 * lib/stdint.in.h: Define all type macros so that their expansion is
9716 a single typedef'ed token. Fixes a compilation failure in Boost which
9717 does "using ::int8_t;".
9719 2008-11-18 Simon Josefsson <simon@josefsson.org>
9721 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
9722 gl_MANYWARN_ALL_GCC.
9723 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
9724 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
9725 * modules/manywarnings: New file.
9726 * MODULES.html.sh: Mention manywarnings module.
9728 2008-11-18 Bruno Haible <bruno@clisp.org>
9730 * doc/gnulib-tool.texi (Unit tests): New section.
9732 2008-11-18 Simon Josefsson <simon@josefsson.org>
9734 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
9735 paths like 'lib/po/foo.po'.
9737 2008-11-17 Simon Josefsson <simon@josefsson.org>
9739 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
9740 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
9742 2008-11-17 Simon Josefsson <simon@josefsson.org>
9744 * m4/warnings.m4: Use CPPFLAGS to really check whether the
9747 2008-11-17 Simon Josefsson <simon@josefsson.org>
9749 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
9751 2008-11-17 Bruce Korb <bkorb@gnu.org>
9753 * modules/parse-duration-tests: New file.
9754 * tests/test-parse-duration.sh: New file.
9755 * tests/test-parse-duration.c: New file.
9757 New module 'parse-duration'.
9758 * lib/parse-duration.h: New file.
9759 * lib/parse-duration.c: New file.
9760 * modules/parse-duration: New file.
9762 2008-11-17 Bruno Haible <bruno@clisp.org>
9764 * tests/test-select-out.sh: Comment out the first pipe test.
9765 Reported by Simon Josefsson.
9767 2008-11-17 Bruno Haible <bruno@clisp.org>
9769 * modules/getaddrinfo (Depends-on): Add servent, hostent.
9770 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
9773 2008-11-17 Bruno Haible <bruno@clisp.org>
9775 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
9776 -lnetwork and -lnet. Needed for Haiku and BeOS.
9778 2008-11-16 Bruno Haible <bruno@clisp.org>
9780 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
9782 2008-11-16 Bruno Haible <bruno@clisp.org>
9784 Avoid test failure on Haiku.
9785 * tests/test-fsync.c: Include <errno.h>.
9786 (main): Don't require that fsync (0) fails.
9788 2008-11-15 Bruno Haible <bruno@clisp.org>
9790 New module 'hostent'.
9791 * modules/hostent: New file.
9792 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
9794 2008-11-15 Bruno Haible <bruno@clisp.org>
9796 New module 'servent'.
9797 * modules/servent: New file.
9798 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
9800 2008-11-15 Bruno Haible <bruno@clisp.org>
9802 Avoid generating same test program with two different rules.
9803 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
9804 test-frexp to test-frexp-nolibm.
9805 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
9806 test-frexpl to test-frexpl-nolibm.
9808 2008-11-15 Bruno Haible <bruno@clisp.org>
9810 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
9813 2008-11-15 Bruno Haible <bruno@clisp.org>
9815 * lib/netdb.in.h: Activate the definitions also when the system's
9816 <netdb.h> has 'struct addrinfo'.
9817 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
9818 EAI_OVERFLOW or AI_NUMERICSERV.
9819 * doc/posix-headers/netdb.texi: Document the problem.
9821 2008-11-15 Bruno Haible <bruno@clisp.org>
9823 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
9825 Make the 'sched' module work on platforms where <sched.h> exists but
9826 is incomplete (such as Haiku).
9827 * lib/sched.in.h; Include the system's <sched.h> if it exists.
9828 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
9829 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
9830 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
9831 HAVE_STRUCT_SCHED_PARAM.
9832 * modules/sched (Depends-on): Add include_next.
9833 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
9834 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
9835 * doc/posix-headers/sched.texi: Document the issue.
9837 2008-11-13 Jim Meyering <meyering@redhat.com>
9839 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
9840 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
9841 test would fail due to the difference in the Report bugs to ...
9842 line. The expected address is empty, "<>", while the actual
9843 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
9845 2008-11-12 Bruno Haible <bruno@clisp.org>
9847 lstat: don't compile lstat.c on systems lacking lstat
9848 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
9849 which don't have lstat; this is handled by lib/sys_stat.in.h already.
9850 Reported by Daniel P. Berrange via Jim Meyering.
9852 2008-11-12 Jim Meyering <meyering@redhat.com>
9854 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
9856 2008-11-12 Simon Josefsson <simon@josefsson.org>
9858 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
9861 2008-11-12 Bruno Haible <bruno@clisp.org>
9863 * lib/unicodeio.c: Include unistr.h.
9864 (utf8_wctomb): Remove function.
9865 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
9867 2008-11-12 Simon Josefsson <simon@josefsson.org>
9869 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
9870 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
9872 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
9874 2008-11-12 Simon Josefsson <simon@josefsson.org>
9876 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
9877 * doc/gnulib.texi: Add section for warnings.
9879 2008-11-11 Bruno Haible <bruno@clisp.org>
9881 * lib/sockets.h: Add a comment.
9883 2008-11-11 Karl Berry <karl@gnu.org>
9885 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
9887 2008-11-11 Eric Blake <ebb9@byu.net>
9889 fdl.texi: avoid git symlinks
9890 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
9892 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9894 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
9896 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9898 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
9899 (gl_WARN_ADD): Substitute $2 if literal.
9901 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9903 * m4/warning.m4: Remove.
9905 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9907 * m4/warnings.m4: Almost complete rewrite. :-)
9909 2008-11-10 Simon Josefsson <simon@josefsson.org>
9911 * modules/warnings: New module.
9912 * m4/warnings.m4: New file.
9913 * MODULES.html.sh: Mention warnings module.
9914 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
9915 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9917 2008-11-10 Eric Blake <ebb9@byu.net>
9919 fdl.texi: make a symlink to the latest version
9920 * doc/standards.texi: Revert today's earlier change.
9921 * doc/fdl-1.2.texi: Rename from old fdl.texi...
9922 * doc/fdl.texi: ...and replace this with a symlink to the newer
9925 2008-11-10 Bruno Haible <bruno@clisp.org>
9927 * tests/test-select-fd.c (main): Accept the result file name as fourth
9929 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
9930 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
9932 2008-11-10 Bruno Haible <bruno@clisp.org>
9934 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
9935 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
9936 as autoconf-substituted macros.
9937 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
9938 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
9939 gl_NETDB_H_DEFAULTS. Set these variables.
9940 * modules/netdb (Makefile.am): Substitute these variables.
9942 2008-11-10 Eric Blake <ebb9@byu.net>
9944 standards.texi: include correct file for FDL 1.3
9945 * doc/standards.texi (GNU Free Documentation License): Change
9946 include file to pull in FDL 1.3, not 1.2.
9948 fdl.texi: revert accidental change to license
9949 * doc/fdl.texi: This is FDL 1.2, not 1.3.
9951 2008-11-10 Bruno Haible <bruno@clisp.org>
9953 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
9954 cross-compiling guesses also when the native compile gives no result.
9956 2008-11-10 Bruno Haible <bruno@clisp.org>
9958 * lib/spawni.c (__spawni): Force variable into the stack.
9960 2008-11-10 Bruno Haible <bruno@clisp.org>
9962 Add support for Haiku.
9963 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
9964 glibc and BeOS, but also on Haiku.
9965 * lib/fpurge.c (fpurge): Likewise.
9966 * lib/freadable.c (freadable): Likewise.
9967 * lib/freadahead.c (freadahead): Likewise.
9968 * lib/freading.c (freading): Likewise.
9969 * lib/freadptr.c (freadptr): Likewise.
9970 * lib/freadseek.c (freadptrinc): Likewise.
9971 * lib/fseeko.c (rpl_fseeko): Likewise.
9972 * lib/fseterr.c (fseterr): Likewise.
9973 * lib/fwritable.c (fwritable): Likewise.
9974 * lib/fwriting.c (fwriting): Likewise.
9975 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
9977 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
9979 * lib/config.charset: Treat Haiku like BeOS.
9981 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
9983 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
9984 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
9986 2008-11-08 Bruno Haible <bruno@clisp.org>
9988 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
9991 2008-11-08 Bruno Haible <bruno@clisp.org>
9993 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
9995 2008-11-08 Bruno Haible <bruno@clisp.org>
9997 * tests/test-select-fd.c: New file.
9998 * tests/test-select-in.sh: New file.
9999 * tests/test-select-out.sh: New file.
10000 * tests/test-select-stdin.c: New file.
10001 * modules/select-tests (Files): Add the new files.
10002 (Depends-on): Add gettimeofday.
10003 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
10004 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
10005 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
10007 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
10008 Bruno Haible <bruno@clisp.org>
10010 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
10012 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
10014 * build-aux/pmccabe2html: Added support for C++ source files.
10016 2008-11-05 Ben Pfaff <blp@gnu.org>
10018 Fix lib/close.c build on Windows.
10019 * modules/close (Files): Add lib/w32sock.h.
10021 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
10023 Accept Bison's NEWS format.
10024 * build-aux/announce-gen (print_news_deltas): Tweak
10027 2008-11-04 Bruno Haible <bruno@clisp.org>
10029 * modules/random_r (Maintainer): Add glibc.
10031 2008-11-04 Simon Josefsson <simon@josefsson.org>
10033 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
10034 by karl@freefriends.org (Karl Berry).
10035 * doc/alloca.texi: Likewise.
10036 * doc/c-ctype.texi: Likewise.
10037 * doc/c-strcase.texi: Likewise.
10038 * doc/c-strcaseeq.texi: Likewise.
10039 * doc/c-strcasestr.texi: Likewise.
10040 * doc/c-strstr.texi: Likewise.
10041 * doc/c-strtod.texi: Likewise.
10042 * doc/c-strtold.texi: Likewise.
10043 * doc/ctime.texi: Likewise.
10044 * doc/error.texi: Likewise.
10045 * doc/fdl.texi: Likewise.
10046 * doc/gcd.texi: Likewise.
10047 * doc/getdate.texi: Likewise.
10048 * doc/gnulib-intro.texi: Likewise.
10049 * doc/gnulib-tool.texi: Likewise.
10050 * doc/gnulib.texi: Likewise.
10051 * doc/inet_ntoa.texi: Likewise.
10052 * doc/maintain.texi: Likewise.
10053 * doc/make-stds.texi: Likewise.
10054 * doc/quote.texi: Likewise.
10055 * doc/regexprops-generic.texi: Likewise.
10056 * doc/standards.texi: Likewise.
10057 * doc/verify.texi: Likewise.
10058 * doc/visibility.texi: Likewise.
10059 * doc/gnulib.texi (GNU Free Documentation License): Include
10060 fdl-1.3.texi instead of fdl.texi.
10062 2008-11-04 Simon Josefsson <simon@josefsson.org>
10064 * doc/fdl-1.3.texi: New file, from
10065 <http://www.gnu.org/licenses/fdl-1.3.texi>.
10066 * modules/fdl-1.3: Add.
10067 * MODULES.html.sh: Add fdl-1.3.
10069 2008-11-03 Bruno Haible <bruno@clisp.org>
10071 Make determination of absolute name of header file work with AIX xlc.
10072 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
10073 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
10075 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10076 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10078 2008-11-03 Simon Josefsson <simon@josefsson.org>
10080 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
10081 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
10084 2008-11-02 Bruno Haible <bruno@clisp.org>
10086 Mark 'strpbrk' obsolete.
10087 * modules/strpbrk (Status, Notice): New sections.
10088 * modules/strtok_r (Depends-on): Add strpbrk.
10090 2008-11-02 Bruno Haible <bruno@clisp.org>
10092 Mark 'strdup' obsolete.
10093 * modules/strdup (Status, Notice): New sections.
10094 * modules/findprog (Depends-on): Add strdup.
10095 * modules/getaddrinfo (Depends-on): Likewise.
10096 * modules/localename (Depends-on): Likewise.
10097 * modules/relocatable-lib (Depends-on): Likewise.
10098 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
10099 * modules/relocatable-prog (Depends-on): Likewise.
10100 * modules/trim (Depends-on): Likewise.
10101 * modules/unictype/gen-ctype (Depends-on): Likewise.
10102 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10104 2008-11-02 Bruno Haible <bruno@clisp.org>
10106 Mark 'strcspn' obsolete.
10107 * modules/strcspn (Status, Notice): New sections.
10109 2008-11-02 Bruno Haible <bruno@clisp.org>
10111 Mark 'rmdir' obsolete.
10112 * modules/rmdir (Status, Notice): New sections.
10113 * modules/clean-temp (Depends-on): Add rmdir.
10114 * modules/openat (Depends-on): Likewise.
10116 2008-11-02 Bruno Haible <bruno@clisp.org>
10118 Mark 'raise' obsolete.
10119 * modules/raise (Status, Notice): New sections.
10120 (Include): Specify <signal.h>.
10121 * modules/stdio (Depends-on): Add raise.
10122 * modules/write (Depends-on): Likewise.
10124 2008-11-02 Bruno Haible <bruno@clisp.org>
10126 Mark 'memset' obsolete.
10127 * modules/memset (Status, Notice): New sections.
10129 2008-11-02 Bruno Haible <bruno@clisp.org>
10131 Mark 'memmove' obsolete.
10132 * modules/memmove (Status, Notice): New sections.
10133 * modules/argp (Depends-on): Add memmove.
10134 * modules/argz (Depends-on): Likewise.
10135 * modules/canonicalize (Depends-on): Likewise.
10136 * modules/canonicalize-lgpl (Depends-on): Likewise.
10137 * modules/fts (Depends-on): Likewise.
10138 * modules/getcwd (Depends-on): Likewise.
10139 * modules/human (Depends-on): Likewise.
10140 * modules/regex (Depends-on): Likewise.
10141 * modules/striconveh (Depends-on): Likewise.
10142 * modules/trim (Depends-on): Likewise.
10143 * modules/unistr/u8-move (Depends-on): Likewise.
10144 * modules/unistr/u16-move (Depends-on): Likewise.
10145 * modules/unistr/u32-move (Depends-on): Likewise.
10147 2008-11-02 Bruno Haible <bruno@clisp.org>
10149 Mark 'memcpy' obsolete.
10150 * modules/memcpy (Status, Notice): New sections.
10152 2008-11-02 Bruno Haible <bruno@clisp.org>
10154 Mark 'memcmp' obsolete.
10155 * modules/memcmp (Status, Notice): New sections.
10156 * modules/argmatch (Depends-on): Add memchr.
10157 * modules/backupfile (Depends-on): Likewise.
10158 * modules/c-strcasestr (Depends-on): Likewise.
10159 * modules/crypto/des (Depends-on): Likewise.
10160 * modules/csharpcomp (Depends-on): Likewise.
10161 * modules/fnmatch (Depends-on): Likewise.
10162 * modules/git-merge-changelog (Depends-on): Likewise.
10163 * modules/isnand (Depends-on): Likewise.
10164 * modules/isnand-nolibm (Depends-on): Likewise.
10165 * modules/isnanf (Depends-on): Likewise.
10166 * modules/isnanf-nolibm (Depends-on): Likewise.
10167 * modules/isnanl (Depends-on): Likewise.
10168 * modules/isnanl-nolibm (Depends-on): Likewise.
10169 * modules/mbchar (Depends-on): Likewise.
10170 * modules/memcoll (Depends-on): Likewise.
10171 * modules/quotearg (Depends-on): Likewise.
10172 * modules/regex (Depends-on): Likewise.
10173 * modules/relocatable-prog (Depends-on): Likewise.
10174 * modules/same (Depends-on): Likewise.
10175 * modules/signbit (Depends-on): Likewise.
10176 * modules/strcasestr-simple (Depends-on): Likewise.
10177 * modules/unictype/gen-ctype (Depends-on): Likewise.
10178 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10179 * modules/uniname/uniname (Depends-on): Likewise.
10180 * modules/unistr/u8-cmp (Depends-on): Likewise.
10182 2008-11-02 Bruno Haible <bruno@clisp.org>
10184 Mark 'memchr' obsolete.
10185 * modules/memchr (Status, Notice): New sections.
10186 * modules/argp (Depends-on): Add memchr.
10187 * modules/base64 (Depends-on): Likewise.
10188 * modules/c-strcasestr (Depends-on): Likewise.
10189 * modules/chdir-long (Depends-on): Likewise.
10190 * modules/fnmatch (Depends-on): Likewise.
10191 * modules/getsubopt (Depends-on): Likewise.
10192 * modules/git-merge-changelog (Depends-on): Likewise.
10193 * modules/glob (Depends-on): Likewise.
10194 * modules/strcasestr-simple (Depends-on): Likewise.
10195 * modules/strnlen (Depends-on): Likewise.
10197 2008-11-02 Bruno Haible <bruno@clisp.org>
10199 Mark 'atexit' obsolete.
10200 * modules/atexit (Status, Notice): New sections.
10201 * modules/chdir-long (Depends-on): Add atexit.
10202 * modules/wait-process (Depends-on): Likewise.
10204 2008-11-02 Bruno Haible <bruno@clisp.org>
10206 * gnulib-tool: New option --with-obsolete.
10207 (func_usage): Document it.
10208 (func_modules_transitive_closure): Drop obsolete dependencies if
10209 incobsolete is not true.
10210 (func_import): Read and save the incobsolete variable to the cache.
10212 2008-11-02 Bruno Haible <bruno@clisp.org>
10214 * modules/TEMPLATE-EXTENDED: New field 'Status'.
10215 * gnulib-tool: New option --extract-status.
10216 (func_usage): Document it.
10217 (sed_extract_prog): Recognize it.
10218 (func_get_status): New function.
10220 2008-10-30 Simon Josefsson <simon@josefsson.org>
10222 * modules/sockets (License): Change from LGPL to LGPLv2+.
10224 2008-10-28 Simon Josefsson <simon@josefsson.org>
10226 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
10228 2008-10-28 Simon Josefsson <simon@josefsson.org>
10230 * MODULES.html.sh (Support for systems lacking POSIX:2001):
10231 Mention times and sys_times.
10232 * modules/sys_times, modules/sys_times-tests: New modules.
10233 * modules/times, modules/times-tests: Likewise
10234 * m4/sys_times_h.m4: New file.
10235 * lib/sys_times.in.h: Likewise
10236 * lib/times.c: Likewise.
10237 * tests/test-sys_times.c: Likewise.
10238 * tests/test-times.c: Likewise.
10239 * doc/posix-headers/sys_times.texi: Update.
10240 * doc/posix-functions/times.texi: Update.
10242 2008-10-28 Jim Meyering <meyering@redhat.com>
10244 * modules/tempname (Depends-on): Add lstat.
10246 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
10248 2008-10-28 Simon Josefsson <simon@josefsson.org>
10250 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
10251 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
10252 using idiom used elsewhere in gnulib.
10254 2008-10-27 Jim Meyering <meyering@redhat.com>
10256 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
10258 2008-10-27 Simon Josefsson <simon@josefsson.org>
10260 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
10261 TESTS_ENVIRONMENT, for shell scripts that needs to call built
10263 * tests/test-argp-2.sh: Use $EXEEXT when needed.
10265 2008-10-27 Simon Josefsson <simon@josefsson.org>
10267 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
10269 2008-10-27 Bruno Haible <bruno@clisp.org>
10271 * tests/test-lstat.c: Include <stdio.h>.
10273 2008-10-27 Simon Josefsson <simon@josefsson.org>
10275 * modules/lstat-tests: New module.
10276 * tests/test-lstat.c: New file.
10278 2008-10-26 Jim Meyering <meyering@redhat.com>
10280 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
10282 2008-10-26 Simon Josefsson <simon@josefsson.org>
10283 Bruno Haible <bruno@clisp.org>
10285 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
10286 * modules/configmake (Include): Add a note that the include must come
10287 after all system headers.
10288 * lib/javaversion.c: Include configmake.h after all other includes.
10290 2008-10-26 Bruno Haible <bruno@clisp.org>
10292 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
10293 HAVE_STRUCT_RANDOM_DATA to 1.
10294 (gl_STDLIB_H): Simplify.
10296 2008-10-26 Simon Josefsson <simon@josefsson.org>
10298 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
10299 substitute HAVE_STRUCT_RANDOM_DATA.
10300 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
10302 * modules/stdlib (Makefile.am): Substitute
10303 HAVE_STRUCT_RANDOM_DATA.
10305 2008-10-26 Simon Josefsson <simon@josefsson.org>
10307 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
10308 * doc/gnulib-intro.texi (Copyright): Likewise.
10310 2008-10-26 Simon Josefsson <simon@josefsson.org>
10312 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
10315 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
10316 Bruno Haible <bruno@clisp.org>
10318 * lib/unistd.in.h: Include <winsock2.h>.
10319 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
10320 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
10321 Provide dummy declarations.
10322 (gethostname): Override.
10323 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
10324 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
10325 gl_PREREQ_SYS_H_WINSOCK2.
10326 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
10327 * doc/posix-functions/gethostname.texi: More details.
10329 2008-10-25 Bruno Haible <bruno@clisp.org>
10331 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
10332 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
10333 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
10335 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
10337 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
10338 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
10339 gl_UNISTD_H_DEFAULTS.
10341 2008-10-25 Eric Blake <ebb9@byu.net>
10343 signbit: avoid spurious compiler failure
10344 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
10345 declarations inside function.
10347 2008-10-24 Simon Josefsson <simon@josefsson.org>
10348 Bruno Haible <bruno@clisp.org>
10350 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
10351 * modules/random_r (Depends-on): Add stdint.
10353 2008-10-24 Bruno Haible <bruno@clisp.org>
10355 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
10357 * modules/strerror (License): Likewise.
10359 2008-10-24 Jim Meyering <meyering@redhat.com>
10361 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
10362 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
10364 2008-10-24 Eric Blake <ebb9@byu.net>
10366 getgroups: fix compilation when getgroups is available
10367 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
10368 but with <config.h> override of getgroups disabled.
10370 2008-10-24 Simon Josefsson <simon@josefsson.org>
10372 * doc/gnulib.texi (Header files): Add note about C++ problems.
10373 Explained by Bruno Haible <bruno@clisp.org>.
10375 2008-10-23 Bruno Haible <bruno@clisp.org>
10377 Define a dummy SA_NODEFER macro on Interix.
10378 * lib/signal.in.h (SA_NODEFER): Define fallback.
10379 Reported by Aleksey Cheusov <cheusov@tut.by> via
10380 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
10382 2008-10-23 Bruno Haible <bruno@clisp.org>
10384 * modules/freadahead (License): Change to LGPLv2+.
10385 Suggested by Simon Josefsson.
10387 2008-10-23 Jim Meyering <meyering@redhat.com>
10389 random_r: new module
10390 * modules/random_r: New file.
10391 * m4/random_r.m4: New file.
10392 * lib/random_r.c: New file, from glibc.
10393 * modules/random_r-tests: New file.
10394 * tests/test-random_r.c: New file.
10395 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
10397 (RAND_MAX): Define.
10398 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
10399 * modules/stdlib: Substitute them, too.
10400 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
10401 * doc/glibc-functions/initstate_r.texi: Mention the new module.
10402 * doc/glibc-functions/random_r.texi: Likewise.
10403 * doc/glibc-functions/setstate_r.texi: Likewise.
10404 * doc/glibc-functions/srandom_r.texi: Likewise.
10405 * config/srclist.txt: Mention it.
10407 2008-10-23 David Lutterkort <lutter@redhat.com>
10409 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
10412 2008-10-23 Jim Meyering <meyering@redhat.com>
10414 selinux-h: mark parameters of stub functions as intentionally unused
10415 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
10416 * lib/se-context.in.h: Likewise.
10418 2008-10-22 Simon Josefsson <simon@josefsson.org>
10420 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
10422 2008-10-22 Simon Josefsson <simon@josefsson.org>
10424 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
10426 2008-10-22 Eric Blake <ebb9@byu.net>
10428 glthread/thread: avoid compiler warning
10429 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
10430 Add unreachable abort to silence compiler.
10432 2008-10-22 Eric Blake <ebb9@byu.net>
10434 netdb: also supply struct addrinfo for cygwin 1.5.x
10435 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
10437 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
10439 * doc/posix-headers/netdb.texi (netdb.h): Document this.
10441 2008-10-22 Bruno Haible <bruno@clisp.org>
10443 * users.txt: Update entry about pspp.
10445 2008-10-21 Bruno Haible <bruno@clisp.org>
10448 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
10449 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
10452 * lib/ioctl.c (ioctl): Don't undefine.
10453 * lib/socket.c (socket): Don't undefine.
10455 Remove unused module indicator macros.
10456 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
10457 GNULIB_$1 as a C macro.
10459 * doc/posix-functions/close.texi: Undo last change.
10460 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
10463 2008-10-21 Bruno Haible <bruno@clisp.org>
10465 Add gethostname() declaration to <unistd.h>.
10466 * lib/unistd.in.h (gethostname): New declaration.
10467 * lib/gethostname.c: Include <unistd.h>.
10468 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
10469 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
10470 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
10471 and HAVE_GETHOSTNAME.
10472 * modules/gethostname (Depends-on): Add unistd.
10473 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10474 (Include): Specify <unistd.h>.
10475 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
10477 * tests/test-gethostname.c: Include <unistd.h> first.
10479 2008-10-21 Bruno Haible <bruno@clisp.org>
10481 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
10482 * modules/select-tests (Depends-on): Likewise.
10483 Reported by Simon Josefsson.
10485 2008-10-21 Simon Josefsson <simon@josefsson.org>
10487 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
10488 * lib/accept.c: New file, based on winsock.c.
10489 * lib/bind.c: New file, based on winsock.c.
10490 * lib/connect.c: New file, based on winsock.c.
10491 * lib/getpeername.c: New file, based on winsock.c.
10492 * lib/getsockname.c: New file, based on winsock.c.
10493 * lib/getsockopt.c: New file, based on winsock.c.
10494 * lib/ioctl.c: New file, based on winsock.c.
10495 * lib/listen.c: New file, based on winsock.c.
10496 * lib/recv.c: New file, based on winsock.c.
10497 * lib/recvfrom.c: New file, based on winsock.c.
10498 * lib/send.c: New file, based on winsock.c.
10499 * lib/sendto.c: New file, based on winsock.c.
10500 * lib/setsockopt.c: New file, based on winsock.c.
10501 * lib/shutdown.c: New file, based on winsock.c.
10502 * lib/socket.c: New file, based on winsock.c.
10503 * lib/w32sock.h: New file, based on winsock.c.
10504 * lib/winsock.c: Remove file.
10505 * modules/accept: Likewise.
10506 * modules/bind: Likewise.
10507 * modules/connect: Likewise.
10508 * modules/getpeername: Likewise.
10509 * modules/getsockname: Likewise.
10510 * modules/getsockopt: Likewise.
10511 * modules/ioctl: Likewise.
10512 * modules/listen: Likewise.
10513 * modules/recv: Likewise.
10514 * modules/recvfrom: Likewise.
10515 * modules/send: Likewise.
10516 * modules/sendto: Likewise.
10517 * modules/setsockopt: Likewise.
10518 * modules/shutdown: Likewise.
10519 * modules/socket: Use socket.c instead of winsock.c.
10520 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
10521 * doc/posix-functions/accept.texi: Doc fix.
10522 * doc/posix-functions/bind.texi: Doc fix.
10523 * doc/posix-functions/close.texi: Doc fix.
10524 * doc/posix-functions/connect.texi: Doc fix.
10525 * doc/posix-functions/getpeername.texi: Doc fix.
10526 * doc/posix-functions/getsockname.texi: Doc fix.
10527 * doc/posix-functions/getsockopt.texi: Doc fix.
10528 * doc/posix-functions/ioctl.texi: Doc fix.
10529 * doc/posix-functions/listen.texi: Doc fix.
10530 * doc/posix-functions/recv.texi: Doc fix.
10531 * doc/posix-functions/recvfrom.texi: Doc fix.
10532 * doc/posix-functions/send.texi: Doc fix.
10533 * doc/posix-functions/sendto.texi: Doc fix.
10534 * doc/posix-functions/setsockopt.texi: Doc fix.
10535 * doc/posix-functions/shutdown.texi: Doc fix.
10536 * doc/posix-functions/socket.texi: Doc fix.
10538 2008-10-20 Bruno Haible <bruno@clisp.org>
10540 Take into account the role of SIGABRT_COMPAT on Windows 2008.
10541 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
10542 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
10543 as an alias for SIGABRT.
10544 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
10545 (sigaction): Map it to SIGABRT.
10546 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
10548 2008-10-20 Bruno Haible <bruno@clisp.org>
10550 * lib/fts.c: Don't include lstat.h.
10551 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
10553 Move the lstat() declaration to <sys/stat.h>.
10554 * lib/lstat.h: Remove file.
10555 * lib/sys_stat.in.h: Add special invocation convention.
10556 (lstat): New declaration.
10557 * lib/lstat.c (orig_lstat): New function.
10558 (rpl_lstat): Use orig_lstat instead of lstat.
10559 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
10560 AC_C_INLINE. Set REPLACE_LSTAT.
10561 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
10563 * modules/lstat (Files): Remove lib/lstat.h.
10564 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
10565 (Include): Specify <sys/stat.h> instead of lstat.h.
10566 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
10568 * NEWS: Mention the change.
10570 2008-10-20 Bruno Haible <bruno@clisp.org>
10572 * modules/posix_spawn-tests: New file.
10573 * tests/test-posix_spawn3.c: New file.
10575 2008-10-20 Bruno Haible <bruno@clisp.org>
10577 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
10578 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
10579 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
10580 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
10581 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
10583 2008-10-20 Bruno Haible <bruno@clisp.org>
10585 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
10586 of posix_spawn on AIX 5.3.
10588 2008-10-20 Bruno Haible <bruno@clisp.org>
10590 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
10592 2008-10-20 Bruno Haible <bruno@clisp.org>
10594 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
10595 of AC_LANG_PROGRAM.
10597 2008-10-20 Simon Josefsson <simon@josefsson.org>
10599 * lib/netdb.in.h: Don't define GNU specific constants until they
10600 are supported or needed. Reported by Bruno Haible
10603 2008-10-20 Simon Josefsson <simon@josefsson.org>
10605 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
10607 2008-10-20 Simon Josefsson <simon@josefsson.org>
10609 * lib/getaddrinfo.h: Remove file.
10610 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
10611 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
10612 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
10613 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
10614 * modules/netdb: Substitute GNULIB_GETADDRINFO.
10615 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
10616 * tests/test-getaddrinfo.c: Likewise.
10617 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
10618 * NEWS: Mention change.
10620 2008-10-19 Bruno Haible <bruno@clisp.org>
10622 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
10624 2008-10-19 Bruno Haible <bruno@clisp.org>
10626 * lib/wait-process.c: Include simply <sys/wait.h>.
10627 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
10628 WIFSTOPPED): Remove fallback definitions.
10629 * modules/wait-process (Depends-on): Add sys_wait.
10631 New module 'sys_wait'.
10632 * modules/sys_wait: New file.
10633 * lib/sys_wait.in.h: New file, partially copied from
10634 lib/wait-process.c.
10635 * m4/sys_wait_h.m4: New file.
10636 * doc/posix-headers/sys_wait.texi: Mention the new module.
10638 2008-10-19 Bruno Haible <bruno@clisp.org>
10640 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
10642 2008-10-19 Bruno Haible <bruno@clisp.org>
10644 Assume that waitpid() fills an 'int' status, not a 'union wait'.
10645 * lib/wait-process.c (WAIT_T): Remove type.
10646 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
10647 (wait_subprocess): Update.
10649 2008-10-19 Bruno Haible <bruno@clisp.org>
10651 New module 'atoll'.
10652 * modules/atoll: New file.
10653 * lib/stdlib.in.h (atoll): New declaration.
10654 * lib/atoll.c: New file, from glibc with modifications.
10655 * m4/atoll.m4: New file.
10656 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
10658 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
10659 * doc/posix-functions/atoll.texi: Mention the new module.
10661 2008-10-19 Bruno Haible <bruno@clisp.org>
10663 Add strtoull() declaration to <stdlib.h>.
10664 * lib/stdlib.in.h (strtoull): New declaration.
10665 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
10667 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
10669 * modules/strtoull (Depends-on): Add stdlib.
10670 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10671 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
10674 2008-10-19 Bruno Haible <bruno@clisp.org>
10676 Add strtoll() declaration to <stdlib.h>.
10677 * lib/stdlib.in.h (strtoll): New declaration.
10678 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
10680 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
10682 * modules/strtoll (Depends-on): Add stdlib.
10683 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10684 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
10686 2008-10-19 Bruno Haible <bruno@clisp.org>
10688 * modules/bcopy (Depends-on): Add strings.
10689 (Include): Specify <strings.h>.
10691 2008-10-19 Bruno Haible <bruno@clisp.org>
10693 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
10695 2008-10-19 Bruno Haible <bruno@clisp.org>
10697 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
10698 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
10701 2008-10-19 Bruno Haible <bruno@clisp.org>
10703 * lib/atanl.c: Don't include isnanl.h.
10704 * lib/cosl.c: Likewise.
10705 * lib/ldexpl.c: Likewise.
10706 * lib/logl.c: Likewise.
10707 * lib/sinl.c: Likewise.
10708 * lib/sqrtl.c: Likewise.
10709 * lib/tanl.c: Likewise.
10711 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
10712 * lib/isnanf.h: Remove file.
10713 * lib/isnand.h: Remove file.
10714 * lib/isnanl.h: Remove file.
10715 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
10716 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
10718 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
10719 HAVE_ISNANF, don't define it as a C macro.
10720 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
10721 HAVE_ISNAND, don't define it as a C macro.
10722 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
10723 HAVE_ISNANL, don't define it as a C macro.
10724 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
10726 * modules/isnanf (Files): Remove lib/isnanf.h.
10727 (Depends-on): Add math.
10728 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10729 (Include): Specify <math.h> instead of isnanf.h.
10730 * modules/isnand (Files): Remove lib/isnand.h.
10731 (Depends-on): Add math.
10732 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10733 (Include): Specify <math.h> instead of isnand.h.
10734 * modules/isnanl (Files): Remove lib/isnanl.h.
10735 (Depends-on): Add math.
10736 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10737 (Include): Specify <math.h> instead of isnanl.h.
10738 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
10740 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
10741 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
10742 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
10743 * NEWS: Mention the change.
10745 2008-10-18 Bruno Haible <bruno@clisp.org>
10747 Add getusershell(), setusershell(), endusershell() declarations to
10749 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
10751 * lib/getusershell.c: Include unistd.h.
10752 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
10753 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
10755 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
10756 and HAVE_GETUSERSHELL.
10757 * modules/getusershell (Depends-on): Add unistd, extensions.
10758 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10759 (Include): Specify <unistd.h>.
10760 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
10763 2008-10-18 Bruno Haible <bruno@clisp.org>
10765 Add a getloadavg() declaration to <stdlib.h>.
10766 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
10767 getloadavg declaration.
10768 (getloadavg): New declaration.
10769 * lib/getloadavg.c: Include <stdlib.h> first.
10770 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
10771 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
10772 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
10773 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
10774 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
10775 * modules/getloadavg (Depends-on): Add stdlib, extensions.
10776 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10777 (Include): Specify <stdlib.h>.
10778 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
10779 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
10781 2008-10-18 Bruno Haible <bruno@clisp.org>
10783 * lib/dirchownmod.c: Don't include lchmod.h.
10785 Move the lchmod() declaration to <sys/stat.h>.
10786 * lib/lchmod.h: Remove file.
10787 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
10788 (lchmod): New declaration, moved here from lib/lchown.h.
10789 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
10790 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
10791 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
10793 * modules/lchmod (Files): Remove lib/lchmod.h.
10794 (Depends-on): Add sys_stat, extensions.
10795 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
10796 (Include): Specify <sys/stat.h> instead of lchmod.h.
10797 * modules/sys_stat (Depends-on): Add link-warning.
10798 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
10799 definition of GL_LINK_WARNING.
10800 * NEWS: Mention the change.
10802 2008-10-18 Bruno Haible <bruno@clisp.org>
10804 * lib/fchdir.c: Don't include dirfd.h.
10805 * lib/fts.c: Likewise.
10806 * lib/getcwd.c: Likewise.
10807 * lib/glob.c: Likewise.
10809 Move the dirfd() declaration to <dirent.h>.
10810 * lib/dirfd.h: Remove file.
10811 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
10812 (dirfd): New declaration.
10813 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
10814 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
10815 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
10817 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
10819 * modules/dirfd (Files): Remove lib/dirfd.h.
10820 (Depends-on): Add dirent, extensions.
10821 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
10822 (Include): Specify <dirent.h> instead of dirfd.h.
10823 * modules/dirent (Depends-on): Add link-warning.
10824 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
10825 definition of GL_LINK_WARNING.
10826 * NEWS: Mention the change.
10828 2008-10-18 Bruno Haible <bruno@clisp.org>
10830 Move the euidaccess() declaration to <unistd.h>.
10831 * lib/euidaccess.h: Remove file.
10832 * lib/unistd.in.h (euidaccess): New declaration.
10833 * lib/euidaccess.c: Don't include euidaccess.h.
10834 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
10835 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
10836 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
10837 and HAVE_EUIDACCESS.
10838 * modules/euidaccess (Files): Remove lib/euidaccess.h.
10839 (Depends-on): Add unistd.
10840 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10841 (Include): Specify <unistd.h> instead of euidaccess.h.
10842 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
10844 * NEWS: Mention the change.
10846 2008-10-18 Bruno Haible <bruno@clisp.org>
10848 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
10850 Move the getdomainname() declaration to <unistd.h>.
10851 * lib/getdomainname.h: Remove file.
10852 * lib/unistd.in.h (getdomainname): New declaration.
10853 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
10854 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10855 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
10856 HAVE_GETDOMAINNAME.
10857 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10858 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
10859 * modules/getdomainname (Files): Remove lib/getdomainname.h.
10860 (Depends-on): Add unistd, extensions.
10861 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10862 (Includes): Specify <unistd.h> instead of getdomainname.h.
10863 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
10864 HAVE_GETDOMAINNAME.
10865 * NEWS: Mention the change.
10867 2008-10-18 Bruno Haible <bruno@clisp.org>
10869 * modules/dirent: New file.
10870 * m4/dirent_h.m4: New file.
10871 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
10872 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
10873 * modules/fchdir (Files): Remove lib/dirent.in.h.
10874 (Depends-on): Add dirent.
10875 (Makefile.am): Move rules to modules/dirent.
10876 * doc/posix-headers/dirent.texi: Mention the new module.
10878 2008-10-18 Bruno Haible <bruno@clisp.org>
10880 Avoid -Wunused-parameter warnings in public gnulib header files.
10881 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
10883 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
10885 2008-10-18 Bruno Haible <bruno@clisp.org>
10887 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
10888 * doc/glibc-functions/error.texi: Mention the module 'error'.
10889 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
10890 * doc/glibc-functions/getdomainname.texi: Mention the module
10892 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
10893 * doc/glibc-functions/getpagesize.texi: Mention the module
10895 * doc/glibc-functions/getusershell.texi: Mention the module
10897 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
10898 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
10899 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
10900 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
10901 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
10902 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
10903 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
10904 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
10905 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
10906 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
10907 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
10908 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
10909 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
10910 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
10912 2008-10-17 Bruno Haible <bruno@clisp.org>
10914 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
10915 HP-UX and IRIX, use -0.0L.
10916 * tests/test-ceill.c (minus_zero): Likewise.
10917 * tests/test-floorl.c (minus_zero): Likewise.
10918 * tests/test-frexpl.c (minus_zero): Likewise.
10919 * tests/test-isnan.c (minus_zerol): Likewise.
10920 * tests/test-isnanl.h (minus_zero): Likewise.
10921 * tests/test-ldexpl.c (minus_zero): Likewise.
10922 * tests/test-roundl.c (minus_zero): Likewise.
10923 * tests/test-signbit.c (minus_zerol): Likewise.
10924 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
10925 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
10926 * tests/test-truncl.c (minus_zero): Likewise.
10927 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
10928 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
10929 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
10930 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
10932 2008-10-17 Bruno Haible <bruno@clisp.org>
10934 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
10935 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
10936 that it gets activated only for gcc >= 3.0.
10937 * lib/dirent.in.h: Likewise.
10938 * lib/errno.in.h: Likewise.
10939 * lib/fcntl.in.h: Likewise.
10940 * lib/float.in.h: Likewise.
10941 * lib/iconv.in.h: Likewise.
10942 * lib/inttypes.in.h: Likewise.
10943 * lib/locale.in.h: Likewise.
10944 * lib/math.in.h: Likewise.
10945 * lib/netdb.in.h: Likewise.
10946 * lib/netinet_in.in.h: Likewise.
10947 * lib/search.in.h: Likewise.
10948 * lib/signal.in.h: Likewise.
10949 * lib/spawn.in.h: Likewise.
10950 * lib/stdarg.in.h: Likewise.
10951 * lib/stdint.in.h: Likewise.
10952 * lib/stdio.in.h: Likewise.
10953 * lib/stdlib.in.h: Likewise.
10954 * lib/string.in.h: Likewise.
10955 * lib/strings.in.h: Likewise.
10956 * lib/sys_file.in.h: Likewise.
10957 * lib/sys_ioctl.in.h: Likewise.
10958 * lib/sys_select.in.h: Likewise.
10959 * lib/sys_socket.in.h: Likewise.
10960 * lib/sys_stat.in.h: Likewise.
10961 * lib/sys_time.in.h: Likewise.
10962 * lib/sysexits.in.h: Likewise.
10963 * lib/time.in.h: Likewise.
10964 * lib/unistd.in.h: Likewise.
10965 * lib/wchar.in.h: Likewise.
10966 * lib/wctype.in.h: Likewise.
10967 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10969 2008-10-17 Jim Meyering <meyering@redhat.com>
10971 ignore-value: don't depend on inline module
10972 * modules/ignore-value (Depends-on): Remove 'inline'.
10973 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
10974 Suggestion from Bruno Haible.
10976 2008-10-17 Bruno Haible <bruno@clisp.org>
10978 New implementation of condition variables for Win32.
10979 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
10980 (gl_linked_waitqueue_t): New type.
10981 (gl_cond_t): Use it.
10982 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
10983 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10984 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
10985 (glthread_cond_init_func, glthread_cond_wait_func,
10986 glthread_cond_timedwait_func, glthread_cond_signal_func,
10987 glthread_cond_broadcast_func, glthread_cond_destroy_func):
10988 Reimplemented on the basis of gl_linked_waitqueue_t.
10989 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
10991 (gl_rwlock_t): Update.
10992 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
10994 2008-10-17 Simon Josefsson <simon@josefsson.org>
10996 * modules/recvfrom (Depends-on): Add dependency on getpeername.
10997 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10999 2008-10-17 Jim Meyering <meyering@redhat.com>
11001 ignore-value: new module
11002 * modules/ignore-value: New file.
11003 * lib/ignore-value.h: New file.
11004 * MODULES.html.sh (Compiler warning management): New section,
11005 just for this module. More to come.
11007 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
11009 open-safer.c: avoid 'signed and unsigned in conditional...' warning
11010 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
11011 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
11013 2008-10-16 Jim Meyering <meyering@redhat.com>
11015 openat-die.c: avoid 'no previous prototype' warning
11016 * lib/openat-die.c: Include "openat.h".
11017 Reported by Reuben Thomas <rrt@sc3d.org>.
11019 2008-10-16 Simon Josefsson <simon@josefsson.org>
11021 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
11022 * lib/netdb.in.h: Fix typo.
11023 Reported by Bruno Haible <bruno@clisp.org>
11025 * lib/netdb.in.h: Include sys/socket.h for platforms without
11026 netdb.h, to get structures like hostent on MinGW.
11027 * modules/netdb (Depends-on): Add sys_socket.
11029 2008-10-15 Simon Josefsson <simon@josefsson.org>
11031 * modules/netdb, modules/netdb-tests: New file.
11032 * m4/netdb_h.m4: New file.
11033 * lib/netdb.in.h: Add, currently just an empty file pending
11035 * tests/test-netdb.c: New file.
11036 * doc/posix-headers/netdb.texi: Mention that we replace it if
11038 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11041 2008-10-15 Simon Josefsson <simon@josefsson.org>
11043 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
11046 2008-10-13 Bruno Haible <bruno@clisp.org>
11048 * lib/glthread/cond.c (glthread_cond_wait_func,
11049 glthread_cond_timedwait_func): Add a comment.
11051 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
11053 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
11054 * tests/test-select.c: Likewise,
11056 2008-10-13 Bruno Haible <bruno@clisp.org>
11058 * lib/glthread/cond.c (glthread_cond_wait_func,
11059 glthread_cond_timedwait_func): Fix variable name.
11060 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11062 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
11064 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
11065 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
11066 struct sockaddr.sa_len.
11067 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
11069 2008-10-13 Simon Josefsson <simon@josefsson.org>
11071 * build-aux/pmccabe2html: Add css and css_url parameters.
11073 2008-10-12 Bruno Haible <bruno@clisp.org>
11075 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
11077 Reported by Rainer Tammer <tammer@tammer.net>.
11079 2008-10-12 Bruno Haible <bruno@clisp.org>
11081 Use msvcrt aware primitives for creation/termination of Win32 threads.
11082 * lib/glthread/thread.c: Include <process.h>.
11083 (glthread_create_func): Use _beginthreadex instead of CreateThread.
11084 (wrapper_func): Update signature.
11085 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
11087 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11088 Bruno Haible <bruno@clisp.org>
11090 Provide a Win32 implementation of the 'cond' module.
11091 * lib/glthread/cond.h [USE_WIN32]: New implementation.
11092 * lib/glthread/cond.c (glthread_cond_init_func,
11093 glthread_cond_wait_func, glthread_cond_timedwait_func,
11094 glthread_cond_signal_func, glthread_cond_broadcast_func,
11095 glthread_cond_destroy_func) [USE_WIN32]: New functions.
11096 * modules/cond (Dependencies): Add gettimeofday.
11098 2008-10-11 Bruno Haible <bruno@clisp.org>
11100 Make sleep work on older versions of mingw.
11101 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
11102 only whether it exists.
11103 * doc/posix-functions/sleep.texi: Mention the problem with older
11106 2008-10-11 Bruno Haible <bruno@clisp.org>
11108 New module 'shutdown'.
11109 * modules/shutdown: New file.
11110 * lib/sys_socket.in.h (shutdown): New declaration.
11111 * lib/winsock.c (shutdown): New function.
11112 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11114 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
11115 * doc/posix-functions/shutdown.texi: Document the new module.
11117 2008-10-11 Jim Meyering <meyering@redhat.com>
11119 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
11121 2008-10-11 Bruno Haible <bruno@clisp.org>
11123 New module 'fclose'.
11124 * modules/fclose: New file.
11125 * lib/stdio.in.h (fclose): New declaration.
11126 * lib/fclose.c: New file.
11127 * m4/fclose.m4: New file.
11128 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
11130 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
11131 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
11133 * modules/close (Depends-on): fclose.
11134 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
11136 2008-10-11 Bruno Haible <bruno@clisp.org>
11138 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
11139 set errno and don't call _close.
11141 2008-10-10 Bruno Haible <bruno@clisp.org>
11143 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
11144 ACL, not afterwards. Fixes test failure on Cygwin.
11146 2008-10-09 Ben Pfaff <blp@gnu.org>
11148 * build-aux/announce-gen: Fix gnulib version related part of usage
11149 message. Die with a useful error message if no tarballs are
11152 2008-10-10 Jim Meyering <meyering@redhat.com>
11154 bootstrap: use git's --depth=N option only if it's supported
11155 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
11156 recognize the --depth option. Reported by Pádraig Brady.
11158 2008-10-09 Bruno Haible <bruno@clisp.org>
11160 New module 'ioctl'.
11161 * modules/ioctl: New file.
11162 * lib/sys_socket.in.h (ioctl): Remove declaration.
11163 * lib/winsock.c: Include <sys/ioctl.h>.
11164 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
11165 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
11166 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
11167 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
11168 * doc/posix-functions/ioctl.texi: Mention the new module.
11170 2008-10-09 Bruno Haible <bruno@clisp.org>
11172 New module 'sys_ioctl'.
11173 * lib/sys_ioctl.in.h: New file.
11174 * m4/sys_ioctl_h.m4: New file.
11175 * modules/sys_ioctl: New file.
11176 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
11178 2008-10-09 Bruno Haible <bruno@clisp.org>
11180 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
11181 * lib/winsock.c: Include <stdarg.h>.
11182 (rpl_ioctl): Change to second argument 'int' and then varargs.
11184 2008-10-09 Bruno Haible <bruno@clisp.org>
11186 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
11187 when the sys_socket module is present and the system has <winsock2.h>.
11189 2008-10-09 Bruno Haible <bruno@clisp.org>
11191 * doc/posix-functions/close.texi: Mention module 'close' instead of
11192 module 'sys_socket'.
11194 2008-10-09 Bruno Haible <bruno@clisp.org>
11196 * doc/glibc-headers/sys_ioctl.texi: New file.
11197 * doc/gnulib.texi: Include it.
11199 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11200 Bruno Haible <bruno@clisp.org>
11202 Combine the two replacements of 'close'.
11203 * lib/sys_socket.in.h (close): Define to a reminder to include
11205 (_gl_close_fd_maybe_socket): New declaration.
11206 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
11207 * lib/winsock.c (close): Remove undefinition.
11208 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
11209 needed for the gnulib module 'close'.
11210 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
11211 define to an error symbol or to a warning, if suitable.
11212 * lib/close.c: Include <sys/socket.h>.
11213 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
11214 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
11215 UNISTD_H_HAVE_WINSOCK2_H.
11216 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
11217 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11218 UNISTD_H_HAVE_WINSOCK2_H.
11219 * modules/sys_socket (Files): Add m4/unistd_h.m4.
11220 (configure.ac): Set a module indicator.
11221 (Makefile.am): Substitute GNULIB_CLOSE.
11222 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
11223 * modules/poll-tests (Depends-on): Add close.
11224 * modules/select-tests (Depends-on): Likewise.
11226 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11227 Bruno Haible <bruno@clisp.org>
11229 New module 'close'.
11230 * modules/close: New file.
11231 * lib/unistd.in.h (close): Move declaration out of the
11232 FCHDIR_REPLACEMENT scope.
11233 (_gl_unregister_fd): New declaration.
11234 * lib/close.c: New file.
11235 * lib/fchdir.c (rpl_close): Remove function.
11236 * m4/close.m4: New file.
11237 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11239 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
11241 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
11243 * modules/fchdir (Depends-on): Add close.
11245 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11246 Bruno Haible <bruno@clisp.org>
11248 * lib/fcntl.in.h (open): Simplify conditionals.
11249 (_gl_register_fd): New declaration.
11250 * lib/fchdir.c (rpl_open): Remove function.
11251 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
11253 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
11254 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11257 2008-10-09 Jim Meyering <meyering@redhat.com>
11259 GNUmakefile: use the more name-space-friendly "_version"
11260 * top/GNUmakefile (_dummy): Update.
11261 (_version): Rename from "version".
11263 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11264 Bruno Haible <bruno@clisp.org>
11266 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
11268 (_gl_register_fd): New function, extracted from rpl_open.
11269 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
11270 (rpl_open, rpl_opendir): Use _gl_register_fd.
11272 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11274 Fix organization of 'open' replacement.
11275 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
11276 (gl_FUNC_OPEN): Use it.
11277 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
11279 2008-10-08 Bruno Haible <bruno@clisp.org>
11281 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
11283 2008-10-08 Simon Josefsson <simon@josefsson.org>
11285 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
11286 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
11289 2008-10-08 Eric Blake <ebb9@byu.net>
11291 GNUmakefile: add 'make version' target
11292 * top/GNUmakefile (_curr-ver): Split version update rules...
11293 (version): ...into a target.
11295 2008-10-07 Bruno Haible <bruno@clisp.org>
11297 Use a more portable replacement expression for -0.0L.
11298 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
11299 instead of -0.0L. Fix m4 quotation.
11301 * tests/test-signbit.c: Include <float.h>.
11302 (minus_zero): New variable.
11303 (test_signbitl): Use minus_zero instead of -zero.
11304 * modules/signbit-tests (Depends-on): Add float.
11306 * tests/test-ceill.c: Include <float.h>.
11307 (zero): Remove variable.
11308 (minus_zero): New variable.
11309 (main): Use minus_zero instead of -zero.
11310 * modules/ceill-tests (Depends-on): Add float.
11312 * tests/test-floorl.c: Include <float.h>.
11313 (zero): Remove variable.
11314 (minus_zero): New variable.
11315 (main): Use minus_zero instead of -zero.
11316 * modules/floorl-tests (Depends-on): Add float.
11318 * tests/test-roundl.c: Include <float.h>.
11319 (zero): Remove variable.
11320 (minus_zero): New variable.
11321 (main): Use minus_zero instead of -zero.
11322 * modules/roundl-tests (Depends-on): Add float.
11324 * tests/test-truncl.c: Include <float.h>.
11325 (zero): Remove variable.
11326 (minus_zero): New variable.
11327 (main): Use minus_zero instead of -zero.
11328 * modules/truncl-tests (Depends-on): Add float.
11330 * tests/test-frexpl.c (zero): Remove variable.
11331 (minus_zero): New variable.
11332 (main): Use minus_zero instead of -zero.
11333 * modules/frexpl-tests (Depends-on): Add float.
11335 * tests/test-isnan.c (zerol): Remove variable.
11336 (minus_zerol): New variable.
11337 (test_long_double): Use minus_zerol instead of -zerol.
11338 * modules/isnan-tests (Depends-on): Add float.
11340 * tests/test-isnanl.h (zero): Remove variable.
11341 (minus_zero): New variable.
11342 (main): Use minus_zero instead of -zero.
11343 * modules/isnanl-nolibm-tests (Depends-on): Add float.
11344 * modules/isnanl-tests (Depends-on): Add float.
11346 * tests/test-ldexpl.c (zero): Remove variable.
11347 (minus_zero): New variable.
11348 (main): Use minus_zero instead of -zero.
11349 * modules/ldexpl-tests (Depends-on): Add float.
11351 * tests/test-snprintf-posix.h (zerol): Remove variable.
11352 (minus_zerol): New variable.
11353 (test_function): Use minus_zerol instead of -zerol.
11354 * modules/snprintf-posix-tests (Depends-on): Add float.
11355 * modules/vsnprintf-posix-tests (Depends-on): Add float.
11357 * tests/test-sprintf-posix.h (zerol): Remove variable.
11358 (minus_zerol): New variable.
11359 (test_function): Use minus_zerol instead of -zerol.
11360 * modules/sprintf-posix-tests (Depends-on): Add float.
11361 * modules/vsprintf-posix-tests (Depends-on): Add float.
11363 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
11364 (minus_zerol): New variable.
11365 (test_function): Use minus_zerol instead of -zerol.
11366 * modules/vasnprintf-posix-tests (Depends-on): Add float.
11368 * tests/test-vasprintf-posix.c (zerol): Remove variable.
11369 (minus_zerol): New variable.
11370 (test_function): Use minus_zerol instead of -zerol.
11371 * modules/vasprintf-posix-tests (Depends-on): Add float.
11373 2008-10-07 Simon Josefsson <simon@josefsson.org>
11375 * MODULES.html.sh (Support for building documentation): Mention
11376 pmccabe2html. Sort entries.
11378 Add pmccabe2html module, from gnupdf.
11379 * build-aux/pmccabe.css: New file.
11380 * build-aux/pmccabe2html: New file.
11381 * m4/pmccabe2html.m4: New file.
11382 * modules/pmccabe2html: New file.
11384 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
11387 * MODULES.html.sh: Add to list of modules.
11388 * lib/flock.c: flock implementation for Windows and Unix systems
11390 * doc/glibc-functions/flock.texi: Update documentation.
11391 * lib/sys_file.in.h: <sys/file.h> header file.
11392 * m4/flock.m4: M4 macros.
11393 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
11394 * modules/flock: flock module.
11395 * modules/flock-tests: flock tests module.
11396 * modules/sys_file: sys/file.h module.
11397 * tests/test-flock.c: test suite for flock.
11399 2008-10-06 Jim Meyering <meyering@redhat.com>
11401 bootstrap: check for LT_INIT more portably still ;-)
11402 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
11403 Spotted by Bruno Haible.
11405 2008-10-06 Eric Blake <ebb9@byu.net>
11407 test-signbit: avoid tripping Irix cc bug on -0.0L
11408 * tests/test-signbit.c (minus_zerol): Delete, and replace with
11409 '-zerol'. This may break on HP-UX/hppa, but at least makes the
11410 entire testsuite consistent and avoids an Irix 6.2 bug.
11412 2008-10-05 Bruno Haible <bruno@clisp.org>
11413 Jim Meyering <jim@meyering.net>
11415 Add an option for ignoring EPIPE during close_stdout.
11416 * lib/closeout.h: Include <stdbool.h>.
11417 (close_stdout_set_ignore_EPIPE): New declaration.
11418 * lib/closeout.c: Include <stdbool.h>.
11419 (ignore_EPIPE): New variable.
11420 (close_stdout_set_ignore_EPIPE): New function.
11421 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
11422 * lib/close-stream.c (close_stream): Mention the possible EPIPE
11424 * modules/closeout (Depends-on): Add stdbool.
11426 2008-10-05 Bruno Haible <bruno@clisp.org>
11428 * modules/accept: New file.
11429 * modules/bind: New file.
11430 * modules/connect: New file.
11431 * modules/getpeername: New file.
11432 * modules/getsockname: New file.
11433 * modules/getsockopt: New file.
11434 * modules/listen: New file.
11435 * modules/recv: New file.
11436 * modules/recvfrom: New file.
11437 * modules/send: New file.
11438 * modules/sendto: New file.
11439 * modules/setsockopt: New file.
11440 * modules/socket: New file.
11441 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
11442 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11443 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
11444 the particular module is requested. Add a link warning when the
11445 particular module is not requested.
11446 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
11447 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
11448 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
11449 the particular module is requested.
11450 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
11451 gl_SYS_SOCKET_H_DEFAULTS): New macros.
11452 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
11453 * modules/sys_socket (Depends-on): Add link-warning.
11454 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
11455 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
11456 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
11457 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
11459 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
11460 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
11461 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
11462 * doc/posix-functions/getpeername.texi: Mention the new module
11464 * doc/posix-functions/getsockname.texi: Mention the new module
11466 * doc/posix-functions/getsockopt.texi: Mention the new module
11468 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
11469 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
11470 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
11471 * doc/posix-functions/send.texi: Mention the new module 'send'.
11472 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
11473 * doc/posix-functions/setsockopt.texi: Mention the new module
11475 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
11476 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
11477 listen, connect, accept.
11478 * modules/select-tests (Depends-on): Likewise.
11480 2008-10-05 Bruno Haible <bruno@clisp.org>
11482 * lib/winsock.c (strerror): Remove unused #undef.
11483 (rpl_close): Remove unused local variable.
11485 * modules/sys_socket (Depends-on); Add errno.
11487 2008-10-05 Bruno Haible <bruno@clisp.org>
11489 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
11490 (select): Add a link warning when the 'select' module is not used.
11491 * modules/sys_select (Depends-on): Add link-warning.
11492 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
11493 Suggested by Paolo Bonzini.
11495 2008-10-05 Jim Meyering <meyering@redhat.com>
11497 bootstrap: check for LT_INIT more portably
11498 * build-aux/bootstrap: Avoid using grep -E, since it's not
11499 portable enough. Suggestion from Bruno Haible.
11501 2008-10-05 Bruno Haible <bruno@clisp.org>
11503 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
11504 as being fixed by gnulib.
11506 2008-10-05 Bruno Haible <bruno@clisp.org>
11508 * modules/select-tests: New file, mostly copied from
11509 modules/sys_select-tests.
11510 * tests/test-select.c: New file, mostly copied from
11511 tests/test-sys_select.c.
11512 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
11513 * modules/sys_select-tests (Depends-on): Remove all dependencies.
11514 (Makefile.am): Remove test_sys_select_LDADD.
11516 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
11517 to an undefined symbol, for an error message.
11518 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
11519 (gl_SYS_SELECT_H_DEFAULTS): New macro.
11520 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
11521 winsock-select.c here.
11522 * modules/sys_select (Files): Remove lib/winsock-select.c.
11523 (Depends-on): Remove alloca.
11524 (Makefile.am): Substitute GNULIB_SELECT.
11525 * modules/select: New file.
11526 * doc/posix-functions/select.texi: Update.
11528 2008-10-05 Bruno Haible <bruno@clisp.org>
11530 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
11531 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
11532 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
11533 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
11535 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11536 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11538 2008-10-05 Bruno Haible <bruno@clisp.org>
11540 * modules/getdtablesize-tests: New file.
11541 * tests/test-getdtablesize.c: New file.
11543 New module 'getdtablesize'.
11544 * lib/unistd.in.h (getdtablesize): New declaration.
11545 * lib/getdtablesize.c: New file.
11546 * m4/getdtablesize.m4: New file.
11547 * modules/getdtablesize: New file.
11548 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11549 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
11550 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
11551 HAVE_GETDTABLESIZE.
11552 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
11554 2008-10-05 Bruno Haible <bruno@clisp.org>
11556 * modules/sched (Makefile.am): Fix typo.
11557 Reported by Simon Josefsson.
11559 2008-10-05 Jim Meyering <meyering@redhat.com>
11561 bootstrap: check for LT_INIT, too
11562 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
11563 are deprecated. Suggestion from Ralf Wildenhues.
11565 2008-10-05 Bruno Haible <bruno@clisp.org>
11567 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
11568 overriding them by ours.
11569 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
11571 2008-10-05 Jim Meyering <meyering@redhat.com>
11573 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
11574 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
11575 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
11577 2008-10-04 Bruno Haible <bruno@clisp.org>
11579 * modules/dup2 (License): Change to LGPLv2+.
11580 * modules/sleep (License): Likewise.
11581 * modules/perror (License): Likewise.
11582 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
11584 * modules/signal (License): Likewise.
11585 * modules/sigprocmask (License): Likewise.
11586 * modules/raise (License): Change to LGPLv2+, with approval by Jim
11589 2008-10-04 Bruno Haible <bruno@clisp.org>
11591 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
11592 Reported by Rainer Tammer <tammer@tammer.net>.
11594 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
11595 Bruno Haible <bruno@clisp.org>
11597 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
11598 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
11599 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
11601 2008-10-03 Kamil Dudka <kdudka@redhat.com>
11603 filevercmp: new module
11604 * lib/filevercmp.h: New function filevercmp comparing version strings.
11605 * lib/filevercmp.c: Implementation of filevercmp function.
11606 * modules/filevercmp: Module metadata.
11607 * tests/test-filevercmp.c: Unit test for new module.
11608 * modules/filevercmp-tests: Unit test metadata.
11609 * MODULES.html.sh: Add filevercmp module.
11611 2008-10-03 Bruno Haible <bruno@clisp.org>
11613 * lib/c-ctype.h: Add comment.
11614 Reported by Jim Meyering.
11616 2008-10-02 Bruno Haible <bruno@clisp.org>
11618 * modules/posix_spawn-internal (Depends-on): Add 'open'.
11620 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
11622 * build-aux/bootstrap: Allow renaming bootstrap, and change the
11623 name of bootstrap.conf accordingly.
11625 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
11627 * build-aux/bootstrap: Install git-merge-changelog configuration
11628 items into .gitconfig if needed.
11630 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
11632 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
11633 git repository, and initialize/update it accordingly.
11635 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
11637 * modules/fsync-tests: New file.
11638 * tests/test-fsync.c: New file.
11640 New module 'fsync'.
11641 * lib/fsync.c: New file.
11642 * m4/fsync.m4: New file.
11643 * modules/fsync: New file.
11644 * lib/unistd.in.h (fsync): New declaration.
11645 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
11646 GNULIB_FSYNC and HAVE_FSYNC.
11647 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
11648 * MODULES.html.sh (posix_functions): Add fsync.
11649 * doc/posix-functions/fsync.texi: Mention the new module.
11651 2008-10-02 Jim Meyering <meyering@redhat.com>
11653 fts.c: sync with similar code from coreutils' remove.c
11654 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
11655 Guard also with "#if defined __linux__", since for now at least,
11656 this code is Linux-kernel-specific.
11658 2008-10-02 Jim Meyering <meyering@redhat.com>
11661 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
11662 Include <sys/vfs.h>, not <sys/statfs.h>.
11664 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
11665 Include <sys/vfs.h>, not <sys/statfs.h>.
11667 2008-10-01 Bruno Haible <bruno@clisp.org>
11669 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
11670 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
11671 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
11672 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
11673 * doc/posix-functions/posix_spawnp.texi: Likewise.
11674 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
11675 whether posix_spawn actually works.
11676 * m4/pipe.m4 (gl_PIPE): Likewise.
11677 * modules/execute (Files): Add m4/posix_spawn.m4.
11678 * modules/pipe (Files): Add m4/posix_spawn.m4.
11679 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
11681 2008-10-01 Jim Meyering <meyering@redhat.com>
11683 remove trailing spaces
11685 * lib/poll.c (poll): Likewise.
11686 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
11687 * lib/winsock.c (rpl_close): Likewise.
11688 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
11689 * modules/yield: Likewise.
11690 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
11691 * tests/test-sys_select.c (connect_to_socket): Likewise.
11693 fts.c: adjust a new interface to be more generally useful
11694 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
11695 (fts_build): Adjust caller.
11697 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11699 * modules/cond-tests: New file.
11700 * tests/test-cond.c: New file.
11702 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11703 Bruno Haible <bruno@clisp.org>
11705 * modules/cond (Dependencies): Add errno, time.
11706 * lib/glthread/cond.h: Include <time.h>.
11707 (gl_cond_define, gl_cond_define_initialized): Use the same definition
11710 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11711 Bruno Haible <bruno@clisp.org>
11713 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
11715 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11716 Bruno Haible <bruno@clisp.org>
11718 * modules/tls-tests (Depends-on): Add thread, yield.
11719 (configure.ac): Remove all checks.
11720 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
11721 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
11722 gl_thread_self): Remove definitions. Include glthread/thread.h and
11723 glthread/yield.h instead.
11724 (test_tls): Pass an additional NULL argument to gl_thread_join.
11726 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11727 Bruno Haible <bruno@clisp.org>
11729 * modules/lock-tests (Depends-on): Add thread, yield.
11730 (configure.ac): Remove all checks.
11731 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
11732 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
11733 gl_thread_self): Remove definitions. Include glthread/thread.h and
11734 glthread/yield.h instead.
11735 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
11736 additional NULL argument to gl_thread_join.
11738 2008-09-30 Bruno Haible <bruno@clisp.org>
11740 Fix the Win32 implementation of the 'thread' module.
11741 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
11743 (gl_thread_self): Invoke gl_thread_self_func.
11744 (gl_thread_self_func): New declaration.
11745 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
11746 (do_init_self_key, init_self_key): New functions.
11747 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
11748 Remove some fields.
11749 (running_threads, running_lock): Remove variables.
11750 (get_current_thread_handle): New function.
11751 (gl_thread_self_func, wrapper_func, glthread_create_func,
11752 glthread_join_func, gl_thread_exit_func): Largely rewritten and
11755 2008-09-30 Bruno Haible <bruno@clisp.org>
11757 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
11760 2008-09-30 Jim Meyering <meyering@redhat.com>
11762 fts.m4: correct the test for statfs.f_type
11763 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
11764 when checking for statfs.f_type.
11766 2008-09-15 Simon Josefsson <simon@josefsson.org>
11768 tests: avoid some compiler warnings
11769 * tests/test-memchr.c (main): Pass NULL indirectly.
11770 * tests/test-getdate.c (main): Remove unused variable 'ret'.
11772 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
11774 getdate.y: disallow countable dayshifts like "4 yesterday ago"
11775 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
11776 exactly specified dayshifts.
11777 (dayshift): New rule.
11778 (rel): Add dayshift.
11779 (relative_time_table) [tomorrow, yesterday, today, now]:
11780 Use tDAY_SHIFT in place of tDAY_UNIT.
11781 * tests/test-getdate.c: Add tests for now-disallowed countable
11782 dayshifts, e.g., "4 yesterday ago".
11784 2008-09-29 Bruno Haible <bruno@clisp.org>
11786 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
11787 * tests/test-posix_spawn1.in.sh: Renamed from
11788 tests/test-posix_spawn.in.sh.
11789 * tests/test-posix_spawn2.c: New file.
11790 * tests/test-posix_spawn2.in.sh: New file.
11791 * modules/posix_spawnp-tests (Files): Update.
11792 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
11794 2008-09-29 Bruno Haible <bruno@clisp.org>
11796 Propagate effects of putenv/setenv/unsetenv to child processes.
11797 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
11798 * lib/pipe.c (create_pipe): Likewise.
11800 2008-09-29 Bruno Haible <bruno@clisp.org>
11802 Enable use of shell scripts as executables in mingw.
11803 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
11804 run the program as a shell script.
11805 * lib/pipe.c (create_pipe): Likewise.
11806 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
11809 2008-09-29 Eric Blake <ebb9@byu.net>
11811 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
11813 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
11815 * doc/posix-functions/accept.texi: Update mingw problems.
11816 * doc/posix-functions/bind.texi: Update mingw problems.
11817 * doc/posix-functions/close.texi: Update mingw problems.
11818 * doc/posix-functions/connect.texi: Update mingw problems.
11819 * doc/posix-functions/getpeername.texi: Update mingw problems.
11820 * doc/posix-functions/getsockname.texi: Update mingw problems.
11821 * doc/posix-functions/getsockopt.texi: Update mingw problems.
11822 * doc/posix-functions/ioctl.texi: Update mingw problems.
11823 * doc/posix-functions/listen.texi: Update mingw problems.
11824 * doc/posix-functions/recv.texi: Update mingw problems.
11825 * doc/posix-functions/recvfrom.texi: Update mingw problems.
11826 * doc/posix-functions/select.texi: Update mingw problems.
11827 * doc/posix-functions/send.texi: Update mingw problems.
11828 * doc/posix-functions/sendto.texi: Update mingw problems.
11829 * doc/posix-functions/setsockopt.texi: Update mingw problems.
11830 * doc/posix-functions/socket.texi: Update mingw problems.
11832 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
11833 Bruno Haible <bruno@clisp.org>
11835 * lib/sys_select.in.h: Include sys/time.h.
11836 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
11837 * modules/sys_select: Depend on sys_time.
11838 * tests/test-sys_select.c: Test that sys/select.h defines struct
11841 2008-09-29 Bruno Haible <bruno@clisp.org>
11843 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
11844 * lib/sys_select.in.h: Likewise.
11846 2008-09-29 Bruno Haible <bruno@clisp.org>
11848 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
11850 2008-09-29 Bruno Haible <bruno@clisp.org>
11852 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
11853 Set LIBSOCKET instead of augmenting LIBS.
11854 * modules/sockets (Link): New section.
11855 * modules/sockets-tests (test_sockets_LDADD): New variable.
11856 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
11857 * modules/poll-tests (test_poll_LDADD): New variable.
11858 * NEWS: Document the change.
11860 2008-09-29 Bruno Haible <bruno@clisp.org>
11862 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
11863 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
11864 ARPA_INET_H directly.
11865 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11867 2008-09-28 Bruno Haible <bruno@clisp.org>
11869 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
11870 from gl_HEADER_SYS_SOCKET.
11871 (gl_HEADER_SYS_SOCKET): Invoke it.
11872 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11874 2008-09-28 Bruno Haible <bruno@clisp.org>
11876 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
11877 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
11878 Needed on OSF/1 4.0.
11880 2008-09-28 Bruno Haible <bruno@clisp.org>
11882 Override open more carefully.
11883 * lib/open.c (orig_open): New function.
11884 (rpl_open): Use orig_open instead of open.
11885 * lib/fcntl.in.h: Add special invocation convention.
11886 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
11887 (gl_FUNC_OPEN): Invoke it.
11889 Override freopen more carefully.
11890 * lib/freopen.c (orig_freopen): New function.
11891 (rpl_freopen): Use orig_freopen instead of freopen.
11892 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
11893 (gl_FUNC_FREOPEN): Invoke it.
11895 Override fopen more carefully.
11896 * lib/fopen.c (orig_fopen): New function.
11897 (rpl_fopen): Use orig_fopen instead of fopen.
11898 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
11899 (gl_FUNC_FOPEN): Invoke it.
11900 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
11902 2008-09-28 Bruno Haible <bruno@clisp.org>
11904 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
11907 2008-09-28 Bruno Haible <bruno@clisp.org>
11909 * tests/test-sigaction.c (handler, main): Disable the check whether
11910 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
11911 glibc systems with LinuxThreads.
11913 2008-09-28 Bruno Haible <bruno@clisp.org>
11915 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
11917 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
11919 * lib/fcntl.in.h (open): Likewise.
11920 Reported by Rainer Tammer <tammer@tammer.net>.
11922 2008-09-28 Bruno Haible <bruno@clisp.org>
11924 * modules/posix_spawnp-tests: New file.
11925 * tests/test-posix_spawn.c: New file.
11926 * tests/test-posix_spawn.in.sh: New file.
11928 New module 'posix_spawnp'.
11929 * modules/posix_spawnp: New file.
11930 * lib/spawnp.c: New file, from GNU libc with modifications.
11931 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
11933 New module 'posix_spawn'.
11934 * modules/posix_spawn: New file.
11935 * lib/spawn.c: New file, from GNU libc with modifications.
11936 * doc/posix-functions/posix_spawn.texi: Mention the new module.
11938 New module 'posix_spawnattr_destroy'.
11939 * modules/posix_spawnattr_destroy: New file.
11940 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
11941 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
11944 New module 'posix_spawnattr_setsigmask'.
11945 * modules/posix_spawnattr_setsigmask: New file.
11946 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
11948 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
11951 New module 'posix_spawnattr_getsigmask'.
11952 * modules/posix_spawnattr_getsigmask: New file.
11953 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
11955 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
11958 New module 'posix_spawnattr_setsigdefault'.
11959 * modules/posix_spawnattr_setsigdefault: New file.
11960 * lib/spawnattr_setdefault.c: New file, from GNU libc with
11962 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
11965 New module 'posix_spawnattr_getsigdefault'.
11966 * modules/posix_spawnattr_getsigdefault: New file.
11967 * lib/spawnattr_getdefault.c: New file, from GNU libc with
11969 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
11972 New module 'posix_spawnattr_setschedpolicy'.
11973 * modules/posix_spawnattr_setschedpolicy: New file.
11974 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
11976 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
11979 New module 'posix_spawnattr_getschedpolicy'.
11980 * modules/posix_spawnattr_getschedpolicy: New file.
11981 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
11983 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
11986 New module 'posix_spawnattr_setschedparam'.
11987 * modules/posix_spawnattr_setschedparam: New file.
11988 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
11990 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
11993 New module 'posix_spawnattr_getschedparam'.
11994 * modules/posix_spawnattr_getschedparam: New file.
11995 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
11997 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
12000 New module 'posix_spawnattr_setpgroup'.
12001 * modules/posix_spawnattr_setpgroup: New file.
12002 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
12004 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
12007 New module 'posix_spawnattr_getpgroup'.
12008 * modules/posix_spawnattr_getpgroup: New file.
12009 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
12011 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
12014 New module 'posix_spawnattr_setflags'.
12015 * modules/posix_spawnattr_setflags: New file.
12016 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
12017 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
12020 New module 'posix_spawnattr_getflags'.
12021 * modules/posix_spawnattr_getflags: New file.
12022 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
12023 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
12026 New module 'posix_spawnattr_init'.
12027 * modules/posix_spawnattr_init: New file.
12028 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
12029 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
12032 New module 'posix_spawn_file_actions_destroy'.
12033 * modules/posix_spawn_file_actions_destroy: New file.
12034 * lib/spawn_faction_destroy.c: New file, from GNU libc with
12036 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
12039 New module 'posix_spawn_file_actions_addopen'.
12040 * modules/posix_spawn_file_actions_addopen: New file.
12041 * lib/spawn_faction_addopen.c: New file, from GNU libc with
12043 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
12046 New module 'posix_spawn_file_actions_adddup2'.
12047 * modules/posix_spawn_file_actions_adddup2: New file.
12048 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
12050 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
12053 New module 'posix_spawn_file_actions_addclose'.
12054 * modules/posix_spawn_file_actions_addclose: New file.
12055 * lib/spawn_faction_addclose.c: New file, from GNU libc with
12057 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
12060 New module 'posix_spawn_file_actions_init'.
12061 * modules/posix_spawn_file_actions_init: New file.
12062 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
12063 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
12066 New module 'posix_spawn-internal'.
12067 * modules/posix_spawn-internal: New file.
12068 * lib/spawn_int.h: New file, from GNU libc with modifications.
12069 * lib/spawni.c: New file, from GNU libc with modifications.
12070 * m4/posix_spawn.m4: New file.
12072 New module 'spawn'.
12073 * modules/spawn: New file.
12074 * lib/spawn.in.h: New file, from GNU libc with modifications.
12075 * m4/spawn_h.m4: New file.
12076 * doc/posix-headers/spawn.texi: Mention the new module.
12078 2008-09-28 Bruno Haible <bruno@clisp.org>
12080 * modules/sched-tests: New file.
12081 * tests/test-sched.c: New file.
12083 New module 'sched'.
12084 * modules/sched: New file.
12085 * lib/sched.in.h: New file.
12086 * m4/sched_h.m4: New file.
12087 * doc/posix-headers/sched.texi: Mention the new module.
12089 2008-09-27 Eric Blake <ebb9@byu.net>
12091 Fix previous patch, and tweak references to $0.
12092 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
12093 (func_version, func_gnulib_dir): Don't call this program
12095 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
12096 with using $0 in function.
12097 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
12098 (func_fatal_error): Reuse the name the user invoked us with.
12100 2008-09-27 Bruno Haible <bruno@clisp.org>
12102 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
12103 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
12104 (gl_ICONV_H): Not here.
12105 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12106 instead of assigning ICONV_H directly.
12108 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
12109 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
12112 2008-09-27 Bruno Haible <bruno@clisp.org>
12114 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
12115 * modules/arpa_inet (Depends-on): Add link-warning.
12116 (Makefile.am): Insert the definition of GL_LINK-WARNING.
12117 * modules/unistd (Makefile.am): Likewise.
12119 2008-09-26 Bruno Haible <bruno@clisp.org>
12121 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
12123 (func_version): Essentially copied from gnulib-tool.
12124 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
12125 func_readlink): Copied from gnulib-tool.
12127 2008-09-26 Bruno Haible <bruno@clisp.org>
12129 * gnulib-tool (func_version): Change directory to $gnulib_dir before
12130 invoking git-version-gen.
12132 2008-09-26 Bruno Haible <bruno@clisp.org>
12134 * posix-modules: Update to directory names changed on 2008-01-19.
12135 Remove commas in output before splitting into words. No more need to
12136 avoid 'ftruncate' since 2007-02-19.
12138 2008-09-26 Bruno Haible <bruno@clisp.org>
12140 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
12142 2008-09-26 Bruno Haible <bruno@clisp.org>
12144 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
12145 * modules/fwriteerror (Depends-on): Add errno.
12147 2008-09-26 Bruno Haible <bruno@clisp.org>
12149 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
12150 * tests/test-vc-list-files-cvs.sh: Likewise.
12152 2008-09-26 Bruno Haible <bruno@clisp.org>
12154 * doc/posix-headers/sys_resource.texi: Reorder items.
12156 2008-09-26 Jim Meyering <meyering@redhat.com>
12158 fts: tweak inode comparison function
12159 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
12160 inode numbers, as documented.
12162 fts: sort dirent entries on inode number before traversing
12163 This avoids a quadratic, seek-related performance penalty when
12164 operating on a directory containing many entries (measurable at 10k;
12165 3.5 hours at 2 million entries with a cold cache) on certain types
12166 of file systems, including ext3 and ext4, but not tmpfs.
12167 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
12168 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
12169 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
12170 (fs_handles_readdir_ordered_dirents_efficiently): New function.
12171 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
12172 (fts_build): Set the stat.st_ino member from D_INO.
12173 If it is likely to be useful, sort dirent entries on inode number.
12175 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
12176 and the struct statfs.f_type member.
12177 * modules/fts (Depends-on): Add d-ino.
12179 2008-09-26 Bruno Haible <bruno@clisp.org>
12181 * modules/sigpipe-die (Depends-on): Add sigpipe.
12183 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
12184 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
12185 and GNULIB_STDIO_H_SIGPIPE are set.
12186 * lib/stdio-write.c: New file.
12187 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
12188 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12189 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12190 REPLACE_STDIO_WRITE_FUNCS.
12191 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
12192 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12193 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12194 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12195 * modules/stdio (Files): Add lib/stdio-write.c.
12196 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
12197 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12198 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12199 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12200 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
12201 REPLACE_FPRINTF_POSIX.
12202 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
12203 REPLACE_PRINTF_POSIX.
12204 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
12205 REPLACE_VFPRINTF_POSIX.
12206 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
12207 REPLACE_VPRINTF_POSIX.
12208 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
12210 * doc/posix-functions/fputc.texi: Likewise.
12211 * doc/posix-functions/fputs.texi: Likewise.
12212 * doc/posix-functions/fwrite.texi: Likewise.
12213 * doc/posix-functions/printf.texi: Likewise.
12214 * doc/posix-functions/putc.texi: Likewise.
12215 * doc/posix-functions/putchar.texi: Likewise.
12216 * doc/posix-functions/puts.texi: Likewise.
12217 * doc/posix-functions/vfprintf.texi: Likewise.
12218 * doc/posix-functions/vprintf.texi: Likewise.
12220 * modules/safe-write (Depends-on): Add write.
12222 * modules/sigpipe-tests: New file.
12223 * tests/test-sigpipe.c: New file.
12224 * tests/test-sigpipe.sh: New file.
12226 * modules/write: New file.
12227 * lib/unistd.in.h: Include <sys/types.h>.
12228 (write): New declaration.
12229 * lib/write.c: New file.
12230 * m4/write.m4: New file.
12231 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12232 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
12233 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
12234 GNULIB_WRITE, REPLACE_WRITE.
12235 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
12236 and the SIGPIPE issue.
12238 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
12239 (raise): New declaration.
12240 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
12241 (ext_signal): New function.
12242 (rpl_raise): New function.
12243 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12244 GNULIB_SIGNAL_H_SIGPIPE.
12245 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
12246 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
12248 * modules/sigpipe: New file.
12249 * m4/sigpipe.m4: New file.
12251 2008-09-25 Derek Price <derek@ximbiot.com>
12252 Bruno Haible <bruno@clisp.org>
12254 * gnulib-tool (func_import): Report all license incompatibilities, not
12255 just the first one.
12257 2008-09-25 Bruno Haible <bruno@clisp.org>
12259 * gnulib-tool (func_import): When computing the edits, consider not
12260 only the Makefile.ams that exist but also those that will be generated.
12262 2008-09-25 Simon Josefsson <simon@josefsson.org>
12264 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
12265 fixes gnulib-tool --test warning about duplicate dependency.
12267 2008-09-25 Bruno Haible <bruno@clisp.org>
12269 * gnulib-tool: Don't ask the user to perform edits in the generated
12271 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
12272 apply to the Makefile.am being generated.
12273 (func_emit_tests_Makefile_am): Execute edits that apply to the
12274 Makefile.am being generated.
12275 (func_import): Setup list of Makefile.am edits before emitting the
12276 Makefile.ams, not at the end.
12277 (func_create_testdir): Update.
12278 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12280 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12282 * gnulib-tool (func_import): Store the --tests-base option in the
12283 comment in gnulib-cache.m4.
12285 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
12287 * NEWS: Document increased portability that sys_select now provides.
12289 * lib/sys_select.in.h: Install select wrapper.
12290 * lib/sys_socket.in.h: Use more descriptive name when there is no
12292 * lib/winsock-select.c: New.
12293 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
12294 Require gl_HEADER_SYS_SOCKET.
12295 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
12296 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
12297 * tests/test-sys_select.c: Add functional tests.
12299 2008-09-24 Eric Blake <ebb9@byu.net>
12301 open, fopen: close fd leak in last patch
12302 * lib/open.c (rpl_open): Close fd before returning error.
12303 * lib/fopen.c (rpl_fopen): Close fd before returning error.
12304 * doc/posix-functions/open.texi (open): Document that Irix also
12306 * doc/posix-functions/fopen.texi (fopen): Likewise.
12307 Reported by Paolo Bonzini.
12309 2008-09-24 Bruno Haible <bruno@clisp.org>
12311 Ensure that a filename ending in a slash cannot be used to access a
12313 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
12314 to check whether it's really a directory.
12315 * lib/fopen.c: Include fcntl.h, unistd.h.
12316 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
12318 * modules/fopen (Depends-on): Add unistd.
12319 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
12320 * tests/test-fopen.c (main): Likewise.
12321 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
12322 * doc/posix-functions/fopen.texi: Likewise.
12323 Reported by Eric Blake.
12325 2008-09-23 Eric Blake <ebb9@byu.net>
12327 c-stack: avoid compiler optimizations when provoking overflow
12328 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
12329 recursion harder to optimize, to ensure a stack overflow occurs.
12330 * tests/test-c-stack.c (recurse): Likewise.
12331 Borrowed from libsigsegv.
12333 c-stack: work around Irix sigaltstack bug
12334 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
12335 whether sigaltstack uses wrong end of stack_t (copied in part from
12337 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
12338 Irix bug, without requiring an over-allocation.
12339 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
12342 fopen: document mingw bug on directories
12343 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
12344 not allowing a stream visiting a directory, even though reading
12345 from such a stream is not portable.
12347 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12349 * lib/poll.c: Rewrite.
12350 * modules/poll: Depend on alloca.
12352 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12354 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
12355 instead define prototypes for a full set of wrappers. Ensure
12356 that Cygwin does not use the compatibility code, which is only
12358 * lib/winsock.c: New.
12359 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
12360 * modules/sys_socket: Add lib/winsock.c.
12362 * modules/poll-tests: Add errno and perror.
12363 * tests/test-poll.c: Use ioctl, not ioctlsocket.
12365 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12367 * tests/test-poll.c: Downgrade minimum needed Winsock version.
12369 2008-09-23 Bruno Haible <bruno@clisp.org>
12371 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
12372 * doc/glibc-functions/*: Likewise.
12374 2008-09-23 Simon Josefsson <simon@josefsson.org>
12376 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
12379 2008-09-22 Eric Blake <ebb9@byu.net>
12380 Bruno Haible <bruno@clisp.org>
12382 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
12383 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
12384 supply %A but mishandle pseudo-NaN.
12385 Reported by Simon Josefsson.
12387 2008-09-21 Bruno Haible <bruno@clisp.org>
12389 * tests/test-lock.c (main): Tweak skip message.
12390 * tests/test-tls.c (main): Likewise.
12392 2008-09-21 Bruno Haible <bruno@clisp.org>
12394 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
12395 whether 'struct sigaction' has sa_sigaction here...
12396 (gl_PREREQ_SIG_HANDLER_H): ... not here.
12397 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
12399 2008-09-21 Bruno Haible <bruno@clisp.org>
12401 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
12403 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
12404 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
12406 (Support for obsolete systems lacking POSIX:2001): New section.
12407 (String handling <string.h>): Move strdup to the new section.
12408 Suggested by Simon Josefsson and Paolo Bonzini.
12410 2008-09-21 Bruno Haible <bruno@clisp.org>
12412 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
12413 exponents in %e and %g results on 'long double'. Needed for mingw's
12414 improved *printf functions.
12415 * tests/test-vasprintf-posix.c (test_function): Likewise.
12416 * tests/test-snprintf-posix.h (test_function): Likewise.
12417 * tests/test-sprintf-posix.h (test_function): Likewise.
12418 Reported by Eric Blake.
12420 2008-09-21 Bruno Haible <bruno@clisp.org>
12422 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
12423 * tests/test-sprintf-posix.h (test_function): Likewise.
12425 2008-09-21 Bruno Haible <bruno@clisp.org>
12427 * modules/getpass (Depends-on): Add strdup-posix.
12429 New module 'strdup-posix'.
12430 * modules/strdup-posix: New file.
12431 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
12432 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
12433 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12435 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
12436 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
12437 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12440 * modules/strdup (Depends-on): Remove malloc-posix.
12442 2008-09-20 Bruno Haible <bruno@clisp.org>
12444 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
12447 2008-09-20 Bruno Haible <bruno@clisp.org>
12449 Ensure that wint_t gets defined on IRIX 5.3.
12450 * lib/wchar.in.h (wint_t): Define if not defined by the system.
12451 * lib/wctype.in.h (wint_t): Likewise.
12452 (__wctype_wint_t): Remove type.
12453 (isw*): Use wint_t instead of __wctype_wint_t.
12454 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
12455 * modules/wchar (Files): Add m4/wint_t.m4.
12456 (Makefile.am): Substitute HAVE_WINT_T.
12457 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
12458 * tests/test-wctype.c: Check that wint_t is defined.
12459 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
12460 * doc/posix-headers/wctype.texi: Likewise.
12461 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12463 2008-09-18 Bruno Haible <bruno@clisp.org>
12465 * gnulib-tool (func_exit): Update comment.
12467 2008-09-18 Simon Josefsson <simon@josefsson.org>
12469 * modules/getaddrinfo (Depends-on): Remove strdup, this module
12470 assumes strdup exists and does not depend on strdup to return
12471 ENOMEM on out of memory conditions.
12473 2008-09-18 Bruno Haible <bruno@clisp.org>
12475 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
12476 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
12477 digits for the exponent.
12479 2008-09-18 Jim Meyering <meyering@redhat.com>
12480 Bruno Haible <bruno@clisp.org>
12482 * lib/vasnprintf.c (decimal_point_char): Define also if
12483 NEED_PRINTF_INFINITE_LONG_DOUBLE.
12485 2008-09-16 Bruno Haible <bruno@clisp.org>
12486 and Eric Blake <ebb9@byu.net>
12488 vasnprintf: support Irix 5.3
12489 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
12490 that mishandle long double infinity.
12491 Reported by Tom G. Christensen.
12493 2008-09-16 Bruno Haible <bruno@clisp.org>
12495 * doc/glibc-functions/scandir.texi: Mention the function is missing on
12497 * doc/glibc-functions/alphasort.texi: Likewise.
12498 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
12500 2008-09-16 Jim Meyering <meyering@redhat.com>
12502 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
12503 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
12504 a umask modification leak out of a subshell. Otherwise, the
12505 opensolaris /bin/sh would be accepted and thus cause unwarranted
12506 failures in the coreutils test suite.
12508 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
12510 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
12513 2008-09-16 Jim Meyering <meyering@redhat.com>
12515 avoid spurious test failure when library is built without ACL support
12516 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
12517 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
12518 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
12519 * tests/test-copy-acl.sh: Likewise.
12521 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12523 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
12524 based on character occurrence counts.
12526 2008-09-15 Eric Blake <ebb9@byu.net>
12528 tests: avoid some compiler warnings
12529 * tests/test-memchr.c (main): Pass NULL indirectly.
12530 * tests/test-closein.c (main): Avoid unused variable.
12532 2008-09-15 Bruno Haible <bruno@clisp.org>
12534 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
12535 are missing on OpenBSD 4.0 individually.
12536 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12538 2008-09-15 Bruno Haible <bruno@clisp.org>
12540 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
12541 * doc/posix-functions/strerror.texi: Mention also Cygwin.
12542 * doc/posix-functions/perror.texi: Likewise.
12543 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
12545 Reported by Eric Blake.
12547 * lib/errno.in.h: Use replacement values >= 2000.
12548 Reported by Eric Blake.
12550 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12552 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
12553 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
12555 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
12556 compareseq was aborted.
12558 2008-09-14 Bruno Haible <bruno@clisp.org>
12560 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
12562 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
12563 (fstrcmp_bounded): Simplify result computation accordingly.
12565 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12567 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
12568 (fstrcmp): Define in terms of fstrcmp_bounded.
12569 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
12570 lower_bound argument.
12571 Return quickly if the result is certainly < lower_bound.
12572 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
12574 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12576 * lib/diffseq.h (EARLY_ABORT): New macro.
12577 (compareseq): Change return type to bool. Return true when EARLY_ABORT
12580 2008-09-14 Bruno Haible <bruno@clisp.org>
12582 * modules/perror-tests: New file.
12583 * tests/test-perror.sh: New file.
12584 * tests/test-perror.c: New file.
12586 New module 'perror'.
12587 * lib/stdio.in.h (perror): New declaration.
12588 * lib/perror.c: New file.
12589 * m4/perror.m4: New file.
12590 * modules/perror: New file.
12591 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
12592 * doc/posix-functions/perror.texi: Mention the perror module.
12593 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
12595 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
12598 2008-09-14 Bruno Haible <bruno@clisp.org>
12600 * modules/stdio (Makefile.am): Reorder to match the order in
12602 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12604 2008-09-13 Bruno Haible <bruno@clisp.org>
12606 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
12608 2008-09-13 Bruno Haible <bruno@clisp.org>
12610 Extend strerror to cover the added errno values.
12611 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
12612 (rpl_strerror): Provide error messages for the added errno values and
12613 for the WSA* values.
12614 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
12615 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
12617 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
12618 * modules/strerror (Depends-on): Add errno.
12619 * doc/posix-functions/strerror.texi: Document the change.
12620 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
12623 2008-09-13 Bruno Haible <bruno@clisp.org>
12625 * modules/EOVERFLOW: Remove file.
12626 * m4/eoverflow.m4: Remove file.
12627 * modules/EOVERFLOW-tests: Remove file.
12628 * tests/test-EOVERFLOW.c: Remove file.
12629 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
12630 * modules/ftell (Depends-on): Likewise.
12631 * modules/getdelim (Depends-on): Likewise.
12632 * modules/getugroups (Depends-on): Likewise.
12633 * modules/poll (Depends-on): Likewise.
12634 * modules/snprintf (Depends-on): Likewise.
12635 * modules/sprintf-posix (Depends-on): Likewise.
12636 * modules/vasnprintf (Depends-on): Likewise.
12637 * modules/vasprintf (Depends-on): Likewise.
12638 * modules/vfprintf-posix (Depends-on): Likewise.
12639 * modules/vsnprintf (Depends-on): Likewise.
12640 * modules/vsprintf-posix (Depends-on): Likewise.
12641 * modules/xvasprintf (Depends-on): Likewise.
12642 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12643 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
12644 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
12645 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
12646 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12647 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
12648 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
12649 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
12650 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12651 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
12652 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
12653 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
12654 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12655 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
12656 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
12657 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
12658 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12659 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
12660 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
12661 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
12662 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12663 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
12664 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
12665 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
12666 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
12667 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12668 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
12669 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
12670 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
12671 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
12672 * MODULES.html.sh: Remove EOVERFLOW.
12673 * NEWS: Mention the change.
12675 2008-09-13 Bruno Haible <bruno@clisp.org>
12677 * modules/errno-tests: New file.
12678 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
12680 * lib/errno.in.h: New file.
12681 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
12682 * modules/errno: New file.
12683 * doc/posix-headers/errno.texi: Update documentation.
12684 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
12686 2008-09-13 Bruno Haible <bruno@clisp.org>
12688 * tests/test-poll.c: Use #if for native Windows, rather than testing
12691 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12692 Bruno Haible <bruno@clisp.org>
12694 * lib/glob.c: Don't include <pwd.h> on native Windows.
12695 (WINDOWS32): New macro.
12696 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
12698 2008-09-13 Bruno Haible <bruno@clisp.org>
12700 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
12701 (ETIMEDOUT): Remove macro.
12702 (glthread_cond_timedwait_multithreaded): New declaration.
12703 (glthread_cond_timedwait): Use it.
12704 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
12705 (glthread_cond_timedwait_multithreaded): New function.
12707 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
12709 * modules/poll-tests: Do not check for io.h.
12710 * tests/test-poll.c: Check for __MSVCRT__ instead.
12712 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
12714 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
12715 * modules/poll-tests: Add inet_pton, stdbool, sockets.
12716 * tests/test-poll.c: Use them. Use _pipe on Windows.
12718 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
12720 * modules/poll-tests: New.
12721 * tests/test-poll.c: New.
12723 2008-09-12 Eric Blake <ebb9@byu.net>
12725 frexp: test for NetBSD failure on -0.0
12726 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
12727 not all, bugs from NetBSD 3.0 have been fixed.
12728 * doc/posix-functions/frexp.texi (frexp): Document bug.
12729 Reported by Thomas Klausner.
12731 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
12732 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
12734 Reported by Jonathan C. Patschke <jp@centtech.com>.
12736 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12738 * lib/glthread/cond.h: Use dummy implementation also if
12741 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12743 * modules/fnmatch-posix (License): Change to LGPLv2+.
12744 * modules/fnmatch-gnu (License): Likewise.
12746 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12748 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
12750 2008-09-11 Jim Meyering <meyering@redhat.com>
12752 * users.txt: Add gtk-vnc.
12754 2008-09-08 Simon Josefsson <simon@josefsson.org>
12756 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
12759 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
12760 required for 16-bit and 8-bit rotates.
12761 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
12762 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
12763 UINT8_MAX instead of hard-coded constants.
12764 Suggested by Paul Eggert.
12766 2008-09-07 Bruno Haible <bruno@clisp.org>
12768 * tests/test-striconveh.c (main): Check behaviour when converting from
12771 Make striconveh work better with stateful encodings.
12772 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
12773 that iconv does not increment the inptr when returning -1/EINVAL.
12775 2008-09-07 Bruno Haible <bruno@clisp.org>
12777 * build-aux/config.rpath: Update according to libtool-2.2.6.
12778 * build-aux/config.libpath: Likewise.
12780 2008-09-06 Bruno Haible <bruno@clisp.org>
12782 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
12783 * lib/freadptr.c (freadptr): Likewise.
12784 * lib/freadseek.c (freadptrinc): Likewise.
12785 Reported by Simon Josefsson.
12787 2008-09-06 Bruno Haible <bruno@clisp.org>
12789 * modules/freadptr (License): Change to LGPLv2+.
12790 * modules/freadseek (License): Likewise.
12791 Suggested by Eric Blake.
12793 * modules/memchr2 (License): Change to LGPLv2+.
12794 Approved by Eric Blake.
12796 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12797 Bruno Haible <bruno@clisp.org>
12799 Make gnulib-tool work with native 'sed' on AIX.
12800 * gnulib-tool (sed_noop): New variable.
12801 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
12802 func_add_or_update, func_create_testdir): Use it to initialize sed
12804 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12806 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
12807 Bruno Haible <bruno@clisp.org>
12809 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
12810 also works after #include directives.
12812 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
12814 getdate.y: reject an out-of-range timezone value
12815 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
12816 the range [-24...+24]. When specified with only one or two digits,
12817 * tests/test-getdate.c: Tests for the fix.
12818 * doc/getdate.texi: Document this change.
12820 2008-09-03 Bruno Haible <bruno@clisp.org>
12822 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
12824 2008-09-02 Simon Josefsson <simon@josefsson.org>
12826 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
12827 <bruce.korb@gmail.com> with ideas from Ben Pfaff
12828 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
12829 Blake <ebb9@byu.net>.
12831 * tests/test-bitrotate.c: Add more test vectors.
12833 2008-09-02 Eric Blake <ebb9@byu.net>
12835 vasnprintf-posix: handle large precision via %.*d
12836 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
12837 when handling it ourselves.
12838 * tests/test-vasnprintf-posix.c (test_function): Add test.
12839 * tests/test-snprintf-posix.h (test_function): Likewise.
12840 * tests/test-sprintf-posix.h (test_function): Likewise.
12841 * tests/test-vasprintf-posix.c (test_function): Likewise.
12842 Reported by Alain Guibert.
12844 2008-09-01 Eric Blake <ebb9@byu.net>
12846 c-stack: make configure-time check more robust
12847 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
12848 successful sigaction call.
12849 Reported by Tom G. Christensen.
12851 2008-09-01 Bruno Haible <bruno@clisp.org>
12853 New module 'findprog-lgpl'.
12854 * modules/findprog-lgpl: New file.
12855 * lib/findprog-lgpl.c: New file.
12856 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
12857 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
12858 to decide whether to use strdup or xstrdup, concatenated_filename or
12859 xconcatenated_filename.
12861 2008-09-01 Bruno Haible <bruno@clisp.org>
12863 Split module 'concat-filename' into 'concat-filename' (LGPL) and
12864 'xconcat-filename' (GPL).
12865 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
12866 (License): Change to LGPLv2+.
12867 * modules/xconcat-filename: New file.
12868 * lib/concat-filename.h (concatenated_filename): Change specification.
12869 (xconcatenated_filename): New declaration.
12870 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
12871 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
12873 * lib/xconcat-filename.c: New file.
12874 * NEWS: Mention the change.
12875 * lib/findprog.c: Include concat-filename.h, not filename.h.
12876 (find_in_path): Use xconcatenated_filename instead of
12877 concatenated_filename.
12878 * lib/javacomp.c: Include concat-filename.h, not filename.h.
12879 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12880 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12881 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12882 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
12883 instead of concatenated_filename.
12884 * lib/javaexec.c: Include concat-filename.h, not filename.h.
12885 (execute_java_class): Use xconcatenated_filename instead of
12886 concatenated_filename.
12887 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
12888 * modules/javacomp (Depends-on): Likewise.
12889 * modules/javaexec (Depends-on): Likewise.
12891 2008-09-01 Bruno Haible <bruno@clisp.org>
12893 Split module 'filename' into 'filename' and 'concat-filename'.
12894 * modules/filename: Keep only lib/filename.h.
12895 (License): Change to LGPLv2+.
12896 * modules/concat-filename: New file, extracted from modules/filename.
12897 * lib/filename.h (concatenated_filename): Remove declaration.
12898 * lib/concat-filename.h: New file, extracted from lib/filename.h.
12899 * lib/concat-filename.c: Include concat-filename.h.
12900 * NEWS: Mention the change.
12902 2008-09-01 Simon Josefsson <simon@josefsson.org>
12904 * lib/bitrotate.h (rotl8, rotr8): Add.
12906 * modules/bitrotate (configure.ac): Need
12907 AC_REQUIRE([AC_C_INLINE]).
12908 (Description): Mention stdint.h. Reported by Bruno Haible
12911 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
12912 Paolo Bonzini <bonzini@gnu.org>.
12914 2008-08-31 Bruno Haible <bruno@clisp.org>
12916 Assume Solaris specific bi-arch conventions on Solaris systems.
12917 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
12918 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
12919 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
12920 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
12921 like acl_libdirstem.
12922 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
12924 * NEWS: Mention the change.
12925 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
12927 2008-08-31 Jim Meyering <meyering@redhat.com>
12929 * lib/strftime.h: Add comments describing the two added arguments.
12931 remove duplicate #include directives
12932 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
12933 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
12935 2008-08-31 Bruno Haible <bruno@clisp.org>
12937 New module 'sigpipe-die'.
12938 * modules/sigpipe-die: New file.
12939 * lib/sigpipe-die.h: New file.
12940 * lib/sigpipe-die.c: New file.
12941 * MODULES.html.sh (Signal handling): Add sigpipe-die.
12943 2008-08-31 Bruno Haible <bruno@clisp.org>
12945 Don't override previously installed signal handlers.
12946 * lib/fatal-signal.c (saved_sigactions): New variable.
12947 (uninstall_handlers): Reset the signal to the saved handler, not
12948 to SIG_DFL (except when ignored).
12949 (install_handlers): Save the previous handlers.
12951 2008-08-30 Bruno Haible <bruno@clisp.org>
12953 * gnulib-tool (func_reset_sigpipe): New function.
12954 (func_get_automake_snippet, func_modules_transitive_closure,
12955 func_import): Invoke it before a join command that reads from stdin,
12956 to avoid "echo: write error: Broken pipe" error messages on stderr.
12957 Reported by Sam Steingold <sds@gnu.org>.
12959 2008-08-30 Bruno Haible <bruno@clisp.org>
12961 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
12962 Code copied from m4/open.m4.
12963 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
12964 access and the filename ends in a slash. Code copied from lib/open.c.
12965 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
12966 * tests/test-fopen.c (main): Check against bug with trailing slash.
12968 2008-08-29 Bruno Haible <bruno@clisp.org>
12970 Avoid some "gcc -pedantic" warnings.
12971 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
12972 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
12973 * lib/dirent.in.h: Likewise.
12974 * lib/fcntl.in.h: Likewise.
12975 * lib/float.in.h: Likewise.
12976 * lib/iconv.in.h: Likewise.
12977 * lib/inttypes.in.h: Likewise.
12978 * lib/locale.in.h: Likewise.
12979 * lib/math.in.h: Likewise.
12980 * lib/netinet_in.in.h: Likewise.
12981 * lib/search.in.h: Likewise.
12982 * lib/signal.in.h: Likewise.
12983 * lib/stdarg.in.h: Likewise.
12984 * lib/stdint.in.h: Likewise.
12985 * lib/stdio.in.h: Likewise.
12986 * lib/stdlib.in.h: Likewise.
12987 * lib/string.in.h: Likewise.
12988 * lib/strings.in.h: Likewise.
12989 * lib/sys_select.in.h: Likewise.
12990 * lib/sys_socket.in.h: Likewise.
12991 * lib/sys_stat.in.h: Likewise.
12992 * lib/sys_time.in.h: Likewise.
12993 * lib/sysexits.in.h: Likewise.
12994 * lib/time.in.h: Likewise.
12995 * lib/unistd.in.h: Likewise.
12996 * lib/wchar.in.h: Likewise.
12997 * lib/wctype.in.h: Likewise.
12998 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
12999 * modules/fchdir (Makefile.am): Likewise.
13000 * modules/fcntl (Makefile.am): Likewise.
13001 * modules/float (Makefile.am): Likewise.
13002 * modules/iconv_open (Makefile.am): Likewise.
13003 * modules/inttypes (Makefile.am): Likewise.
13004 * modules/locale (Makefile.am): Likewise.
13005 * modules/math (Makefile.am): Likewise.
13006 * modules/netinet_in (Makefile.am): Likewise.
13007 * modules/search (Makefile.am): Likewise.
13008 * modules/signal (Makefile.am): Likewise.
13009 * modules/stdarg (Makefile.am): Likewise.
13010 * modules/stdint (Makefile.am): Likewise.
13011 * modules/stdio (Makefile.am): Likewise.
13012 * modules/stdlib (Makefile.am): Likewise.
13013 * modules/string (Makefile.am): Likewise.
13014 * modules/strings (Makefile.am): Likewise.
13015 * modules/sys_select (Makefile.am): Likewise.
13016 * modules/sys_socket (Makefile.am): Likewise.
13017 * modules/sys_stat (Makefile.am): Likewise.
13018 * modules/sys_time (Makefile.am): Likewise.
13019 * modules/sysexits (Makefile.am): Likewise.
13020 * modules/time (Makefile.am): Likewise.
13021 * modules/unistd (Makefile.am): Likewise.
13022 * modules/wchar (Makefile.am): Likewise.
13023 * modules/wctype (Makefile.am): Likewise.
13024 Reported by Reuben Thomas <rrt@sc3d.org>.
13026 2008-08-29 Bruno Haible <bruno@clisp.org>
13028 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
13031 2008-08-29 Simon Josefsson <simon@josefsson.org>
13033 * MODULES.html.sh (Misc): Add bitrotate.
13035 * modules/bitrotate: New file.
13037 * lib/bitrotate.h: New file.
13039 * modules/bitrotate-tests: New file.
13041 * tests/test-bitrotate.c: New file.
13043 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
13044 on the bitrotate module.
13046 * lib/arctwo.c: Use new bitrotate module.
13048 2008-08-29 Jim Meyering <meyering@redhat.com>
13050 bootstrap: merge changes from coreutils
13051 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
13052 of copied files. Remove a kludge, now that this is fixed.
13053 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
13054 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
13055 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
13057 2008-08-29 Bruno Haible <bruno@clisp.org>
13059 * MODULES.html.sh: Remove --cvs-urls option.
13061 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
13063 maint.mk: adjust to file name change
13064 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
13066 2008-08-28 Jim Meyering <meyering@redhat.com>
13068 * modules/getndelim2 (License): Relicense to LGPLv2+.
13069 Approved by Richard Stallman for the version of 1995, and by
13070 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
13072 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
13074 * lib/getdelim.c (flockfile, funlockfile): Make all of them
13075 dummy if one is not available. Do not touch them if
13076 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
13077 (getc_maybe_unlocked): New.
13078 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
13080 2008-08-26 Eric Blake <ebb9@byu.net>
13082 doc/INSTALL: resync from autoconf
13083 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
13084 (INSTALL_PRELUDE): Delete; this is done more efficiently by
13086 * install.texi [!autoconf]: ...here. Resync from autoconf.
13087 * INSTALL: Regenerate.
13088 * INSTALL.ISO: New file.
13089 * INSTALL.UTF-8: Likewise.
13091 2008-08-26 Jim Meyering <meyering@redhat.com>
13093 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
13094 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
13095 these definitions conditional, so that they may be overridden, too.
13097 2008-08-26 Bruno Haible <bruno@clisp.org>
13099 Generate INSTALL file variants with prettier quotes.
13100 * doc/Makefile (INSTALL_PRELUDE): New macro.
13102 (INSTALL.ISO, INSTALL.UTF-8): New rules.
13104 2008-08-26 Bruno Haible <bruno@clisp.org>
13106 Run makeinfo in an English locale.
13107 * doc/Makefile (MAKEINFO): New variable.
13109 2008-08-26 Bruno Haible <bruno@clisp.org>
13111 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
13112 Suggested by Eric Blake.
13114 2008-08-25 Bruno Haible <bruno@clisp.org>
13116 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
13118 2008-08-25 Eric Blake <ebb9@byu.net>
13120 c-stack: test that stack overflow can be caught
13121 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
13122 that platform allows handling stack overflow; at least OS/2 EMX
13123 has sigaltstack, but crashes before transferring control to
13124 handler on stack overflow.
13125 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
13126 check for HAVE_STACK_OVERFLOW_HANDLING.
13127 Reported by Elbert Pol.
13129 2008-08-25 Bruno Haible <bruno@clisp.org>
13131 * doc/posix-functions/strftime.texi: Fix description of strftime
13134 2008-08-24 Bruno Haible <bruno@clisp.org>
13136 * tests/uniwidth/test-uc_width2.c: New file.
13137 * tests/uniwidth/test-uc_width2.sh: New file.
13138 * modules/uniwidth/width-tests (Files): Add the new files.
13139 (TESTS): Add uniwidth/test-uc_width2.sh.
13140 (TESTS_ENVIRONMENT): New variable.
13141 (check_PROGRAMS): Add test-uc_width2.
13142 (test_uc_width2_SOURCES): New variable.
13144 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
13145 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
13147 Reported by Alexander V. Lukyanov <lav@netis.ru>.
13149 2008-08-22 Eric Blake <ebb9@byu.net>
13151 test-lock, test-tls: mention why a test is skipped
13152 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
13154 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
13156 count-one-bits: relax license
13157 * modules/count-one-bits (License): Relicense to LGPLv2+.
13158 Suggested by Ludovic Courtès, approved by Ben Pfaff.
13160 2008-08-22 Andreas Schwab <schwab@suse.de>
13162 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13163 Remove spurious space in assignment.
13165 2008-08-21 Simon Josefsson <simon@josefsson.org>
13167 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
13168 Paul Eggert <eggert@CS.UCLA.EDU>.
13170 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
13172 * modules/gettext: Add m4/threadlib.m4.
13174 2008-08-19 Eric Blake <ebb9@byu.net>
13176 test-c-stack: fix compilation failure on FreeBSD 5.0
13177 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
13178 headers before <sys/resource.h>.
13179 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
13181 Reported by Nelson H. F. Beebe.
13183 strverscmp: migrate from "strverscmp.h" to <string.h>
13184 * modules/string (Makefile.am): Add new hooks.
13185 * modules/strverscmp (Files): Remove strverscmp.h.
13186 (Depends-on): Add string.
13187 (configure.ac): Add indicator.
13188 (Include): Mention new header.
13189 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
13191 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
13193 * lib/strverscmp.h: Delete.
13194 * lib/string.in.h (strverscmp): Provide declaration, when needed.
13195 * tests/test-strverscmp.c (includes): Adjust client.
13196 * lib/check-version.c (includes): Likewise.
13197 * NEWS: Document the change.
13199 strverscmp: add unit test
13200 * modules/strverscmp-tests: New file.
13201 * tests/test-strverscmp.c: Likewise.
13203 2008-08-19 Simon Josefsson <simon@josefsson.org>
13205 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
13206 regarding Windows crypto stuff, from Mono.
13208 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
13210 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
13211 if present, for intel RND. Return error on failures.
13213 2008-08-18 Ben Pfaff <blp@gnu.org>
13215 gitlog-to-changelog: give better diagnostic for failed pipe-open
13216 * build-aux/gitlog-to-changelog: Improve error message: suggest
13217 that the version of Git may be too old.
13219 2008-08-18 Simon Josefsson <simon@josefsson.org>
13221 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
13222 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
13224 2008-08-18 Bruno Haible <bruno@clisp.org>
13226 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
13229 2008-08-18 Bruno Haible <bruno@clisp.org>
13231 * lib/glthread/threadlib.c: Include <pthread.h>.
13233 2008-08-18 Bruno Haible <bruno@clisp.org>
13235 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
13236 glthread_recursive_lock_* macros.
13237 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
13240 2008-08-18 Bruno Haible <bruno@clisp.org>
13242 * lib/glthread/thread.c: Avoid forcing a context switch right after
13245 2008-08-17 Bruno Haible <bruno@clisp.org>
13247 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
13248 * lib/glthread/thread.h: Provide Win32 specific implementation.
13249 * modules/thread (Files): Add lib/glthread/thread.c.
13250 (Depends-on): Add lock.
13251 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
13253 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13255 New module 'yield'.
13256 * modules/yield: New file.
13257 * lib/glthread/yield.h: New file.
13258 * m4/yield.m4: New file.
13259 * MODULES.html.sh (Multithreading): Add yield.
13261 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13263 New module 'thread'.
13264 * modules/thread: New file.
13265 * lib/glthread/thread.h: New file.
13266 * m4/thread.m4: New file.
13267 * MODULES.html.sh (Multithreading): Add thread.
13269 2008-08-17 Bruno Haible <bruno@clisp.org>
13271 * lib/glthread/lock.h: Include <stdlib.h> always.
13272 * lib/glthread/tls.h: Likewise.
13273 * lib/glthread/cond.h: Likewise.
13275 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13278 * modules/cond: New file.
13279 * lib/glthread/cond.h: New file.
13280 * lib/glthread/cond.c: New file.
13281 * m4/cond.m4: New file.
13282 * MODULES.html.sh (Multithreading): Add cond.
13284 2008-08-16 Eric Blake <ebb9@byu.net>
13286 c-stack: fix regression on Irix 5.3 from 2008-06-21
13287 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
13289 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
13290 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
13291 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
13292 * modules/signal (Makefile.am): Use the value.
13293 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
13294 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
13295 * doc/posix-headers/signal.texi (signal.h): Document this
13297 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
13298 Reported by Tom G. Christensen.
13300 2008-08-17 Bruno Haible <bruno@clisp.org>
13302 New module 'threadlib'.
13303 * modules/threadlib: New file.
13304 * lib/glthread/threadlib.c: New file, extracted from
13305 lib/glthread/lock.c.
13306 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
13308 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
13309 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
13310 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
13312 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
13313 (gl_DISABLE_THREADS): Remove macro.
13314 * modules/lock (Files): Remove build-aux/config.rpath.
13315 (Depends-on): Remove havelib. Add threadlib.
13316 (configure.ac-early): Remove section.
13317 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
13318 * modules/tls (Depends-on): Remove lock. Add threadlib.
13319 (Link): New section, copied from threadlib.
13320 * MODULES.html.sh (Multithreading): Add threadlib.
13322 2008-08-14 Bruno Haible <bruno@clisp.org>
13324 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
13325 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
13326 glthread_rwlock_unlock, glthread_rwlock_destroy,
13327 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
13328 glthread_recursive_lock_destroy): Define as macros always.
13329 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
13330 glthread_lock_lock.
13331 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
13332 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
13333 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
13334 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
13335 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
13336 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
13337 (glthread_recursive_lock_lock_func): Renamed from
13338 glthread_recursive_lock_lock.
13339 (glthread_recursive_lock_unlock_func): Renamed from
13340 glthread_recursive_lock_unlock.
13341 (glthread_recursive_lock_destroy_func): Renamed from
13342 glthread_recursive_lock_destroy.
13344 2008-08-14 Bruno Haible <bruno@clisp.org>
13346 * lib/glthread/lock.h: Renamed from lib/lock.h.
13347 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
13348 * lib/glthread/tls.h: Renamed from lib/tls.h.
13349 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
13350 * lib/fstrcmp.c: Update includes.
13351 * lib/strsignal.c: Update includes.
13352 * modules/lock (Files, Makefile.am): Update.
13353 (Include): Change to "glthread/lock.h".
13354 * modules/tls (Files, Makefile.am): Update.
13355 (Include): Change to "glthread/tls.h".
13356 * tests/test-lock.c: Update includes.
13357 * tests/test-tls.c: Update includes.
13358 * NEWS: Mention the renamed header files.
13360 2008-08-11 Jim Meyering <meyering@redhat.com>
13362 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
13364 2008-08-11 Eric Blake <ebb9@byu.net>
13366 test-c-stack: avoid C99-ism
13367 * tests/test-c-stack.c (main): Fix whitespace, move declaration
13369 Reported by Alain Guibert.
13371 2008-08-10 Jim Meyering <meyering@redhat.com>
13373 ensure that return value of uinttostr et al are not ignored
13374 * lib/inttostr.h (__GNUC_PREREQ): Define.
13375 (__attribute_warn_unused_result__): Define.
13376 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
13378 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
13380 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
13381 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
13383 2008-08-07 Jim Meyering <meyering@redhat.com>
13385 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
13387 * modules/mkstemp (License): Relicense under LGPLv2+.
13388 * modules/tempname (License): Likewise.
13390 2008-08-06 Bruno Haible <bruno@clisp.org>
13392 * lib/poll.c (poll): Further micro-optimization.
13394 2008-08-06 Jim Meyering <meyering@redhat.com>
13396 inet_pton.c: use locale-independent tolower
13397 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
13398 (inet_pton6): Use c_tolower rather than tolower.
13399 * modules/inet_pton (Depends-on): Add c-ctype.
13401 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
13403 * lib/poll.c (poll): Avoid division when timeout is 0, cache
13404 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
13406 2008-08-06 Jim Meyering <meyering@redhat.com>
13408 * modules/inet_pton (License): Relicense under LGPLv2+.
13410 2008-08-03 Bruno Haible <bruno@clisp.org>
13412 Additional non-aborting API for lock and tls.
13413 * lib/lock.h: Include <errno.h>.
13414 (glthread_lock_init): New macro/function.
13415 (gl_lock_init): Define as wrapper around glthread_lock_init.
13416 (glthread_lock_lock): New macro/function.
13417 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
13418 (glthread_lock_unlock): New macro/function.
13419 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
13420 (glthread_lock_destroy): New macro/function.
13421 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
13422 (glthread_rwlock_init): New macro/function.
13423 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
13424 (glthread_rwlock_rdlock): New macro/function.
13425 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
13426 (glthread_rwlock_wrlock): New macro/function.
13427 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
13428 (glthread_rwlock_unlock): New macro/function.
13429 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
13430 (glthread_rwlock_destroy): New macro/function.
13431 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
13432 (glthread_recursive_lock_init): New macro/function.
13433 (gl_recursive_lock_init): Define as wrapper around
13434 glthread_recursive_lock_init.
13435 (glthread_recursive_lock_lock): New macro/function.
13436 (gl_recursive_lock_lock): Define as wrapper around
13437 glthread_recursive_lock_lock.
13438 (glthread_recursive_lock_unlock): New macro/function.
13439 (gl_recursive_lock_unlock): Define as wrapper around
13440 glthread_recursive_lock_unlock.
13441 (glthread_recursive_lock_destroy): New macro/function.
13442 (gl_recursive_lock_destroy): Define as wrapper around
13443 glthread_recursive_lock_destroy.
13444 (glthread_once): New macro/function.
13445 (gl_once): Define as wrapper around glthread_once.
13446 Update function declarations.
13447 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
13448 glthread_rwlock_init. Return error code.
13449 (glthread_rwlock_rdlock_multithreaded): Renamed from
13450 glthread_rwlock_rdlock. Return error code.
13451 (glthread_rwlock_wrlock_multithreaded): Renamed from
13452 glthread_rwlock_wrlock. Return error code.
13453 (glthread_rwlock_unlock_multithreaded): Renamed from
13454 glthread_rwlock_unlock. Return error code.
13455 (glthread_rwlock_destroy_multithreaded): Renamed from
13456 glthread_rwlock_destroy. Return error code.
13457 (glthread_recursive_lock_init_multithreaded): Renamed from
13458 glthread_recursive_lock_init. Return error code.
13459 (glthread_recursive_lock_lock_multithreaded): Renamed from
13460 glthread_recursive_lock_lock. Return error code.
13461 (glthread_recursive_lock_unlock_multithreaded): Renamed from
13462 glthread_recursive_lock_unlock. Return error code.
13463 (glthread_recursive_lock_destroy_multithreaded): Renamed from
13464 glthread_recursive_lock_destroy. Return error code.
13465 (glthread_once_call): Make static.
13466 (glthread_once_multithreaded): Renamed from glthread_once.
13467 * lib/tls.h: Include <errno.h>.
13468 (glthread_tls_key_init): New macro/function.
13469 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
13470 (glthread_tls_set): New macro/function.
13471 (gl_tls_set): Define as wrapper around glthread_tls_set.
13472 (glthread_tls_key_destroy): New macro/function.
13473 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
13474 Update function declarations.
13475 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
13477 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13479 2008-08-04 Eric Blake <ebb9@byu.net>
13481 gnumakefile: use space, not TAB, outside of targets
13482 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
13484 2008-08-02 Jim Meyering <meyering@redhat.com>
13486 getdate.y: avoid locale-dependent date parsing failure
13487 In Turkish locales, getdate would fail to recognize keywords
13488 containing a lowercase "i". The solution is not to rely on
13489 locale-sensitive case-conversion.
13490 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
13491 (lookup_word): Use c_toupper in place of toupper.
13492 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
13493 Reported by Vefa Bicakci <bicave@superonline.com> in
13494 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
13495 * modules/getdate (Depends-on): Add c-ctype.
13497 2008-08-02 Bruno Haible <bruno@clisp.org>
13499 * gnulib-tool (func_import): When updating or creating a .gitignore
13500 file, prepend each added line with a slash, and ignore leading slashes
13501 from the existing lines.
13502 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13504 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13506 Portability fix for GNU make 3.79.1.
13507 * top/GNUmakefile: Avoid 'else COND', which older GNU make
13508 versions do not understand.
13510 2008-08-01 Bruno Haible <bruno@clisp.org>
13512 Work around bug of HP-UX 10.20 cc with -0.0 literal.
13513 * tests/test-isnanf.h (zero): New variable.
13514 (main): Avoid literal -0.0f.
13515 * tests/test-isnand.h (zero): New variable.
13516 (main): Avoid literal -0.0.
13517 * tests/test-isnanl.h (zero): New variable.
13518 (main): Avoid literal -0.0L.
13519 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
13520 (test_float, test_double, test_long_double): Avoid literals -0.0f,
13522 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
13523 (test_signbitd): Avoid literal -0.0.
13524 (test_signbitl): Avoid literal -0.0L.
13525 * tests/test-ceilf1.c (zero): New variable.
13526 (main): Avoid literal -0.0f.
13527 * tests/test-ceill.c (zero): New variable.
13528 (main): Avoid literal -0.0L.
13529 * tests/test-floorf1.c (zero): New variable.
13530 (main): Avoid literal -0.0f.
13531 * tests/test-floorl.c (zero): New variable.
13532 (main): Avoid literal -0.0L.
13533 * tests/test-roundf1.c (zero): New variable.
13534 (main): Avoid literal -0.0f.
13535 * tests/test-round1.c (zero): New variable.
13536 (main): Avoid literal -0.0.
13537 * tests/test-roundl.c (zero): New variable.
13538 (main): Avoid literal -0.0L.
13539 * tests/test-truncf1.c (zero): New variable.
13540 (main): Avoid literal -0.0f.
13541 * tests/test-trunc1.c (zero): New variable.
13542 (main): Avoid literal -0.0.
13543 * tests/test-truncl.c (zero): New variable.
13544 (main): Avoid literal -0.0L.
13545 * tests/test-frexp.c (zero): New variable.
13546 (main): Avoid literal -0.0.
13547 * tests/test-frexpl.c (zero): New variable.
13548 (main): Avoid literal -0.0L.
13549 * tests/test-ldexpl.c (zero): New variable.
13550 (main): Avoid literal -0.0L.
13551 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
13552 (zerod, zerol): New variables.
13553 (test_function): Avoid literals -0.0, -0.0L.
13554 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
13555 (zerod, zerol): New variables.
13556 (test_function): Avoid literals -0.0, -0.0L.
13557 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
13558 (zerod, zerol): New variables.
13559 (test_function): Avoid literals -0.0, -0.0L.
13560 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
13561 (zerod, zerol): New variables.
13562 (test_function): Avoid literals -0.0, -0.0L.
13563 * tests/test-strtod.c (zero): New variable.
13564 (main): Avoid literal -0.0.
13565 Reported by Jonathan C. Patschke <jp@centtech.com>.
13567 2008-07-31 Jim Meyering <meyering@redhat.com>
13569 sha256.h: correct definition of SHA224_DIGEST_SIZE
13570 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
13571 Reported by Paulie Pena IV <paulie4@gmail.com>.
13572 Define as 224 / 8, rather than as a literal.
13573 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
13574 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
13575 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
13577 2008-07-31 Bruno Haible <bruno@clisp.org>
13579 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
13580 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
13581 Reported by Jonathan Patschke <jp@centtech.com>.
13583 2008-07-31 Bruno Haible <bruno@clisp.org>
13585 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
13586 Reported by Paolo Bonzini <bonzini@gnu.org>.
13588 2008-07-30 Eric Blake <ebb9@byu.net>
13590 test-strtod: allow compilation without -lm
13591 * tests/test-strtod.c (main): Avoid link dependence on fabs.
13592 Reported by Dennis Clarke <blastwave@gmail.com>.
13594 2008-07-28 Jim Meyering <meyering@redhat.com>
13596 bootstrap: work also when there are no .po files in po/
13597 * build-aux/bootstrap (update_po_files): Complete the change
13598 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
13600 2008-07-27 Jim Meyering <meyering@redhat.com>
13602 * users.txt: Add zile.
13604 2008-07-26 Ben Pfaff <blp@gnu.org>
13606 Add missing dependencies on new m4/exponent[fdl].m4 files.
13607 * modules/isnanf-nolibm: Add m4/exponentf.m4.
13608 * modules/isnand-nolibm: Add m4/exponentd.m4.
13609 * modules/isnanl-nolibm: Add m4/exponentl.m4.
13610 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
13611 m4/isnan[fdl].m4, because the macros actually used moved.
13612 Reported by Jim Meyering.
13614 2008-07-14 Ben Pfaff <blp@gnu.org>
13617 * lib/isinf.c: New file.
13618 * lib/math.in.h: Define isinf macro if we have decided to replace
13620 * m4/isinf.m4: New file.
13621 * m4/math_h.m4: Initialize and substitute variables for isinf
13623 * modules/isinf: New file.
13624 * modules/isinf-tests: New file.
13625 * modules/math: Add substitutions for new module.
13626 * tests/test-isinf.c: New file.
13627 * doc/posix-functions/isinf.texi: Mention new module.
13628 * MODULES.html.sh: Mention new module.
13630 2008-07-14 Ben Pfaff <blp@gnu.org>
13632 Factor out some macros for use by additional modules.
13633 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
13635 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
13637 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
13639 * m4/exponentf.m4: New file.
13640 * m4/exponentd.m4: New file.
13641 * m4/exponentl.m4: New file.
13642 * modules/isnanf: Use new file m4/exponentf.m4.
13643 * modules/isnand: Use new file m4/exponentd.m4.
13644 * modules/isnanl: Use new file m4/exponentl.m4.
13646 2008-07-23 Ulrich Drepper <drepper@redhat.com>
13648 mktime.c: normalize tp->tm_isdst value to -1/0/1.
13649 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
13650 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
13651 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
13653 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
13654 readlink on platforms without PATH_MAX.
13656 2008-07-21 Eric Blake <ebb9@byu.net>
13658 Warn, not fail, on stale version.
13659 * top/GNUmakefile (_curr-ver): Tone down previous patch.
13661 Don't allow installation with stale devel version number.
13662 * top/GNUmakefile (_is-install-target): New macro.
13663 (_curr-ver): Forbid installation with stale version number.
13665 2008-07-20 Bruno Haible <bruno@clisp.org>
13667 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
13669 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
13671 2008-07-20 Bruno Haible <bruno@clisp.org>
13673 * lib/c-stack.h (c_stack_action): Add documentation.
13674 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
13676 2008-07-20 Bruno Haible <bruno@clisp.org>
13678 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
13679 * modules/readlink (License): Likewise.
13681 2008-07-17 Eric Blake <ebb9@byu.net>
13683 * modules/c-stack (Link): Fix typo.
13685 Make c-stack use libsigsegv, when available.
13686 * modules/c-stack (Depends-on): Add libsigsegv.
13687 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
13689 * lib/c-stack.c (SIGSTKSZ): Define fallback.
13690 (segv_handler, overflow_handler, c_stack_action)
13691 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
13692 implementation when libsigsegv is available, but only when using
13693 the library is necessary.
13694 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
13695 comment, explaining why XSI check fails on Linux.
13696 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
13697 * tests/test-c-stack2.sh: Tweak skip message.
13698 * NEWS: Document new link-time requirements.
13700 2008-07-16 Eric Blake <ebb9@byu.net>
13702 c-stack: Expose false positives when not using libsigsegv.
13703 * modules/c-stack-tests (Files): Expand test.
13704 * tests/test-c-stack.c (main): Add means to conditionally trigger
13705 non-overflow SIGSEGV.
13706 * tests/test-c-stack2.sh: New file.
13708 2008-07-14 Bruno Haible <bruno@clisp.org>
13710 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
13711 Reported by Eric Blake.
13713 2008-07-14 Sam Steingold <sds@gnu.org>
13714 Bruno Haible <bruno@clisp.org>
13716 New module libsigsegv.
13717 * modules/libsigsegv: New file.
13718 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
13720 * MODULES.html.sh (Signal handling): New section.
13722 2008-07-14 Bruno Haible <bruno@clisp.org>
13724 * modules/unictype/ctype-* (Description): Add the word "function".
13725 Improves the resulting doc in MODULES.html.
13727 2008-07-12 Ben Pfaff <blp@gnu.org>
13729 Add longlong module.
13730 * modules/longlong: New file.
13732 2008-07-12 Bruno Haible <bruno@clisp.org>
13734 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
13737 2008-07-10 Ben Pfaff <blp@gnu.org>
13740 * doc/posix-functions/isnan.texi: Mention new module.
13741 * lib/math.in.h: Define isnan macro if we have decided to replace
13743 * m4/isnan.m4: New file.
13744 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
13745 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
13747 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
13749 * m4/math_h.m4: Initialize and substitute variables for isnan
13751 * modules/isnan: New file.
13752 * modules/isnan-tests: New file.
13753 * modules/math: Add substitutions for new module.
13754 * tests/test-isnan.c: New file.
13755 * MODULES.html.sh: Mention new module.
13757 2008-07-10 Ben Pfaff <blp@gnu.org>
13760 * lib/isnanf.m4: New file.
13761 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
13762 (gl_HAVE_ISNANF_IN_LIBM): New macro.
13763 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
13764 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
13765 * modules/isnanf: New file.
13766 * modules/isnanf-tests: New file.
13767 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
13769 * tests/test-isnanf-nolibm.c: factored most of its contents into
13770 new file tests/test-isnanf.h.
13771 * tests/test-isnanf.h: New file.
13772 * tests/test-isnanf.c: New file.
13773 * MODULES.html.sh: Mention new module.
13774 * doc/glibc-functions/isnanf.texi: Mention new module.
13776 2008-07-10 Ben Pfaff <blp@gnu.org>
13779 * lib/isnand.h: New file.
13780 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
13781 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
13782 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
13783 functionality also.
13784 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
13785 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
13786 (gl_HAVE_ISNAND_IN_LIBM): New macro.
13787 * modules/isnand: New file.
13788 * modules/isnand-tests: New file.
13789 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
13791 * tests/test-isnand-nolibm.c: factored most of its contents into
13792 new file tests/test-isnand.h.
13793 * tests/test-isnand.h: New file.
13794 * tests/test-isnand.c: New file.
13795 * MODULES.html.sh: Mention new module.
13797 2008-07-10 Ben Pfaff <blp@gnu.org>
13799 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
13800 * lib/isnand.h: Rename lib/isnand-nolibm.h.
13801 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
13802 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
13803 * modules/isnanf-nolibm: Update references to renamed files.
13804 * modules/isnand-nolibm: Likewise.
13805 * modules/isnanf-nolibm-tests: Likewise.
13806 * modules/isnand-nolibm-tests: Likewise.
13807 * lib/frexp.c: Likewise.
13808 * lib/isfinite.c: Likewise.
13809 * lib/signbitd.c: Likewise.
13810 * lib/signbitf.c: Likewise.
13811 * lib/vasnprintf.c: Likewise.
13812 * tests/test-ceilf1.c: Likewise.
13813 * tests/test-ceilf2.c: Likewise.
13814 * tests/test-floorf1.c: Likewise.
13815 * tests/test-floorf2.c: Likewise.
13816 * tests/test-frexp.c: Likewise.
13817 * tests/test-round1.c: Likewise.
13818 * tests/test-round2.c: Likewise.
13819 * tests/test-roundf1.c: Likewise.
13820 * tests/test-strtod.c: Likewise.
13821 * tests/test-trunc1.c: Likewise.
13822 * tests/test-trunc2.c: Likewise.
13823 * tests/test-truncf1.c: Likewise.
13824 * tests/test-truncf2.c: Likewise.
13825 * NEWS: Mention the renamed header files.
13827 2008-07-11 Jim Meyering <meyering@redhat.com>
13829 vc-list-files: make the last-resort awk code more portable
13830 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
13831 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
13832 does not support it.
13834 2008-07-10 Eric Blake <ebb9@byu.net>
13836 Work with tar's bootstrap.
13837 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
13838 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
13841 2008-07-09 Jim Meyering <meyering@redhat.com>
13843 posix-shell.m4: fix typo that made this test malfunction
13844 * m4/posix-shell.m4: Remove capitalization in variable name.
13846 2008-07-08 Bruno Haible <bruno@clisp.org>
13848 * m4/onceonly.m4: Update comments.
13849 Reported by Ben Pfaff <blp@cs.stanford.edu>.
13851 2008-07-04 Jim Meyering <meyering@redhat.com>
13853 * users.txt: Add vc-dwim.
13854 (bison, coreutils): Use the gitweb URL.
13856 2008-07-03 Jim Meyering <meyering@redhat.com>
13858 * users.txt: Add libffcall. From Sam Steingold.
13860 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
13862 getdate.y: do not ignore TZ with relative day, month or year offset
13863 * lib/getdate.y (get_date): Move the tz-handling block to follow the
13864 relative-date-handling, since otherwise, the latter would clobber the
13865 sole output (an updated Start value) of the tz-handling block.
13866 * tests/test-getdate.c: Tests for the fix
13868 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13870 Recognize 'foo_LIBRARIES += libgnu.a'.
13871 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
13872 makefile snippet has already specified an installation location,
13875 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
13877 getdate.y: factor out common actions
13878 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
13879 Use them in place of open-coded actions.
13881 2008-07-01 Simon Josefsson <simon@josefsson.org>
13883 Add self-test for getdate module.
13884 * modules/getdate-tests: New file.
13885 * tests/test-getdate.c: New file.
13887 2008-06-29 Bruno Haible <bruno@clisp.org>
13889 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
13891 Reported by Sylvain Beucler <beuc@beuc.net>.
13893 2008-06-29 Bruno Haible <bruno@clisp.org>
13895 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
13896 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
13898 2008-06-29 Bruno Haible <bruno@clisp.org>
13900 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
13902 Reported by Sylvain Beucler <beuc@beuc.net>.
13904 2008-06-26 Jim Meyering <meyering@redhat.com>
13906 make several modules depend on the "open" module
13907 This provides slightly increased consistency when opening-for-write
13908 the name of a non-directory spelled with a trailing slash.
13909 * modules/chdir-safer: Likewise.
13910 * modules/chown: Likewise.
13911 * modules/clean-temp: Likewise.
13912 * modules/copy-file: Likewise.
13913 * modules/fchdir: Likewise.
13914 * modules/fcntl-safer: Likewise.
13915 * modules/pipe: Likewise.
13916 * modules/utime: Likewise.
13917 Prompted by Eric Blake and Bruno Haible.
13919 2008-06-24 Andreas Schwab <schwab@suse.de>
13921 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
13922 literals can be used as initializers for global variables.
13924 2008-06-23 Eric Blake <ebb9@byu.net>
13926 Make gnulib-cache.m4 easier to diff.
13927 * gnulib-tool (func_import): Allow newlines when reading cached
13928 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
13930 2008-06-23 Bruno Haible <bruno@clisp.org>
13932 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
13933 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
13934 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
13935 m4/signalblocking.m4.
13936 (gl_PREREQ_SIGACTION): Don't invoke it.
13937 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
13938 gl_PREREQ_SIG_HANDLER_H.
13939 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13940 Don't check for sigaction here.
13942 2008-06-23 Bruno Haible <bruno@clisp.org>
13944 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
13945 (install_handlers): Don't set the SA_RESETHAND flag.
13947 2008-06-23 Bruno Haible <bruno@clisp.org>
13949 * m4/sigaction.m4: Comment fixes.
13950 * lib/signal.in.h: Likewise.
13952 2008-06-23 Eric Blake <ebb9@byu.net>
13955 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
13957 Avoid SA_ namespace.
13958 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
13959 Reported by Ralf Wildenhues.
13961 Avoid test failure due to SA_RESTORER.
13962 * tests/test-sigaction.c (SA_MASK): New macro.
13963 (main): Avoid failing due to extension flags being set.
13964 Reported by Jim Meyering.
13966 Revert use of sig-handler.h in sigprocmask.c.
13967 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
13968 it requires the existence of struct sigaction.
13969 * lib/sigprocmask.c (handler_t): Restore typedef.
13970 (rpl_signal, old_handlers): Use local type.
13972 2008-06-22 Bruno Haible <bruno@clisp.org>
13974 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
13976 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13978 2008-06-22 Bruno Haible <bruno@clisp.org>
13980 * doc/posix-functions/siginterrupt.texi: Move note.
13982 * lib/signal.in.h (SA_RESTART): New macro.
13983 * lib/sigaction.c: Update comment.
13985 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
13987 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
13988 (gl_PREREQ_SIGPROCMASK): Invoke it.
13989 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
13991 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
13993 * lib/sigprocmask.c: Update a comment.
13995 2008-06-21 Eric Blake <ebb9@byu.net>
13997 Use sigaction module rather than signal().
13998 * modules/c-stack (Depends-on): Add sigaction.
13999 * modules/fatal-signal (Depends-on): Likewise.
14000 * modules/nanosleep (Depends-on): Likewise.
14001 * modules/sigprocmask (Files): Add sig-handler.h.
14002 * modules/sigaction (Files): Likewise.
14003 * lib/sig-handler.h (get_handler): New file, suggested by Paul
14005 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
14006 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
14007 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
14008 (init_fatal_signals): Likewise.
14009 * lib/nanosleep.c (rpl_nanosleep): Likewise.
14010 (siginterrupt): Delete fallback.
14011 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
14013 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
14016 New module sigaction, for mingw.
14017 * modules/sigaction: New module...
14018 * modules/sigaction-tests: ...and its test.
14019 * m4/sigaction.m4: New file.
14020 * lib/sigaction.c: Likewise.
14021 * tests/test-sigaction.c: Likewise.
14022 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
14023 * modules/signal (Makefile.am): Likewise.
14024 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
14026 * doc/posix-headers/signal.texi (signal.h): Mention provided
14028 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
14029 that sigaction is preferable.
14030 * doc/posix-functions/sigaction.texi (sigaction): Mention new
14032 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14035 Improve robustness of sigprocmask by overriding signal.
14036 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
14038 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
14039 (SIGKILL, SIGSTOP): Provide fallbacks.
14040 (rpl_signal): Implement.
14041 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
14042 signal can be called inside handlers.
14044 Fix nanosleep module on mingw.
14045 * modules/nanosleep (Depends-on): Add sys_select.
14046 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
14048 Fix licensing of sigprocmask.
14049 * modules/raise (License): Relicense as LGPL.
14051 2008-06-21 Bruno Haible <bruno@clisp.org>
14053 * lib/propername.c (proper_name_utf8): Don't use the transliterated
14054 result if it contains question marks.
14055 Reported by Michael Geng <linux@michaelgeng.de>.
14057 2008-06-19 Bruno Haible <bruno@clisp.org>
14060 * doc/gnulib.texi: Include updated-stamp.texi.
14061 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
14062 (updated-stamp.texi): New rule.
14063 (gnulib.info): Depend on it.
14064 * doc/.gitignore: Add updated-stamp.texi.
14065 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
14067 2008-06-19 Bruno Haible <bruno@clisp.org>
14069 * doc/Makefile (gnulib.info): Update and simplify dependencies.
14070 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14072 2008-06-19 Eric Blake <ebb9@byu.net>
14074 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
14075 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
14076 Reported by Stepan Kasal.
14078 2008-06-18 Bruno Haible <bruno@clisp.org>
14080 * lib/fatal-signal.c (init_fatal_signals): Add comment.
14081 Reported by Eric Blake.
14083 2008-06-18 Eric Blake <ebb9@byu.net>
14085 Work around cygwin 1.5.25 strsignal bug.
14086 * tests/test-strsignal.c: Allow for const char *.
14087 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
14089 2008-06-18 Simon Josefsson <simon@josefsson.org>
14091 * users.txt: Update URL to article and add author/date
14094 2008-06-17 Bruno Haible <bruno@clisp.org>
14096 New macro gl_DISABLE_THREADS.
14097 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
14098 if the user did not pass --enable-threads or --disable-threads option.
14099 (gl_DISABLE_THREADS): New macro.
14100 Reported by Eric Blake <ebb9@byu.net>.
14102 2008-06-17 Bruno Haible <bruno@clisp.org>
14104 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
14105 when the macro ignores it.
14106 Based on a patch by Eric Blake <ebb9@byu.net>.
14108 2008-06-17 Bruno Haible <bruno@clisp.org>
14110 * modules/tls (License): Change to LGPLv2+.
14111 Reported by Eric Blake.
14113 2008-06-17 Eric Blake <ebb9@byu.net>
14115 Simplify c-stack prerequisites.
14116 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
14117 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
14118 no longer requires <ucontext.h> to exist. Optimize setrlimit
14120 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
14123 Move c-stack test into testsuite.
14124 * modules/c-stack-tests: New file.
14125 * lib/c-stack.c [DEBUG]: Move test program...
14126 * tests/test-c-stack.c: ...into this new file. Skip rather than
14127 fail test if sigaltstack is lacking.
14128 * tests/test-c-stack.sh: New driver file.
14130 2008-06-16 Eric Blake <ebb9@byu.net>
14132 Use raise module consistently.
14133 * modules/fatal-signal (Depends-on): Add raise.
14134 * modules/sigprocmask (Depends-on): Likewise.
14135 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
14136 * lib/sigprocmask.c (sigprocmask): Likewise.
14137 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14138 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
14140 Fix compliance bug in sigpending.
14141 * lib/sigprocmask.c (sigpending): Return pending array via
14142 parameter, not return value.
14144 2008-06-14 Eric Blake <ebb9@byu.net>
14146 Improve obstack-printf test code.
14147 * tests/test-obstack-printf.c (test_function): Fix comment, and
14148 simplify usage of obstack_* in macros. Add a test for coverage.
14149 Reported by Bruno Haible.
14151 2008-06-14 Bruno Haible <bruno@clisp.org>
14153 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
14154 array size as a constant, not as a const variable.
14155 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
14156 AC_USE_SYSTEM_EXTENSIONS.
14157 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14158 Test whether the obstack_printf function actually exists.
14159 * modules/obstack-printf (Depends-on): Add extensions.
14160 (Include): Remove obstack.h.
14161 * modules/obstack-printf-posix (Depends-on): Add extensions.
14162 (Include): Remove obstack.h.
14164 2008-06-13 Eric Blake <ebb9@byu.net>
14166 Add obstack-printf and obstack-printf-posix modules.
14167 * modules/obstack-printf: New file.
14168 * modules/obstack-printf-posix: Likewise.
14169 * MODULES.html.sh (Misc): Mention them.
14170 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14172 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14174 * modules/stdio (Makefile.am): Accomodate new modules.
14175 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14176 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
14178 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
14180 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
14181 (gl_REPLACE_OBSTACK_PRINTF): New macros
14182 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
14183 * tests/test-obstack-printf.c: New file.
14184 * modules/obstack-printf-tests: Likewise.
14185 * modules/obstack-printf-posix-tests: Likewise.
14187 2008-06-11 Bruno Haible <bruno@clisp.org>
14189 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
14190 * lib/open.c: Include errno.h.
14191 (open): Fail when attempting to write to a file that has a trailing
14193 * tests/test-open.c (main): Test against trailing slash bug.
14194 * doc/posix-functions/open.texi: Mention the trailing slash bug.
14196 2008-06-10 Bruno Haible <bruno@clisp.org>
14198 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
14199 for $? to work inside the trap command, with various /bin/sh-s.
14200 * tests/test-vc-list-files-cvs.sh: Likewise.
14202 2008-06-10 Bruno Haible <bruno@clisp.org>
14204 * lib/acl-internal.h: Don't include gettext.h here.
14205 * lib/set-mode-acl.c: Include gettext.h here.
14206 * lib/copy-acl.c: Likewise.
14208 2008-06-10 Bruno Haible <bruno@clisp.org>
14210 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
14211 * lib/wait-process.c (wait_subprocess): Likewise.
14212 * lib/execute.h (execute): Add termsigp argument.
14213 * lib/execute.c (execute): Likewise.
14214 * lib/csharpcomp.c (compile_csharp_using_pnet,
14215 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
14216 * lib/csharpexec.c (execute_csharp_using_pnet,
14217 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
14218 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
14219 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
14220 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
14221 is_jikes_present): Update.
14222 * lib/javaexec.c (execute_java_class): Update.
14223 * lib/javaversion.c (execute_and_read_line): Update.
14224 * NEWS: Document the changes.
14225 Reported by Eric Blake.
14227 2008-06-10 Eric Blake <ebb9@byu.net>
14229 Add missing include.
14230 * tests/test-strstr.c (includes): Add <signal.h>.
14231 * tests/test-strcasestr.c (includes): Likewise.
14232 * tests/test-memmem.c (includes): Likewise.
14234 2008-06-10 Bruno Haible <bruno@clisp.org>
14236 * lib/wait-process.c (wait_subprocess): Add an assertion.
14238 2008-06-10 Bruno Haible <bruno@clisp.org>
14240 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
14242 2008-06-10 Bruno Haible <bruno@clisp.org>
14244 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
14246 * tests/test-strcasestr.c (main): Likewise.
14247 * tests/test-strstr.c (main): Likewise.
14249 2008-06-09 Bruno Haible <bruno@clisp.org>
14251 Work around the Solaris 10 ACE ACLs ABI change.
14252 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
14253 declare if ACL_NO_TRIVIAL is present.
14254 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
14255 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
14256 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
14257 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
14258 define if ACL_NO_TRIVIAL is present.
14259 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
14260 and use the current ABI.
14261 (file_has_acl): Use same #if condition as elsewhere.
14262 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
14263 in use, and use the current ABI.
14264 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
14265 Reported by Jim Meyering.
14267 2008-06-09 Eric Blake <ebb9@byu.net>
14269 Work around environments that (stupidly) ignore SIGALRM.
14270 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
14271 before using alarm().
14272 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14273 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14274 Reported by Ian Beckwith <ianb@erislabs.net>.
14276 Produce autobuild blurb earlier in log.
14277 * modules/autobuild (configure.ac-early): Move AB_INIT here.
14279 2008-06-09 Jim Meyering <meyering@redhat.com>
14280 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14282 utimens.c: correct kernel bug work-around
14283 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
14284 failure, not success, and the kernel bug we're trying to work
14285 around affects not just the utimensat call, but also the fallback
14287 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
14289 [HAVE_FUTIMENS]: Use the same work-around, here.
14291 2008-06-09 Jim Meyering <meyering@redhat.com>
14293 add more guards around definition of ACE_-related code
14294 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
14295 ALLOW and ACE_OWNER are also defined.
14297 2008-06-08 Bruno Haible <bruno@clisp.org>
14299 * lib/acl-internal.h: Add me as co-author.
14300 * lib/file-has-acl.c: Likewise.
14301 * lib/set-mode-acl.c: Likewise.
14302 * lib/copy-acl.c: Likewise.
14304 2008-06-08 Bruno Haible <bruno@clisp.org>
14306 Add support for AIX ACLs.
14307 * lib/acl-internal.h (acl_nontrivial): New declaration.
14308 * lib/file-has-acl.c (acl_nontrivial): New function.
14309 (file_has_acl): Add implementation using AIX 4 ACL API.
14310 * lib/set-mode-acl.c (qset_acl): Likewise.
14311 * lib/copy-acl.c (qcopy_acl): Likewise.
14313 2008-06-08 Bruno Haible <bruno@clisp.org>
14315 Add support for HP-UX ACLs.
14316 * lib/acl-internal.h (acl_nontrivial): New declaration.
14317 * lib/file-has-acl.c (acl_nontrivial): New function.
14318 (file_has_acl): Add implementation using HP-UX 11 ACL API.
14319 * lib/set-mode-acl.c (qset_acl): Likewise.
14320 * lib/copy-acl.c (qcopy_acl): Likewise.
14322 2008-06-08 Bruno Haible <bruno@clisp.org>
14324 Add support for Cygwin ACLs.
14325 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
14326 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
14327 the chmod_or_fchmod call.
14328 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
14330 2008-06-08 Bruno Haible <bruno@clisp.org>
14332 Fix bug with setuid modes in Solaris 10+ code.
14333 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
14334 succeeded, when the mode contains some special bits.
14336 2008-06-08 Bruno Haible <bruno@clisp.org>
14338 Add support for Solaris 7..10 ACLs.
14339 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
14341 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
14343 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
14344 * lib/set-mode-acl.c (qset_acl): Likewise.
14345 * lib/copy-acl.c (qcopy_acl): Likewise.
14347 2008-06-08 Bruno Haible <bruno@clisp.org>
14349 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
14351 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
14352 (acl_access_nontrivial): Remove MacOS X case.
14353 (file_has_acl): Use acl_extended_nontrivial.
14354 * lib/copy-acl.c (qcopy_acl): Likewise.
14356 2008-06-08 Bruno Haible <bruno@clisp.org>
14358 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
14360 2008-06-08 Jim Meyering <meyering@redhat.com>
14362 * modules/acl (Maintainer): Add Bruno Haible.
14364 2008-06-07 Bruno Haible <bruno@clisp.org>
14366 Improve support for Tru64 ACLs.
14367 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
14370 2008-06-07 Bruno Haible <bruno@clisp.org>
14372 Add support for MacOS X ACLs.
14373 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
14374 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
14375 * lib/set-mode-acl.c (qset_acl): Likewise.
14376 * lib/copy-acl.c (qcopy_acl): Likewise.
14378 2008-06-07 Bruno Haible <bruno@clisp.org>
14380 Fix memory leak introduced on 2008-05-22.
14381 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
14384 2008-06-07 Bruno Haible <bruno@clisp.org>
14386 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
14387 to construct an empty ACL.
14389 2008-06-07 Bruno Haible <bruno@clisp.org>
14391 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
14393 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
14395 2008-06-07 Bruno Haible <bruno@clisp.org>
14397 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
14398 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
14400 2008-06-07 Bruno Haible <bruno@clisp.org>
14402 * doc/posix-functions/_setjmp.texi: Explain the use of this function
14403 regardless of POSIX.
14404 * doc/posix-functions/_longjmp.texi: Likewise.
14405 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
14406 SystemV platform in this case.
14408 2008-06-06 Eric Blake <ebb9@byu.net>
14410 Document abort() bugs.
14411 * doc/posix-functions/abort.texi (abort): Mention anomalies.
14413 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
14414 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
14416 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
14417 siglongjmp, but only as a macro.
14418 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
14420 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
14422 Tweak documentation to cover cygwin argz bugs.
14423 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
14424 argz bug fix; no code change needed since no cygwin releases
14425 occurred between the last fix and the bug being tested.
14426 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
14427 module and recently fixed cygwin bugs.
14428 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
14429 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
14430 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
14431 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
14432 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
14434 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
14435 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
14436 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
14437 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
14438 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
14439 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
14442 Avoid gcc warning on cygwin.
14443 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
14444 !ACL_NO_TRIVIAL]: Avoid unused variable.
14446 2008-06-05 Eric Blake <ebb9@byu.net>
14448 Be tolerant of UNKNOWN version in gnulib-tool test dir.
14449 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
14450 git-version-gen fails to come up with a version.
14451 Reported by Simon Josefsson.
14453 2008-06-05 Jim Meyering <meyering@redhat.com>
14454 Paul Eggert <eggert@cs.ucla.edu>
14456 utimens.c: work around a probable Linux kernel bug
14457 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
14458 appears to be a kernel bug that causes utimensat to return 280
14459 instead of 0, indicating success.
14461 2008-06-04 Bruno Haible <bruno@clisp.org>
14463 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
14466 2008-06-04 Bruno Haible <bruno@clisp.org>
14468 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
14469 * lib/file-has-acl.c (acl_access_nontrivial): New function.
14470 (file_has_acl): Use it. Save errno afterwards.
14471 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
14473 2008-06-03 Bruno Haible <bruno@clisp.org>
14475 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
14476 draft code. Simplify #ifs.
14477 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
14478 Put Solaris code after POSIX-draft code. Fix comments regarding
14479 Solaris 10, HP-UX. Mention Cygwin.
14480 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
14482 2008-06-03 Eric Blake <ebb9@byu.net>
14484 Provide fallback for older kernels.
14485 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
14486 Provide runtime fallback if kernel lacks support.
14487 Reported by Mike Frysinger.
14489 2008-06-02 Bruno Haible <bruno@clisp.org>
14491 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
14494 2008-06-02 Bruno Haible <bruno@clisp.org>
14496 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
14497 * lib/copy-acl.c (qcopy_acl): Update comment.
14499 2008-06-02 Bruno Haible <bruno@clisp.org>
14501 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
14504 2008-06-02 Bruno Haible <bruno@clisp.org>
14506 * tests/test-file-has-acl.sh: Use different code for Cygwin.
14507 * tests/test-set-mode-acl.sh: Likewise.
14508 * tests/test-copy-acl.sh: Likewise.
14509 * tests/test-copy-file.sh: Likewise.
14511 2008-06-02 Bruno Haible <bruno@clisp.org>
14513 * tests/test-file-has-acl.sh: Remove unused code.
14515 2008-06-01 Bruno Haible <bruno@clisp.org>
14517 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
14518 (copy_acl): Just a wrapper around qcopy_acl that emits the error
14520 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
14522 2008-06-01 Bruno Haible <bruno@clisp.org>
14524 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
14525 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
14526 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
14528 * modules/acl-tests (configure.ac): Remove tests now contained in
14531 2008-06-02 Jim Meyering <meyering@redhat.com>
14533 announce-gen: use a better key-server host name
14534 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
14535 it may be more consistently reliable. Suggested by Werner Koch
14536 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
14538 2008-06-01 Bruno Haible <bruno@clisp.org>
14540 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
14541 Reported by Voroskoi Andras <voroskoi@gmail.com>.
14543 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
14545 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
14547 2008-06-01 Bruno Haible <bruno@clisp.org>
14550 * tests/test-file-has-acl.sh: New file.
14551 * tests/test-file-has-acl.c: New file.
14552 * tests/test-set-mode-acl.sh: New file.
14553 * tests/test-set-mode-acl.c: New file.
14554 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
14555 * tests/test-copy-acl.c: New file.
14556 * modules/acl-tests: New file, based on modules/copy-file-tests.
14557 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
14558 (Depends-on): Add acl-tests.
14559 (configure.ac): Remove checks.
14560 (Makefile.am): Don't create test-sameacls program here any more.
14562 2008-06-01 Bruno Haible <bruno@clisp.org>
14564 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
14565 * tests/test-sameacls.c: Include progname.h.
14566 (main): Invoke set_program_name. Portability fixes for MacOS X,
14569 2008-06-01 Bruno Haible <bruno@clisp.org>
14571 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
14573 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
14575 2008-06-01 Bruno Haible <bruno@clisp.org>
14577 * modules/rpmatch (Depends-on): Add strdup.
14579 2008-06-01 Bruno Haible <bruno@clisp.org>
14581 * lib/pipe.c: Include unistd-safer.h.
14582 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
14583 * modules/pipe (Depends-on): Add unistd-safer.
14585 2008-05-30 Simon Josefsson <simon@josefsson.org>
14587 * modules/autobuild (configure.ac): Call AB_INIT.
14589 2008-05-30 Simon Josefsson <simon@josefsson.org>
14591 * tests/test-getaddrinfo.c: Don't print debug messages by default.
14592 Suggested by Bruno Haible <bruno@clisp.org>.
14594 2008-05-30 Simon Josefsson <simon@josefsson.org>
14596 * tests/test-base64.c: Cast size_t to unsigned long when invoking
14597 printf. Use %lu instead of %d. Reported by Bruno Haible
14600 2008-05-29 Eric Blake <ebb9@byu.net>
14602 Prefer new POSIX 200x interfaces over futimesat.
14603 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
14604 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
14606 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
14608 2008-05-28 Bruno Haible <bruno@clisp.org>
14610 * modules/stpcpy (License): Change to LGPLv2+.
14611 Requested by David Lutterkort <dlutter@redhat.com>.
14613 2008-05-27 Bruno Haible <bruno@clisp.org>
14615 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
14617 Reported by Jose E. Marchesi <jemarch@gnu.org>.
14619 2008-05-27 Bruno Haible <bruno@clisp.org>
14621 * modules/iconv_open (Link): New section, from module 'iconv'.
14622 * modules/striconv (Link): Likewise.
14623 * modules/striconveh (Link): Likewise.
14624 * modules/xstriconv (Link): Likewise.
14625 * modules/unicodeio (Link): Likewise.
14626 * modules/propername (Link): Likewise.
14627 Reported by Jim Meyering.
14629 2008-05-26 Jim Meyering <meyering@redhat.com>
14631 sha256: do not artificially restrict buffer length to be < 2^32
14632 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
14633 uint32_t to size_t.
14634 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
14637 avoid unaligned access errors, e.g., on sparc
14638 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
14639 direct access through a possibly-unaligned uint64* pointer.
14640 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
14641 direct access through a possibly-unaligned uint32* pointer.
14642 Prompted by this patch from Tom "spot" Callaway:
14643 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
14645 sha512.c: fix typo in comment
14646 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
14648 2008-05-25 Bruno Haible <bruno@clisp.org>
14650 * lib/set-mode-acl.c: Renamed from lib/acl.c.
14651 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
14652 (Makefile.am): Update lib_SOURCES.
14654 2008-05-25 Bruno Haible <bruno@clisp.org>
14656 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
14658 2008-05-25 Jim Meyering <meyering@redhat.com>
14660 useless-if-before-free: freed expr may have white-space differences
14661 * build-aux/useless-if-before-free: Recognize cases in which the
14662 freed expression differs from the tested one in embedded white
14663 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
14664 $1 was used, so we can't make any regexp shy. Improved tests now
14667 useless-if-before-free: accept white space in the expression.
14668 * build-aux/useless-if-before-free: For now, any white space
14669 in the expression must be identical in the free argument.
14671 useless-if-before-free: efficiency tweak
14672 * build-aux/useless-if-before-free: Make the expression-matching
14674 Make the *outer* regexp shy, not the expr-matching one.
14676 update code-in-comment to accept cast of free arg
14677 * build-aux/useless-if-before-free: Update regexp.
14679 2008-05-25 Bruno Haible <bruno@clisp.org>
14681 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
14682 * modules/copy-file-tests (Files, Makefile.am): Update.
14683 * tests/test-copy-file.c (func_test_copy): Update.
14685 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
14687 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
14689 2008-05-23 Bruno Haible <bruno@clisp.org>
14691 Improve support for ACLs on OSF/1.
14692 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
14693 Remove fallback for unknown flavors of ACLs.
14695 2008-05-22 Bruno Haible <bruno@clisp.org>
14697 Add support for ACLs on OSF/1.
14698 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
14700 (acl_free_text): New macro fallback.
14701 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
14703 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
14704 acl_free_text function. Require AC_C_INLINE.
14706 2008-05-22 Bruno Haible <bruno@clisp.org>
14708 Make copy_acl work on MacOS X 10.5.
14709 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
14710 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
14711 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
14712 If MODE_INSIDE_ACL, don't assume that every system has the same text
14713 representation for ACLs as FreeBSD.
14714 * lib/copy-acl.c (copy_acl): Add support for platforms with
14716 * lib/file-has-acl.c (file_has_acl): Likewise.
14717 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
14718 FreeBSD, MacOS X, or IRIX, respectively.
14720 2008-05-22 Bruno Haible <bruno@clisp.org>
14722 * lib/acl.h: Don't include <sys/acl.h>.
14723 (GETACLCNT): Move fallback to lib/acl-internal.h.
14724 * lib/acl-internal.h: Include <sys/acl.h> here.
14725 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
14727 2008-05-22 Bruno Haible <bruno@clisp.org>
14729 Split off copy_acl function to separate file.
14730 * lib/copy-acl.c: New file, extracted from lib/acl.c.
14731 * lib/acl.c (copy_acl): Moved function to separate file.
14732 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
14733 * modules/acl (Files): Add lib/copy-acl.c.
14734 (Makefiles.am): Augment lib_SOURCES.
14736 2008-05-22 Bruno Haible <bruno@clisp.org>
14738 * modules/copy-file-tests: New file.
14739 * tests/test-copy-file.sh: New file.
14740 * tests/test-copy-file.c: New file.
14741 * tests/test-copy-file-sameacls.c: New file.
14743 2008-05-22 Eric Blake <ebb9@byu.net>
14746 * tests/test-memcmp.c (main): Pass NULL indirectly.
14748 2008-05-21 Bruno Haible <bruno@clisp.org>
14750 Add reference doc about ACLs.
14751 * doc/acl-resources.txt: New file.
14752 * doc/acl-cygwin.txt: New file.
14754 2008-05-21 Bruno Haible <bruno@clisp.org>
14756 Avoid one more warning from gcc.
14757 * lib/vasnprintf.c (IF_LINT): Update comments.
14758 (VASNPRINTF): Use it also for the 'prefix' array initializer.
14760 2008-05-21 Jim Meyering <meyering@redhat.com>
14762 avoid a warning from gcc
14763 * lib/vasnprintf.c (IF_LINT): Define.
14764 (scale10_round_decimal_long_double):
14765 Use it to avoid a "may be used uninitialized" warning.
14766 (scale10_round_decimal_double): Likewise.
14768 2008-05-21 Simon Josefsson <simon@josefsson.org>
14770 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
14773 2008-05-20 Bruno Haible <bruno@clisp.org>
14775 * tests/test-memcmp.c (main): Test also the sign of the result. Test
14776 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
14778 2008-05-20 Simon Josefsson <simon@josefsson.org>
14780 * modules/memcmp-tests: New file.
14781 * tests/test-memcmp.c: New file.
14783 2008-05-19 Bruno Haible <bruno@clisp.org>
14785 * modules/propername (Notice, configure.ac): Put quoted "..." into
14787 * lib/propername.h: Update comments accordingly.
14788 Reported by Eric Blake.
14790 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
14792 * modules/getpass-gnu (Depends-on): Add fseeko.
14794 2008-05-19 Simon Josefsson <simon@josefsson.org>
14796 * modules/base64-tests: New file.
14798 2008-05-19 Bo Borgerson <gigabo@gmail.com>
14800 * lib/base64.c (base64_decode_ctx): If a decode context structure
14801 was passed in use it to ignore newlines. If a context structure
14802 was _not_ passed in, continue to treat newlines as garbage (this
14803 is the historical behavior). Formerly base64_decode.
14804 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
14805 takes a decode context structure.
14806 * lib/base64.h (base64_decode): Macro for four-argument calls.
14807 (base64_decode_alloc): Likewise.
14808 * lib/base64.c (base64_decode_ctx): If a decode context structure
14809 was passed in use it to ignore newlines. If a context structure
14810 was _not_ passed in, continue to treat newlines as garbage (this
14811 is the historical behavior). Formerly base64_decode.
14812 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
14813 takes a decode context structure.
14814 * lib/base64.h (base64_decode): Macro for four-argument calls.
14815 (base64_decode_alloc): Likewise.
14817 2008-05-19 Jim Meyering <meyering@redhat.com>
14819 avoid a warning from gcc
14820 * lib/trim.c (IF_LINT): Define.
14821 (trim2): Use it to avoid a "may be used uninitialized" warning.
14824 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
14826 2008-05-19 Bruno Haible <bruno@clisp.org>
14828 * doc/glibc-functions/getpass.texi: Document limits of other
14831 2008-05-19 Simon Josefsson <simon@josefsson.org>
14832 Bruno Haible <bruno@clisp.org>
14834 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
14836 2008-05-18 Bruno Haible <bruno@clisp.org>
14838 * modules/propername: New file, from GNU gettext.
14839 * lib/propername.h: New file, from GNU gettext.
14840 * lib/propername.c: New file, from GNU gettext.
14841 * MODULES.html.sh (Internationalization functions): Add propername.
14843 2008-05-16 Jim Meyering <meyering@redhat.com>
14844 Bruno Haible <bruno@clisp.org>
14846 Avoid some warnings from "gcc -Wshadow".
14847 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
14849 2008-05-15 Eric Blake <ebb9@byu.net>
14851 Extend previous patch to cygwin 1.7.0.
14852 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
14853 fast implementation in cygwin >= 1.7.0.
14854 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14855 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14857 2008-05-15 Bruno Haible <bruno@clisp.org>
14859 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
14860 implementation in glibc >= 2.9.
14861 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14862 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14864 2008-05-15 Bruno Haible <bruno@clisp.org>
14866 * MODULES.html.sh (Internationalization functions): Remove linebreak.
14867 (Unicode string functions): Add unilbrk/*.
14868 Reported by Karl Berry.
14870 2008-05-15 Eric Blake <ebb9@byu.net>
14872 Fix violation of <stdbool.h> replacement in regex.
14873 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
14874 * lib/regexec.c (re_search_internal): Likewise.
14875 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
14877 2008-05-15 Jim Meyering <meyering@redhat.com>
14879 avoid distracting test output when git or cvs is not found
14880 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
14881 * tests/test-vc-list-files-git.sh: Likewise.
14883 2008-05-15 Eric Blake <ebb9@byu.net>
14885 Glibc finally accepted the memmem speedup code, bugzilla #5514.
14886 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
14888 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14889 * doc/posix-functions/strstr.texi (strstr): Likewise.
14890 * lib/str-two-way.h (MAX): Sychronize with glibc.
14892 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
14894 * lib/regcomp.c (optimize_utf8): Add a note on why we test
14896 (calc_first): Initialize constraint field.
14897 (duplicate_node_closure): Use it instead of special casing ANCHORS.
14899 (duplicate_node): Merge constraint field for all node types.
14900 (calc_eclosure_iter): Look at constraint field for all node types.
14901 * lib/regex_internal.c (create_cd_newstate): Don't look at
14904 2008-05-14 Bruno Haible <bruno@clisp.org>
14906 Help GCC to do better code generation.
14907 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
14908 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14909 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
14910 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
14911 Declare with attribute 'malloc' if supported.
14913 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
14915 use "echo STR|wc -c" rather than unportable "expr length STR"
14916 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
14917 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
14919 2008-05-14 Jim Meyering <meyering@redhat.com>
14921 use dd ibs=$n count=1 ... rather than less-portable head -c$n
14922 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
14923 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
14924 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
14927 2008-05-14 Eric Blake <ebb9@byu.net>
14929 Avoid quadratic growth in gl_LIBSOURCES.
14930 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
14931 Suggested by Bruno Haible.
14934 * modules/xmemdup0-tests: New file.
14935 * tests/test-xmemdup0.c: Likewise.
14937 2008-05-13 Eric Blake <ebb9@byu.net>
14939 Split xmemdup0 into its own module.
14940 * modules/xmemdup0: New file.
14941 * lib/xmemdup0.h: Likewise.
14942 * lib/xmemdup0.c: Likewise.
14943 * MODULES.html.sh (Memory management functions): Add xmemdup0.
14944 * lib/xalloc.h (xmemdup0): Remove.
14945 * lib/xmalloc.c (xmemdup0): Likewise.
14947 2008-05-13 Eric Blake <ebb9@byu.net>
14948 Bruno Haible <bruno@clisp.org>
14950 Reduce number of forks required during autoconf.
14951 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
14952 and gl_LIBSOURCES_DIR.
14953 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
14954 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
14955 m4_syscmd per file.
14956 <m4_foreach_w>: Move...
14957 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
14959 2008-05-13 Eric Blake <ebb9@byu.net>
14961 * gnulib-tool: Fix various comment typos.
14963 2008-05-12 Bruno Haible <bruno@clisp.org>
14965 Tailor the linebreaking algorithm.
14966 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
14968 2008-05-12 Bruno Haible <bruno@clisp.org>
14970 Update to Unicode 5.0.0.
14971 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14972 LBP_JV, LBP_JT. Redistribute values.
14973 (unilbrk_table): Change size.
14974 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
14975 Unicode TR#14 rev. 22.
14976 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14977 LBP_JV, LBP_JT. Redistribute values.
14978 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
14979 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
14981 * lib/unilbrk/lbrkprop1.h: Regenerated.
14982 * lib/unilbrk/lbrkprop2.h: Regenerated.
14983 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
14984 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
14985 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14987 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14989 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
14991 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14992 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14993 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14994 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
14995 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
14996 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
14998 2008-05-11 Bruno Haible <bruno@clisp.org>
15000 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
15002 2008-05-11 Bruno Haible <bruno@clisp.org>
15004 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
15005 * modules/unilbrk/gen-lbrk: New file.
15007 2008-05-11 Bruno Haible <bruno@clisp.org>
15009 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
15010 * m4/sha512.m4 (gl_SHA512): Likewise.
15012 2008-05-11 Jim Meyering <meyering@redhat.com>
15014 New modules: crypto/sha256, crypto/sha512 (from coreutils)
15015 * modules/crypto/sha256: New file.
15016 * modules/crypto/sha512: Likewise.
15017 * lib/sha256.c: Likewise.
15018 * lib/sha256.h: Likewise.
15019 * lib/sha512.c: Likewise.
15020 * lib/sha512.h: Likewise.
15021 * lib/u64.h: Likewise.
15022 * m4/sha256.m4: Likewise.
15023 * m4/sha512.m4: Likewise.
15024 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
15026 2008-05-10 Bruno Haible <bruno@clisp.org>
15028 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
15029 (Input/Output <stdio.h>): Add xprintf.
15030 (Signal handling <signal.h>): Add strsignal.
15031 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
15032 (Core language properties): Add func.
15033 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
15034 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
15036 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
15037 (Input/output): New section.
15038 (File system functions): Add openat-die, stat-macros.
15039 (Networking functions): Add sockets.
15040 (Unicode string functions): Add unictype/*.
15041 (Support for building libraries and executables): Add gperf.
15042 (Support for building documentation): Add agpl-3.0.
15043 (Misc): Add nocrash.
15045 2008-05-10 Bruno Haible <bruno@clisp.org>
15047 * modules/unictype/gen-ctype: New file.
15049 2008-05-10 Jim Meyering <meyering@redhat.com>
15051 Make chdir-safer.c more efficient on a system with no symlinks.
15052 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
15053 also if ELOOP is zero. Suggested by Bruno Haible.
15055 Make chdir-safer.c slightly safer.
15056 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
15057 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
15059 Avoid compile failure on systems without ELOOP (like mingw).
15060 * lib/chdir-safer.c (ELOOP): Define if not already defined.
15061 Reported by Bruno Haible.
15063 2008-05-10 Bruno Haible <bruno@clisp.org>
15065 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
15066 (is_utf8_encoding): Use a case-insensitive comparison.
15067 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
15070 2008-05-10 Bruno Haible <bruno@clisp.org>
15072 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
15073 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
15074 * lib/unilbrk/ulc-common.h (iconv_string_length,
15075 iconv_string_keeping_offsets): Remove declarations.
15076 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
15077 Don't include <iconv.h>, streq.h, xsize.h.
15078 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
15080 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
15081 <iconv.h>, streq.h, xsize.h.
15082 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
15084 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
15085 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
15086 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
15087 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
15089 2008-05-10 Bruno Haible <bruno@clisp.org>
15091 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
15092 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
15094 * modules/unilbrk/u32-width-linebreaks-tests: New file.
15095 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
15097 * modules/unilbrk/u16-width-linebreaks-tests: New file.
15098 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
15100 * modules/unilbrk/u8-width-linebreaks-tests: New file.
15101 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
15103 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
15104 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
15106 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
15107 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
15109 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
15110 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
15112 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
15113 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
15115 2008-05-10 Bruno Haible <bruno@clisp.org>
15117 Split up 'linebreak' module.
15118 * lib/unilbrk.h: New file, based on lib/linebreak.h.
15119 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
15120 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
15122 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
15123 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
15124 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
15126 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
15128 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
15130 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
15131 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
15132 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
15134 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
15136 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
15138 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
15140 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
15142 * modules/unilbrk/base: New file.
15143 * modules/unilbrk/tables: New file.
15144 * modules/unilbrk/u8-possible-linebreaks: New file.
15145 * modules/unilbrk/u16-possible-linebreaks: New file.
15146 * modules/unilbrk/u32-possible-linebreaks: New file.
15147 * modules/unilbrk/ulc-common: New file.
15148 * modules/unilbrk/ulc-possible-linebreaks: New file.
15149 * modules/unilbrk/u8-width-linebreaks: New file.
15150 * modules/unilbrk/u16-width-linebreaks: New file.
15151 * modules/unilbrk/u32-width-linebreaks: New file.
15152 * modules/unilbrk/ulc-width-linebreaks: New file.
15153 * lib/linebreak.h: Remove file.
15154 * lib/linebreak.c: Remove file.
15155 * m4/linebreak.m4: Remove file.
15156 * modules/linebreak: Remove file.
15157 * NEWS: Mention the changes.
15159 2008-05-09 Eric Blake <ebb9@byu.net>
15162 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
15164 * lib/xmalloc.c (xmemdup0): New C implementation.
15166 2008-05-08 Bruno Haible <bruno@clisp.org>
15168 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
15170 2008-05-07 Eric Blake <ebb9@byu.net>
15172 Support cross-compilation of <wctype.h>.
15173 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
15176 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
15178 * build-aux/vc-list-files: Add support for bzr.
15180 2008-05-03 Jim Meyering <meyering@redhat.com>
15182 avoid failed assertion with tight malloc
15183 * tests/test-getndelim2.c: Correct an off-by-one assertion.
15185 2008-05-03 Simon Josefsson <simon@josefsson.org>
15187 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
15188 are needed from arpa/inet.h.
15189 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
15190 Reported by Bruno Haible.
15192 2008-05-02 Jim Meyering <meyering@redhat.com>
15194 avoid compilation error on FreeBSD 6
15195 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
15197 2008-05-01 Jim Meyering <meyering@redhat.com>
15199 useless-if-before-free: correct --help's exit status description
15200 * build-aux/useless-if-before-free (usage): Like grep, exit 0
15201 for one or more matches, etc. Reported by Bruno Haible.
15203 vc-list-files: make the stand-alone gnulib test work
15204 * modules/vc-list-files-tests (configure.ac):
15205 Define and AC_SUBST abs_aux_dir.
15206 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
15207 $(abs_top_srcdir) to each script and having each of them
15208 duplicate the work of setting PATH, set PATH here, using
15209 the new variable, abs_aux_dir instead.
15210 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
15211 * tests/test-vc-list-files-git.sh: Likewise.
15212 Reported by Bruno Haible.
15214 2008-05-01 Bruno Haible <bruno@clisp.org>
15216 * lib/getndelim2.c (getndelim2): Fix newsize computation during
15217 reallocation. Rename 'done' to 'found_delimiter'.
15219 2008-05-01 Jim Meyering <meyering@redhat.com>
15221 vc-list-files: accommodate /bin/sh like the one from Solaris 10
15222 * build-aux/vc-list-files: Use `...`, not $(...).
15224 2008-04-30 Jim Meyering <meyering@redhat.com>
15226 add tests for vc-list-files
15227 * modules/vc-list-files-tests: New module.
15228 * tests/test-vc-list-files-cvs.sh: New file.
15229 * tests/test-vc-list-files-git.sh: New file.
15231 avoid a warning from gcc
15232 * lib/getndelim2.c (IF_LINT): Define.
15233 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
15235 vc-list-files: work properly with build-aux/cvsu, too
15236 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
15237 to all cvs-based clauses.
15239 vc-list-files: work properly in the CVS+awk case, too
15240 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
15242 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
15243 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
15244 take more than one file argument, so . Add quotes, just in case $dir
15245 ever contains a shell meta-character. Prompted by Soren Hansen in
15246 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
15248 2008-04-29 Eric Blake <ebb9@byu.net>
15250 Optimize getndelim2 to use block operations when possible.
15251 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
15252 freadseek, and memchr2.
15253 * lib/getndelim2.c (getndelim2): Use them for block reads.
15255 2008-04-29 Bruno Haible <bruno@clisp.org>
15257 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
15258 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15259 * modules/inet_ntop (Depends-on): Add extensions.
15260 * modules/inet_pton (Depends-on): Likewise.
15261 Reported by Simon Josefsson.
15263 2008-04-29 Jim Meyering <meyering@redhat.com>
15265 When the is more than one match in a block, match all of them.
15266 * build-aux/useless-if-before-free: Iterate through each block
15267 until there are no more matches.
15269 Fix broken useless-if-before-free script.
15270 * build-aux/useless-if-before-free: Fix typo: missing "?" after
15271 the expression to match cast of argument to free-like function.
15273 2008-04-29 Eric Blake <ebb9@byu.net>
15276 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
15278 2008-04-29 Jim Meyering <meyering@redhat.com>
15280 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
15281 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
15282 by gnulib to exist and to declare e.g., inet_ntop.
15283 Don't include "inet_ntop.h", now removed.
15285 * m4/arpa_inet_h.m4: Remove trailing blanks.
15287 2008-04-29 Eric Blake <ebb9@byu.net>
15289 Silence valgrind on safe reads beyond potential array bounds.
15290 * lib/rawmemchr.valgrind: New file.
15291 * lib/strchrnul.valgrind: Likewise.
15292 * modules/rawmemchr (Files): Distribute new file.
15293 * modules/strchrnul (Files): Likewise.
15294 Suggested by Bruno Haible.
15296 2008-04-29 Bruno Haible <bruno@clisp.org>
15298 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
15299 (inet_ntop, inet_pton): Change portability warning's wording.
15300 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
15301 Invoke gl_CHECK_NEXT_HEADERS.
15302 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
15303 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
15305 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15306 * modules/arpa_inet (Description): No longer only for systems that
15308 (Depends-on): Add include_next.
15309 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
15312 2008-04-29 Jim Meyering <meyering@redhat.com>
15314 * modules/mkdir (License): Re-license as LGPLv2+.
15316 2008-04-29 Bruno Haible <bruno@clisp.org>
15318 * modules/rawmemchr (Maintainer): Set to Eric.
15319 * modules/strchrnul (Maintainer): Likewise.
15321 2008-04-29 Simon Josefsson <simon@josefsson.org>
15323 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
15324 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
15326 * modules/arpa_inet (arpa/inet.h): Use them.
15328 2008-04-28 Eric Blake <ebb9@byu.net>
15331 * modules/getndelim2-tests: New file.
15332 * tests/test-getndelim2.c: Likewise.
15333 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
15335 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
15337 * MODULES.html.sh: Document new module.
15339 2008-04-20 Bruno Haible <bruno@clisp.org>
15341 * lib/c-stack.c (die): Use raise.
15342 * modules/c-stack (Depends-on): Add raise.
15344 2008-04-28 Bruno Haible <bruno@clisp.org>
15346 Expect rpmatch to be declared.
15347 * lib/yesno.c (rpmatch): Remove declaration.
15350 * lib/stdlib.in.h (rpmatch): New declaration.
15351 * lib/rpmatch.c: Include <stdlib.h> first.
15352 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
15353 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
15354 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
15356 * modules/rpmatch (Depends-on): Add stdlib, extensions.
15357 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15358 (Include): Set to <stdlib.h>.
15359 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
15361 * NEWS: Document the change.
15363 2008-04-28 Bruno Haible <bruno@clisp.org>
15365 Change rpmatch to use nl_langinfo when appropriate.
15366 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
15368 (localized_pattern): New function/macro.
15369 (try): Remove match, nomatch arguments. Copy the pattern into safe
15370 memory before caching it.
15371 (rpmatch): Use localized_pattern. Add translator comments.
15372 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
15373 Suggested by Eric Blake.
15374 * modules/rpmatch (Depends-on): Add stdbool.
15376 2008-04-28 Eric Blake <ebb9@byu.net>
15378 Add rawmemchr module, matching glibc.
15379 * modules/string (Makefile.am): New indicator.
15380 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
15381 * lib/string.in.h (rawmemchr): Declare when appropriate.
15382 * modules/rawmemchr: New file.
15383 * m4/rawmemchr.m4: Likewise.
15384 * lib/rawmemchr.c: Likewise.
15385 * modules/rawmemchr-tests: Likewise.
15386 * tests/test-rawmemchr.c: Likewise.
15387 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
15389 * modules/strchrnul (Depends-on): Add rawmemchr.
15390 * lib/strchrnul.c (strchrnul): Optimize a corner case.
15392 Whitespace cleanup.
15393 * tests/test-strchrnul.c: Reindent.
15394 * lib/strchrnul.c: Likewise.
15396 Optimize and test strchrnul.
15397 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
15398 * modules/strchrnul-tests: New file.
15399 * tests/test-strchrnul.c: Likewise.
15401 Remove intprops dependency.
15402 * modules/memchr (Depends-on): Remove intprops.
15403 * modules/memrchr (Depends-on): Likewise.
15404 * modules/memchr2 (Depends-on): Likewise.
15405 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
15406 * lib/memrchr.c (__memrchr): Likewise.
15407 * lib/memrchr2.c (memchr2): Likewise.
15408 Reported by Simon Josefsson.
15410 2008-04-28 Simon Josefsson <simon@josefsson.org>
15412 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
15413 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15415 2008-04-28 Simon Josefsson <simon@josefsson.org>
15417 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
15419 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
15421 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
15423 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
15425 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
15427 * m4/inet_pton.m4: Don't check for header files.
15429 * m4/inet_ntop.m4: Don't check for header files.
15431 2008-04-28 Simon Josefsson <simon@josefsson.org>
15433 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
15434 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
15435 trigger for cygwin).
15436 Reported by Bruno Haible <bruno@clisp.org>.
15438 2008-04-28 Bruno Haible <bruno@clisp.org>
15440 * doc/posix-functions/strdup.texi: Mention mingw problem.
15442 2008-04-27 Bruno Haible <bruno@clisp.org>
15444 * modules/stat-time-tests (Depends-on): Add sleep.
15445 * tests/test-stat-time.c (force_unlink): New function.
15447 (test_mtime): Remove the ctime related tests.
15448 (test_ctime): New function, containing the ctime related tests.
15449 (main): Call test_ctime, except on native Windows platforms.
15451 2008-04-27 Bruno Haible <bruno@clisp.org>
15453 * lib/rpmatch.c (rpmatch): Add some comments.
15454 Reported by James Youngman <jay@gnu.org>.
15456 2008-04-27 Bruno Haible <bruno@clisp.org>
15458 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
15461 2008-04-27 Bruno Haible <bruno@clisp.org>
15463 Make test-yesno.sh work on mingw.
15464 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
15465 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
15466 (main): Set stdin to binary mode.
15467 * modules/yesno-tests (Depends-on): Add binary-io.
15469 2008-04-27 Bruno Haible <bruno@clisp.org>
15471 Fix 'isfinite' on x86, x86_64, ia64 platforms.
15472 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
15473 argument that lie outside the IEEE 854 domain.
15474 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
15475 (gl_ISFINITE): Use it.
15476 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
15478 2008-04-27 Bruno Haible <bruno@clisp.org>
15480 Allow local renaming in config.h.
15481 * lib/memrchr.c (memrchr): Don't undefine outside libc.
15483 2008-04-27 Bruno Haible <bruno@clisp.org>
15485 * lib/memchr.c (__memchr): Change type of 'i'.
15486 * lib/memchr2.c (memchr2): Likewise.
15488 2008-04-26 Eric Blake <ebb9@byu.net>
15489 and Bruno Haible <bruno@clisp.org>
15491 Optimize and test memrchr.
15492 * modules/memrchr (Depends-on): Add intprops.
15493 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
15494 * modules/memrchr-tests: New file.
15495 * tests/test-memrchr.c: New file.
15497 2008-04-26 Bruno Haible <bruno@clisp.org>
15499 Add tentative support for DragonFly BSD.
15500 * lib/stdio-impl.h: Add macros for DragonFly BSD.
15501 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
15503 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
15504 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
15505 * lib/fpurge.c (fpurge): Likewise.
15506 * lib/freadable.c (freaadable): Likewise.
15507 * lib/freadahead.c (freadahead): Likewise.
15508 * lib/freading.c (freading): Likewise.
15509 * lib/freadptr.c (freadptr): Likewise.
15510 * lib/freadseek.c (freadptrinc): Likewise.
15511 * lib/fseeko.c (fseeko): Likewise.
15512 * lib/fseterr.c (fseterr): Likewise.
15513 * lib/fwritable.c (fwritable): Likewise.
15514 * lib/fwriting.c (fwriting): Likewise.
15516 2008-04-26 Bruno Haible <bruno@clisp.org>
15518 * lib/stdio-impl.h: New file.
15519 * lib/fbufmode.c: Include stdio-impl.h.
15520 (fbufmode): Use fp_, remove redundant #defines.
15521 * lib/fflush.c: Include stdio-impl.h.
15522 (clear_ungetc_buffer): Remove redundant #defines.
15523 * lib/fpurge.c: Include stdio-impl.h.
15524 (fpurge): Remove redundant #defines.
15525 * lib/freadable.c: Include stdio-impl.h.
15526 (freadable): Remove redundant #defines.
15527 * lib/freadahead.c: Include stdio-impl.h.
15528 (freadahead): Remove redundant #defines.
15529 * lib/freading.c: Include stdio-impl.h.
15530 (freading): Remove redundant #defines.
15531 * lib/freadptr.c: Include stdio-impl.h.
15532 (freadptr): Remove redundant #defines.
15533 * lib/freadseek.c: Include stdio-impl.h.
15534 (freadptrinc): Remove redundant #defines.
15535 * lib/fseeko.c: Include stdio-impl.h.
15536 (rpl_fseeko): Remove redundant #defines.
15537 * lib/fseterr.c: Include stdio-impl.h.
15538 (fseterr): Remove redundant #defines.
15539 * lib/fwritable.c: Include stdio-impl.h.
15540 (fwritable: Remove redundant #defines.
15541 * lib/fwriting.c: Include stdio-impl.h.
15542 (fwriting): Remove redundant #defines.
15543 * modules/fbufmode (Files): Add lib/stdio-impl.h.
15544 * modules/fflush (Files): Likewise.
15545 * modules/fpurge (Files): Likewise.
15546 * modules/freadable (Files): Likewise.
15547 * modules/freadahead (Files): Likewise.
15548 * modules/freading (Files): Likewise.
15549 * modules/freadptr (Files): Likewise.
15550 * modules/freadseek (Files): Likewise.
15551 * modules/fseeko (Files): Likewise.
15552 * modules/fseterr (Files): Likewise.
15553 * modules/fwritable (Files): Likewise.
15554 * modules/fwriting (Files): Likewise.
15556 2008-04-26 Bruno Haible <bruno@clisp.org>
15558 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
15559 restore_seek_optimization, update_fpos_cache): New functions, extracted
15561 (rpl_fflush): Use them.
15562 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
15563 (gl_REPLACE_FFLUSH): Use it.
15565 2008-04-26 Bruno Haible <bruno@clisp.org>
15567 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
15569 * tests/test-xstrtoimax.sh: Likewise.
15570 * tests/test-xstrtoumax.sh: Likewise.
15571 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15573 2008-04-26 Bruno Haible <bruno@clisp.org>
15575 * modules/memchr-tests: New file.
15576 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
15578 2008-04-26 Eric Blake <ebb9@byu.net>
15579 Bruno Haible <bruno@clisp.org>
15581 * lib/memchr.c: Include intprops.h.
15582 (__memchr): Optimize parallel detection of matching bytes. Rename local
15583 variables. Add explanatory comments.
15585 2008-04-26 Bruno Haible <bruno@clisp.org>
15587 Fix module 'memchr', broken since 2000-10-28.
15588 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
15590 2008-04-26 Bruno Haible <bruno@clisp.org>
15592 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
15595 2008-04-25 Eric Blake <ebb9@byu.net>
15597 Use native fstatat on cygwin 1.7.0.
15598 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
15601 2008-04-23 Eric Blake <ebb9@byu.net>
15603 Improve memchr2 performance.
15604 * lib/memchr2.c (memchr2): Further optimize parallel detection of
15606 * modules/memchr2 (Depends-on): Use intprops.h.
15608 2008-04-23 Simon Josefsson <simon@josefsson.org>
15610 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
15611 an inline function instead of a CPP macro. Patch by Ben Pfaff
15612 <blp@cs.stanford.edu>.
15614 2008-04-23 Simon Josefsson <simon@josefsson.org>
15616 * lib/arpa_inet.in.h: New file.
15618 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
15619 (Makefile.am): Sed in substitute header file.
15621 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
15622 gl_ARPA_INET_MODULE_INDICATOR. Use them.
15624 * modules/inet_ntop (configure.ac): Use
15625 gl_ARPA_INET_MODULE_INDICATOR.
15627 * modules/inet_pton (configure.ac): Use
15628 gl_ARPA_INET_MODULE_INDICATOR.
15630 2008-04-22 Jim Meyering <meyering@redhat.com>
15632 * modules/verify (License): Re-license as LGPLv2+.
15634 2008-04-22 Simon Josefsson <simon@josefsson.org>
15636 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
15637 parameter to void* as per POSIX standard (MinGW uses char*).
15639 2008-04-21 Bruno Haible <bruno@clisp.org>
15641 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15642 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
15643 Define to replacements if REPLACE_ISWCNTRL is 1.
15644 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
15645 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
15646 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
15647 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
15649 * doc/posix-functions/iswalpha.texi: Likewise.
15650 * doc/posix-functions/iswblank.texi: Likewise.
15651 * doc/posix-functions/iswcntrl.texi: Likewise.
15652 * doc/posix-functions/iswdigit.texi: Likewise.
15653 * doc/posix-functions/iswgraph.texi: Likewise.
15654 * doc/posix-functions/iswlower.texi: Likewise.
15655 * doc/posix-functions/iswprint.texi: Likewise.
15656 * doc/posix-functions/iswpunct.texi: Likewise.
15657 * doc/posix-functions/iswspace.texi: Likewise.
15658 * doc/posix-functions/iswupper.texi: Likewise.
15659 * doc/posix-functions/iswxdigit.texi: Likewise.
15660 Reported by Alain Guibert.
15662 2008-04-21 Bruno Haible <bruno@clisp.org>
15664 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
15665 Patch by Alain Guibert.
15667 2008-04-21 Bruno Haible <bruno@clisp.org>
15669 Fix test failures on mingw.
15670 * tests/test-xstrtol.c (print_no_progname): New function.
15671 (main): Install it in error_print_progname hook.
15672 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
15673 * tests/test-xstrtoimax.sh: Likewise.
15674 * tests/test-xstrtoumax.sh: Likewise.
15676 2008-04-21 Bruno Haible <bruno@clisp.org>
15678 Fix test failure on mingw.
15679 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
15681 2008-04-21 Bruno Haible <bruno@clisp.org>
15683 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
15684 Actually assign a value.
15686 2008-04-20 Bruno Haible <bruno@clisp.org>
15688 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
15690 * lib/canonicalize.c (canonicalize_file_name): Elide if the
15691 'canonicalize-lgpl' module is also used.
15692 * lib/canonicalize-lgpl.c: Undo last change.
15693 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
15695 2008-04-20 Bruno Haible <bruno@clisp.org>
15697 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
15698 config.h. Provide _mkdir based fallback for mingw.
15699 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
15700 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
15701 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
15702 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
15703 rather than defining mkdir in config.h.
15704 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
15705 (gl_SYS_STAT_H_DEFAULTS): New macro.
15706 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
15707 HAVE_IO_H any more.
15708 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
15709 HAVE_DECL_MKDIR and HAVE_IO_H.
15711 2008-04-20 Bruno Haible <bruno@clisp.org>
15713 * lib/isapipe.c: Port to native Windows platforms.
15715 2008-04-20 Bruno Haible <bruno@clisp.org>
15717 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
15719 2008-04-21 Eric Blake <ebb9@byu.net>
15721 Work around preprocessors that don't handle UINTMAX_MAX.
15722 * lib/memchr2.c (memchr2): Avoid embedded #if.
15723 Reported by Alain Guibert, fix suggested by Bruno Haible.
15725 2008-04-21 Simon Josefsson <simon@josefsson.org>
15727 * doc/posix-functions/strftime.texi (strftime): Explain better
15728 Windows incompatibility. Suggested by Micah Cowan
15729 <micah@cowan.name>.
15731 2008-04-20 Bruno Haible <bruno@clisp.org>
15733 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
15736 2008-04-20 Bruno Haible <bruno@clisp.org>
15738 Fix test failure on platforms with non-GNU iconv.
15739 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
15740 (U_TO_U8): Use it, rather than u16_to_u8.
15741 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
15742 units at the end of the input string.
15743 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
15745 2008-04-20 Bruno Haible <bruno@clisp.org>
15747 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
15748 when the resulting length is 0.
15749 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15751 2008-04-20 Bruno Haible <bruno@clisp.org>
15753 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
15755 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
15757 2008-04-20 Bruno Haible <bruno@clisp.org>
15759 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
15760 * modules/tsearch-tests (configure.ac): Test for initstate function.
15762 2008-04-20 Bruno Haible <bruno@clisp.org>
15764 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
15765 for nlink_t if missing.
15766 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
15768 2008-04-19 Bruno Haible <bruno@clisp.org>
15770 Work around snprintf bug on Linux libc5.
15771 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
15772 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15774 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15775 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
15777 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15778 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
15779 * modules/snprintf (Files): Add m4/printf.m4.
15780 * modules/vsnprintf (Files): Likewise.
15781 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
15782 * doc/posix-functions/vsnprintf.texi: Likewise.
15784 2008-04-19 Bruno Haible <bruno@clisp.org>
15786 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
15787 from 0.0058 to less than 10^-7.
15789 2008-04-19 Bruno Haible <bruno@clisp.org>
15791 Fix rounding when a precision is given.
15792 * lib/vasnprintf.c (is_borderline): New function.
15793 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
15795 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
15797 * tests/test-vasprintf-posix.c (test_function): Likewise.
15798 * tests/test-snprintf-posix.h (test_function): Likewise.
15799 * tests/test-sprintf-posix.h (test_function): Likewise.
15800 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
15801 * tests/test-printf-posix.h (test_function): Likewise.
15802 * tests/test-printf-posix.output: Update.
15803 Reported by John Darrington <john@darrington.wattle.id.au> via
15804 Ben Pfaff <blp@cs.stanford.edu>.
15806 2008-04-18 Simon Josefsson <simon@josefsson.org>
15808 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
15809 Suggested by Bruno Haible <bruno@clisp.org>.
15811 2008-04-17 Bruno Haible <bruno@clisp.org>
15813 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
15814 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
15816 Patch by Bruce Merry <bmerry@gmail.com>.
15818 2008-04-17 Simon Josefsson <simon@josefsson.org>
15820 * doc/posix-functions/strftime.texi (strftime): Mention that %e
15821 doesn't work under Windows.
15823 2008-04-16 Bruno Haible <bruno@clisp.org>
15825 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
15827 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
15828 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
15829 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
15830 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
15831 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
15832 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
15833 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
15835 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
15836 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
15837 Northern Sotho, Uighur.
15839 2008-04-16 Bruno Haible <bruno@clisp.org>
15841 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
15842 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
15843 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
15844 Reported by Daniel Bergström <daniel@octocode.com>.
15846 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
15847 Bruno Haible <bruno@clisp.org>
15849 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
15851 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
15852 New functions, mostly extracted from gl_locale_name_default.
15853 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
15855 2008-04-16 Eric Blake <ebb9@byu.net>
15857 Adjust strtod detection to catch glibc 2.7 bug.
15858 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
15859 Reported by John Gatewood Ham.
15861 2008-04-16 Bruno Haible <bruno@clisp.org>
15863 Add tentative support for Linux libc5.
15864 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
15865 * lib/fpurge.c (fpurge): Likewise.
15866 * lib/freadable.c (freadable): Likewise.
15867 * lib/freadahead.c (freadahead): Likewise.
15868 * lib/freading.c (freading): Likewise.
15869 * lib/freadptr.c (freadptr): Likewise.
15870 * lib/freadseek.c (freadptrinc): Likewise.
15871 * lib/fseeko.c (rpl_fseeko): Likewise.
15872 * lib/fseterr.c (fseterr): Likewise.
15873 * lib/fwritable.c (fwritable): Likewise.
15874 * lib/fwriting.c (fwriting): Likewise.
15875 Reported by Alain Guibert <alguibert+bts@free.fr>.
15877 2008-04-15 Bruno Haible <bruno@clisp.org>
15879 * modules/mathl (configure.ac): Define module indicator.
15881 2008-04-15 Bruno Haible <bruno@clisp.org>
15883 * lib/logl.c (logl): Remove unused variables.
15885 2008-04-15 Bruno Haible <bruno@clisp.org>
15887 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
15890 2008-04-15 Bruno Haible <bruno@clisp.org>
15892 * lib/trim.c (trim2): Fix argument of isspace() macro.
15894 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
15896 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
15898 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
15900 2008-04-14 Bruno Haible <bruno@clisp.org>
15902 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
15903 AC_LANG_PROGRAM argument.
15904 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
15905 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
15906 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15907 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15908 * m4/math_h.m4 (gl_MATH_H): Likewise.
15909 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15910 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15911 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
15912 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
15913 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15914 * m4/regex.m4 (gl_REGEX): Likewise.
15915 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
15916 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
15917 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15918 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
15919 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15920 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15921 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15922 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15924 2008-04-14 Jim Meyering <meyering@redhat.com>
15926 test-strtod: fix typos: s/abs/fabs/
15927 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
15929 2008-04-13 Bruno Haible <bruno@clisp.org>
15931 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
15932 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
15933 module is also used and while not building the reloc-wrapper.
15935 2008-04-13 Bruno Haible <bruno@clisp.org>
15937 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
15939 2008-04-13 Bruno Haible <bruno@clisp.org>
15941 Fix AIX compilation failure introduced on 2008-04-02.
15942 * tests/test-frexp.c (exp): Undefine before redefining.
15943 * tests/test-frexpl.c (exp): Likewise.
15945 2008-04-13 Bruno Haible <bruno@clisp.org>
15947 Work around a HP-UX stdio bug.
15948 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
15949 * tests/test-ftello.c (main): Likewise.
15950 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
15951 * doc/posix-functions/ftello.texi: Likewise.
15953 2008-04-13 Bruno Haible <bruno@clisp.org>
15955 Make test-signbit pass on HP-UX/hppa.
15956 * tests/test-signbit.c (minus_zerol): New variable.
15957 (test_signbitl): Use it.
15959 2008-04-13 Bruno Haible <bruno@clisp.org>
15961 Make truncl work on OSF/1 4.0.
15962 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
15963 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15964 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15965 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
15967 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
15969 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
15971 2008-04-13 Bruno Haible <bruno@clisp.org>
15973 * lib/unictype.h: Remove trailing comma from enumeration definitions.
15975 2008-04-13 Bruno Haible <bruno@clisp.org>
15977 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
15978 expression, so as to avoid HP-UX 11 cc compiler bug.
15980 2008-04-13 Bruno Haible <bruno@clisp.org>
15982 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
15984 2008-04-13 Bruno Haible <bruno@clisp.org>
15986 * lib/git-merge-changelog.c: Remove empty declaration outside of
15989 2008-04-13 Bruno Haible <bruno@clisp.org>
15991 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
15993 2008-04-13 Bruno Haible <bruno@clisp.org>
15995 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
15996 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
15997 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
15998 also if it exists but lacks definitions of the SHUT_* macros.
15999 * modules/sys_socket (Description): Update.
16000 Reported by Elbert Pol <e.pol@chello.nl>.
16002 2008-04-13 Bruno Haible <bruno@clisp.org>
16004 * lib/localcharset.c (OS2): Don't redefine if already defined.
16005 Reported by Elbert Pol <e.pol@chello.nl>.
16007 2008-04-13 Bruno Haible <bruno@clisp.org>
16009 * lib/binary-io.h [__EMX__]: Include <io.h>.
16010 Reported by Elbert Pol <e.pol@chello.nl>.
16012 2008-04-12 Bruno Haible <bruno@clisp.org>
16014 * lib/fpucw.h: Enable the definitions also for x86_64.
16015 Needed for NetBSD/x86_64.
16016 Reported by Thomas Klausner <tk@giga.or.at>.
16018 2008-04-12 Bruno Haible <bruno@clisp.org>
16020 * tests/test-strtod.c: Include isnand.h.
16021 (main): Use isnand instead of isnan.
16022 Reported by Jim Meyering.
16024 2008-04-12 Bruno Haible <bruno@clisp.org>
16026 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
16027 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16029 2008-04-12 Jim Meyering <meyering@redhat.com>
16031 * m4/math_h.m4 (gl_MATH_H): Fix typos.
16033 2008-04-12 Bruno Haible <bruno@clisp.org>
16035 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
16036 Reported by Elbert Pol <e.pol@chello.nl>.
16038 2008-04-12 Eric Blake <ebb9@byu.net>
16040 Work around Solaris 10 math.h bug.
16041 * m4/math_h.m4 (gl_MATH_H): Check for bug.
16042 (gl_MATH_H_DEFAULTS): Set up default.
16043 * modules/math (Makefile.am): Replace new indicators.
16044 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
16045 * tests/test-math.c (main): Test this.
16046 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
16047 * doc/posix-headers/math.texi (math.h): Mention bug.
16048 Reported by Nelson H. F. Beebe and Jim Meyering.
16050 2008-04-11 Bruno Haible <bruno@clisp.org>
16052 Adapt to future versions of Apple GCC.
16053 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
16054 Reported by Peter O'Gorman <peter@pogma.com>.
16056 2008-04-11 Bruno Haible <bruno@clisp.org>
16058 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
16060 2008-04-11 Bruno Haible <bruno@clisp.org>
16062 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
16064 * modules/getaddrinfo-tests (Makefile.am): Define
16065 test_getaddrinfo_LDADD.
16067 2008-04-11 Bruno Haible <bruno@clisp.org>
16069 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
16070 (init): Fix syntax error.
16071 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
16074 2008-04-11 Bruno Haible <bruno@clisp.org>
16076 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
16077 * modules/glob (Depends-on): Add stdbool.
16079 2008-04-11 Bruno Haible <bruno@clisp.org>
16081 * lib/trim.c: Include <string.h>.
16083 2008-04-11 Eric Blake <ebb9@byu.net>
16085 Avoid compile failure on OS/2.
16086 * lib/regex_internal.h (internal_function): Disable optimization
16087 on OS/2 (__EMX__), where it caused compiler error.
16088 Reported by Elbert Pol.
16090 2008-04-11 Bruno Haible <bruno@clisp.org>
16092 Flush the standard error stream before aborting. Needed on mingw.
16093 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
16094 * tests/test-array_list.c (ASSERT): Likewise.
16095 * tests/test-array_oset.c (ASSERT): Likewise.
16096 * tests/test-avltree_list.c (ASSERT): Likewise.
16097 * tests/test-avltree_oset.c (ASSERT): Likewise.
16098 * tests/test-avltreehash_list.c (ASSERT): Likewise.
16099 * tests/test-binary-io.c (ASSERT): Likewise.
16100 * tests/test-byteswap.c (ASSERT): Likewise.
16101 * tests/test-c-ctype.c (ASSERT): Likewise.
16102 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
16103 * tests/test-c-strcasestr.c (ASSERT): Likewise.
16104 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
16105 * tests/test-c-strstr.c (ASSERT): Likewise.
16106 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
16107 * tests/test-canonicalize.c (ASSERT): Likewise.
16108 * tests/test-carray_list.c (ASSERT): Likewise.
16109 * tests/test-ceilf1.c (ASSERT): Likewise.
16110 * tests/test-ceilf2.c (ASSERT): Likewise.
16111 * tests/test-ceill.c (ASSERT): Likewise.
16112 * tests/test-count-one-bits.c (ASSERT): Likewise.
16113 * tests/test-fbufmode.c (ASSERT): Likewise.
16114 * tests/test-fflush2.c (ASSERT): Likewise.
16115 * tests/test-floorf1.c (ASSERT): Likewise.
16116 * tests/test-floorf2.c (ASSERT): Likewise.
16117 * tests/test-floorl.c (ASSERT): Likewise.
16118 * tests/test-fopen.c (ASSERT): Likewise.
16119 * tests/test-fpending.c (ASSERT): Likewise.
16120 * tests/test-fprintf-posix.c (ASSERT): Likewise.
16121 * tests/test-fpurge.c (ASSERT): Likewise.
16122 * tests/test-freadable.c (ASSERT): Likewise.
16123 * tests/test-freadahead.c (ASSERT): Likewise.
16124 * tests/test-freading.c (ASSERT): Likewise.
16125 * tests/test-freadptr.c (ASSERT): Likewise.
16126 * tests/test-freadptr2.c (ASSERT): Likewise.
16127 * tests/test-freadseek.c (ASSERT): Likewise.
16128 * tests/test-freopen.c (ASSERT): Likewise.
16129 * tests/test-frexp.c (ASSERT): Likewise.
16130 * tests/test-frexpl.c (ASSERT): Likewise.
16131 * tests/test-fseek.c (ASSERT): Likewise.
16132 * tests/test-fseeko.c (ASSERT): Likewise.
16133 * tests/test-fstrcmp.c (ASSERT): Likewise.
16134 * tests/test-ftell.c (ASSERT): Likewise.
16135 * tests/test-ftello.c (ASSERT): Likewise.
16136 * tests/test-func.c (ASSERT): Likewise.
16137 * tests/test-fwritable.c (ASSERT): Likewise.
16138 * tests/test-fwriting.c (ASSERT): Likewise.
16139 * tests/test-getdelim.c (ASSERT): Likewise.
16140 * tests/test-getline.c (ASSERT): Likewise.
16141 * tests/test-i-ring.c (ASSERT): Likewise.
16142 * tests/test-iconv-utf.c (ASSERT): Likewise.
16143 * tests/test-iconv.c (ASSERT): Likewise.
16144 * tests/test-isfinite.c (ASSERT): Likewise.
16145 * tests/test-isnand.c (ASSERT): Likewise.
16146 * tests/test-isnanf.c (ASSERT): Likewise.
16147 * tests/test-isnanl.h (ASSERT): Likewise.
16148 * tests/test-ldexpl.c (ASSERT): Likewise.
16149 * tests/test-linked_list.c (ASSERT): Likewise.
16150 * tests/test-linkedhash_list.c (ASSERT): Likewise.
16151 * tests/test-localename.c (ASSERT): Likewise.
16152 * tests/test-lseek.c (ASSERT): Likewise.
16153 * tests/test-mbscasecmp.c (ASSERT): Likewise.
16154 * tests/test-mbscasestr1.c (ASSERT): Likewise.
16155 * tests/test-mbscasestr2.c (ASSERT): Likewise.
16156 * tests/test-mbscasestr3.c (ASSERT): Likewise.
16157 * tests/test-mbscasestr4.c (ASSERT): Likewise.
16158 * tests/test-mbschr.c (ASSERT): Likewise.
16159 * tests/test-mbscspn.c (ASSERT): Likewise.
16160 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
16161 * tests/test-mbspbrk.c (ASSERT): Likewise.
16162 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
16163 * tests/test-mbsrchr.c (ASSERT): Likewise.
16164 * tests/test-mbsspn.c (ASSERT): Likewise.
16165 * tests/test-mbsstr1.c (ASSERT): Likewise.
16166 * tests/test-mbsstr2.c (ASSERT): Likewise.
16167 * tests/test-mbsstr3.c (ASSERT): Likewise.
16168 * tests/test-memchr2.c (ASSERT): Likewise.
16169 * tests/test-memmem.c (ASSERT): Likewise.
16170 * tests/test-open.c (ASSERT): Likewise.
16171 * tests/test-printf-frexp.c (ASSERT): Likewise.
16172 * tests/test-printf-frexpl.c (ASSERT): Likewise.
16173 * tests/test-printf-posix.c (ASSERT): Likewise.
16174 * tests/test-quotearg.c (ASSERT): Likewise.
16175 * tests/test-rbtree_list.c (ASSERT): Likewise.
16176 * tests/test-rbtree_oset.c (ASSERT): Likewise.
16177 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
16178 * tests/test-round1.c (ASSERT): Likewise.
16179 * tests/test-roundf1.c (ASSERT): Likewise.
16180 * tests/test-roundl.c (ASSERT): Likewise.
16181 * tests/test-signbit.c (ASSERT): Likewise.
16182 * tests/test-sleep.c (ASSERT): Likewise.
16183 * tests/test-snprintf-posix.c (ASSERT): Likewise.
16184 * tests/test-snprintf.c (ASSERT): Likewise.
16185 * tests/test-sprintf-posix.c (ASSERT): Likewise.
16186 * tests/test-stat-time.c (ASSERT): Likewise.
16187 * tests/test-strcasestr.c (ASSERT): Likewise.
16188 * tests/test-strerror.c (ASSERT): Likewise.
16189 * tests/test-striconv.c (ASSERT): Likewise.
16190 * tests/test-striconveh.c (ASSERT): Likewise.
16191 * tests/test-striconveha.c (ASSERT): Likewise.
16192 * tests/test-strsignal.c (ASSERT): Likewise.
16193 * tests/test-strstr.c (ASSERT): Likewise.
16194 * tests/test-strtod.c (ASSERT): Likewise.
16195 * tests/test-trunc1.c (ASSERT): Likewise.
16196 * tests/test-trunc2.c (ASSERT): Likewise.
16197 * tests/test-truncf1.c (ASSERT): Likewise.
16198 * tests/test-truncf2.c (ASSERT): Likewise.
16199 * tests/test-truncl.c (ASSERT): Likewise.
16200 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
16201 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
16202 * tests/test-vasnprintf.c (ASSERT): Likewise.
16203 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
16204 * tests/test-vasprintf.c (ASSERT): Likewise.
16205 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
16206 * tests/test-vprintf-posix.c (ASSERT): Likewise.
16207 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
16208 * tests/test-vsnprintf.c (ASSERT): Likewise.
16209 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
16210 * tests/test-wcwidth.c (ASSERT): Likewise.
16211 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
16212 * tests/test-xprintf-posix.c (ASSERT): Likewise.
16213 * tests/test-xvasprintf.c (ASSERT): Likewise.
16214 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
16215 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
16216 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
16217 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
16218 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
16219 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
16220 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
16221 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
16222 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
16223 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
16224 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
16225 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
16226 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
16227 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
16228 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
16229 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
16230 * tests/unictype/test-block_list.c (ASSERT): Likewise.
16231 * tests/unictype/test-block_of.c (ASSERT): Likewise.
16232 * tests/unictype/test-block_test.c (ASSERT): Likewise.
16233 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
16234 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
16235 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
16236 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
16237 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
16238 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
16239 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
16240 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
16241 * tests/unictype/test-combining.c (ASSERT): Likewise.
16242 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
16243 * tests/unictype/test-digit.c (ASSERT): Likewise.
16244 * tests/unictype/test-mirror.c (ASSERT): Likewise.
16245 * tests/unictype/test-numeric.c (ASSERT): Likewise.
16246 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
16247 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
16248 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
16249 * tests/unictype/test-scripts.c (ASSERT): Likewise.
16250 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
16251 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
16252 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
16253 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
16254 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
16255 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
16256 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
16257 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
16258 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
16259 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
16260 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
16261 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
16262 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
16263 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
16264 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
16265 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
16266 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
16267 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
16268 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
16269 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
16270 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
16271 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
16272 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
16273 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
16274 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
16275 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
16276 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
16277 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
16278 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
16279 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
16280 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
16281 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
16282 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
16283 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
16284 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
16285 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
16286 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
16287 Reported by Eric Blake.
16289 2008-04-11 Bruno Haible <bruno@clisp.org>
16291 * lib/wchar.in.h: Tweak comment.
16293 2008-04-11 Bruno Haible <bruno@clisp.org>
16295 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
16296 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
16298 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
16300 2008-04-11 Bruno Haible <bruno@clisp.org>
16302 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
16304 2008-04-11 Simon Josefsson <simon@josefsson.org>
16306 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
16307 of attempting to use non-existing /dev/*random. Based on patch
16308 from Adam Strzelecki <ono@java.pl> in
16309 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
16311 2008-04-08 Bruno Haible <bruno@clisp.org>
16313 Add tentative support for emx+gcc.
16314 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
16315 * lib/fpurge.c (fpurge): Likewise.
16316 * lib/freadable.c (freadable): Likewise.
16317 * lib/freadahead.c (freadahead): Likewise.
16318 * lib/freading.c (freading): Likewise.
16319 * lib/freadptr.c (freadptr): Likewise.
16320 * lib/freadseek.c (freadptrinc): Likewise.
16321 * lib/fseeko.c (rpl_fseeko): Likewise.
16322 * lib/fseterr.c (fseterr): Likewise.
16323 * lib/fwritable.c (fwritable): Likewise.
16324 * lib/fwriting.c (fwriting): Likewise.
16325 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
16327 2008-04-09 Eric Blake <ebb9@byu.net>
16329 Avoid some autoconf warnings.
16330 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
16331 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
16332 * m4/afs.m4 (gl_AFS): Likewise.
16333 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
16334 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
16335 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16336 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
16337 (gl_INTEGER_TYPE_SUFFIX): Likewise.
16338 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
16339 (AC_CHECK_DECLS_ONCE): Likewise.
16341 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
16342 gnulib-tool requires autoconf 2.59 or better.
16343 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
16345 2008-04-08 Eric Blake <ebb9@byu.net>
16347 Use 'git describe --match' if present (added in git 1.5.5).
16348 * build-aux/git-version-gen: Limit result to tags that match 'v*'
16351 2008-04-08 Bruno Haible <bruno@clisp.org>
16353 Add tentative support for OpenServer.
16354 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
16356 * lib/fpurge.c (fpurge): Likewise.
16357 * lib/freadable.c (freadable): Likewise.
16358 * lib/freadahead.c (freadahead): Likewise.
16359 * lib/freading.c (freading): Likewise.
16360 * lib/freadptr.c (freadptr): Likewise.
16361 * lib/freadseek.c (freadptrinc): Likewise.
16362 * lib/fseeko.c (rpl_fseeko): Likewise.
16363 * lib/fseterr.c (fseterr): Likewise.
16364 * lib/fwritable.c (fwritable): Likewise.
16365 * lib/fwriting.c (fwriting): Likewise.
16366 Reported by Roger Cornelius <rac@tenzing.org> and
16367 Brian K. White <brian@aljex.com>.
16369 2008-04-06 Jim Meyering <meyering@redhat.com>
16371 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
16373 2008-04-06 Bruno Haible <bruno@clisp.org>
16375 Avoid possible error with non-ASCII bytes in UTF-8 locales.
16376 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
16377 * tests/test-printf-posix.sh: Likewise.
16378 * tests/test-vfprintf-posix.sh: Likewise.
16379 * tests/test-vprintf-posix.sh: Likewise.
16380 * tests/test-xprintf-posix.sh: Likewise.
16382 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16384 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
16385 hide error from 'ls', needed on OS/2.
16386 Report by Elbert Pol <elbert.pol@gmail.com>.
16388 2008-04-04 Eric Blake <ebb9@byu.net>
16390 Make test-fseeko.c failures meaningful.
16391 * tests/test-fseeko.c: Print line number on failure.
16392 * tests/test-fseek.c: Likewise.
16393 Reported by Nelson H. F. Beebe.
16395 Improve strtod bug detection check.
16396 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
16397 required for Solaris 10.
16398 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
16400 2008-04-04 Bruno Haible <bruno@clisp.org>
16402 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
16405 2008-04-03 Eric Blake <ebb9@byu.net>
16407 Ensure sane .version contents.
16408 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
16410 * build-aux/git-version-gen: Improve documentation.
16412 Make GNU make output nicer.
16413 * top/GNUmakefile [!_have-Makefile]: Add dependency on
16414 MAKECMDGOALS to enforce message for all command line targets. Set
16415 srcdir for use in maint.mk.
16417 Another maintainer tweak.
16418 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
16419 a target that regenerates version.
16421 2008-04-03 Jim Meyering <meyering@redhat.com>
16423 vc-list-files: don't cause coreutils "make po-check" failure
16424 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
16426 2008-04-03 Eric Blake <ebb9@byu.net>
16428 Allow VPATH usage of vc-list-files.
16429 * build-aux/vc-list-files (scriptversion): Add timestamp.
16430 (options): Add --help, --version, -C.
16431 (CVS): Support installed cvsu.
16433 2008-04-02 Bruno Haible <bruno@clisp.org>
16435 Avoid some "statement with no effect" warnings from gcc.
16436 * tests/test-wctype.c (main): Explicitly ignore unused values.
16437 Reported by Jim Meyering.
16439 2008-04-02 Jim Meyering <meyering@redhat.com>
16441 Avoid some warnings from "gcc -Wshadow".
16442 * tests/test-frexp.c (exp): Define to a different identifier.
16443 * tests/test-frexpl.c (exp): Likewise.
16445 2008-04-03 Jim Meyering <meyering@redhat.com>
16447 bootstrap: remove dangling *.[ch] symlinks from lib
16448 * build-aux/bootstrap [dangling symlink removal]: Move find's
16449 -depth option to precede all others, to avoid a warning.
16450 Remove *.[ch] files too, and from "$source_base" (usually lib/).
16452 2008-04-02 Bruno Haible <bruno@clisp.org>
16454 Avoid some warnings from "gcc -Wshadow".
16455 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
16456 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
16457 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
16458 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
16459 Reported by Jim Meyering.
16461 2008-04-01 Bruno Haible <bruno@clisp.org>
16463 Fix test to work on IRIX 6.5 with cc.
16464 * tests/test-math.c (numeric_equal): New function.
16467 2008-04-01 Bruno Haible <bruno@clisp.org>
16469 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
16471 2008-04-01 Bruno Haible <bruno@clisp.org>
16473 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
16474 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16475 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
16476 (Depends-on): Remove math.
16478 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
16479 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16480 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
16481 (Depends-on): Remove math.
16483 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
16484 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16485 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
16486 (Depends-on): Remove math.
16487 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
16488 (Depends-on): Remove math.
16490 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
16491 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16492 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
16493 (Depends-on): Remove math.
16494 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
16495 (Depends-on): Remove math.
16497 * tests/test-round1.c: Include nan.h.
16498 (main): Use NaNd instead of NAN.
16499 * modules/round-tests (Files): Add tests/nan.h.
16501 * tests/test-trunc1.c: Include nan.h.
16502 (main): Use NaNd instead of NAN.
16503 * modules/trunc-tests (Files): Add tests/nan.h.
16505 * tests/test-roundf1.c: Include nan.h.
16506 (main): Use NaNf instead of NAN.
16507 * modules/roundf-tests (Files): Add tests/nan.h.
16509 * tests/test-truncf1.c: Include nan.h.
16510 (main): Use NaNf instead of NAN.
16511 * modules/truncf-tests (Files): Add tests/nan.h.
16513 * tests/test-ceilf1.c: Include nan.h.
16514 (main): Use NaNf instead of NAN.
16515 * modules/ceilf-tests (Files): Add tests/nan.h.
16517 * tests/test-floorf1.c: Include nan.h.
16518 (main): Use NaNf instead of NAN.
16519 * modules/floorf-tests (Files): Add tests/nan.h.
16521 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
16522 (main): Use NaNf instead of NAN.
16523 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
16525 * tests/test-isnand.c: Include nan.h instead of <math.h>.
16526 (main): Use NaNd instead of NAN.
16527 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
16529 * tests/test-frexp.c: Include nan.h.
16530 (main): Use NaNd instead of NAN.
16531 * modules/frexp-tests (Files): Add tests/nan.h.
16533 * lib/isnan.c: Don't include <math.h>.
16534 (FUNC): Don't use NAN macro.
16535 * modules/isnand-nolibm (Depends-on): Remove math.
16536 * modules/isnanf-nolibm (Depends-on): Remove math.
16537 * modules/isnanl (Depends-on): Remove math.
16538 * modules/isnanl-nolibm (Depends-on): Remove math.
16540 * tests/nan.h: New file.
16542 2008-04-01 Eric Blake <ebb9@byu.net>
16545 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
16546 values to be the right type.
16548 For now, cater to gnulib strtod inaccuracies.
16549 * tests/test-strtod.c (main): Allow 1-ulp error on expected
16550 fractional results. While not as nice from a QoI perspective, it
16551 is a quicker patch than correctly implementing decimal to binary
16554 2008-03-31 Eric Blake <ebb9@byu.net>
16556 Guarantee a definition of NAN.
16557 * lib/math.in.h (NAN): Define if missing.
16558 * tests/test-math.c (main): Test it.
16559 * doc/posix-headers/math.texi (math.h): Document this.
16560 * lib/isnan.c (rpl_isnand): Use it.
16561 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
16562 * tests/test-floorf1.c (NaN): Likewise.
16563 * tests/test-frexp.c (NaN): Likewise.
16564 * tests/test-isnand.c (NaN): Likewise.
16565 * tests/test-isnanf.c (NaN): Likewise.
16566 * tests/test-round1.c (NaN): Likewise.
16567 * tests/test-roundf1.c (NaN): Likewise.
16568 * tests/test-snprintf-posix.h (NaN): Likewise.
16569 * tests/test-sprintf-posix.h (NaN): Likewise.
16570 * tests/test-trunc1.c (NaN): Likewise.
16571 * tests/test-truncf1.c (NaN): Likewise.
16572 * tests/test-vasnprintf-posix.c (NaN): Likewise.
16573 * tests/test-vasprintf-posix.c (NaN): Likewise.
16574 * modules/isnand-nolibm (Depends-on): Add math.
16575 * modules/isnanf-nolibm (Depends-on): Likewise.
16576 * modules/isnanl (Depends-on): Likewise.
16577 * modules/isnanl-nolibm (Depends-on): Likewise.
16578 * modules/snprintf-posix-tests (Depends-on): Likewise.
16579 * modules/sprintf-posix-tests (Depends-on): Likewise.
16580 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
16581 * modules/vsprintf-posix-tests (Depends-on): Likewise.
16582 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
16583 * modules/vasprintf-posix-tests (Depends-on): Likewise.
16585 2008-03-31 Bruno Haible <bruno@clisp.org>
16587 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
16588 * doc/posix-functions/strtod.texi: Likewise.
16590 2008-03-31 Bruno Haible <bruno@clisp.org>
16592 * tests/test-strtod.c (main): Don't use C99 syntax.
16594 2008-03-31 Bruno Haible <bruno@clisp.org>
16596 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
16597 Reported by Eric Blake.
16599 2008-03-31 Jim Meyering <meyering@redhat.com>
16601 Don't compare actual signbit return values.
16602 * tests/test-strtod.c (main): Rather, compare only their
16603 zero/non-zero nature.
16605 2008-03-31 Eric Blake <ebb9@byu.net>
16607 More strtod documentation.
16608 * doc/posix-functions/strtod.texi (strtod): Interpret more test
16609 failures as distinct bugs.
16611 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
16613 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
16614 Problem reported by Erik Benada in
16615 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
16617 2008-03-30 Bruno Haible <bruno@clisp.org>
16619 * tests/test-strtod.c: Add comments about which assertion fails on which
16621 * doc/posix-functions/strtod.texi: Add info about many more platforms.
16623 2008-03-30 Eric Blake <ebb9@byu.net>
16625 Test signbit behavior on zeros.
16626 * tests/test-signbit.c (test_signbitf): Add tests for zero.
16627 (test_signbitd, test_signbitl): Likewise.
16629 More strtod touchups.
16630 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
16631 sign of negative underflow, for now. Use .5, not .1.
16632 * doc/posix-functions/strtod.texi (strtod): Mention these
16634 Reported by Jim Meyering.
16636 2008-03-30 Bruno Haible <bruno@clisp.org>
16638 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
16639 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
16641 2008-03-30 Bruno Haible <bruno@clisp.org>
16643 Avoid failure when attempting to return empty iconv results on some
16645 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
16646 allocation, don't report ENOMEM when the resulting string is empty.
16648 2008-03-30 Bruno Haible <bruno@clisp.org>
16650 Fix buffer overrun.
16651 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
16652 Don't consider the width for tmp_length. Check count against tmp_length
16653 before doing the padding. Ensure enough allocation during padding.
16655 2008-03-30 Eric Blake <ebb9@byu.net>
16658 * lib/strtod.c (strtod): Avoid compiler warnings.
16659 Reported by Jim Meyering.
16661 2008-03-30 Bruno Haible <bruno@clisp.org>
16663 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
16664 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
16665 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
16666 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
16667 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
16668 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
16669 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
16670 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
16672 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
16673 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
16674 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
16675 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
16676 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
16677 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
16678 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
16679 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
16681 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
16682 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
16683 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
16684 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
16685 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
16686 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
16687 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
16688 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
16690 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
16691 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
16693 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
16694 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
16696 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
16697 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
16699 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
16700 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
16701 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
16703 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
16704 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
16705 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
16707 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
16708 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
16709 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
16711 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
16712 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
16713 * modules/vasprintf (Depends-on): Add EOVERFLOW.
16715 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
16716 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
16717 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
16718 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
16719 (Depends-on): Add EOVERFLOW.
16720 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
16721 (Depends-on): Add EOVERFLOW.
16722 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
16723 (Depends-on): Add EOVERFLOW.
16724 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
16725 (Depends-on): Add EOVERFLOW.
16726 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
16727 (Depends-on): Add EOVERFLOW.
16728 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
16729 (Depends-on): Add EOVERFLOW.
16730 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
16731 (Depends-on): Add EOVERFLOW.
16732 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
16733 (Depends-on): Add EOVERFLOW.
16735 * lib/sprintf.c (EOVERFLOW): Remove fallback.
16736 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
16737 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
16739 * lib/snprintf.c (EOVERFLOW): Remove fallback.
16740 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
16741 * modules/snprintf (Depends-on): Add EOVERFLOW.
16743 * lib/poll.c (EOVERFLOW): Remove fallback.
16744 * modules/poll (Depends-on): Add EOVERFLOW.
16746 * lib/getugroups.c (EOVERFLOW): Remove fallback.
16747 * modules/getugroups (Depends-on): Add EOVERFLOW.
16749 * lib/getdelim.c (EOVERFLOW): Remove fallback.
16750 * modules/getdelim (Depends-on): Add EOVERFLOW.
16752 * lib/ftell.c (EOVERFLOW): Remove fallback.
16753 * modules/ftell (Depends-on): Add EOVERFLOW.
16755 * lib/fprintf.c (EOVERFLOW): Remove fallback.
16756 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
16757 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
16759 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
16761 * modules/EOVERFLOW-tests: New file.
16762 * tests/test-EOVERFLOW.c: New file.
16764 * modules/EOVERFLOW: New file.
16765 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
16767 2008-03-30 Bruno Haible <bruno@clisp.org>
16769 Fix bug introduced on 2007-06-10.
16770 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
16771 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
16773 2008-03-30 Bruno Haible <bruno@clisp.org>
16775 Improve freadseek's efficiency after ungetc.
16776 * lib/freadseek.c: Include freadahead.h.
16777 (freadptrinc): New function, extracted from freadseek.
16778 (freadseek): Use it in a loop. Use freadahead to determine the number
16779 of loop iterations.
16780 * modules/freadseek (Depends-on): Add freadahead.
16781 (configure.ac): Require AC_C_INLINE.
16783 2008-03-30 Bruno Haible <bruno@clisp.org>
16785 * lib/freadseek.c (freadseek): Don't ignore the return value of
16788 2008-03-29 Eric Blake <ebb9@byu.net>
16790 Add hex float support.
16791 * modules/strtod (Depends-on): Add c-ctype.
16792 (Link): Mention POW_LIB.
16793 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
16794 whitespace between 'e' and exponent.
16795 * tests/test-strtod.c (main): Enable hex float tests.
16796 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
16799 Document various strtod bugs, with some fixes.
16800 * doc/posix-functions/strtod.texi (strtod): Document bugs with
16801 "-0x", "inf", "nan", and hex constants.
16802 * doc/posix-functions/atof.texi (atof): Likewise.
16803 * modules/stdlib (Makefile.am): Support strtod.
16804 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16805 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
16806 detect additional strtod bugs.
16807 * lib/stdlib.in.h (rpl_strtod): Add declarations.
16808 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
16809 bool where appropriate. Parse 'inf' and 'nan'.
16810 * tests/test-strtod.c: New file.
16811 * modules/strtod (Depends-on): Add stdbool, stdlib.
16812 (configure.ac): Turn on module indicator.
16813 * modules/strtod-tests: New module.
16815 2008-03-29 Eric Blake <ebb9@byu.net>
16817 Fix ftell on mingw.
16818 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
16819 * modules/ftell-tests (Depends-on): Add binary-io.
16820 * modules/ftello-tests (Depends-on): Likewise.
16821 * tests/test-ftell.c (main): Enhance test to cover behavior after
16822 ungetc. Enforce binary mode.
16823 * tests/test-ftello.c (main): Likewise.
16825 Pass test-freadseek on cygwin.
16826 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
16827 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
16830 * tests/test-fflush2.c (main): Fix typo.
16832 2008-03-29 Bruno Haible <bruno@clisp.org>
16834 * tests/test-fflush2.c (main): Temporarily disable the contents of
16836 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
16837 Reported by Eric Blake.
16839 2008-03-28 Simon Josefsson <simon@josefsson.org>
16841 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
16842 (GC_SHA224_DIGEST_SIZE): Add.
16844 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
16845 (gc_hash_digest_length): Likewise.
16846 (gc_hash_buffer): Likewise.
16848 2008-03-25 Bruno Haible <bruno@clisp.org>
16850 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
16851 detail which gettext release to use.
16852 Reported by Simon Josefsson.
16854 2008-03-26 Jim Meyering <meyering@redhat.com>
16856 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
16857 * modules/gnumakefile (clean-GNUmakefile): Also, use
16858 test ... && ... || : syntax rather than if-then ... fi.
16860 gnumakefile: Don't double-quote-expand $(VPATH) value.
16861 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
16863 2008-03-24 Eric Blake <ebb9@byu.net>
16865 Alter GNUmakefile to install into top directory.
16866 * modules/maintainer-makefile: Split, and add dependency...
16867 * modules/gnumakefile: to this new module.
16868 * build-aux/GNUmakefile: Move...
16869 * top/GNUmakefile: ...here.
16870 * build-aux/maint.mk: Move...
16871 * top/maint.mk: ...here.
16872 * MODULES.html.sh (Support for maintaining...): Document new
16875 2008-03-23 Bruno Haible <bruno@clisp.org>
16877 * gnulib-tool: New options --vc-files, --no-vc-files.
16878 (func_usage): Document them.
16879 (vc_files): New variable.
16880 (func_import): Consider vc_files.
16881 (func_create_testdir): Set vc_files to empty.
16882 Suggested by Jim Meyering and Karl Berry.
16884 2008-03-23 Bruno Haible <bruno@clisp.org>
16886 Fix regex compilation error on HP-UX 11.
16887 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
16888 * modules/regex (Files): Add m4/mbstate_t.m4.
16889 Reported by Ton Voon <ton.voon@altinity.com>.
16891 2008-03-23 Bruno Haible <bruno@clisp.org>
16893 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
16895 2008-03-23 Eric Blake <ebb9@byu.net>
16896 Bruno Haible <bruno@clisp.org>
16898 Install files from top/ in the destination directory.
16899 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
16900 augmentation also for the files from top/.
16901 (func_import, func_create_testdir): Rewrite file names:
16902 top/filename -> filename.
16904 2008-03-23 Bruno Haible <bruno@clisp.org>
16906 Tweak "gnulib --version" output.
16907 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
16909 2008-03-23 Bruno Haible <bruno@clisp.org>
16911 Tweak "gnulib --version" output.
16912 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
16913 rather than contents of ChangeLog, when possible.
16915 2008-03-21 Eric Blake <ebb9@byu.net>
16917 More --version tweaks.
16918 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
16919 date of last ChangeLog entry.
16921 2008-03-21 Jim Meyering <meyering@redhat.com>
16923 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
16925 2008-03-20 Eric Blake <ebb9@byu.net>
16928 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
16930 2008-03-20 Simon Josefsson <simon@josefsson.org>
16932 * build-aux/GNUmakefile: Make git-version-gen optional. Add
16933 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
16935 2008-03-20 Eric Blake <ebb9@byu.net>
16937 Sync GNUmakefile with coreutils.
16938 * build-aux/GNUmakefile (have-Makefile): Rename...
16939 (_have-Makefile): ...to this, for namespace consideration.
16940 (GNUmakefile.cfg): Include, if present.
16941 (_autoreconf): Define a default.
16942 (_is-dist-target): New rule for rebuilds to pick up intra-release
16944 (maint-cfg.mk): Rename...
16945 (cfg.mk): ...to this.
16947 2008-03-18 Jim Meyering <meyering@redhat.com>
16949 New script and module: mktempd
16950 * MODULES.html.sh (maint+release support): Add mktempd.
16951 * build-aux/mktempd: New file.
16952 * modules/mktempd: New file.
16954 2008-03-15 Jim Meyering <meyering@redhat.com>
16957 * lib/sha1.c, lib/md5.c: 63 != ~63.
16958 Reported by Andreas Schwab.
16960 sha1.c, md5.c: Hoist a redundant expression.
16961 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
16962 "ctx->buflen" only once, before calling *_process_block.
16963 * lib/md5.c (md5_process_bytes): Likewise.
16965 2008-03-14 Eric Blake <ebb9@byu.net>
16967 Bump copyright year in files generated by gnulib-tool.
16968 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
16969 gnulib-tool, rather than hard-coding it.
16971 Fix 'gnulib-tool --version' output to work with git.
16972 * gnulib-tool (func_gnulib_dir): New function, extracted from...
16973 (startup): ...here.
16974 (func_version): Use it to invoke git-version-gen, rather than
16975 relying on CVS keyword expansion. Modernize wording.
16976 (cvsdatestamp, last_checkin_date, version): Kill unused
16979 2008-03-12 Jim Meyering <meyering@redhat.com>
16981 Recognize optional cast of the argument to free.
16982 * build-aux/useless-if-before-free: Update regexps.
16984 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
16986 2008-03-11 Bruno Haible <bruno@clisp.org>
16988 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
16989 by a single package.
16990 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
16991 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
16992 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
16993 Reported by Sam Steingold <sds@gnu.org>.
16995 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
16997 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
17000 2008-03-11 Bruno Haible <bruno@clisp.org>
17002 Avoid conflicts between local macro definitions.
17003 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17004 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
17006 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
17007 Bruno Haible <bruno@clisp.org>
17009 Make va_copy work with some version of xlc on AIX 5.1.
17010 * lib/stdarg.in.h: New file.
17011 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
17012 On AIX, use a <stdarg.h> file substitute.
17013 * modules/stdarg (Files): Add lib/stdarg.in.h.
17014 (Depends-on): Add include_next.
17015 (Makefile.am): Build a stdarg.h substitute if requested.
17016 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
17018 2008-03-10 Bruno Haible <bruno@clisp.org>
17020 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
17021 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17022 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17024 2008-03-10 Bruno Haible <bruno@clisp.org>
17026 * modules/stdlib (Depends-on): Add include_next, remove
17029 2008-03-09 Bruno Haible <bruno@clisp.org>
17031 * lib/freadahead.h (freadahead): Document more precisely.
17032 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
17033 the sum of both buffer sizes.
17034 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
17035 * NEWS: Document the change.
17037 2008-03-09 Bruno Haible <bruno@clisp.org>
17039 Extend freadptr to return also the buffer size.
17040 * lib/freadptr.h (freadptr): Add sizep argument.
17041 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
17042 (freadptr): Add sizep argument. Determine buffer size like freadahead
17044 * tests/test-freadptr.c: Don't include freadahead.h.
17045 (main): Adapt for new calling convention of freadptr.
17046 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
17047 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
17048 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
17049 tests/test-freadptr2.sh.
17050 (Depends): Remove freadahead.
17051 (TESTS): Add test-freadptr2.sh.
17052 (check_PROGRAMS): Add test-freadptr2.
17054 2008-03-09 Bruno Haible <bruno@clisp.org>
17056 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
17057 Report and solution by Simon Josefsson.
17059 2008-03-06 Bruno Haible <bruno@clisp.org>
17061 Make fflush after ungetc work on BSD platforms.
17062 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
17063 * tests/test-fflush2.c: New file.
17064 * tests/test-fflush2.sh: New file.
17065 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
17066 tests/test-fflush2.c.
17067 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
17068 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
17070 2008-03-06 Eric Blake <ebb9@byu.net>
17072 Likewise for ftello.
17073 * modules/ftello (Dependencies): Add extensions.
17074 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
17076 2008-03-06 Bruno Haible <bruno@clisp.org>
17078 * modules/fseeko (Dependencies): Add extensions.
17079 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
17080 Needed on glibc systems.
17082 2008-03-06 Bruno Haible <bruno@clisp.org>
17084 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
17086 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17088 2008-03-06 Bruno Haible <bruno@clisp.org>
17090 * users.txt: Add libgnupdf.
17092 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
17094 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
17095 (Header File Substitutes, Function Substitutes,
17096 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
17097 (Build robot for gnulib): Fix typo.
17099 2008-03-06 Bruno Haible <bruno@clisp.org>
17101 * doc/gnulib-tool.texi (VCS Issues): Small updates.
17102 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17104 2008-03-06 Bruno Haible <bruno@clisp.org>
17106 * doc/func.texi: New file, extracted from doc/gnulib.texi.
17107 * doc/gnulib.texi: Include it.
17109 2008-03-06 Simon Josefsson <simon@josefsson.org>
17111 * modules/func (License): Change license to unlimited; there was
17112 no LGPL parts in the module anyway.
17114 2008-03-06 Simon Josefsson <simon@josefsson.org>
17116 * modules/__func__: Renamed to modules/func.
17117 * modules/__func__-tests: Renamed to modules/func-tests.
17118 * tests/test-__func__.c: Renamed to tests/test-func.c.
17119 * m4/__func__.m4: Renamed to m4/func.m4.
17120 * doc/gnulib.texi (__func__): Section renamed to func.
17121 Suggested by Eric Blake <ebb9@byu.net>.
17123 2008-03-06 Simon Josefsson <simon@josefsson.org>
17125 * doc/gnulib.texi (__func__): Use C99 terminology when talking
17126 about __func__. Make example self-contained. Suggested by Eric
17127 Blake <ebb9@byu.net>.
17129 * tests/test-__func__.c (main): Avoid extraneous () around __func.
17130 Suggested by Eric Blake <ebb9@byu.net>.
17132 2008-03-06 Simon Josefsson <simon@josefsson.org>
17134 * modules/__func__: New file.
17135 * modules/__func__-tests: New file.
17136 * tests/test-__func__.c: New file.
17137 * m4/__func__.m4: New file.
17138 * doc/gnulib.texi (__func__): Document __func__ module.
17140 2008-03-05 Simon Josefsson <simon@josefsson.org>
17142 * modules/byteswap (License): Re-license as LGPLv2+.
17144 2008-03-05 Simon Josefsson <simon@josefsson.org>
17146 * doc/Makefile: Add pdf target.
17148 2008-03-05 Simon Josefsson <simon@josefsson.org>
17150 * modules/inline (License): Use 'unlimited', since there are only
17151 *.m4 files in this module.
17153 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
17154 Bruno Haible <bruno@clisp.org>
17156 Add support for HP C 7.1 on OpenVMS 8.3.
17157 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
17159 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
17161 Update VMS specifics.
17162 * lib/getopt.c [VMS]: Remove include of unixlib.h.
17164 2008-03-02 Jim Meyering <meyering@redhat.com>
17166 Remove the last dependency on the "free" module.
17167 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
17168 Reported by Bob Proulx.
17170 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
17172 Remove useless "if" tests before free. Deprecate "free" module.
17173 * doc/posix-functions/free.texi: Mention that this
17174 module is no longer useful.
17175 * modules/free (Notice): Say this module is obsolete.
17176 * modules/readutmp (Depends-on): Remove free.
17177 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
17178 * lib/putenv.c (putenv): Likewise.
17179 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
17180 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
17181 * tests/test-c-strcasestr.c (main): Likewise.
17182 * tests/test-c-strstr.c (main): Likewise.
17183 * tests/test-mbscasestr1.c (main): Likewise.
17184 * tests/test-mbscasestr2.c (main): Likewise.
17185 * tests/test-mbsstr1.c (main): Likewise.
17186 * tests/test-mbsstr2.c (main): Likewise.
17187 * tests/test-memmem.c (main): Likewise.
17188 * tests/test-strcasestr.c (main): Likewise.
17189 * tests/test-striconv.c (main): Likewise.
17190 * tests/test-striconveh.c (main): Likewise.
17191 * tests/test-striconveha.c (main): Likewise.
17192 * tests/test-strstr.c (main): Likewise.
17194 * build-aux/git-version-gen: Adjust a comment and the Usage string.
17196 bootstrap: sync from coreutils again
17197 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
17199 2008-03-01 Jim Meyering <meyering@redhat.com>
17201 bootstrap: sync from coreutils
17202 * build-aux/bootstrap (update_po_files): Copy a .po file into place
17203 also when the target doesn't exist.
17205 2008-03-01 Eric Blake <ebb9@byu.net>
17207 Fix bugs in last patch.
17208 * lib/memchr2.c (memchr2): Fix typo.
17209 * tests/test-memchr2.c: Test previous bug, and don't use GNU
17211 Reported by Bruce Korb.
17213 New module 'memchr2'.
17214 * modules/memchr2: New file.
17215 * modules/memchr2-tests: Likewise.
17216 * lib/memchr2.h: Likewise.
17217 * lib/memchr2.c: Likewise, based on memchr.c.
17218 * tests/test-memchr2.c: New test.
17219 * MODULES.html.sh (String handling): Add memchr2.
17221 2008-02-29 Bruno Haible <bruno@clisp.org>
17223 * modules/freadseek-tests: New file.
17224 * tests/test-freadseek.sh: New file.
17225 * tests/test-freadseek.c: New file.
17227 New module 'freadseek'.
17228 * modules/freadseek: New file.
17229 * lib/freadseek.h: New file.
17230 * lib/freadseek.c: New file.
17231 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
17233 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
17235 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
17238 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
17239 program_invocation_name and program_invocation_short_name are
17242 2008-02-28 Bruno Haible <bruno@clisp.org>
17244 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
17245 * tests/test-freadptr.sh: Also test non-seekable stdin.
17247 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
17249 * build-aux/bootstrap (source_base, m4_base)
17250 (doc_base, tests_base): New variables.
17251 (gnulib_tool_options): Do not hardcode base directories, use
17252 the above variables instead.
17254 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
17256 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
17258 2008-02-28 Bruno Haible <bruno@clisp.org>
17260 * modules/freadptr-tests: New file.
17261 * tests/test-freadptr.sh: New file.
17262 * tests/test-freadptr.c: New file.
17264 New module 'freadptr'.
17265 * modules/freadptr: New file.
17266 * lib/freadptr.h: New file.
17267 * lib/freadptr.c: New file.
17268 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
17270 2008-02-26 Karl Berry <karl@freefriends.org>
17273 * libltdl/argz.c (argz_add, argz_count): New functions.
17274 * libltdl/argz.in.h: Declare them.
17275 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
17277 2008-02-22 Bruno Haible <bruno@clisp.org>
17279 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
17280 is a pointer type. Needed for HP-UX 10.
17281 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
17282 * doc/posix-functions/gmtime_r.texi: Likewise.
17283 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17285 2008-02-24 Bruno Haible <bruno@clisp.org>
17287 * modules/environ-tests: New file.
17288 * tests/test-environ.c: New file.
17290 New module 'environ'.
17291 * modules/environ: New file.
17292 * lib/unistd.in.h (environ): New declaration.
17293 * m4/environ.m4: New file.
17294 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
17296 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
17298 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
17300 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
17301 wrong claim that 'environ' is missing on some systems.
17302 * modules/execute (Depends-on): Add environ.
17303 * lib/execute.c (environ): Remove fallback declaration.
17304 * modules/pipe (Depends-on): Add environ.
17305 * lib/pipe.c (environ): Remove fallback declaration.
17306 * modules/setenv (Depends-on): Add environ.
17307 * lib/setenv.c (environ): Remove fallback declaration.
17308 * modules/unsetenv (Depends-on): Add environ.
17309 * lib/unsetenv.c (environ): Remove fallback declaration.
17310 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
17312 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
17313 (gl_PREREQ_UNSETENV): Likewise.
17315 2008-02-24 Bruno Haible <bruno@clisp.org>
17317 * doc/posix-functions/environ.texi: Document the MacOS X problem.
17319 2008-02-20 Bob Proulx <bob@proulx.com>
17321 Enable use of older two part flavor 'git describe'.
17322 * build-aux/git-version-gen: If using the older two part flavor of
17323 git version then recreate the third part now present in the
17324 newer three part flavor of git describe.
17326 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
17328 * lib/fts.c (fts_build): Typo correction to comment.
17330 2008-02-17 Bruno Haible <bruno@clisp.org>
17332 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
17333 generating no-op conflicts.
17335 2008-02-17 Bruno Haible <bruno@clisp.org>
17338 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
17339 result_entries, rather than an index-based loop.
17341 2008-02-17 Bruno Haible <bruno@clisp.org>
17344 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
17346 (entry_create): New function.
17347 (entry_hashcode): Use the cached hashcode if possible.
17348 (read_changelog_file, try_split_merged_entry): Use entry_create.
17350 2008-02-17 Bruno Haible <bruno@clisp.org>
17352 Speed up from O(n^2) to O(n) for long ChangeLog files.
17353 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
17354 (read_changelog_file): Change implementation of entries_reversed list
17356 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
17358 2008-02-17 Bruno Haible <bruno@clisp.org>
17360 New option --split-merged-entry.
17361 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
17362 (find_paragraph_end, try_split_merged_entry): New functions.
17363 (long_options): Add option --split-merged-entry.
17364 (usage): Document option --split-merged-entry.
17365 (main): Implement option --split-merged-entry.
17366 Reported by Eric Blake.
17368 2008-02-17 Bruno Haible <bruno@clisp.org>
17370 * lib/git-merge-changelog.c: Include c-strstr.h.
17371 (main): Support the "git pull --rebase" situation.
17372 * modules/git-merge-changelog (Depends-on): Add c-strstr.
17373 Reported by Eric Blake.
17375 2008-02-16 Eric Blake <ebb9@byu.net>
17377 Avoid doubling \ in common case of "c-maybe" quoting style.
17378 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
17379 eliding outer quotes.
17380 * lib/quotearg.h: Document this.
17381 * tests/test-quotearg.c (result_strings, inputs, results_g)
17382 (flag_results, locale_results): Test it by adding a new string to
17384 (compare_strings): Test new string.
17386 2008-02-13 Eric Blake <ebb9@byu.net>
17388 Avoid trigraph quoting in default output.
17389 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
17390 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
17391 unless explicitly requested.
17392 * tests/test-quotearg.c (flag_results, main): Add additional tests.
17394 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
17396 Don't rely on signed integer overflowing to negative value.
17397 * lib/getugroups.c (getugroups): Include <limits.h>.
17398 Instead, compare against INT_MAX, and increment only if the test passes.
17400 2008-02-13 Jim Meyering <meyering@redhat.com>
17401 and Eric Blake <ebb9@byu.net>
17403 Avoid shadowing warning and compile errors on Linux.
17404 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
17405 forwarding macros on Linux.
17406 (dcgettext): Define a stub, for Linux.
17407 (results_g, main): Avoid warnings.
17409 2008-02-12 Eric Blake <ebb9@byu.net>
17411 Silence warning in last patch.
17412 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
17414 Quotearg part 4: add tests, fix c-maybe colon quoting.
17415 * lib/quotearg.h: Improve documentation.
17416 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
17417 escapes when adding outer quotes. When quoting trigraphs, use
17418 valid C notation. When quoting NUL, omit extra characters if next
17419 character is not digit. Alter prototype.
17420 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
17422 * modules/quotearg-tests: New module.
17423 * tests/test-quotearg.c: New test.
17425 2008-02-07 Eric Blake <ebb9@byu.net>
17427 Quotearg part 3: add flag to control outer quote elision.
17428 * lib/quotearg.h (c_maybe_quoting_style): New style.
17429 (enum quoting_flags): Better documentation of flags.
17430 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
17432 (quotearg_buffer_restyled): Handle new flag to elide outer
17435 Quotearg part 2: add flag that can control NUL elision.
17436 * lib/quotearg.h (set_quoting_flags): New prototype.
17437 * lib/quotearg.c (struct quoting_options): Add flag field.
17438 (set_quoting_flags): New function.
17439 (quotearg_buffer_restyled): Add flags parameter.
17440 (quotearg_alloc_mem): Set the flag if length cannot be returned.
17441 (quotearg_n_options): Set the flag, since length cannot be
17443 (quoting_options_from_style): Default flags correctly.
17445 Quotearg part 1: more wrappers, restore quotearg_char state.
17446 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
17447 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
17448 (quotearg_colon_mem): New wrappers.
17449 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
17450 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
17452 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
17453 (quotearg_colon_mem): New functions.
17455 2008-02-11 Bruno Haible <bruno@clisp.org>
17457 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
17458 library in the current directory: it does not work with parallel make.
17459 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17461 2008-02-11 Bruno Haible <bruno@clisp.org>
17463 * .gitattributes: New file.
17465 2008-02-11 Jim Meyering <meyering@redhat.com>
17467 useless-if-before-free: Fix reversed exit values.
17468 * build-aux/useless-if-before-free: Use correct values
17469 for EXIT_MATCH and EXIT_NO_MATCH.
17471 * build-aux/useless-if-before-free: Close stdout carefully.
17473 2008-02-10 Bruno Haible <bruno@clisp.org>
17475 New module 'git-merge-changelog'.
17476 * modules/git-merge-changelog: New file.
17477 * lib/git-merge-changelog.c: New file.
17479 2008-02-10 Jim Meyering <meyering@redhat.com>
17481 useless-if-before-free: New option: --list (-l).
17483 useless-if-before-free: Don't exit immediately upon open failure.
17484 * build-aux/useless-if-before-free: Exit 2 for errors.
17485 Upon failure to open a file, don't exit immediately.
17486 Rather, just warn and continue with any remaining files.
17488 2008-02-10 Bruno Haible <bruno@clisp.org>
17490 New abstract list operation 'node_set_value'.
17491 * lib/gl_list.h (gl_list_node_set_value): New function.
17492 (struct gl_list_implementation): New field node_set_value.
17493 * lib/gl_list.c (gl_list_node_set_value): New function.
17494 * lib/gl_array_list.c (gl_array_node_set_value): New function.
17495 (gl_array_list_implementation): Update.
17496 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
17497 (gl_carray_list_implementation): Update.
17498 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
17499 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17500 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17501 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
17502 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17503 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17504 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17506 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17507 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
17508 (gl_sublist_list_implementation): Update.
17510 2008-02-10 Bruno Haible <bruno@clisp.org>
17512 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
17513 Needed when ELEMENT is #defined to 'some_type *'.
17515 2008-02-10 Jim Meyering <meyering@redhat.com>
17517 New script and module: useless-if-before-free
17518 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
17519 * build-aux/useless-if-before-free: New file.
17520 * modules/useless-if-before-free: New file.
17522 * build-aux/gitlog-to-changelog: Use committer date, not author date.
17524 xstrtol_error: Fix typo.
17525 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
17526 s/exit_failure/exit_status/.
17528 2008-02-09 Jim Meyering <meyering@redhat.com>
17530 New script and module: gitlog-to-changelog
17531 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
17532 * modules/gitlog-to-changelog: New file.
17533 * build-aux/gitlog-to-changelog: New file.
17535 2008-02-08 Jim Meyering <meyering@redhat.com>
17537 Avoid two "parameter unused" warnings.
17538 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17541 Use "git COMMAND", not "git-COMMAND".
17542 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
17543 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
17544 * build-aux/git-version-gen: Use "git status", not "git-status".
17546 2008-02-07 Bruno Haible <bruno@clisp.org>
17548 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
17549 Avoids a crash on Windows Vista.
17550 Reported by Adam Strzelecki <ono@java.pl> via
17551 Simon Josefsson <simon@josefsson.org>.
17553 2008-02-06 Bruno Haible <bruno@clisp.org>
17555 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
17556 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
17557 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
17558 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
17559 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17560 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17561 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
17562 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
17563 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17564 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17565 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17566 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17567 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17568 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17569 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17570 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
17572 * tests/test-snprintf-posix.h (test_function): Likewise.
17573 * tests/test-sprintf-posix.h (test_function): Likewise.
17574 * tests/test-vasprintf-posix.c (test_function): Likewise.
17575 * doc/posix-functions/fprintf.texi: Update.
17576 * doc/posix-functions/printf.texi: Update.
17577 * doc/posix-functions/snprintf.texi: Update.
17578 * doc/posix-functions/sprintf.texi: Update.
17579 * doc/posix-functions/vfprintf.texi: Update.
17580 * doc/posix-functions/vprintf.texi: Update.
17581 * doc/posix-functions/vsnprintf.texi: Update.
17582 * doc/posix-functions/vsprintf.texi: Update.
17583 Reported by Peter Fales <psfales@alcatel-lucent.com>.
17585 2008-02-06 Bruno Haible <bruno@clisp.org>
17587 Fix bug introduced on 2008-01-26.
17588 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
17590 2008-02-06 Bruno Haible <bruno@clisp.org>
17592 Fix bug introduced on 2007-06-10.
17593 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
17594 !NEED_PRINTF_FLAG_ZERO.
17596 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
17598 getloadavg: use libperfstat on AIX5
17599 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
17601 2008-02-03 Bruno Haible <bruno@clisp.org>
17603 * lib/diffseq.h: Add comments about required #includes.
17604 Reported by Michael Biggs <gnulib@doubleplum.net>.
17606 2008-02-01 Bruno Haible <bruno@clisp.org>
17608 * users.txt: Add gnuit.
17610 2008-01-31 Bruno Haible <bruno@clisp.org>
17612 * lib/md4.c (set_uint32): Mark as inline.
17613 * lib/md5.c (set_uint32): Likewise.
17614 * lib/sha1.c (set_uint32): Likewise.
17615 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
17616 * m4/md5.m4 (gl_MD5): Likewise.
17617 * m4/sha1.m4 (gl_SHA1): Likewise.
17619 2008-01-31 Jim Meyering <meyering@redhat.com>
17621 Use "sizeof VAR", rather than a literal "4".
17622 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
17623 * lib/md4.c (md4_read_ctx): Likewise.
17624 * lib/sha1.c (sha1_read_ctx): Likewise.
17626 2008-01-31 Simon Josefsson <simon@josefsson.org>
17628 * tests/test-sha1.c: New file, based on test-md5.c.
17630 * modules/crypto/sha1-tests: New file.
17632 2008-01-31 Simon Josefsson <simon@josefsson.org>
17634 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
17636 2008-01-31 Jim Meyering <meyering@redhat.com>
17638 Prefer "sizeof v" over the equivalent "4".
17639 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
17640 * lib/md5.c (set_uint32): Likewise.
17641 * lib/sha1.c (set_uint32): Likewise.
17643 2008-01-31 Simon Josefsson <simon@josefsson.org>
17645 * lib/sha1.c (set_uint32): Mark function as static.
17647 2008-01-31 Simon Josefsson <simon@josefsson.org>
17649 md2: clarify comments to say that alignment is not required.
17650 * lib/md2.h: Remove warning about alignment in comment.
17651 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
17652 never been required.
17654 2008-01-31 Simon Josefsson <simon@josefsson.org>
17656 md4: adapt alignment constraint fix from sha1.
17657 * lib/md4.c (set_uint32): New function, from sha1.c
17658 (md4_read_ctx): Use it.
17659 (md4_finish_ctx): Doc fix.
17660 * lib/md4.h: Doc fix.
17662 2008-01-31 Simon Josefsson <simon@josefsson.org>
17664 md5: adapt alignment constraint fix from sha1.
17665 * lib/md5.c (set_uint32): New function, from sha1.c
17666 (md5_read_ctx): Use it.
17667 (md5_finish_ctx): Doc fix.
17668 * lib/md5.h: Doc fix.
17670 2008-01-30 Peter Palfrader <weasel@debian.org>
17672 sha1: remove the result buffer alignment constraint
17673 * lib/sha1.c (set_uint32): New function.
17674 (sha1_read_ctx): Rewrite to remove the result buffer alignment
17676 (sha1_finish_ctx): Remove comment warning about alignment constraint.
17677 * lib/sha1.h: Likewise.
17679 2008-01-30 Andreas Schwab <schwab@suse.de>
17680 Bruno Haible <bruno@clisp.org>
17682 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
17683 correct definition of LDBL_MIN_EXP.
17685 2008-01-30 Karl Berry <karl@gnu.org>
17687 * config/srclist-update: try to preserve x bit on updates.
17688 * config/srclistvars.sh: update for karl.
17690 2008-01-29 Jim Meyering <meyering@redhat.com>
17692 vasnprintf.c: Avoid warning about unused label
17693 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
17694 "overflow" label definition and associated code with the
17695 same cpp condition that guards the sole use of that label.
17697 2008-01-26 Bruno Haible <bruno@clisp.org>
17699 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
17700 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
17701 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
17702 * lib/isnanl-nolibm.h (isnanl): Likewise.
17703 Reported by Paul Eggert <eggert@cs.ucla.edu>.
17705 2008-01-26 Bruno Haible <bruno@clisp.org>
17707 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
17708 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
17710 2008-01-26 Bruno Haible <bruno@clisp.org>
17712 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
17713 GCC >= 4.0 built-in.
17714 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
17716 2008-01-26 Bruno Haible <bruno@clisp.org>
17718 Rename isnan, applicable to 'double' only, to isnand.
17719 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
17720 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
17721 (configure.ac): Update.
17722 (Include): Replace "isnan.h" with "isnand.h".
17723 * m4/isnand.m4: Renamed from m4/isnan.m4.
17724 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
17725 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
17726 instead of isnan.c.
17727 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
17728 instead of HAVE_ISNAN_IN_LIBC.
17729 (isnand): Renamed from isnan.
17730 * lib/isnand.c: New file.
17731 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
17732 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
17733 (Makefile.am): Update.
17734 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
17735 Include isnand.h instead of isnan.h.
17736 (main): Test isnand instead of isnan.
17737 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
17739 * modules/frexp (Depends-on): Likewise.
17740 * modules/frexp-tests (Depends-on): Likewise.
17741 * modules/frexp-nolibm (Depends-on): Likewise.
17742 * modules/frexp-nolibm-tests (Depends-on): Likewise.
17743 * modules/isfinite (Depends-on): Likewise.
17744 * modules/round-tests (Depends-on): Likewise.
17745 * modules/signbit (Depends-on): Likewise.
17746 * modules/signbit-tests (Depends-on): Likewise.
17747 * modules/snprintf-posix (Depends-on): Likewise.
17748 * modules/sprintf-posix (Depends-on): Likewise.
17749 * modules/trunc-tests (Depends-on): Likewise.
17750 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17751 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17752 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17753 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17754 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17755 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17756 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17757 * modules/vasnprintf-posix (Depends-on): Likewise.
17758 * modules/vasprintf-posix (Depends-on): Likewise.
17759 * modules/vfprintf-posix (Depends-on): Likewise.
17760 * modules/vsnprintf-posix (Depends-on): Likewise.
17761 * modules/vsprintf-posix (Depends-on): Likewise.
17762 * lib/frexp.c: Include isnand.h instead of isnan.h.
17763 (ISNAN): Set to isnand instead of isnan.
17764 * lib/isfinite.c: Include isnand.h instead of isnan.h.
17765 (gl_isfinited): Use isnand instead of isnan.
17766 * lib/signbitd.c: Include isnand.h instead of isnan.h.
17767 (gl_signbitd): Use isnand instead of isnan.
17768 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
17769 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
17770 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
17771 (main): Use isnand instead of isnan.
17772 * tests/test-round1.c: Include isnand.h.
17773 (main): Use isnand instead of isnan.
17774 * tests/test-round2.c: Include isnand.h instead of isnan.h.
17775 (ISNAN): Set to isnand instead of isnan.
17776 * tests/test-trunc1.c: Include isnand.h.
17777 (main): Use isnand instead of isnan.
17778 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
17779 (equal): Use isnand instead of isnan.
17780 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
17782 * NEWS: Mention the change.
17784 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
17785 Bruno Haible <bruno@clisp.org>
17787 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
17788 the GCC builtins for signbits are present and set
17789 REPLACE_SIGNBIT_USING_GCC if so.
17790 * lib/math.in.h (signbit): Define using GCC builtins if
17791 REPLACE_SIGNBIT_USING_GCC is set.
17792 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
17793 REPLACE_SIGNBIT_USING_GCC.
17794 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
17796 2008-01-25 Jim Meyering <meyering@redhat.com>
17798 Prefer <config.h> over "config.h". See autoconf doc for explanation.
17799 * lib/poll.c: Include <config.h>, not "config.h".
17800 * tests/test-getaddrinfo.c: Likewise.
17802 2008-01-25 Simon Josefsson <simon@josefsson.org>
17804 * modules/sockets-tests: New file.
17806 2008-01-24 Simon Josefsson <simon@josefsson.org>
17808 * modules/sockets: New module, can be used to call WSA_Startup and
17809 WSA_Cleanup when needed.
17811 * lib/sockets.h, lib/sockets.c: New files.
17813 * m4/sockets.m4: New file.
17815 * tests/test-sockets.c: New file.
17817 2008-01-19 Bruno Haible <bruno@clisp.org>
17819 * doc/posix-headers: Renamed from doc/headers.
17820 * doc/posix-functions: Renamed from doc/functions.
17821 * doc/gnulib.texi: Update.
17823 2008-01-19 Bruno Haible <bruno@clisp.org>
17825 * doc/glibc-functions/strcasestr.texi: Include contents of
17826 doc/functions/strcasestr.texi, fixing the list of platforms.
17827 * doc/functions/strcasestr.texi: Remove file.
17829 2008-01-19 Bruno Haible <bruno@clisp.org>
17831 * doc/glibc-functions/memmem.texi: Include contents of
17832 doc/functions/memmem.texi.
17833 * doc/functions/memmem.texi: Remove file.
17835 2008-01-18 Bruno Haible <bruno@clisp.org>
17837 * doc/glibc-functions/*.texi: New files.
17838 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
17839 to use the new files.
17841 2008-01-17 Bruno Haible <bruno@clisp.org>
17843 * tests/test-gethostname.c (main): Fix printf statement.
17845 2008-01-17 Simon Josefsson <simon@josefsson.org>
17847 * modules/gethostname-tests: New file.
17849 * tests/test-gethostname.c: New file.
17851 2008-01-17 Simon Josefsson <simon@josefsson.org>
17853 * lib/gethostname.c: Include string.h unconditionally, strncpy is
17854 used by the UNAME case. Reported by Bruno Haible
17857 2008-01-17 Eric Blake <ebb9@byu.net>
17859 Convert c-strcasestr to be more efficient.
17860 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
17861 (Depends-on): Add c-strcase, remove malloca, strnlen.
17862 * tests/test-c-strcasestr.c (main): Enhance test.
17863 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
17865 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
17867 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
17868 Use it in creating po/Makevars.
17870 2008-01-15 Simon Josefsson <simon@josefsson.org>
17872 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
17873 Applications that requires it should initialize libgcrypt
17876 2008-01-16 Simon Josefsson <simon@josefsson.org>
17878 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
17880 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
17882 Fix problem with getdate on mingw32 reported by Simon Josefsson
17883 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
17884 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
17885 tzname", when deciding whether to declare tzname.
17886 * lib/strftime.c (tzname): Likewise.
17888 2008-01-15 Bruno Haible <bruno@clisp.org>
17890 Work around a MacOS X 10.5 bug in frexpl().
17891 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
17892 * doc/functions/frexpl.texi: Document the bug.
17893 Reported by Elias Pipping <pipping@gentoo.org>.
17895 2008-01-14 Eric Blake <ebb9@byu.net>
17897 Touch up previous patch.
17898 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
17899 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
17901 Convert strcasestr module to use Two-Way algorithm.
17902 * modules/strcasestr-simple: New module, based on the old
17903 strcasestr, but with Two-Way rather than KMP.
17904 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
17905 * lib/string.in.h (rpl_strcasestr): Declare.
17906 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
17908 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
17909 * modules/string (Makefile.am): Support strcasestr.
17910 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17911 * modules/strcasestr-tests (Depends-on): Check for alarm.
17912 * tests/test-strcasestr.c: Augment test.
17913 * lib/str-two-way.h: Clean up stray macro.
17914 * NEWS: Document new module.
17915 * MODULES.html.sh (string handling): Likewise.
17916 * doc/functions/strcasestr.texi: New file.
17917 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
17918 here, since it is not a POSIX function.
17920 2008-01-14 Colin Watson <cjwatson@debian.org>
17921 Bruno Haible <bruno@clisp.org>
17923 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
17924 works fine; if not, set REPLACE_STRSIGNAL.
17925 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
17926 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17928 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
17929 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
17930 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
17932 2008-01-14 Bruno Haible <bruno@clisp.org>
17934 * modules/strsignal (Include): Change to <string.h>.
17936 2008-01-14 Colin Watson <cjwatson@debian.org>
17938 * modules/argp (Notice): Add a notice recommending to change
17940 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
17942 2008-01-13 Colin Watson <cjwatson@debian.org>
17944 * modules/strsignal-tests: New file.
17945 * tests/test-strsignal.c: New file.
17947 * lib/strsignal.c: New file, from glibc with modifications.
17948 * lib/siglist.h: New file, from glibc with modifications.
17949 * lib/string.in.h (strsignal): New declaration.
17950 * m4/strsignal.m4: New file.
17951 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17952 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
17953 * modules/strsignal: New file.
17954 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
17955 HAVE_DECL_STRSIGNAL.
17957 2008-01-13 Bruno Haible <bruno@clisp.org>
17959 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
17960 locale encoding is not ASCII. Needed for OpenBSD 4.0.
17961 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17962 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17964 2008-01-13 Bruno Haible <bruno@clisp.org>
17966 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
17967 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
17968 * lib/argp.h (__attribute__): Likewise.
17969 * lib/c-stack.c (__attribute__): Likewise.
17970 * lib/error.h (__attribute__): Likewise.
17971 * lib/fts.c (__attribute__): Likewise.
17972 * lib/openat.h (__attribute__): Likewise.
17973 * lib/stdio.in.h (__attribute__): Likewise.
17974 * lib/string.in.h (__attribute__): Likewise.
17975 * lib/utimens.c (__attribute__): Likewise.
17976 * lib/vasnprintf.h (__attribute__): Likewise.
17977 * lib/xalloc.h (__attribute__): Likewise.
17978 * lib/xprintf.h (__attribute__): Likewise.
17979 * lib/xstrtol.h (__attribute__): Likewise.
17980 * lib/xvasprintf.h (__attribute__): Likewise.
17982 2008-01-12 Bruno Haible <bruno@clisp.org>
17984 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
17985 * doc/glibc-headers/a.out.texi: New file.
17986 * doc/glibc-headers/aliases.texi: New file.
17987 * doc/glibc-headers/alloca.texi: New file.
17988 * doc/glibc-headers/ar.texi: New file.
17989 * doc/glibc-headers/argp.texi: New file.
17990 * doc/glibc-headers/argz.texi: New file.
17991 * doc/glibc-headers/byteswap.texi: New file.
17992 * doc/glibc-headers/crypt.texi: New file.
17993 * doc/glibc-headers/endian.texi: New file.
17994 * doc/glibc-headers/envz.texi: New file.
17995 * doc/glibc-headers/err.texi: New file.
17996 * doc/glibc-headers/error.texi: New file.
17997 * doc/glibc-headers/execinfo.texi: New file.
17998 * doc/glibc-headers/fpu_control.texi: New file.
17999 * doc/glibc-headers/fstab.texi: New file.
18000 * doc/glibc-headers/fts.texi: New file.
18001 * doc/glibc-headers/getopt.texi: New file.
18002 * doc/glibc-headers/ieee754.texi: New file.
18003 * doc/glibc-headers/ifaddrs.texi: New file.
18004 * doc/glibc-headers/libintl.texi: New file.
18005 * doc/glibc-headers/mcheck.texi: New file.
18006 * doc/glibc-headers/mntent.texi: New file.
18007 * doc/glibc-headers/obstack.texi: New file.
18008 * doc/glibc-headers/paths.texi: New file.
18009 * doc/glibc-headers/printf.texi: New file.
18010 * doc/glibc-headers/pty.texi: New file.
18011 * doc/glibc-headers/resolv.texi: New file.
18012 * doc/glibc-headers/shadow.texi: New file.
18013 * doc/glibc-headers/sysexits.texi: New file.
18014 * doc/glibc-headers/ttyent.texi: New file.
18016 2008-01-12 Jim Meyering <meyering@redhat.com>
18018 announce-gen: emit Gnulib's git-based version string.
18019 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
18020 New option --gnulib-version=V, where V is expected to be
18021 the output of running git describe in the gnulib directory.
18022 (get_tool_versions): Request feedback on xdelta. I suspect it's
18023 not useful, and plan to stop publishing an xdelta file with each
18026 * build-aux/announce-gen: Also check for lzma-compressed files.
18028 2008-01-11 Bruno Haible <bruno@clisp.org>
18030 * tests/test-memmem.c (main): Increase maximum allowed time.
18031 * tests/test-strstr.c (main): Likewise.
18033 2008-01-11 Bruno Haible <bruno@clisp.org>
18035 * doc/functions/memmem.texi: Add more precisions about platforms.
18036 * doc/functions/strstr.texi: Likewise.
18038 2008-01-10 Eric Blake <ebb9@byu.net>
18040 * m4/strstr.m4: Delete cruft from copy-n-paste.
18041 Reported by Bruno Haible.
18043 2008-01-10 Bruno Haible <bruno@clisp.org>
18045 Make c-strstr rely on strstr.
18046 * lib/c-strstr.c: Don't include str-kmp.h.
18047 (c_strstr): Define in terms of strstr.
18048 * modules/c-strstr (Files): Remove lib/str-kmp.h.
18049 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
18051 2008-01-10 Bruno Haible <bruno@clisp.org>
18053 * doc/gnulib.texi (String Functions in C Locale): New section.
18054 * doc/c-ctype.texi: New file.
18055 * doc/c-strcase.texi: New file.
18056 * doc/c-strcaseeq.texi: New file.
18057 * doc/c-strcasestr.texi: New file.
18058 * doc/c-strstr.texi: New file.
18059 * doc/c-strtod.texi: New file.
18060 * doc/c-strtold.texi: New file.
18062 2008-01-10 Eric Blake <ebb9@byu.net>
18064 * lib/relocatable.h: Fix a comment.
18066 2008-01-10 Eric Blake <ebb9@byu.net>
18068 Share two-way algorithm.
18069 * lib/str-two-way.h: New file, merged from...
18070 * lib/memmem.c: ...here...
18071 * lib/strstr.c: ...and here.
18072 * modules/memmem (Files): Use it.
18073 * modules/strstr (Files): Likewise.
18075 Avoid quadratic strstr implementations.
18076 * lib/strstr.c: New file.
18077 * m4/strstr.m4: Likewise.
18078 * modules/strstr: Likewise.
18079 * modules/strstr-tests: Likewise.
18080 * tests/test-strstr.c: Likewise.
18081 * lib/string.in.h (rpl_strstr): Declare.
18082 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
18083 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
18084 * modules/string (Makefile.am): Likewise.
18085 * MODULES.html.sh (string handling): Mention new module.
18086 * doc/functions/strstr.texi (strstr): Document the bug.
18088 2008-01-10 Bruno Haible <bruno@clisp.org>
18090 * lib/relocatable.h (relocate): State whether result is freshly
18092 * lib/relocatable.c (relocate): Return a freshly allocated string
18093 instead of a pointer to a privately held string.
18094 Reported by Sylvain Beucler <beuc@gnu.org>.
18096 2008-01-10 Colin Watson <cjwatson@debian.org>
18098 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
18099 s/S_ISNLK/S_ISLNK/.
18101 2008-01-09 Bruno Haible <bruno@clisp.org>
18103 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
18105 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
18106 if it's only a guess.
18107 * modules/memmem: Simplify by depending on memmem-simple.
18109 2008-01-09 Bruno Haible <bruno@clisp.org>
18111 Work around OpenBSD 4.0 tdelete() bug.
18112 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
18113 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
18114 macros and don't redefine the enum values.
18115 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
18116 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
18117 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
18119 2008-01-09 Bruno Haible <bruno@clisp.org>
18121 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
18122 (main): Don't perform the tests if setlocale did not install a UTF-8
18123 locale. Needed on OpenBSD 4.0.
18124 * modules/wcwidth-tests (Depends-on): Add localcharset.
18126 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
18128 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
18129 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
18130 * NEWS: announce this.
18131 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
18133 2008-01-09 Simon Josefsson <simon@josefsson.org>
18134 and Eric Blake <ebb9@byu.net>
18136 Add memmem-simple module.
18137 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
18138 (gl_FUNC_MEMMEM): Separate performance from presence checks.
18139 * modules/memmem-simple: New file.
18140 * modules/memmem (Description): Tweak.
18141 * MODULES.html.sh (string handling): Mention new module.
18142 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
18143 addressed by memmem-simple.
18144 * NEWS: Document the difference.
18146 2008-01-09 Eric Blake <ebb9@byu.net>
18148 Give gcc some memmem optimization hints.
18149 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
18150 (strcasestr): Declare as pure.
18151 * modules/memmem (Maintainer): Claim my implementation.
18153 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18155 Support AIX 6.1 and higher.
18156 * build-aux/config.libpath: Likewise.
18157 * build-aux/config.rpath: Likewise.
18159 2008-01-08 Jim Meyering <meyering@redhat.com>
18160 Bruno Haible <bruno@clisp.org>
18162 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
18163 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
18164 Reported by Peter Fales in
18165 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
18167 2008-01-08 Bruno Haible <bruno@clisp.org>
18169 * modules/unictype/category-of (Depends-on): Add
18170 unictype/category-none.
18171 * modules/unictype/category-and-tests (Depends-on): Add
18172 unictype/category-{L,N,Lu,Nd}.
18173 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
18174 * modules/unictype/category-or-tests (Depends-on): Add
18175 unictype/category-{L,N}.
18176 * modules/unictype/category-name-tests (Depends-on): Add
18177 unictype/category-{Z,Nl}.
18178 Reported by Simon Josefsson.
18180 2008-01-08 Bruno Haible <bruno@clisp.org>
18182 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
18184 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
18185 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
18186 Reported by Peter Miller <millerp@canb.auug.org.au>.
18188 2008-01-08 Eric Blake <ebb9@byu.net>
18190 Rewrite memmem to guarantee linear complexity without malloc.
18191 * lib/memmem.c (memmem): Use Two-Way rather than
18192 Knuth-Morris-Pratt, to allow O(1) space usage.
18193 (critical_factorization, two_way_short_needle)
18194 (two_way_long_needle): New functions.
18195 (knuth_morris_pratt): Delete.
18196 * modules/memmem (Depends-on): No longer need malloca or stdbool.
18198 * tests/test-memmem.c (main): Add tests for periodic needle and
18199 sublinear performance.
18200 * doc/functions/memmem.texi (memmem): Document other deficiencies
18201 in cygwin and older glibc.
18203 2008-01-08 Bruno Haible <bruno@clisp.org>
18205 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
18208 2008-01-08 Mike Frysinger <vapier@gentoo.org>
18210 Add a configure time option: --disable-acl.
18211 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
18212 AC_ARG_ENABLE(acl).
18214 2008-01-06 Simon Josefsson <simon@josefsson.org>
18216 * tests/test-localename.c: Don't include obsolete "setenv.h".
18218 * modules/localename-tests (Depends-on): Need unsetenv.
18220 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18222 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
18224 2008-01-06 Colin Watson <cjwatson@debian.org>
18226 * users.txt: Add man-db.
18228 2008-01-07 Bruno Haible <bruno@clisp.org>
18230 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
18231 previous section name.
18233 2008-01-07 Bruno Haible <bruno@clisp.org>
18235 * lib/progname.c (set_program_name): Don't strip off a leading
18236 "lt-" prefix outside a .libs directory.
18237 Suggested by Paul Eggert.
18239 2008-01-01 Sylvain Beucler <beuc@gnu.org>
18240 Bruno Haible <bruno@clisp.org>
18242 Improve memory cleanup in 'relocatable' module.
18243 * lib/relocatable.h (compute_curr_prefix): Change return type to
18245 * lib/relocatable.c (compute_curr_prefix): Change return type to
18246 'char *'. Free curr_installdir after use.
18247 (relocate): Free curr_prefix_better after use.
18248 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
18250 2008-01-01 Bruno Haible <bruno@clisp.org>
18252 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
18253 failure on older glibc systems.
18254 Reported by Peter Fales <psfales@alcatel-lucent.com>.
18256 2008-01-05 Eric Blake <ebb9@byu.net>
18258 Avoid quadratic system memmem.
18259 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
18260 Reported by Ralf Wildenhues.
18262 Fix memmem test for mingw.
18263 * modules/memmem-tests (configure.ac): Check for alarm.
18264 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
18266 * doc/functions/memmem.texi: New file.
18267 * doc/gnulib.texi (Function Substitutes): Add memmem.
18268 Reported by Bruno Haible.
18270 2008-01-04 Bruno Haible <bruno@clisp.org>
18272 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
18273 Require gl_HEADER_STRINGS_H_DEFAULTS, not
18274 gl_HEADER_STRING_H_DEFAULTS.
18276 2008-01-04 Eric Blake <ebb9@byu.net>
18278 Shorten duration of memmem test.
18279 * tests/test-memmem.c (main): Use alarm to declare failure if test
18280 is taking too long.
18281 Reported by Ralf Wildenhues.
18283 2007-12-21 Simon Josefsson <simon@josefsson.org>
18285 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
18286 string, needed by strerror.
18288 2008-01-03 Colin Watson <cjwatson@debian.org>
18289 Bruno Haible <bruno@clisp.org>
18291 * doc/gnulib-tool.texi (Localization): New section.
18293 2008-01-02 Bruno Haible <bruno@clisp.org>
18295 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
18296 variables to 'unsigned char *' type.
18297 Reported by Paul Eggert.
18299 2008-01-02 Jim Meyering <jim@meyering.net>
18301 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
18303 2007-12-31 Jim Meyering <jim@meyering.net>
18305 Avoid use of private FTS type name.
18306 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
18308 2007-12-30 Karl Berry <karl@gnu.org>
18310 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
18311 work around defect in Texinfo and/or the standalone Info browser.
18313 2007-12-30 Bruno Haible <bruno@clisp.org>
18315 Unify 5 copies of the KMP code.
18316 * lib/str-kmp.h: New file.
18317 * lib/c-strcasestr.c: Include str-kmp.h.
18318 (knuth_morris_pratt): Remove function.
18319 (c_strcasestr): Update.
18320 * lib/c-strstr.c: Include str-kmp.h.
18321 (knuth_morris_pratt): Remove function.
18322 (c_strcasestr): Update.
18323 * lib/mbscasestr.c: Include str-kmp.h.
18324 (knuth_morris_pratt_unibyte): Remove function.
18325 * lib/mbsstr.c: Include str-kmp.h.
18326 (knuth_morris_pratt_unibyte): Remove function.
18327 * lib/strcasestr.c: Include str-kmp.h.
18328 (knuth_morris_pratt): Remove function.
18329 (strcasestr): Update.
18330 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
18331 * modules/c-strstr (Files): Likewise.
18332 * modules/mbscasestr (Files): Likewise.
18333 * modules/mbsstr (Files): Likewise.
18334 * modules/strcasestr (Files): Likewise.
18335 Suggested by Paul Eggert.
18337 2007-12-30 Bruno Haible <bruno@clisp.org>
18339 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
18342 2007-12-30 Bruno Haible <bruno@clisp.org>
18344 * lib/xmalloca.h: Include xalloc.h.
18345 (xnmalloca): New macro.
18347 2007-12-30 Bruno Haible <bruno@clisp.org>
18349 * lib/malloca.h (nmalloca): New macro.
18350 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
18351 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
18352 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
18353 knuth_morris_pratt_multibyte): Likewise.
18354 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
18355 knuth_morris_pratt_multibyte): Likewise.
18356 * lib/memmem.c (knuth_morris_pratt): Likewise.
18357 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
18359 2007-12-25 Bruno Haible <bruno@clisp.org>
18361 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
18362 * lib/glob.c: Don't include openat.h.
18363 (link_exists2_p): Add back the code that deals with the
18364 !GLOB_ALTDIRFUNC case.
18365 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
18366 let it do the filename concatenation.
18367 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
18368 * modules/glob (Depends-on): Remove openat.
18370 2007-12-31 Bruno Haible <bruno@clisp.org>
18372 * modules/dirfd (License): Change to LGPLv2+.
18373 Approved by Jim Meyering.
18375 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
18377 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
18378 when multiplying M by sizeof (size_t).
18380 2007-12-10 Martin Lambers <marlam@marlam.de>
18382 Override getpagesize on mingw.
18383 * lib/getpagesize.c: New file.
18384 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
18385 * modules/getpagesize (Files): Add lib/getpagesize.c.
18386 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
18387 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18388 REPLACE_GETPAGESIZE.
18389 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
18391 2007-12-25 Bruno Haible <bruno@clisp.org>
18393 * modules/localcharset (Notice): New field.
18394 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
18395 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18397 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
18398 Bruno Haible <bruno@clisp.org>
18400 Avoid using the syntax symbol() in formatted documentation.
18401 * MODULES.html.sh (func_module): When replacing symbol() with a
18402 hyperlink, remove the parentheses. Show an error if some remain.
18403 Recognize and render the '...' syntax.
18404 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
18405 Rework. Add paragraph about GCC's inlining.
18406 * doc/alloca.texi: Likewise.
18407 * doc/error.texi: Remove parentheses from symbol reference.
18408 * doc/gnulib-intro.texi: Likewise.
18409 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
18410 * modules/fnmatch (Description): Reword to say "the ... function".
18411 * modules/full-read (Description): Likewise.
18412 * modules/full-write (Description): Likewise.
18413 * modules/safe-read (Description): Likewise.
18414 * modules/safe-write (Description): Likewise.
18415 * modules/strchrnul (Description): Likewise.
18416 * modules/trim (Description): Likewise.
18417 * modules/error (Description): Remove parentheses from symbol
18419 * modules/verror (Description): Likewise.
18420 Reported by Karl Berry.
18422 2007-12-25 Bruno Haible <bruno@clisp.org>
18424 Fixup after 2007-10-16 commit.
18425 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
18427 2007-12-24 Bruno Haible <bruno@clisp.org>
18429 Make --enable-relocatable work with DESTDIR.
18430 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
18431 to compute installdir from destprog.
18432 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
18433 also set the RELOC_DESTDIR variable.
18434 Reported by Левашев Иван <octagram@bluebottle.com>.
18436 2007-12-24 Bruno Haible <bruno@clisp.org>
18438 Fix link error due to xalloc_die().
18439 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
18441 * lib/relocwrapper.c: Update comments.
18442 * build-aux/install-reloc: Remove xreadlink.c from file list.
18443 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
18445 Reported by Левашев Иван <octagram@bluebottle.com>.
18447 2007-12-24 Bruno Haible <bruno@clisp.org>
18449 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
18450 * lib/setenv.h: Remove file.
18451 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
18453 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
18454 (Depends-on): Add stdlib.
18455 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
18457 (Include): Replace setenv.h with <stdlib.h>.
18458 * modules/unsetenv: New file.
18459 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
18460 * lib/unsetenv.c: Include <stdlib.h> first.
18461 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
18462 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
18463 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
18464 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
18465 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
18466 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18467 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
18468 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18469 * doc/functions/unsetenv.texi: Update.
18470 * modules/xsetenv (Depends-on): Add unsetenv.
18471 * modules/getdate (Depends-on): Likewise.
18472 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
18473 * lib/xsetenv.c: Don't include setenv.h.
18474 * lib/getdate.y: Likewise.
18475 * lib/relocwrapper.c: Likewise.
18476 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
18477 (Depends-on): Add stdlib.
18478 * NEWS: Mention the changes.
18479 Reported by Левашев Иван <octagram@bluebottle.com>.
18481 2007-12-23 Bruno Haible <bruno@clisp.org>
18483 * lib/memmem.c (memmem): Use lowercase variable names. Tab
18486 2007-12-23 Bruno Haible <bruno@clisp.org>
18488 * lib/c-strcasestr.c: Add more comments.
18489 * lib/c-strstr.c: Likewise.
18490 * lib/mbscasestr.c: Likewise.
18491 * lib/mbsstr.c: Likewise.
18492 * lib/strcasestr.c: Likewise.
18493 * lib/memmem.c: Likewise.
18495 2007-12-23 Bruno Haible <bruno@clisp.org>
18497 * tests/test-memmem.c: Include <string.h> first.
18499 2007-12-22 Bruno Haible <bruno@clisp.org>
18501 * gnulib-tool (func_create_testdir): Change $auxdir while generating
18502 the contents of $testsbase.
18503 Reported by Ralf Wildenhues.
18505 2007-12-22 Bruno Haible <bruno@clisp.org>
18507 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
18508 two variables local_ldadd_before, local_ldadd_last.
18510 2007-12-20 Eric Blake <ebb9@byu.net>
18512 Work around circular library issue when cross-compiling.
18513 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
18514 that progname.o does not need to pull in rpl_memcmp.
18516 2007-12-19 Eric Blake <ebb9@byu.net>
18518 Fix memmem to avoid O(n^2) worst-case complexity.
18519 * lib/memmem.c (knuth_morris_pratt): New function.
18520 (memmem): Use it if first few naive iterations fail.
18521 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
18522 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
18523 * modules/memchr (License): Likewise.
18524 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
18526 * tests/test-memmem.c: Rewrite, borrowing ideas from
18527 test-mbsstr1.c; the old version wouldn't even compile!
18528 * modules/memmem-tests: New file.
18529 * lib/string.in.h (rpl_memmem): Add declaration.
18530 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
18531 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
18534 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
18536 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
18537 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
18538 before any system include files, and undef after them all. This
18539 should fix a problem on VMS reported by John E. Malmberg in
18540 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
18542 2007-12-17 Eric Blake <ebb9@byu.net>
18544 Revert addition of verify, for BSD/OS.
18545 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
18546 can't handle large files, for the sake of obsolete platforms.
18547 * modules/fseeko (Depends-on): Remove verify.
18548 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
18549 * doc/functions/ftello.texi (ftello): Likewise.
18550 * doc/functions/fgetpos.texi (fgetpos): Likewise.
18551 Reported by Larry Jones.
18553 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
18555 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
18556 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
18558 2007-12-17 Jim Meyering <meyering@redhat.com>
18560 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
18561 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
18562 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
18563 * modules/getcwd (Depends-on): Add openat.
18564 Reported by Petr Salinger.
18566 2007-12-17 Bruno Haible <bruno@clisp.org>
18568 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
18569 avoid a segmentation fault of the configure test on x86_64 systems.
18571 2007-12-15 Jim Meyering <meyering@redhat.com>
18573 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
18575 2007-12-13 Eric Blake <ebb9@byu.net>
18577 Another fseek test.
18578 * tests/test-fseek.c (main): Also test ungetc handling.
18579 * tests/test-fseeko.c (main): Likewise.
18580 * modules/fseeko (Depends-on): Add verify.
18581 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
18583 Reported by Larry Jones.
18585 Fix fseeko on mingw.
18586 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
18589 Beef up fseek tests.
18590 * tests/test-fseek.c (main): Also test eof handling.
18591 * tests/test-fseeko.c (main): Likewise.
18592 Reported by Larry Jones.
18594 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
18596 Fix fseeko on BSD-based platforms.
18597 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
18600 2007-12-12 Eric Blake <ebb9@byu.net>
18602 Allow circular dependency of separate libtests.a
18603 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
18606 2007-12-11 Eric Blake <ebb9@byu.net>
18608 Fix bug with -0.0L in previous patch.
18609 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
18610 * tests/test-isnan.c (main): Also test on zeroes.
18611 * tests/test-isnanf.c (main): Likewise.
18612 * tests/test-isnanl.h (main): Likewise.
18614 Detect pseudo-denormals on x86 even when cross-compiling.
18615 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
18616 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
18617 invalid bit patterns that happen to satisfy ==.
18619 Avoid link failures with separate libtests.a.
18620 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
18621 last, to satisfy circular dependencies.
18623 2007-12-11 Eric Blake <ebb9@byu.net>
18624 and Bruno Haible <bruno@clisp.org>
18626 Fix OpenBSD 4.0 <float.h> handling of long double.
18627 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
18628 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
18629 * doc/headers/float.texi (float.h): Document OpenBSD bug.
18631 2007-12-11 Jim Meyering <meyering@redhat.com>
18633 * users.txt: Add libvirt.
18635 Support versions of autoconf prior to 2.59c.
18636 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
18637 if it is not already defined.
18639 2007-12-09 Bruno Haible <bruno@clisp.org>
18641 Let 'gnulib-tool --import' collect sources needed for the tests in
18642 tests/ rather than in lib/.
18643 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
18644 argument. If true, add rules to generate libtests.a, and put libtests.a
18645 into $(LDADD). Consider source files in subdirectories and set
18647 (func_emit_initmacro_start, func_emit_initmacro_end,
18648 func_emit_initmacro_done): Pass all arguments explicitly.
18649 (func_import): Determine two module lists main_modules,
18650 testsrelated_modules. Determine use_libtests. Determine two variables
18651 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
18652 instead of just sed_transform_lib_file. Determine two variables
18653 main_files and testsrelated_files. Compute 'files' as the union of
18654 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
18655 func_add_or_update. In the generated gnulib-comp.m4, collect the
18656 object files for tests/ in different variables than those for lib/.
18657 Substitute LIBTESTS_LIBDEPS.
18658 (func_create_testdir): Combine the uses_subdirs results from
18659 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
18661 2007-12-09 Bruno Haible <bruno@clisp.org>
18663 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
18664 the build-aux directory.
18666 2007-12-09 Bruno Haible <bruno@clisp.org>
18668 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
18669 introduced on 2006-09-09.
18671 2007-12-07 Jim Meyering <meyering@redhat.com>
18673 Let these macros work also with autoconf-2.59.
18674 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
18675 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
18676 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18678 2007-12-06 Jim Meyering <meyering@redhat.com>
18680 Avoid a configure-time syntax error in gl_FUNC_ACL.
18681 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
18682 function in each branch, before testing the cache variable.
18684 2007-12-04 Eric Blake <ebb9@byu.net>
18686 Make scripts executable.
18687 * build-aux/config.guess: Add execute permissions.
18688 * build-aux/config.sub: Likewise.
18689 * build-aux/gendocs.sh: Likewise.
18691 Fix frexp on mingw.
18692 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
18694 * doc/functions/frexp.texi (frexp): Document the bug.
18696 Make cygwin fseeko check more reliable.
18697 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
18698 version numbers, rather than unrelated feature check.
18699 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
18700 * doc/functions/ftello.texi (ftello): Likewise.
18701 Reported by Bruno Haible.
18703 * m4/strerror.m4: Bump version number.
18705 2007-12-03 Bruno Haible <bruno@clisp.org>
18707 * doc/functions/mprotect.texi: Mention the mingw problem.
18709 2007-12-03 Eric Blake <ebb9@byu.net>
18711 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
18712 REPLACE_STRERROR is initialized before this macro.
18714 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
18716 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
18717 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
18718 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
18719 put -lsec in even for programs other than 'ls'. This fixes a problem
18720 for gettext reported by Bruno Haible in
18721 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
18722 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
18723 Add support for Solaris 10. This isn't efficient, but should get the
18726 2007-12-03 James Youngman <jay@gnu.org>
18728 * doc/regexprops-generic.texi: change "an close-group" to "a
18729 close-group" and "illegal" to "not allowed".
18731 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18733 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
18734 pr_byname.h. Needed for the rare case when the maintainer has done
18735 "make maintainer-clean" in the source directory and then attempts a
18736 build outside the source directory.
18737 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
18740 2007-12-02 Martin Lambers <marlam@marlam.de>
18741 Bruno Haible <bruno@clisp.org>
18743 * lib/getpagesize.h: Remove file.
18744 * lib/unistd.in.h: Include declaration of getpagesize here.
18745 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
18746 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
18748 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
18749 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
18750 * modules/getpagesize (Files): Remove lib/getpagesize.h.
18751 (Depends-on): Add unistd.
18752 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18753 (Include): Use <unistd.h> instead of getpagesize.h.
18754 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
18755 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
18756 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
18757 gl_GETPAGESIZE invocation, already handled by module dependency.
18758 * lib/pagealign_alloc.c: Don't include getpagesize.h.
18760 2007-12-02 Bruno Haible <bruno@clisp.org>
18762 * modules/strings-tests: New file.
18763 * tests/test-strings.c: New file.
18765 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
18766 * lib/strings.in.h: New file.
18767 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
18768 * m4/strings_h.m4: New file.
18769 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
18770 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
18771 * modules/strings: New file.
18772 * modules/string (Makefile.am): Update.
18773 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
18774 Reported by Karl Berry.
18776 2007-12-01 Eric Blake <ebb9@byu.net>
18778 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
18779 accomodate fix in cygwin 1.5.25.
18781 2007-12-01 Jim Meyering <meyering@redhat.com>
18783 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
18784 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
18785 that would inhibit utf8-optimization of a regexp containing line-
18786 or buffer-anchors, e.g., `^', `$'.
18788 2007-11-30 Bruno Haible <bruno@clisp.org>
18790 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
18791 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
18792 glthread_recursive_lock_init.
18793 * lib/lock.c (glthread_recursive_lock_init)
18794 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
18795 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18797 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
18799 New function qset_acl, like set_acl but with syscall semantics.
18800 * lib/acl.h (qset_acl): New decl.
18801 * lib/acl.c (qset_acl): New function.
18802 (set_acl): Use new function. Use more-consistent diagnostics.
18804 2007-11-28 Jim Meyering <meyering@redhat.com>
18806 * modules/physmem (License): Change from GPL to LGPLv2+.
18808 2007-11-26 Bruno Haible <bruno@clisp.org>
18810 * lib/vasnprintf.c (decode_long_double): Don't abort if the
18811 'long double' type has excess precision.
18812 Reported by Jim Meyering in
18813 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
18815 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18817 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
18818 Sync from <http://gnu.org/licenses>.
18819 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
18820 with license text from same location.
18821 * doc/maintain.texi, doc/standards.texi: Sync from
18822 <http://savannah.gnu.org/projects/gnustandards>.
18824 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18825 and Jim Meyering <meyering@redhat.com>
18827 Adjust getdate' grammar to accept a slightly more regular language.
18828 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
18829 Before, the former was rejected.
18830 * lib/getdate.y (digits_to_date_time): New function, factored
18832 (number): ...here. Just call digits_to_date_time.
18833 (hybrid): New non-terminal to handle an <unsigned number,
18834 signed relative offset> sequence consistently.
18836 2007-11-18 Jim Meyering <meyering@redhat.com>
18838 Pull my changes from coreutils:
18839 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
18840 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
18841 use of $gnulib_tool_option_extras, so that it's separated from the
18842 preceding argument.
18844 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
18845 * build-aux/bootstrap (cp_mark_as_generated): Create any required
18846 parent destination directories before copying a file into place.
18848 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
18850 bootstrap: work also with 4-argument variant of AC_INIT
18851 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
18853 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
18855 Port test-getaddrinfo to Solaris.
18856 Problem reported by Bruno Haible in
18857 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
18858 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
18859 explanation of setting 'hints'.
18860 Don't reject an implementation merely because it returns EAI_SERVICE.
18861 (EAI_SERVICE): Define to 0 if not defined.
18863 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
18865 The license of gnu-make and posix-shell is now "GPLed build tool".
18866 * modules/gnu-make (License): Likewise.
18867 * modules/posix-shell (License): Likewise.
18869 New module posix-shell, for determining a POSIX shell
18870 or perhaps something that is close enough to a POSIX shell.
18871 * m4/posix-shell.m4: New file.
18872 * modules/posix-shell: New file.
18874 * MODULES.html.sh: Mention new module.
18876 New module gnu-make, for determining whether we're using GNU Make.
18877 * m4/gnu-make.m4: New file.
18878 * modules/gnu-make: New file.
18879 * MODULES.html.sh: Mention new module.
18881 2007-11-14 Jim Meyering <meyering@redhat.com>
18883 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
18884 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
18885 use this macro to create a function _definition_.
18886 Remove useless "#undef ARGMATCH_DIE".
18888 2007-11-14 Bruno Haible <bruno@clisp.org>
18890 * lib/config.charset: Update for OpenBSD 4.1.
18891 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
18893 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
18895 Document 64-bit #if problems in stdint.texi.
18896 * doc/headers/stdint.texi (stdint.h): Mention problems with
18897 64-bit-#if, and how to work around them.
18899 Don't insist on 'long long int' support in the preprocessor. It
18900 breaks too many things. For example, PRIdMAX still uses a 'long
18901 long int' format with the latest Sun compiler, even though
18902 HAVE_LONG_LONG_INT isn't defined due to that compiler's
18903 preprocessor problem. This causes the latest coreutils to dump
18904 core on Solaris 10 sparc with the Sun C compiler.
18905 Instead, fix the 2007-10-16 problem in a different way, by evaluating
18906 the troublesome expressions at configure-time, not at #if-time.
18907 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
18909 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
18910 compile-time C checks, done at 'configure'-time.
18911 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
18912 * modules/inttypes (Makefile): Substitute the new symbols that
18913 gl_INTTYPES_H now generates.
18914 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
18916 2007-11-12 Bruno Haible <bruno@clisp.org>
18918 Tests for Unicode character classification functions.
18920 * modules/unictype/bidicategory-byname-tests: New file.
18921 * modules/unictype/bidicategory-name-tests: New file.
18922 * modules/unictype/bidicategory-of-tests: New file.
18923 * modules/unictype/bidicategory-test-tests: New file.
18924 * modules/unictype/block-list-tests: New file.
18925 * modules/unictype/block-of-tests: New file.
18926 * modules/unictype/block-test-tests: New file.
18927 * modules/unictype/category-C-tests: New file.
18928 * modules/unictype/category-Cc-tests: New file.
18929 * modules/unictype/category-Cf-tests: New file.
18930 * modules/unictype/category-Cn-tests: New file.
18931 * modules/unictype/category-Co-tests: New file.
18932 * modules/unictype/category-Cs-tests: New file.
18933 * modules/unictype/category-L-tests: New file.
18934 * modules/unictype/category-Ll-tests: New file.
18935 * modules/unictype/category-Lm-tests: New file.
18936 * modules/unictype/category-Lo-tests: New file.
18937 * modules/unictype/category-Lt-tests: New file.
18938 * modules/unictype/category-Lu-tests: New file.
18939 * modules/unictype/category-M-tests: New file.
18940 * modules/unictype/category-Mc-tests: New file.
18941 * modules/unictype/category-Me-tests: New file.
18942 * modules/unictype/category-Mn-tests: New file.
18943 * modules/unictype/category-N-tests: New file.
18944 * modules/unictype/category-Nd-tests: New file.
18945 * modules/unictype/category-Nl-tests: New file.
18946 * modules/unictype/category-No-tests: New file.
18947 * modules/unictype/category-P-tests: New file.
18948 * modules/unictype/category-Pc-tests: New file.
18949 * modules/unictype/category-Pd-tests: New file.
18950 * modules/unictype/category-Pe-tests: New file.
18951 * modules/unictype/category-Pf-tests: New file.
18952 * modules/unictype/category-Pi-tests: New file.
18953 * modules/unictype/category-Po-tests: New file.
18954 * modules/unictype/category-Ps-tests: New file.
18955 * modules/unictype/category-S-tests: New file.
18956 * modules/unictype/category-Sc-tests: New file.
18957 * modules/unictype/category-Sk-tests: New file.
18958 * modules/unictype/category-Sm-tests: New file.
18959 * modules/unictype/category-So-tests: New file.
18960 * modules/unictype/category-Z-tests: New file.
18961 * modules/unictype/category-Zl-tests: New file.
18962 * modules/unictype/category-Zp-tests: New file.
18963 * modules/unictype/category-Zs-tests: New file.
18964 * modules/unictype/category-and-not-tests: New file.
18965 * modules/unictype/category-and-tests: New file.
18966 * modules/unictype/category-byname-tests: New file.
18967 * modules/unictype/category-name-tests: New file.
18968 * modules/unictype/category-none-tests: New file.
18969 * modules/unictype/category-of-tests: New file.
18970 * modules/unictype/category-or-tests: New file.
18971 * modules/unictype/category-test-withtable-tests: New file.
18972 * modules/unictype/combining-class-tests: New file.
18973 * modules/unictype/ctype-alnum-tests: New file.
18974 * modules/unictype/ctype-alpha-tests: New file.
18975 * modules/unictype/ctype-blank-tests: New file.
18976 * modules/unictype/ctype-cntrl-tests: New file.
18977 * modules/unictype/ctype-digit-tests: New file.
18978 * modules/unictype/ctype-graph-tests: New file.
18979 * modules/unictype/ctype-lower-tests: New file.
18980 * modules/unictype/ctype-print-tests: New file.
18981 * modules/unictype/ctype-punct-tests: New file.
18982 * modules/unictype/ctype-space-tests: New file.
18983 * modules/unictype/ctype-upper-tests: New file.
18984 * modules/unictype/ctype-xdigit-tests: New file.
18985 * modules/unictype/decimal-digit-tests: New file.
18986 * modules/unictype/digit-tests: New file.
18987 * modules/unictype/mirror-tests: New file.
18988 * modules/unictype/numeric-tests: New file.
18989 * modules/unictype/property-alphabetic-tests: New file.
18990 * modules/unictype/property-ascii-hex-digit-tests: New file.
18991 * modules/unictype/property-bidi-arabic-digit-tests: New file.
18992 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
18993 * modules/unictype/property-bidi-block-separator-tests: New file.
18994 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
18995 * modules/unictype/property-bidi-common-separator-tests: New file.
18996 * modules/unictype/property-bidi-control-tests: New file.
18997 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
18998 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
18999 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
19000 * modules/unictype/property-bidi-european-digit-tests: New file.
19001 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
19002 * modules/unictype/property-bidi-left-to-right-tests: New file.
19003 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
19004 * modules/unictype/property-bidi-other-neutral-tests: New file.
19005 * modules/unictype/property-bidi-pdf-tests: New file.
19006 * modules/unictype/property-bidi-segment-separator-tests: New file.
19007 * modules/unictype/property-bidi-whitespace-tests: New file.
19008 * modules/unictype/property-byname-tests: New file.
19009 * modules/unictype/property-combining-tests: New file.
19010 * modules/unictype/property-composite-tests: New file.
19011 * modules/unictype/property-currency-symbol-tests: New file.
19012 * modules/unictype/property-dash-tests: New file.
19013 * modules/unictype/property-decimal-digit-tests: New file.
19014 * modules/unictype/property-default-ignorable-code-point-tests: New file.
19015 * modules/unictype/property-deprecated-tests: New file.
19016 * modules/unictype/property-diacritic-tests: New file.
19017 * modules/unictype/property-extender-tests: New file.
19018 * modules/unictype/property-format-control-tests: New file.
19019 * modules/unictype/property-grapheme-base-tests: New file.
19020 * modules/unictype/property-grapheme-extend-tests: New file.
19021 * modules/unictype/property-grapheme-link-tests: New file.
19022 * modules/unictype/property-hex-digit-tests: New file.
19023 * modules/unictype/property-hyphen-tests: New file.
19024 * modules/unictype/property-id-continue-tests: New file.
19025 * modules/unictype/property-id-start-tests: New file.
19026 * modules/unictype/property-ideographic-tests: New file.
19027 * modules/unictype/property-ids-binary-operator-tests: New file.
19028 * modules/unictype/property-ids-trinary-operator-tests: New file.
19029 * modules/unictype/property-ignorable-control-tests: New file.
19030 * modules/unictype/property-iso-control-tests: New file.
19031 * modules/unictype/property-join-control-tests: New file.
19032 * modules/unictype/property-left-of-pair-tests: New file.
19033 * modules/unictype/property-line-separator-tests: New file.
19034 * modules/unictype/property-logical-order-exception-tests: New file.
19035 * modules/unictype/property-lowercase-tests: New file.
19036 * modules/unictype/property-math-tests: New file.
19037 * modules/unictype/property-non-break-tests: New file.
19038 * modules/unictype/property-not-a-character-tests: New file.
19039 * modules/unictype/property-numeric-tests: New file.
19040 * modules/unictype/property-other-alphabetic-tests: New file.
19041 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
19042 * modules/unictype/property-other-grapheme-extend-tests: New file.
19043 * modules/unictype/property-other-id-continue-tests: New file.
19044 * modules/unictype/property-other-id-start-tests: New file.
19045 * modules/unictype/property-other-lowercase-tests: New file.
19046 * modules/unictype/property-other-math-tests: New file.
19047 * modules/unictype/property-other-uppercase-tests: New file.
19048 * modules/unictype/property-paired-punctuation-tests: New file.
19049 * modules/unictype/property-paragraph-separator-tests: New file.
19050 * modules/unictype/property-pattern-syntax-tests: New file.
19051 * modules/unictype/property-pattern-white-space-tests: New file.
19052 * modules/unictype/property-private-use-tests: New file.
19053 * modules/unictype/property-punctuation-tests: New file.
19054 * modules/unictype/property-quotation-mark-tests: New file.
19055 * modules/unictype/property-radical-tests: New file.
19056 * modules/unictype/property-sentence-terminal-tests: New file.
19057 * modules/unictype/property-soft-dotted-tests: New file.
19058 * modules/unictype/property-space-tests: New file.
19059 * modules/unictype/property-terminal-punctuation-tests: New file.
19060 * modules/unictype/property-test-tests: New file.
19061 * modules/unictype/property-titlecase-tests: New file.
19062 * modules/unictype/property-unassigned-code-value-tests: New file.
19063 * modules/unictype/property-unified-ideograph-tests: New file.
19064 * modules/unictype/property-uppercase-tests: New file.
19065 * modules/unictype/property-variation-selector-tests: New file.
19066 * modules/unictype/property-white-space-tests: New file.
19067 * modules/unictype/property-xid-continue-tests: New file.
19068 * modules/unictype/property-xid-start-tests: New file.
19069 * modules/unictype/property-zero-width-tests: New file.
19070 * modules/unictype/scripts-tests: New file.
19071 * modules/unictype/syntax-c-ident-tests: New file.
19072 * modules/unictype/syntax-c-whitespace-tests: New file.
19073 * modules/unictype/syntax-java-ident-tests: New file.
19074 * modules/unictype/syntax-java-whitespace-tests: New file.
19075 * tests/unictype/test-bidi_byname.c: New file.
19076 * tests/unictype/test-bidi_name.c: New file.
19077 * tests/unictype/test-bidi_of.c: New file.
19078 * tests/unictype/test-bidi_test.c: New file.
19079 * tests/unictype/test-block_list.c: New file.
19080 * tests/unictype/test-block_of.c: New file.
19081 * tests/unictype/test-block_test.c: New file.
19082 * tests/unictype/test-categ_and.c: New file.
19083 * tests/unictype/test-categ_and_not.c: New file.
19084 * tests/unictype/test-categ_byname.c: New file.
19085 * tests/unictype/test-categ_name.c: New file.
19086 * tests/unictype/test-categ_none.c: New file.
19087 * tests/unictype/test-categ_of.c: New file.
19088 * tests/unictype/test-categ_or.c: New file.
19089 * tests/unictype/test-categ_test_withtable.c: New file.
19090 * tests/unictype/test-combining.c: New file.
19091 * tests/unictype/test-decdigit.c: New file.
19092 * tests/unictype/test-digit.c: New file.
19093 * tests/unictype/test-mirror.c: New file.
19094 * tests/unictype/test-numeric.c: New file.
19095 * tests/unictype/test-pr_byname.c: New file.
19096 * tests/unictype/test-pr_test.c: New file.
19097 * tests/unictype/test-predicate-part1.h: New file.
19098 * tests/unictype/test-predicate-part2.h: New file.
19099 * tests/unictype/test-scripts.c: New file.
19100 * tests/unictype/test-sy_c_ident.c: New file.
19101 * tests/unictype/test-sy_java_ident.c: New file.
19103 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
19105 * tests/unictype/test-categ_Cc.c: Likewise.
19106 * tests/unictype/test-categ_Cf.c: Likewise.
19107 * tests/unictype/test-categ_Cn.c: Likewise.
19108 * tests/unictype/test-categ_Co.c: Likewise.
19109 * tests/unictype/test-categ_Cs.c: Likewise.
19110 * tests/unictype/test-categ_L.c: Likewise.
19111 * tests/unictype/test-categ_Ll.c: Likewise.
19112 * tests/unictype/test-categ_Lm.c: Likewise.
19113 * tests/unictype/test-categ_Lo.c: Likewise.
19114 * tests/unictype/test-categ_Lt.c: Likewise.
19115 * tests/unictype/test-categ_Lu.c: Likewise.
19116 * tests/unictype/test-categ_M.c: Likewise.
19117 * tests/unictype/test-categ_Mc.c: Likewise.
19118 * tests/unictype/test-categ_Me.c: Likewise.
19119 * tests/unictype/test-categ_Mn.c: Likewise.
19120 * tests/unictype/test-categ_N.c: Likewise.
19121 * tests/unictype/test-categ_Nd.c: Likewise.
19122 * tests/unictype/test-categ_Nl.c: Likewise.
19123 * tests/unictype/test-categ_No.c: Likewise.
19124 * tests/unictype/test-categ_P.c: Likewise.
19125 * tests/unictype/test-categ_Pc.c: Likewise.
19126 * tests/unictype/test-categ_Pd.c: Likewise.
19127 * tests/unictype/test-categ_Pe.c: Likewise.
19128 * tests/unictype/test-categ_Pf.c: Likewise.
19129 * tests/unictype/test-categ_Pi.c: Likewise.
19130 * tests/unictype/test-categ_Po.c: Likewise.
19131 * tests/unictype/test-categ_Ps.c: Likewise.
19132 * tests/unictype/test-categ_S.c: Likewise.
19133 * tests/unictype/test-categ_Sc.c: Likewise.
19134 * tests/unictype/test-categ_Sk.c: Likewise.
19135 * tests/unictype/test-categ_Sm.c: Likewise.
19136 * tests/unictype/test-categ_So.c: Likewise.
19137 * tests/unictype/test-categ_Z.c: Likewise.
19138 * tests/unictype/test-categ_Zl.c: Likewise.
19139 * tests/unictype/test-categ_Zp.c: Likewise.
19140 * tests/unictype/test-categ_Zs.c: Likewise.
19141 * tests/unictype/test-ctype_alnum.c: Likewise.
19142 * tests/unictype/test-ctype_alpha.c: Likewise.
19143 * tests/unictype/test-ctype_blank.c: Likewise.
19144 * tests/unictype/test-ctype_cntrl.c: Likewise.
19145 * tests/unictype/test-ctype_digit.c: Likewise.
19146 * tests/unictype/test-ctype_graph.c: Likewise.
19147 * tests/unictype/test-ctype_lower.c: Likewise.
19148 * tests/unictype/test-ctype_print.c: Likewise.
19149 * tests/unictype/test-ctype_punct.c: Likewise.
19150 * tests/unictype/test-ctype_space.c: Likewise.
19151 * tests/unictype/test-ctype_upper.c: Likewise.
19152 * tests/unictype/test-ctype_xdigit.c: Likewise.
19153 * tests/unictype/test-decdigit.h: Likewise.
19154 * tests/unictype/test-digit.h: Likewise.
19155 * tests/unictype/test-numeric.h: Likewise.
19156 * tests/unictype/test-pr_alphabetic.c: Likewise.
19157 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
19158 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19159 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19160 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
19161 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19162 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
19163 * tests/unictype/test-pr_bidi_control.c: Likewise.
19164 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
19165 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
19166 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19167 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19168 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19169 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19170 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19171 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19172 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
19173 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
19174 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
19175 * tests/unictype/test-pr_combining.c: Likewise.
19176 * tests/unictype/test-pr_composite.c: Likewise.
19177 * tests/unictype/test-pr_currency_symbol.c: Likewise.
19178 * tests/unictype/test-pr_dash.c: Likewise.
19179 * tests/unictype/test-pr_decimal_digit.c: Likewise.
19180 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
19181 * tests/unictype/test-pr_deprecated.c: Likewise.
19182 * tests/unictype/test-pr_diacritic.c: Likewise.
19183 * tests/unictype/test-pr_extender.c: Likewise.
19184 * tests/unictype/test-pr_format_control.c: Likewise.
19185 * tests/unictype/test-pr_grapheme_base.c: Likewise.
19186 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19187 * tests/unictype/test-pr_grapheme_link.c: Likewise.
19188 * tests/unictype/test-pr_hex_digit.c: Likewise.
19189 * tests/unictype/test-pr_hyphen.c: Likewise.
19190 * tests/unictype/test-pr_id_continue.c: Likewise.
19191 * tests/unictype/test-pr_id_start.c: Likewise.
19192 * tests/unictype/test-pr_ideographic.c: Likewise.
19193 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
19194 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
19195 * tests/unictype/test-pr_ignorable_control.c: Likewise.
19196 * tests/unictype/test-pr_iso_control.c: Likewise.
19197 * tests/unictype/test-pr_join_control.c: Likewise.
19198 * tests/unictype/test-pr_left_of_pair.c: Likewise.
19199 * tests/unictype/test-pr_line_separator.c: Likewise.
19200 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19201 * tests/unictype/test-pr_lowercase.c: Likewise.
19202 * tests/unictype/test-pr_math.c: Likewise.
19203 * tests/unictype/test-pr_non_break.c: Likewise.
19204 * tests/unictype/test-pr_not_a_character.c: Likewise.
19205 * tests/unictype/test-pr_numeric.c: Likewise.
19206 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19207 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
19208 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
19209 * tests/unictype/test-pr_other_id_continue.c: Likewise.
19210 * tests/unictype/test-pr_other_id_start.c: Likewise.
19211 * tests/unictype/test-pr_other_lowercase.c: Likewise.
19212 * tests/unictype/test-pr_other_math.c: Likewise.
19213 * tests/unictype/test-pr_other_uppercase.c: Likewise.
19214 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
19215 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
19216 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
19217 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
19218 * tests/unictype/test-pr_private_use.c: Likewise.
19219 * tests/unictype/test-pr_punctuation.c: Likewise.
19220 * tests/unictype/test-pr_quotation_mark.c: Likewise.
19221 * tests/unictype/test-pr_radical.c: Likewise.
19222 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19223 * tests/unictype/test-pr_soft_dotted.c: Likewise.
19224 * tests/unictype/test-pr_space.c: Likewise.
19225 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19226 * tests/unictype/test-pr_titlecase.c: Likewise.
19227 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19228 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19229 * tests/unictype/test-pr_uppercase.c: Likewise.
19230 * tests/unictype/test-pr_variation_selector.c: Likewise.
19231 * tests/unictype/test-pr_white_space.c: Likewise.
19232 * tests/unictype/test-pr_xid_continue.c: Likewise.
19233 * tests/unictype/test-pr_xid_start.c: Likewise.
19234 * tests/unictype/test-pr_zero_width.c: Likewise.
19235 * tests/unictype/test-sy_c_whitespace.c: Likewise.
19236 * tests/unictype/test-sy_java_whitespace.c: Likewise.
19238 2007-11-12 Bruno Haible <bruno@clisp.org>
19240 Unicode character classification functions.
19241 * lib/unictype.h: New file.
19242 * modules/unictype/base: New file.
19243 * modules/unictype/category-L: New file.
19244 * modules/unictype/category-Lu: New file.
19245 * modules/unictype/category-Ll: New file.
19246 * modules/unictype/category-Lt: New file.
19247 * modules/unictype/category-Lm: New file.
19248 * modules/unictype/category-Lo: New file.
19249 * modules/unictype/category-M: New file.
19250 * modules/unictype/category-Mn: New file.
19251 * modules/unictype/category-Mc: New file.
19252 * modules/unictype/category-Me: New file.
19253 * modules/unictype/category-N: New file.
19254 * modules/unictype/category-Nd: New file.
19255 * modules/unictype/category-Nl: New file.
19256 * modules/unictype/category-No: New file.
19257 * modules/unictype/category-P: New file.
19258 * modules/unictype/category-Pc: New file.
19259 * modules/unictype/category-Pd: New file.
19260 * modules/unictype/category-Ps: New file.
19261 * modules/unictype/category-Pe: New file.
19262 * modules/unictype/category-Pi: New file.
19263 * modules/unictype/category-Pf: New file.
19264 * modules/unictype/category-Po: New file.
19265 * modules/unictype/category-S: New file.
19266 * modules/unictype/category-Sm: New file.
19267 * modules/unictype/category-Sc: New file.
19268 * modules/unictype/category-Sk: New file.
19269 * modules/unictype/category-So: New file.
19270 * modules/unictype/category-Z: New file.
19271 * modules/unictype/category-Zs: New file.
19272 * modules/unictype/category-Zl: New file.
19273 * modules/unictype/category-Zp: New file.
19274 * modules/unictype/category-C: New file.
19275 * modules/unictype/category-Cc: New file.
19276 * modules/unictype/category-Cf: New file.
19277 * modules/unictype/category-Cs: New file.
19278 * modules/unictype/category-Co: New file.
19279 * modules/unictype/category-Cn: New file.
19280 * modules/unictype/category-or: New file.
19281 * modules/unictype/category-of: New file.
19282 * modules/unictype/category-test: New file.
19283 * modules/unictype/category-test-withtable: New file.
19284 * modules/unictype/category-byname: New file.
19285 * modules/unictype/category-none: New file.
19286 * modules/unictype/category-and: New file.
19287 * modules/unictype/category-and-not: New file.
19288 * modules/unictype/category-name: New file.
19289 * modules/unictype/combining-class: New file.
19290 * modules/unictype/category-all: New file.
19291 * modules/unictype/bidicategory-all: New file.
19292 * modules/unictype/bidicategory-byname: New file.
19293 * modules/unictype/bidicategory-name: New file.
19294 * modules/unictype/bidicategory-of: New file.
19295 * modules/unictype/bidicategory-test: New file.
19296 * modules/unictype/decimal-digit: New file.
19297 * modules/unictype/digit: New file.
19298 * modules/unictype/numeric: New file.
19299 * modules/unictype/mirror: New file.
19300 * modules/unictype/property-white-space: New file.
19301 * modules/unictype/property-alphabetic: New file.
19302 * modules/unictype/property-other-alphabetic: New file.
19303 * modules/unictype/property-not-a-character: New file.
19304 * modules/unictype/property-default-ignorable-code-point: New file.
19305 * modules/unictype/property-other-default-ignorable-code-point: New
19307 * modules/unictype/property-deprecated: New file.
19308 * modules/unictype/property-logical-order-exception: New file.
19309 * modules/unictype/property-variation-selector: New file.
19310 * modules/unictype/property-private-use: New file.
19311 * modules/unictype/property-unassigned-code-value: New file.
19312 * modules/unictype/property-uppercase: New file.
19313 * modules/unictype/property-other-uppercase: New file.
19314 * modules/unictype/property-lowercase: New file.
19315 * modules/unictype/property-other-lowercase: New file.
19316 * modules/unictype/property-titlecase: New file.
19317 * modules/unictype/property-soft-dotted: New file.
19318 * modules/unictype/property-id-start: New file.
19319 * modules/unictype/property-other-id-start: New file.
19320 * modules/unictype/property-id-continue: New file.
19321 * modules/unictype/property-other-id-continue: New file.
19322 * modules/unictype/property-xid-start: New file.
19323 * modules/unictype/property-xid-continue: New file.
19324 * modules/unictype/property-pattern-white-space: New file.
19325 * modules/unictype/property-pattern-syntax: New file.
19326 * modules/unictype/property-join-control: New file.
19327 * modules/unictype/property-grapheme-base: New file.
19328 * modules/unictype/property-grapheme-extend: New file.
19329 * modules/unictype/property-other-grapheme-extend: New file.
19330 * modules/unictype/property-grapheme-link: New file.
19331 * modules/unictype/property-bidi-control: New file.
19332 * modules/unictype/property-bidi-left-to-right: New file.
19333 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
19334 * modules/unictype/property-bidi-arabic-right-to-left: New file.
19335 * modules/unictype/property-bidi-european-digit: New file.
19336 * modules/unictype/property-bidi-eur-num-separator: New file.
19337 * modules/unictype/property-bidi-eur-num-terminator: New file.
19338 * modules/unictype/property-bidi-arabic-digit: New file.
19339 * modules/unictype/property-bidi-common-separator: New file.
19340 * modules/unictype/property-bidi-block-separator: New file.
19341 * modules/unictype/property-bidi-segment-separator: New file.
19342 * modules/unictype/property-bidi-whitespace: New file.
19343 * modules/unictype/property-bidi-non-spacing-mark: New file.
19344 * modules/unictype/property-bidi-boundary-neutral: New file.
19345 * modules/unictype/property-bidi-pdf: New file.
19346 * modules/unictype/property-bidi-embedding-or-override: New file.
19347 * modules/unictype/property-bidi-other-neutral: New file.
19348 * modules/unictype/property-hex-digit: New file.
19349 * modules/unictype/property-ascii-hex-digit: New file.
19350 * modules/unictype/property-ideographic: New file.
19351 * modules/unictype/property-unified-ideograph: New file.
19352 * modules/unictype/property-radical: New file.
19353 * modules/unictype/property-ids-binary-operator: New file.
19354 * modules/unictype/property-ids-trinary-operator: New file.
19355 * modules/unictype/property-zero-width: New file.
19356 * modules/unictype/property-space: New file.
19357 * modules/unictype/property-non-break: New file.
19358 * modules/unictype/property-iso-control: New file.
19359 * modules/unictype/property-format-control: New file.
19360 * modules/unictype/property-dash: New file.
19361 * modules/unictype/property-hyphen: New file.
19362 * modules/unictype/property-punctuation: New file.
19363 * modules/unictype/property-line-separator: New file.
19364 * modules/unictype/property-paragraph-separator: New file.
19365 * modules/unictype/property-quotation-mark: New file.
19366 * modules/unictype/property-sentence-terminal: New file.
19367 * modules/unictype/property-terminal-punctuation: New file.
19368 * modules/unictype/property-currency-symbol: New file.
19369 * modules/unictype/property-math: New file.
19370 * modules/unictype/property-other-math: New file.
19371 * modules/unictype/property-paired-punctuation: New file.
19372 * modules/unictype/property-left-of-pair: New file.
19373 * modules/unictype/property-combining: New file.
19374 * modules/unictype/property-composite: New file.
19375 * modules/unictype/property-decimal-digit: New file.
19376 * modules/unictype/property-numeric: New file.
19377 * modules/unictype/property-diacritic: New file.
19378 * modules/unictype/property-extender: New file.
19379 * modules/unictype/property-ignorable-control: New file.
19380 * modules/unictype/property-test: New file.
19381 * modules/unictype/property-byname: New file.
19382 * modules/unictype/property-all: New file.
19383 * modules/unictype/scripts: New file.
19384 * modules/unictype/scripts-all: New file.
19385 * modules/unictype/block-of: New file.
19386 * modules/unictype/block-test: New file.
19387 * modules/unictype/block-list: New file.
19388 * modules/unictype/block-all: New file.
19389 * modules/unictype/syntax-c-whitespace: New file.
19390 * modules/unictype/syntax-java-whitespace: New file.
19391 * modules/unictype/syntax-c-ident: New file.
19392 * modules/unictype/syntax-java-ident: New file.
19393 * modules/unictype/ctype-alnum: New file.
19394 * modules/unictype/ctype-alpha: New file.
19395 * modules/unictype/ctype-cntrl: New file.
19396 * modules/unictype/ctype-digit: New file.
19397 * modules/unictype/ctype-graph: New file.
19398 * modules/unictype/ctype-lower: New file.
19399 * modules/unictype/ctype-print: New file.
19400 * modules/unictype/ctype-punct: New file.
19401 * modules/unictype/ctype-space: New file.
19402 * modules/unictype/ctype-upper: New file.
19403 * modules/unictype/ctype-xdigit: New file.
19404 * modules/unictype/ctype-blank: New file.
19405 * lib/unictype/bidi_byname.c: New file.
19406 * lib/unictype/bidi_name.c: New file.
19407 * lib/unictype/bidi_of.c: New file.
19408 * lib/unictype/bidi_test.c: New file.
19409 * lib/unictype/bitmap.h: New file.
19410 * lib/unictype/block_test.c: New file.
19411 * lib/unictype/blocks.c: New file.
19412 * lib/unictype/categ_C.c: New file.
19413 * lib/unictype/categ_Cc.c: New file.
19414 * lib/unictype/categ_Cf.c: New file.
19415 * lib/unictype/categ_Cn.c: New file.
19416 * lib/unictype/categ_Co.c: New file.
19417 * lib/unictype/categ_Cs.c: New file.
19418 * lib/unictype/categ_L.c: New file.
19419 * lib/unictype/categ_Ll.c: New file.
19420 * lib/unictype/categ_Lm.c: New file.
19421 * lib/unictype/categ_Lo.c: New file.
19422 * lib/unictype/categ_Lt.c: New file.
19423 * lib/unictype/categ_Lu.c: New file.
19424 * lib/unictype/categ_M.c: New file.
19425 * lib/unictype/categ_Mc.c: New file.
19426 * lib/unictype/categ_Me.c: New file.
19427 * lib/unictype/categ_Mn.c: New file.
19428 * lib/unictype/categ_N.c: New file.
19429 * lib/unictype/categ_Nd.c: New file.
19430 * lib/unictype/categ_Nl.c: New file.
19431 * lib/unictype/categ_No.c: New file.
19432 * lib/unictype/categ_P.c: New file.
19433 * lib/unictype/categ_Pc.c: New file.
19434 * lib/unictype/categ_Pd.c: New file.
19435 * lib/unictype/categ_Pe.c: New file.
19436 * lib/unictype/categ_Pf.c: New file.
19437 * lib/unictype/categ_Pi.c: New file.
19438 * lib/unictype/categ_Po.c: New file.
19439 * lib/unictype/categ_Ps.c: New file.
19440 * lib/unictype/categ_S.c: New file.
19441 * lib/unictype/categ_Sc.c: New file.
19442 * lib/unictype/categ_Sk.c: New file.
19443 * lib/unictype/categ_Sm.c: New file.
19444 * lib/unictype/categ_So.c: New file.
19445 * lib/unictype/categ_Z.c: New file.
19446 * lib/unictype/categ_Zl.c: New file.
19447 * lib/unictype/categ_Zp.c: New file.
19448 * lib/unictype/categ_Zs.c: New file.
19449 * lib/unictype/categ_and.c: New file.
19450 * lib/unictype/categ_and_not.c: New file.
19451 * lib/unictype/categ_byname.c: New file.
19452 * lib/unictype/categ_name.c: New file.
19453 * lib/unictype/categ_none.c: New file.
19454 * lib/unictype/categ_of.c: New file.
19455 * lib/unictype/categ_or.c: New file.
19456 * lib/unictype/categ_test.c: New file.
19457 * lib/unictype/combining.c: New file.
19458 * lib/unictype/ctype_alnum.c: New file.
19459 * lib/unictype/ctype_alpha.c: New file.
19460 * lib/unictype/ctype_blank.c: New file.
19461 * lib/unictype/ctype_cntrl.c: New file.
19462 * lib/unictype/ctype_digit.c: New file.
19463 * lib/unictype/ctype_graph.c: New file.
19464 * lib/unictype/ctype_lower.c: New file.
19465 * lib/unictype/ctype_print.c: New file.
19466 * lib/unictype/ctype_punct.c: New file.
19467 * lib/unictype/ctype_space.c: New file.
19468 * lib/unictype/ctype_upper.c: New file.
19469 * lib/unictype/ctype_xdigit.c: New file.
19470 * lib/unictype/decdigit.c: New file.
19471 * lib/unictype/digit.c: New file.
19472 * lib/unictype/identsyntaxmap.h: New file.
19473 * lib/unictype/mirror.c: New file.
19474 * lib/unictype/numeric.c: New file.
19475 * lib/unictype/pr_alphabetic.c: New file.
19476 * lib/unictype/pr_ascii_hex_digit.c: New file.
19477 * lib/unictype/pr_bidi_arabic_digit.c: New file.
19478 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
19479 * lib/unictype/pr_bidi_block_separator.c: New file.
19480 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
19481 * lib/unictype/pr_bidi_common_separator.c: New file.
19482 * lib/unictype/pr_bidi_control.c: New file.
19483 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
19484 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
19485 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
19486 * lib/unictype/pr_bidi_european_digit.c: New file.
19487 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
19488 * lib/unictype/pr_bidi_left_to_right.c: New file.
19489 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
19490 * lib/unictype/pr_bidi_other_neutral.c: New file.
19491 * lib/unictype/pr_bidi_pdf.c: New file.
19492 * lib/unictype/pr_bidi_segment_separator.c: New file.
19493 * lib/unictype/pr_bidi_whitespace.c: New file.
19494 * lib/unictype/pr_byname.c: New file.
19495 * lib/unictype/pr_byname.gperf: New file.
19496 * lib/unictype/pr_combining.c: New file.
19497 * lib/unictype/pr_composite.c: New file.
19498 * lib/unictype/pr_currency_symbol.c: New file.
19499 * lib/unictype/pr_dash.c: New file.
19500 * lib/unictype/pr_decimal_digit.c: New file.
19501 * lib/unictype/pr_default_ignorable_code_point.c: New file.
19502 * lib/unictype/pr_deprecated.c: New file.
19503 * lib/unictype/pr_diacritic.c: New file.
19504 * lib/unictype/pr_extender.c: New file.
19505 * lib/unictype/pr_format_control.c: New file.
19506 * lib/unictype/pr_grapheme_base.c: New file.
19507 * lib/unictype/pr_grapheme_extend.c: New file.
19508 * lib/unictype/pr_grapheme_link.c: New file.
19509 * lib/unictype/pr_hex_digit.c: New file.
19510 * lib/unictype/pr_hyphen.c: New file.
19511 * lib/unictype/pr_id_continue.c: New file.
19512 * lib/unictype/pr_id_start.c: New file.
19513 * lib/unictype/pr_ideographic.c: New file.
19514 * lib/unictype/pr_ids_binary_operator.c: New file.
19515 * lib/unictype/pr_ids_trinary_operator.c: New file.
19516 * lib/unictype/pr_ignorable_control.c: New file.
19517 * lib/unictype/pr_iso_control.c: New file.
19518 * lib/unictype/pr_join_control.c: New file.
19519 * lib/unictype/pr_left_of_pair.c: New file.
19520 * lib/unictype/pr_line_separator.c: New file.
19521 * lib/unictype/pr_logical_order_exception.c: New file.
19522 * lib/unictype/pr_lowercase.c: New file.
19523 * lib/unictype/pr_math.c: New file.
19524 * lib/unictype/pr_non_break.c: New file.
19525 * lib/unictype/pr_not_a_character.c: New file.
19526 * lib/unictype/pr_numeric.c: New file.
19527 * lib/unictype/pr_other_alphabetic.c: New file.
19528 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
19529 * lib/unictype/pr_other_grapheme_extend.c: New file.
19530 * lib/unictype/pr_other_id_continue.c: New file.
19531 * lib/unictype/pr_other_id_start.c: New file.
19532 * lib/unictype/pr_other_lowercase.c: New file.
19533 * lib/unictype/pr_other_math.c: New file.
19534 * lib/unictype/pr_other_uppercase.c: New file.
19535 * lib/unictype/pr_paired_punctuation.c: New file.
19536 * lib/unictype/pr_paragraph_separator.c: New file.
19537 * lib/unictype/pr_pattern_syntax.c: New file.
19538 * lib/unictype/pr_pattern_white_space.c: New file.
19539 * lib/unictype/pr_private_use.c: New file.
19540 * lib/unictype/pr_punctuation.c: New file.
19541 * lib/unictype/pr_quotation_mark.c: New file.
19542 * lib/unictype/pr_radical.c: New file.
19543 * lib/unictype/pr_sentence_terminal.c: New file.
19544 * lib/unictype/pr_soft_dotted.c: New file.
19545 * lib/unictype/pr_space.c: New file.
19546 * lib/unictype/pr_terminal_punctuation.c: New file.
19547 * lib/unictype/pr_test.c: New file.
19548 * lib/unictype/pr_titlecase.c: New file.
19549 * lib/unictype/pr_unassigned_code_value.c: New file.
19550 * lib/unictype/pr_unified_ideograph.c: New file.
19551 * lib/unictype/pr_uppercase.c: New file.
19552 * lib/unictype/pr_variation_selector.c: New file.
19553 * lib/unictype/pr_white_space.c: New file.
19554 * lib/unictype/pr_xid_continue.c: New file.
19555 * lib/unictype/pr_xid_start.c: New file.
19556 * lib/unictype/pr_zero_width.c: New file.
19557 * lib/unictype/scripts.c: New file.
19558 * lib/unictype/sy_c_ident.c: New file.
19559 * lib/unictype/sy_c_whitespace.c: New file.
19560 * lib/unictype/sy_java_ident.c: New file.
19561 * lib/unictype/sy_java_whitespace.c: New file.
19563 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
19565 * lib/unictype/blocks.h: Likewise.
19566 * lib/unictype/categ_C.h: Likewise.
19567 * lib/unictype/categ_Cc.h: Likewise.
19568 * lib/unictype/categ_Cf.h: Likewise.
19569 * lib/unictype/categ_Cn.h: Likewise.
19570 * lib/unictype/categ_Co.h: Likewise.
19571 * lib/unictype/categ_Cs.h: Likewise.
19572 * lib/unictype/categ_L.h: Likewise.
19573 * lib/unictype/categ_Ll.h: Likewise.
19574 * lib/unictype/categ_Lm.h: Likewise.
19575 * lib/unictype/categ_Lo.h: Likewise.
19576 * lib/unictype/categ_Lt.h: Likewise.
19577 * lib/unictype/categ_Lu.h: Likewise.
19578 * lib/unictype/categ_M.h: Likewise.
19579 * lib/unictype/categ_Mc.h: Likewise.
19580 * lib/unictype/categ_Me.h: Likewise.
19581 * lib/unictype/categ_Mn.h: Likewise.
19582 * lib/unictype/categ_N.h: Likewise.
19583 * lib/unictype/categ_Nd.h: Likewise.
19584 * lib/unictype/categ_Nl.h: Likewise.
19585 * lib/unictype/categ_No.h: Likewise.
19586 * lib/unictype/categ_P.h: Likewise.
19587 * lib/unictype/categ_Pc.h: Likewise.
19588 * lib/unictype/categ_Pd.h: Likewise.
19589 * lib/unictype/categ_Pe.h: Likewise.
19590 * lib/unictype/categ_Pf.h: Likewise.
19591 * lib/unictype/categ_Pi.h: Likewise.
19592 * lib/unictype/categ_Po.h: Likewise.
19593 * lib/unictype/categ_Ps.h: Likewise.
19594 * lib/unictype/categ_S.h: Likewise.
19595 * lib/unictype/categ_Sc.h: Likewise.
19596 * lib/unictype/categ_Sk.h: Likewise.
19597 * lib/unictype/categ_Sm.h: Likewise.
19598 * lib/unictype/categ_So.h: Likewise.
19599 * lib/unictype/categ_Z.h: Likewise.
19600 * lib/unictype/categ_Zl.h: Likewise.
19601 * lib/unictype/categ_Zp.h: Likewise.
19602 * lib/unictype/categ_Zs.h: Likewise.
19603 * lib/unictype/categ_of.h: Likewise.
19604 * lib/unictype/combining.h: Likewise.
19605 * lib/unictype/ctype_alnum.h: Likewise.
19606 * lib/unictype/ctype_alpha.h: Likewise.
19607 * lib/unictype/ctype_blank.h: Likewise.
19608 * lib/unictype/ctype_cntrl.h: Likewise.
19609 * lib/unictype/ctype_digit.h: Likewise.
19610 * lib/unictype/ctype_graph.h: Likewise.
19611 * lib/unictype/ctype_lower.h: Likewise.
19612 * lib/unictype/ctype_print.h: Likewise.
19613 * lib/unictype/ctype_punct.h: Likewise.
19614 * lib/unictype/ctype_space.h: Likewise.
19615 * lib/unictype/ctype_upper.h: Likewise.
19616 * lib/unictype/ctype_xdigit.h: Likewise.
19617 * lib/unictype/decdigit.h: Likewise.
19618 * lib/unictype/digit.h: Likewise.
19619 * lib/unictype/mirror.h: Likewise.
19620 * lib/unictype/numeric.h: Likewise.
19621 * lib/unictype/pr_alphabetic.h: Likewise.
19622 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19623 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19624 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19625 * lib/unictype/pr_bidi_block_separator.h: Likewise.
19626 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19627 * lib/unictype/pr_bidi_common_separator.h: Likewise.
19628 * lib/unictype/pr_bidi_control.h: Likewise.
19629 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19630 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19631 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19632 * lib/unictype/pr_bidi_european_digit.h: Likewise.
19633 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19634 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19635 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19636 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19637 * lib/unictype/pr_bidi_pdf.h: Likewise.
19638 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19639 * lib/unictype/pr_bidi_whitespace.h: Likewise.
19640 * lib/unictype/pr_combining.h: Likewise.
19641 * lib/unictype/pr_composite.h: Likewise.
19642 * lib/unictype/pr_currency_symbol.h: Likewise.
19643 * lib/unictype/pr_dash.h: Likewise.
19644 * lib/unictype/pr_decimal_digit.h: Likewise.
19645 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19646 * lib/unictype/pr_deprecated.h: Likewise.
19647 * lib/unictype/pr_diacritic.h: Likewise.
19648 * lib/unictype/pr_extender.h: Likewise.
19649 * lib/unictype/pr_format_control.h: Likewise.
19650 * lib/unictype/pr_grapheme_base.h: Likewise.
19651 * lib/unictype/pr_grapheme_extend.h: Likewise.
19652 * lib/unictype/pr_grapheme_link.h: Likewise.
19653 * lib/unictype/pr_hex_digit.h: Likewise.
19654 * lib/unictype/pr_hyphen.h: Likewise.
19655 * lib/unictype/pr_id_continue.h: Likewise.
19656 * lib/unictype/pr_id_start.h: Likewise.
19657 * lib/unictype/pr_ideographic.h: Likewise.
19658 * lib/unictype/pr_ids_binary_operator.h: Likewise.
19659 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19660 * lib/unictype/pr_ignorable_control.h: Likewise.
19661 * lib/unictype/pr_iso_control.h: Likewise.
19662 * lib/unictype/pr_join_control.h: Likewise.
19663 * lib/unictype/pr_left_of_pair.h: Likewise.
19664 * lib/unictype/pr_line_separator.h: Likewise.
19665 * lib/unictype/pr_logical_order_exception.h: Likewise.
19666 * lib/unictype/pr_lowercase.h: Likewise.
19667 * lib/unictype/pr_math.h: Likewise.
19668 * lib/unictype/pr_non_break.h: Likewise.
19669 * lib/unictype/pr_not_a_character.h: Likewise.
19670 * lib/unictype/pr_numeric.h: Likewise.
19671 * lib/unictype/pr_other_alphabetic.h: Likewise.
19672 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19673 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19674 * lib/unictype/pr_other_id_continue.h: Likewise.
19675 * lib/unictype/pr_other_id_start.h: Likewise.
19676 * lib/unictype/pr_other_lowercase.h: Likewise.
19677 * lib/unictype/pr_other_math.h: Likewise.
19678 * lib/unictype/pr_other_uppercase.h: Likewise.
19679 * lib/unictype/pr_paired_punctuation.h: Likewise.
19680 * lib/unictype/pr_paragraph_separator.h: Likewise.
19681 * lib/unictype/pr_pattern_syntax.h: Likewise.
19682 * lib/unictype/pr_pattern_white_space.h: Likewise.
19683 * lib/unictype/pr_private_use.h: Likewise.
19684 * lib/unictype/pr_punctuation.h: Likewise.
19685 * lib/unictype/pr_quotation_mark.h: Likewise.
19686 * lib/unictype/pr_radical.h: Likewise.
19687 * lib/unictype/pr_sentence_terminal.h: Likewise.
19688 * lib/unictype/pr_soft_dotted.h: Likewise.
19689 * lib/unictype/pr_space.h: Likewise.
19690 * lib/unictype/pr_terminal_punctuation.h: Likewise.
19691 * lib/unictype/pr_titlecase.h: Likewise.
19692 * lib/unictype/pr_unassigned_code_value.h: Likewise.
19693 * lib/unictype/pr_unified_ideograph.h: Likewise.
19694 * lib/unictype/pr_uppercase.h: Likewise.
19695 * lib/unictype/pr_variation_selector.h: Likewise.
19696 * lib/unictype/pr_white_space.h: Likewise.
19697 * lib/unictype/pr_xid_continue.h: Likewise.
19698 * lib/unictype/pr_xid_start.h: Likewise.
19699 * lib/unictype/pr_zero_width.h: Likewise.
19700 * lib/unictype/scripts.h: Likewise.
19701 * lib/unictype/scripts_byname.gperf: Likewise.
19702 * lib/unictype/sy_c_ident.h: Likewise.
19703 * lib/unictype/sy_c_whitespace.h: Likewise.
19704 * lib/unictype/sy_java_ident.h: Likewise.
19705 * lib/unictype/sy_java_whitespace.h: Likewise.
19707 * lib/unictype/Makefile: New file.
19708 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
19710 * lib/unictype/3level.h: New file, copied from glibc.
19711 * lib/unictype/3levelbit.h: New file.
19713 2007-11-11 Bruno Haible <bruno@clisp.org>
19715 * modules/gperf: New file.
19716 * modules/iconv_open (Depends-on): Add it.
19717 (Makefile.am): Remove the GPERF definition.
19719 2007-11-11 Bruno Haible <bruno@clisp.org>
19721 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
19722 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
19724 2007-11-11 Bruno Haible <bruno@clisp.org>
19726 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
19727 (usage): Remove function.
19729 2007-11-11 Bruno Haible <bruno@clisp.org>
19731 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
19732 gl_FUNC_CEILF_LIBS.
19733 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
19735 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
19736 gl_FUNC_CEILL_LIBS.
19737 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
19738 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
19739 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
19741 2007-11-11 Bruno Haible <bruno@clisp.org>
19743 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
19744 roundf were declared but do not exist on functions.
19745 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
19746 roundl were declared but do not exist on functions.
19747 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
19748 HAVE_FLOORL_AND_CEILL, respectively.
19749 Needed for Sun C on Solaris 10.
19751 2007-11-11 Bruno Haible <bruno@clisp.org>
19753 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
19754 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
19755 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
19756 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
19757 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
19758 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
19759 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
19761 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
19762 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
19763 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
19764 of HAVE_DECL_ROUND*.
19765 * modules/math (Makefile.am): Update.
19767 2007-11-10 Bruno Haible <bruno@clisp.org>
19769 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
19770 ptrdiff_t as m4/intl.m4.
19772 2007-11-10 Jim Meyering <meyering@redhat.com>
19774 Avoid link failure for the argmatch test.
19775 * tests/test-argmatch.c (usage): Define function to avoid a link
19776 failure: argmatch_die requires a usage function.
19778 2007-11-09 Bruno Haible <bruno@clisp.org>
19780 * doc/functions/snprintf.texi: Mention BeOS deficiency.
19781 * doc/functions/vsnprintf.texi: Likewise.
19782 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
19783 with a size argument < 2.
19785 2007-11-09 Bruno Haible <bruno@clisp.org>
19787 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
19788 buffer. Fixes an inefficiency introduced on 2007-11-03.
19790 2007-11-09 Bruno Haible <bruno@clisp.org>
19792 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
19793 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
19795 2007-11-08 Jim Meyering <meyering@redhat.com>
19797 Change cache variable name prefix "jm_" to "gl_" everywhere.
19798 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
19799 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
19800 * m4/uptime.m4: s/gl_/jm_/
19802 2007-11-07 Bruno Haible <bruno@clisp.org>
19804 Update to GNU gettext 0.17.
19805 * m4/intl.m4: Update to GNU gettext 0.17.
19806 * m4/po.m4: Likewise.
19807 * modules/gettext (Files): Remove m4/ulonglong.m4.
19808 (configure.ac): Require gettext infrastructure from version 0.17.
19810 2007-11-06 Bruno Haible <bruno@clisp.org>
19812 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
19813 symbolic values are not defined in a public header.
19814 * lib/freadable.c (freadable) [QNX]: Likewise.
19815 * lib/freadahead.c (freadahead) [QNX]: Likewise.
19816 * lib/freading.c (freading) [QNX]: Likewise.
19817 * lib/fseterr.c (fseterr) [QNX]: Likewise.
19818 * lib/fwritable.c (fwritable) [QNX]: Likewise.
19819 * lib/fwriting.c (fwriting) [QNX]: Likewise.
19820 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
19821 Reported by Alain Magloire.
19823 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
19825 2007-11-05 Bruno Haible <bruno@clisp.org>
19827 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
19828 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
19829 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
19830 Reported by Eric Blake.
19832 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19833 Bruno Haible <bruno@clisp.org>
19835 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
19836 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
19837 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
19838 (malloc): Undefine also before including <stdlib.h>.
19839 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
19840 Needed on OSF/1 4.0.
19842 2007-11-05 Jim Meyering <meyering@redhat.com>
19844 git-version-gen: sync from coreutils.
19845 * build-aux/git-version-gen: Add comments.
19846 Change the first '-' to '.' in the snapshot version string,
19847 e.g., 6.9-377-08144 -> 6.9.377-08144
19848 Remove first parameter.
19849 Don't declare a version "-dirty" merely because a time
19852 2007-11-04 Bruno Haible <bruno@clisp.org>
19854 * lib/lock.h: Protect all macro definitions containing an 'if'
19855 statement through a "do { ... } while (0)".
19856 * lib/tls.h: Likewise.
19858 2007-11-04 Bruno Haible <bruno@clisp.org>
19860 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
19862 2007-11-04 Bruno Haible <bruno@clisp.org>
19864 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
19865 * modules/fprintf-posix (Depends-on): Add nocrash.
19866 * modules/snprintf-posix (Depends-on): Likewise.
19867 * modules/sprintf-posix (Depends-on): Likewise.
19868 * modules/vasnprintf-posix (Depends-on): Likewise.
19869 * modules/vasprintf-posix (Depends-on): Likewise.
19870 * modules/vfprintf-posix (Depends-on): Likewise.
19871 * modules/vsnprintf-posix (Depends-on): Likewise.
19872 * modules/vsprintf-posix (Depends-on): Likewise.
19873 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19874 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19875 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19876 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19877 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19878 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19879 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19881 2007-11-04 Bruno Haible <bruno@clisp.org>
19883 * modules/nocrash: New file.
19884 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
19885 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
19887 2007-11-04 Bruno Haible <bruno@clisp.org>
19889 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
19890 precision handling.
19891 * tests/test-vasprintf-posix.c (test_function): Likewise.
19892 * tests/test-snprintf-posix.h (test_function): Likewise.
19893 * tests/test-sprintf-posix.h (test_function): Likewise.
19895 Fix *printf behaviour for large precisions on mingw and BeOS.
19896 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
19897 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
19898 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
19899 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19900 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19901 gl_PRINTF_PRECISION and test its result. Invoke
19902 gl_PREREQ_VASNPRINTF_PRECISION.
19903 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19904 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19905 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19906 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19907 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19908 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19909 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19910 * doc/functions/fprintf.texi: Update.
19911 * doc/functions/printf.texi: Update.
19912 * doc/functions/snprintf.texi: Update.
19913 * doc/functions/sprintf.texi: Update.
19914 * doc/functions/vfprintf.texi: Update.
19915 * doc/functions/vprintf.texi: Update.
19916 * doc/functions/vsnprintf.texi: Update.
19917 * doc/functions/vsprintf.texi: Update.
19919 2007-11-04 Bruno Haible <bruno@clisp.org>
19921 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
19923 2007-11-04 Bruno Haible <bruno@clisp.org>
19925 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
19926 Reported by Sylvain Beucler <beuc@gnu.org>.
19928 2007-11-03 Bruno Haible <bruno@clisp.org>
19930 * tests/test-fprintf-posix2.sh: New file.
19931 * tests/test-fprintf-posix2.c: New file.
19932 * modules/fprintf-posix-tests (Files): Add them.
19933 (TESTS): Add test-fprintf-posix2.sh.
19934 (configure.ac): Check for getrlimit and setrlimit.
19935 (check_PROGRAMS): Add test-fprintf-posix2.
19937 * tests/test-printf-posix2.sh: New file.
19938 * tests/test-printf-posix2.c: New file.
19939 * modules/printf-posix-tests (Files): Add them.
19940 (TESTS): Add test-printf-posix2.sh.
19941 (configure.ac): Check for getrlimit and setrlimit.
19942 (check_PROGRAMS): Add test-printf-posix2.
19944 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
19945 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
19946 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
19947 (decode_double): New function, copied from decode_long_double.
19948 (scale10_round_decimal_decoded): New function, extracted from
19949 scale10_round_decimal_long_double.
19950 (scale10_round_decimal_long_double): Use it.
19951 (scale10_round_decimal_double): New function.
19952 (floorlog10): New function.
19953 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
19954 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
19955 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19956 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19957 gl_PRINTF_ENOMEM and test its result. Invoke
19958 gl_PREREQ_VASNPRINTF_ENOMEM.
19959 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19960 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19961 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19962 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19963 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19964 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19965 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19966 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
19967 * modules/snprintf-posix (Depends-on): Likewise.
19968 * modules/sprintf-posix (Depends-on): Likewise.
19969 * modules/vasnprintf-posix (Depends-on): Likewise.
19970 * modules/vasprintf-posix (Depends-on): Likewise.
19971 * modules/vfprintf-posix (Depends-on): Likewise.
19972 * modules/vsnprintf-posix (Depends-on): Likewise.
19973 * modules/vsprintf-posix (Depends-on): Likewise.
19974 * doc/functions/fprintf.texi: Update.
19975 * doc/functions/printf.texi: Update.
19976 * doc/functions/snprintf.texi: Update.
19977 * doc/functions/sprintf.texi: Update.
19978 * doc/functions/vfprintf.texi: Update.
19979 * doc/functions/vprintf.texi: Update.
19980 * doc/functions/vsnprintf.texi: Update.
19981 * doc/functions/vsprintf.texi: Update.
19983 2007-11-03 Bruno Haible <bruno@clisp.org>
19985 * modules/frexp-nolibm-tests: New file.
19987 * modules/frexp-nolibm: New file.
19988 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
19990 2007-11-03 Bruno Haible <bruno@clisp.org>
19992 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
19993 value is C99 compliant.
19994 Needed for OSF/1 5.1.
19996 2007-11-03 Bruno Haible <bruno@clisp.org>
19998 Fix out-of-memory handling of vasnprintf.
19999 * lib/printf-parse.c: Include <errno.h>.
20000 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
20001 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
20004 2007-11-02 Eric Blake <ebb9@byu.net>
20006 Fix tests on cygwin.
20007 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
20009 2007-11-01 Bruno Haible <bruno@clisp.org>
20011 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
20013 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
20014 needed for POSIX compatibility.
20016 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
20018 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
20019 for compatibility with GNU.
20021 2007-11-01 Bruno Haible <bruno@clisp.org>
20023 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
20024 (putenv): Renamed from rpl_putenv. Change argument type from
20025 'const char *' to 'char *'.
20026 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
20027 of defining putenv in config.h, just set REPLACE_PUTENV.
20028 * modules/putenv (Depends-on): Add stdlib.
20029 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20030 (Include): Use <stdlib.h>.
20031 * lib/stdlib.in.h (putenv): New declaration.
20032 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
20034 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
20036 Needed for MacOS X 10.5.0.
20037 Reported by Peter O'Gorman <peter@pogma.com>.
20039 2007-11-01 Jim Meyering <meyering@redhat.com>
20041 Treat an empty date string exactly like "0".
20042 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
20043 if the remaining date string (to be parsed) is empty, use "0".
20044 Reported by Mischa Molhoek and discussed in this thread:
20045 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
20047 2007-10-31 Bruno Haible <bruno@clisp.org>
20049 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
20050 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
20051 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
20052 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
20053 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
20054 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
20056 2007-10-31 Bruno Haible <bruno@clisp.org>
20058 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
20059 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
20060 (AC_TYPE_LONG_LONG_INT): Use it.
20061 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
20063 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
20065 * modules/stdint (Files): Remove m4/ulonglong.m4.
20066 * modules/strtoull (Files): Use m4/longlong.m4 instead of
20068 * modules/strtoumax (Files): Likewise.
20070 2007-10-30 Bruno Haible <bruno@clisp.org>
20072 * modules/xvasprintf-posix: New file.
20073 Suggested by Eric Blake.
20075 2007-10-30 Bruno Haible <bruno@clisp.org>
20077 * modules/xprintf-posix-tests: New file.
20078 * tests/test-xprintf-posix.sh: New file.
20079 * tests/test-xprintf-posix.c: New file.
20080 * tests/test-xfprintf-posix.c: New file.
20082 * modules/xprintf-posix: New file.
20084 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20086 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
20087 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
20088 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
20090 2007-10-29 Bruno Haible <bruno@clisp.org>
20092 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
20093 contain the special marker '_cv_'.
20094 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20095 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20096 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20097 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20098 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20099 Reported by Ralf Wildenhues.
20101 2007-10-29 Bruno Haible <bruno@clisp.org>
20103 * gnulib-tool (func_import): When --lgpl is not specified, set
20104 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
20106 Reported by Simon Josefsson.
20108 2007-10-28 Bruno Haible <bruno@clisp.org>
20110 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
20111 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
20112 HAVE_DECL_ISFINITE.
20113 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20114 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
20115 HAVE_DECL_ISFINITE.
20117 2007-10-28 Bruno Haible <bruno@clisp.org>
20119 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
20120 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
20122 2007-10-28 Bruno Haible <bruno@clisp.org>
20124 Fix link errors with Sun C 5.0 on Solaris 10.
20125 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
20126 function is declared but not present in the compiler's libm.
20127 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20128 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
20129 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
20130 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
20131 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
20132 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
20133 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
20134 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20135 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
20136 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
20137 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
20140 2007-10-28 Bruno Haible <bruno@clisp.org>
20142 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
20143 gl_FUNC_FLOORL. Cache the result.
20144 (gl_FUNC_FLOORL): Use it.
20145 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
20146 gl_FUNC_CEILL. Cache the result.
20147 (gl_FUNC_CEILL): Use it.
20149 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
20150 gl_FUNC_FLOOR. Cache the result.
20151 (gl_FUNC_FLOOR): Use it.
20152 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
20153 gl_FUNC_CEIL. Cache the result.
20154 (gl_FUNC_CEIL): Use it.
20156 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
20157 gl_FUNC_FLOORF. Cache the result.
20158 (gl_FUNC_FLOORF): Use it.
20159 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
20160 gl_FUNC_CEILF. Cache the result.
20161 (gl_FUNC_CEILF): Use it.
20163 2007-10-28 Bruno Haible <bruno@clisp.org>
20165 * gnulib-tool: Allow specifying the LGPL version number through
20166 --lgpl=2 or --lgpl=3.
20167 (func_usage): Document --lgpl with argument.
20168 Handle --lgpl=... arguments.
20169 (func_import): Recognize also gl_LGPL calls with an argument. When
20170 --lgpl=2 is used and the module's license is just LGPL, report an
20171 error. Set sed_transform_lib_file according to the lgpl variable. In
20172 the generated files, use --lgpl or gl_LGPL invocations with argument,
20174 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
20176 * doc/gnulib-tool.texi (Modified imports): Update explanation of
20179 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20180 Bruno Haible <bruno@clisp.org>
20182 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
20183 (u16_uctomb_aux): Likewise.
20184 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
20186 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
20188 2007-10-28 Bruno Haible <bruno@clisp.org>
20190 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
20191 Invoke AM_GETTEXT_OPTION if it exists.
20192 * modules/vasprintf: Likewise.
20193 * modules/verror: Likewise.
20194 * modules/xprintf: Likewise.
20195 * modules/xvasprintf: Likewise.
20197 2007-10-27 Ben Pfaff <blp@gnu.org>
20199 * lib/math.in.h: Define isfinite macro and prototypes for
20200 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
20202 * m4/math_h.m4: New substitutions for isfinite module.
20203 * lib/isfinite.c: New file.
20204 * m4/isfinite.m4: New file.
20205 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
20206 * modules/isfinite: New file.
20207 * modules/isfinite-tests: New file.
20208 * tests/tests-isfinite.c: New file.
20209 * doc/functions/isfinite.texi: Mention isfinite module.
20210 * MODULES.html.sh: Mention new module.
20212 2007-10-27 Ben Pfaff <blp@gnu.org>
20214 Ralf Wildenhues reported that Tru64 4.0D declares the round
20215 functions but does not have definitions.
20216 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
20217 cannot be found in any library, set the output variable to
20218 "missing" instead of "".
20219 * m4/round.m4: Also use our substitute if we cannot find round in
20220 any library, even if it is declared.
20221 * m4/roundf.m4: Likewise for roundf.
20222 * m4/roundl.m4: Likewise for roundl.
20223 * lib/math.in.h: Undefine roundf, round, roundl before defining
20224 their replacements, to allow for hypothetical systems where these
20225 may be defined as macros but not available in libraries.
20227 2007-10-27 Bruno Haible <bruno@clisp.org>
20229 * doc/gnulib.texi: Invoke @firstparagraphindent.
20230 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
20232 (Source changes): New section.
20234 2007-10-26 Bruno Haible <bruno@clisp.org>
20236 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
20237 borrowed from autoconf.
20239 2007-10-26 Bruno Haible <bruno@clisp.org>
20241 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
20242 strerror returned the empty string. Needed on HP-UX 11.00.
20244 2007-10-24 Micah Cowan <micah@cowan.name>
20246 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
20247 * build-aux/bootstrap: Remove support for now-unnecessary option,
20248 --cvs-user, and envvars CVS_USER, CVS_RSH.
20250 2007-10-24 Jim Meyering <meyering@redhat.com>
20252 Avoid diagnostics from sha1sum when there is no cached checksum.
20253 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
20254 if the po.s1 file hasn't been created yet.
20256 * build-aux/bootstrap: Sync from coreutils:
20257 2007-10-24 Jim Meyering <meyering@redhat.com>
20258 Get gnulib from the git repository, not from an obsolete cvs one.
20259 * build-aux/bootstrap: Suggestion from Micah Cowan.
20260 2007-10-04 Jim Meyering <jim@meyering.net>
20261 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
20262 (update_po_files): Work also when there are no .po files in po/.
20264 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
20266 * README: Append ".git" to git and cg examples.
20267 Problem reported by Benoit Sigoure.
20269 2007-10-23 Micah Cowan <micah@cowan.name>
20271 * users.txt: Add wget.
20273 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20275 Fix linking of some unistdio tests on FreeBSD.
20276 * modules/unistdio/u16-vsnprintf-tests
20277 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
20278 * modules/unistdio/u16-vsprintf-tests
20279 (test_u16_vsnprintf1_LDADD): Likewise.
20280 * modules/unistdio/u32-vsnprintf-tests
20281 (test_u32_vsnprintf1_LDADD): Likewise.
20282 * modules/unistdio/u32-vsprintf-tests
20283 (test_u32_vsprintf1_LDADD): Likewise.
20284 * modules/unistdio/u8-vsnprintf-tests
20285 (test_u8_vsnprintf1_LDADD): Likewise.
20286 * modules/unistdio/u8-vsprintf-tests
20287 (test_u8_vsprintf1_LDADD): Likewise.
20288 * modules/unistdio/ulc-vsnprintf-tests
20289 (test_ulc_vsnprintf1_LDADD): Likewise.
20290 * modules/unistdio/ulc-vsprintf-tests
20291 (test_ulc_vsprintf1_LDADD): Likewise.
20293 Fix linking of some uniconv tests on FreeBSD.
20294 * modules/uniconv/u16-conv-from-enc-tests
20295 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
20296 * modules/uniconv/u16-conv-to-enc-tests
20297 (test_u16_conv_to_enc_LDADD): Likewise.
20298 * modules/uniconv/u16-strconv-from-enc-tests
20299 (test_u16_strconv_from_enc_LDADD): Likewise.
20300 * modules/uniconv/u16-strconv-to-enc-tests
20301 (test_u16_strconv_to_enc_LDADD): Likewise.
20302 * modules/uniconv/u32-conv-from-enc-tests
20303 (test_u32_conv_from_enc_LDADD): Likewise.
20304 * modules/uniconv/u32-conv-to-enc-tests
20305 (test_u32_conv_to_enc_LDADD): Likewise.
20306 * modules/uniconv/u32-strconv-from-enc-tests
20307 (test_u32_strconv_from_enc_LDADD): Likewise.
20308 * modules/uniconv/u32-strconv-to-enc-tests
20309 (test_u32_strconv_to_enc_LDADD): Likewise.
20310 * modules/uniconv/u8-conv-from-enc-tests
20311 (test_u8_conv_from_enc_LDADD): Likewise.
20312 * modules/uniconv/u8-conv-to-enc-tests
20313 (test_u8_conv_to_enc_LDADD): Likewise.
20314 * modules/uniconv/u8-strconv-from-enc-tests
20315 (test_u8_strconv_from_enc_LDADD): Likewise.
20316 * modules/uniconv/u8-strconv-to-enc-tests
20317 (test_u8_strconv_to_enc_LDADD): Likewise.
20319 2007-10-22 Bruno Haible <bruno@clisp.org>
20321 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
20324 2007-10-22 Eric Blake <ebb9@byu.net>
20326 Tweak x*printf documentation.
20327 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
20328 variable name and comments.
20329 Suggested by Bruno Haible.
20331 2007-10-22 Bruno Haible <bruno@clisp.org>
20333 * lib/acl.c (copy_acl): Fix file name in comment.
20335 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
20337 Fix Tru64 problem with stdbool.h.
20338 * lib/stdbool.in.h (false, true):
20339 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
20340 Don't declare as an enum in this situation; it runs afoul of Tru64.
20341 Problem reported by Steven M. Schweda in
20342 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
20344 2007-10-22 Eric Blake <ebb9@byu.net>
20346 Also wrap vf?printf.
20347 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
20348 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
20349 (xvprintf, xvfprintf): New functions.
20351 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20353 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
20354 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
20356 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
20357 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
20359 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
20361 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
20364 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20367 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
20368 Undef `sys' after including sys/table.h, for Tru64 4.0D.
20370 * tests/test-i-ring.c: Work for C89.
20372 2007-10-22 Bruno Haible <bruno@clisp.org>
20374 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
20375 -1u, in preprocessor expression, so that we don't test for the bug
20376 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
20377 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
20379 2007-10-22 Eric Blake <ebb9@byu.net>
20381 * tests/test-yesno.sh: Silence stderr during test.
20383 2007-10-22 Simon Josefsson <simon@josefsson.org>
20385 * modules/crypto/gc-camellia: New file.
20387 * m4/gc-camellia.m4: New file.
20389 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
20391 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
20393 2007-10-22 Simon Josefsson <simon@josefsson.org>
20395 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
20396 --help to stdout. Reported by sms@antinode.org (Steven
20399 2007-10-22 Simon Josefsson <simon@josefsson.org>
20401 * users.txt: Fix link to libksba.
20403 2007-10-21 Ben Pfaff <blp@gnu.org>
20405 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
20406 round.c roundf implementation that depends on floorf and ceilf to
20407 be tested unconditionally.
20409 2007-10-21 Ben Pfaff <blp@gnu.org>
20411 * m4/check-libm-func.m4: Removed.
20412 * m4/check-math-lib.m4: New file.
20413 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
20414 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
20415 definition and lack of AC_LIBOBJ([roundf]).
20416 * m4/roundl.m4: Ditto, and similarly for roundl.
20417 * modules/round: Reference new m4 file.
20418 * modules/roundf: Ditto.
20419 * modules/roundl: Ditto.
20420 * tests/test-round2.c (main): Use ROUND instead of round.
20421 Bug report from Bruno Haible.
20423 2007-10-21 Bruno Haible <bruno@clisp.org>
20425 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
20428 2007-10-21 Bruno Haible <bruno@clisp.org>
20430 * tests/test-wcwidth.c (main): Allow negative result for some control
20433 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
20434 Needed on OSF/1 5.1.
20436 2007-10-21 Bruno Haible <bruno@clisp.org>
20438 * tests/test-floorf1.c: Include isnanf.h.
20439 (main): Use isnanf() instead of isnan().
20440 * tests/test-ceilf1.c: Include isnanf.h.
20441 (main): Use isnanf() instead of isnan().
20442 * tests/test-truncf1.c: Include isnanf.h.
20443 (main): Use isnanf() instead of isnan().
20444 * tests/test-roundf1.c: Include isnanf.h.
20445 (main): Use isnanf() instead of isnan().
20447 2007-10-21 Eric Blake <ebb9@byu.net>
20449 * users.txt: Update URL for m4.
20451 2007-10-21 Bruno Haible <bruno@clisp.org>
20453 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
20455 2007-10-21 Bruno Haible <bruno@clisp.org>
20457 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
20458 Git's management files if the CVS files are not present.
20460 2007-10-20 Bruno Haible <bruno@clisp.org>
20462 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
20465 2007-10-20 Ben Pfaff <blp@gnu.org>
20467 * lib/math.in.h: Declare round, roundf, roundl if we are providing
20469 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
20470 * lib/round.c: New file.
20471 * lib/roundf.c: New file.
20472 * lib/roundl.c: New file.
20473 * m4/round.m4: New file.
20474 * m4/roundf.m4: New file.
20475 * m4/roundl.m4: New file.
20476 * m4/check-libm-func-m4: New file.
20477 * modules/math: Replace round, roundf, roundl related @VARS@ in
20479 * modules/round: New file.
20480 * modules/round-tests: New file.
20481 * modules/roundf: New file.
20482 * modules/roundf-tests: New file.
20483 * modules/roundl: New file.
20484 * modules/roundl-tests: New file.
20485 * tests/test-round1.c: New file.
20486 * tests/test-round2.c: New file.
20487 * tests/test-roundf1.c: New file.
20488 * tests/test-roundf2.c: New file.
20489 * tests/test-roundl.c: New file.
20490 * doc/functions/round.texi: Mention round module.
20491 * doc/functions/roundf.texi: Mention roundf module.
20492 * doc/functions/roundl.texi: Mention roundl module.
20493 * MODULES.html.sh: Mention new modules.
20494 Thanks to Bruno Haible for suggestions.
20496 2007-10-20 Jim Meyering <meyering@redhat.com>
20498 * lib/xprintf.c: Include <config.h> unconditionally.
20500 Change xprintf's license to GPL.
20501 * modules/xprintf (License): s/LGPL/GPL/, since this module
20502 depends on modules (exit and exitfail) which are GPL.
20503 Suggestion from Bruno Haible.
20506 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
20507 Use a clearer diagnostic.
20508 Patch from Bruno Haible.
20510 2007-10-20 Bruno Haible <bruno@clisp.org>
20512 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
20513 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
20514 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20516 2007-10-20 Bruno Haible <bruno@clisp.org>
20518 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
20519 precision in the comparison result > x - 1 or similar.
20520 * tests/test-ceilf2.c (correct_result_p): Likewise.
20521 * tests/test-truncf2.c (correct_result_p): Likewise.
20522 * tests/test-trunc2.c (correct_result_p): Likewise.
20523 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20525 2007-10-20 Bruno Haible <bruno@clisp.org>
20527 * modules/ceil: New file.
20528 * m4/ceil.m4: New file.
20529 * doc/functions/ceil.texi: Mention the 'ceil' module.
20531 2007-10-20 Bruno Haible <bruno@clisp.org>
20533 * modules/floor: New file.
20534 * m4/floor.m4: New file.
20535 * doc/functions/floor.texi: Mention the 'floor' module.
20537 2007-10-20 Bruno Haible <bruno@clisp.org>
20539 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
20541 * modules/floorf-tests (Depends-on): Likewise.
20542 * modules/truncf-tests (Depends-on): Likewise.
20543 * modules/trunc-tests (Depends-on): Likewise.
20544 Reported by Ben Pfaff.
20546 2007-10-19 Jim Meyering <meyering@redhat.com>
20548 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
20549 Don't bother testing specific errno values. Just test ferror.
20551 New module: xprintf
20552 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
20554 2007-10-19 Bruno Haible <bruno@clisp.org>
20556 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
20558 * modules/javaexec (Makefile.am): Likewise.
20559 * modules/relocatable-prog (Makefile.am): Likewise.
20560 Suggested by Jim Meyering.
20562 2007-10-18 Bruno Haible <bruno@clisp.org>
20564 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
20565 Reported by Jim Meyering.
20567 2007-10-18 Eric Blake <ebb9@byu.net>
20569 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
20571 2007-10-18 Bruno Haible <bruno@clisp.org>
20573 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
20574 the format string into writable memory. Needed in Fortify conditions.
20576 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
20577 Bruno Haible <bruno@clisp.org>
20579 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
20580 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
20581 * modules/trim (Depends-on): Add mbchar.
20582 (configure.ac): Add gl_FUNC_MBRTOWC.
20583 (Makefile.am): Augment lib_SOURCES.
20585 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
20587 Modify glob.c to use fstatat and dirfd, to simplify it.
20588 Suggested by Eric Blake.
20589 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
20590 Don't include <stdbool.h>; not used.
20591 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
20592 (link_exists_p): Simplify implementation, since we can now assume
20594 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
20596 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20598 * gnulib-tool (func_get_dependencies): Fix sed script to
20601 2007-10-17 Bruno Haible <bruno@clisp.org>
20603 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
20604 allow locale names without encoding suffix.
20605 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20606 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20608 2007-10-16 Bruno Haible <bruno@clisp.org>
20610 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
20611 * lib/getgroups.c (getgroups): Likewise.
20612 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
20614 2007-10-16 Bruno Haible <bruno@clisp.org>
20616 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
20617 * modules/malloc-posix (License): Likewise.
20618 * modules/realloc-posix (License): Likewise.
20619 * modules/calloc-posix (License): Likewise.
20620 * modules/intprops (License): Change from GPL to LGPL, with
20621 Paul Eggert's approval.
20623 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
20625 Merge glibc changes into lib/glob.c.
20627 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
20628 2007-10-15 04:59:03 UTC. Here are the changes:
20630 2007-10-14 Ulrich Drepper <drepper@redhat.com>
20632 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
20634 * lib/glob.c: Add some branch prediction throughout.
20636 2007-10-07 Ulrich Drepper <drepper@redhat.com>
20639 * lib/glob.c (glob): Recognize patterns starting \/.
20641 2007-02-14 Jakub Jelinek <jakub@redhat.com>
20644 * lib/glob.c (attribute_hidden): Define if not defined.
20645 (glob): Unescape dirname, filename or username when needed and not
20646 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
20647 is NULL. Handle unescaped [ in pattern without closing ].
20648 Don't pass GLOB_CHECK down to recursive glob for directories.
20649 (__glob_pattern_type): New function.
20650 (__glob_pattern_p): Implement using __glob_pattern_type.
20651 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
20652 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
20653 Remove unreachable code.
20655 2006-09-30 Ulrich Drepper <drepper@redhat.com>
20657 * lib/glob.c (glob_in_dir): Add some comments and asserts to
20658 explain why there are no leaks.
20660 2006-09-25 Jakub Jelinek <jakub@redhat.com>
20663 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
20664 time, rather allocate increasingly bigger arrays of pointers, if
20665 possible with alloca, if too large with malloc.
20667 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
20669 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
20670 Problem reported by H.Merijn Brand in
20671 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
20672 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
20673 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20675 2007-10-15 Bruno Haible <bruno@clisp.org>
20677 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
20678 with explicit rpl_ prefix.
20679 * lib/fopen.c (fopen): Likewise.
20680 * lib/freopen.c (freopen): Likewise.
20681 * lib/iconv.c (iconv): Likewise.
20682 * lib/iconv_close.c (iconv_close): Likewise.
20684 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20686 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
20688 2007-10-15 Bruno Haible <bruno@clisp.org>
20690 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
20691 <stddef.h> instead of <stdlib.h> since we only need NULL.
20692 Reported by Ben Pfaff <blp@cs.stanford.edu>.
20694 2007-10-15 Bruno Haible <bruno@clisp.org>
20696 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
20697 Replace paragraph talking about LIBOBJS.
20698 Reported by Colin Watson <cjwatson@debian.org>.
20700 2007-10-15 Bruno Haible <bruno@clisp.org>
20702 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
20703 <stdlib.h> before using NULL.
20705 2007-10-15 Simon Josefsson <simon@josefsson.org>
20707 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
20708 Reported by Albert Chin <china@thewrittenword.com>.
20710 2007-10-14 Bruno Haible <bruno@clisp.org>
20712 * modules/iconv_open-utf-tests: New file.
20713 * tests/test-iconv-utf.c: New file.
20715 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
20716 * modules/iconv_open-utf: New file.
20717 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
20718 (iconv, iconv_close): New declarations.
20719 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
20721 (iconv_open): Add special handling of conversion between UTF-8 and
20722 UTF-{16,32}{BE,LE}.
20723 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
20724 * lib/iconv_close.c: New file.
20725 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
20726 gl_FUNC_ICONV_OPEN.
20727 (gl_FUNC_ICONV_OPEN): Use it.
20728 (gl_FUNC_ICONV_OPEN_UTF): New macro.
20729 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
20730 and REPLACE_ICONV_UTF.
20731 * modules/iconv_open (Depends-on): Add c-strcase.
20732 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
20734 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
20736 2007-10-13 Albert Chin <china@thewrittenword.com>
20737 Bruno Haible <bruno@clisp.org>
20739 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
20740 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
20742 2007-10-13 Bruno Haible <bruno@clisp.org>
20744 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
20745 defined, use the ISO C99 inline semantics.
20746 * lib/argp.h (ARGP_EI): Likewise.
20748 2007-10-13 Bruno Haible <bruno@clisp.org>
20750 Handle 'inline' change in gcc 4.3.0.
20751 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
20752 argp_fmtstream_write, argp_fmtstream_set_lmargin,
20753 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
20754 argp_fmtstream_point): Disable 'extern' declaration if the function
20755 definition is going to be provided inline.
20756 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
20757 semantics, not the ISO C99 inline semantics.
20758 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
20759 'extern' declaration if the function definition is going to be provided
20761 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
20762 the GNU C inline semantics, not the ISO C99 inline semantics. With
20763 GCC 4.2, avoid a warning.
20765 2007-10-13 Bruno Haible <bruno@clisp.org>
20767 * lib/freading.h (freading): Enable the use of __freading for
20769 * lib/freading.c (freading): Likewise.
20771 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
20773 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
20774 "warning: C99 inline functions are not supported; using GNU89".
20776 2007-10-12 Bruno Haible <bruno@clisp.org>
20778 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
20780 * tests/test-ceilf2.c: New file.
20781 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
20783 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
20784 * modules/ceilf-tests: Update.
20786 2007-10-12 Bruno Haible <bruno@clisp.org>
20788 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
20790 * tests/test-floorf2.c: New file.
20791 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
20793 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
20794 * modules/floorf-tests: Update.
20796 2007-10-12 Bruno Haible <bruno@clisp.org>
20798 * tests/test-trunc2.c: New file.
20799 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
20801 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
20802 * modules/trunc-tests: Update.
20804 2007-10-12 Bruno Haible <bruno@clisp.org>
20806 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
20808 * tests/test-truncf2.c: New file.
20809 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
20811 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
20812 * modules/truncf-tests: Update.
20814 2007-10-11 Eric Blake <ebb9@byu.net>
20816 Don't claim strerror is broken on Interix.
20817 * doc/functions/strerror.texi (strerror): Known broken systems are
20818 now Solaris 8, and not Interix.
20819 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
20820 Interix on cross-compile.
20821 Reported by Martin Koeppe in
20822 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
20824 2007-10-11 Bruno Haible <bruno@clisp.org>
20826 * modules/i-ring-tests: New file.
20827 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
20830 2007-10-11 Bruno Haible <bruno@clisp.org>
20832 * modules/filenamecat-tests: New file.
20833 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
20834 * lib/filenamecat.c: Remove test code.
20836 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
20838 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
20840 * lib/strerror.c: Include <string.h> always, to test interface,
20841 and to remove the need for the dummy.
20842 Include intprops.h to compute width instead of doing it ourselves
20843 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
20844 (strerror): Define it to return NULL if there's no system strerror.
20845 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
20846 Omit !HAVE_STRERROR code. We don't need to worry about supporting
20847 ancient pre-strerror Unix systems well any more. Saying "unknown
20848 system error" is enough.
20849 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
20850 simpler strerror.c implementation.
20851 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
20852 Simplify the tests to reflect the simpler strerror implementation.
20853 * modules/strerror (Depends-on): Add intprops.
20855 2007-10-09 Eric Blake <ebb9@byu.net>
20857 Silence test-fpending.
20858 * modules/fpending-tests (Files): Add wrapper script.
20859 * tests/test-fpending.sh: New file.
20861 2007-10-09 Bruno Haible <bruno@clisp.org>
20863 * MODULES.html.sh (func_module): Don't create a hyperlink for
20864 function names like 'printf_frexp'.
20865 (Misc): Add crc, memxor.
20866 (Characteristics of floating types): New section.
20867 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
20868 isnanf-nolibm, signbit, trunc, truncf, truncl.
20869 (Enhancements for ISO C 99 functions): New subsection Input/output.
20870 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
20871 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
20872 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
20873 (Compatibility checks for POSIX:2001 functions): Add clock-time.
20874 (Enhancements for POSIX:2001 functions): Add chdir-long.
20875 (File system functions): Add areadlink, chdir-safer, read-file.
20876 Remove cycle-check.
20877 (File system as inode set): New section.
20878 (Date and time): Add gethrxtime.
20879 (Multithreading): Add openmp.
20880 (Internationalization functions): Add localename.
20881 (Unicode string functions): Add unistr/u*-mbsnlen.
20882 (Support for maintaining and releasing projects): Add git-version-gen.
20883 (Lone files): Remove directories.
20885 2007-10-08 Ben Pfaff <blp@gnu.org>
20887 * lib/xmalloca.h: Fix typo in comment.
20889 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
20891 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
20892 when avoiding problems with integer overflow. Use a portable test
20895 2007-10-08 Simon Josefsson <simon@josefsson.org>
20897 * modules/dummy (License): Change to LGPLv2+.
20898 * modules/float (License): Likewise
20899 * modules/realloc (License): Likewise
20900 * modules/stdlib (License): Likewise
20902 2007-10-07 Bruno Haible <bruno@clisp.org>
20904 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
20905 * floor.c (TWO_MANT_DIG): Likewise.
20906 * ceil.c (TWO_MANT_DIG): Likewise.
20907 Reported by Ben Pfaff.
20909 2007-10-07 Bruno Haible <bruno@clisp.org>
20911 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
20912 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
20913 * lib/frexp.c (FUNC): Likewise.
20914 * lib/printf-frexp.h (printf_frexp): Likewise.
20915 * lib/printf-frexpl.h (printf_frexpl): Likewise.
20916 * lib/printf-frexp.c (FUNC): Likewise.
20917 Suggested by Jim Meyering.
20919 2007-10-07 Jim Meyering <meyering@redhat.com>
20921 Make xnanosleep's integer overflow test more robust.
20922 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
20923 so that gcc-4.3.0 doesn't optimize away this test for overflow.
20925 2007-10-07 Bruno Haible <bruno@clisp.org>
20927 * NEWS: Mention the license change.
20929 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
20930 abbreviations in the modules files.
20932 Change copyright notice from GPLv2+ to GPLv3+.
20933 * README: Change copyright notice.
20934 * MODULES.html.sh: Likewise.
20935 * build-aux/bootstrap.conf: Likewise.
20936 * build-aux/config.libpath: Likewise.
20937 * build-aux/csharpcomp.sh.in: Likewise.
20938 * build-aux/csharpexec.sh.in: Likewise.
20939 * build-aux/install-reloc: Likewise.
20940 * build-aux/javacomp.sh.in: Likewise.
20941 * build-aux/javaexec.sh.in: Likewise.
20942 * build-aux/ldd.sh.in: Likewise.
20943 * build-aux/reloc-ldflags: Likewise.
20944 * build-aux/relocatable.sh.in: Likewise.
20945 * build-aux/x-to-1.in: Likewise.
20946 * check-module: Likewise.
20947 * config/srclistvars.sh: Likewise.
20948 * gnulib-tool: Likewise.
20949 * lib/acl-internal.h: Likewise.
20950 * lib/acl.c: Likewise.
20951 * lib/acl.h: Likewise.
20952 * lib/acl_entries.c: Likewise.
20953 * lib/areadlink-with-size.c: Likewise.
20954 * lib/areadlink.c: Likewise.
20955 * lib/areadlink.h: Likewise.
20956 * lib/argmatch.c: Likewise.
20957 * lib/argmatch.h: Likewise.
20958 * lib/argp-ba.c: Likewise.
20959 * lib/argp-eexst.c: Likewise.
20960 * lib/argp-fmtstream.c: Likewise.
20961 * lib/argp-fmtstream.h: Likewise.
20962 * lib/argp-fs-xinl.c: Likewise.
20963 * lib/argp-help.c: Likewise.
20964 * lib/argp-namefrob.h: Likewise.
20965 * lib/argp-parse.c: Likewise.
20966 * lib/argp-pin.c: Likewise.
20967 * lib/argp-pv.c: Likewise.
20968 * lib/argp-pvh.c: Likewise.
20969 * lib/argp-xinl.c: Likewise.
20970 * lib/argp.h: Likewise.
20971 * lib/at-func.c: Likewise.
20972 * lib/atanl.c: Likewise.
20973 * lib/backupfile.c: Likewise.
20974 * lib/backupfile.h: Likewise.
20975 * lib/basename.c: Likewise.
20976 * lib/binary-io.h: Likewise.
20977 * lib/byteswap.in.h: Likewise.
20978 * lib/c-stack.c: Likewise.
20979 * lib/c-stack.h: Likewise.
20980 * lib/c-strcasestr.c: Likewise.
20981 * lib/c-strcasestr.h: Likewise.
20982 * lib/c-strstr.c: Likewise.
20983 * lib/c-strstr.h: Likewise.
20984 * lib/c-strtod.c: Likewise.
20985 * lib/calloc.c: Likewise.
20986 * lib/canon-host.c: Likewise.
20987 * lib/canon-host.h: Likewise.
20988 * lib/canonicalize-lgpl.c: Likewise.
20989 * lib/canonicalize.c: Likewise.
20990 * lib/canonicalize.h: Likewise.
20991 * lib/ceil.c: Likewise.
20992 * lib/ceilf.c: Likewise.
20993 * lib/ceill.c: Likewise.
20994 * lib/chdir-long.c: Likewise.
20995 * lib/chdir-long.h: Likewise.
20996 * lib/chdir-safer.c: Likewise.
20997 * lib/chdir-safer.h: Likewise.
20998 * lib/chown.c: Likewise.
20999 * lib/classpath.c: Likewise.
21000 * lib/classpath.h: Likewise.
21001 * lib/clean-temp.c: Likewise.
21002 * lib/clean-temp.h: Likewise.
21003 * lib/cloexec.c: Likewise.
21004 * lib/close-stream.c: Likewise.
21005 * lib/closein.c: Likewise.
21006 * lib/closein.h: Likewise.
21007 * lib/closeout.c: Likewise.
21008 * lib/closeout.h: Likewise.
21009 * lib/concat-filename.c: Likewise.
21010 * lib/copy-file.c: Likewise.
21011 * lib/copy-file.h: Likewise.
21012 * lib/count-one-bits.h: Likewise.
21013 * lib/crc.c: Likewise.
21014 * lib/crc.h: Likewise.
21015 * lib/creat-safer.c: Likewise.
21016 * lib/csharpcomp.c: Likewise.
21017 * lib/csharpcomp.h: Likewise.
21018 * lib/csharpexec.c: Likewise.
21019 * lib/csharpexec.h: Likewise.
21020 * lib/cycle-check.c: Likewise.
21021 * lib/cycle-check.h: Likewise.
21022 * lib/diacrit.c: Likewise.
21023 * lib/diacrit.h: Likewise.
21024 * lib/diffseq.h: Likewise.
21025 * lib/dirchownmod.c: Likewise.
21026 * lib/dirent.in.h: Likewise.
21027 * lib/dirfd.c: Likewise.
21028 * lib/dirfd.h: Likewise.
21029 * lib/dirname.c: Likewise.
21030 * lib/dirname.h: Likewise.
21031 * lib/dummy.c: Likewise.
21032 * lib/dup-safer.c: Likewise.
21033 * lib/dup2.c: Likewise.
21034 * lib/eealloc.h: Likewise.
21035 * lib/error.c: Likewise.
21036 * lib/error.h: Likewise.
21037 * lib/euidaccess.c: Likewise.
21038 * lib/exclude.c: Likewise.
21039 * lib/exclude.h: Likewise.
21040 * lib/execute.c: Likewise.
21041 * lib/execute.h: Likewise.
21042 * lib/exitfail.c: Likewise.
21043 * lib/exitfail.h: Likewise.
21044 * lib/expl.c: Likewise.
21045 * lib/fatal-signal.c: Likewise.
21046 * lib/fatal-signal.h: Likewise.
21047 * lib/fbufmode.c: Likewise.
21048 * lib/fbufmode.h: Likewise.
21049 * lib/fchdir.c: Likewise.
21050 * lib/fchmodat.c: Likewise.
21051 * lib/fchownat.c: Likewise.
21052 * lib/fcntl--.h: Likewise.
21053 * lib/fcntl-safer.h: Likewise.
21054 * lib/fcntl.in.h: Likewise.
21055 * lib/fd-safer.c: Likewise.
21056 * lib/fflush.c: Likewise.
21057 * lib/file-has-acl.c: Likewise.
21058 * lib/file-set.c: Likewise.
21059 * lib/file-type.c: Likewise.
21060 * lib/file-type.h: Likewise.
21061 * lib/fileblocks.c: Likewise.
21062 * lib/filemode.c: Likewise.
21063 * lib/filemode.h: Likewise.
21064 * lib/filename.h: Likewise.
21065 * lib/filenamecat.c: Likewise.
21066 * lib/filenamecat.h: Likewise.
21067 * lib/findprog.c: Likewise.
21068 * lib/findprog.h: Likewise.
21069 * lib/float.in.h: Likewise.
21070 * lib/floor.c: Likewise.
21071 * lib/floorf.c: Likewise.
21072 * lib/floorl.c: Likewise.
21073 * lib/fopen-safer.c: Likewise.
21074 * lib/fopen.c: Likewise.
21075 * lib/fpending.c: Likewise.
21076 * lib/fpending.h: Likewise.
21077 * lib/fprintf.c: Likewise.
21078 * lib/fprintftime.h: Likewise.
21079 * lib/fpucw.h: Likewise.
21080 * lib/fpurge.c: Likewise.
21081 * lib/fpurge.h: Likewise.
21082 * lib/freadable.c: Likewise.
21083 * lib/freadable.h: Likewise.
21084 * lib/freadahead.c: Likewise.
21085 * lib/freadahead.h: Likewise.
21086 * lib/freading.c: Likewise.
21087 * lib/freading.h: Likewise.
21088 * lib/free.c: Likewise.
21089 * lib/freopen.c: Likewise.
21090 * lib/frexp.c: Likewise.
21091 * lib/frexpl.c: Likewise.
21092 * lib/fseek.c: Likewise.
21093 * lib/fseterr.c: Likewise.
21094 * lib/fseterr.h: Likewise.
21095 * lib/fstatat.c: Likewise.
21096 * lib/fstrcmp.c: Likewise.
21097 * lib/fstrcmp.h: Likewise.
21098 * lib/fsusage.c: Likewise.
21099 * lib/fsusage.h: Likewise.
21100 * lib/ftell.c: Likewise.
21101 * lib/ftello.c: Likewise.
21102 * lib/fts-cycle.c: Likewise.
21103 * lib/fts.c: Likewise.
21104 * lib/fts_.h: Likewise.
21105 * lib/full-read.c: Likewise.
21106 * lib/full-read.h: Likewise.
21107 * lib/full-write.c: Likewise.
21108 * lib/full-write.h: Likewise.
21109 * lib/fwritable.c: Likewise.
21110 * lib/fwritable.h: Likewise.
21111 * lib/fwriteerror.c: Likewise.
21112 * lib/fwriteerror.h: Likewise.
21113 * lib/fwriting.c: Likewise.
21114 * lib/fwriting.h: Likewise.
21115 * lib/gcd.c: Likewise.
21116 * lib/gcd.h: Likewise.
21117 * lib/getcwd.c: Likewise.
21118 * lib/getdate.h: Likewise.
21119 * lib/getdate.y: Likewise.
21120 * lib/getdomainname.c: Likewise.
21121 * lib/getdomainname.h: Likewise.
21122 * lib/getgroups.c: Likewise.
21123 * lib/gethostname.c: Likewise.
21124 * lib/gethrxtime.c: Likewise.
21125 * lib/gethrxtime.h: Likewise.
21126 * lib/getloadavg.c: Likewise.
21127 * lib/getndelim2.c: Likewise.
21128 * lib/getndelim2.h: Likewise.
21129 * lib/getnline.c: Likewise.
21130 * lib/getnline.h: Likewise.
21131 * lib/getopt.c: Likewise.
21132 * lib/getopt.in.h: Likewise.
21133 * lib/getopt1.c: Likewise.
21134 * lib/getopt_int.h: Likewise.
21135 * lib/getpagesize.h: Likewise.
21136 * lib/getsubopt.c: Likewise.
21137 * lib/gettime.c: Likewise.
21138 * lib/getugroups.c: Likewise.
21139 * lib/getugroups.h: Likewise.
21140 * lib/getusershell.c: Likewise.
21141 * lib/gl_anyavltree_list1.h: Likewise.
21142 * lib/gl_anyavltree_list2.h: Likewise.
21143 * lib/gl_anyhash_list1.h: Likewise.
21144 * lib/gl_anyhash_list2.h: Likewise.
21145 * lib/gl_anylinked_list1.h: Likewise.
21146 * lib/gl_anylinked_list2.h: Likewise.
21147 * lib/gl_anyrbtree_list1.h: Likewise.
21148 * lib/gl_anyrbtree_list2.h: Likewise.
21149 * lib/gl_anytree_list1.h: Likewise.
21150 * lib/gl_anytree_list2.h: Likewise.
21151 * lib/gl_anytree_oset.h: Likewise.
21152 * lib/gl_anytreehash_list1.h: Likewise.
21153 * lib/gl_anytreehash_list2.h: Likewise.
21154 * lib/gl_array_list.c: Likewise.
21155 * lib/gl_array_list.h: Likewise.
21156 * lib/gl_array_oset.c: Likewise.
21157 * lib/gl_array_oset.h: Likewise.
21158 * lib/gl_avltree_list.c: Likewise.
21159 * lib/gl_avltree_list.h: Likewise.
21160 * lib/gl_avltree_oset.c: Likewise.
21161 * lib/gl_avltree_oset.h: Likewise.
21162 * lib/gl_avltreehash_list.c: Likewise.
21163 * lib/gl_avltreehash_list.h: Likewise.
21164 * lib/gl_carray_list.c: Likewise.
21165 * lib/gl_carray_list.h: Likewise.
21166 * lib/gl_linked_list.c: Likewise.
21167 * lib/gl_linked_list.h: Likewise.
21168 * lib/gl_linkedhash_list.c: Likewise.
21169 * lib/gl_linkedhash_list.h: Likewise.
21170 * lib/gl_list.c: Likewise.
21171 * lib/gl_list.h: Likewise.
21172 * lib/gl_oset.c: Likewise.
21173 * lib/gl_oset.h: Likewise.
21174 * lib/gl_rbtree_list.c: Likewise.
21175 * lib/gl_rbtree_list.h: Likewise.
21176 * lib/gl_rbtree_oset.c: Likewise.
21177 * lib/gl_rbtree_oset.h: Likewise.
21178 * lib/gl_rbtreehash_list.c: Likewise.
21179 * lib/gl_rbtreehash_list.h: Likewise.
21180 * lib/gl_sublist.c: Likewise.
21181 * lib/gl_sublist.h: Likewise.
21182 * lib/group-member.c: Likewise.
21183 * lib/group-member.h: Likewise.
21184 * lib/hard-locale.c: Likewise.
21185 * lib/hard-locale.h: Likewise.
21186 * lib/hash-pjw.c: Likewise.
21187 * lib/hash-pjw.h: Likewise.
21188 * lib/hash-triple.c: Likewise.
21189 * lib/hash.c: Likewise.
21190 * lib/hash.h: Likewise.
21191 * lib/human.c: Likewise.
21192 * lib/human.h: Likewise.
21193 * lib/i-ring.c: Likewise.
21194 * lib/i-ring.h: Likewise.
21195 * lib/idcache.c: Likewise.
21196 * lib/imaxabs.c: Likewise.
21197 * lib/imaxdiv.c: Likewise.
21198 * lib/inet_pton.c: Likewise.
21199 * lib/inet_pton.h: Likewise.
21200 * lib/intprops.h: Likewise.
21201 * lib/inttostr.c: Likewise.
21202 * lib/inttostr.h: Likewise.
21203 * lib/inttypes.in.h: Likewise.
21204 * lib/isapipe.c: Likewise.
21205 * lib/isdir.c: Likewise.
21206 * lib/isnan.c: Likewise.
21207 * lib/isnan.h: Likewise.
21208 * lib/isnanf.c: Likewise.
21209 * lib/isnanf.h: Likewise.
21210 * lib/isnanl-nolibm.h: Likewise.
21211 * lib/isnanl.c: Likewise.
21212 * lib/isnanl.h: Likewise.
21213 * lib/javacomp.c: Likewise.
21214 * lib/javacomp.h: Likewise.
21215 * lib/javaexec.c: Likewise.
21216 * lib/javaexec.h: Likewise.
21217 * lib/javaversion.c: Likewise.
21218 * lib/javaversion.h: Likewise.
21219 * lib/javaversion.java: Likewise.
21220 * lib/lbrkprop.h: Likewise.
21221 * lib/lchmod.h: Likewise.
21222 * lib/lchown.c: Likewise.
21223 * lib/ldexpl.c: Likewise.
21224 * lib/linebreak.c: Likewise.
21225 * lib/linebreak.h: Likewise.
21226 * lib/linebuffer.c: Likewise.
21227 * lib/linebuffer.h: Likewise.
21228 * lib/locale.in.h: Likewise.
21229 * lib/logl.c: Likewise.
21230 * lib/long-options.c: Likewise.
21231 * lib/long-options.h: Likewise.
21232 * lib/lstat.c: Likewise.
21233 * lib/lstat.h: Likewise.
21234 * lib/math.in.h: Likewise.
21235 * lib/mbchar.c: Likewise.
21236 * lib/mbchar.h: Likewise.
21237 * lib/mbfile.h: Likewise.
21238 * lib/mbiter.h: Likewise.
21239 * lib/mbscasecmp.c: Likewise.
21240 * lib/mbscasestr.c: Likewise.
21241 * lib/mbschr.c: Likewise.
21242 * lib/mbscspn.c: Likewise.
21243 * lib/mbslen.c: Likewise.
21244 * lib/mbsncasecmp.c: Likewise.
21245 * lib/mbsnlen.c: Likewise.
21246 * lib/mbspbrk.c: Likewise.
21247 * lib/mbspcasecmp.c: Likewise.
21248 * lib/mbsrchr.c: Likewise.
21249 * lib/mbssep.c: Likewise.
21250 * lib/mbsspn.c: Likewise.
21251 * lib/mbsstr.c: Likewise.
21252 * lib/mbstok_r.c: Likewise.
21253 * lib/mbswidth.c: Likewise.
21254 * lib/mbswidth.h: Likewise.
21255 * lib/mbuiter.h: Likewise.
21256 * lib/memcasecmp.c: Likewise.
21257 * lib/memcasecmp.h: Likewise.
21258 * lib/memchr.c: Likewise.
21259 * lib/memcmp.c: Likewise.
21260 * lib/memcoll.c: Likewise.
21261 * lib/memcoll.h: Likewise.
21262 * lib/memcpy.c: Likewise.
21263 * lib/memrchr.c: Likewise.
21264 * lib/mkancesdirs.c: Likewise.
21265 * lib/mkdir-p.c: Likewise.
21266 * lib/mkdir-p.h: Likewise.
21267 * lib/mkdir.c: Likewise.
21268 * lib/mkdirat.c: Likewise.
21269 * lib/mkdtemp.c: Likewise.
21270 * lib/mkstemp-safer.c: Likewise.
21271 * lib/mkstemp.c: Likewise.
21272 * lib/modechange.c: Likewise.
21273 * lib/modechange.h: Likewise.
21274 * lib/mountlist.c: Likewise.
21275 * lib/mountlist.h: Likewise.
21276 * lib/mpsort.c: Likewise.
21277 * lib/nanosleep.c: Likewise.
21278 * lib/obstack.c: Likewise.
21279 * lib/obstack.h: Likewise.
21280 * lib/open-safer.c: Likewise.
21281 * lib/open.c: Likewise.
21282 * lib/openat-die.c: Likewise.
21283 * lib/openat-priv.h: Likewise.
21284 * lib/openat-proc.c: Likewise.
21285 * lib/openat.c: Likewise.
21286 * lib/openat.h: Likewise.
21287 * lib/pagealign_alloc.c: Likewise.
21288 * lib/pagealign_alloc.h: Likewise.
21289 * lib/physmem.c: Likewise.
21290 * lib/physmem.h: Likewise.
21291 * lib/pipe-safer.c: Likewise.
21292 * lib/pipe.c: Likewise.
21293 * lib/pipe.h: Likewise.
21294 * lib/posixtm.c: Likewise.
21295 * lib/posixtm.h: Likewise.
21296 * lib/posixver.c: Likewise.
21297 * lib/printf-frexp.c: Likewise.
21298 * lib/printf-frexp.h: Likewise.
21299 * lib/printf-frexpl.c: Likewise.
21300 * lib/printf-frexpl.h: Likewise.
21301 * lib/printf.c: Likewise.
21302 * lib/progname.c: Likewise.
21303 * lib/progname.h: Likewise.
21304 * lib/progreloc.c: Likewise.
21305 * lib/putenv.c: Likewise.
21306 * lib/quote.c: Likewise.
21307 * lib/quote.h: Likewise.
21308 * lib/quotearg.c: Likewise.
21309 * lib/quotearg.h: Likewise.
21310 * lib/raise.c: Likewise.
21311 * lib/readline.c: Likewise.
21312 * lib/readline.h: Likewise.
21313 * lib/readlink.c: Likewise.
21314 * lib/readtokens.c: Likewise.
21315 * lib/readtokens.h: Likewise.
21316 * lib/readtokens0.c: Likewise.
21317 * lib/readtokens0.h: Likewise.
21318 * lib/readutmp.c: Likewise.
21319 * lib/readutmp.h: Likewise.
21320 * lib/realloc.c: Likewise.
21321 * lib/relocwrapper.c: Likewise.
21322 * lib/rename-dest-slash.c: Likewise.
21323 * lib/rename.c: Likewise.
21324 * lib/rmdir.c: Likewise.
21325 * lib/rpmatch.c: Likewise.
21326 * lib/safe-read.c: Likewise.
21327 * lib/safe-read.h: Likewise.
21328 * lib/safe-write.c: Likewise.
21329 * lib/safe-write.h: Likewise.
21330 * lib/same-inode.h: Likewise.
21331 * lib/same.c: Likewise.
21332 * lib/same.h: Likewise.
21333 * lib/save-cwd.c: Likewise.
21334 * lib/save-cwd.h: Likewise.
21335 * lib/savedir.c: Likewise.
21336 * lib/savedir.h: Likewise.
21337 * lib/savewd.c: Likewise.
21338 * lib/savewd.h: Likewise.
21339 * lib/search.in.h: Likewise.
21340 * lib/setenv.c: Likewise.
21341 * lib/setenv.h: Likewise.
21342 * lib/settime.c: Likewise.
21343 * lib/sh-quote.c: Likewise.
21344 * lib/sh-quote.h: Likewise.
21345 * lib/sig2str.c: Likewise.
21346 * lib/sig2str.h: Likewise.
21347 * lib/signal.in.h: Likewise.
21348 * lib/signbitd.c: Likewise.
21349 * lib/signbitf.c: Likewise.
21350 * lib/signbitl.c: Likewise.
21351 * lib/sigprocmask.c: Likewise.
21352 * lib/sincosl.c: Likewise.
21353 * lib/sleep.c: Likewise.
21354 * lib/sprintf.c: Likewise.
21355 * lib/sqrtl.c: Likewise.
21356 * lib/stat-time.h: Likewise.
21357 * lib/stdio--.h: Likewise.
21358 * lib/stdio-safer.h: Likewise.
21359 * lib/stdlib--.h: Likewise.
21360 * lib/stdlib-safer.h: Likewise.
21361 * lib/stdlib.in.h: Likewise.
21362 * lib/stpcpy.c: Likewise.
21363 * lib/stpncpy.c: Likewise.
21364 * lib/strchrnul.c: Likewise.
21365 * lib/strcspn.c: Likewise.
21366 * lib/strerror.c: Likewise.
21367 * lib/strftime.c: Likewise.
21368 * lib/strftime.h: Likewise.
21369 * lib/striconveh.c: Likewise.
21370 * lib/striconveh.h: Likewise.
21371 * lib/striconveha.c: Likewise.
21372 * lib/striconveha.h: Likewise.
21373 * lib/stripslash.c: Likewise.
21374 * lib/strnlen1.c: Likewise.
21375 * lib/strnlen1.h: Likewise.
21376 * lib/strtod.c: Likewise.
21377 * lib/strtoimax.c: Likewise.
21378 * lib/strtok_r.c: Likewise.
21379 * lib/strtol.c: Likewise.
21380 * lib/strtoll.c: Likewise.
21381 * lib/strtoul.c: Likewise.
21382 * lib/strtoull.c: Likewise.
21383 * lib/sysexits.in.h: Likewise.
21384 * lib/tempname.c: Likewise.
21385 * lib/tempname.h: Likewise.
21386 * lib/timespec.h: Likewise.
21387 * lib/tls.c: Likewise.
21388 * lib/tls.h: Likewise.
21389 * lib/tmpdir.c: Likewise.
21390 * lib/tmpdir.h: Likewise.
21391 * lib/tmpfile-safer.c: Likewise.
21392 * lib/tmpfile.c: Likewise.
21393 * lib/trigl.c: Likewise.
21394 * lib/trigl.h: Likewise.
21395 * lib/trim.c: Likewise.
21396 * lib/trim.h: Likewise.
21397 * lib/trunc.c: Likewise.
21398 * lib/truncf.c: Likewise.
21399 * lib/truncl.c: Likewise.
21400 * lib/tsearch.c: Likewise.
21401 * lib/unicodeio.c: Likewise.
21402 * lib/unicodeio.h: Likewise.
21403 * lib/unistd--.h: Likewise.
21404 * lib/unistd-safer.h: Likewise.
21405 * lib/unistdio/ulc-fprintf.c: Likewise.
21406 * lib/unistdio/ulc-vfprintf.c: Likewise.
21407 * lib/unlinkdir.c: Likewise.
21408 * lib/unlinkdir.h: Likewise.
21409 * lib/unlocked-io.h: Likewise.
21410 * lib/unsetenv.c: Likewise.
21411 * lib/userspec.c: Likewise.
21412 * lib/utime.c: Likewise.
21413 * lib/utimecmp.c: Likewise.
21414 * lib/utimecmp.h: Likewise.
21415 * lib/utimens.c: Likewise.
21416 * lib/verify.h: Likewise.
21417 * lib/verror.c: Likewise.
21418 * lib/verror.h: Likewise.
21419 * lib/version-etc-fsf.c: Likewise.
21420 * lib/version-etc.c: Likewise.
21421 * lib/version-etc.h: Likewise.
21422 * lib/vfprintf.c: Likewise.
21423 * lib/vprintf.c: Likewise.
21424 * lib/vsprintf.c: Likewise.
21425 * lib/w32spawn.h: Likewise.
21426 * lib/wait-process.c: Likewise.
21427 * lib/wait-process.h: Likewise.
21428 * lib/wcwidth.c: Likewise.
21429 * lib/write-any-file.c: Likewise.
21430 * lib/xalloc-die.c: Likewise.
21431 * lib/xalloc.h: Likewise.
21432 * lib/xasprintf.c: Likewise.
21433 * lib/xgetcwd.c: Likewise.
21434 * lib/xgetcwd.h: Likewise.
21435 * lib/xgetdomainname.c: Likewise.
21436 * lib/xgetdomainname.h: Likewise.
21437 * lib/xgethostname.c: Likewise.
21438 * lib/xmalloc.c: Likewise.
21439 * lib/xmalloca.c: Likewise.
21440 * lib/xmalloca.h: Likewise.
21441 * lib/xmemcoll.c: Likewise.
21442 * lib/xnanosleep.c: Likewise.
21443 * lib/xreadlink.c: Likewise.
21444 * lib/xreadlink.h: Likewise.
21445 * lib/xsetenv.c: Likewise.
21446 * lib/xsetenv.h: Likewise.
21447 * lib/xstriconv.c: Likewise.
21448 * lib/xstriconv.h: Likewise.
21449 * lib/xstrndup.c: Likewise.
21450 * lib/xstrndup.h: Likewise.
21451 * lib/xstrtod.c: Likewise.
21452 * lib/xstrtod.h: Likewise.
21453 * lib/xstrtol-error.c: Likewise.
21454 * lib/xstrtol.c: Likewise.
21455 * lib/xstrtol.h: Likewise.
21456 * lib/xtime.h: Likewise.
21457 * lib/xvasprintf.c: Likewise.
21458 * lib/xvasprintf.h: Likewise.
21459 * lib/yesno.c: Likewise.
21460 * lib/yesno.h: Likewise.
21461 * posix-modules: Likewise.
21462 * tests/test-alloca-opt.c: Likewise.
21463 * tests/test-arcfour.c: Likewise.
21464 * tests/test-arctwo.c: Likewise.
21465 * tests/test-argmatch.c: Likewise.
21466 * tests/test-argp-2.sh: Likewise.
21467 * tests/test-argp.c: Likewise.
21468 * tests/test-arpa_inet.c: Likewise.
21469 * tests/test-array_list.c: Likewise.
21470 * tests/test-array_oset.c: Likewise.
21471 * tests/test-atexit.c: Likewise.
21472 * tests/test-avltree_list.c: Likewise.
21473 * tests/test-avltree_oset.c: Likewise.
21474 * tests/test-avltreehash_list.c: Likewise.
21475 * tests/test-base64.c: Likewise.
21476 * tests/test-binary-io.c: Likewise.
21477 * tests/test-byteswap.c: Likewise.
21478 * tests/test-c-ctype.c: Likewise.
21479 * tests/test-c-strcasecmp.c: Likewise.
21480 * tests/test-c-strcasestr.c: Likewise.
21481 * tests/test-c-strncasecmp.c: Likewise.
21482 * tests/test-c-strstr.c: Likewise.
21483 * tests/test-canonicalize-lgpl.c: Likewise.
21484 * tests/test-canonicalize.c: Likewise.
21485 * tests/test-carray_list.c: Likewise.
21486 * tests/test-ceilf.c: Likewise.
21487 * tests/test-ceill.c: Likewise.
21488 * tests/test-count-one-bits.c: Likewise.
21489 * tests/test-crc.c: Likewise.
21490 * tests/test-dirname.c: Likewise.
21491 * tests/test-fbufmode.c: Likewise.
21492 * tests/test-fcntl.c: Likewise.
21493 * tests/test-fflush.c: Likewise.
21494 * tests/test-floorf.c: Likewise.
21495 * tests/test-floorl.c: Likewise.
21496 * tests/test-fopen.c: Likewise.
21497 * tests/test-fprintf-posix.c: Likewise.
21498 * tests/test-fprintf-posix.h: Likewise.
21499 * tests/test-fpurge.c: Likewise.
21500 * tests/test-freadable.c: Likewise.
21501 * tests/test-freadahead.c: Likewise.
21502 * tests/test-freading.c: Likewise.
21503 * tests/test-freopen.c: Likewise.
21504 * tests/test-frexp.c: Likewise.
21505 * tests/test-frexpl.c: Likewise.
21506 * tests/test-fseek.c: Likewise.
21507 * tests/test-fseeko.c: Likewise.
21508 * tests/test-fseterr.c: Likewise.
21509 * tests/test-fstrcmp.c: Likewise.
21510 * tests/test-ftell.c: Likewise.
21511 * tests/test-ftello.c: Likewise.
21512 * tests/test-fwritable.c: Likewise.
21513 * tests/test-fwriting.c: Likewise.
21514 * tests/test-getaddrinfo.c: Likewise.
21515 * tests/test-getpass.c: Likewise.
21516 * tests/test-gettimeofday.c: Likewise.
21517 * tests/test-hmac-md5.c: Likewise.
21518 * tests/test-hmac-sha1.c: Likewise.
21519 * tests/test-iconv.c: Likewise.
21520 * tests/test-iconvme.c: Likewise.
21521 * tests/test-inttypes.c: Likewise.
21522 * tests/test-isnan.c: Likewise.
21523 * tests/test-isnanf.c: Likewise.
21524 * tests/test-isnanl-nolibm.c: Likewise.
21525 * tests/test-isnanl.c: Likewise.
21526 * tests/test-isnanl.h: Likewise.
21527 * tests/test-ldexpl.c: Likewise.
21528 * tests/test-linked_list.c: Likewise.
21529 * tests/test-linkedhash_list.c: Likewise.
21530 * tests/test-locale.c: Likewise.
21531 * tests/test-localename.c: Likewise.
21532 * tests/test-lock.c: Likewise.
21533 * tests/test-lseek.c: Likewise.
21534 * tests/test-malloca.c: Likewise.
21535 * tests/test-math.c: Likewise.
21536 * tests/test-mbscasecmp.c: Likewise.
21537 * tests/test-mbscasestr1.c: Likewise.
21538 * tests/test-mbscasestr2.c: Likewise.
21539 * tests/test-mbscasestr3.c: Likewise.
21540 * tests/test-mbscasestr4.c: Likewise.
21541 * tests/test-mbschr.c: Likewise.
21542 * tests/test-mbscspn.c: Likewise.
21543 * tests/test-mbsncasecmp.c: Likewise.
21544 * tests/test-mbspbrk.c: Likewise.
21545 * tests/test-mbspcasecmp.c: Likewise.
21546 * tests/test-mbsrchr.c: Likewise.
21547 * tests/test-mbsspn.c: Likewise.
21548 * tests/test-mbsstr1.c: Likewise.
21549 * tests/test-mbsstr2.c: Likewise.
21550 * tests/test-mbsstr3.c: Likewise.
21551 * tests/test-md5.c: Likewise.
21552 * tests/test-memmem.c: Likewise.
21553 * tests/test-netinet_in.c: Likewise.
21554 * tests/test-open.c: Likewise.
21555 * tests/test-printf-frexp.c: Likewise.
21556 * tests/test-printf-frexpl.c: Likewise.
21557 * tests/test-printf-posix.c: Likewise.
21558 * tests/test-printf-posix.h: Likewise.
21559 * tests/test-rbtree_list.c: Likewise.
21560 * tests/test-rbtree_oset.c: Likewise.
21561 * tests/test-rbtreehash_list.c: Likewise.
21562 * tests/test-read-file.c: Likewise.
21563 * tests/test-rijndael.c: Likewise.
21564 * tests/test-search.c: Likewise.
21565 * tests/test-signbit.c: Likewise.
21566 * tests/test-sleep.c: Likewise.
21567 * tests/test-snprintf-posix.c: Likewise.
21568 * tests/test-snprintf-posix.h: Likewise.
21569 * tests/test-snprintf.c: Likewise.
21570 * tests/test-sprintf-posix.c: Likewise.
21571 * tests/test-sprintf-posix.h: Likewise.
21572 * tests/test-stat-time.c: Likewise.
21573 * tests/test-stdbool.c: Likewise.
21574 * tests/test-stdint.c: Likewise.
21575 * tests/test-stdio.c: Likewise.
21576 * tests/test-stdlib.c: Likewise.
21577 * tests/test-stpncpy.c: Likewise.
21578 * tests/test-strcasestr.c: Likewise.
21579 * tests/test-striconv.c: Likewise.
21580 * tests/test-striconveh.c: Likewise.
21581 * tests/test-striconveha.c: Likewise.
21582 * tests/test-string.c: Likewise.
21583 * tests/test-sys_select.c: Likewise.
21584 * tests/test-sys_socket.c: Likewise.
21585 * tests/test-sys_stat.c: Likewise.
21586 * tests/test-sys_time.c: Likewise.
21587 * tests/test-sysexits.c: Likewise.
21588 * tests/test-time.c: Likewise.
21589 * tests/test-tls.c: Likewise.
21590 * tests/test-trunc.c: Likewise.
21591 * tests/test-truncf.c: Likewise.
21592 * tests/test-truncl.c: Likewise.
21593 * tests/test-unistd.c: Likewise.
21594 * tests/test-vasnprintf-posix.c: Likewise.
21595 * tests/test-vasnprintf-posix2.c: Likewise.
21596 * tests/test-vasnprintf.c: Likewise.
21597 * tests/test-vasprintf-posix.c: Likewise.
21598 * tests/test-vasprintf.c: Likewise.
21599 * tests/test-verify.c: Likewise.
21600 * tests/test-vfprintf-posix.c: Likewise.
21601 * tests/test-vprintf-posix.c: Likewise.
21602 * tests/test-vsnprintf-posix.c: Likewise.
21603 * tests/test-vsnprintf.c: Likewise.
21604 * tests/test-vsprintf-posix.c: Likewise.
21605 * tests/test-wchar.c: Likewise.
21606 * tests/test-wctype.c: Likewise.
21607 * tests/test-wcwidth.c: Likewise.
21608 * tests/test-xstrtol.c: Likewise.
21609 * tests/test-xvasprintf.c: Likewise.
21610 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21611 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21612 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21613 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21614 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21615 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21616 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21617 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21618 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21619 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21620 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21621 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21622 * tests/uniname/test-uninames.c: Likewise.
21623 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21624 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
21625 * tests/unistdio/test-u16-printf1.h: Likewise.
21626 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21627 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21628 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21629 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21630 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21631 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21632 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21633 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
21634 * tests/unistdio/test-u32-printf1.h: Likewise.
21635 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21636 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21637 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21638 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21639 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21640 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21641 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21642 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
21643 * tests/unistdio/test-u8-printf1.h: Likewise.
21644 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21645 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21646 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21647 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21648 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21649 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21650 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21651 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
21652 * tests/unistdio/test-ulc-printf1.h: Likewise.
21653 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21654 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21655 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21656 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21657 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21658 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21659 * tests/uniwidth/test-u16-strwidth.c: Likewise.
21660 * tests/uniwidth/test-u16-width.c: Likewise.
21661 * tests/uniwidth/test-u32-strwidth.c: Likewise.
21662 * tests/uniwidth/test-u32-width.c: Likewise.
21663 * tests/uniwidth/test-u8-strwidth.c: Likewise.
21664 * tests/uniwidth/test-u8-width.c: Likewise.
21665 * tests/uniwidth/test-uc_width.c: Likewise.
21666 * config/srclist-update: Likewise.
21667 (fixlicense): Update to GPLv3+.
21669 Change copyright notice from LGPLv2.1+ to LGPLv3+.
21670 * tests/test-tsearch.c: Change copyright notice.
21672 Change copyright notice from LGPLv2.0+ to LGPLv3+.
21673 * lib/c-strcaseeq.h: Change copyright notice.
21674 * lib/streq.h: Likewise.
21675 * lib/uniconv.h: Likewise.
21676 * lib/uniconv/u-conv-from-enc.h: Likewise.
21677 * lib/uniconv/u-conv-to-enc.h: Likewise.
21678 * lib/uniconv/u-strconv-from-enc.h: Likewise.
21679 * lib/uniconv/u-strconv-to-enc.h: Likewise.
21680 * lib/uniconv/u16-conv-from-enc.c: Likewise.
21681 * lib/uniconv/u16-conv-to-enc.c: Likewise.
21682 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
21683 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
21684 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
21685 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
21686 * lib/uniconv/u32-conv-from-enc.c: Likewise.
21687 * lib/uniconv/u32-conv-to-enc.c: Likewise.
21688 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
21689 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
21690 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
21691 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
21692 * lib/uniconv/u8-conv-from-enc.c: Likewise.
21693 * lib/uniconv/u8-conv-to-enc.c: Likewise.
21694 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
21695 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
21696 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
21697 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
21698 * lib/uniname.h: Likewise.
21699 * lib/uniname/uniname.c: Likewise.
21700 * lib/unistdio.h: Likewise.
21701 * lib/unistdio/u-asnprintf.h: Likewise.
21702 * lib/unistdio/u-asprintf.h: Likewise.
21703 * lib/unistdio/u-printf-args.c: Likewise.
21704 * lib/unistdio/u-printf-args.h: Likewise.
21705 * lib/unistdio/u-printf-parse.h: Likewise.
21706 * lib/unistdio/u-snprintf.h: Likewise.
21707 * lib/unistdio/u-sprintf.h: Likewise.
21708 * lib/unistdio/u-vasprintf.h: Likewise.
21709 * lib/unistdio/u-vsnprintf.h: Likewise.
21710 * lib/unistdio/u-vsprintf.h: Likewise.
21711 * lib/unistdio/u16-asnprintf.c: Likewise.
21712 * lib/unistdio/u16-asprintf.c: Likewise.
21713 * lib/unistdio/u16-printf-parse.c: Likewise.
21714 * lib/unistdio/u16-snprintf.c: Likewise.
21715 * lib/unistdio/u16-sprintf.c: Likewise.
21716 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
21717 * lib/unistdio/u16-u16-asprintf.c: Likewise.
21718 * lib/unistdio/u16-u16-snprintf.c: Likewise.
21719 * lib/unistdio/u16-u16-sprintf.c: Likewise.
21720 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
21721 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
21722 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
21723 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
21724 * lib/unistdio/u16-vasnprintf.c: Likewise.
21725 * lib/unistdio/u16-vasprintf.c: Likewise.
21726 * lib/unistdio/u16-vsnprintf.c: Likewise.
21727 * lib/unistdio/u16-vsprintf.c: Likewise.
21728 * lib/unistdio/u32-asnprintf.c: Likewise.
21729 * lib/unistdio/u32-asprintf.c: Likewise.
21730 * lib/unistdio/u32-printf-parse.c: Likewise.
21731 * lib/unistdio/u32-snprintf.c: Likewise.
21732 * lib/unistdio/u32-sprintf.c: Likewise.
21733 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
21734 * lib/unistdio/u32-u32-asprintf.c: Likewise.
21735 * lib/unistdio/u32-u32-snprintf.c: Likewise.
21736 * lib/unistdio/u32-u32-sprintf.c: Likewise.
21737 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
21738 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
21739 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
21740 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
21741 * lib/unistdio/u32-vasnprintf.c: Likewise.
21742 * lib/unistdio/u32-vasprintf.c: Likewise.
21743 * lib/unistdio/u32-vsnprintf.c: Likewise.
21744 * lib/unistdio/u32-vsprintf.c: Likewise.
21745 * lib/unistdio/u8-asnprintf.c: Likewise.
21746 * lib/unistdio/u8-asprintf.c: Likewise.
21747 * lib/unistdio/u8-printf-parse.c: Likewise.
21748 * lib/unistdio/u8-snprintf.c: Likewise.
21749 * lib/unistdio/u8-sprintf.c: Likewise.
21750 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
21751 * lib/unistdio/u8-u8-asprintf.c: Likewise.
21752 * lib/unistdio/u8-u8-snprintf.c: Likewise.
21753 * lib/unistdio/u8-u8-sprintf.c: Likewise.
21754 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
21755 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
21756 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
21757 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
21758 * lib/unistdio/u8-vasnprintf.c: Likewise.
21759 * lib/unistdio/u8-vasprintf.c: Likewise.
21760 * lib/unistdio/u8-vsnprintf.c: Likewise.
21761 * lib/unistdio/u8-vsprintf.c: Likewise.
21762 * lib/unistdio/ulc-asnprintf.c: Likewise.
21763 * lib/unistdio/ulc-asprintf.c: Likewise.
21764 * lib/unistdio/ulc-printf-parse.c: Likewise.
21765 * lib/unistdio/ulc-snprintf.c: Likewise.
21766 * lib/unistdio/ulc-sprintf.c: Likewise.
21767 * lib/unistdio/ulc-vasnprintf.c: Likewise.
21768 * lib/unistdio/ulc-vasprintf.c: Likewise.
21769 * lib/unistdio/ulc-vsnprintf.c: Likewise.
21770 * lib/unistdio/ulc-vsprintf.c: Likewise.
21771 * lib/unistr.h: Likewise.
21772 * lib/unistr/u-cpy-alloc.h: Likewise.
21773 * lib/unistr/u-cpy.h: Likewise.
21774 * lib/unistr/u-endswith.h: Likewise.
21775 * lib/unistr/u-move.h: Likewise.
21776 * lib/unistr/u-set.h: Likewise.
21777 * lib/unistr/u-startswith.h: Likewise.
21778 * lib/unistr/u-stpcpy.h: Likewise.
21779 * lib/unistr/u-stpncpy.h: Likewise.
21780 * lib/unistr/u-strcat.h: Likewise.
21781 * lib/unistr/u-strcpy.h: Likewise.
21782 * lib/unistr/u-strcspn.h: Likewise.
21783 * lib/unistr/u-strdup.h: Likewise.
21784 * lib/unistr/u-strlen.h: Likewise.
21785 * lib/unistr/u-strncat.h: Likewise.
21786 * lib/unistr/u-strncpy.h: Likewise.
21787 * lib/unistr/u-strnlen.h: Likewise.
21788 * lib/unistr/u-strpbrk.h: Likewise.
21789 * lib/unistr/u-strspn.h: Likewise.
21790 * lib/unistr/u-strstr.h: Likewise.
21791 * lib/unistr/u-strtok.h: Likewise.
21792 * lib/unistr/u16-check.c: Likewise.
21793 * lib/unistr/u16-chr.c: Likewise.
21794 * lib/unistr/u16-cmp.c: Likewise.
21795 * lib/unistr/u16-cpy-alloc.c: Likewise.
21796 * lib/unistr/u16-cpy.c: Likewise.
21797 * lib/unistr/u16-endswith.c: Likewise.
21798 * lib/unistr/u16-mblen.c: Likewise.
21799 * lib/unistr/u16-mbsnlen.c: Likewise.
21800 * lib/unistr/u16-mbtouc-aux.c: Likewise.
21801 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21802 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21803 * lib/unistr/u16-mbtouc.c: Likewise.
21804 * lib/unistr/u16-mbtoucr.c: Likewise.
21805 * lib/unistr/u16-move.c: Likewise.
21806 * lib/unistr/u16-next.c: Likewise.
21807 * lib/unistr/u16-prev.c: Likewise.
21808 * lib/unistr/u16-set.c: Likewise.
21809 * lib/unistr/u16-startswith.c: Likewise.
21810 * lib/unistr/u16-stpcpy.c: Likewise.
21811 * lib/unistr/u16-stpncpy.c: Likewise.
21812 * lib/unistr/u16-strcat.c: Likewise.
21813 * lib/unistr/u16-strchr.c: Likewise.
21814 * lib/unistr/u16-strcmp.c: Likewise.
21815 * lib/unistr/u16-strcpy.c: Likewise.
21816 * lib/unistr/u16-strcspn.c: Likewise.
21817 * lib/unistr/u16-strdup.c: Likewise.
21818 * lib/unistr/u16-strlen.c: Likewise.
21819 * lib/unistr/u16-strmblen.c: Likewise.
21820 * lib/unistr/u16-strmbtouc.c: Likewise.
21821 * lib/unistr/u16-strncat.c: Likewise.
21822 * lib/unistr/u16-strncmp.c: Likewise.
21823 * lib/unistr/u16-strncpy.c: Likewise.
21824 * lib/unistr/u16-strnlen.c: Likewise.
21825 * lib/unistr/u16-strpbrk.c: Likewise.
21826 * lib/unistr/u16-strrchr.c: Likewise.
21827 * lib/unistr/u16-strspn.c: Likewise.
21828 * lib/unistr/u16-strstr.c: Likewise.
21829 * lib/unistr/u16-strtok.c: Likewise.
21830 * lib/unistr/u16-to-u32.c: Likewise.
21831 * lib/unistr/u16-to-u8.c: Likewise.
21832 * lib/unistr/u16-uctomb-aux.c: Likewise.
21833 * lib/unistr/u16-uctomb.c: Likewise.
21834 * lib/unistr/u32-check.c: Likewise.
21835 * lib/unistr/u32-chr.c: Likewise.
21836 * lib/unistr/u32-cmp.c: Likewise.
21837 * lib/unistr/u32-cpy-alloc.c: Likewise.
21838 * lib/unistr/u32-cpy.c: Likewise.
21839 * lib/unistr/u32-endswith.c: Likewise.
21840 * lib/unistr/u32-mblen.c: Likewise.
21841 * lib/unistr/u32-mbsnlen.c: Likewise.
21842 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21843 * lib/unistr/u32-mbtouc.c: Likewise.
21844 * lib/unistr/u32-mbtoucr.c: Likewise.
21845 * lib/unistr/u32-move.c: Likewise.
21846 * lib/unistr/u32-next.c: Likewise.
21847 * lib/unistr/u32-prev.c: Likewise.
21848 * lib/unistr/u32-set.c: Likewise.
21849 * lib/unistr/u32-startswith.c: Likewise.
21850 * lib/unistr/u32-stpcpy.c: Likewise.
21851 * lib/unistr/u32-stpncpy.c: Likewise.
21852 * lib/unistr/u32-strcat.c: Likewise.
21853 * lib/unistr/u32-strchr.c: Likewise.
21854 * lib/unistr/u32-strcmp.c: Likewise.
21855 * lib/unistr/u32-strcpy.c: Likewise.
21856 * lib/unistr/u32-strcspn.c: Likewise.
21857 * lib/unistr/u32-strdup.c: Likewise.
21858 * lib/unistr/u32-strlen.c: Likewise.
21859 * lib/unistr/u32-strmblen.c: Likewise.
21860 * lib/unistr/u32-strmbtouc.c: Likewise.
21861 * lib/unistr/u32-strncat.c: Likewise.
21862 * lib/unistr/u32-strncmp.c: Likewise.
21863 * lib/unistr/u32-strncpy.c: Likewise.
21864 * lib/unistr/u32-strnlen.c: Likewise.
21865 * lib/unistr/u32-strpbrk.c: Likewise.
21866 * lib/unistr/u32-strrchr.c: Likewise.
21867 * lib/unistr/u32-strspn.c: Likewise.
21868 * lib/unistr/u32-strstr.c: Likewise.
21869 * lib/unistr/u32-strtok.c: Likewise.
21870 * lib/unistr/u32-to-u16.c: Likewise.
21871 * lib/unistr/u32-to-u8.c: Likewise.
21872 * lib/unistr/u32-uctomb.c: Likewise.
21873 * lib/unistr/u8-check.c: Likewise.
21874 * lib/unistr/u8-chr.c: Likewise.
21875 * lib/unistr/u8-cmp.c: Likewise.
21876 * lib/unistr/u8-cpy-alloc.c: Likewise.
21877 * lib/unistr/u8-cpy.c: Likewise.
21878 * lib/unistr/u8-endswith.c: Likewise.
21879 * lib/unistr/u8-mblen.c: Likewise.
21880 * lib/unistr/u8-mbsnlen.c: Likewise.
21881 * lib/unistr/u8-mbtouc-aux.c: Likewise.
21882 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21883 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21884 * lib/unistr/u8-mbtouc.c: Likewise.
21885 * lib/unistr/u8-mbtoucr.c: Likewise.
21886 * lib/unistr/u8-move.c: Likewise.
21887 * lib/unistr/u8-next.c: Likewise.
21888 * lib/unistr/u8-prev.c: Likewise.
21889 * lib/unistr/u8-set.c: Likewise.
21890 * lib/unistr/u8-startswith.c: Likewise.
21891 * lib/unistr/u8-stpcpy.c: Likewise.
21892 * lib/unistr/u8-stpncpy.c: Likewise.
21893 * lib/unistr/u8-strcat.c: Likewise.
21894 * lib/unistr/u8-strchr.c: Likewise.
21895 * lib/unistr/u8-strcmp.c: Likewise.
21896 * lib/unistr/u8-strcpy.c: Likewise.
21897 * lib/unistr/u8-strcspn.c: Likewise.
21898 * lib/unistr/u8-strdup.c: Likewise.
21899 * lib/unistr/u8-strlen.c: Likewise.
21900 * lib/unistr/u8-strmblen.c: Likewise.
21901 * lib/unistr/u8-strmbtouc.c: Likewise.
21902 * lib/unistr/u8-strncat.c: Likewise.
21903 * lib/unistr/u8-strncmp.c: Likewise.
21904 * lib/unistr/u8-strncpy.c: Likewise.
21905 * lib/unistr/u8-strnlen.c: Likewise.
21906 * lib/unistr/u8-strpbrk.c: Likewise.
21907 * lib/unistr/u8-strrchr.c: Likewise.
21908 * lib/unistr/u8-strspn.c: Likewise.
21909 * lib/unistr/u8-strstr.c: Likewise.
21910 * lib/unistr/u8-strtok.c: Likewise.
21911 * lib/unistr/u8-to-u16.c: Likewise.
21912 * lib/unistr/u8-to-u32.c: Likewise.
21913 * lib/unistr/u8-uctomb-aux.c: Likewise.
21914 * lib/unistr/u8-uctomb.c: Likewise.
21915 * lib/unitypes.h: Likewise.
21916 * lib/uniwidth.h: Likewise.
21917 * lib/uniwidth/cjk.h: Likewise.
21918 * lib/uniwidth/u16-strwidth.c: Likewise.
21919 * lib/uniwidth/u16-width.c: Likewise.
21920 * lib/uniwidth/u32-strwidth.c: Likewise.
21921 * lib/uniwidth/u32-width.c: Likewise.
21922 * lib/uniwidth/u8-strwidth.c: Likewise.
21923 * lib/uniwidth/u8-width.c: Likewise.
21924 * lib/uniwidth/width.c: Likewise.
21926 2007-10-07 Bruno Haible <bruno@clisp.org>
21928 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
21929 The file is still under LGPL (see modules/inttypes).
21931 2007-10-06 Bruno Haible <bruno@clisp.org>
21933 * modules/trunc (Dependencies): Add 'extensions'.
21934 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
21935 Reported by Ben Pfaff <blp@gnu.org>.
21937 2007-10-06 Bruno Haible <bruno@clisp.org>
21939 * modules/freopen-tests: New file.
21940 * tests/test-freopen.c: New file.
21942 * modules/fopen-tests: New file.
21943 * tests/test-fopen.c: New file.
21945 * modules/fopen: New file.
21946 * lib/fopen.c: New file.
21947 * m4/fopen.m4: New file.
21948 * modules/freopen: New file.
21949 * lib/freopen.c: New file.
21950 * m4/freopen.m4: New file.
21951 * lib/stdio.in.h (fopen, freopen): New declarations.
21952 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
21953 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21954 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
21955 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21956 * doc/functions/fopen.texi: Mention the 'fopen' module.
21957 * doc/functions/freopen.texi: Mention the 'freopen' module.
21959 2007-10-06 Bruno Haible <bruno@clisp.org>
21961 * modules/open-tests: New file.
21962 * tests/test-open.c: New file.
21964 * modules/open: New file.
21965 * lib/open.c: New file.
21966 * m4/open.m4: New file.
21967 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
21969 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
21970 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
21972 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
21973 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
21975 * doc/functions/open.texi: Mention the 'open' module.
21977 2007-10-04 Bruno Haible <bruno@clisp.org>
21979 * modules/ceill-tests: New file.
21980 * tests/test-ceill.c: New file.
21982 * modules/ceill: New file.
21983 * lib/ceill.c: Replace entire file.
21984 * m4/ceill.m4: New file.
21985 * lib/math.in.h (ceill): Replace declaration.
21986 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
21987 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
21988 * doc/functions/ceill.texi: Mention the 'ceill' module.
21989 * modules/mathl (Files): Remove lib/ceill.c.
21990 (Depends-on): Add ceill.
21992 2007-10-04 Bruno Haible <bruno@clisp.org>
21994 * modules/ceilf-tests: New file.
21995 * tests/test-ceilf.c: New file.
21997 * modules/ceilf: New file.
21998 * lib/ceil.c: New file.
21999 * lib/ceilf.c: New file.
22000 * m4/ceilf.m4: New file.
22001 * lib/math.in.h (ceilf): New declaration.
22002 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
22004 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
22006 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
22008 2007-10-04 Bruno Haible <bruno@clisp.org>
22010 * modules/floorl-tests: New file.
22011 * tests/test-floorl.c: New file.
22013 * modules/floorl: New file.
22014 * lib/floorl.c: Replace entire file.
22015 * m4/floorl.m4: New file.
22016 * lib/math.in.h (floorl): Replace declaration.
22017 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
22018 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
22019 * doc/functions/floorl.texi: Mention the 'floorl' module.
22020 * modules/mathl (Files): Remove lib/floorl.c.
22021 (Depends-on): Add floorl.
22023 2007-10-04 Bruno Haible <bruno@clisp.org>
22025 * modules/floorf-tests: New file.
22026 * tests/test-floorf.c: New file.
22028 * modules/floorf: New file.
22029 * lib/floor.c: New file.
22030 * lib/floorf.c: New file.
22031 * m4/floorf.m4: New file.
22032 * lib/math.in.h (floorf): New declaration.
22033 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
22035 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
22037 * doc/functions/floorf.texi: Mention the 'floorf' module.
22039 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
22040 Bruno Haible <bruno@clisp.org>
22042 Advertise for the Git server instead of the CVS server.
22043 * doc/gnulib-intro.texi (Steady Development): Mention the Git
22044 repository instead of the CVS one.
22045 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
22046 about all VCS systems generically.
22047 * doc/gnulib.texi (Introduction): Capitalize `Git'.
22049 2007-10-04 Bruno Haible <bruno@clisp.org>
22051 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
22053 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
22055 2007-10-04 Bruno Haible <bruno@clisp.org>
22057 * modules/truncl-tests: New file.
22058 * tests/test-truncl.c: New file.
22060 * modules/truncl: New file.
22061 * lib/truncl.c: New file.
22062 * m4/truncl.m4: New file.
22063 * lib/math.in.h (truncl): New declaration.
22064 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
22066 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
22068 * doc/functions/truncl.texi: Mention the 'truncl' module.
22070 2007-10-04 Bruno Haible <bruno@clisp.org>
22072 * modules/truncf-tests: New file.
22073 * tests/test-truncf.c: New file.
22075 * modules/truncf: New file.
22076 * lib/trunc.c: Make paramerizable through USE_* macros.
22077 * lib/truncf.c: New file.
22078 * m4/truncf.m4: New file.
22079 * lib/math.in.h (truncf): New declaration.
22080 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
22082 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
22084 * doc/functions/truncf.texi: Mention the 'truncf' module.
22086 2007-10-03 Bruno Haible <bruno@clisp.org>
22088 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22089 augmentation also for tests modules.
22090 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
22091 * modules/atexit-tests (Makefile.am): Likewise.
22092 * modules/binary-io-tests (Makefile.am): Likewise.
22093 * modules/c-strcase-tests (Makefile.am): Likewise.
22094 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
22095 * modules/canonicalize-tests (Makefile.am): Likewise.
22096 * modules/closein-tests (Makefile.am): Likewise.
22097 * modules/fprintf-posix-tests (Makefile.am): Likewise.
22098 * modules/freadahead-tests (Makefile.am): Likewise.
22099 * modules/fseek-tests (Makefile.am): Likewise.
22100 * modules/fseeko-tests (Makefile.am): Likewise.
22101 * modules/ftell-tests (Makefile.am): Likewise.
22102 * modules/ftello-tests (Makefile.am): Likewise.
22103 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
22104 * modules/isnanl-tests (Makefile.am): Likewise.
22105 * modules/lseek-tests (Makefile.am): Likewise.
22106 * modules/mbscasecmp-tests (Makefile.am): Likewise.
22107 * modules/mbscasestr-tests (Makefile.am): Likewise.
22108 * modules/mbschr-tests (Makefile.am): Likewise.
22109 * modules/mbscspn-tests (Makefile.am): Likewise.
22110 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22111 * modules/mbspbrk-tests (Makefile.am): Likewise.
22112 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22113 * modules/mbsrchr-tests (Makefile.am): Likewise.
22114 * modules/mbsspn-tests (Makefile.am): Likewise.
22115 * modules/mbsstr-tests (Makefile.am): Likewise.
22116 * modules/printf-posix-tests (Makefile.am): Likewise.
22117 * modules/snprintf-posix-tests (Makefile.am): Likewise.
22118 * modules/sprintf-posix-tests (Makefile.am): Likewise.
22119 * modules/tsearch-tests (Makefile.am): Likewise.
22120 * modules/uniname/uniname-tests (Makefile.am): Likewise.
22121 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22122 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22123 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22124 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22125 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22126 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22127 * modules/vprintf-posix-tests (Makefile.am): Likewise.
22128 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
22129 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
22130 * modules/xstrtoimax-tests (Makefile.am): Likewise.
22131 * modules/xstrtol-tests (Makefile.am): Likewise.
22132 * modules/xstrtoumax-tests (Makefile.am): Likewise.
22133 * modules/yesno-tests (Makefile.am): Likewise.
22135 2007-10-03 Bruno Haible <bruno@clisp.org>
22137 * modules/trunc-tests: New file.
22138 * tests/test-trunc.c: New file.
22140 * modules/trunc: New file.
22141 * lib/trunc.c: New file.
22142 * m4/trunc.m4: New file.
22143 * lib/math.in.h (trunc): New declaration.
22144 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
22146 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
22148 * doc/functions/trunc.texi: Mention the 'trunc' module.
22150 2007-10-03 Bruno Haible <bruno@clisp.org>
22152 * tests/test-fpending.c: New file, mostly copied
22153 from coreutils/lib/t-fpending.c.
22154 * modules/fpending-tests: New file.
22156 2007-10-03 Bruno Haible <bruno@clisp.org>
22158 Port the stdio extensions to QNX (untested).
22159 * lib/fseterr.c (fseterr): Add support for QNX.
22160 * lib/fbufmode.c (fbufmode): Likewise.
22161 * lib/freadable.c (freadable): Likewise.
22162 * lib/fwritable.c (fwritable): Likewise.
22163 * lib/freading.c (freading): Likewise.
22164 * lib/fwriting.c (fwriting): Likewise.
22165 * lib/freadahead.c (freadahed): Likewise.
22166 * lib/fpurge.c (fpurge): Likewise.
22167 * lib/fseeko.c (rpl_fseeko): Likewise.
22169 2007-10-03 Bruno Haible <bruno@clisp.org>
22170 Jim Meyering <jim@meyering.net>
22171 Eric Blake <ebb9@byu.net>
22173 * doc/relocatable.texi: Use @command instead of @program.
22175 2007-10-02 Jim Meyering <jim@meyering.net>
22177 Perform one more "_.h" -> ".in.h" substitution.
22178 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
22179 instead of unistd_.h here, too.
22181 2007-10-01 Bruno Haible <bruno@clisp.org>
22183 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
22184 Needed for the alloca-opt module.
22186 2007-09-30 Bruno Haible <bruno@clisp.org>
22188 * lib/alloca.in.h: Renamed from lib/alloca_.h.
22189 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
22191 * lib/argz.in.h: Renamed from lib/argz_.h.
22192 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
22193 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
22194 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
22196 * lib/dirent.in.h: Renamed from lib/dirent_.h.
22197 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
22199 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
22200 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
22202 * lib/float.in.h: Renamed from lib/float_.h.
22203 * modules/float (Files, Makefile.am): Use float.in.h instead of
22205 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
22206 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
22208 * lib/getopt.in.h: Renamed from lib/getopt_.h.
22209 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
22211 * lib/glob.in.h: Renamed from lib/glob_.h.
22212 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
22213 * lib/iconv.in.h: Renamed from lib/iconv_.h.
22214 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
22216 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
22217 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
22219 * lib/locale.in.h: Renamed from lib/locale_.h.
22220 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
22222 * lib/math.in.h: Renamed from lib/math_.h.
22223 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
22224 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
22225 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
22226 of netinet_in_.h. Add dependency.
22227 * lib/poll.in.h: Renamed from lib/poll_.h.
22228 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
22229 * lib/search.in.h: Renamed from lib/search_.h.
22230 * modules/search (Files, Makefile.am): Use search.in.h instead of
22232 * lib/signal.in.h: Renamed from lib/signal_.h.
22233 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
22235 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
22236 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
22238 * lib/stdint.in.h: Renamed from lib/stdint_.h.
22239 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
22241 * lib/stdio.in.h: Renamed from lib/stdio_.h.
22242 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
22244 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
22245 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
22247 * lib/string.in.h: Renamed from lib/string_.h.
22248 * modules/string (Files, Makefile.am): Use string.in.h instead of
22250 * doc/gnulib-tool.texi (Initial import): Update.
22251 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
22252 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
22253 of sys_select_.h. Add dependency.
22254 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
22255 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
22257 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
22258 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
22260 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
22261 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
22263 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
22264 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
22266 * lib/time.in.h: Renamed from lib/time_.h.
22267 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
22268 * lib/unistd.in.h: Renamed from lib/unistd_.h.
22269 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
22271 * lib/wchar.in.h: Renamed from lib/wchar_.h.
22272 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
22274 * lib/wctype.in.h: Renamed from lib/wctype_.h.
22275 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
22277 * build-aux/bootstrap (slurp): Update.
22278 * lib/.cppi-disable: Update.
22280 2007-09-30 Bruno Haible <bruno@clisp.org>
22282 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
22285 2007-09-30 Bruno Haible <bruno@clisp.org>
22287 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
22289 2007-09-29 Bruno Haible <bruno@clisp.org>
22291 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
22293 2007-09-29 Bruno Haible <bruno@clisp.org>
22295 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
22296 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
22297 * build-aux/install-reloc: Compile also areadlink.c.
22298 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
22300 2007-09-29 Bruno Haible <bruno@clisp.org>
22302 * gnulib-tool (func_emit_initmacro_done): Indentation.
22304 2007-09-29 Bruno Haible <bruno@clisp.org>
22306 * README: Add CVS checkout update instructions.
22307 Info from Bob Proulx <bob@proulx.com>.
22309 2007-09-28 Eric Blake <ebb9@byu.net>
22311 Provide move-if-change.
22312 * build-aux/move-if-change: New file, based on best practice
22313 rather than any canonical upstream location.
22315 2007-09-28 Jim Meyering <jim@meyering.net>
22317 Fix canonicalize loop-detection corner case.
22318 Do not attempt to stat the symlink values stored via seen_triple.
22319 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
22320 on linux-2.6.18, (but not 2.6.22).
22321 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
22322 triple_compare. The former compares dev,ino,filename, while the latter
22323 would actually stat dirname(filename) when dev and ino were equal.
22324 * lib/hash-triple.c: Install <string.h>.
22326 (triple_compare_ino_str): New function.
22327 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
22329 2007-09-28 Eric Blake <ebb9@byu.net>
22331 Enforce that AC_REPLACE_FUNCS files exist.
22332 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
22333 override check for typos.
22335 Fix test-closein on Solaris 10.
22336 * tests/test-closein.c (main): Don't assume stdin can be inherited
22337 closed on all systems.
22338 * tests/test-closein.sh: Likewise.
22339 Reported by Piotr Tarnowski.
22341 2007-09-28 Jim Meyering <jim@meyering.net>
22343 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
22345 2007-09-27 Jim Meyering <jim@meyering.net>
22347 canonicalize: Avoid a false-positive cycle failure.
22348 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
22349 Sort. Remove cycle-check.
22350 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
22352 (seen_triple): New function.
22353 (canonicalize_filename_mode): Use it instead of cycle-check.
22354 * tests/test-canonicalize.c: Add a test for this bug.
22355 * tests/test-canonicalize.sh: Set up and run the test.
22357 New module, file-set, from coreutils.
22358 * modules/file-set: Define it.
22359 * lib/file-set.c, lib/file-set.h: Implement.
22361 New module, hash-triple, from coreutils.
22362 * modules/hash-triple: Define it.
22363 * lib/hash-triple.c, lib/hash-triple.h: Implement.
22365 2007-09-25 Eric Blake <ebb9@byu.net>
22367 Fix strerror on Interix.
22368 * lib/string_.h (strerror): Declare replacement.
22369 * doc/functions/strerror.texi (strerror): Document the Interix
22371 * modules/string (Makefile.am): Support new hooks.
22372 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
22373 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
22374 gl_FUNC_STRERROR_SEPARATE.
22375 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
22376 * lib/strerror.c (rpl_strerror): Provide replacement.
22377 * modules/strerror (Depends-on): Add string.
22378 (configure.ac): Detect use of module.
22379 * tests/test-strerror.c: New file.
22380 * modules/strerror-tests: New test module.
22381 * modules/argp (Depends-on): Add strerror.
22382 * modules/error (Depends-on): Likewise.
22383 Reported by Martin Koeppe.
22385 2007-09-24 Bruno Haible <bruno@clisp.org>
22387 * README: Update git instructions.
22389 2007-09-24 Eric Blake <ebb9@byu.net>
22391 Revert fpending breakage from 2007-09-08.
22392 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
22395 2007-09-24 Jim Meyering <jim@meyering.net>
22397 filenamecat.c: Add a test.
22398 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
22399 showing how the function works when DIR is the empty string.
22401 2007-09-21 Simon Josefsson <simon@josefsson.org>
22403 * tests/test-canonicalize.sh: Turn on executable bit.
22405 2007-09-19 Eric Blake <ebb9@byu.net>
22407 * README: Update CVS instructions.
22409 2007-09-18 Bruno Haible <bruno@clisp.org>
22411 * modules/areadlink: New file.
22412 * lib/areadlink.h (areadlink): New declaration.
22413 * lib/areadlink.c: New file, based on lib/xreadlink.c.
22415 2007-09-17 Jim Meyering <jim@meyering.net>
22417 * lib/savewd.c (ESTALE) [!defined]: Define.
22418 Reported to be required on Interix by Martin Koeppe.
22420 2007-09-17 Bruno Haible <bruno@clisp.org>
22422 * gnulib-tool (func_version): Use $version.
22424 2007-09-16 Bruno Haible <bruno@clisp.org>
22426 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
22427 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
22428 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
22429 Reported by Greg Schafer <gschafer@zip.com.au>.
22431 2007-09-15 Bruno Haible <bruno@clisp.org>
22433 * gnulib-tool (sed): Try a little harder to make bash understand the
22435 Reported by Bruce Korb <bruce.korb@gmail.com>.
22437 2007-09-13 Eric Blake <ebb9@byu.net>
22439 * ChangeLog: Remove conflict markers.
22441 2007-09-13 Simon Josefsson <simon@josefsson.org>
22443 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
22444 Reported by Bruno Haible <bruno@clisp.org>.
22446 2007-09-12 Bruno Haible <bruno@clisp.org>
22448 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
22449 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
22452 2007-09-12 Eric Blake <ebb9@byu.net>
22454 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
22455 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
22456 Autoconf definition.
22457 * modules/euidaccess (Depends-on): Add extensions, for
22458 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
22459 * modules/fnmatch (Depends-on): Likewise.
22460 * modules/getaddrinfo (Depends-on): Likewise.
22461 * modules/getdelim (Depends-on): Likewise.
22462 * modules/getline (Depends-on): Likewise.
22463 * modules/getsubopt (Depends-on): Likewise.
22464 * modules/gettext (Depends-on): Likewise.
22465 * modules/group-member (Depends-on): Likewise.
22466 * modules/mbchar (Depends-on): Likewise.
22467 * modules/memmem (Depends-on): Likewise.
22468 * modules/mempcpy (Depends-on): Likewise.
22469 * modules/memrchr (Depends-on): Likewise.
22470 * modules/pagealign_alloc (Depends-on): Likewise.
22471 * modules/readutmp (Depends-on): Likewise.
22472 * modules/stpcpy (Depends-on): Likewise.
22473 * modules/stpncpy (Depends-on): Likewise.
22474 * modules/strchrnul (Depends-on): Likewise.
22475 * modules/strndup (Depends-on): Likewise.
22476 * modules/strsep (Depends-on): Likewise.
22477 * modules/strverscmp (Depends-on): Likewise.
22478 * modules/vasprintf (Depends-on): Likewise.
22479 * modules/wcwidth (Depends-on): Likewise.
22480 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
22481 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
22482 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
22483 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
22484 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22485 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22486 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
22487 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22488 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
22489 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22490 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22491 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
22492 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
22493 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22494 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
22495 * m4/readutmp.m4 (gl_READUTMP): Likewise.
22496 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22497 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
22498 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22499 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
22500 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22501 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
22502 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
22503 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
22504 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
22505 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22506 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
22507 so that lock.m4 can be used in gettext without extensions module.
22509 2007-09-11 Bruno Haible <bruno@clisp.org>
22511 * m4/isc-posix.m4: Remove file.
22512 Suggested by Eric Blake.
22514 2007-09-11 Eric Blake <ebb9@byu.net>
22516 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
22518 2007-09-10 Bruno Haible <bruno@clisp.org>
22520 * posix-modules: Fix typo in error message.
22521 Reported by Matt <mkraai@beckman.com>.
22523 2007-09-09 Bruno Haible <bruno@clisp.org>
22525 * doc/functions/getdelim.texi: Update list of platforms lacking the
22527 * doc/functions/getline.texi: Likewise.
22529 2007-09-09 Jim Meyering <jim@meyering.net>
22531 * lib/hash.c (hash_initialize): Detect calloc failure.
22532 Reported by Bruno Haible.
22534 2007-09-09 Bruno Haible <bruno@clisp.org>
22536 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
22537 malloc or realloc fails.
22539 2007-09-09 Bruno Haible <bruno@clisp.org>
22541 * modules/getcwd (Depends-on): Add malloc-posix.
22542 * modules/glob (Depends-on): Likewise.
22543 * modules/putenv (Depends-on): Likewise.
22544 * modules/strdup (Depends-on): Likewise.
22545 * modules/getdelim (Depends-on): Add realloc-posix.
22546 * modules/read-file (Depends-on): Likewise.
22548 2007-09-09 Bruno Haible <bruno@clisp.org>
22550 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
22551 (gl_FUNC_MALLOC_POSIX): Require it.
22552 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
22553 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
22554 * modules/realloc (Files): Add m4/malloc.m4.
22555 * modules/calloc (Files): Likewise.
22557 2007-09-09 Bruno Haible <bruno@clisp.org>
22559 * modules/malloc-posix: New file.
22560 * modules/malloc (Depends-on): Add malloc-posix.
22561 * lib/malloc.c: Include errno.h.
22562 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
22563 and a POSIX-compatible malloc into a single function. Set ENOMEM
22564 when returning NULL.
22565 * m4/malloc.m4: New file.
22566 * doc/functions/malloc.texi: Mention the malloc-posix module.
22567 * lib/stdlib_.h (malloc): New declaration.
22568 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22569 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
22570 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
22571 and HAVE_MALLOC_POSIX.
22573 2007-09-09 Bruno Haible <bruno@clisp.org>
22575 * modules/realloc-posix: New file.
22576 * modules/realloc (Depends-on): Add realloc-posix.
22577 * lib/realloc.c: Include errno.h.
22578 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
22579 and a POSIX-compatible realloc into a single function. Set ENOMEM
22580 when returning NULL.
22581 * m4/realloc.m4: New file.
22582 * doc/functions/realloc.texi: Mention the realloc-posix module.
22583 * lib/stdlib_.h (realloc): New declaration.
22584 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22585 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
22586 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
22587 and HAVE_REALLOC_POSIX.
22589 2007-09-09 Bruno Haible <bruno@clisp.org>
22591 * modules/calloc-posix: New file.
22592 * modules/calloc (Depends-on): Add calloc-posix.
22593 * lib/calloc.c: Include errno.h.
22594 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
22595 and a POSIX-compatible calloc into a single function. Set ENOMEM
22596 when returning NULL.
22597 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
22598 * doc/functions/calloc.texi: Mention the calloc-posix module.
22599 * lib/stdlib_.h (calloc): New declaration.
22600 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22601 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
22602 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
22603 and HAVE_CALLOC_POSIX.
22605 2007-09-09 Bruno Haible <bruno@clisp.org>
22607 Allow for modules to show an arbitrary notice.
22608 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
22609 * gnulib-tool: New option --extract-notice.
22610 (func_usage): Document it.
22611 (sed_extract_prog): Update.
22612 (func_get_notice): New function.
22613 (func_modules_notice): New function.
22614 (func_import, func_create_testdir): Invoke it.
22615 Suggested by Jim Meyering.
22617 2007-09-09 Bruno Haible <bruno@clisp.org>
22619 * gnulib-tool: New options --verbose, --quiet.
22620 (func_usage): Document them.
22621 (verbose): New variable.
22622 (func_execute_command): New function.
22623 (func_import): Don't show the module list and the file list if
22625 (func_create_testdir): Likewise. Use func_execute_command.
22626 (func_create_megatestdir): Use func_execute_command.
22628 2007-09-08 Bruno Haible <bruno@clisp.org>
22630 * gnulib-tool (func_import): Prefer rsync over wget when available,
22631 for fetching the PO files.
22633 2007-09-08 Bruno Haible <bruno@clisp.org>
22635 * posix-modules: New file. Portions copied from gnulib-tool.
22636 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
22638 2007-09-08 Jim Meyering <jim@meyering.net>
22640 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
22641 * lib/fpending.h: Rename from __fpending.h.
22642 * lib/fpending.c: Rename from __fpending.c.
22643 Include "fpending.h", not "__fpending.h".
22644 * lib/__fpending.h, lib/__fpending.c: Remove files.
22645 * modules/fpending (Files): Reflect new file names.
22646 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
22648 2007-09-08 Bruno Haible <bruno@clisp.org>
22650 * m4/inttypes-h.m4: Remove stub file.
22652 2007-09-07 Simon Josefsson <simon@josefsson.org>
22654 * doc/headers/stdint.texi: Discuss #include_next issue.
22656 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
22658 * build-aux/bootstrap: Remove obsolete comment about wget --help.
22660 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22662 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
22665 2007-09-03 Jim Meyering <jim@meyering.net>
22667 New module: git-version-gen.
22668 * modules/git-version-gen: New file.
22670 Import changes from coreutils for bootstrap script.
22672 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
22674 bootstrap: uses rsync to download the .po files
22675 * build-aux/bootstrap (po_download_command_format): New global.
22676 (download_po_files): Use rsync.
22677 (update_po_files): Don't remove .po files after download,
22678 so future rsync runs can take advantage of the copies.
22680 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
22682 Solve the unnecessary-.po-file-regeneration problem once and for all.
22683 * build-aux/bootstrap (download_po_files): New function, renamed from
22684 get_translations. Now, downloads, but doesn't update LINGUAS.
22685 (update_po_files): New function.
22687 bootstrap: Ignore more.
22688 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
22689 uniwidth to e.g., lib/.gitignore.
22690 (slurp): Handle the sys_stat_.h -> sys mapping, too.
22692 * build-aux/bootstrap: New setting: vc_ignore.
22693 (insert_sorted_if_absent): Create $file if absent.
22694 Adapt to new, possibly empty, list: $vc_ignore.
22696 bootstrap: generate more ignorable names
22697 * build-aux/bootstrap (slurp): When generating ignorable names,
22698 also map .sin to .sed, .gperf to .c, and .y to .c.
22700 2007-09-03 Jim Meyering <jim@meyering.net>
22702 * build-aux/git-version-gen: New file, from coreutils. For details, see
22703 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
22705 2007-09-02 Bruno Haible <bruno@clisp.org>
22707 Fix mis-recognition of 'mcs' on QNX 6.
22708 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
22709 output contains the string "Mono".
22710 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
22711 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
22713 2007-09-01 Bruno Haible <bruno@clisp.org>
22715 Fix collision between uniwidth/* and linebreak modules.
22716 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
22717 u32_width): Remove declarations.
22718 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
22719 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
22720 streq3, streq2, streq1, streq0): Remove functions.
22721 (STREQ): Remove macro.
22722 (is_cjk_encoding): Remove function.
22723 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
22724 (uc_width, u8_width, u16_width, u32_width): Remove functions.
22725 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
22726 * NEWS: Document the change.
22728 2007-09-01 Bruno Haible <bruno@clisp.org>
22730 * lib/streq.h: Add double-inclusion guard.
22732 2007-09-01 Karl Berry <karl@gnu.org>
22734 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
22736 2007-08-28 Jim Meyering <jim@meyering.net>
22738 Rename mreadlink_with_size to areadlink_with_size.
22739 * NEWS: Document the change.
22740 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
22741 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
22742 * lib/mreadlink.h: Rename this to...
22743 * lib/areadlink.h: ...this.
22744 * modules/mreadlink-with-size: Rename this to...
22745 * modules/areadlink-with-size: ...this.
22746 * lib/canonicalize.c: Reflect the renaming.
22747 * modules/canonicalize: Likewise.
22749 2007-08-26 Bruno Haible <bruno@clisp.org>
22751 * gnulib-tool (func_import): When deciding which files to remove,
22752 consider also dangling symbolic links.
22753 Reported by Eric Blake.
22755 2007-08-26 Bruno Haible <bruno@clisp.org>
22757 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
22759 2007-08-23 Simon Josefsson <simon@josefsson.org>
22761 * lib/readline.c: Don't include getline.h, the prototype is now
22764 2007-08-23 Jim Meyering <jim@meyering.net>
22767 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
22768 around the funlockfile call, since funlockfile never sets errno.
22769 Don't set errno upon failed realloc.
22771 2007-08-22 Eric Blake <ebb9@byu.net>
22774 * lib/getdelim.c (getdelim): Revert regression that required *n to
22775 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
22776 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
22777 getdelim, rather than whether implementation is missing.
22778 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
22779 * lib/stdio_.h (getline): Also declare if replacement is
22781 * doc/functions/getdelim.texi: New file.
22782 * doc/functions/getline.texi: Likewise.
22783 * doc/gnulib.texi (Function Substitutes): Add new files.
22784 Reported by Bruno Haible.
22786 2007-08-22 Ludovic Courtès <ludo@gnu.org>
22788 * users.txt: Add Guile.
22790 2007-08-22 Eric Blake <ebb9@byu.net>
22792 * tests/test-getdelim.c (main): Use remove, not unlink.
22793 * tests/test-getline.c (main): Likewise.
22795 Move getline and getdelim into stdio.h, per POSIX 200x.
22796 * modules/getline (Files): Remove getline.h.
22797 (Depends-on): Add stdio.
22798 (configure.ac): Add module indicator.
22799 * modules/getdelim (Files): Remove getdelim.h.
22800 (Depends-on): Add stdio.
22801 (configure.ac): Add module indicator.
22802 * modules/stdio (Makefile.am): Work with new indicators.
22803 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22804 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
22805 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22806 * lib/getdelim.h: Delete.
22807 * lib/getline.h: Delete.
22808 * lib/stdio_.h (getdelim, getline): Declare.
22809 * modules/getdelim-tests: New module.
22810 * modules/getline-tests: Likewise.
22811 * tests/test-getdelim.c: New file.
22812 * tests/test-getline.c: Likewise.
22813 * NEWS: Document the change.
22814 * lib/getline.c: Update choice of header.
22815 * lib/csharpcomp.c: Likewise.
22816 * lib/getpass.c: Likewise.
22817 * lib/javacomp.c: Likewise.
22818 * lib/javaversion.c: Likewise.
22819 * lib/yesno.c: Likewise.
22820 * lib/getdelim.c: Likewise.
22821 (getdelim): Set errno on failure, and avoid memory leak.
22823 2007-08-19 Bruno Haible <bruno@clisp.org>
22825 * modules/closein (Depends-on): Add freadahead.
22826 * lib/closein.c: Include freadahead.h.
22827 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
22830 2007-08-19 Bruno Haible <bruno@clisp.org>
22832 * modules/freadahead-tests: New file.
22833 * tests/test-freadahead.sh: New file.
22834 * tests/test-freadahead.c: New file.
22836 * modules/freadahead: New file.
22837 * lib/freadahead.h: New file.
22838 * lib/freadahead.c: New file.
22839 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
22840 fbufmode, fpurge, freadable, fwritable.
22842 2007-08-19 Eric Blake <ebb9@byu.net>
22844 Test yesno in combination with closein.
22845 * lib/yesno.c (yesno): Document use of stdin.
22846 * modules/yesno-tests (Files): New module.
22847 * tests/test-yesno.c (main): New file.
22848 * tests/test-yesno.sh: Likewise.
22850 2007-08-19 Bruno Haible <bruno@clisp.org>
22852 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
22853 * lib/fseeko.c (rpl_fseeko): Likewise.
22854 * lib/fseterr.c (fseterr): Likewise.
22856 2007-08-19 Bruno Haible <bruno@clisp.org>
22858 * tests/test-lseek.c (main): Disable a test for BeOS.
22859 * doc/functions/lseek.texi: Document the BeOS bug.
22861 2007-08-19 Bruno Haible <bruno@clisp.org>
22862 Eric Blake <ebb9@byu.net>
22864 * lib/lseek.c: Include <sys/stat.h>.
22865 (rpl_lseek): Add workaround code also for Unix platforms.
22867 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
22868 * doc/functions/lseek.texi: Document BeOS definiency.
22870 2007-08-18 Bruno Haible <bruno@clisp.org>
22872 * modules/fstrcmp-tests: New file.
22873 * tests/test-fstrcmp.c: New file.
22875 2007-08-18 Bruno Haible <bruno@clisp.org>
22877 * modules/fstrcmp: New file, from GNU gettext with modifications.
22878 * lib/fstrcmp.h: New file, from GNU gettext.
22879 * lib/fstrcmp.c: New file, from GNU gettext.
22880 * MODULES.html.sh (String handling): Add fstrcmp.
22882 2007-08-18 Bruno Haible <bruno@clisp.org>
22884 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
22886 (diag, compareseq): Remove const from the ctxt argument.
22887 (USE_HEURISTIC): Undefine at the end.
22889 2007-08-18 Jim Meyering <jim@meyering.net>
22891 New file: lib/idcache.h
22892 * NEWS: Mention the addition.
22893 * modules/idcache (Files): Add lib/idcache.h
22894 * lib/idcache.c: Include "idcache.h".
22895 Don't include <sys/types.h>.
22896 Add a FIXME comment.
22897 Move file-scoped "static" declarations to the top.
22898 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
22900 2007-08-17 Bruno Haible <bruno@clisp.org>
22901 and Paul Eggert <eggert@cs.ucla.edu>
22903 * MODULES.html.sh: Add diffseq.
22904 * modules/diffseq: New file.
22905 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
22906 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
22908 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
22910 Import changes from coreutils for bootstrap script.
22912 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
22914 * build-aux/bootstrap (slurp): Work even in environments where
22915 "ls" defaults to "ls -A". Put in a FIXME, though, since the
22916 current code does not slurp files whose names start with ".", and
22917 this looks like it might be a troublesome area.
22919 2007-07-11 Jim Meyering <jim@meyering.net>
22921 If there's a GPL vN copyright comment, require that N == 3.
22923 2007-07-08 Jim Meyering <jim@meyering.net>
22925 Run the coreutils-specific code only if tests/Makefile.am.in exists.
22926 * build-aux/bootstrap (mam_template): Move definition out of loop.
22928 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
22930 * build-aux/bootstrap (symlink_to_dir): Rename function from
22931 symlink_to_gnulib. Add a directory parameter. Update all
22933 (cp_mark_as_generated): Also check for -- and link to -- files in
22936 2007-07-08 Jim Meyering <jim@meyering.net>
22938 Adapt to deeper hierarchy in gnulib.
22939 * build-aux/bootstrap (symlink_to_dir): If the destination
22940 directory doesn't exist, create it. This is required at least for
22941 "lib/uniwidth/cjk.h".
22943 2007-05-15 Jim Meyering <jim@meyering.net>
22945 * build-aux/bootstrap: Now that generated Makefile.am files
22946 are no longer under version control, they must be created at
22949 2007-08-14 Ben Pfaff <blp@gnu.org>
22951 * lib/count-one-bits.h: Add comments. From Bruno Haible.
22953 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
22955 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
22956 given the changes below.
22957 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
22958 even on hosts that have padding bits beyond the supported 64.
22960 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
22962 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
22963 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
22964 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
22966 (xstrtol_error): Remove.
22967 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
22968 but with a different signature.
22969 (ATTRIBUTE_NORETURN, __attribute__): New macros.
22970 * lib/xstrtol-error.c: Include exitfail.h.
22971 (xstrtol_fatal): New function, with a different signature from the
22972 old xstrtol_error, so that the caller need not worry about passing
22973 in an exit status, or about storage management of the option argument.
22974 (xstrtol_error): Now a static function. Redo signature to
22975 implement xstrtol_fatal. Output the correct number of hyphens in
22976 front of the option so that the caller need not worry about
22977 storage management.
22979 (_): Remove; not used now.
22980 * modules/xstrtol: Depend on getopt.
22981 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
22982 of old STRTOL_FATAL_ERROR macro.
22983 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
22985 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
22986 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
22988 2007-08-08 Eric Blake <ebb9@byu.net>
22990 * lib/xstrtol-error.c: Add missing include.
22992 Move xstrtol messages into gnulib domain, when --pobase is used.
22993 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
22994 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
22995 * modules/xstrtol (Files): Distribute new file.
22996 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
22997 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
22998 * tests/test-xstrtol.c: ...into new file.
22999 * tests/test-xstrtoul.c: Also test xstrtoul.
23000 * tests/test-xstrtoimax.c: Also test xstrtoimax.
23001 * tests/test-xstrtoumax.c: Also test xstrtoumax.
23002 * tests/test-xstrtol.sh: Drive the tests.
23003 * tests/test-xstrtoimax.sh: Likewise.
23004 * tests/test-xstrtoumax.sh: Likewise.
23005 * modules/xstrtol-tests: New module.
23006 * modules/xstrtoimax-tests: Likewise.
23007 * modules/xstrtoumax-tests: Likewise.
23009 2007-08-08 Jim Meyering <jim@meyering.net>
23011 New function: mfile_name_concat.
23012 * lib/filenamecat.c (mfile_name_concat): New function, just like
23013 file_name_concat, but return NULL upon failure rather than exiting
23015 * lib/filenamecat.h: Declare it.
23017 2007-08-07 Bruno Haible <bruno@clisp.org>
23019 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
23020 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
23022 Reported by Eric Blake.
23024 2007-08-07 Simon Josefsson <simon@josefsson.org>
23026 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
23027 * modules/crypto/arcfour (License): Likewise.
23028 * modules/crypto/des-tests (License): Likewise.
23029 * modules/crypto/gc-arctwo-tests (License): Likewise.
23030 * modules/crypto/gc-des-tests (License): Likewise.
23031 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
23032 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
23033 * modules/crypto/gc-md2-tests (License): Likewise.
23034 * modules/crypto/gc-md4-tests (License): Likewise.
23035 * modules/crypto/gc-md5-tests (License): Likewise.
23036 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
23037 * modules/crypto/gc-rijndael-tests (License): Likewise.
23038 * modules/crypto/gc-sha1-tests (License): Likewise.
23039 * modules/crypto/gc-tests (License): Likewise.
23040 * modules/crypto/hmac-md5 (License): Likewise.
23041 * modules/crypto/hmac-sha1 (License): Likewise.
23042 * modules/crypto/md2-tests (License): Likewise.
23043 * modules/crypto/md4-tests (License): Likewise.
23044 * modules/crypto/md5 (License): Likewise.
23045 * modules/crypto/rijndael (License): Likewise.
23046 * modules/crypto/sha1 (License): Likewise.
23047 * modules/memxor (License): Likewise.
23049 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
23050 and Bruno Haible <bruno@clisp.org>
23052 * NEWS: Describe interface changes to human, xstrtol.
23053 * lib/human.h: Include <xstrtol.h>.
23054 (human_options): Return enum strtol_error, not int. Remove
23055 bool arg; take int * instead.
23056 * lib/human.c: Don't include "gettext.h".
23057 (_): Remove; no longer used.
23058 Don't include <xstrtol.h>, since human.h does it.
23059 (human_options): Adjust to abovementioned interface changes.
23060 Do not report error to stderr; that's now the caller's
23062 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
23064 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
23065 Str, Argument_type_string. All uses changed. Put " argument"
23066 in diagnostics to make them clearer. Change wording of suffix
23067 message for clarity.
23068 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
23069 Argument_type_string.
23070 (STRTOL_FATAL_WARN): Remove; no longer used.
23071 * modules/human (Depends-on): Remove gettext-h.
23073 2007-08-06 Simon Josefsson <simon@josefsson.org>
23075 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
23077 2007-07-31 Bruno Haible <bruno@clisp.org>
23079 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
23080 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
23081 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
23083 2007-07-31 Bruno Haible <bruno@clisp.org>
23085 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
23086 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
23088 2007-07-30 Bruno Haible <bruno@clisp.org>
23090 * modules/base64 (License): Use the synonymous term "LGPLv2+".
23091 * modules/c-ctype (License): Likewise.
23092 * modules/c-strcase (License): Likewise.
23093 * modules/check-version (License): Likewise.
23094 * modules/iconv (License): Likewise.
23095 * modules/iconv_open (License): Likewise.
23096 * modules/read-file (License): Likewise.
23097 * modules/striconv (License): Likewise.
23098 * modules/strverscmp (License): Likewise.
23099 * modules/vasprintf (License): Likewise.
23100 * modules/crypto/des (License): Likewise.
23101 * modules/crypto/gc (License): Likewise.
23102 * modules/crypto/gc-arcfour (License): Likewise.
23103 * modules/crypto/gc-arctwo (License): Likewise.
23104 * modules/crypto/gc-des (License): Likewise.
23105 * modules/crypto/gc-hmac-md5 (License): Likewise.
23106 * modules/crypto/gc-hmac-sha1 (License): Likewise.
23107 * modules/crypto/gc-md2 (License): Likewise.
23108 * modules/crypto/gc-md4 (License): Likewise.
23109 * modules/crypto/gc-md5 (License): Likewise.
23110 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
23111 * modules/crypto/gc-random (License): Likewise.
23112 * modules/crypto/gc-rijndael (License): Likewise.
23113 * modules/crypto/gc-sha1 (License): Likewise.
23114 * modules/crypto/md2 (License): Likewise.
23115 * modules/crypto/md4 (License): Likewise.
23117 2007-07-30 Jim Meyering <jim@meyering.net>
23119 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
23120 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
23121 it has valid stat data. This bug would cause du not to count the
23122 sizes of inaccessible directories.
23123 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
23124 in <http://bugzilla.redhat.com/250077>.
23126 2007-07-25 Peter O'Gorman <peter@pogma.com>
23127 Bruno Haible <bruno@clisp.org>
23129 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
23130 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
23131 #include_next, gives a diagnostic about it, but reports no error in
23133 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23135 2007-07-24 Ben Pfaff <blp@gnu.org>
23137 Improve name: "count-one-bits" is better than "popcount".
23138 * MODULES.html.sh: Update name.
23139 * lib/popcount.h: Renamed lib/count-one-bits.h.
23140 (popcount): Renamed count_one_bits.
23141 (popcountl): Renamed count_one_bits_l.
23142 (popcountll): Renamed count_one_bits_ll.
23143 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
23144 * modules/popcount: Renamed module/count-one-bits.
23145 * modules/popcount-tests: Renamed module/count-one-bits-tests.
23146 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
23148 2007-07-23 Ben Pfaff <blp@gnu.org>
23150 * lib/popcount.h (popcount32): Reduce size of constants, to allow
23151 better code generation, and add U to large constants to avoid
23152 warnings, in non-GCC case.
23153 Suggested by Bruno Haible.
23155 2007-07-23 Ben Pfaff <blp@gnu.org>
23157 * lib/popcount.h: Use verify_true instead of if...abort.
23158 * modules/popcount: Depend on verify module.
23159 Suggested by Jim Meyering.
23161 2007-07-23 Bruno Haible <bruno@clisp.org>
23163 * gnulib-tool (func_import): Create a .cvsignore file also when the
23164 directory is not yet in CVS but the toplevel directory is. When
23165 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
23166 Reported by Karl Berry.
23168 2007-07-22 Ben Pfaff <blp@gnu.org>
23170 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
23172 Suggested by Eric Blake.
23174 2007-07-22 Ben Pfaff <blp@gnu.org>
23176 New module: popcount.
23177 * MODULES.html.sh: Add popcount.
23178 * modules/popcount: New file.
23179 * modules/popcount-tests: New file.
23180 * tests/test-popcount.c: New file.
23181 * lib/popcount.h: New file.
23182 * m4/popcount.m4: New file.
23184 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
23186 * build-aux/announce-gen: Update to GPLv3.
23188 * build-aux/config.guess: Update from config.
23190 2007-07-21 Bruno Haible <bruno@clisp.org>
23192 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
23193 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
23195 2007-07-20 Jim Meyering <jim@meyering.net>
23197 * check-module: Diagnose a self-dependency.
23199 2007-07-19 Bruno Haible <bruno@clisp.org>
23201 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
23203 Reported by Eric Blake.
23205 2007-07-18 Bruno Haible <bruno@clisp.org>
23207 * gnulib-tool: New options --po-base, --po-domain.
23208 (func_usage): Document them.
23209 (pobase, po_domain): New variables.
23210 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
23211 DEFAULT_TEXT_DOMAIN.
23212 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
23213 (func_import): Consider pobase and po_domain. Create a po/ directory.
23214 (func_create_testdir): Set pobase and po_domain to empty.
23215 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
23216 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
23218 2007-07-18 Bruno Haible <bruno@clisp.org>
23220 * gnulib-tool (func_get_automake_snippet): Synthesize also an
23221 EXTRA_DIST augmentation for files in build-aux/.
23223 2007-07-16 Bruno Haible <bruno@clisp.org>
23225 * modules/lseek (License): Use the synonymous term "LGPLv2+".
23226 * modules/getdelim (License): Likewise.
23228 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
23230 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
23231 * modules/d-type (License): Likewise.
23232 * modules/extensions (License): Likewise.
23233 * modules/fnmatch (License): Likewise.
23234 * modules/fseeko (License): Likewise.
23235 * modules/getaddrinfo (License): Likewise.
23236 * modules/getline (License): Likewise.
23237 * modules/getlogin_r (License): Likewise.
23238 * modules/getpass (License): Likewise.
23239 * modules/gettimeofday (License): Likewise.
23240 * modules/glob (License): Likewise.
23241 * modules/inet_ntop (License): Likewise.
23242 * modules/malloc (License): Likewise.
23243 * modules/malloca (License): Likewise.
23244 * modules/memmem (License): Likewise.
23245 * modules/mempcpy (License): Likewise.
23246 * modules/memset (License): Likewise.
23247 * modules/minmax (License): Likewise.
23248 * modules/mktime (License): Likewise.
23249 * modules/netinet_in (License): Likewise.
23250 * modules/pathmax (License): Likewise.
23251 * modules/poll (License): Likewise.
23252 * modules/regex (License): Likewise.
23253 * modules/snprintf (License): Likewise.
23254 * modules/stdbool (License): Likewise.
23255 * modules/stdint (License): Likewise.
23256 * modules/stdio (License): Likewise.
23257 * modules/strcase (License): Likewise.
23258 * modules/strcasestr (License): Likewise.
23259 * modules/strdup (License): Likewise.
23260 * modules/string (License): Likewise.
23261 * modules/strndup (License): Likewise.
23262 * modules/strnlen (License): Likewise.
23263 * modules/strpbrk (License): Likewise.
23264 * modules/strptime (License): Likewise.
23265 * modules/strsep (License): Likewise.
23266 * modules/sys_select (License): Likewise.
23267 * modules/sys_socket (License): Likewise.
23268 * modules/sys_stat (License): Likewise.
23269 * modules/sys_time (License): Likewise.
23270 * modules/time (License): Likewise.
23271 * modules/time_r (License): Likewise.
23272 * modules/timegm (License): Likewise.
23273 * modules/unistd (License): Likewise.
23274 * modules/vsnprintf (License): Likewise.
23275 * modules/wctype (License): Likewise.
23277 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23279 * modules/argz (License): LGPLv2+.
23281 2007-07-15 Karl Berry <karl@gnu.org>
23283 * doc/gnulib.texi: revise node structure per new fdl.texi.
23285 2007-07-14 Bruno Haible <bruno@clisp.org>
23287 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
23289 * lib/uniname/uninames.h: Regenerated.
23291 2007-07-14 Karl Berry <karl@gnu.org>
23293 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
23294 omitting sectioning and index commands.
23296 2007-07-13 Bruno Haible <bruno@clisp.org>
23298 New gnulib-tool option --more-symlinks.
23299 * gnulib-tool (func_usage): Document --more-symlinks.
23300 (do_copyrights): New variable.
23301 Recognize option --more-symlinks.
23302 (func_import): Don't add a copyright notice transform to
23303 sed_transform_lib_file if do_copyrights is empty.
23305 2007-07-13 Bruno Haible <bruno@clisp.org>
23307 * lib/vasnprintf.c (decimal_point_char): Define also if
23308 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
23309 && !NEED_PRINTF_DIRECTIVE_A.
23310 Reported by Clemens Koller <clemens.koller@anagramm.de> via
23311 Gary V. Vaughan <gary@gnu.org>.
23313 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
23315 * lib/inttypes_.h: Undo previous change, since it was fixed
23316 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
23318 2007-07-13 Bruno Haible <bruno@clisp.org>
23320 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
23321 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
23323 2007-07-13 Jim Meyering <jim@meyering.net>
23325 df: Don't fail for Tru64's "file-on-file mount".
23326 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
23327 so we fall through and use statfs instead. Details here:
23328 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
23329 Reported by Albert Chin.
23331 2007-07-13 Bruno Haible <bruno@clisp.org>
23333 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
23334 * modules/configmake (License): Likewise.
23335 * modules/gettext (License): Likewise.
23336 * modules/gettext-h (License): Likewise.
23337 * modules/include_next (License): Likewise.
23338 * modules/link-warning (License): Likewise.
23339 * modules/localcharset (License): Likewise.
23340 * modules/localename (License): Likewise.
23341 * modules/lock (License): Likewise.
23342 * modules/relocatable-lib-lgpl (License): Likewise.
23343 * modules/size_max (License): Likewise.
23344 * modules/vasnprintf (License): Likewise.
23345 * modules/wchar (License): Likewise.
23346 * modules/xsize (License): Likewise.
23348 2007-07-13 Bruno Haible <bruno@clisp.org>
23350 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
23351 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
23353 2007-07-12 Bruno Haible <bruno@clisp.org>
23355 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
23356 in the modules files.
23358 2007-07-11 Karl Berry <karl@gnu.org>
23360 * MODULES.html.sh (func_module): use
23361 sed -e '\|^'"${includefile}"'$|d'
23362 instead of /.../d, to avoid errors on $includefile's containing /.
23364 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
23366 * gnulib-tool (func_import): Avoid duplication of --avoid
23368 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
23369 names to `_' in variable names.
23371 2007-07-10 Eric Blake <ebb9@byu.net>
23373 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
23374 * NEWS: Document this change.
23376 2007-07-08 Bruno Haible <bruno@clisp.org>
23378 Update to Unicode 5.0.
23379 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
23380 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
23381 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
23382 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
23383 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
23384 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
23385 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
23386 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
23387 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
23388 U+10A3F, U+1D242..U+1D244.
23389 (nonspacing_table_ind): Update.
23390 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
23391 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
23393 2007-07-08 Bruno Haible <bruno@clisp.org>
23395 Update to Unicode 5.0.
23396 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
23397 code transform. Extend the name index field of unicode_name_to_code and
23398 unicode_code_to_name from 16 to 24 bits.
23399 * lib/uniname/uniname.c (unicode_character_name,
23400 unicode_name_character): Add the range 0x12xxx to the code transform.
23401 * lib/uniname/uninames.h: Regenerated.
23402 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
23404 2007-07-07 Bruno Haible <bruno@clisp.org>
23406 * modules/wcwidth-tests: New file.
23407 * tests/test-wcwidth.c: New file.
23409 Work around MacOS X wcwidth() bug.
23410 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
23411 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
23412 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
23413 original wcwidth in non-UTF-8 locales.
23414 * modules/wcwidth (Depends-on): Add localcharset, streq,
23416 * doc/functions/wcwidth.texi: Update.
23418 2007-07-07 Bruno Haible <bruno@clisp.org>
23420 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
23421 (wcwidth): New declaration.
23422 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
23424 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
23425 here. Prepare for creating <wchar.h> unconditionally.
23426 * modules/wchar (Depends-on): Add link-warning.
23427 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
23428 REPLACE_WCWIDTH, and GL_LINK_WARNING.
23429 * lib/wcwidth.h: Remove file.
23430 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
23431 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
23432 * modules/wcwidth (Files): Remove lib/wcwidth.h.
23433 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
23434 (Include): Replace wcwidth.h with <wchar.h>.
23435 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
23436 * lib/mbchar.h: Don't include wcwidth.h.
23437 * lib/mbswidth.c: Likewise.
23438 * NEWS: Mention the change.
23440 2007-07-07 Bruno Haible <bruno@clisp.org>
23442 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
23443 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
23444 definition with an external declaration.
23445 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
23446 defined as a function. Remove AC_C_INLINE requirement.
23447 * modules/wcwidth (Files): Add lib/wcwidth.c.
23448 (Makefile.am): Remove redundant statement.
23450 2007-07-07 Bruno Haible <bruno@clisp.org>
23452 * MODULES.html.sh (Unicode string functions): Add the new modules.
23454 * tests/uniwidth/test-u32-strwidth.c: New file.
23455 * modules/uniwidth/u32-strwidth-tests: New file.
23457 * lib/uniwidth/u32-strwidth.c: New file.
23458 * modules/uniwidth/u32-strwidth: New file.
23460 * tests/uniwidth/test-u16-strwidth.c: New file.
23461 * modules/uniwidth/u16-strwidth-tests: New file.
23463 * lib/uniwidth/u16-strwidth.c: New file.
23464 * modules/uniwidth/u16-strwidth: New file.
23466 * tests/uniwidth/test-u8-strwidth.c: New file.
23467 * modules/uniwidth/u8-strwidth-tests: New file.
23469 * lib/uniwidth/u8-strwidth.c: New file.
23470 * modules/uniwidth/u8-strwidth: New file.
23472 * tests/uniwidth/test-u32-width.c: New file.
23473 * modules/uniwidth/u32-width-tests: New file.
23475 * lib/uniwidth/u32-width.c: New file.
23476 * modules/uniwidth/u32-width: New file.
23478 * tests/uniwidth/test-u16-width.c: New file.
23479 * modules/uniwidth/u16-width-tests: New file.
23481 * lib/uniwidth/u16-width.c: New file.
23482 * modules/uniwidth/u16-width: New file.
23484 * tests/uniwidth/test-u8-width.c: New file.
23485 * modules/uniwidth/u8-width-tests: New file.
23487 * lib/uniwidth/u8-width.c: New file.
23488 * modules/uniwidth/u8-width: New file.
23490 * tests/uniwidth/test-uc_width.c: New file.
23491 * modules/uniwidth/width-tests: New file.
23493 * lib/uniwidth/width.c: New file, from GNU libiconv.
23494 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
23495 * modules/uniwidth/width: New file.
23497 * lib/uniwidth.h: New file, from GNU libiconv.
23498 * modules/uniwidth/base: New file.
23500 2007-07-07 Bruno Haible <bruno@clisp.org>
23502 * lib/uniname.h: New file, from GNU gettext.
23503 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
23504 * lib/uniname/uninames.h: New file, from GNU gettext.
23505 * lib/uniname/uniname.c: New file, from GNU gettext.
23506 * tests/uniname/test-uninames.sh: New file.
23507 * tests/uniname/test-uninames.c: New file, from GNU gettext.
23508 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
23509 * modules/uniname/base: New file.
23510 * modules/uniname/uniname: New file.
23511 * modules/uniname/uniname-tests: New file.
23512 * MODULES.html.sh (Unicode string functions): Add the new modules.
23514 2007-07-06 Bruno Haible <bruno@clisp.org>
23516 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
23518 2007-07-06 Bruno Haible <bruno@clisp.org>
23520 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
23521 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
23522 includes <cygwin/sys_time.h> which includes <sys/select.h> which
23523 include <sys/time.h>.
23524 Reported by Eric Blake.
23526 2007-07-06 Eric Blake <ebb9@byu.net>
23528 Fix testing canonicalize on cygwin.
23529 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
23530 Revert patch from 2007-06-19.
23531 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
23532 canonicalize module is also in use.
23533 * tests/test-canonicalize.c: New file.
23534 * tests/test-canonicalize.sh: Likewise.
23535 * modules/canonicalize-tests: Likewise.
23537 2007-07-06 Jim Meyering <jim@meyering.net>
23539 * lib/getugroups.c (getugroups): Detect getgrent failure.
23540 Adjust comment to reflect reality: this function may return -1.
23542 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
23544 * build-aux/bootstrap (TP_URL,get_translations): Update to use
23545 the new TP address.
23547 (gnulib_mk): New variable.
23549 2007-07-05 Jim Meyering <jim@meyering.net>
23551 Don't let endgrent clobber errno, no matter how improbable.
23552 * lib/getugroups.c (getugroups): Save and restore errno around
23555 Close the group DB even when failing with 2^31 or more members.
23556 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
23558 2007-07-04 Jim Meyering <jim@meyering.net>
23560 * lib/getugroups.h: New file.
23561 * lib/getugroups.c: Include "getugroups.h".
23562 Remove uses of "register" keyword.
23563 Move local variable, "cp", down into scope where used.
23564 Give "username" parameter the "const" attribute.
23565 * modules/getugroups (Files): Add lib/getugroups.h
23567 2007-07-04 Karl Berry <karl@gnu.org>
23569 * MODULES.html.sh (func_all_modules): Complete rename of
23570 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
23572 2007-07-02 Bruno Haible <bruno@clisp.org>
23574 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
23575 mode, when inttypes.h comes from gnulib.
23576 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23578 2007-07-02 Simon Josefsson <simon@josefsson.org>
23580 * NEWS: Mention lgpl module name change.
23582 * modules/lgpl-2.1: Renamed from lgpl.
23584 * NEWS: Mention gpl module name change.
23586 * modules/gpl-3.0: New file, based on gpl-2.0.
23588 * modules/gpl-2.0: Renamed from gpl.
23590 * modules/gpl: Fix filename, doc/gpl.texi is now found at
23593 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
23595 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
23596 #define __STDC_LIMIT_MACROS temporarily while including
23597 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
23598 Problem reported by Joel E. Denny in
23599 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
23601 2007-07-01 Bruno Haible <bruno@clisp.org>
23603 * lib/unistdio.h: New file.
23604 * lib/unistdio/u-asnprintf.h: New file.
23605 * lib/unistdio/u-asprintf.h: New file.
23606 * lib/unistdio/u-printf-args.c: New file.
23607 * lib/unistdio/u-printf-args.h: New file.
23608 * lib/unistdio/u-printf-parse.h: New file.
23609 * lib/unistdio/u-snprintf.h: New file.
23610 * lib/unistdio/u-sprintf.h: New file.
23611 * lib/unistdio/u-vasprintf.h: New file.
23612 * lib/unistdio/u-vsnprintf.h: New file.
23613 * lib/unistdio/u-vsprintf.h: New file.
23614 * lib/unistdio/ulc-asnprintf.c: New file.
23615 * lib/unistdio/ulc-asprintf.c: New file.
23616 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
23617 * lib/unistdio/ulc-printf-parse.c: New file.
23618 * lib/unistdio/ulc-snprintf.c: New file.
23619 * lib/unistdio/ulc-sprintf.c: New file.
23620 * lib/unistdio/ulc-vasnprintf.c: New file.
23621 * lib/unistdio/ulc-vasprintf.c: New file.
23622 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
23623 * lib/unistdio/ulc-vsnprintf.c: New file.
23624 * lib/unistdio/ulc-vsprintf.c: New file.
23625 * lib/unistdio/u8-asnprintf.c: New file.
23626 * lib/unistdio/u8-asprintf.c: New file.
23627 * lib/unistdio/u8-printf-parse.c: New file.
23628 * lib/unistdio/u8-snprintf.c: New file.
23629 * lib/unistdio/u8-sprintf.c: New file.
23630 * lib/unistdio/u8-vasnprintf.c: New file.
23631 * lib/unistdio/u8-vasprintf.c: New file.
23632 * lib/unistdio/u8-vsnprintf.c: New file.
23633 * lib/unistdio/u8-vsprintf.c: New file.
23634 * lib/unistdio/u8-u8-asnprintf.c: New file.
23635 * lib/unistdio/u8-u8-asprintf.c: New file.
23636 * lib/unistdio/u8-u8-snprintf.c: New file.
23637 * lib/unistdio/u8-u8-sprintf.c: New file.
23638 * lib/unistdio/u8-u8-vasnprintf.c: New file.
23639 * lib/unistdio/u8-u8-vasprintf.c: New file.
23640 * lib/unistdio/u8-u8-vsnprintf.c: New file.
23641 * lib/unistdio/u8-u8-vsprintf.c: New file.
23642 * lib/unistdio/u16-asnprintf.c: New file.
23643 * lib/unistdio/u16-asprintf.c: New file.
23644 * lib/unistdio/u16-printf-parse.c: New file.
23645 * lib/unistdio/u16-snprintf.c: New file.
23646 * lib/unistdio/u16-sprintf.c: New file.
23647 * lib/unistdio/u16-vasnprintf.c: New file.
23648 * lib/unistdio/u16-vasprintf.c: New file.
23649 * lib/unistdio/u16-vsnprintf.c: New file.
23650 * lib/unistdio/u16-vsprintf.c: New file.
23651 * lib/unistdio/u16-u16-asnprintf.c: New file.
23652 * lib/unistdio/u16-u16-asprintf.c: New file.
23653 * lib/unistdio/u16-u16-snprintf.c: New file.
23654 * lib/unistdio/u16-u16-sprintf.c: New file.
23655 * lib/unistdio/u16-u16-vasnprintf.c: New file.
23656 * lib/unistdio/u16-u16-vasprintf.c: New file.
23657 * lib/unistdio/u16-u16-vsnprintf.c: New file.
23658 * lib/unistdio/u16-u16-vsprintf.c: New file.
23659 * lib/unistdio/u32-asnprintf.c: New file.
23660 * lib/unistdio/u32-asprintf.c: New file.
23661 * lib/unistdio/u32-printf-parse.c: New file.
23662 * lib/unistdio/u32-snprintf.c: New file.
23663 * lib/unistdio/u32-sprintf.c: New file.
23664 * lib/unistdio/u32-vasnprintf.c: New file.
23665 * lib/unistdio/u32-vasprintf.c: New file.
23666 * lib/unistdio/u32-vsnprintf.c: New file.
23667 * lib/unistdio/u32-vsprintf.c: New file.
23668 * lib/unistdio/u32-u32-asnprintf.c: New file.
23669 * lib/unistdio/u32-u32-asprintf.c: New file.
23670 * lib/unistdio/u32-u32-snprintf.c: New file.
23671 * lib/unistdio/u32-u32-sprintf.c: New file.
23672 * lib/unistdio/u32-u32-vasnprintf.c: New file.
23673 * lib/unistdio/u32-u32-vasprintf.c: New file.
23674 * lib/unistdio/u32-u32-vsnprintf.c: New file.
23675 * lib/unistdio/u32-u32-vsprintf.c: New file.
23676 * tests/unistdio/test-ulc-asnprintf1.c: New file.
23677 * tests/unistdio/test-ulc-asnprintf1.h: New file.
23678 * tests/unistdio/test-ulc-printf1.h: New file.
23679 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
23680 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
23681 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
23682 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
23683 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
23684 * tests/unistdio/test-ulc-vasprintf1.c: New file.
23685 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
23686 * tests/unistdio/test-ulc-vsprintf1.c: New file.
23687 * tests/unistdio/test-u8-asnprintf1.c: New file.
23688 * tests/unistdio/test-u8-asnprintf1.h: New file.
23689 * tests/unistdio/test-u8-printf1.h: New file.
23690 * tests/unistdio/test-u8-vasnprintf1.c: New file.
23691 * tests/unistdio/test-u8-vasnprintf2.c: New file.
23692 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
23693 * tests/unistdio/test-u8-vasnprintf3.c: New file.
23694 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
23695 * tests/unistdio/test-u8-vasprintf1.c: New file.
23696 * tests/unistdio/test-u8-vsnprintf1.c: New file.
23697 * tests/unistdio/test-u8-vsprintf1.c: New file.
23698 * tests/unistdio/test-u16-asnprintf1.c: New file.
23699 * tests/unistdio/test-u16-asnprintf1.h: New file.
23700 * tests/unistdio/test-u16-printf1.h: New file.
23701 * tests/unistdio/test-u16-vasnprintf1.c: New file.
23702 * tests/unistdio/test-u16-vasnprintf2.c: New file.
23703 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
23704 * tests/unistdio/test-u16-vasnprintf3.c: New file.
23705 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
23706 * tests/unistdio/test-u16-vasprintf1.c: New file.
23707 * tests/unistdio/test-u16-vsnprintf1.c: New file.
23708 * tests/unistdio/test-u16-vsprintf1.c: New file.
23709 * tests/unistdio/test-u32-asnprintf1.c: New file.
23710 * tests/unistdio/test-u32-asnprintf1.h: New file.
23711 * tests/unistdio/test-u32-printf1.h: New file.
23712 * tests/unistdio/test-u32-vasnprintf1.c: New file.
23713 * tests/unistdio/test-u32-vasnprintf2.c: New file.
23714 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
23715 * tests/unistdio/test-u32-vasnprintf3.c: New file.
23716 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
23717 * tests/unistdio/test-u32-vasprintf1.c: New file.
23718 * tests/unistdio/test-u32-vsnprintf1.c: New file.
23719 * tests/unistdio/test-u32-vsprintf1.c: New file.
23720 * modules/unistdio/base: New file.
23721 * modules/unistdio/u-printf-args: New file.
23722 * modules/unistdio/ulc-asnprintf: New file.
23723 * modules/unistdio/ulc-asprintf: New file.
23724 * modules/unistdio/ulc-fprintf: New file.
23725 * modules/unistdio/ulc-printf-parse: New file.
23726 * modules/unistdio/ulc-snprintf: New file.
23727 * modules/unistdio/ulc-sprintf: New file.
23728 * modules/unistdio/ulc-vasnprintf: New file.
23729 * modules/unistdio/ulc-vasprintf: New file.
23730 * modules/unistdio/ulc-vfprintf: New file.
23731 * modules/unistdio/ulc-vsnprintf: New file.
23732 * modules/unistdio/ulc-vsprintf: New file.
23733 * modules/unistdio/u8-asnprintf: New file.
23734 * modules/unistdio/u8-asprintf: New file.
23735 * modules/unistdio/u8-printf-parse: New file.
23736 * modules/unistdio/u8-snprintf: New file.
23737 * modules/unistdio/u8-sprintf: New file.
23738 * modules/unistdio/u8-vasnprintf: New file.
23739 * modules/unistdio/u8-vasprintf: New file.
23740 * modules/unistdio/u8-vsnprintf: New file.
23741 * modules/unistdio/u8-vsprintf: New file.
23742 * modules/unistdio/u8-u8-asnprintf: New file.
23743 * modules/unistdio/u8-u8-asprintf: New file.
23744 * modules/unistdio/u8-u8-snprintf: New file.
23745 * modules/unistdio/u8-u8-sprintf: New file.
23746 * modules/unistdio/u8-u8-vasnprintf: New file.
23747 * modules/unistdio/u8-u8-vasprintf: New file.
23748 * modules/unistdio/u8-u8-vsnprintf: New file.
23749 * modules/unistdio/u8-u8-vsprintf: New file.
23750 * modules/unistdio/u16-asnprintf: New file.
23751 * modules/unistdio/u16-asprintf: New file.
23752 * modules/unistdio/u16-printf-parse: New file.
23753 * modules/unistdio/u16-snprintf: New file.
23754 * modules/unistdio/u16-sprintf: New file.
23755 * modules/unistdio/u16-vasnprintf: New file.
23756 * modules/unistdio/u16-vasprintf: New file.
23757 * modules/unistdio/u16-vsnprintf: New file.
23758 * modules/unistdio/u16-vsprintf: New file.
23759 * modules/unistdio/u16-u16-asnprintf: New file.
23760 * modules/unistdio/u16-u16-asprintf: New file.
23761 * modules/unistdio/u16-u16-snprintf: New file.
23762 * modules/unistdio/u16-u16-sprintf: New file.
23763 * modules/unistdio/u16-u16-vasnprintf: New file.
23764 * modules/unistdio/u16-u16-vasprintf: New file.
23765 * modules/unistdio/u16-u16-vsnprintf: New file.
23766 * modules/unistdio/u16-u16-vsprintf: New file.
23767 * modules/unistdio/u32-asnprintf: New file.
23768 * modules/unistdio/u32-asprintf: New file.
23769 * modules/unistdio/u32-printf-parse: New file.
23770 * modules/unistdio/u32-snprintf: New file.
23771 * modules/unistdio/u32-sprintf: New file.
23772 * modules/unistdio/u32-vasnprintf: New file.
23773 * modules/unistdio/u32-vasprintf: New file.
23774 * modules/unistdio/u32-vsnprintf: New file.
23775 * modules/unistdio/u32-vsprintf: New file.
23776 * modules/unistdio/u32-u32-asnprintf: New file.
23777 * modules/unistdio/u32-u32-asprintf: New file.
23778 * modules/unistdio/u32-u32-snprintf: New file.
23779 * modules/unistdio/u32-u32-sprintf: New file.
23780 * modules/unistdio/u32-u32-vasnprintf: New file.
23781 * modules/unistdio/u32-u32-vasprintf: New file.
23782 * modules/unistdio/u32-u32-vsnprintf: New file.
23783 * modules/unistdio/u32-u32-vsprintf: New file.
23784 * modules/unistdio/ulc-asnprintf-tests: New file.
23785 * modules/unistdio/ulc-vasnprintf-tests: New file.
23786 * modules/unistdio/ulc-vasprintf-tests: New file.
23787 * modules/unistdio/ulc-vsnprintf-tests: New file.
23788 * modules/unistdio/ulc-vsprintf-tests: New file.
23789 * modules/unistdio/u8-asnprintf-tests: New file.
23790 * modules/unistdio/u8-vasnprintf-tests: New file.
23791 * modules/unistdio/u8-vasprintf-tests: New file.
23792 * modules/unistdio/u8-vsnprintf-tests: New file.
23793 * modules/unistdio/u8-vsprintf-tests: New file.
23794 * modules/unistdio/u16-asnprintf-tests: New file.
23795 * modules/unistdio/u16-vasnprintf-tests: New file.
23796 * modules/unistdio/u16-vasprintf-tests: New file.
23797 * modules/unistdio/u16-vsnprintf-tests: New file.
23798 * modules/unistdio/u16-vsprintf-tests: New file.
23799 * modules/unistdio/u32-asnprintf-tests: New file.
23800 * modules/unistdio/u32-vasnprintf-tests: New file.
23801 * modules/unistdio/u32-vasprintf-tests: New file.
23802 * modules/unistdio/u32-vsnprintf-tests: New file.
23803 * modules/unistdio/u32-vsprintf-tests: New file.
23804 * MODULES.html.sh (Unicode string functions): Add the new modules.
23806 2007-07-01 Bruno Haible <bruno@clisp.org>
23808 * lib/sprintf.c (sprintf): Limit the available length estimation,
23809 to avoid address wraparound.
23810 * lib/vsprintf.c (vsprintf): Likewise.
23811 * modules/sprintf-posix (Dependencies): Add stdint.
23812 * modules/vsprintf-posix (Dependencies): Likewise.
23814 2007-07-01 Bruno Haible <bruno@clisp.org>
23816 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
23817 Windows PATH as well. Conservative double-quoting. Comments.
23819 2007-07-01 Bruno Haible <bruno@clisp.org>
23820 Eric Blake <ebb9@byu.net>
23821 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23823 * gnulib-tool (self_abspathname): Fix algorithm to cope with
23824 empty components in $PATH, denoting '.'.
23826 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23828 * gnulib-tool: Fix indentation.
23829 (func_create_megatestdir): Likewise.
23830 Report by Bruno Haible.
23832 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23834 Sync from Automake.
23835 * build-aux/gnupload: Fix shell portability issues with for loops.
23836 Report by Karl Berry.
23838 2007-06-29 Simon Josefsson <simon@josefsson.org>
23840 * build-aux/maint.mk (POURL): Use translationproject.org.
23842 2007-06-27 Simon Josefsson <simon@josefsson.org>
23843 Bruno Haible <bruno@clisp.org>
23845 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
23846 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
23847 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
23848 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
23849 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
23851 2007-06-27 Bruno Haible <bruno@clisp.org>
23853 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
23854 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
23856 2007-06-26 Karl Berry <karl@gnu.org>
23858 * MODULES.html.sh: remove xreadlink-with-size.
23860 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
23862 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
23863 method that I hope also handles the double-include problem noted
23865 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
23867 2007-06-23 Bruno Haible <bruno@clisp.org>
23869 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23870 Don't let the 'mostlyclean' target fail if the last subdirectory could
23872 Reported by Karl Berry.
23874 2007-06-23 Bruno Haible <bruno@clisp.org>
23876 * gnulib-tool (echo): Add a speedier workaround for ksh.
23877 * tests/test-echo.sh: Likewise.
23879 2007-06-23 Bruno Haible <bruno@clisp.org>
23881 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
23882 * tests/test-echo.sh: Likewise.
23884 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23886 * gnulib-tool (IFS): Initialize early, so we don't set it to
23888 (self_abspathname): Rewrite algorithm to set it, reindent.
23889 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
23890 (func_create_megatestdir): Merge some sed scripts.
23892 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
23894 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
23895 exposed by Sun Studio 11 cc on Solaris 8.
23897 2007-06-22 Bruno Haible <bruno@clisp.org>
23899 * gnulib-tool (echo): Ensure the echo primitive does not interpret
23901 * tests/test-echo.sh: New file.
23903 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23905 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
23906 simplify `sed_replace_build_aux' scripts, they are portable but
23907 echoing them with `echo' is not.
23908 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
23910 2007-06-21 Karl Berry <karl@gnu.org>
23912 * config/srclist.txt: guess we can't handle the licenses via
23913 srclist at the moment.
23915 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
23917 * MODULES.html.sh: Add include_next.
23918 * modules/include_next: New file.
23920 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
23922 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
23924 (gl_CHECK_NEXT_HEADERS): New macro.
23925 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
23926 the obsolescent gl_ABSOLUTE_HEADER.
23927 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23928 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23929 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23930 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23931 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23932 * m4/math_h.m4 (gl_MATH_H): Likewise.
23933 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23934 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23935 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23936 * m4/stdint.m4 (gl_STDINT_H): Likewise.
23937 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23938 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23939 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23940 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23941 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23942 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23943 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23944 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23945 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
23946 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23947 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23948 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23949 * m4/inttypes.m4 (gl_INTTYPES_H): Define
23950 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
23951 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
23952 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
23953 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
23954 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
23955 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
23956 * lib/float_.h: Likewise.
23957 * lib/inttypes_.h: Likewise.
23958 * lib/math_.h: Likewise.
23959 * lib/search_.h: Likewise.
23960 * lib/signal_.h: Likewise.
23961 * lib/stdint_.h: Likewise.
23962 * lib/stdio_.h: Likewise.
23963 * lib/stdlib_.h: Likewise.
23964 * lib/string_.h: Likewise.
23965 * lib/sys_stat_.h: Likewise.
23966 * lib/sys_time_.h: Likewise.
23967 * lib/time_.h: Likewise.
23968 * lib/unistd_.h: Likewise.
23969 * lib/wchar_.h: Likewise.
23970 * lib/wctype_.h: Likewise.
23971 * lib/dirent_.h: Likewise.
23972 * lib/iconv_.h: Likewise.
23973 * lib/locale_.h: Likewise.
23974 * lib/netinet_in_.h: Likewise.
23975 * lib/sys_select_.h: Likewise.
23976 * lib/sys_socket_.h: Likewise.
23977 * lib/sysexits_.h: Likewise.
23978 * modules/fcntl (Depends-on): Depend on include_next, not
23980 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
23981 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
23982 * modules/fchdir: Likewise.
23983 * modules/float: Likewise.
23984 * modules/iconv_open: Likewise.
23985 * modules/inttypes: Likewise.
23986 * modules/locale: Likewise.
23987 * modules/math: Likewise.
23988 * modules/netinet_in: Likewise.
23989 * modules/search: Likewise.
23990 * modules/signal: Likewise.
23991 * modules/stdint: Likewise.
23992 * modules/stdio: Likewise.
23993 * modules/stdlib: Likewise.
23994 * modules/string: Likewise.
23995 * modules/sys_select: Likewise.
23996 * modules/sys_socket: Likewise.
23997 * modules/sys_stat: Likewise.
23998 * modules/sys_time: Likewise.
23999 * modules/sysexits: Likewise.
24000 * modules/time: Likewise.
24001 * modules/unistd: Likewise.
24002 * modules/wchar: Likewise.
24003 * modules/wctype: Likewise.
24004 * modules/sys_stat: Change maintainer to "all".
24005 * modules/unistd: Likewise.
24007 2007-06-20 Karl Berry <karl@gnu.org>
24009 * config/srclist.txt: track www changes in license files.
24011 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
24013 * build-aux/bootstrap: Remove stray dot.
24014 Make sure build_aux settings are honored when linking
24015 gnulib_extra_files.
24017 2007-06-19 Eric Blake <ebb9@byu.net>
24019 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
24020 Allow compilation on cygwin.
24022 2007-06-19 Jim Meyering <jim@meyering.net>
24024 xreadlink-with-size: Remove module. No longer used.
24025 Ex-callers now use xreadlink or mreadlink-with-size.
24026 * modules/xreadlink-with-size: Remove module.
24027 * lib/xreadlink-with-size.c: Remove file.
24028 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
24029 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
24030 just before the function definition *is* accurate.
24032 Eliminate one way canonicalize_filename_mode could exit.
24033 * lib/canonicalize.c (canonicalize_filename_mode):
24034 Use mreadlink_with_size, not xreadlink_with_size.
24036 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
24038 Detect porting problems to FreeBSD/arm, which has time_t wider than
24039 long int. Original problem reported for GNU diff by Xin Li in
24040 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
24041 * modules/getdate (Depends-on): Add intprops, verify.
24042 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
24043 is an integer type no wider than long int.
24045 2007-06-18 Jim Meyering <jim@meyering.net>
24047 New module: mreadlink-with-size.
24048 * MODULES.html.sh: Add mreadlink-with-size.
24049 * modules/mreadlink-with-size: New module
24050 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
24051 not xreadlink-with-size.
24052 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
24054 2007-06-16 Bruno Haible <bruno@clisp.org>
24056 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
24057 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
24058 Reported by Gary V. Vaughan <gary@gnu.org>.
24060 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
24062 Revamp lchown so that it lives in unistd.h where it belongs.
24063 * lib/lchown.h: Remove.
24064 * lib/dirchownmod.c: Don't include lib/lchown.h.
24065 * lib/fchownat.c: Likewise.
24066 * lib/openat.c: Likewise.
24067 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
24068 does not follow symlinks.
24069 (EOPNOTSUPP): Define if not defined.
24070 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
24072 (lchown): New decl.
24073 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
24074 Do not check for lchown decl.
24075 Set REPLACE_LCHOWN.
24076 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
24078 * modules/chown: Make it clear it follows symlinks.
24079 * modules/lchown: Make it clear it doesn't follow symlinks.
24080 (Files): Remove lib/lchown.h
24081 (Depends-on): Add unistd.
24082 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
24083 (Include): Include <unistd.h>, not "lchown.h".
24084 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
24087 2007-06-15 Jim Meyering <jim@meyering.net>
24089 Change license (GPL to LGPL) of fsusage and dependents.
24090 * modules/fsusage (License): Change to LGPL.
24091 * modules/full-read (License): Likewise.
24092 * modules/full-write (License): Likewise.
24093 * modules/safe-read (License): Likewise.
24094 * modules/safe-write (License): Likewise.
24096 2007-06-14 Ben Pfaff <blp@gnu.org>
24098 Missing part of allocsa -> malloca transition.
24099 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
24102 2007-06-12 Bruno Haible <bruno@clisp.org>
24104 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
24105 to ia64, x86_64, i386.
24106 Reported by Eric Blake.
24108 2007-06-12 Bruno Haible <bruno@clisp.org>
24110 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
24111 cross-compiling to x86_64.
24113 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
24115 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
24116 glitch reported by Ralf Wildenhues in
24117 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
24119 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
24122 2007-06-11 Bruno Haible <bruno@clisp.org>
24124 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
24125 replacement string.
24126 Reported by Eric Blake.
24128 2007-06-10 Bruno Haible <bruno@clisp.org>
24130 Prepare vasnprintf code for use with Unicode strings.
24131 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
24132 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
24134 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
24135 a_u32_string variants.
24136 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24137 * lib/printf-args.c: Don't include config.h and the specification
24138 header if PRINTF_FETCHARGS is already defined.
24139 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24140 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
24141 TYPE_U16_STRING, TYPE_U32_STRING.
24142 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
24143 u16_directive, u16_directives, u32_directive, u32_directives): New
24145 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
24147 * lib/printf-parse.c: Don't include config.h and the specification
24148 header if PRINTF_PARSE is already defined. Eliminate the set of
24149 parameters for WIDE_CHAR_VERSION; the user of this file must provide
24150 them now. Include c-ctype.h.
24151 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
24152 directive and CHAR_T_ONLY_ASCII.
24153 * lib/vasnprintf.c: Don't include config.h and the specification header
24154 if VASNPRINTF is already defined.
24155 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
24156 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
24157 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
24158 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
24159 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
24160 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
24162 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
24163 pad_ourselves also in this case, with the 'c' and 's' directives, and
24164 with a different notion of "width".
24165 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
24167 2007-06-10 Bruno Haible <bruno@clisp.org>
24169 * modules/unistr/u32-mbsnlen: New file.
24170 * lib/unistr/u32-mbsnlen.c: New file.
24172 * modules/unistr/u16-mbsnlen: New file.
24173 * lib/unistr/u16-mbsnlen.c: New file.
24175 * modules/unistr/u8-mbsnlen: New file.
24176 * lib/unistr/u8-mbsnlen.c: New file.
24178 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
24181 2007-06-10 Bruno Haible <bruno@clisp.org>
24183 * lib/string_.h (mbsnlen): New declaration.
24184 * lib/mbsnlen.c: New file.
24185 * m4/mbsnlen.m4: New file.
24186 * modules/mbsnlen: New file.
24187 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
24188 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
24189 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
24191 2007-06-10 Bruno Haible <bruno@clisp.org>
24193 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
24195 2007-06-10 Bruno Haible <bruno@clisp.org>
24197 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
24198 * lib/mbuiter.h: Likewise.
24200 2007-06-10 Bruno Haible <bruno@clisp.org>
24202 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
24205 2007-06-10 Karl Berry <karl@gnu.org>
24207 * config/srclist.txt: remove gettext entries, Bruno prefers
24208 to update individually.
24210 2007-06-10 Bruno Haible <bruno@clisp.org>
24212 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
24213 'maxlen'. Ensure only length + width bytes are allocated, not
24214 length + 1 + width.
24216 2007-06-09 Bruno Haible <bruno@clisp.org>
24218 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
24219 (CHAR_T): Remove macro.
24220 (VASNPRINTF): Update.
24222 2007-06-09 Bruno Haible <bruno@clisp.org>
24224 * MODULES.html.sh (Unicode string functions): Add the new modules.
24226 * modules/uniconv/u32-conv-to-enc: New file.
24227 * lib/uniconv/u32-conv-to-enc.c: New file.
24228 * modules/uniconv/u32-conv-to-enc-tests: New file.
24229 * tests/uniconv/test-u32-conv-to-enc.c: New file.
24231 * modules/uniconv/u16-conv-to-enc: New file.
24232 * lib/uniconv/u16-conv-to-enc.c: New file.
24233 * lib/uniconv/u-conv-to-enc.h: New file.
24234 * modules/uniconv/u16-conv-to-enc-tests: New file.
24235 * tests/uniconv/test-u16-conv-to-enc.c: New file.
24237 * modules/uniconv/u8-conv-to-enc: New file.
24238 * lib/uniconv/u8-conv-to-enc.c: New file.
24239 * modules/uniconv/u8-conv-to-enc-tests: New file.
24240 * tests/uniconv/test-u8-conv-to-enc.c: New file.
24242 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24243 u32_conv_to_encoding): New declarations.
24245 2007-06-09 Bruno Haible <bruno@clisp.org>
24247 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
24249 2007-06-09 Bruno Haible <bruno@clisp.org>
24251 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
24252 * modules/malloca: Renamed from modules/allocsa, updated.
24253 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
24254 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
24255 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
24256 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
24257 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
24258 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
24259 * modules/xmalloca: Renamed from modules/xallocsa, updated.
24260 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
24261 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
24262 * modules/c-strcasestr (Depends-on): Update.
24263 * lib/c-strcasestr.c: Update.
24264 * modules/c-strstr (Depends-on): Update.
24265 * lib/c-strstr.c: Update.
24266 * modules/canonicalize-lgpl (Depends-on): Update.
24267 * lib/canonicalize-lgpl.c: Update.
24268 * modules/clean-temp (Depends-on): Update.
24269 * lib/clean-temp.c: Update.
24270 * modules/csharpcomp (Depends-on): Update.
24271 * lib/csharpcomp.c: Update.
24272 * modules/csharpexec (Depends-on): Update.
24273 * lib/csharpexec.c: Update.
24274 * modules/javacomp (Depends-on): Update.
24275 * lib/javacomp.c: Update.
24276 * modules/javaexec (Depends-on): Update.
24277 * lib/javaexec.c: Update.
24278 * modules/mbscasestr (Depends-on): Update.
24279 * lib/mbscasestr.c: Update.
24280 * modules/mbsstr (Depends-on): Update.
24281 * lib/mbsstr.c: Update.
24282 * modules/setenv (Depends-on): Update.
24283 * lib/setenv.c: Update.
24284 * modules/strcasestr (Depends-on): Update.
24285 * lib/strcasestr.c: Update.
24286 * modules/striconveha (Depends-on): Update.
24287 * lib/striconveha.c: Update.
24288 * modules/relocatable-prog-wrapper (Files): Update.
24289 * lib/relocwrapper.c: Update.
24290 * build-aux/install-reloc: Update.
24291 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
24293 2007-06-08 Bruno Haible <bruno@clisp.org>
24296 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
24297 * lib/fpurge.c (fpurge): Likewise.
24298 * lib/freading.c (freading): Likewise.
24299 * lib/fseeko.c (rpl_fseeko): Likewise.
24300 * lib/fseterr.c (fseterr): Likewise.
24301 * lib/fwriting.c (fwriting): Likewise.
24302 * tests/test-fflush.c (main): Avoid a failure on uClibc.
24304 2007-06-08 Bruno Haible <bruno@clisp.org>
24306 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
24307 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
24308 * modules/gettext (Files): Add m4/intlmacosx.m4.
24310 2007-06-07 Bruno Haible <bruno@clisp.org>
24312 * modules/localename-tests: New file.
24313 * tests/test-localename.c: New file.
24315 New module 'localename'.
24316 * lib/localename.h: New file.
24317 * lib/localename.c: New file, from GNU gettext.
24318 * m4/localename.m4: New file.
24319 * modules/localename: New file.
24321 2007-06-07 Bruno Haible <bruno@clisp.org>
24323 Work around the lack of <wchar.h> on some builds of uClibc.
24324 * doc/headers/wchar.texi: Update.
24325 * lib/wchar_.h: Include <wchar.h> only if it exists.
24326 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
24327 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
24328 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
24330 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
24331 * modules/mbfile (Depends-on): Add wchar.
24332 * modules/mbiter (Depends-on): Likewise.
24333 * modules/mbuiter (Depends-on): Likewise.
24334 Reported by Simon Josefsson.
24336 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
24338 Work around problem reported by Steven M. Schweda in
24339 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
24340 Tru64 5.1B with the Compaq compiler environment installed declares
24341 an 'isblank' function but does not define it in the C library.
24342 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
24343 * lib/regex_internal.h (isblank): Likewise.
24344 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
24345 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24347 2007-06-05 Bruno Haible <bruno@clisp.org>
24349 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
24351 * modules/printf-safe: New file.
24352 * modules/fprintf-posix (Depends-on): Add printf-safe.
24353 * modules/printf-posix (Depends-on): Likewise.
24354 * modules/snprintf-posix (Depends-on): Likewise.
24355 * modules/sprintf-posix (Depends-on): Likewise.
24356 * modules/vasnprintf-posix (Depends-on): Likewise.
24357 * modules/vasprintf-posix (Depends-on): Likewise.
24358 * modules/vfprintf-posix (Depends-on): Likewise.
24359 * modules/vprintf-posix (Depends-on): Likewise.
24360 * modules/vsnprintf-posix (Depends-on): Likewise.
24361 * modules/vsprintf-posix (Depends-on): Likewise.
24362 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
24363 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
24364 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
24365 "no" on i386, x86_64, ia64.
24366 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
24367 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24368 on i386, x86_64, ia64.
24369 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
24370 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24371 on i386, x86_64, ia64.
24372 * tests/test-vasnprintf-posix.c: Include float.h.
24373 (LDBL80_WORDS): New macro.
24374 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24375 on i386, x86_64, ia64.
24376 * tests/test-vasprintf-posix.c: Include float.h.
24377 (LDBL80_WORDS): New macro.
24378 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24379 on i386, x86_64, ia64.
24380 * tests/test-snprintf-posix.c: Include float.h.
24381 * tests/test-sprintf-posix.c: Likewise.
24382 * tests/test-vsnprintf-posix.c: Likewise.
24383 * tests/test-vsprintf-posix.c: Likewise.
24385 2007-06-05 Bruno Haible <bruno@clisp.org>
24387 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
24388 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
24389 non-IEEE numbers on i386, x86_64, ia64.
24390 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
24391 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
24392 * tests/test-isnanl.h: Include float.h.
24393 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
24395 2007-06-05 Bruno Haible <bruno@clisp.org>
24397 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
24398 also the %a / %A. Handle the %a / %A code before this extra handling.
24400 2007-06-05 Bruno Haible <bruno@clisp.org>
24402 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
24403 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
24405 2007-06-05 Bruno Haible <bruno@clisp.org>
24407 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
24408 typo in variable name.
24410 2007-06-05 Eric Blake <ebb9@byu.net>
24412 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
24413 Reported by Simon Josefsson.
24415 2007-06-04 Bruno Haible <bruno@clisp.org>
24417 Avoid test failures on some PowerPC platforms.
24418 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
24419 Define differently for PowerPC.
24420 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
24421 Reported by Gary V. Vaughan <gary@gnu.org>.
24423 2007-06-02 Bruno Haible <bruno@clisp.org>
24425 Fix test-stdint failure on FreeBSD/ia64.
24426 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
24427 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
24428 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
24429 * doc/headers/stdint.texi: Update.
24431 2007-06-01 Bruno Haible <bruno@clisp.org>
24433 * tests/test-binary-io.c (main): Pass a third argument to open().
24434 Reported by Gary V. Vaughan <gary@gnu.org>.
24436 2007-06-01 Bruno Haible <bruno@clisp.org>
24438 * doc/functions/frexpl.texi: Update for mingw.
24440 2007-06-01 Bruno Haible <bruno@clisp.org>
24442 * tests/test-lseek.c (main): Disable test of errno for invalid third
24444 * doc/functions/lseek.texi: Update.
24445 Reported by Gary V. Vaughan <gary@gnu.org>.
24447 2007-05-28 Bruno Haible <bruno@clisp.org>
24449 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
24451 2007-05-31 Eric Blake <ebb9@byu.net>
24453 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
24456 2007-05-30 Eric Blake <ebb9@byu.net>
24457 and Bruno Haible <bruno@clisp.org>
24459 Work around mingw test failures exposed by m4-1.4.9b.
24460 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
24461 * tests/test-unistd.c: Disable uid_t and git_t tests for the
24464 2007-05-30 Bruno Haible <bruno@clisp.org>
24466 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
24467 assuming that they are closed. Needed on HP-UX 11.
24469 2007-05-29 Bruno Haible <bruno@clisp.org>
24471 Fix a problem with #include_next.
24472 * lib/dirent_.h: Split the double-inclusion guard.
24473 * lib/fcntl_.h: Likewise.
24474 * lib/float_.h: Likewise.
24475 * lib/iconv_.h: Likewise.
24476 * lib/inttypes_.h: Likewise.
24477 * lib/locale_.h: Likewise.
24478 * lib/math_.h: Likewise.
24479 * lib/netinet_in_.h: Likewise.
24480 * lib/search_.h: Likewise.
24481 * lib/signal_.h: Likewise.
24482 * lib/stdint_.h: Likewise.
24483 * lib/stdio_.h: Likewise.
24484 * lib/stdlib_.h: Likewise.
24485 * lib/string_.h: Likewise.
24486 * lib/sys_select_.h: Likewise.
24487 * lib/sys_socket_.h: Likewise.
24488 * lib/sys_stat_.h: Likewise.
24489 * lib/sys_time_.h: Likewise.
24490 * lib/sysexits_.h: Likewise.
24491 * lib/time_.h: Likewise.
24492 * lib/unistd_.h: Likewise.
24493 * lib/wchar_.h: Likewise.
24494 * lib/wctype_.h: Likewise.
24496 2007-05-29 Bruno Haible <bruno@clisp.org>
24498 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
24501 2007-05-29 Bruno Haible <bruno@clisp.org>
24503 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
24505 Reported by Eric Blake.
24507 2007-05-29 Bruno Haible <bruno@clisp.org>
24509 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
24512 2007-05-29 Eric Blake <ebb9@byu.net>
24513 Bruno Haible <bruno@clisp.org>
24515 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
24518 2007-05-28 Eric Blake <ebb9@byu.net>
24520 * modules/closein-tests (test_closein_LDADD): Support test on
24521 cygwin with libtool.
24523 2007-05-28 Bruno Haible <bruno@clisp.org>
24525 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
24526 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24527 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24528 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24529 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24530 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24531 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24532 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24533 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24535 2007-05-28 Eric Blake <ebb9@byu.net>
24537 Unconditionally include <config.h> in unit tests.
24538 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
24539 * tests/test-allocsa.c, tests/test-arcfour.c,
24540 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
24541 tests/test-array_list.c, tests/test-array_oset.c,
24542 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
24543 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
24544 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
24545 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
24546 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
24547 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
24548 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
24549 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
24550 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
24551 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
24552 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
24553 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
24554 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
24555 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
24556 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
24557 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
24558 test-md5.c, test-memmem.c, test-printf-posix.c,
24559 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
24560 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
24561 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
24562 test-strcasestr.c, test-striconv.c, test-striconveh.c,
24563 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
24564 test-vasnprintf-posix2.c, test-vasnprintf.c,
24565 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
24566 test-vfprintf-posix.c, test-vprintf-posix.c,
24567 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
24568 test-xvasprintf.c: Likewise.
24570 2007-05-28 Bruno Haible <bruno@clisp.org>
24572 * gnulib-tool (func_import): Remember the --with-tests command-line
24573 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
24574 Reported by Eric Blake.
24576 2007-05-28 Bruno Haible <bruno@clisp.org>
24578 * modules/ftell-tests: New file.
24579 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
24580 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
24582 * lib/ftell.c: New file.
24583 * modules/ftell: New file.
24584 * m4/ftell.m4: New file.
24585 * doc/functions/ftell.texi: Update.
24586 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
24588 * lib/stdio_.h (rpl_ftell): New declaration.
24589 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
24592 2007-05-28 Eric Blake <ebb9@byu.net>
24594 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
24596 2007-05-28 Bruno Haible <bruno@clisp.org>
24598 * modules/fseek-tests: New file.
24599 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
24600 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
24602 * lib/fseek.c: New file.
24603 * modules/fseek: New file.
24604 * m4/fseek.m4: New file.
24605 * doc/functions/fseek.texi: Update.
24606 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
24608 * lib/stdio_.h (rpl_fseek): New declaration.
24609 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
24612 2007-05-28 Bruno Haible <bruno@clisp.org>
24614 * lib/stdio_.h (fflush): More comments.
24616 2007-05-28 Bruno Haible <bruno@clisp.org>
24618 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
24621 2007-05-28 Eric Blake <ebb9@byu.net>
24623 Improve lseek module.
24624 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
24625 * lib/unistd_.h (lseek): Scale back link warning message.
24626 * tests/test-lseek.c: Beef up test.
24627 * tests/test-lseek.sh: Exercise more facets of lseek.
24628 Reported by Bruno Haible.
24630 2007-05-28 Bruno Haible <bruno@clisp.org>
24632 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
24635 2007-05-27 Bruno Haible <bruno@clisp.org>
24637 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
24639 2007-05-27 Bruno Haible <bruno@clisp.org>
24641 * modules/openmp: New file.
24642 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
24645 2007-05-26 Bruno Haible <bruno@clisp.org>
24647 * modules/chdir-long (Depends-on): Add fchdir.
24648 * modules/chdir-safer (Depends-on): Likewise.
24649 * modules/fts (Depends-on): Likewise.
24650 * modules/fts-lgpl (Depends-on): Likewise.
24651 * modules/openat (Depends-on): Likewise.
24652 * modules/savewd (Depends-on): Likewise.
24654 2007-05-24 Eric Blake <ebb9@byu.net>
24656 Fix lseek on mingw.
24657 * modules/lseek: New module.
24658 * m4/lseek.m4: New file.
24659 * lib/lseek.c: New file.
24660 * modules/lseek-tests: New file.
24661 * tests/test-lseek.c: New file.
24662 * tests/test-lseek.sh: New file.
24663 * MODULES.html.sh: Document lseek module.
24664 * modules/fflush (Depends-on): Add lseek, fseeko.
24665 * modules/fseeko (Depends-on): Likewise.
24666 * modules/ftello (Depends-on): Likewise.
24667 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
24669 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
24671 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
24672 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
24673 * lib/ftello.c (rpl_ftello): Likewise.
24674 * tests/test-fseeko.c (main): Test this.
24675 * tests/test-fseeko.sh: Likewise.
24676 * tests/test-ftello.c (main): Likewise.
24677 * tests/test-ftello.sh: Likewise.
24678 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
24679 implies replacing fseek.
24680 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
24682 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
24683 * modules/unistd (Makefile.am): Likewise.
24684 * lib/unistd_.h (lseek): Declare a replacement.
24685 * doc/functions/lseek.texi (lseek): Document this fix.
24686 * doc/functions/fseek.texi (fseek): Likewise.
24687 * doc/functions/ftell.texi (ftell): Likewise.
24689 2007-05-24 Bruno Haible <bruno@clisp.org>
24691 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
24692 in the printed representation of a NaN.
24693 * tests/test-vasprintf-posix.c (test_function): Likewise.
24694 * tests/test-snprintf-posix.h (test_function): Likewise.
24695 * tests/test-sprintf-posix.h (test_function): Likewise.
24696 Reported by Eric Blake.
24698 2007-05-23 Eric Blake <ebb9@byu.net>
24700 Fix fseeko/ftello on cygwin 1.5.24.
24701 * doc/functions/fseeko.texi (fseeko): Document the fix.
24702 * doc/functions/ftello.texi (ftello): Document the fix.
24703 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
24704 * doc/functions/stdout.text (stdout): New file.
24705 * doc/functions/stderr.text (stderr): New file.
24706 * doc/gnulib.texi (Function Substitutes): Use new files.
24707 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
24709 * tests/test-ftello.c (main): Likewise for ftello.
24710 * tests/test-fseeko.sh: New file.
24711 * tests/test-ftello.sh: New file.
24712 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
24713 with seekable stdin.
24714 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
24715 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
24716 (gl_REPLACE_FSEEKO): New macro.
24717 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
24718 * modules/fseeko (Files): Distribute fseeko.c.
24719 * modules/ftello (Files): Distribute ftello.c.
24720 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
24722 * lib/ftello.c (rpl_ftello): New file.
24723 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
24725 (gl_STDIN_LARGE_OFFSET): New macro.
24726 * modules/stdio (Makefile.am): Perform the replacement.
24727 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
24729 2007-05-23 Bruno Haible <bruno@clisp.org>
24731 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
24732 GNULIB_POSIXCHECK is defined.
24734 2007-05-21 Bruno Haible <bruno@clisp.org>
24736 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
24737 Check also the output for NaN arguments. When cross-compiling, guess
24739 * lib/vasnprintf.c: Update comments.
24740 * tests/test-vasnprintf-posix.c (strisnan): New function.
24741 (test_function): Use it.
24742 * tests/test-vasprintf-posix.c (strisnan): New function.
24743 (test_function): Use it.
24744 * tests/test-snprintf-posix.h (strisnan): New function.
24745 (test_function): Use it.
24746 * tests/test-sprintf-posix.h (strisnan): New function.
24747 (test_function): Use it.
24748 Reported by Eric Blake.
24750 2007-05-20 Bruno Haible <bruno@clisp.org>
24752 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
24753 numbers that fails on BeOS.
24754 * doc/functions/frexpl.texi: Update.
24756 2007-05-20 Jim Meyering <jim@meyering.net>
24758 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
24759 forced upon us by glibc-2.6.
24761 2007-05-20 Bruno Haible <bruno@clisp.org>
24763 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
24764 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
24765 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
24766 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
24767 NEED_PRINTF_INFINITE.
24768 (is_infinitel): New function.
24769 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
24770 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
24771 gl_PREREQ_VASNPRINTF_INFINITE.
24772 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
24773 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24774 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
24775 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
24776 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
24777 gl_PREREQ_VASNPRINTF_INFINITE.
24778 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24779 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24780 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24781 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24782 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24783 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24784 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24785 * doc/functions/fprintf.texi: Update.
24786 * doc/functions/printf.texi: Update.
24787 * doc/functions/snprintf.texi: Update.
24788 * doc/functions/sprintf.texi: Update.
24789 * doc/functions/vfprintf.texi: Update.
24790 * doc/functions/vprintf.texi: Update.
24791 * doc/functions/vsnprintf.texi: Update.
24792 * doc/functions/vsprintf.texi: Update.
24794 2007-05-20 Bruno Haible <bruno@clisp.org>
24796 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
24797 was not found in libc.
24798 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24800 2007-05-20 Bruno Haible <bruno@clisp.org>
24802 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
24803 printed as "-nan" instead of "nan".
24804 * tests/test-vasprintf-posix.c (test_function): Likewise.
24805 * tests/test-snprintf-posix.h (test_function): Likewise.
24806 * tests/test-sprintf-posix.h (test_function): Likewise.
24807 Needed for HP-UX 11.
24809 2007-05-20 Jim Meyering <jim@meyering.net>
24811 Fix buggy test for the fchownat-deref bug.
24812 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
24813 symlink required for the run-test. Without it, this test would
24814 always declare that fchownat doesn't work, and client code would
24815 unnecessarily use the replacement function with fixed libc.
24816 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
24817 Reported by Greg Schafer.
24819 2007-05-19 Bruno Haible <bruno@clisp.org>
24821 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
24822 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
24823 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
24824 Needed for IRIX 6.5 and Solaris 2.5.1.
24826 2007-05-19 Bruno Haible <bruno@clisp.org>
24828 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
24829 (test_function): Skip tests involving -0.0 on platforms where
24831 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
24832 (test_function): Skip tests involving -0.0 on platforms where
24834 * tests/test-snprintf-posix.h (have_minus_zero): New function.
24835 (test_function): Skip tests involving -0.0 on platforms where
24837 * tests/test-sprintf-posix.h (have_minus_zero): New function.
24838 (test_function): Skip tests involving -0.0 on platforms where
24840 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
24842 * tests/test-printf-posix.h (test_function): Likewise.
24843 * tests/test-printf-posix.output: Remove all -0.0 related results.
24844 Needed for IRIX 6.5.
24846 2007-05-19 Bruno Haible <bruno@clisp.org>
24848 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
24849 printed as "nan0x7fffffff" instead of "nan".
24850 * tests/test-vasprintf-posix.c (test_function): Likewise.
24851 * tests/test-snprintf-posix.h (test_function): Likewise.
24852 * tests/test-sprintf-posix.h (test_function): Likewise.
24853 * tests/test-fprintf-posix.h (NaN): Remove macro.
24854 (test_function): Remove all NaN related tests.
24855 * tests/test-printf-posix.h (NaN): Remove macro.
24856 (test_function): Remove all NaN related tests.
24857 * tests/test-printf-posix.output: Remove all NaN related results.
24858 Needed for IRIX 6.5.
24860 2007-05-19 Bruno Haible <bruno@clisp.org>
24862 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
24863 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24865 2007-05-19 Bruno Haible <bruno@clisp.org>
24867 * lib/float_.h: New file.
24868 * m4/float_h.m4: New file.
24869 * modules/float: New file.
24870 * modules/isnanl (Dependencies): Add float.
24871 * modules/isnanl-nolibm (Dependencies): Likewise.
24872 * modules/mathl (Dependencies): Likewise.
24873 * modules/printf-frexpl (Dependencies): Likewise.
24874 * modules/signbit (Dependencies): Likewise.
24875 * modules/vasnprintf (Dependencies): Likewise.
24876 * doc/headers/float.texi: Update.
24878 2007-05-19 Jim Meyering <jim@meyering.net>
24880 * lib/utimens.c (gl_futimens): Rename from futimens,
24881 now that glibc-2.6 declares futimens.
24882 * lib/utimens.h: Likewise.
24884 2007-05-19 Bruno Haible <bruno@clisp.org>
24886 Avoid test failures on mingw.
24887 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
24888 * tests/test-printf-posix.sh: Likewise.
24889 * tests/test-vfprintf-posix.sh: Likewise.
24890 * tests/test-vprintf-posix.sh: Likewise.
24892 2007-05-19 Bruno Haible <bruno@clisp.org>
24894 Fix *printf result for NaN, Inf, -0.0 on mingw.
24895 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
24896 * lib/vasnprintf.c: Include math.h and isnan.h.
24897 (is_infinite_or_zero): New function.
24898 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
24899 values in the %f, %F, %e, %E, %g, %G directives.
24900 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
24901 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24902 gl_PRINTF_INFINITE and test its result. Invoke
24903 gl_PREREQ_VASNPRINTF_INFINITE.
24904 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24905 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24906 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24907 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24908 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24909 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24910 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24911 * doc/functions/fprintf.texi: Update.
24912 * doc/functions/printf.texi: Update.
24913 * doc/functions/snprintf.texi: Update.
24914 * doc/functions/sprintf.texi: Update.
24915 * doc/functions/vfprintf.texi: Update.
24916 * doc/functions/vprintf.texi: Update.
24917 * doc/functions/vsnprintf.texi: Update.
24918 * doc/functions/vsprintf.texi: Update.
24920 2007-05-19 Bruno Haible <bruno@clisp.org>
24922 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
24923 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
24924 Instead of multiplying with 10^k, set extra_zeroes to k.
24925 (scale10_round_long_double): Remove function.
24927 2007-05-18 Bruno Haible <bruno@clisp.org>
24929 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
24930 introduced on 2007-05-06.
24932 2007-05-18 Bruno Haible <bruno@clisp.org>
24934 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
24936 * tests/test-vasprintf-posix.c (test_function): Likewise.
24937 * tests/test-snprintf-posix.h (test_function): Likewise.
24938 * tests/test-sprintf-posix.h (test_function): Likewise.
24940 2007-05-18 Bruno Haible <bruno@clisp.org>
24942 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
24943 (strmatch): New function.
24944 (test_function): Test the %f directive on numbers of various exponents.
24945 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
24946 (strmatch): New function.
24947 (test_function): Test the %f directive on numbers of various exponents.
24948 * tests/test-snprintf-posix.h (strmatch): New function.
24949 (test_function): Test the %f directive on numbers of various exponents.
24950 * tests/test-sprintf-posix.h (strmatch): New function.
24951 (test_function): Test the %f directive on numbers of various exponents.
24952 * tests/test-snprintf-posix.c (SIZEOF): New macro.
24953 * tests/test-sprintf-posix.c (SIZEOF): New macro.
24954 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
24955 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
24957 2007-05-18 Bruno Haible <bruno@clisp.org>
24959 Add support for 'long double' number output.
24960 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
24961 * lib/vasnprintf.c: Include math.h and float+.h.
24962 (mp_limb_t): New type.
24963 (GMP_LIMB_BITS): New macro.
24964 (mp_twolimb_t): New type.
24965 (GMP_TWOLIMB_BITS): New macro.
24967 (multiply, divide, convert_to_decimal, decode_long_double,
24968 scale10_round_long_double, scale10_round_decimal_long_double,
24969 floorlog10l): New functions.
24970 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
24971 for the %f, %F, %e, %E, %g, %G directives.
24972 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
24973 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24974 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
24975 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
24976 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24977 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24978 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24979 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24980 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24981 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24982 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24983 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
24984 * modules/snprintf-posix (Depends-on): Likewise.
24985 * modules/sprintf-posix (Depends-on): Likewise.
24986 * modules/vasnprintf-posix (Depends-on): Likewise.
24987 * modules/vasprintf-posix (Depends-on): Likewise.
24988 * modules/vfprintf-posix (Depends-on): Likewise.
24989 * modules/vsnprintf-posix (Depends-on): Likewise.
24990 * modules/vsprintf-posix (Depends-on): Likewise.
24991 * modules/vasnprintf (Files): Add lib/float+.h.
24992 * doc/functions/fprintf.texi: Update.
24993 * doc/functions/printf.texi: Update.
24994 * doc/functions/snprintf.texi: Update.
24995 * doc/functions/sprintf.texi: Update.
24996 * doc/functions/vfprintf.texi: Update.
24997 * doc/functions/vprintf.texi: Update.
24998 * doc/functions/vsnprintf.texi: Update.
24999 * doc/functions/vsprintf.texi: Update.
25001 2007-05-18 Bruno Haible <bruno@clisp.org>
25003 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
25005 2007-05-18 Bruno Haible <bruno@clisp.org>
25007 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
25008 for printing 64-bit integers. Needed for mingw.
25010 2007-05-18 Bruno Haible <bruno@clisp.org>
25012 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25013 gl_FUNC_FREXPL_WORKS.
25014 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
25016 2007-05-18 Bruno Haible <bruno@clisp.org>
25018 * modules/frexpl-nolibm-tests: New file.
25020 * modules/frexpl-nolibm: New file.
25021 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
25023 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
25025 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
25026 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
25027 GCC 4.2, which otherwise issues a lot of warnings.
25028 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
25029 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
25031 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
25032 * modules/iconv_open (iconv.h): Likewise.
25033 * modules/locale (locale.h): Likewise.
25034 * modules/netinet_in (netinet/in.h): Likewise.
25035 * modules/sys_select (sys_select.h): Likewise.
25036 * modules/sys_socket (sys/socket.h): Likewise.
25037 * modules/sys_stat (sys/stat.h): Likewise.
25038 * modules/sysexits (sysexits.h): Likewise.
25039 * modules/unistd (unistd.h): Likewise.
25041 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25043 * modules/closein-tests (Makefile.am): Distribute
25046 2007-05-17 Bruno Haible <bruno@clisp.org>
25048 * tests/test-printf-posix.output: Renamed from
25049 tests/test-fprintf-posix.out.
25050 * modules/fprintf-posix-tests: Update.
25051 * modules/printf-posix-tests: Update.
25052 * modules/vfprintf-posix-tests: Update.
25053 * modules/vprintf-posix-tests: Update.
25054 * tests/test-fprintf-posix.sh: Update.
25055 * tests/test-printf-posix.sh: Update.
25056 * tests/test-vfprintf-posix.sh: Update.
25057 * tests/test-vprintf-posix.sh: Update.
25058 Reported by Ralf Wildenhues.
25060 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
25062 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
25063 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
25064 GCC 4.2, which otherwise issues a lot of warnings.
25065 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
25066 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
25067 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
25068 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
25069 it should no longer be needed.
25070 * lib/string_.h: Likewise.
25071 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
25072 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
25073 * modules/inttypes (inttypes.h): Likewise.
25074 * modules/math (math.h): Likewise.
25075 * modules/search (search.h): Likewise.
25076 * modules/signal (signal.h): Likewise.
25077 * modules/stdint (stdint.h): Likewise.
25078 * modules/stdio (stdio.h): Likewise.
25079 * modules/stdlib (stdlib.h): Likewise.
25080 * modules/string (string.h): Likewise.
25081 * modules/sys_time (sys/time.h): Likewise.
25082 * modules/time (time.h): Likewise.
25083 * modules/wchar (wchar.h): Likewise.
25084 * modules/wctype (wtype.h): Likewise.
25086 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25088 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
25090 2007-05-13 Bruno Haible <bruno@clisp.org>
25092 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
25093 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25094 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
25095 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25096 (gl_PREREQ_STRTOK_R): Don't require it here.
25098 2007-05-13 Bruno Haible <bruno@clisp.org>
25100 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
25101 when used in C++ mode.
25103 2007-05-12 Bruno Haible <bruno@clisp.org>
25105 * lib/linebuffer.h: Tweak doc.
25106 * lib/linebuffer.c: Likewise.
25108 2007-05-12 James Youngman <jay@gnu.org>
25110 * lib/linebuffer.c (readlinebuffer_delim): New function,
25111 like readlinebuffer, but use a caller-specified delimiter.
25112 (readlinebuffer): Just call readlinebuffer_delim with '\n'
25114 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
25116 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
25118 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
25119 * modules/openat (Files): Remove openat-die.c.
25120 (Depends-on): Add openat-die.
25121 * modules/openat-die: New module.
25123 2007-05-06 Bruno Haible <bruno@clisp.org>
25125 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
25126 Update with info about Cygwin.
25127 * doc/functions/fprintf.texi: Update.
25128 * doc/functions/printf.texi: Update.
25129 * doc/functions/snprintf.texi: Update.
25130 * doc/functions/sprintf.texi: Update.
25131 * doc/functions/vfprintf.texi: Update.
25132 * doc/functions/vprintf.texi: Update.
25133 * doc/functions/vsnprintf.texi: Update.
25134 * doc/functions/vsprintf.texi: Update.
25135 Reported by Eric Blake.
25137 2007-05-06 Bruno Haible <bruno@clisp.org>
25139 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
25140 padding ourselves for the floating-point directives.
25141 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
25142 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
25143 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25144 gl_PRINTF_FLAG_ZERO and test its result. Invoke
25145 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
25146 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25147 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25148 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25149 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25150 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25151 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25152 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25153 * tests/test-snprintf-posix.h (test_function): Also check the width
25154 and some flags in the %f directive.
25155 * tests/test-sprintf-posix.h (test_function): Likewise.
25156 * tests/test-vasnprintf-posix.c (test_function): Likewise.
25157 * tests/test-vasprintf-posix.c (test_function): Likewise.
25158 * doc/functions/fprintf.texi: Update.
25159 * doc/functions/printf.texi: Update.
25160 * doc/functions/snprintf.texi: Update.
25161 * doc/functions/sprintf.texi: Update.
25162 * doc/functions/vfprintf.texi: Update.
25163 * doc/functions/vprintf.texi: Update.
25164 * doc/functions/vsnprintf.texi: Update.
25165 * doc/functions/vsprintf.texi: Update.
25167 2007-05-06 Bruno Haible <bruno@clisp.org>
25169 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
25170 pass the ' flag character to sprintf or snprintf.
25171 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
25172 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
25173 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25174 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
25175 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
25176 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25177 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25178 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25179 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25180 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25181 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25182 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25183 * tests/test-snprintf-posix.h (test_function): Also check the grouping
25185 * tests/test-sprintf-posix.h (test_function): Likewise.
25186 * tests/test-vasnprintf-posix.c (test_function): Likewise.
25187 * tests/test-vasprintf-posix.c (test_function): Likewise.
25188 * doc/functions/fprintf.texi: Update.
25189 * doc/functions/printf.texi: Update.
25190 * doc/functions/snprintf.texi: Update.
25191 * doc/functions/sprintf.texi: Update.
25192 * doc/functions/vfprintf.texi: Update.
25193 * doc/functions/vprintf.texi: Update.
25194 * doc/functions/vsnprintf.texi: Update.
25195 * doc/functions/vsprintf.texi: Update.
25197 2007-05-01 Bruno Haible <bruno@clisp.org>
25199 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
25201 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
25203 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
25204 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
25206 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
25208 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
25209 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
25210 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
25212 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
25214 * lib/argp-help.c (struct hol_entry): New member `ord'.
25215 (HOL_ENTRY_PTRCMP): Use ord for comparison
25216 (hol_sort): Initialize ord.
25218 2007-05-01 Bruno Haible <bruno@clisp.org>
25220 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
25221 Reported by Eric Blake.
25222 * doc/gnulib.texi (Function Substitutes): Update.
25224 2007-05-01 Bruno Haible <bruno@clisp.org>
25226 * doc/functions.texi: Remove file, now redundant through
25227 doc/functions/*.texi.
25229 2007-05-01 Bruno Haible <bruno@clisp.org>
25231 * modules/argp (Depends-on): Add sleep.
25233 2007-05-01 Bruno Haible <bruno@clisp.org>
25235 * modules/sleep-tests: New file.
25236 * tests/test-sleep.c: New file.
25238 * modules/sleep: New file.
25239 * lib/sleep.c: New file.
25240 * m4/sleep.m4: New file.
25241 * lib/unistd_.h (sleep): New declaration.
25242 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
25244 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
25245 * doc/functions/sleep.texi: Document the sleep module.
25247 2007-05-01 Bruno Haible <bruno@clisp.org>
25249 * lib/sigprocmask.h: Remove file.
25250 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
25251 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
25252 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
25253 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
25254 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
25255 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
25256 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
25257 HAVE_SIGSET_T as a shell variable.
25258 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
25259 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
25260 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
25261 (Depends-on): Add signal. Remove verify.
25262 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
25263 (Include): Mention <signal.h> instead of sigprocmask.h.
25264 * NEWS: Mention the change.
25265 * lib/fatal-signal.c: Don't include sigprocmask.h.
25267 2007-05-01 Bruno Haible <bruno@clisp.org>
25269 * modules/signal: New file.
25270 * lib/signal_.h: New file.
25271 * m4/signal_h.m4: New file.
25273 2007-05-01 Bruno Haible <bruno@clisp.org>
25275 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
25276 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
25277 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
25278 HAVE_WCTYPE_CTMP_BUG into wctype.h.
25280 2007-05-01 Bruno Haible <bruno@clisp.org>
25282 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
25284 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
25285 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
25286 * modules/sys_stat (Makefile.am): Substitute their values into
25289 2007-05-01 Bruno Haible <bruno@clisp.org>
25291 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
25292 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
25293 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
25295 2007-05-01 Bruno Haible <bruno@clisp.org>
25297 * doc/header/assert.texi: Undo last change: don't mention the gnulib
25298 'assert' module here.
25300 2007-05-01 Bruno Haible <bruno@clisp.org>
25302 * doc/functions/*.texi: New files.
25303 * doc/functions/google-ranking.txt: New file.
25304 * doc/gnulib.texi (Function Substitutes): New chapter.
25305 (ctime, inet_ntoa): Remove sections.
25306 * doc/ctime.texi: Remove file.
25307 * doc/inet_ntoa.texi: Remove file.
25308 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
25310 (%.info): New rule, specifying a --reference-limit.
25312 2007-05-01 Bruno Haible <bruno@clisp.org>
25314 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
25316 2007-05-01 Bruno Haible <bruno@clisp.org>
25318 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
25319 the portability of 'mkdir' to mingw systems.
25321 2007-05-01 Bruno Haible <bruno@clisp.org>
25323 * doc/headers/google-ranking.txt: New file.
25325 2007-04-30 Eric Blake <ebb9@byu.net>
25327 Prefer fseeko to fseek.
25328 * modules/getpass (Depends-on): Add fseeko.
25329 * lib/getpass.c (getpass): Use fseeko, not fseek.
25331 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
25333 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
25334 assumes the sorting is stable, while most qsort implementations
25335 are not. Use argument addresses to ensure they never compare as
25338 * tests/test-argp-2.sh (usage-indent test): Fix output
25339 (func_compare): Restore diff options
25340 * tests/test-argp.c: Restore #include "progname.h"
25342 2007-04-29 Bruno Haible <bruno@clisp.org>
25344 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
25345 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25346 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
25347 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25348 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
25349 (configure.ac): Define CHECK_SNPRINTF_POSIX.
25350 (TESTS, check_PROGRAMS): Add test-snprintf.
25351 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
25352 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
25353 (TESTS, check_PROGRAMS): Add test-vsnprintf.
25354 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
25355 assertions that fail on HP-UX, OSF/1, or IRIX.
25356 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
25358 2007-04-29 Bruno Haible <bruno@clisp.org>
25360 * MODULES.html.sh (posix_functions): Remove 'contents'.
25362 2007-04-29 Karl Berry <karl@gnu.org>
25364 * config/srclist.txt (gendocs_template_min): new entry.
25366 2007-04-29 Bruno Haible <bruno@clisp.org>
25368 Work around fpurge bug on BSD systems.
25369 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
25370 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
25371 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
25372 fpurge to rpl_fpurge if the system already has this function.
25373 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
25374 the case where the system already has this function. Correct invariants
25376 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
25379 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
25381 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
25382 proposed by Sven Verdoolaege.
25384 * tests/test-argp.c: Fix option ordering. Test deeply clustered
25386 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
25387 (usage and help tests): Update
25389 2007-04-29 Bruno Haible <bruno@clisp.org>
25391 * tests/test-fflush.c (main): Use a file of size 17, not 10.
25392 Print more information in case of failure. Disable a test on BeOS.
25394 2007-04-29 Bruno Haible <bruno@clisp.org>
25396 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
25397 This helps debugging on systems on which no gdb is available.
25399 2007-04-29 Bruno Haible <bruno@clisp.org>
25401 * lib/freading.h: Improve comments.
25402 * lib/fwriting.h: Likewise.
25403 * tests/test-freading.c (main): Don't check freading immediately after
25404 repositioning. Needed for glibc.
25406 2007-04-29 Bruno Haible <bruno@clisp.org>
25408 * lib/freading.c (freading): Trivial simplification.
25410 2007-04-28 Bruno Haible <bruno@clisp.org>
25412 * tests/test-fwriting.c (main): Also test the interaction between
25413 fflush and fwriting.
25414 * modules/fwriting-tests (Depends-on): Add fflush.
25416 * tests/test-freading.c (main): Also test the interaction between
25417 fflush and freading.
25418 * modules/freading-tests (Depends-on): Add fflush.
25420 2007-04-28 Bruno Haible <bruno@clisp.org>
25422 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
25424 Suggested by Eric Blake.
25426 2007-04-28 Jim Meyering <jim@meyering.net>
25428 Avoid false-negative in gl_STDINT_H's C99 conformance test.
25429 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
25430 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
25432 2007-04-27 Eric Blake <ebb9@byu.net>
25434 * doc/headers/assert.texi (assert.h): Document assert module use.
25436 2007-04-27 Bruno Haible <bruno@clisp.org>
25438 * doc/headers/*.texi: New files.
25439 * doc/gnulib.texi (Header File Substitutes): New chapter.
25440 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
25442 (standards.info ,standards.html, standards.dvi): Update dependencies.
25443 (mostlyclean, clean): New targets.
25445 2007-04-27 Bruno Haible <bruno@clisp.org>
25447 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
25448 * modules/sysexits (Files, Makefile.am): Update.
25450 * lib/sys_socket_.h: Renamed from lib/socket_.h.
25451 * modules/sys_socket (Files, Makefile.am): Update.
25453 * lib/sys_stat_.h: Renamed from lib/stat_.h.
25454 * modules/sys_stat (Files, Makefile.am): Update.
25456 2007-04-27 Eric Blake <ebb9@byu.net>
25458 * lib/freading.h: Improve comments.
25459 * lib/fwriting.h: Likewise.
25460 * lib/fflush.c: Likewise.
25462 Fix closein for mingw.
25463 * modules/closein-tests: Add tests for closein.
25464 * tests/test-closein.c: New file.
25465 * tests/test-closein.sh: Likewise.
25466 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
25467 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
25469 2007-04-27 Bruno Haible <bruno@clisp.org>
25471 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
25473 * lib/math_.h [__DECC]: Likewise.
25474 * lib/stdio_.h [__DECC]: Likewise.
25475 * lib/stdlib_.h [__DECC]: Likewise.
25476 * lib/string_.h [__DECC]: Likewise.
25477 * lib/time_.h [__DECC]: Likewise.
25478 * lib/wchar_.h [__DECC]: Likewise.
25479 * lib/wctype_.h [__DECC]: Likewise.
25481 2007-04-27 Bruno Haible <bruno@clisp.org>
25483 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
25485 2007-04-27 Bruno Haible <bruno@clisp.org>
25487 * lib/fflush.c: Add comments.
25488 * modules/fpurge-tests (Depends-on): Add fflush.
25489 * modules/freadable-tests (Depends-on): Likewise.
25490 * modules/fwritable-tests (Depends-on): Likewise.
25492 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
25494 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
25495 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
25496 Report by Bruno Haible <bruno@clisp.org>.
25498 2007-04-26 Eric Blake <ebb9@byu.net>
25500 Fix fflush on mingw.
25501 * modules/fflush (Depends-on): Add freading.
25502 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
25505 2007-04-26 Eric Blake <ebb9@byu.net>
25506 and Bruno Haible <bruno@clisp.org>
25508 Implement freading and fwriting.
25509 * lib/freading.c: New file.
25510 * lib/freading.h: Likewise.
25511 * m4/freading.m4: Likewise.
25512 * modules/freading: Likewise.
25513 * modules/freading-tests: Likewise.
25514 * tests/test-freading.c: Likewise.
25515 * lib/fwriting.c: New file.
25516 * lib/fwriting.h: Likewise.
25517 * m4/fwriting.m4: Likewise.
25518 * modules/fwriting: Likewise.
25519 * modules/fwriting-tests: Likewise.
25520 * tests/test-fwriting.c: Likewise.
25521 * MODULES.html.sh (File stream based Input/Output): Mention them.
25523 2007-04-26 Bruno Haible <bruno@clisp.org>
25525 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
25526 'long' when we assume it.
25527 Suggested by Eric Blake.
25529 2007-04-26 Bruno Haible <bruno@clisp.org>
25531 Ensure fseeko, ftello are declared on glibc systems.
25532 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
25533 * modules/fseeko (configure.ac-early): Likewise.
25534 * modules/ftello (configure.ac-early): Likewise.
25535 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
25536 AC_FUNC_FSEEKO for this.
25537 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
25538 (gl_CHECK_FSEEKO): Remove macro.
25540 2007-04-26 Bruno Haible <bruno@clisp.org>
25542 * tests/test-fflush.c (main): Also check the ftell result after
25543 fflush and fseek/fseeko.
25544 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
25545 file descriptor position cache in the stream.
25546 * lib/fseeko.c (rpl_fseeko): Likewise.
25548 2007-04-26 Bruno Haible <bruno@clisp.org>
25550 * modules/fflush-tests (Depends-on): Add fseeko.
25552 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
25553 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25555 * lib/argz_.h: ensure error_t definition is obtained in same
25556 mechanism system argz.h would have.
25557 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
25558 argz facilities are known bad. Err on the side of caution if
25561 2007-04-25 Eric Blake <ebb9@byu.net>
25563 * lib/fpurge.c (includes): Use stdlib.h for free.
25564 * tests/test-fflush.c (main): Also test fflush-fseeko.
25566 2007-04-25 Bruno Haible <bruno@clisp.org>
25568 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
25569 * lib/fseeko.c: New file.
25570 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
25571 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
25572 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
25574 (gl_FUNC_FSEEKO): Invoke it.
25575 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
25576 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
25577 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
25579 2007-04-25 Bruno Haible <bruno@clisp.org>
25581 * modules/fflush (Depends-on): Add ftello.
25583 2007-04-25 Bruno Haible <bruno@clisp.org>
25585 * modules/ftello-tests: New file.
25586 * tests/test-ftello.c: New file.
25588 * modules/ftello: New file.
25589 * m4/ftello.m4: New file.
25590 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
25592 * lib/stdio_.h (ftello): New declaration.
25593 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
25596 2007-04-25 Bruno Haible <bruno@clisp.org>
25598 * modules/fseeko-tests: New file.
25599 * tests/test-fseeko.c: New file.
25601 * modules/fseeko: New file.
25602 * m4/fseeko.m4: New file.
25603 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
25605 * lib/stdio_.h (fseeko): New declaration.
25606 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
25609 2007-04-25 Bruno Haible <bruno@clisp.org>
25611 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
25613 2007-04-25 Bruno Haible <bruno@clisp.org>
25615 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
25616 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
25617 * tests/test-unistd.c: Likewise.
25618 * tests/test-fcntl.c: Likewise.
25620 2007-04-23 Eric Blake <ebb9@byu.net>
25622 * lib/fflush.c: Fix missing include.
25623 Reported by Bruno Haible.
25625 2007-04-23 Bruno Haible <bruno@clisp.org>
25627 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
25628 Reported by Eric Blake.
25630 2007-04-23 Bruno Haible <bruno@clisp.org>
25632 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
25634 2007-04-23 Bruno Haible <bruno@clisp.org>
25636 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
25638 2007-04-23 Bruno Haible <bruno@clisp.org>
25640 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
25641 Needed on HP-UX 11.
25643 2007-04-16 Eric Blake <ebb9@byu.net>
25645 Make fflush rely on fpurge.
25646 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
25647 open coding all variants.
25648 * modules/fflush (Depends-on): Add fpurge and unistd.
25649 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
25650 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
25652 Fix --with-tests compilation on cygwin.
25653 * modules/argmatch-tests (Makefile.am): List gnulib library first
25655 * modules/argp-tests (Makefile.am): Likewise.
25656 * modules/array-list-tests (Makefile.am): Likewise.
25657 * modules/array-oset-tests (Makefile.am): Likewise.
25658 * modules/avltree-list-tests (Makefile.am): Likewise.
25659 * modules/avltree-oset-tests (Makefile.am): Likewise.
25660 * modules/avltreehash-list-tests (Makefile.am): Likewise.
25661 * modules/carray-list-tests (Makefile.am): Likewise.
25662 * modules/dirname-tests (Makefile.am): Likewise.
25663 * modules/frexp-tests (Makefile.am): Likewise.
25664 * modules/isnanl-tests (Makefile.am): Likewise.
25665 * modules/linked-list-tests (Makefile.am): Likewise.
25666 * modules/linkedhash-list-tests (Makefile.am): Likewise.
25667 * modules/lock-tests (Makefile.am): Likewise.
25668 * modules/rbtree-list-tests (Makefile.am): Likewise.
25669 * modules/rbtree-oset-tests (Makefile.am): Likewise.
25670 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25671 * modules/tls-tests (Makefile.am): Likewise.
25672 * modules/tsearch-tests (Makefile.am): Likewise.
25673 * modules/xvasprintf-tests (Makefile.am): Likewise.
25675 Fix fpurge for cygwin.
25676 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
25678 * modules/fpurge-tests (Depends-on): Clean up trash.
25680 2007-04-16 Simon Josefsson <simon@josefsson.org>
25682 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
25684 * m4/autobuild.m4: Re-indent.
25686 2007-04-13 Bruno Haible <bruno@clisp.org>
25688 * modules/fpurge-tests: New file.
25689 * tests/test-fpurge.c: New file.
25691 * modules/fpurge: New file.
25692 * lib/fpurge.h: New file.
25693 * lib/fpurge.c: New file.
25694 * m4/fpurge.m4: New file.
25696 2007-04-13 Bruno Haible <bruno@clisp.org>
25698 * modules/fbufmode-tests: New file.
25699 * tests/test-fbufmode.c: New file.
25701 * modules/fbufmode: New file.
25702 * lib/fbufmode.h: New file.
25703 * lib/fbufmode.c: New file.
25704 * m4/fbufmode.m4: New file.
25706 2007-04-13 Bruno Haible <bruno@clisp.org>
25708 * modules/fwritable-tests: New file.
25709 * tests/test-fwritable.c: New file.
25711 * modules/fwritable: New file.
25712 * lib/fwritable.h: New file.
25713 * lib/fwritable.c: New file.
25714 * m4/fwritable.m4: New file.
25716 2007-04-13 Bruno Haible <bruno@clisp.org>
25718 * modules/freadable-tests: New file.
25719 * tests/test-freadable.c: New file.
25721 * modules/freadable: New file.
25722 * lib/freadable.h: New file.
25723 * lib/freadable.c: New file.
25724 * m4/freadable.m4: New file.
25726 2007-04-13 Bruno Haible <bruno@clisp.org>
25728 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
25731 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
25733 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
25734 gzip bootstrap.conf to avoid dragging in i18n machinery.
25735 (gnulib_tool_option): Use it.
25737 2007-04-13 Bruno Haible <bruno@clisp.org>
25739 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
25741 * tests/test-vasprintf-posix.c (test_function): Likewise.
25742 * tests/test-snprintf-posix.h (test_function): Likewise.
25743 * tests/test-sprintf-posix.h (test_function): Likewise.
25744 * tests/test-fprintf-posix.h (test_function): Likewise.
25745 * tests/test-printf-posix.h (test_function): Likewise.
25746 * tests/test-fprintf-posix.out: Likewise.
25748 2007-04-13 Bruno Haible <bruno@clisp.org>
25750 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
25751 * modules/tls-tests (configure.ac): Likewise.
25752 Reported by Arto C. Nirkko <anirkko@insel.ch>.
25754 2007-04-13 Bruno Haible <bruno@clisp.org>
25756 * lib/tls.c (glthread_tls_get): Fix return type.
25757 Patch by Arto C. Nirkko <anirkko@insel.ch>.
25759 2007-04-12 Eric Blake <ebb9@byu.net>
25761 * modules/gettime (Depends-on): Remove gettime.
25762 Reported by Dmitry V. Levin.
25764 2007-04-12 Bruno Haible <bruno@clisp.org>
25766 * modules/fflush (Include): Mention <stdio.h>.
25767 * modules/strtoimax (Include): Mention <inttypes.h>.
25768 * modules/strtoumax (Include): Likewise.
25770 2007-04-12 Eric Blake <ebb9@byu.net>
25772 * .cvsignore: New file.
25773 * .gitignore: Likewise.
25775 2007-04-12 Bruno Haible <bruno@clisp.org>
25777 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
25778 not before, since $(LDADD) often contains libgnu.a.
25779 * modules/striconv-tests (test_striconv_LDADD): Likewise.
25780 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
25781 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
25784 2007-04-12 Eric Blake <ebb9@byu.net>
25786 Work around glibc's failure to flush stdin on fclose.
25787 * lib/closein.c (close_stdin): Flush stdin before closing.
25789 Work around glibc's failure to reset seekable stdin on exit.
25790 * modules/closein: New module.
25791 * lib/closein.c: New file.
25792 * lib/closein.h: Likewise.
25793 * m4/closein.m4: Likewise.
25794 * MODULES.html.sh (File stream based Input/Output): Document it.
25796 2007-04-12 Simon Josefsson <simon@josefsson.org>
25798 * gnulib-tool: Rename generated 'autobuild' script to
25799 'do-autobuild' in --create-megatestdir output.
25801 * doc/gnulib.texi (Build robot for gnulib): Fix.
25803 2007-04-12 Simon Josefsson <simon@josefsson.org>
25805 * modules/sysexits (Depends-on): Add absolute-header.
25807 2007-04-12 Eric Blake <ebb9@byu.net>
25809 No need to preserve errno on success.
25810 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
25811 Reported by Bruno Haible.
25813 2007-04-12 Simon Josefsson <simon@josefsson.org>
25815 * MODULES.html.sh (Support for maintaining and releasing
25816 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
25818 2007-04-12 Simon Josefsson <simon@josefsson.org>
25820 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
25822 2007-04-12 Simon Josefsson <simon@josefsson.org>
25824 * modules/autobuild: New module.
25826 * m4/autobuild.m4: New file.
25828 2007-04-11 Bruno Haible <bruno@clisp.org>
25830 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
25831 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
25832 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
25833 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
25834 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25835 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25836 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25837 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25838 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25839 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25840 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
25841 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25842 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25843 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
25844 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25845 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25846 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
25847 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25848 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25849 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
25850 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25851 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25852 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
25853 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25854 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25855 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
25856 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25857 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25858 Reported by Eric Blake.
25860 2007-04-11 Bruno Haible <bruno@clisp.org>
25862 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
25864 2007-04-10 Bruno Haible <bruno@clisp.org>
25866 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
25867 for NaN and Infinity. Needed on FreeBSD 6.1.
25868 * tests/test-vasnprintf-posix.c (test_function): Undo last change
25869 regarding results for "%010a" of Infinity and NaN.
25870 * tests/test-vasprintf-posix.c (test_function): Likewise.
25871 * tests/test-snprintf-posix.h (test_function): Likewise.
25872 * tests/test-sprintf-posix.h (test_function): Likewise.
25873 * tests/test-fprintf-posix.h (test_function): Likewise.
25874 * tests/test-printf-posix.h (test_function): Likewise.
25875 * tests/test-fprintf-posix.out: Likewise.
25877 2007-04-10 Bruno Haible <bruno@clisp.org>
25879 * modules/locale-tests: New file.
25880 * tests/test-locale.c: New file.
25882 * modules/locale: New file.
25883 * lib/locale_.h: New file.
25884 * m4/locale_h.m4: New file.
25886 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
25887 Bruno Haible <bruno@clisp.org>
25889 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
25890 be determined, test for availability of the copysignf, copysign,
25891 copysignl functions.
25892 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
25893 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
25894 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
25896 2007-04-09 Eric Blake <ebb9@byu.net>
25898 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
25899 * modules/stdio (Makefile.am): Support fflush.
25900 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25901 * modules/fflush: New file.
25902 * lib/fflush.c: Likewise.
25903 * m4/fflush.m4: Likewise.
25904 * modules/fflush-tests: New test.
25905 * tests/test-fflush.c: Likewise.
25906 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
25908 2007-04-06 Bruno Haible <bruno@clisp.org>
25910 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
25911 (VASNPRINTF): Use signbit for faster determination whether to print a
25913 * modules/vasnprintf (Files): Remove lib/float+.h.
25914 * modules/fprintf-posix (Depends-on): Add signbit.
25915 * modules/snprintf-posix (Depends-on): Likewise.
25916 * modules/sprintf-posix (Depends-on): Likewise.
25917 * modules/vasnprintf-posix (Depends-on): Likewise.
25918 * modules/vasprintf-posix (Depends-on): Likewise.
25919 * modules/vfprintf-posix (Depends-on): Likewise.
25920 * modules/vsnprintf-posix (Depends-on): Likewise.
25921 * modules/vsprintf-posix (Depends-on): Likewise.
25923 2007-04-06 Bruno Haible <bruno@clisp.org>
25925 * tests/test-frexp.c (main): Test also the sign bit of zero results.
25926 * tests/test-frexpl.c (main): Likewise.
25927 * tests/test-ldexpl.c (main): Likewise.
25928 * modules/frexp-tests (Depends-on): Add signbit.
25929 * modules/frexpl-tests (Depdends-on): Likewise.
25930 * modules/ldexpl-tests (Depdends-on): Likewise.
25932 2007-04-06 Bruno Haible <bruno@clisp.org>
25934 * modules/signbit-tests: New file.
25935 * tests/test-signbit.c: New file.
25937 * modules/signbit: New file.
25938 * lib/signbitf.c: New file.
25939 * lib/signbitd.c: New file.
25940 * lib/signbitl.c: New file.
25941 * m4/signbit.m4: New file.
25942 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
25943 (signbit): New macro.
25944 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
25946 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
25947 REPLACE_FREXPL into math.h.
25949 2007-04-06 Bruno Haible <bruno@clisp.org>
25951 * modules/isnanf-nolibm-tests: New file.
25952 * tests/test-isnanf.c: New file.
25954 * modules/isnanf-nolibm: New file.
25955 * lib/isnanf.h: New file.
25956 * lib/isnanf.c: New file.
25957 * lib/isnan.c: Consider the USE_FLOAT macro.
25958 * m4/isnanf.m4: New file.
25960 2007-04-06 Bruno Haible <bruno@clisp.org>
25962 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
25963 (Link): New section.
25965 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
25967 2007-04-06 Bruno Haible <bruno@clisp.org>
25969 Assume the 'long double' type.
25970 * m4/longdouble.m4: Remove file.
25971 * config/srclist.txt: Don't mention longdouble.m4.
25972 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
25973 * lib/float+.h: Likewise.
25974 * lib/frexp.c: Likewise.
25975 * lib/printf-args.h: Likewise.
25976 * lib/printf-args.c: Likewise.
25977 * lib/printf-frexp.c: Likewise.
25978 * lib/printf-parse.c: Likewise.
25979 * lib/vasnprintf.c: Likewise.
25980 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
25981 * m4/intl.m4: Likewise.
25982 * m4/isnanl.m4: Likewise.
25983 * m4/printf.m4: Likewise.
25984 * m4/printf-frexpl.m4: Likewise.
25985 * m4/vasnprintf.m4: Likewise.
25986 * modules/allocsa (Files): Remove m4/longdouble.m4.
25987 * modules/gettext (Files): Likewise.
25988 * modules/relocatable-prog-wrapper (Files): Likewise.
25989 * modules/vasnprintf (Files): Likewise.
25990 * modules/isnanl (Files): Likewise.
25991 (Include): Simplify.
25992 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
25993 (Include): Simplify.
25994 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
25995 (Include): Simplify.
25996 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
25997 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25998 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
25999 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26000 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26001 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26002 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
26003 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26004 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26005 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26006 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
26007 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26008 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
26009 * tests/test-isnanl.c: Likewise.
26010 * tests/test-snprintf-posix.h: Likewise.
26011 * tests/test-sprintf-posix.h: Likewise.
26012 * tests/test-vasnprintf-posix.c: Likewise.
26013 * tests/test-vasnprintf-posix2.c: Likewise.
26014 * tests/test-vasprintf-posix.c: Likewise.
26016 2007-04-06 Bruno Haible <bruno@clisp.org>
26018 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
26019 * lib/math_.h [__DECC]: Include the overridden include file through
26020 #include_next, outside the double-inclusion guard.
26021 * lib/stdio_.h [__DECC]: Likewise.
26022 * lib/stdlib_.h [__DECC]: Likewise.
26023 * lib/string_.h [__DECC]: Likewise.
26024 * lib/time_.h [__DECC]: Likewise.
26025 * lib/wchar_.h [__DECC]: Likewise.
26026 * lib/wctype_.h [__DECC]: Likewise.
26027 * lib/inttypes_.h [__DECC]: Likewise.
26028 Reported by Albert Chin <china@thewrittenword.com> in
26029 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
26031 2007-04-04 Eric Blake <ebb9@byu.net>
26033 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
26036 2007-04-04 Bruno Haible <bruno@clisp.org>
26038 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
26039 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
26041 2007-04-04 Bruno Haible <bruno@clisp.org>
26043 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
26044 results for "%010a" of Infinity and NaN.
26045 * tests/test-vasprintf-posix.c (test_function): Likewise.
26046 * tests/test-snprintf-posix.h (test_function): Likewise.
26047 * tests/test-sprintf-posix.h (test_function): Likewise.
26048 * tests/test-fprintf-posix.h (test_function): Remove these tests.
26049 * tests/test-printf-posix.h (test_function): Likewise.
26050 * tests/test-fprintf-posix.out: Update.
26051 Needed for FreeBSD 6.1.
26053 2007-04-04 Bruno Haible <bruno@clisp.org>
26055 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
26056 directly used by the gnulib modules nor by gnulib-tool.
26058 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
26060 * DEPENDENCIES: Give overall description of version dependency
26061 desirability. Use more-typical names for apps.
26062 Add shell, coreutils, diffutils, grep, tar, gzip.
26064 2007-04-04 Simon Josefsson <simon@josefsson.org>
26066 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
26068 2007-04-04 Karl Berry <karl@gnu.org>
26070 * MODULES.html.sh (func_module): missing '.
26072 2007-04-03 Bruno Haible <bruno@clisp.org>
26074 * modules/argmatch-tests (Makefile.am): New variable
26075 test_argmatch_LDADD.
26076 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
26077 * modules/array-list-tests (Makefile.am): New variable
26078 test_array_list_LDADD.
26079 * modules/array-oset-tests (Makefile.am): New variable
26080 test_array_oset_LDADD.
26081 * modules/avltree-list-tests (Makefile.am): New variable
26082 test_avltree_list_LDADD.
26083 * modules/avltree-oset-tests (Makefile.am): New variable
26084 test_avltree_oset_LDADD.
26085 * modules/avltreehash-list-tests (Makefile.am): New variable
26086 test_avltreehash_list_LDADD.
26087 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
26088 test_canonicalize_lgpl_LDADD.
26089 * modules/carray-list-tests (Makefile.am): New variable
26090 test_carray_list_LDADD.
26091 * modules/dirname-tests (Makefile.am): New variable
26092 test_dirname_LDADD.
26093 * modules/linked-list-tests (Makefile.am): New variable
26094 test_linked_list_LDADD.
26095 * modules/linkedhash-list-tests (Makefile.am): New variable
26096 test_linkedhash_list_LDADD.
26097 * modules/rbtree-list-tests (Makefile.am): New variable
26098 test_rbtree_list_LDADD.
26099 * modules/rbtree-oset-tests (Makefile.am): New variable
26100 test_rbtree_oset_LDADD.
26101 * modules/rbtreehash-list-tests (Makefile.am): New variable
26102 test_rbtreehash_list_LDADD.
26103 * modules/xvasprintf-tests (Makefile.am): New variable
26104 test_xvasprintf_LDADD.
26105 Reported by Eric Blake.
26107 2007-04-03 Eric Blake <ebb9@byu.net>
26109 * DEPENDENCIES: Weaken m4 requirements.
26111 2007-04-03 Bruno Haible <bruno@clisp.org>
26113 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
26114 * modules/isnanl-tests (configure.ac): Likewise.
26116 2007-04-03 Ben Pfaff <blp@gnu.org>
26118 * modules/iconv_open: Add $(srcdir)/ to source directory
26119 references in Makefile fragments that call gperf, to fix VPATH
26122 2007-04-03 Bruno Haible <bruno@clisp.org>
26124 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
26125 * lib/ldexpl.c: Undo last change.
26127 2007-04-03 Bruno Haible <bruno@clisp.org>
26129 * modules/printf-frexpl (Depends-on): Undo last change.
26130 (Files): Add m4/ldexpl.m4.
26132 2007-04-03 Bruno Haible <bruno@clisp.org>
26134 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
26135 * modules/isnanl (Link): New section.
26137 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
26138 * modules/frexp (Link): New section.
26140 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
26141 * modules/frexpl (Link): New section.
26143 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
26144 * modules/ldexpl (Link): New section.
26146 2007-04-03 Bruno Haible <bruno@clisp.org>
26148 * modules/TEMPLATE-EXTENDED: New file.
26149 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
26151 2007-04-03 Bruno Haible <bruno@clisp.org>
26153 * DEPENDENCIES: New file.
26154 Suggested by Simon Josefsson.
26156 2007-04-03 Bruno Haible <bruno@clisp.org>
26158 * doc/gnulib.texi: Escape @.
26160 2007-04-03 James Youngman <jay@gnu.org>
26161 and Paul Eggert <eggert@cs.ucla.edu>
26163 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
26164 birthtime on all systems that have birthtime, not just those which
26165 use st_birthtimensec rather than st_birthtim. Putting zero in
26166 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
26167 that the birth time is not available for files on an NFS mount.
26169 2007-04-03 Simon Josefsson <simon@josefsson.org>
26171 * modules/memxor: Move back from crypto/, suggested by Bruno.
26172 * modules/crypto/hmac-sha1: Fix memxor dependency.
26174 * modules/crypto/gc: Moved from ../.
26176 2007-04-02 Eric Blake <ebb9@byu.net>
26178 * lib/ldexpl.c (includes): Avoid libm.
26180 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
26182 2007-04-02 Bruno Haible <bruno@clisp.org>
26184 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
26187 2007-04-02 Bruno Haible <bruno@clisp.org>
26189 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
26190 x86 or x86_64 platforms running MacOS X.
26191 Reported by Ryan Schmidt <@ryandesign.com>.
26193 2007-04-02 Bruno Haible <bruno@clisp.org>
26195 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
26198 2007-04-01 Simon Josefsson <simon@josefsson.org>
26200 * modules/crypto/arcfour: Moved from ../.
26201 * modules/crypto/arcfour-tests: Moved from ../.
26202 * modules/crypto/arctwo: Moved from ../.
26203 * modules/crypto/arctwo-tests: Moved from ../.
26204 * modules/crypto/des: Moved from ../.
26205 * modules/crypto/des-tests: Moved from ../.
26206 * modules/crypto/gc-arcfour: Moved from ../.
26207 * modules/crypto/gc-arcfour-tests: Moved from ../.
26208 * modules/crypto/gc-arctwo: Moved from ../.
26209 * modules/crypto/gc-arctwo-tests: Moved from ../.
26210 * modules/crypto/gc-des: Moved from ../.
26211 * modules/crypto/gc-des-tests: Moved from ../.
26212 * modules/crypto/gc-hmac-md5: Moved from ../.
26213 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
26214 * modules/crypto/gc-hmac-sha1: Moved from ../.
26215 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
26216 * modules/crypto/gc-md2: Moved from ../.
26217 * modules/crypto/gc-md2-tests: Moved from ../.
26218 * modules/crypto/gc-md4: Moved from ../.
26219 * modules/crypto/gc-md4-tests: Moved from ../.
26220 * modules/crypto/gc-md5: Moved from ../.
26221 * modules/crypto/gc-md5-tests: Moved from ../.
26222 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
26223 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
26224 * modules/crypto/gc-random: Moved from ../.
26225 * modules/crypto/gc-rijndael: Moved from ../.
26226 * modules/crypto/gc-rijndael-tests: Moved from ../.
26227 * modules/crypto/gc-sha1: Moved from ../.
26228 * modules/crypto/gc-sha1-tests: Moved from ../.
26229 * modules/crypto/gc-tests: Moved from ../.
26230 * modules/crypto/hmac-md5: Moved from ../.
26231 * modules/crypto/hmac-md5-tests: Moved from ../.
26232 * modules/crypto/hmac-sha1: Moved from ../.
26233 * modules/crypto/hmac-sha1-tests: Moved from ../.
26234 * modules/crypto/md2: Moved from ../.
26235 * modules/crypto/md2-tests: Moved from ../.
26236 * modules/crypto/md4: Moved from ../.
26237 * modules/crypto/md4-tests: Moved from ../.
26238 * modules/crypto/md5: Moved from ../.
26239 * modules/crypto/md5-tests: Moved from ../.
26240 * modules/crypto/memxor: Moved from ../.
26241 * modules/crypto/rijndael: Moved from ../.
26242 * modules/crypto/rijndael-tests: Moved from ../.
26243 * modules/crypto/sha1: Moved from ../.
26245 2007-03-30 James Youngman <jay@gnu.org>
26247 * tests/test-stat-time.c (prepare_test): use chmod() rather than
26248 rename() to change the ctime of a file (because ctime is unaffected
26249 by rename on jfs2 on AIX 5.1).
26250 (main): Start by doing cleanup, in case a previous run failed leaving
26253 2007-03-31 Bruno Haible <bruno@clisp.org>
26255 Support old proprietary implementations of iconv.
26256 * modules/iconv_open: New file.
26257 * lib/iconv_.h: New file.
26258 * m4/iconv_h.m4: New file.
26259 * lib/iconv_open.c: New file.
26260 * lib/iconv_open-aix.gperf: New file.
26261 * lib/iconv_open-hpux.gperf: New file.
26262 * lib/iconv_open-irix.gperf: New file.
26263 * lib/iconv_open-osf.gperf: New file.
26264 * m4/iconv_open.m4: New file.
26265 * modules/linebreak (Depends-on): Add iconv_open.
26266 * modules/striconv (Depends-on): Likewise.
26267 * modules/striconveh (Depends-on): Likewise.
26268 * modules/unicodeio (Depends-on): Likewise.
26269 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
26271 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
26272 conversion if cd is (iconv_t)(-1).
26273 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
26276 2007-03-31 Bruno Haible <bruno@clisp.org>
26278 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26279 work on Solaris either. Protect also second use of "autodetect_jp".
26281 2007-03-31 Bruno Haible <bruno@clisp.org>
26283 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
26284 the function is not present.
26286 2007-03-31 Bruno Haible <bruno@clisp.org>
26288 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
26289 the function is not present.
26291 2007-03-31 Bruno Haible <bruno@clisp.org>
26293 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
26294 a bug in HP-UX iconv_open().
26296 2007-03-31 Bruno Haible <bruno@clisp.org>
26298 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
26299 (Mathematics <math.h>): New section, add fpieee.
26300 (Input/output <stdio.h>): Add fseterr.
26301 (Mathematics <math.h>): New section, add printf-frexp.
26302 (Container data structures): Add sublist.
26303 (Core language properties): Add fpucw, inline.
26304 (Functions for greatest-width integer types <inttypes.h>): Add
26305 imaxabs, imaxdiv, inttypes.
26306 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
26307 isnanl-nolibm, ldexp.
26308 (Mathematics <math.h>): New section, add printf-frexpl.
26309 (Support for systems lacking POSIX:2001): Add fprintf-posix,
26310 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
26311 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
26312 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
26313 (Unicode string functions): Add unistr/u*-mbtoucr.
26314 (Java): Add javacomp-script, javaexec-script.
26315 (C#): Add csharpcomp-script, csharpexec-script.
26316 (Support for building libraries and executables): Add havelib,
26318 (Support for maintaining and releasing projects): Renamed from
26319 'Support for maintaining and release projects'. Add announce-gen.
26321 2007-03-31 Bruno Haible <bruno@clisp.org>
26323 * README: Talk primarily about git.
26324 (git and CVS): Renamed from CVS.
26325 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
26326 gnulib is available through git.
26327 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
26329 2007-03-30 Bruno Haible <bruno@clisp.org>
26331 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
26332 * lib/poll_.h: Likewise.
26333 * lib/stat_.h: Likewise.
26334 * lib/sys_time_.h: Likewise.
26335 * lib/sysexit_.h: Likewise.
26336 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
26337 * lib/stdbool_.h: Likewise.
26338 * lib/byteswap_.h: Add double-inclusion guard.
26340 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
26342 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
26344 2007-03-30 Karl Berry <karl@gnu.org>
26346 * config/srclist-update: double space after USA in the license
26347 substitution, since that's how it's usually (?) written.
26349 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
26351 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
26352 reported by Bruno Haible.
26354 2007-03-29 Bruno Haible <bruno@clisp.org>
26356 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
26357 a bug in AIX iconv().
26359 2007-03-29 Bruno Haible <bruno@clisp.org>
26361 * modules/ldexpl-tests: New file.
26362 * tests/test-ldexpl.c: New file.
26364 2007-03-29 Bruno Haible <bruno@clisp.org>
26366 * lib/ldexpl.c: Include fpucw.h.
26367 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
26369 * modules/ldexpl (Depends-on): Add fpucw.
26371 2007-03-29 Bruno Haible <bruno@clisp.org>
26373 * modules/ldexpl: New file.
26374 * m4/ldexpl.m4: New file.
26375 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
26377 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
26379 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
26381 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
26382 gl_FUNC_LDEXPL_WORKS.
26383 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
26384 * modules/mathl (Files): Remove lib/ldexpl.c.
26385 (Depends-on): Add ldexpl.
26387 2007-03-29 Bruno Haible <bruno@clisp.org>
26389 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
26391 2007-03-29 Bruno Haible <bruno@clisp.org>
26393 * tests/test-striconveh.c (main): Don't assume that a direct conversion
26394 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
26395 and possibly also HP-UX.
26396 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26397 work on AIX, IRIX, HP-UX, OSF/1.
26398 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26399 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26400 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26401 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26402 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
26403 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26405 2007-03-29 Bruno Haible <bruno@clisp.org>
26407 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
26409 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
26411 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
26412 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
26414 2007-03-29 Eric Blake <ebb9@byu.net>
26416 * lib/acl-internal.h: Remove redundant include.
26417 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
26418 Cygwin when a file is locked.
26420 2007-03-29 Bruno Haible <bruno@clisp.org>
26422 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
26424 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
26426 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
26428 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
26429 try to remove a parent directory if the child couldn't be removed
26430 (except for the first rmdir, which could fail because the child
26431 doesn't exist). Problem reported by Jeff Blaine in
26432 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
26434 2007-03-28 Bruno Haible <bruno@clisp.org>
26436 * lib/striconveh.c (utf8conv_carefully): New function.
26437 (mem_cd_iconveh_internal): Invoke it.
26439 2007-03-28 Bruno Haible <bruno@clisp.org>
26441 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
26442 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
26444 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
26445 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
26448 2007-03-28 Bruno Haible <bruno@clisp.org>
26450 * modules/unistr/u8-mbtoucr: New file.
26451 * lib/unistr/u8-mbtoucr.c: New file.
26452 * modules/unistr/u16-mbtoucr: New file.
26453 * lib/unistr/u16-mbtoucr.c: New file.
26454 * modules/unistr/u16-mbtoucr: New file.
26455 * lib/unistr/u16-mbtoucr.c: New file.
26456 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
26458 2007-03-27 Simon Josefsson <simon@josefsson.org>
26459 Bruno Haible <bruno@clisp.org>
26461 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
26462 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
26463 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
26465 * m4/stdio_h.m4: Add stubs for vasprintf too.
26467 * modules/stdio: Support vasprintf in sed command.
26469 * modules/vasprintf: Depend on stdio for prototypes. Remove
26470 vasprintf.h. Add stdio module indicator.
26472 * lib/stdio_.h: Declare asprintf and vasprintf, based on
26475 * lib/vasprintf.h: File removed.
26477 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
26478 * lib/vasprintf.c: Ditto.
26479 * lib/xvasprintf.c: Ditto.
26480 * tests/test-vasprintf-posix.c: Ditto.
26481 * tests/test-vasprintf.c: Ditto.
26483 2007-03-27 Bruno Haible <bruno@clisp.org>
26485 Make vasnprintf multithread-safe.
26486 * lib/vasnprintf.c (decimal_point_char): New function.
26487 (VASNPRINTF): Use it.
26488 Suggested by Simon Josefsson.
26490 2007-03-27 Eric Blake <ebb9@byu.net>
26492 Support sub-second birthtime on cygwin.
26493 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
26494 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
26495 (get_stat_birthtime): Also work with st_birthtim.
26497 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
26499 * lib/stat-time.h (USE_BIRTHTIME): Remove.
26500 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
26501 (get_stat_birthtime_ns): Do not try to use "spare" fields.
26502 (get_stat_birthtime_ns): Simplify compile-time tests.
26503 (get_stat_birthtime): Change the API to look like
26504 get_stat_mtime etc., except return a negative tv_nsec on error.
26505 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
26506 Don't check for "spare" fields.
26507 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
26508 or for struct stat.st_birthtime, as these tests aren't used.
26509 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
26511 2007-03-27 Bruno Haible <bruno@clisp.org>
26513 * lib/stat-time.h: Include <sys/stat.h>.
26515 2007-03-27 James Youngman <jay@gnu.org>
26517 * lib/stat-time.h (get_stat_birthtime): New function for
26518 retrieving st_birthtime as provided by UFS2 (hence *BSD).
26519 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
26521 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
26522 * modules/stat-time-test: New file.
26523 * tests/test-stat-time.c: New test, devised by Bruno Haible.
26525 2007-03-26 Bruno Haible <bruno@clisp.org>
26527 Better support of signalling NaNs.
26528 * lib/atanl.c: Include isnanl.h.
26529 (atanl): Perform test for NaN at the beginning of the function and
26530 through a call to isnanl.
26531 * lib/cosl.c: Include isnanl.h.
26532 (cosl): Perform test for NaN at the beginning of the function and
26533 through a call to isnanl.
26534 * lib/ldexpl.c: Include isnanl.h.
26535 (ldexpl): Perform test for NaN through a call to isnanl.
26536 * lib/logl.c: Include isnanl.h.
26537 (logl): Perform test for NaN at the beginning of the function and
26538 through a call to isnanl.
26539 * lib/sinl.c: Include isnanl.h.
26540 (sinl): Perform test for NaN at the beginning of the function and
26541 through a call to isnanl.
26542 * lib/sqrtl.c: Include isnanl.h.
26543 (sqrtl): Perform test for NaN at the beginning of the function and
26544 through a call to isnanl.
26545 * lib/tanl.c: Include isnanl.h.
26546 (tanl): Perform test for NaN at the beginning of the function and
26547 through a call to isnanl.
26548 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
26549 * modules/mathl (Depends-on): Add isnanl.
26551 2007-03-26 Eric Blake <ebb9@byu.net>
26553 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
26554 regression in logic sense of previous patch.
26556 2007-03-26 Bruno Haible <bruno@clisp.org>
26558 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
26559 unportable shell command "if ! ...".
26560 Reported by Ralf Wildenhues.
26562 2007-03-25 Bruno Haible <bruno@clisp.org>
26564 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
26565 <sysexits.h> file, and only add EX_CONFIG.
26566 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
26567 absolute file name and whether it is sufficient. Substitute also
26568 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
26569 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
26570 ABSOLUTE_SYSEXITS_H into sysexits.h.
26572 2007-03-25 Bruno Haible <bruno@clisp.org>
26574 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
26577 2007-03-25 Bruno Haible <bruno@clisp.org>
26579 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
26580 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26582 2007-03-25 Bruno Haible <bruno@clisp.org>
26584 * lib/vasnprintf.c: Include langinfo.h.
26585 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
26587 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
26588 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
26589 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26590 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26591 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26592 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26593 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26594 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
26595 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26596 Reported by Simon Josefsson.
26598 2007-03-25 Bruno Haible <bruno@clisp.org>
26600 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
26601 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
26602 * modules/vasnprintf (Depends-on): Add stdint.
26604 2007-03-25 Bruno Haible <bruno@clisp.org>
26606 * modules/fpieee: New file.
26607 * m4/fpieee.m4: New file.
26608 * modules/isnan-nolibm (Depends-on): Add fpieee.
26609 * modules/isnanl-nolibm (Depends-on): Add fpieee.
26610 * modules/isnanl (Depends-on): Add fpieee.
26612 2007-03-25 Bruno Haible <bruno@clisp.org>
26614 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
26616 2007-03-25 Bruno Haible <bruno@clisp.org>
26618 Avoid test failures on IRIX 6.5.
26619 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
26621 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
26625 2007-03-25 Bruno Haible <bruno@clisp.org>
26627 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
26628 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
26629 exists but doesn't work.
26630 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
26631 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
26632 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
26633 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
26635 2007-03-25 Bruno Haible <bruno@clisp.org>
26637 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
26638 returns inf. Needed on IRIX 6.5.
26640 2007-03-25 Bruno Haible <bruno@clisp.org>
26642 * tests/test-frexpl.c: Include isnanl-nolibm.h.
26643 (main): Use isnanl instead of x != x idiom.
26644 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
26646 * tests/test-frexp.c: Include isnan.h.
26647 (main): Use isnan instead of x != x idiom.
26648 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
26650 2007-03-25 Bruno Haible <bruno@clisp.org>
26652 * tests/test-frexp.c (NaN): New function/macro.
26653 (main): Use it instead of 0.0 / 0.0.
26654 * tests/test-isnan.c (NaN): New function/macro.
26655 (main): Use it instead of 0.0 / 0.0.
26656 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
26657 (test_function): Use it instead of 0.0 / 0.0.
26658 * tests/test-vasprintf-posix.c (NaN): New function/macro.
26659 (test_function): Use it instead of 0.0 / 0.0.
26660 * tests/test-snprintf-posix.h (NaN): New function/macro.
26661 (test_function): Use it instead of 0.0 / 0.0.
26662 * tests/test-sprintf-posix.h (NaN): New function/macro.
26663 (test_function): Use it instead of 0.0 / 0.0.
26664 * tests/test-fprintf-posix.h (NaN): New function/macro.
26665 (test_function): Use it instead of 0.0 / 0.0.
26666 * tests/test-printf-posix.h (NaN): New function/macro.
26667 (test_function): Use it instead of 0.0 / 0.0.
26669 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
26671 2007-03-25 Bruno Haible <bruno@clisp.org>
26673 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
26675 2007-03-25 Bruno Haible <bruno@clisp.org>
26677 * lib/regexec.c (merge_state_with_log): Make static.
26679 2007-03-25 Bruno Haible <bruno@clisp.org>
26681 * lib/trigl.c (kernel_rem_pio2): Make static.
26683 2007-03-25 Bruno Haible <bruno@clisp.org>
26685 * lib/sincosl.c (sincosl_table): Make static.
26687 2007-03-25 Bruno Haible <bruno@clisp.org>
26689 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
26690 if the compiler does not support C99.
26692 2007-03-25 Bruno Haible <bruno@clisp.org>
26694 * modules/time (Makefile.am): Ensure all rule action lines start with a
26697 2007-03-24 Bruno Haible <bruno@clisp.org>
26699 * modules/tsearch-tests: New file.
26700 * tests/test-tsearch.sh: New file.
26701 * tests/test-tsearch.c: New file, mostly copied from glibc.
26703 * modules/search-tests: New file.
26704 * tests/test-search.c: New file.
26706 * modules/search: New file.
26707 * lib/search_.h: New file, incorporating lib/tsearch.h.
26708 * m4/search_h.m4: New file.
26709 * lib/tsearch.h: Remove file.
26710 * lib/tsearch.c: Include search.h instead of tsearch.h.
26711 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
26713 * modules/tsearch (Files): Remove lib/tsearch.h.
26714 (Depends-on): Add search.
26715 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
26716 (Include): Change tsearch.h into search.h.
26718 2007-03-24 Bruno Haible <bruno@clisp.org>
26720 * modules/fpucw: New file.
26721 * lib/fpucw.h: New file.
26722 * lib/frexp.c: Include fpucw.h.
26723 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
26725 * lib/printf-frexp.c: Include fpucw.h.
26726 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
26728 * lib/vasnprintf.c: Include fpucw.h.
26729 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
26730 'long double' calculations.
26731 * tests/test-frexpl.c: Include fpucw.h.
26732 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
26733 * tests/test-printf-frexpl.c: Include fpucw.h.
26734 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
26735 * modules/frexpl (Depends-on): Add fpucw.
26736 * modules/printf-frexpl (Depends-on): Likewise.
26737 * modules/fprintf-posix (Depends-on): Likewise.
26738 * modules/snprintf-posix (Depends-on): Likewise.
26739 * modules/sprintf-posix (Depends-on): Likewise.
26740 * modules/vasnprintf-posix (Depends-on): Likewise.
26741 * modules/vasprintf-posix (Depends-on): Likewise.
26742 * modules/vfprintf-posix (Depends-on): Likewise.
26743 * modules/vsnprintf-posix (Depends-on): Likewise.
26744 * modules/vsprintf-posix (Depends-on): Likewise.
26745 * modules/frexpl-tests (Depends-on): Likewise.
26746 * modules/printf-frexpl-tests (Depends-on): Likewise.
26748 2007-03-24 Bruno Haible <bruno@clisp.org>
26750 * lib/float+.h: New file.
26751 * lib/isnan.c: Include float+.h.
26753 (FUNC): Compare only SIZE bytes of the value.
26754 * lib/vasnprintf.c: Include float+.h.
26755 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
26756 SIZEOF_LDBL or SIZEOF_DBL bytes.
26757 * modules/isnan-nolibm (Files): Add lib/float+.h.
26758 * modules/isnanl-nolibm (Files): Add lib/float+.h.
26759 * modules/isnanl (Files): Add lib/float+.h.
26760 * modules/vasnprintf (Files): Add lib/float+.h.
26762 2007-03-24 Bruno Haible <bruno@clisp.org>
26764 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
26765 include isnanl-nolibm.h.
26767 2007-03-24 Bruno Haible <bruno@clisp.org>
26769 * tests/test-read-file.c (main): Don't produce spurious output for
26770 expected situations. Make the test fail if it encountered unexpected
26773 2007-03-24 Bruno Haible <bruno@clisp.org>
26775 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
26776 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
26778 2007-03-24 Bruno Haible <bruno@clisp.org>
26780 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
26782 2007-03-24 Bruno Haible <bruno@clisp.org>
26784 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
26785 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
26787 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
26788 * modules/utf8-ucs4: Turn into a symbolic link to module
26791 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
26793 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
26794 unistr/u8-mbtouc-unsafe.
26796 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
26797 * modules/utf16-ucs4: Turn into a symbolic link to module
26800 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
26802 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
26803 unistr/u16-mbtouc-unsafe.
26805 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
26806 * modules/ucs4-utf8: Turn into a symbolic link to module
26809 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
26810 * modules/ucs4-utf16: Turn into a symbolic link to module
26813 2007-03-24 Bruno Haible <bruno@clisp.org>
26815 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
26816 Enable the function only if HAVE_INLINE.
26817 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
26818 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
26819 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
26820 Enable the function only if HAVE_INLINE.
26821 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
26822 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
26823 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
26824 Enable the function only if HAVE_INLINE.
26825 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
26826 Enable the function only if HAVE_INLINE.
26827 * modules/utf8-ucs4: Update.
26828 * modules/utf8-ucs4-unsafe: Update.
26829 * modules/utf16-ucs4: Update.
26830 * modules/utf16-ucs4-unsafe: Update.
26831 * modules/ucs4-utf8: Update.
26832 * modules/ucs4-utf16: Update.
26834 2007-03-24 Bruno Haible <bruno@clisp.org>
26836 * lib/utf8-ucs4.h: Remove file.
26837 * lib/utf8-ucs4-unsafe.h: Remove file.
26838 * lib/utf16-ucs4.h: Remove file.
26839 * lib/utf16-ucs4-unsafe.h: Remove file.
26840 * lib/ucs4-utf8.h: Remove file.
26841 * lib/ucs4-utf16.h: Remove file.
26842 * lib/unistr.h: Include their previous contents.
26843 * m4/utf-ucs4.m4: Remove file.
26844 * m4/ucs4-utf.m4: Remove file.
26845 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
26846 (Depends-on): Add unistr/base.
26847 (configure.ac): Remove gl_UTF_UCS4.
26848 (Makefile.am): Update.
26849 (Include): Change to unistr.h.
26850 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
26851 (Depends-on): Add unistr/base.
26852 (configure.ac): Remove gl_UTF_UCS4.
26853 (Makefile.am): Update.
26854 (Include): Change to unistr.h.
26855 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
26856 (Depends-on): Add unistr/base.
26857 (configure.ac): Remove gl_UTF_UCS4.
26858 (Makefile.am): Update.
26859 (Include): Change to unistr.h.
26860 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
26861 (Depends-on): Add unistr/base.
26862 (configure.ac): Remove gl_UTF_UCS4.
26863 (Makefile.am): Update.
26864 (Include): Change to unistr.h.
26865 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
26866 (Depends-on): Add unistr/base.
26867 (configure.ac): Remove gl_UCS4_UTF.
26868 (Makefile.am): Update.
26869 (Include): Change to unistr.h.
26870 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
26871 (Depends-on): Add unistr/base.
26872 (configure.ac): Remove gl_UCS4_UTF.
26873 (Makefile.am): Update.
26874 (Include): Change to unistr.h.
26875 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
26876 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
26877 utf8-ucs4-unsafe.h.
26878 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
26879 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
26880 utf16-ucs4-unsafe.h.
26881 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
26882 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
26883 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
26884 * lib/unistr/u8-strchr.c: Likewise.
26885 * lib/unistr/u8-strrchr.c: Likewise.
26886 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
26887 * lib/unistr/u16-strchr.c: Likewise.
26888 * lib/unistr/u16-strrchr.c: Likewise.
26889 * lib/striconveh.c: Update.
26890 * lib/linebreak.c: Update.
26892 2007-03-24 Bruno Haible <bruno@clisp.org>
26894 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
26895 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
26897 2007-03-22 Bruno Haible <bruno@clisp.org>
26899 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
26901 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
26903 * MODULES.html.sh (File system functions): New module write-any-file.
26904 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
26905 * m4/write-any-file.m4: New files.
26907 2007-03-23 Eric Blake <ebb9@byu.net>
26909 * gnulib-tool: Rearrange space-tab sequences, since some editors
26912 2007-03-23 Eric Blake <ebb9@byu.net>
26914 * lib/version-etc.c (version_etc_va): Update license wording to
26915 be more concise. Recommended by Richard Stallman.
26917 2007-03-22 Bruno Haible <bruno@clisp.org>
26919 * lib/poll.c (MSG_PEEK): New fallback definition.
26921 2007-03-22 Bruno Haible <bruno@clisp.org>
26923 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
26924 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
26926 Fixes a compilation error on BeOS.
26928 2007-03-22 Bruno Haible <bruno@clisp.org>
26930 * modules/frexpl-tests: New file.
26931 * tests/test-frexpl.c: New file.
26933 * modules/frexpl: New file.
26934 * m4/frexpl.m4: New file.
26935 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
26936 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
26937 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
26938 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
26939 (Depends-on): Add frexpl. Remove isnanl-nolibm.
26940 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
26942 2007-03-22 Bruno Haible <bruno@clisp.org>
26944 * lib/frexpl.c: Share code with lib/frexp.c.
26945 * modules/mathl (Files): Add lib/frexp.c.
26946 (Depends-on): Add isnanl-nolibm.
26948 2007-03-22 Bruno Haible <bruno@clisp.org>
26950 * modules/printf-frexp (Files): Add m4/frexp.m4.
26951 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
26952 only if the found frexp function actually works.
26954 2007-03-22 Bruno Haible <bruno@clisp.org>
26956 * lib/frexp.c: Remove older implementation that uses divisions.
26958 2007-03-21 Bruno Haible <bruno@clisp.org>
26960 * modules/frexp-tests: New file.
26961 * tests/test-frexp.c: New file.
26963 * modules/frexp: New file.
26964 * lib/frexp.c: New file.
26965 * m4/frexp.m4: New file.
26966 * lib/math_.h (frexp): New declaration.
26967 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
26969 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
26971 2007-03-21 Bruno Haible <bruno@clisp.org>
26973 * modules/isnanl-tests: New file.
26974 * tests/test-isnanl.c: New file.
26976 * modules/isnanl: New file.
26977 * lib/isnanl.h: New file.
26978 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
26979 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
26980 gl_FUNC_ISNANL_WORKS.
26981 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
26984 2007-03-21 Bruno Haible <bruno@clisp.org>
26986 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
26989 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
26990 * lib/vasnprintf.c: Update.
26991 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
26992 tests/test-isnanl.h, remove tests/test-isnanl.c.
26993 (Makefile.am): Update.
26994 * tests/test-isnanl-nolibm.c: New file.
26995 * tests/test-isnanl.h: New file.
26996 * tests/test-isnanl.c: Remove file.
26998 2007-03-21 Jim Meyering <jim@meyering.net>
27000 When trying to open ".", treat ESTALE like EACCES.
27001 * lib/savewd.c (savewd_save): Resort to forking not just upon
27002 failure with EACCES, but also when errno is ESTALE.
27004 2007-03-20 Bruno Haible <bruno@clisp.org>
27006 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
27007 Needed on AIX 5.1. Reported by Matthew Woehlke.
27009 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
27011 Suggestions by Bruno Haible:
27012 * lib/acl-internal.h: Include "gettext.h" rather than rolling
27014 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
27015 * modules/acl (Depends-on): Add gettext.
27017 2007-03-19 Bruno Haible <bruno@clisp.org>
27019 * modules/iconvme: Remove file.
27020 * lib/iconvme.h: Remove file.
27021 * lib/iconvme.c: Remove file.
27022 * m4/iconvme.m4: Remove file.
27024 2007-03-19 Bruno Haible <bruno@clisp.org>
27026 * doc/relocatable-maint.texi: Break long shell script line.
27027 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27029 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
27031 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
27032 handle file_has_acl.
27033 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
27034 * lib/acl.c: Move header inclusions and related macro defns into
27035 lib/acl-internal.h.
27036 (S_ISLNK): Remove defn, since that's now done for us.
27037 (file_has_acl): Move to lib/file-has-acl.c.
27038 Call acl_trivial if available. This is the crucial part of the fix.
27039 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
27040 shared within the library. Rewrite a bit, partly to make it compatible
27041 with the GNU coding style.
27042 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
27043 Remove unnecessary double-quotes.
27044 Don't test for acl_to_text; the build will catch that.
27045 Replace acl_entries if it doesn't exist and it is needed.
27046 Check for -lsec and acl_trivial (as used on Solaris 10).
27047 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
27048 lib/file-has-acl.c.
27049 (Depends-on): Add sys_stat, for S_ISLNK.
27051 2007-03-19 Ben Pfaff <blp@gnu.org>
27053 * doc/gnulib.texi: Fix typos.
27054 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27056 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
27058 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
27059 If size is zero here, buf must be zero.
27061 2007-03-19 Simon Josefsson <simon@josefsson.org>
27063 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
27066 2007-03-18 Bruno Haible <bruno@clisp.org>
27068 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
27069 Suggested by Eric Blake.
27071 2007-03-18 Ben Pfaff <blp@gnu.org>
27073 * doc/relocatable.texi: Recommend using as prefix a directory
27074 that does not exist and will never be created. Based on
27075 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
27078 2007-03-17 Bruno Haible <bruno@clisp.org>
27080 * lib/fchownat.c: Include lchown.h.
27082 2007-03-17 Bruno Haible <bruno@clisp.org>
27084 Fix endless loop when the given allocated size was > INT_MAX.
27085 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
27086 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
27087 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
27088 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
27089 * lib/sprintf.c (sprintf): Likewise.
27091 2007-03-17 Bruno Haible <bruno@clisp.org>
27093 * tests/test-argp-2.sh (func_compare): Output a context diff.
27095 2007-03-17 Bruno Haible <bruno@clisp.org>
27097 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
27098 locale's decimal-point character.
27100 2007-03-17 Bruno Haible <bruno@clisp.org>
27102 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
27103 before comparing it. Needed because on some platforms (e.g. x86) a
27104 'long double' occupies less bytes than sizeof (long double).
27106 2007-03-17 Bruno Haible <bruno@clisp.org>
27108 * tests/test-crc.c (main): Make printf statements 64-bit clean.
27109 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
27110 * tests/test-getaddrinfo.c (simple): Likewise.
27111 * tests/test-read-file.c (main): Likewise.
27113 2007-03-17 Bruno Haible <bruno@clisp.org>
27115 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
27117 2007-03-17 Bruno Haible <bruno@clisp.org>
27119 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
27122 2007-03-17 Bruno Haible <bruno@clisp.org>
27124 * tests/test-c-strcasecmp.c: Include c-strcase.h.
27125 * tests/test-c-strncasecmp.c: Likewise.
27127 2007-03-17 Bruno Haible <bruno@clisp.org>
27129 * modules/stdlib (Depends-on): Add unistd.
27130 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
27131 Needed for MacOS X 10.3.
27133 2007-03-17 Bruno Haible <bruno@clisp.org>
27135 * lib/unistr/u-strdup.h: Include <stdlib.h>.
27137 2007-03-17 Bruno Haible <bruno@clisp.org>
27139 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
27141 2007-03-17 Bruno Haible <bruno@clisp.org>
27143 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
27144 to reflect files copied from gnulib (with or without modifications).
27145 Suggested by Jim Meyering.
27147 2007-03-17 Eric Blake <ebb9@byu.net>
27149 * NEWS: Document stdlib change from 2007-02-18.
27151 2007-03-17 Jim Meyering <jim@meyering.net>
27153 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
27154 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
27155 someone uses a name containing shell meta-characters.
27156 Reported by Alfred M. Szmidt.
27158 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
27160 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
27162 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
27163 and copy gettext configuration files only if configure.ac contains
27164 a use of AM_GNU_GETTEXT_VERSION.
27166 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
27168 * build-aux/bootstrap (gnulib_name): New variable.
27169 (gnulib_tool_options): Use it.
27171 2007-03-13 Simon Josefsson <simon@josefsson.org>
27173 * tests/test-des.c: Use new namespace.
27175 2007-03-15 Bruno Haible <bruno@clisp.org>
27177 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
27178 Reported by James Youngman <jay@gnu.org>.
27180 2007-03-15 Bruno Haible <bruno@clisp.org>
27182 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
27183 declared prototype. Needed with cc on OSF/1 5.1.
27185 2007-03-15 Bruno Haible <bruno@clisp.org>
27187 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
27188 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
27189 (struct gl_list_implementation): Add dispose_fn argument to the
27190 'create_empty', 'create' methods.
27191 (struct gl_list_impl_base): Add field 'dispose_fn'.
27192 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
27194 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
27195 dispose_fn argument.
27196 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
27197 dispose_fn on the dropped values.
27198 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
27199 dispose_fn argument.
27200 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
27202 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
27203 (gl_tree_remove_node): Call dispose_fn on the dropped value.
27204 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
27205 (gl_tree_remove_node): Call dispose_fn on the dropped value.
27206 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
27208 (gl_tree_list_free): Call dispose_fn on the dropped values.
27209 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
27210 the dropped values.
27211 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27212 Add dispose_fn argument.
27213 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
27214 Call dispose_fn on the dropped values.
27215 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
27216 Add dispose_fn argument.
27217 (gl_sublist_create): Initialize the 'dispose_fn' field.
27218 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
27219 * tests/test-array_list.c (main): Update.
27220 * tests/test-carray_list.c (main): Update.
27221 * tests/test-avltree_list.c (main): Update.
27222 * tests/test-rbtree_list.c (main): Update.
27223 * tests/test-avltreehash_list.c (main): Update.
27224 * tests/test-rbtreehash_list.c (main): Update.
27225 * tests/test-linked_list.c (main): Update.
27226 * tests/test-linkedhash_list.c (main): Update.
27227 * tests/test-array_oset.c (main): Update.
27229 2007-03-15 Bruno Haible <bruno@clisp.org>
27231 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
27232 (gl_oset_create_empty): Add dispose_fn argument.
27233 (struct gl_oset_implementation): Add dispose_fn argument to
27234 'create_empty' method.
27235 (struct gl_oset_impl_base): Add dispose_fn field.
27236 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
27237 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
27238 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
27240 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
27241 (gl_tree_oset_free): Call dispose_fn on the dropped values.
27242 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27244 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27246 * tests/test-array_oset.c (main): Update.
27247 * tests/test-avltree_oset.c (main): Update.
27248 * tests/test-rbtree_oset.c (main): Update.
27249 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
27251 2007-03-13 Bruno Haible <bruno@clisp.org>
27253 * tests/test-stdbool.c (i): Update after last patch.
27255 2007-03-12 Bruno Haible <bruno@clisp.org>
27257 * lib/quotearg.c: Include <wctype.h> early, before the definition of
27258 the iswprint macro. Needed on Solaris 2.5.1.
27260 2007-03-12 Bruno Haible <bruno@clisp.org>
27262 * tests/test-printf-frexp.c (main): Declare x as volatile.
27264 2007-03-12 Simon Josefsson <simon@josefsson.org>
27266 * doc/gnulib.texi (Build robot for gnulib): New section.
27268 2007-03-12 Jim Meyering <jim@meyering.net>
27270 * build-aux/bootstrap: New file.
27271 * build-aux/bootstrap.conf: New file, from coreutils.
27273 2007-03-11 Bruno Haible <bruno@clisp.org>
27275 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
27277 2007-03-12 Simon Josefsson <simon@josefsson.org>
27279 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
27280 avoid collisions with 'des_setkey'. Reported by Bruno Haible
27281 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
27283 2007-03-11 Bruno Haible <bruno@clisp.org>
27285 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
27286 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
27288 2007-03-11 Bruno Haible <bruno@clisp.org>
27290 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
27291 formula. Needed for SunPRO C 5.0.
27293 2007-03-11 Bruno Haible <bruno@clisp.org>
27295 * modules/long-options (Depends-on): Add getopt.
27297 2007-03-11 Bruno Haible <bruno@clisp.org>
27299 * modules/modechange (Depends-on): Add stdbool.
27301 2007-03-11 Bruno Haible <bruno@clisp.org>
27303 * modules/i-ring (Depends-on): Add stdbool.
27305 2007-03-11 Bruno Haible <bruno@clisp.org>
27307 * modules/gc-des (Depends-on): Add stdbool.
27309 2007-03-11 Bruno Haible <bruno@clisp.org>
27311 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
27313 2007-03-11 Bruno Haible <bruno@clisp.org>
27315 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
27317 2007-03-11 Bruno Haible <bruno@clisp.org>
27319 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
27321 2007-03-11 Bruno Haible <bruno@clisp.org>
27323 * lib/vasnprintf.c (sprintf): Undefine.
27325 2007-03-11 Bruno Haible <bruno@clisp.org>
27327 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
27328 initializers in SunPRO C and Compaq C compilers.
27330 2007-03-11 Bruno Haible <bruno@clisp.org>
27332 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
27333 decrementing code ANSI C compliant.
27335 2007-03-11 Bruno Haible <bruno@clisp.org>
27337 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
27338 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
27340 2007-03-11 Bruno Haible <bruno@clisp.org>
27342 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
27343 <stdbool.h> substitute doesn't pass.
27345 2007-03-11 Bruno Haible <bruno@clisp.org>
27347 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
27349 2007-03-11 Bruno Haible <bruno@clisp.org>
27351 * gnulib-tool (func_create_megatestdir): Create also an autobuild
27352 script, for submission to autobuild.josefsson.org.
27354 2007-03-10 Bruno Haible <bruno@clisp.org>
27356 * modules/canonicalize-lgpl-tests: New file.
27357 * tests/test-canonicalize-lgpl.sh: New file.
27358 * tests/test-canonicalize-lgpl.c: New file.
27360 * modules/c-strcase-tests: New file.
27361 * tests/test-c-strcase.sh: New file.
27362 * tests/test-c-strcasecmp.c: New file.
27363 * tests/test-c-strncasecmp.c: New file.
27365 * modules/atexit-tests: New file.
27366 * tests/test-atexit.sh: New file.
27367 * tests/test-atexit.c: New file.
27369 2007-03-10 Bruno Haible <bruno@clisp.org>
27371 * tests/test-binary-io.sh: Use temporary filenames that are not so
27372 likely to clash with those of other tests (in a parallel make).
27373 * tests/test-binary-io.c: Likewise.
27375 2007-03-10 Bruno Haible <bruno@clisp.org>
27377 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
27378 fallback; use #error instead.
27379 Suggested by Simon Josefsson.
27381 2007-03-10 Bruno Haible <bruno@clisp.org>
27383 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
27384 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
27385 first and the last.
27387 2007-03-10 Bruno Haible <bruno@clisp.org>
27389 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
27391 2007-03-10 Bruno Haible <bruno@clisp.org>
27393 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
27395 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
27396 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
27397 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
27399 2007-03-10 Bruno Haible <bruno@clisp.org>
27401 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
27403 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
27406 2007-03-09 Eric Blake <ebb9@byu.net>
27407 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
27409 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
27410 types are not being provided by gnulib.
27411 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
27412 types are supported.
27414 2007-03-10 Bruno Haible <bruno@clisp.org>
27416 * lib/stdio_.h (__attribute__): New macro.
27417 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
27418 vsprintf): Specify __attribute__ __format__ for GCC.
27419 Suggested by Eric Blake.
27421 2007-03-09 Bruno Haible <bruno@clisp.org>
27423 * modules/printf-posix-tests: New file.
27424 * tests/test-printf-posix.sh: New file.
27425 * tests/test-printf-posix.c: New file.
27427 * modules/printf-posix: New file.
27428 * lib/printf.c: New file.
27429 * m4/printf-posix-rpl.m4: New file.
27430 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
27432 * lib/stdio_.h (printf): New declaration.
27433 (format, __format__, ____printf____, ____scanf____, ____strftime____,
27434 ____strfmon____): New macros.
27435 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
27438 2007-03-09 Bruno Haible <bruno@clisp.org>
27440 * tests/test-vasnprintf-posix2.sh: New file.
27441 * tests/test-vasnprintf-posix2.c: New file.
27442 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
27443 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27444 (Makefile.am): Activate test-vasnprintf-posix2.sh.
27446 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
27447 a locale dependent decimal point, rather than always '.'.
27449 2007-03-09 Eric Blake <ebb9@byu.net>
27451 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
27452 spite of platforms like Tandem/NSK that define it to -1.
27454 2007-03-08 Bruno Haible <bruno@clisp.org>
27456 * modules/vprintf-posix-tests: New file.
27457 * tests/test-vprintf-posix.sh: New file.
27458 * tests/test-vprintf-posix.c: New file.
27459 * tests/test-printf-posix.h: New file.
27461 * modules/vprintf-posix: New file.
27462 * lib/vprintf.c: New file.
27463 * m4/vprintf-posix.m4: New file.
27464 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
27466 * lib/stdio_.h (vprintf): New declaration.
27467 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
27470 2007-03-08 Bruno Haible <bruno@clisp.org>
27472 * modules/fprintf-posix-tests: New file.
27473 * tests/test-fprintf-posix.sh: New file.
27474 * tests/test-fprintf-posix.c: New file.
27476 * modules/fprintf-posix: New file.
27477 * lib/fprintf.c: New file.
27478 * m4/fprintf-posix.m4: New file.
27479 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
27481 * lib/stdio_.h (fprintf): New declaration.
27482 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
27485 2007-03-08 Bruno Haible <bruno@clisp.org>
27487 * modules/vfprintf-posix-tests: New file.
27488 * tests/test-vfprintf-posix.sh: New file.
27489 * tests/test-vfprintf-posix.c: New file.
27490 * tests/test-fprintf-posix.h: New file.
27491 * tests/test-fprintf-posix.out: New file.
27493 * modules/vfprintf-posix: New file.
27494 * lib/vfprintf.c: New file.
27495 * m4/vfprintf-posix.m4: New file.
27496 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
27498 * lib/stdio_.h (vfprintf): New declaration.
27499 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
27502 2007-03-08 Bruno Haible <bruno@clisp.org>
27504 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
27506 2007-03-08 Bruno Haible <bruno@clisp.org>
27508 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
27509 instead of 'expr' invocations.
27510 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27511 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27512 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27513 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27514 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27515 Suggested by Paul Eggert.
27517 2007-03-08 Bruno Haible <bruno@clisp.org>
27519 * modules/fseterr-tests: New file.
27520 * tests/test-fseterr.c: New file.
27522 * modules/fseterr: New file.
27523 * lib/fseterr.h: New file.
27524 * lib/fseterr.c: New file.
27526 2007-03-08 Bruno Haible <bruno@clisp.org>
27528 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
27529 * lib/getopt_.h: Likewise.
27530 * lib/mbswidth.h: Likewise.
27531 * lib/setenv.h: Likewise.
27532 * lib/vasnprintf.h: Likewise.
27533 * lib/vasprintf.h: Likewise.
27534 * lib/verror.h: Likewise.
27535 * lib/xsetenv.h: Likewise.
27536 * lib/xvasprintf.h: Likewise.
27538 2007-03-08 Jim Meyering <jim@meyering.net>
27540 * users.txt: Add parted.
27542 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
27544 2007-03-07 Bruno Haible <bruno@clisp.org>
27546 * m4/printf.m4: Make the shell script snippets copy&pastable.
27548 2007-03-02 Bruno Haible <bruno@clisp.org>
27550 * lib/netinet_in_.h: New file.
27551 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
27552 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
27553 * modules/netinet_in (Files): Add lib/netinet_in_.h.
27554 (Depends-on): Add absolute-header.
27555 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
27558 2007-03-03 Bruno Haible <bruno@clisp.org>
27560 * lib/sys_select_.h: New file.
27561 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
27562 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
27563 * modules/sys_select (Files): Add lib/sys_select_.h.
27564 (Depends-on): Add absolute-header.
27565 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
27568 2007-03-02 Bruno Haible <bruno@clisp.org>
27570 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
27571 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
27573 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
27574 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
27575 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
27576 * modules/sys_socket (Depends-on): Add absolute-header.
27577 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
27578 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
27579 (Include): Remove requirement of inclusion of <sys/types.h>.
27581 2007-03-02 Bruno Haible <bruno@clisp.org>
27583 * lib/byteswap_.h (bswap_32): Fix formula.
27585 2007-03-06 Bruno Haible <bruno@clisp.org>
27587 * modules/sprintf-posix-tests: New file.
27588 * tests/test-sprintf-posix.c: New file.
27590 * modules/sprintf-posix: New file.
27591 * lib/sprintf.c: New file.
27592 * m4/sprintf-posix.m4: New file.
27593 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
27595 * lib/stdio_.h (sprintf): New declaration.
27596 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
27599 2007-03-06 Bruno Haible <bruno@clisp.org>
27601 * modules/vsprintf-posix-tests: New file.
27602 * tests/test-vsprintf-posix.c: New file.
27603 * tests/test-sprintf-posix.h: New file.
27605 * modules/vsprintf-posix: New file.
27606 * lib/vsprintf.c: New file.
27607 * m4/vsprintf-posix.m4: New file.
27608 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
27610 * lib/stdio_.h (vsprintf): New declaration.
27611 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
27614 2007-03-06 Bruno Haible <bruno@clisp.org>
27616 * modules/vsnprintf (Depend-on): Remove minmax.
27618 2007-03-06 Bruno Haible <bruno@clisp.org>
27620 * modules/snprintf-posix-tests: New file.
27621 * tests/test-snprintf-posix.c: New file.
27623 * modules/snprintf-posix: New file.
27624 * m4/snprintf-posix.m4: New file.
27625 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
27627 (gl_FUNC_SNPRINTF): Invoke it.
27628 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
27629 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
27631 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
27633 2007-03-06 Bruno Haible <bruno@clisp.org>
27635 * modules/vsnprintf-posix-tests: New file.
27636 * tests/test-vsnprintf-posix.c: New file.
27637 * tests/test-snprintf-posix.h: New file.
27639 * modules/vsnprintf-posix: New file.
27640 * m4/vsnprintf-posix.m4: New file.
27641 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
27643 (gl_FUNC_VSNPRINTF): Invoke it.
27644 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
27645 * lib/stdio_.h (vsnprintf): Define as a replacement if
27646 REPLACE_VSNPRINTF is set.
27647 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
27649 2007-03-06 Bruno Haible <bruno@clisp.org>
27651 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
27652 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
27654 2007-03-06 Bruno Haible <bruno@clisp.org>
27656 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
27657 (asinl): Declare also if HAVE_DECL_ASINL is set.
27658 (atanl): Declare also if HAVE_DECL_ATANL is set.
27659 (ceill): Declare also if HAVE_DECL_CEILL is set.
27660 (cosl): Declare also if HAVE_DECL_COSL is set.
27661 (expl): Declare also if HAVE_DECL_EXPL is set.
27662 (floorl): Declare also if HAVE_DECL_FLOORL is set.
27663 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
27664 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
27665 (logl): Declare also if HAVE_DECL_LOGL is set.
27666 (sinl): Declare also if HAVE_DECL_SINL is set.
27667 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
27668 (tanl): Declare also if HAVE_DECL_TANL is set.
27669 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
27670 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
27671 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
27672 declaration of frexpl, ldexpl.
27673 * modules/printf-frexpl (Depends-on): Add math.
27674 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
27676 2007-03-05 Bruno Haible <bruno@clisp.org>
27678 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
27679 frexpl and ldexpl are declared.
27680 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
27682 2007-03-05 Bruno Haible <bruno@clisp.org>
27684 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
27685 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
27687 2007-03-05 Bruno Haible <bruno@clisp.org>
27689 * lib/stdio_.h: Include <stddef.h>.
27691 2007-03-05 Bruno Haible <bruno@clisp.org>
27693 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
27695 2007-03-05 Bruno Haible <bruno@clisp.org>
27697 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
27698 NetBSD 4, from Ralf Wildenhues.
27700 2007-03-04 Bruno Haible <bruno@clisp.org>
27702 * lib/vasprintf.h: Update #if logic for the case when the functions
27703 exist but are overridden.
27705 2007-03-04 Bruno Haible <bruno@clisp.org>
27707 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
27708 implementations: glibc-2.4 and MacOS X 10.3.
27709 * tests/test-vasnprintf-posix.c (test_function): Test also the case
27710 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
27711 * tests/test-vasprintf-posix.c (test_function): Likewise.
27713 2007-03-04 Bruno Haible <bruno@clisp.org>
27715 * modules/vasprintf-posix-tests: New file.
27716 * tests/test-vasprintf-posix.c: New file.
27718 * modules/vasprintf-posix: New file.
27719 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
27721 * m4/vasprintf-posix.m4: New file.
27722 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
27724 (gl_FUNC_VASPRINTF): Invoke it.
27725 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
27727 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
27729 2007-03-04 Bruno Haible <bruno@clisp.org>
27731 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
27732 REPLACE_GETTIMEOFDAY.
27733 * modules/sys_time (Makefile.am): Likewise.
27734 * m4/sys_time_h.m4: Likewise.
27735 * m4/gettimeofday.m4: Likewise.
27737 2007-03-04 Bruno Haible <bruno@clisp.org>
27739 * modules/vasnprintf-posix-tests: New file.
27740 * tests/test-vasnprintf-posix.c: New file.
27742 * modules/vasnprintf-posix: New file.
27743 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
27745 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
27746 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
27747 REPLACE_VASNPRINTF is defined.
27748 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
27749 gl_FUNC_VASNPRINTF.
27750 (gl_FUNC_VASNPRINTF): Invoke it.
27751 * m4/vasnprintf-posix.m4: New file.
27752 * m4/printf.m4: New file.
27754 2007-03-04 Bruno Haible <bruno@clisp.org>
27756 Compile progreloc.c only if --enable-relocatable is specified.
27757 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
27758 if --enable-relocatable was specified.
27759 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
27762 2007-03-04 Jim Meyering <jim@meyering.net>
27764 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
27765 Use it consistently, rather than enumerating errno constants.
27767 2007-03-04 Bruno Haible <bruno@clisp.org>
27769 * modules/xvasprintf-tests: New file.
27770 * tests/test-xvasprintf.c: New file.
27772 * modules/vasprintf-tests: New file.
27773 * tests/test-vasprintf.c: New file.
27775 * modules/vasnprintf-tests: New file.
27776 * tests/test-vasnprintf.c: New file.
27778 * modules/vsnprintf-tests: New file.
27779 * tests/test-vsnprintf.c: New file.
27781 * modules/snprintf-tests: New file.
27782 * tests/test-snprintf.c: New file.
27784 2007-03-04 Bruno Haible <bruno@clisp.org>
27786 Compile relocatable.c only if --enable-relocatable is specified.
27787 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
27788 gl_RELOCATABLE_LIBRARY.
27789 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
27790 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
27791 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
27792 gl_RELOCATABLE_LIBRARY.
27793 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
27794 (Makefile.am): Remove lib_SOURCES.
27795 * modules/relocatable-lib-lgpl (configure.ac): Invoke
27796 gl_RELOCATABLE_LIBRARY.
27797 (Makefile.am): Remove lib_SOURCES.
27798 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
27800 * modules/relocatable-prog-wrapper (configure.ac): Invoke
27801 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
27803 2007-03-04 Bruno Haible <bruno@clisp.org>
27805 * modules/argmatch-tests: New file.
27806 * tests/test-argmatch.c: New file.
27808 * tests/test-allocsa.c (main): Halve the number of loop runs.
27810 * modules/alloca-opt-tests: New file.
27811 * tests/test-alloca-opt.c: New file.
27813 2007-03-04 Jim Meyering <jim@meyering.net>
27815 Work around difference between Linux ACLs and Solaris 10 ZFS.
27816 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
27819 2007-03-03 Bruno Haible <bruno@clisp.org>
27821 * modules/relocatable-prog (Depends-on): Add back progreloc's
27822 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
27824 2007-03-03 Bruno Haible <bruno@clisp.org>
27826 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
27827 * modules/relocatable-lib: New file.
27829 2007-03-03 Bruno Haible <bruno@clisp.org>
27831 * modules/relocatable-prog: Renamed from modules/relocatable.
27832 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
27834 2007-03-03 Bruno Haible <bruno@clisp.org>
27836 * modules/relocatable-script (Files): Add doc/relocatable.texi,
27837 m4/relocatable-lib.m4.
27838 (Depends-on): Remove 'relocatable'.
27839 (configure.ac): Add gl_RELOCATABLE_NOP.
27841 2007-03-03 Bruno Haible <bruno@clisp.org>
27843 * modules/relocatable-prog-wrapper: New file.
27844 * modules/relocatable (Depends-on): Add it. Remove all other
27845 dependencies except progname.
27846 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
27848 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
27849 (gl_FUNC_STRERROR): Nop.
27850 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
27852 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
27853 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
27855 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
27856 (gl_FUNC_READLINK): Update.
27858 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
27860 2007-03-03 Bruno Haible <bruno@clisp.org>
27862 * lib/xreadlink.c: Include <unistd.h> unconditionally.
27863 * modules/xreadlink (Depends-on): Add unistd.
27864 * modules/xreadlink-with-size (Depends-on): Likewise.
27866 2007-03-03 Bruno Haible <bruno@clisp.org>
27868 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
27869 extracted from gt_FUNC_SETENV.
27870 (gt_FUNC_SETENV): Remove macro.
27871 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
27872 remove gt_FUNC_SETENV.
27874 2007-03-03 Bruno Haible <bruno@clisp.org>
27876 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
27877 ENABLE_RELOCATABLE here.
27878 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
27880 2007-03-03 Bruno Haible <bruno@clisp.org>
27882 * modules/rbtreehash-list-tests (Depends-on): Add progname.
27883 * tests/test-rbtreehash_list.c: Include progname.h.
27884 (main): Call set_program_name.
27886 * modules/rbtree-oset-tests (Depends-on): Add progname.
27887 * tests/test-rbtree_oset.c: Include progname.h.
27888 (main): Call set_program_name.
27890 * modules/rbtree-list-tests (Depends-on): Add progname.
27891 * tests/test-rbtree_list.c: Include progname.h.
27892 (main): Call set_program_name.
27894 * modules/linked-list-tests (Depends-on): Add progname.
27895 * tests/test-linked_list.c: Include progname.h.
27896 (main): Call set_program_name.
27898 2007-03-03 Bruno Haible <bruno@clisp.org>
27900 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
27901 All uses of __restrict changed to _Restrict_.
27902 * lib/glob_.h (__restrict): Remove macro.
27904 2007-03-02 Bruno Haible <bruno@clisp.org>
27906 * modules/gettext (configure.ac): Require gettext infrastructure
27907 from version 0.16.1.
27909 2007-03-02 Bruno Haible <bruno@clisp.org>
27911 * modules/linkedhash-list-tests (Depends-on): Add progname.
27912 * tests/test-linkedhash_list.c: Include progname.h.
27913 (main): Call set_program_name.
27915 * modules/carray-list-tests (Depends-on): Add progname.
27916 * tests/test-carray_list.c: Include progname.h.
27917 (main): Call set_program_name.
27919 * modules/avltreehash-list-tests (Depends-on): Add progname.
27920 * tests/test-avltreehash_list.c: Include progname.h.
27921 (main): Call set_program_name.
27923 * modules/avltree-oset-tests (Depends-on): Add progname.
27924 * tests/test-avltree_oset.c: Include progname.h.
27925 (main): Call set_program_name.
27927 * modules/avltree-list-tests (Depends-on): Add progname.
27928 * tests/test-avltree_list.c: Include progname.h.
27929 (main): Call set_program_name.
27931 * modules/array-oset-tests (Depends-on): Add progname.
27932 * tests/test-array_oset.c: Include progname.h.
27933 (main): Call set_program_name.
27935 * modules/array-list-tests (Depends-on): Add progname.
27936 * tests/test-array_list.c: Include progname.h.
27937 (main): Call set_program_name.
27939 * modules/argp-tests (Depends-on): Add progname.
27940 * tests/test-argp.c: Include argp.h first. Include progname.h.
27941 (main): Call set_program_name.
27943 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
27945 * doc/gnulib-tool.texi (Initial import): Reword description of
27946 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
27947 limited effect even if defined after the first system include.
27949 2007-03-01 Bruno Haible <bruno@clisp.org>
27951 * build-aux/config.libpath: Update to libtool-1.5.22.
27952 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27954 2007-03-01 Bruno Haible <bruno@clisp.org>
27956 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
27958 Reported by Ralf Wildenhues.
27960 2007-03-01 Bruno Haible <bruno@clisp.org>
27962 * build-aux/install-reloc: Remove object files left over by some
27964 Reported by Ralf Wildenhues.
27966 2007-03-01 Bruno Haible <bruno@clisp.org>
27968 * build-aux/install-reloc: Break long lines.
27970 2007-03-01 Bruno Haible <bruno@clisp.org>
27972 * doc/relocatable.texi: Document that it may not work on OpenBSD.
27973 Reported by Ralf Wildenhues.
27975 2007-03-01 Bruno Haible <bruno@clisp.org>
27977 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
27978 include ordering constraints.
27980 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
27982 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
27983 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
27984 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
27985 as another example.
27986 * lib/time_.h: Fix misspelling.
27987 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
27988 Require gl_HEADER_TIME_H_DEFAULTS.
27989 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
27990 * m4/time_r.m4 (gl_TIME_R): Likewise.
27991 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
27993 2007-03-01 Bruno Haible <bruno@clisp.org>
27995 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
27996 * m4/utimens.m4 (gl_UTIMENS): Likewise.
27998 2007-03-01 Jim Meyering <jim@meyering.net>
28000 * modules/xreadlink (Maintainer): Add my name.
28001 * modules/xreadlink-with-size (Depends-on): Alphabetize.
28003 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
28004 Bruno Haible <bruno@clisp.org>
28006 * build-aux/install-reloc: Compile also c-ctype.c.
28007 * build-aux/relocatable.sh.in: New file.
28008 * doc/relocatable.texi: New file.
28009 * doc/relocatable-maint.texi: New file.
28010 * doc/gnulib.texi: Include relocatable-maint.texi.
28011 * lib/progreloc.c: Include unistd.h unconditionally.
28012 * lib/relocwrapper.c: Include unistd.h unconditionally.
28014 (add_dotbin): Use c_tolower.
28015 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
28016 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
28017 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
28018 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
28019 to m4/relocatable-lib.m4.
28020 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
28021 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
28022 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
28023 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
28024 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
28025 * modules/relocatable: New file.
28026 * modules/relocatable-lib: New file.
28027 * modules/relocatable-script: New file.
28029 2007-02-28 Bruno Haible <bruno@clisp.org>
28031 Import --enable-relocatable infrastructure.
28032 * build-aux/config.libpath: New file, from GNU gettext.
28033 * build-aux/install-reloc: New file, from GNU gettext.
28034 * build-aux/reloc-ldflags: New file, from GNU gettext.
28035 * lib/relocatable.h: New file, from GNU gettext.
28036 * lib/relocatable.c: New file, from GNU gettext.
28037 * lib/relocwrapper.c: New file, from GNU gettext.
28038 * m4/relocatable.m4: New file, from GNU gettext.
28040 2007-02-28 Bruno Haible <bruno@clisp.org>
28042 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
28044 * modules/xreadlink: New file, from GNU gettext with modifications.
28045 * lib/xreadlink.c: New file, from GNU gettext.
28046 * lib/xreadlink.h: Add comments.
28047 (xreadlink): New declaration.
28049 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
28050 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
28051 lib/xreadlink-with-size.c.
28052 (configure.ac): Remove gl_XREADLINK invocation.
28053 (Makefile.am): Augment lib_SOURCES.
28054 * m4/xreadlink.m4: Remove file.
28055 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
28056 (xreadlink_with_size): Renamed from xreadink.
28057 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
28058 * modules/canonicalize (Depends-on): Replace xreadlink with
28059 xreadlink-with-size.
28060 * lib/canonicalize.c (canonicalize_filename_mode): Update.
28062 2007-02-25 Jim Meyering <jim@meyering.net>
28064 * build-aux/announce-gen: When complaining about excess arguments,
28067 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
28069 * README: Document signed integer overflow situation more
28072 2007-02-25 Bruno Haible <bruno@clisp.org>
28074 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
28075 'a' or 'A' conversion.
28077 2007-02-25 Bruno Haible <bruno@clisp.org>
28079 * modules/filename: Renamed from modules/pathname.
28080 (Files): Replace lib/pathname.h with lib/filename.h. Replace
28081 lib/concatpath.c with lib/concat-filename.c.
28082 (Makefile.am): Update.
28083 (Include): Replace pathname.h with filename.h.
28084 * lib/filename.h: Renamed from lib/pathname.h.
28085 (concatenated_filename): Renamed from concatenated_pathname.
28086 * lib/concat-filename.c: Renamed from lib/concatpath.c.
28087 (concatenated_filename): Renamed from concatenated_pathname.
28088 * lib/findprog.c: Include filename.h instead of pathname.h.
28089 (find_in_path): Update.
28090 * lib/javacomp.c: Include filename.h instead of pathname.h.
28091 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28092 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28093 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28094 is_oldgcj_14_13_usable, is_javac_usable): Update.
28095 * lib/javaexec.c: Include filename.h instead of pathname.h.
28096 (execute_java_class): Update.
28097 * modules/findprog: Update.
28098 * modules/javacomp: Update.
28099 * modules/javaexec: Update.
28100 * MODULES.html.sh (File system functions): Add 'filename', remove
28103 2007-02-25 Bruno Haible <bruno@clisp.org>
28105 * modules/printf-frexpl-tests: New file.
28106 * tests/test-printf-frexpl.c: New file.
28108 * modules/printf-frexpl: New file.
28109 * lib/printf-frexpl.h: New file.
28110 * lib/printf-frexpl.c: New file.
28111 * m4/printf-frexpl.m4: New file.
28113 2007-02-25 Bruno Haible <bruno@clisp.org>
28115 * modules/printf-frexp-tests: New file.
28116 * tests/test-printf-frexp.c: New file.
28118 * modules/printf-frexp: New file.
28119 * lib/printf-frexp.h: New file.
28120 * lib/printf-frexp.c: New file.
28121 * m4/printf-frexp.m4: New file.
28123 2007-02-25 Bruno Haible <bruno@clisp.org>
28125 Assume automake >= 1.10 for the tests.
28126 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
28127 * modules/arctwo-tests: Likewise.
28128 * modules/argp-tests: Likewise.
28129 * modules/avltree-list-tests: Likewise.
28130 * modules/avltree-oset-tests: Likewise.
28131 * modules/avltreehash-list-tests: Likewise.
28132 * modules/carray-list-tests: Likewise.
28133 * modules/crc-tests: Likewise.
28134 * modules/des-tests: Likewise.
28135 * modules/gc-arcfour-tests: Likewise.
28136 * modules/gc-arctwo-tests: Likewise.
28137 * modules/gc-des-tests: Likewise.
28138 * modules/gc-hmac-md5-tests: Likewise.
28139 * modules/gc-hmac-sha1-tests: Likewise.
28140 * modules/gc-md2-tests: Likewise.
28141 * modules/gc-md4-tests: Likewise.
28142 * modules/gc-md5-tests: Likewise.
28143 * modules/gc-pbkdf2-sha1-tests: Likewise.
28144 * modules/gc-rijndael-tests: Likewise.
28145 * modules/gc-sha1-tests: Likewise.
28146 * modules/gc-tests: Likewise.
28147 * modules/getaddrinfo-tests: Likewise.
28148 * modules/hmac-md5-tests: Likewise.
28149 * modules/hmac-sha1-tests: Likewise.
28150 * modules/linked-list-tests: Likewise.
28151 * modules/linkedhash-list-tests: Likewise.
28152 * modules/lock-tests: Likewise.
28153 * modules/md2-tests: Likewise.
28154 * modules/md4-tests: Likewise.
28155 * modules/md5-tests: Likewise.
28156 * modules/rbtree-list-tests: Likewise.
28157 * modules/rbtree-oset-tests: Likewise.
28158 * modules/rbtreehash-list-tests: Likewise.
28159 * modules/read-file-tests: Likewise.
28160 * modules/rijndael-tests: Likewise.
28161 * modules/stdint-tests: Likewise.
28162 * modules/tls-tests: Likewise.
28164 2007-02-24 Bruno Haible <bruno@clisp.org>
28166 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
28167 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
28168 function; instead check whether isnan with a double argument links.
28169 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
28170 function; instead check whether isnan with a 'long double' argument
28172 Reported by Eric Blake <ebb9@byu.net>.
28174 2007-02-24 Bruno Haible <bruno@clisp.org>
28176 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
28178 * lib/isnanl.c: Remove all code. Just include isnan.c.
28179 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
28181 2007-02-25 Jim Meyering <jim@meyering.net>
28183 Avoid conflicting types for 'unsetenv' on FreeBSD.
28184 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
28185 conflicting with FreeBSD's (5.0 and 6.1) function declaration
28188 2007-02-24 Bruno Haible <bruno@clisp.org>
28190 * modules/isnanl-nolibm-tests: New file.
28191 * tests/test-isnanl.c: New file.
28193 * modules/isnanl-nolibm: New file.
28194 * lib/isnanl.h: New file.
28195 * lib/isnanl.c: New file.
28196 * m4/isnanl.m4: New file.
28198 2007-02-24 Bruno Haible <bruno@clisp.org>
28200 * modules/isnan-nolibm-tests: New file.
28201 * tests/test-isnan.c: New file.
28203 * modules/isnan-nolibm: New file.
28204 * lib/isnan.h: New file.
28205 * lib/isnan.c: New file.
28206 * m4/isnan.m4: New file.
28208 2007-02-24 Bruno Haible <bruno@clisp.org>
28210 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
28211 assume that an exponent fits in 20 bits.
28213 2007-02-24 Jim Meyering <jim@meyering.net>
28215 * m4/regex.m4: Update the description of the configure-time option,
28216 --without-included-regex, to state accurately what the defaults are,
28217 and perhaps to give people an idea why using this option is risky.
28219 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
28221 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
28222 loops on small arguments. This attempts to avoid the problem
28223 Bruno Haible reported for AIX 4.3.2 in
28224 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
28226 2007-02-23 Bruno Haible <bruno@clisp.org>
28228 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
28229 Needed for help2man.
28231 2007-02-23 Karl Berry <karl@gnu.org>
28233 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
28234 exists, foo.h should be cvs-ignored, not committed.
28236 2007-02-23 Eric Blake <ebb9@byu.net>
28238 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
28239 * lib/stat-time.h (includes): Likewise.
28240 * lib/utimecmp.c (includes): Likewise.
28241 * lib/utimens.h (includes): Likewise.
28242 * lib/getdate.y (includes): Also include "timespec.h" for use
28243 internal to the module.
28244 * modules/utimens (Depends-on): Revert yesterday's patch.
28245 * modules/nanosleep (Depends-on): Add missing dependency.
28247 2007-02-22 Bruno Haible <bruno@clisp.org>
28249 * lib/glob.c: Don't include getlogin_r.h.
28251 2007-02-22 Jim Meyering <jim@meyering.net>
28253 * modules/utimens (Depends-on): Add timespec, required for
28254 utimens.h's inclusion of timespec.h.
28256 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
28258 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
28259 long unreadable paths in GNU/Linux. Problem reported by Andreas
28261 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
28262 I'll try to think of a better way to fix the Solaris problem.
28264 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
28265 like glibc; on Solaris 10, it fails with errno == EINVAL.
28266 POSIX says the behavior is unspecified if the first argument is NULL,
28267 so play it safe and never pass NULL to the system getcwd.
28269 2007-02-21 Jim Meyering <jim@meyering.net>
28271 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
28272 of gettimeofday. It would conflict with the one now always
28273 provided via sys_time_.h. Reported by Matthew Woehlke, as
28274 an IRIX 6.5 build failure.
28276 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
28278 Minor fixups to port to Solaris 10 with Sun C 5.8.
28279 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
28280 * modules/getcwd (Depends-on): Add dirfd.
28281 * lib/putenv.c (putenv): #undef it.
28282 (rpl_putenv): New decl.
28283 (malloc, free): Include <stdlib.h> rather than prototyping separately.
28285 2007-02-20 Bruno Haible <bruno@clisp.org>
28287 * modules/stdio-tests: New file.
28288 * tests/test-stdio.c: New file.
28290 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
28291 (Depends-on): Add stdio.
28292 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28293 (Include): Use <stdio.h> instead of vsnprintf.h.
28294 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28295 HAVE_DECL_VSNPRINTF.
28296 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
28298 * modules/snprintf (Files): Remove lib/snprintf.h.
28299 (Depends-on): Add stdio.
28300 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28301 (Include): Use <stdio.h> instead of snprintf.h.
28302 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28303 HAVE_DECL_SNPRINTF.
28304 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
28305 * lib/getaddrinfo.c: Likewise.
28307 * modules/stdio: New file.
28308 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
28309 * lib/snprintf.h: Remove file.
28310 * lib/vsnprintf.h: Remove file.
28311 * lib/.cppi-disable: Remove snprintf.h.
28312 * m4/stdio_h.m4: New file.
28313 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
28315 2007-02-20 Jim Meyering <jim@meyering.net>
28317 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
28318 used by e.g., mingw. From Bruno Haible.
28320 2007-02-19 Bruno Haible <bruno@clisp.org>
28322 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
28324 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28326 2007-02-19 Bruno Haible <bruno@clisp.org>
28328 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
28331 2007-02-19 Bruno Haible <bruno@clisp.org>
28333 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
28335 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
28337 2007-02-19 Jim Meyering <jim@meyering.net>
28339 Don't use FD after a successful "fdopendir (fd)".
28340 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
28341 Reset it by calling dirfd on the just-obtained DIR*.
28343 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
28344 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
28346 2007-02-18 Bruno Haible <bruno@clisp.org>
28348 * lib/readlink.c: Include <unistd.h>.
28349 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
28351 * modules/readlink (Depends-on): Add unistd.
28352 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28353 (Include): Add <unistd.h>.
28355 * lib/getlogin_r.h: Remove file.
28356 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
28357 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
28358 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
28359 HAVE_DECL_GETLOGIN_R.
28360 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
28361 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28362 (Include): Use <unistd.h> instead of getlogin_r.h.
28364 * lib/getcwd.h: Remove file.
28365 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
28366 * lib/xgetcwd.c: Likewise.
28367 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
28368 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
28369 * modules/getcwd (Files): Remove lib/getcwd.h.
28370 (Depends-on): Add unistd.
28371 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28372 (Include): Use <unistd.h> instad of getcwd.h.
28374 * lib/ftruncate.c: Include <unistd.h> first.
28375 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
28376 Set HAVE_FTRUNCATE.
28377 * modules/ftruncate (Depends-on): Add unistd.
28378 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28380 * lib/fchdir.c: Include <unistd.h> first.
28381 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
28382 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
28383 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
28384 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28385 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
28387 * lib/dup2.c: Include <unistd.h> first.
28388 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
28390 * modules/dup2 (Depends-on): Add unistd.
28391 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28393 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
28394 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
28395 REPLACE_CHOWN. Don't define chown as a macro here.
28396 * modules/chown (Depends-on): Add unistd.
28397 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28399 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
28400 Add definition for GL_LINK_WARNING.
28401 (chown, dup2): New declarations.
28402 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
28404 (ftruncate): New declaration.
28405 (getcwd): New declaration, taken from old getcwd.h.
28406 (getlogin_r): New declaration, taken from old getlogin_r.h.
28407 (readlink): New declaration.
28408 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
28409 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
28410 (gl_PREREQ_UNISTD): Remove macro.
28411 (gl_UNISTD_MODULE_INDICATOR): New macro.
28412 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
28413 many new variables. Don't set UNISTD_H.
28414 * modules/unistd (Description): Change.
28415 (Depends-on): Add link-warning.
28416 (configure.ac): Update.
28417 (Makefile.am): Create unistd.h always. Substitute many new variables
28420 2007-02-18 Bruno Haible <bruno@clisp.org>
28422 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
28423 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
28425 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
28426 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
28427 * lib/getsubopt.h: Remove file.
28428 * modules/getsubopt (Files): Remove lib/getsubopt.h.
28429 (Depends-on): Add stdlib.
28430 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28431 (Includes): Use <stdlib.h> instead of getsubopt.h.
28432 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
28433 Set HAVE_GETSUBOPT.
28434 * lib/getsubopt.c: Don't include getsubopt.h.
28436 2007-02-18 Bruno Haible <bruno@clisp.org>
28438 * modules/fchdir (Depends-on): Add dup2.
28440 2007-02-18 Bruno Haible <bruno@clisp.org>
28442 * lib/stdlib_.h: Handle glibc's special invocation convention
28445 2007-02-18 Bruno Haible <bruno@clisp.org>
28447 * modules/stdlib-tests: New file.
28448 * tests/test-stdlib.c: New file.
28450 * modules/mkstemp (Files): Remove lib/mkstemp.h.
28451 (Depends-on): Add stdlib.
28452 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28453 (Includes): Use <stdlib.h> instead of mkstemp.h.
28454 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28455 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
28456 * lib/mkstemp.c: Don't include mkstemp.h.
28457 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
28458 * lib/stdlib--.h: Don't include mkstemp.h.
28460 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
28461 (Depends-on): Add stdlib.
28462 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28463 (Includes): Use <stdlib.h> instead of mkdtemp.h.
28464 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28466 * lib/mkdtemp.c: Don't include mkdtemp.h.
28467 * lib/clean-temp.c: Don't include mkdtemp.h.
28469 * modules/exit (Files): Remove lib/exit.h.
28470 (Depends-on): Add stdlib.
28471 (Makefile.am): Remove lib_SOURCES.
28472 (Include): Use <stdlib.h> instead of exit.h.
28473 * lib/argmatch.c: Don't include exit.h.
28474 * lib/execute.c: Likewise.
28475 * lib/pagealign_alloc.c: Likewise.
28476 * lib/pipe.c: Likewise.
28477 * lib/wait-process.c: Likewise.
28478 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
28479 * lib/exitfail.c: Likewise.
28480 * lib/savewd.c: Likewise.
28481 * lib/xsetenv.c: Likewise.
28483 * modules/stdlib: New file.
28484 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
28485 and extra comments about mkstemp().
28486 * lib/exit.h: Remove file.
28487 * lib/mkdtemp.h: Remove file.
28488 * lib/mkstemp.h: Remove file.
28489 * m4/stdlib_h.m4: New file.
28490 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
28492 2007-02-18 Bruno Haible <bruno@clisp.org>
28494 * modules/math-tests: New file.
28495 * tests/test-math.c: New file.
28497 * modules/math: New file.
28498 * modules/mathl (Files): Remove lib/mathl.h.
28499 (Depends-on): Add math.
28500 (Makefile.am): Don't mention mathl.h.
28501 (Include): Use <math.h> instead of mathl.h.
28502 * lib/math_.h: New file.
28503 * lib/mathl.h: Remove file.
28504 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
28506 * lib/asinl.c: Likewise.
28507 * lib/atanl.c: Likewise.
28508 * lib/ceill.c: Likewise.
28509 * lib/cosl.c: Likewise.
28510 * lib/expl.c: Likewise.
28511 * lib/floorl.c: Likewise.
28512 * lib/frexpl.c: Likewise.
28513 * lib/ldexpl.c: Likewise.
28514 * lib/logl.c: Likewise.
28515 * lib/sincosl.c: Likewise.
28516 * lib/sinl.c: Likewise.
28517 * lib/sqrtl.c: Likewise.
28518 * lib/tanl.c: Likewise.
28519 * lib/trigl.c: Likewise.
28520 * m4/math_h.m4: New file.
28521 * MODULES.html.sh (Mathematics): Add math.
28523 2007-02-17 Bruno Haible <bruno@clisp.org>
28525 * modules/wctype-tests: New file.
28526 * tests/test-wctype.c: New file.
28528 * modules/wchar-tests: New file.
28529 * tests/test-wchar.c: New file.
28531 * modules/unistd-tests: New file.
28532 * tests/test-unistd.c: New file.
28534 * modules/time-tests: New file.
28535 * tests/test-time.c: New file.
28537 * modules/sysexits-tests: New file.
28538 * tests/test-sysexits.c: New file.
28540 * modules/sys_time-tests: New file.
28541 * tests/test-sys_time.c: New file.
28543 * modules/sys_stat-tests: New file.
28544 * tests/test-sys_stat.c: New file.
28546 * modules/sys_socket-tests: New file.
28547 * tests/test-sys_socket.c: New file.
28549 * modules/sys_select-tests: New file.
28550 * tests/test-sys_select.c: New file.
28552 * modules/string-tests: New file.
28553 * tests/test-string.c: New file.
28555 * modules/stdbool-tests: New file.
28556 * tests/test-stdbool.c: New file.
28558 * modules/netinet_in-tests: New file.
28559 * tests/test-netinet_in.c: New file.
28561 * modules/inttypes-tests: New file.
28562 * tests/test-inttypes.c: New file.
28564 * modules/fcntl-tests: New file.
28565 * tests/test-fcntl.c: New file.
28567 * modules/byteswap-tests: New file.
28568 * tests/test-byteswap.c: New file.
28570 * modules/arpa_inet-tests: New file.
28571 * tests/test-arpa_inet.c: New file.
28573 2007-02-17 Bruno Haible <bruno@clisp.org>
28575 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
28576 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
28577 if the corresponding module is not enabled. Emit link warnings if
28578 the function is used nevertheless.
28579 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
28580 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
28581 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
28582 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
28583 * modules/inttypes (Depends-on): Add link-warning.
28584 (Makefile.am): Copy the contents of build-aux/link-warning.h into
28585 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
28586 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
28587 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
28588 * modules/imaxdiv (configure.ac): Likewise.
28589 * modules/strtoimax (configure.ac): Likewise.
28590 * modules/strtoumax (configure.ac): Likewise.
28592 2007-02-17 Bruno Haible <bruno@clisp.org>
28594 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
28595 gl_STRING_MODULE_INDICATOR_DEFAULTS.
28596 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
28597 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
28599 2007-02-17 Bruno Haible <bruno@clisp.org>
28601 * modules/link-warning: New file.
28602 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
28603 * lib/string_.h (GL_LINK_WARNING): Remove definition.
28604 * modules/string (Depends-on): Add link-warning.
28605 (Makefile.am): Copy the contents of build-aux/link-warning.h into
28607 * MODULES.html.sh (Support for building libraries and executables): Add
28610 2007-02-17 Bruno Haible <bruno@clisp.org>
28612 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
28613 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
28614 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
28617 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
28618 Bruno Haible <bruno@clisp.org>
28620 * modules/tmpfile: New file.
28621 * lib/tmpfile.c: New file.
28622 * m4/tmpfile.m4: New file.
28623 * MODULES.html.sh (func_all_modules): New section "Input/output".
28625 2007-02-15 Bruno Haible <bruno@clisp.org>
28627 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
28628 (supports_delete_on_close): New function.
28629 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
28631 2007-02-14 Bruno Haible <bruno@clisp.org>
28633 * modules/mbspcasecmp-tests: New file.
28634 * tests/test-mbspcasecmp.sh: New file.
28635 * tests/test-mbspcasecmp.c: New file.
28637 New module mbspcasecmp.
28638 * modules/mbspcasecmp: New file.
28639 * lib/mbspcasecmp.c: New file.
28640 * lib/string_.h (strncasecmp): Change warning message.
28641 (mbspcasecmp): New declaration.
28642 * m4/mbspcasecmp.m4: New file.
28643 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28644 GNULIB_MBSPCASECMP.
28645 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
28646 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
28648 2007-02-14 Bruno Haible <bruno@clisp.org>
28650 * modules/mbsncasecmp-tests: New file.
28651 * tests/test-mbsncasecmp.sh: New file.
28652 * tests/test-mbsncasecmp.c: New file.
28654 New module mbsncasecmp.
28655 * modules/mbsncasecmp: New file.
28656 * lib/mbsncasecmp.c: New file.
28657 * lib/string_.h (mbsncasecmp): New declaration.
28658 * m4/mbsncasecmp.m4: New file.
28659 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28660 GNULIB_MBSNCASECMP.
28661 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
28662 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
28664 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
28666 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
28667 Verify that it doesn't overlap with our flags.
28668 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
28669 do not have the desired effect in multibyte locales; instead, use
28671 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
28672 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
28673 we don't require GNU fnmatch ourselves (if our users require it, they
28674 should do so explicitly).
28676 Fix regex code so it doesn't rely on strcasecmp.
28677 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
28678 Otherwise, include gnulib's langinfo.h.
28679 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
28680 undesirable behavior in non-C locales. Instead, rely on localecharset.
28681 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
28682 * modules/regex (FILES): Remove m4/codeset.m4.
28683 (Depends-on): Add localcharset. Remove strcase.
28685 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28687 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
28688 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28690 2007-02-13 Bruno Haible <bruno@clisp.org>
28692 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
28693 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28695 2007-02-12 Bruno Haible <bruno@clisp.org>
28697 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
28698 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
28699 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
28700 time warning rather than a link error.
28702 2007-02-12 Bruno Haible <bruno@clisp.org>
28704 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
28705 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28706 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28708 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
28710 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
28713 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
28715 New module 'time', so that apps can include <time.h> as per
28716 POSIX and GNU instead of separate include files like time_r.h
28717 and timegm.h. This implementation tries out a simpler approach
28718 for replacing decls in standard include files (as compared to
28719 the string module), somewhat as an experiment.
28721 * config/srclist.txt: Comment out mktime.c for now.
28722 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
28723 since it doesn't apply any more. Use generic wording instead.
28724 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
28726 * lib/time_.h, m4/time_h.m4, modules/time: New files.
28727 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
28728 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
28729 Don't include <sys/types.h>; no longer needed since we assume C89.
28730 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
28731 * lib/strftime.c: Likewise.
28732 * lib/time_r.c: Likewise.
28733 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
28734 * lib/nanosleep.c: Include <time.h> first, to check interface.
28735 * lib/strptime.c: Likewise.
28736 * lib/time_r.c: Likewise.
28737 * lib/timegm.c: Likewise.
28738 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
28740 * lib/timegm.c: Don't include timegm.h; no longer needed.
28741 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
28742 time.h now handles any problems in that area.
28743 (struct timespec, nanosleep): Remove; time.h now arranges for these.
28744 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
28745 that time.h defines struct timespec.
28746 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
28747 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
28749 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
28750 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
28751 needed. Set REPLACE_LOCALTIME.
28752 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
28753 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
28754 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
28755 nanosleep; time_h.m4 now does that. Don't require
28756 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
28757 module handles this now.
28758 * modules/getdate (Depends-on): Remove timespec. Add time.
28759 * modules/nanosleep (Depends-on): Likewise.
28760 * modules/stat-time (Depends-on): Likewise.
28761 * modules/nanosleep (Include): Include time.h, not timespec.h.
28762 * modules/strptime (Files): Remove lib/strptime.h.
28763 (Depends-on): Add extensions, time.
28764 (Include): Include time.h, not strptime.h.
28765 * modules/time_r (Files): Remove lib/time_r.h.
28766 (Depends-on): Add time.
28767 (Include): Include time.h, not time_r.h.
28768 * modules/timegm: Likewise.
28769 * modules/timespec (Description): Now does timespec-related decls
28770 of our own, instead of struct timespec itself.
28771 (Depends-on): Add time; remove extensions.
28772 (Maintainer): Add self.
28773 * modules/utimecmp (Depends-on): Add time; remove timespec.
28774 * modules/utimens (Depends-on): Likewise.
28775 * modules/xnanosleep (Depends-on): Likewise.
28777 2007-02-11 Bruno Haible <bruno@clisp.org>
28779 * lib/c-strstr.c: Include allocsa.h.
28780 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28781 * lib/c-strcasestr.c: Include allocsa.h.
28782 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28783 * lib/strcasestr.c: Include allocsa.h.
28784 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28785 * lib/mbsstr.c: Include allocsa.h.
28786 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
28787 allocsa/freesa instead of malloc/free.
28788 * lib/mbscasestr.c: Include allocsa.h.
28789 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
28790 allocsa/freesa instead of malloc/free.
28791 * modules/c-strstr (Depends-on): Add allocsa.
28792 * modules/c-strcasestr (Depends-on): Likewise.
28793 * modules/strcasestr (Depends-on): Likewise.
28794 * modules/mbsstr (Depends-on): Likewise.
28795 * modules/mbscasestr (Depends-on): Likewise.
28797 2007-02-11 Bruno Haible <bruno@clisp.org>
28799 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
28801 * modules/mbsspn-tests: New file.
28802 * tests/test-mbsspn.sh: New file.
28803 * tests/test-mbsspn.c: New file.
28805 2007-02-11 Bruno Haible <bruno@clisp.org>
28807 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
28809 * modules/mbspbrk-tests: New file.
28810 * tests/test-mbspbrk.sh: New file.
28811 * tests/test-mbspbrk.c: New file.
28813 2007-02-11 Bruno Haible <bruno@clisp.org>
28815 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
28818 * modules/mbscspn-tests: New file.
28819 * tests/test-mbscspn.sh: New file.
28820 * tests/test-mbscspn.c: New file.
28822 2007-02-11 Bruno Haible <bruno@clisp.org>
28824 * modules/mbscasecmp-tests: New file.
28825 * tests/test-mbscasecmp.sh: New file.
28826 * tests/test-mbscasecmp.c: New file.
28828 2007-02-11 Bruno Haible <bruno@clisp.org>
28830 Ensure O(n) worst-case complexity of mbscasestr.
28831 * lib/mbscasestr.c: Include stdbool.h.
28832 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
28834 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
28835 the bookkeeping indicates that it's worth it.
28836 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
28838 * modules/mbscasestr-tests: New file.
28839 * tests/test-mbscasestr1.c: New file.
28840 * tests/test-mbscasestr2.sh: New file.
28841 * tests/test-mbscasestr2.c: New file.
28842 * tests/test-mbscasestr3.sh: New file.
28843 * tests/test-mbscasestr3.c: New file.
28844 * tests/test-mbscasestr4.sh: New file.
28845 * tests/test-mbscasestr4.c: New file.
28846 * m4/locale-tr.m4: New file.
28848 2007-02-11 Bruno Haible <bruno@clisp.org>
28850 Ensure O(n) worst-case complexity of mbsstr.
28851 * lib/mbsstr.c: Include stdbool.h.
28852 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
28854 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
28855 bookkeeping indicates that it's worth it.
28856 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
28858 * modules/mbsstr-tests: New file.
28859 * tests/test-mbsstr1.c: New file.
28860 * tests/test-mbsstr2.sh: New file.
28861 * tests/test-mbsstr2.c: New file.
28862 * tests/test-mbsstr3.sh: New file.
28863 * tests/test-mbsstr3.c: New file.
28864 * m4/locale-fr.m4: New file.
28866 2007-02-11 Bruno Haible <bruno@clisp.org>
28868 * lib/mbsrchr.c (mbsrchr): Fix bug.
28870 * modules/mbsrchr-tests: New file.
28871 * tests/test-mbsrchr.sh: New file.
28872 * tests/test-mbsrchr.c: New file.
28874 2007-02-11 Bruno Haible <bruno@clisp.org>
28876 * lib/mbschr.c (mbschr): Fix bug.
28878 * modules/mbschr-tests: New file.
28879 * tests/test-mbschr.sh: New file.
28880 * tests/test-mbschr.c: New file.
28881 * m4/locale-zh.m4: New file.
28883 2007-02-11 Bruno Haible <bruno@clisp.org>
28885 Support for copying multibyte string iterators.
28886 * lib/mbiter.h: Include <string.h>.
28887 (mbiter_multi_copy): New function.
28888 (mbi_copy): New macro.
28889 * lib/mbuiter.h: Include <string.h>.
28890 (mbuiter_multi_copy): New function.
28891 (mbui_copy): New macro.
28893 2007-02-11 Bruno Haible <bruno@clisp.org>
28896 * modules/mbslen: New file.
28897 * lib/mbslen.c: New file.
28898 * lib/string_.h (mbslen): New declaration.
28899 * m4/mbslen.m4: New file.
28900 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28902 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
28903 * MODULES.html.sh (Internationalization functions): Add mbslen.
28905 2007-02-11 Bruno Haible <bruno@clisp.org>
28907 Ensure O(n) worst-case complexity of strcasestr substitute.
28908 * lib/strcasestr.c: Include stdbool.h.
28909 (knuth_morris_pratt): New function.
28910 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28911 bookkeeping indicates that it's worth it.
28912 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
28914 * modules/strcasestr-tests: New file.
28915 * tests/test-strcasestr.c: New file.
28917 2007-02-11 Bruno Haible <bruno@clisp.org>
28919 Ensure O(n) worst-case complexity of c_strcasestr.
28920 * lib/c-strcasestr.c: Include stdbool.h, string.h.
28921 (knuth_morris_pratt): New function.
28922 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
28923 the bookkeeping indicates that it's worth it.
28924 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
28926 * modules/c-strcasestr-tests: New file.
28927 * tests/test-c-strcasestr.c: New file.
28929 2007-02-11 Bruno Haible <bruno@clisp.org>
28931 Ensure O(n) worst-case complexity of c_strstr.
28932 * lib/c-strstr.c: Include stdbool.h, string.h.
28933 (knuth_morris_pratt): New function.
28934 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28935 bookkeeping indicates that it's worth it.
28936 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
28938 * lib/c-strstr.c: Complete rewrite for maintainability.
28940 * modules/c-strstr-tests: New file.
28941 * tests/test-c-strstr.c: New file.
28943 2007-02-11 Bruno Haible <bruno@clisp.org>
28945 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
28946 5.2.1 and earlier, whereby \055 was treated just like the range
28948 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28950 2007-02-08 Bruno Haible <bruno@clisp.org>
28952 * modules/regex (Depends-on): Add stdbool.
28953 Reported by Dalibor Topic <robilad@kaffe.org>.
28955 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
28957 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
28958 Prefer returning from main to exiting from it.
28959 Remove unnecessary parens after sizeof.
28961 2007-02-05 Bruno Haible <bruno@clisp.org>
28964 * modules/mbssep: New file.
28965 * lib/mbssep.c: New file.
28966 * lib/string_.h (strsep): Add a conditional link warning.
28967 (mbssep): New declaration.
28968 * m4/mbssep.m4: New file.
28969 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28971 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
28972 * MODULES.html.sh (Internationalization functions): Add mbssep.
28974 2007-02-05 Bruno Haible <bruno@clisp.org>
28976 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
28977 Optimize search in case of 1 delimiter.
28979 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
28981 * lib/acl.h: Include sys/types.h before sys/acl.h.
28983 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
28985 Merge upstream fix for glibc bugzilla #3957:
28987 2007-02-05 Jakub Jelinek <jakub@redhat.com>
28989 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
28990 bit for RE_HAT_LISTS_NOT_NEWLINE.
28991 (build_charclass_op): Remove bogus comment.
28993 2007-02-05 Simon Josefsson <simon@josefsson.org>
28995 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
28997 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
28999 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
29000 * lib/memmem.c [!defined _LIBC]: Include config.h.
29002 2007-02-04 Bruno Haible <bruno@clisp.org>
29004 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
29007 2007-02-04 Bruno Haible <bruno@clisp.org>
29009 New module mbstok_r.
29010 * modules/mbstok_r: New file.
29011 * lib/mbstok_r.c: New file.
29012 * lib/string_.h (strtok_r): Change argument names to match the
29013 comments. Add a conditional link warning.
29014 (mbstok_r): New declaration.
29015 * m4/mbstok_r.m4: New file.
29016 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29018 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
29019 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
29021 2007-02-04 Bruno Haible <bruno@clisp.org>
29024 * modules/mbsspn: New file.
29025 * lib/mbsspn.c: New file.
29026 * lib/string_.h (strspn): Add a conditional link warning.
29027 (mbsspn): New declaration.
29028 * m4/mbsspn.m4: New file.
29029 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29031 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
29032 * MODULES.html.sh (Internationalization functions): Add mbsspn.
29034 2007-02-04 Bruno Haible <bruno@clisp.org>
29036 New module mbspbrk.
29037 * modules/mbspbrk: New file.
29038 * lib/mbspbrk.c: New file.
29039 * lib/string_.h (strpbrk): Add a conditional link warning.
29040 (mbspbrk): New declaration.
29041 * m4/mbspbrk.m4: New file.
29042 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29044 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
29045 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
29047 2007-02-04 Bruno Haible <bruno@clisp.org>
29049 New module mbscspn.
29050 * modules/mbscspn: New file.
29051 * lib/mbscspn.c: New file.
29052 * lib/string_.h (strcspn): Add a conditional link warning.
29053 (mbscspn): New declaration.
29054 * m4/mbscspn.m4: New file.
29055 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29057 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
29058 * MODULES.html.sh (Internationalization functions): Add mbscspn.
29060 2007-02-04 Bruno Haible <bruno@clisp.org>
29062 New module mbscasestr, reduced goal of strcasestr.
29063 * modules/mbscasestr: New file.
29064 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
29065 (mbscasestr): Renamed from strcasestr.
29066 * lib/strcasestr.c: Don't include mbuiter.h.
29067 (strcasestr): Remove support for multibyte locales.
29068 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
29069 Change the conditional link warning.
29070 (mbscasestr): New declaration.
29071 * m4/mbscasestr.m4: New file.
29072 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
29073 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
29074 REPLACE_STRCASESTR.
29075 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
29076 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29077 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29078 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
29079 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
29080 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29081 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
29082 (Depends-on): Remove mbuiter.
29083 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
29085 2007-02-04 Bruno Haible <bruno@clisp.org>
29087 Simplify handling of strncasecmp.
29088 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
29089 the conditional link warning.
29090 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29091 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
29092 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
29093 * modules/strcase (configure.ac): Don't invoke
29094 gl_STRING_MODULE_INDICATOR.
29095 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
29097 2007-02-04 Bruno Haible <bruno@clisp.org>
29099 New module mbscasecmp, reduced goal of strcasecmp.
29100 * modules/mbscasecmp: New file.
29101 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
29102 (mbscasecmp): Renamed from strcasecmp.
29103 * lib/strcasecmp.c: Don't include mbuiter.h.
29104 (strcasecmp): Remove support for multibyte locales.
29105 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
29106 Change the conditional link warning.
29107 (mbscasecmp): New declaration.
29108 * m4/mbscasecmp.m4: New file.
29109 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
29110 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
29111 REPLACE_STRCASECMP.
29112 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
29113 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29115 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
29116 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
29117 * modules/strcase (Files): Remove m4/mbrtowc.m4.
29118 (Depends-on): Remove mbuiter.
29119 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
29121 2007-02-04 Bruno Haible <bruno@clisp.org>
29123 New module mbsstr. Remove module strstr.
29124 * modules/mbsstr: New file.
29125 * modules/strstr: Remove file.
29126 * lib/mbsstr.c: Renamed from lib/strstr.c.
29127 (mbsstr): Renamed from strstr.
29128 * lib/string_.h (strstr): Remove declaration. Change the conditional
29130 (mbsstr): New declaration.
29131 * m4/mbsstr.m4: New file.
29132 * m4/strstr.m4: Remove file.
29133 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29135 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
29136 Don't initialize GNULIB_STRSTR.
29137 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
29138 substitute GNULIB_STRSTR and REPLACE_STRSTR.
29139 * MODULES.html.sh (Internationalization functions): Add mbsstr.
29140 (Support for systems lacking ANSI C 89): Remove strstr.
29142 2007-02-04 Bruno Haible <bruno@clisp.org>
29144 New module mbsrchr.
29145 * modules/mbsrchr: New file.
29146 * lib/mbsrchr.c: New file.
29147 * lib/string_.h (strrchr): Add a conditional link warning.
29148 (mbsrchr): New declaration.
29149 * m4/mbsrchr.m4: New file.
29150 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29152 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
29153 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
29155 2007-02-04 Bruno Haible <bruno@clisp.org>
29158 * modules/mbschr: New file.
29159 * lib/mbschr.c: New file.
29160 * lib/string_.h (strchr): Add a conditional link warning.
29161 (mbschr): New declaration.
29162 * m4/mbschr.m4: New file.
29163 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29165 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
29166 * MODULES.html.sh (Internationalization functions): Add mbschr.
29168 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
29170 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
29172 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
29174 2007-02-04 Bruno Haible <bruno@clisp.org>
29176 New module description section 'configure.ac-early'.
29177 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
29178 (func_get_autoconf_early_snippet): New function.
29179 (func_import, func_create_testdir): Use it. Remove special cases for
29180 modules 'extensions' and 'lock'.
29181 * modules/extensions (configure.ac-early): Require
29182 gl_USE_SYSTEM_EXTENSIONS.
29183 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
29185 2007-02-04 Bruno Haible <bruno@clisp.org>
29187 Make use of gcj-4.3's -fsource and -ftarget option.
29188 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
29189 and if so try the options -fsource and -ftarget.
29190 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
29191 source_version, ftarget_option, target_version arguments.
29192 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
29193 (is_envjavac_oldgcj_14_14_usable): Renamed from
29194 is_envjavac_gcj_14_14_usable.
29195 (is_envjavac_oldgcj_14_13_usable): Renamed from
29196 is_envjavac_gcj_14_13_usable.
29197 (is_gcj_present): Update.
29198 (is_gcj_43, is_gcj43_usable): New functions.
29199 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
29200 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
29201 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
29202 try the options -fsource and -ftarget.
29204 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
29206 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
29207 checking code. Set N = ceil (1.5 * N) rather than to a slightly
29210 2007-02-03 Jim Meyering <jim@meyering.net>
29212 Give tools a better chance to allocate space for very large buffers.
29213 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
29215 Make pwd and readlink work also when run with an unreadable parent dir
29216 on systems with openat support.
29217 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
29218 provided getcwd function, even when we have openat support.
29219 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
29221 2007-02-02 Bruno Haible <bruno@clisp.org>
29223 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29224 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
29225 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
29226 portability problems if one of these functions is only used on specific
29228 Reported by Paul Eggert.
29230 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
29232 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
29233 is causing more trouble than it's curing.
29234 * lib/regex_internal.h (__mempcpy): Remove.
29235 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
29236 (and make the code a tad smaller to boot).
29237 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
29239 2007-02-02 Jim Meyering <jim@meyering.net>
29241 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
29242 section, not in the Makefile.am: one.
29244 2007-02-02 Eric Blake <ebb9@byu.net>
29246 * lib/strchrnul.c: Always include config.h first.
29248 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
29249 gnulib strstr is not necessary here.
29251 2007-02-02 Simon Josefsson <simon@josefsson.org>
29253 * m4/socklen.m4: Fix typo.
29255 2007-02-02 Eric Blake <ebb9@byu.net>
29257 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
29258 * modules/netinet_in (Makefile.am): Likewise.
29260 2007-02-01 Bruno Haible <bruno@clisp.org>
29262 * lib/string_.h (GL_LINK_WARNING): New macro.
29263 (strcasecmp, strstr, strcasestr): If provided by the system,
29264 conditionally define as a macro that leads to a warning instead of to
29266 (strncasecmp): Conditionally define as a macro that leads to a warning.
29268 2007-02-01 Karl Berry <karl@gnu.org>
29270 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
29272 2007-02-01 Bruno Haible <bruno@clisp.org>
29274 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
29277 2007-02-01 Eric Blake <ebb9@byu.net>
29279 * modules/regex (Depends-on): Revert dependence on mempcpy.
29280 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
29281 module's definition of mempcpy.
29282 Reported by Paul Eggert.
29284 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
29286 * lib/string_.h: If the gnulib module XYZ is not present, undefine
29287 the symbol XYZ before redefining it. This fixes a problem with
29288 programs that don't use XYZ, when compiled on systems that define
29289 XYZ to something else.
29291 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
29293 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
29294 occurs when "mkdir -m foo" creates a setgid directory that is (1)
29295 writeable to group or other and (2) is intended to have a special
29296 mode bit that is set or cleared. In such a case, the directory
29297 should be neither group- nor other-writeable until the special
29298 mode bits are right.
29300 2007-01-31 Eric Blake <ebb9@byu.net>
29302 * modules/mountlist (Depends-on): Add strstr.
29304 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
29306 * modules/string (Makefile.am): Remove redundant replacement.
29307 * modules/regex (Depends-on): Add mempcpy.
29309 2007-01-31 Bruno Haible <bruno@clisp.org>
29311 New module description field 'Link'.
29312 * gnulib-tool (func_usage): Document --extract-link-directive.
29313 (sed_extract_prog): Recognize 'Link' directive.
29314 (func_get_link_directive): New function.
29315 (func_import): Show summary of link directives.
29316 Handle --extract-link-directive option.
29317 * modules/acl (Link): New section.
29318 * modules/clock-time (Link): New section.
29319 * modules/euidaccess (Link): New section.
29320 * modules/gettext (Link): New section.
29321 * modules/iconv (Link): New section.
29322 * modules/lock (Link): New section.
29323 * modules/nanosleep (Link): New section.
29324 * modules/readline (Link): New section.
29326 2007-01-27 Bruno Haible <bruno@clisp.org>
29328 Enforce the use of gnulib modules for unportable <string.h> functions.
29329 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
29330 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
29331 (gl_HEADER_STRING_H_BODY): Require it.
29332 * lib/string_.h: If the gnulib module XYZ is not present, redefine
29333 the symbol XYZ to one that gives a link error.
29334 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
29335 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
29336 * modules/mempcpy (configure.ac): Likewise.
29337 * modules/memrchr (configure.ac): Likewise.
29338 * modules/stpcpy (configure.ac): Likewise.
29339 * modules/stpncpy (configure.ac): Likewise.
29340 * modules/strcase (configure.ac): Likewise.
29341 * modules/strcasestr (configure.ac): Likewise.
29342 * modules/strchrnul (configure.ac): Likewise.
29343 * modules/strdup (configure.ac): Likewise.
29344 * modules/strndup (configure.ac): Likewise.
29345 * modules/strnlen (configure.ac): Likewise.
29346 * modules/strpbrk (configure.ac): Likewise.
29347 * modules/strsep (configure.ac): Likewise.
29348 * modules/strstr (configure.ac): Likewise.
29349 * modules/strtok_r (configure.ac): Likewise.
29351 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
29353 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
29355 2007-01-30 Jim Meyering <jim@meyering.net>
29357 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
29359 2007-01-29 Bruno Haible <bruno@clisp.org>
29361 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
29362 * lib/execute.c: Likewise.
29363 * lib/pipe.c: Likewise.
29364 * lib/printf-args.h: Likewise.
29365 * lib/printf-args.c: Likewise.
29366 * lib/printf-parse.c: Likewise.
29367 * lib/vasnprintf.c: Likewise.
29369 2007-01-29 Eric Blake <ebb9@byu.net>
29371 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
29374 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
29376 * lib/strptime.h (strptime): Use 'restrict' for args where
29377 POSIX requires this.
29378 * lib/strptime.c (strptime): Likewise.
29379 Change license notice from LGPL to GPL, since gnulib-tool will
29380 change this as needed.
29381 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
29383 Include "strptime.h" first, to check interface.
29384 Do not #undef _LIBC and _NL_CURRENT.
29385 Do not include <stdlib.h>; no longer needed.
29386 Include "time_r.h" and declare ptime_locale_status
29387 only if _LIBC is not defined.
29388 (__P): Remove unused macro.
29389 (match_string): Bring back glibc version, but use it only if _LIBC
29391 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
29392 Remove unnecessary assertion and abort() call.
29393 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
29394 * m4/strptime.m4: Fix serial number comment.
29395 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
29396 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
29397 (Depends-on): Add time_r.
29399 2007-01-29 Bruno Haible <bruno@clisp.org>
29401 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29403 * modules/strptime (Depends-on): Add stdbool.
29404 * lib/strptime.h: Include <time.h> always. Add comments.
29406 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
29408 * modules/strptime: New file.
29409 * lib/strptime.h: New file.
29410 * lib/strptime.c: New file.
29411 * m4/strptime.m4: New file.
29413 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
29415 * MODULES.html.sh: New module mpsort.
29416 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
29418 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
29419 a circularity problem with HP-UX ia64 reported by Bob Proulx in
29420 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
29422 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
29424 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
29426 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
29427 the parameter matches the prototype.
29429 2007-01-28 Jim Meyering <jim@meyering.net>
29431 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
29432 sys/time.h here, reverting that part of the previous patch:
29433 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
29435 2007-01-28 Bruno Haible <bruno@clisp.org>
29437 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
29438 value of $(SYS_TIME_H).
29439 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
29440 remove it conditionally, too. [added by Jim Meyering]
29441 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
29442 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
29443 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
29444 GETTIMEOFDAY_REPLACEMENT to 1.
29446 2007-01-28 Bruno Haible <bruno@clisp.org>
29448 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
29449 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
29450 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
29451 Set UNISTD_H instead of UNISTD_H2.
29452 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
29454 2007-01-28 Bruno Haible <bruno@clisp.org>
29456 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
29457 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
29459 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29461 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
29462 (func_create_testdir): Ensure C locale for `grep' and `tr'
29464 (func_create_megatestdir): Avoid one `grep'. Fix bug in
29465 ACLOCAL_AMFLAGS parsing state machine.
29467 2007-01-27 Bruno Haible <bruno@clisp.org>
29469 * modules/unistr/base: Update.
29471 2007-01-27 Bruno Haible <bruno@clisp.org>
29473 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
29474 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
29475 * modules/unistr/u32-mbtouc-unsafe: Renamed from
29476 modules/unistr/u32-mbtouc.
29477 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
29478 * lib/unistr.h: Update.
29479 * lib/linebreak.c: Update.
29480 * modules/unistr/u32-mbtouc: Renamed from
29481 modules/unistr/u32-mbtouc-safe.
29482 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
29483 * lib/unistr.h: Update.
29484 * lib/unistr/u32-to-u8.c: Update.
29485 * lib/unistr/u32-to-u16.c: Update.
29487 2007-01-27 Bruno Haible <bruno@clisp.org>
29489 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
29490 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
29491 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
29492 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
29493 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
29494 * modules/unistr/u16-mbtouc-unsafe: Renamed from
29495 modules/unistr/u16-mbtouc.
29496 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
29497 * lib/unistr.h: Update.
29498 * lib/linebreak.c: Update.
29499 * modules/linebreak: Update.
29500 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
29501 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
29502 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
29503 * modules/unistr/u16-mbtouc: Renamed from
29504 modules/unistr/u16-mbtouc-safe.
29505 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
29506 * lib/unistr.h: Update.
29507 * lib/unistr/u16-to-u8.c: Update.
29508 * modules/unistr/u16-to-u8: Update.
29509 * lib/unistr/u16-to-u32.c: Update.
29510 * modules/unistr/u16-to-u32: Update.
29512 2007-01-27 Bruno Haible <bruno@clisp.org>
29514 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
29515 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
29516 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
29517 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
29518 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
29519 * modules/unistr/u8-mbtouc-unsafe: Renamed from
29520 modules/unistr/u8-mbtouc.
29521 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
29522 * lib/unistr.h: Update.
29523 * lib/striconveh.c: Update.
29524 * modules/striconveh: Update.
29525 * lib/linebreak.c: Update.
29526 * modules/linebreak: Update.
29527 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
29528 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
29529 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
29530 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
29531 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
29532 * lib/unistr.h: Update.
29533 * lib/striconveh.c: Update.
29534 * modules/striconveh: Update.
29535 * lib/unistr/u8-to-u16.c: Update.
29536 * modules/unistr/u8-to-u16: Update.
29537 * lib/unistr/u8-to-u32.c: Update.
29538 * modules/unistr/u8-to-u32: Update.
29540 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29543 * lib/argz.c: Do not include strings.h nor memory.h, include
29544 string.h unconditionally. Patch by Simon Josefsson.
29546 2007-01-27 Bruno Haible <bruno@clisp.org>
29548 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
29549 from gl_HEADER_STRING_H_BODY.
29550 (gl_HEADER_STRING_H_BODY): Require it.
29551 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
29552 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
29553 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
29554 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
29555 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29556 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
29557 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29558 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
29559 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
29560 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29561 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
29562 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
29563 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
29564 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29565 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
29567 2007-01-27 Bruno Haible <bruno@clisp.org>
29569 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
29570 check_PROGRAMS into noinst_PROGRAMS.
29571 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
29572 check_PROGRAMS in this case.
29573 (func_import): Set for_test to false.
29574 (func_create_testdir): Set for_test to true.
29576 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29577 Bruno Haible <bruno@clisp.org>
29579 * modules/strcasestr (Files): Remove lib/strcasestr.h.
29580 (Depends-on): Add string.
29581 (Includes): Use <string.h> instead of strcasestr.h.
29582 * modules/string (Makefile.am): Also substitute the value of
29583 REPLACE_STRCASESTR.
29584 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
29585 assume strcasestr is declared in <string.h> not <strings.h>. Also
29586 set REPLACE_STRCASESTR.
29587 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
29588 REPLACE_STRCASESTR.
29589 * lib/strcasestr.h: Remove file.
29590 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
29591 * lib/string_.h (strcasestr): New declaration.
29593 2007-01-27 Bruno Haible <bruno@clisp.org>
29595 * lib/string_.h: Use 'extern'.
29597 2007-01-27 Jim Meyering <jim@meyering.net>
29599 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
29600 of set-but-not-used local, "q".
29602 * lib/mempcpy.c: Include <config.h> before <string.h>.
29603 This fixes a compilation error on HP-UX, due to the system's
29604 "restrict"-using mempcpy prototype.
29606 2007-01-26 Bruno Haible <bruno@clisp.org>
29608 Small optimization.
29609 * lib/javacomp.c: Include c-strstr.h.
29610 (is_envjavac_gcj): Use c_strstr instead of strstr.
29611 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
29613 2007-01-26 Bruno Haible <bruno@clisp.org>
29615 * MODULES.html.sh (Unicode string functions): Add the new modules.
29617 * modules/uniconv/u32-strconv-to-locale: New file.
29618 * lib/uniconv/u32-strconv-to-locale.c: New file.
29620 * modules/uniconv/u16-strconv-to-locale: New file.
29621 * lib/uniconv/u16-strconv-to-locale.c: New file.
29623 * modules/uniconv/u8-strconv-to-locale: New file.
29624 * lib/uniconv/u8-strconv-to-locale.c: New file.
29626 * modules/uniconv/u32-strconv-from-locale: New file.
29627 * lib/uniconv/u32-strconv-from-locale.c: New file.
29629 * modules/uniconv/u16-strconv-from-locale: New file.
29630 * lib/uniconv/u16-strconv-from-locale.c: New file.
29632 * modules/uniconv/u8-strconv-from-locale: New file.
29633 * lib/uniconv/u8-strconv-from-locale.c: New file.
29635 * modules/uniconv/u32-strconv-to-enc: New file.
29636 * lib/uniconv/u32-strconv-to-enc.c: New file.
29637 * modules/uniconv/u32-strconv-to-enc-tests: New file.
29638 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
29640 * modules/uniconv/u16-strconv-to-enc: New file.
29641 * lib/uniconv/u16-strconv-to-enc.c: New file.
29642 * lib/uniconv/u-strconv-to-enc.h: New file.
29643 * modules/uniconv/u16-strconv-to-enc-tests: New file.
29644 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
29646 * modules/uniconv/u8-strconv-to-enc: New file.
29647 * lib/uniconv/u8-strconv-to-enc.c: New file.
29648 * modules/uniconv/u8-strconv-to-enc-tests: New file.
29649 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
29651 * modules/uniconv/u32-strconv-from-enc: New file.
29652 * lib/uniconv/u32-strconv-from-enc.c: New file.
29653 * modules/uniconv/u32-strconv-from-enc-tests: New file.
29654 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
29656 * modules/uniconv/u16-strconv-from-enc: New file.
29657 * lib/uniconv/u16-strconv-from-enc.c: New file.
29658 * modules/uniconv/u16-strconv-from-enc-tests: New file.
29659 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
29661 * modules/uniconv/u8-strconv-from-enc: New file.
29662 * lib/uniconv/u8-strconv-from-enc.c: New file.
29663 * lib/uniconv/u-strconv-from-enc.h: New file.
29664 * modules/uniconv/u8-strconv-from-enc-tests: New file.
29665 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
29667 * modules/uniconv/u32-conv-from-enc: New file.
29668 * lib/uniconv/u32-conv-from-enc.c: New file.
29669 * modules/uniconv/u32-conv-from-enc-tests: New file.
29670 * tests/uniconv/test-u32-conv-from-enc.c: New file.
29672 * modules/uniconv/u16-conv-from-enc: New file.
29673 * lib/uniconv/u16-conv-from-enc.c: New file.
29674 * lib/uniconv/u-conv-from-enc.h: New file.
29675 * modules/uniconv/u16-conv-from-enc-tests: New file.
29676 * tests/uniconv/test-u16-conv-from-enc.c: New file.
29678 * modules/uniconv/u8-conv-from-enc: New file.
29679 * lib/uniconv/u8-conv-from-enc.c: New file.
29680 * modules/uniconv/u8-conv-from-enc-tests: New file.
29681 * tests/uniconv/test-u8-conv-from-enc.c: New file.
29683 * modules/uniconv/base: New file.
29684 * lib/uniconv.h: New file.
29686 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
29688 * doc/gnulib-tool.texi (Initial import): Update to match current
29689 behavior with strdup module.
29690 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
29691 * lib/memmem.h: Remove; all uses removed. This is now done
29693 * lib/mempcpy.h: Likewise.
29694 * lib/memrchr.h: Likewise.
29695 * lib/stpcpy.h: Likewise.
29696 * lib/stpncpy.h: Likewise.
29697 * lib/strcase.h: Likewise.
29698 * lib/strchrnul.h: Likewise.
29699 * lib/strdup.h: Likewise.
29700 * lib/strndup.h: Likewise.
29701 * lib/strnlen.h: Likewise.
29702 * lib/strpbrk.h: Likewise.
29703 * lib/strsep.h: Likewise.
29704 * lib/strstr.h: Likewise.
29705 * lib/strtok_r.h: Likewise.
29706 * lib/string_.h: New file.
29707 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
29708 Rely on <string.h> instead.
29709 * lib/canon-host.c: Likewise.
29710 * lib/chdir-long.c: Likewise.
29711 * lib/concatpath.c: Likewise.
29712 * lib/exclude.c: Likewise.
29713 * lib/fchdir.c: Likewise.
29714 * lib/getaddrinfo.c: Likewise.
29715 * lib/getcwd.c: Likewise.
29716 * lib/getsubopt.c: Likewise.
29717 * lib/glob.c: Likewise.
29718 * lib/hard-locale.c: Likewise.
29719 * lib/iconvme.c: Likewise.
29720 * lib/javacomp.c: Likewise.
29721 * lib/mempcpy.c: Likewise.
29722 * lib/memrchr.c: Likewise.
29723 * lib/regex_internal.h: Likewise.
29724 * lib/stpncpy.c: Likewise.
29725 * lib/strcasecmp.c: Likewise.
29726 * lib/strchrnul.c: Likewise.
29727 * lib/strdup.c: Likewise.
29728 * lib/striconv.c: Likewise.
29729 * lib/striconveh.c: Likewise.
29730 * lib/striconveha.c: Likewise.
29731 * lib/strncasecmp.c: Likewise.
29732 * lib/strndup.c: Likewise.
29733 * lib/strnlen.c: Likewise.
29734 * lib/strsep.c: Likewise.
29735 * lib/strstr.c: Likewise.
29736 * lib/strtok_r.c: Likewise.
29737 * lib/userspec.c: Likewise.
29738 * lib/w32spawn.h: Likewise.
29739 * lib/xstrndup.c: Likewise.
29740 * lib/mountlist.c (strstr): Remove decl.
29741 * m4/string_h.m4: New file.
29742 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
29743 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
29744 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
29745 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
29746 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
29747 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
29748 Set REPLACE_STRCASECMP if necessary.
29749 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
29750 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
29751 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
29752 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
29753 HAVE_DECL_STRDUP if necessary.
29754 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
29755 since gl_FUNC_STRNDUP does that now.
29756 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
29757 Check for decl here...
29758 (gl_PREREQ_STRNLEN): ... not here.
29759 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
29760 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
29761 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
29762 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
29764 * modules/string: New file.
29765 * modules/memmem (Files): Remove special-purpose include file.
29766 (Depends-on): Add string.
29767 (Include): Include <string.h>, not the removed file.
29768 * modules/mempcpy: Likewise.
29769 * modules/memrchr: Likewise.
29770 * modules/stpcpy: Likewise.
29771 * modules/stpncpy: Likewise.
29772 * modules/strcase: Likewise.
29773 * modules/strchrnul: Likewise.
29774 * modules/strdup: Likewise.
29775 * modules/strndup: Likewise.
29776 * modules/strnlen: Likewise.
29777 * modules/strpbrk: Likewise.
29778 * modules/strsep: Likewise.
29779 * modules/strstr: Likewise.
29780 * modules/strtok_r: Likewise.
29781 * tests/test-dirname.c: Don't include "strdup.h", since
29782 <string.h> now suffices.
29783 * tests/test-memmem.c: Don't include "memmem.h", since
29784 <string.h> now suffices.
29786 2007-01-25 Bruno Haible <bruno@clisp.org>
29788 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
29791 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
29792 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
29793 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
29794 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
29796 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
29797 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
29798 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
29799 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
29800 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
29801 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
29803 2007-01-24 Bruno Haible <bruno@clisp.org>
29805 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
29806 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
29807 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
29808 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
29810 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
29811 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
29812 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29813 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
29814 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
29815 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
29817 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
29819 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
29820 Reported by Ralf Wildenhues.
29822 2007-01-24 Bruno Haible <bruno@clisp.org>
29824 Drop AC_REQUIRE calls that are redundant with the module dependencies.
29825 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
29827 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
29828 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
29829 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
29831 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
29833 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
29834 Don't use 'exit'; just return from 'main'.
29835 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
29837 * lib/fnmatch_.h: Readjust white space and comments to match
29838 glibc, to avoid spurious diffs.
29840 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
29842 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
29843 2004-12-01 change by Jakub Jelinek, since this code won't compile
29844 if !LIBC. Problem reported by Bob Proulx.
29846 2007-01-23 Bruno Haible <bruno@clisp.org>
29848 * lib/striconveh.c: Include c-strcaseeq.h.
29849 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
29850 * modules/striconveh (Depends-on): Add c-strcaseeq.
29852 2007-01-23 Bruno Haible <bruno@clisp.org>
29854 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
29856 * modules/c-strcaseeq: New file.
29857 * lib/c-strcaseeq.h: New file.
29859 * modules/streq: New file.
29860 * lib/streq.h: New file.
29862 2007-01-23 Bruno Haible <bruno@clisp.org>
29864 * modules/striconveha-tests: New file.
29865 * tests/test-striconveha.c: New file.
29867 * lib/striconveha.h: Include <stdbool.h>.
29868 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
29869 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
29870 (mem_iconveha_notranslit): Renamed from mem_iconveha.
29871 (mem_iconveha): New function.
29872 (str_iconveha_notranslit): Renamed from str_iconveha.
29873 (str_iconveha): New function.
29874 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
29877 2007-01-23 Bruno Haible <bruno@clisp.org>
29879 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
29880 encodings without forgiving before trying any encoding with handler.
29881 (str_iconveha): Try all encodings without forgiving before trying any
29882 encoding with handler.
29884 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
29886 Import the following changes from libc.
29888 2005-10-14 Ulrich Drepper <drepper@redhat.com>
29890 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
29892 2004-12-01 Jakub Jelinek <jakub@redhat.com>
29894 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
29895 normal_bracket label.
29897 2004-09-01 Jakub Jelinek <jakub@redhat.com>
29900 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
29901 to normal_bracket after fetching the next character.
29903 2007-01-22 Bruno Haible <bruno@clisp.org>
29905 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
29907 * lib/striconveh.c (iconv_carefully_1): New function.
29908 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
29910 (str_cd_iconveh): Update.
29911 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
29912 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
29913 * tests/test-striconveh.c (MAGIC): New macro.
29914 (new_offsets): New function.
29915 (main): Test call with and without offsets.
29917 2007-01-22 Bruno Haible <bruno@clisp.org>
29919 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
29920 * modules/sys_select (Makefile.am): Likewise.
29921 * modules/sys_socket (Makefile.am): Likewise.
29922 * modules/sys_time (Makefile.am): Likewise.
29924 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
29926 * modules/gettimeofday (License): Change from GPL to LGPL, since
29927 gettimeofday is a library function.
29929 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29931 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
29933 2007-01-21 Bruno Haible <bruno@clisp.org>
29935 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
29937 2007-01-21 Bruno Haible <bruno@clisp.org>
29939 * modules/striconveha: New file.
29940 * lib/striconveha.h: New file.
29941 * lib/striconveha.c: New file.
29942 * MODULES.html.sh (Internationalization functions): Add striconveha.
29943 * lib/striconv.c (str_iconv): Optimize the case of an empty input
29945 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
29947 2007-01-21 Bruno Haible <bruno@clisp.org>
29949 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
29950 * lib/striconveh.c (str_iconveh): Likewise.
29952 2007-01-21 Bruno Haible <bruno@clisp.org>
29954 * lib/striconveh.h (mem_iconveh): New declaration.
29955 * lib/striconveh.c (mem_iconveh): New function.
29956 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
29958 2007-01-21 Bruno Haible <bruno@clisp.org>
29960 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
29962 * lib/striconveh.h (mem_cd_iconveh): Change specification.
29963 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
29964 original result buffer.
29965 (str_cd_iconveh): Update.
29966 * tests/test-striconveh.c (main): Update.
29968 * lib/striconv.h (mem_cd_iconv): Change specification.
29969 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
29971 (str_cd_iconv): Update.
29972 * tests/test-striconv.c (main): Update.
29974 2007-01-21 Bruno Haible <bruno@clisp.org>
29976 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
29978 2007-01-20 Jim Meyering <jim@meyering.net>
29980 * lib/userspec.c (parse_with_separator): If a user or group string
29981 starts with "+", skip the corresponding name-to-ID look-up, since
29982 such a look-up must fail: user and group names may not include "+".
29984 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
29986 * lib/poll.c: Include sys/time.h and time.h unconditionally,
29987 since we now assume the sys_time module.
29988 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
29989 check for sys/time.h; no longer needed.
29990 * modules/poll (Depends-on): Depend on sys_time.
29992 2007-01-18 Bruno Haible <bruno@clisp.org>
29994 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
29995 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29997 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
30000 * tests/test-gettimeofday.c: Include <time.h>.
30001 (dummy): Remove variable.
30003 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
30004 gl_HEADER_SYS_TIME_H.
30005 (gl_HEADER_SYS_TIME_H): New macro.
30007 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
30008 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30009 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
30010 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
30011 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30012 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
30013 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
30014 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30015 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
30016 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
30017 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30019 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
30020 last change; it caused a compilation error when cross-compiling to
30023 2007-01-18 Jim Meyering <jim@meyering.net>
30025 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
30026 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
30027 than the race-prone "test -d sys || mkdir sys".
30028 (configure.ac): Use AC_PROG_MKDIR_P.
30029 * modules/sys_select: Likewise.
30030 * modules/sys_socket: Likewise.
30031 * modules/sys_time: Likewise.
30033 2007-01-18 Eric Blake <ebb9@byu.net>
30035 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
30036 replace gettimeofday.
30037 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
30038 name, to avoid infinite recursion.
30040 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
30042 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
30044 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
30045 assume timespec.h defines struct timeval.
30046 * lib/settime.c: Likewise.
30047 * lib/utimens.c: Likewise.
30048 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
30049 since we now assume the gettimeofday module.
30050 * lib/tempname.c (__gen_tempname): Likewise.
30051 * lib/gettimeofday.h: Remove.
30052 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
30053 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
30054 Include <time.h>, for 'time()'.
30055 (localtime_buffer_addr): Also use this workaround if
30056 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
30057 to simplify the uses. All uses changed.
30058 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
30059 that #undef is inside {}, and 'const' follows type name consistently.
30060 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
30061 (gettimeofday): Do not use the maximum possible value for
30062 tv->tv_usec, since that might break usages other than ls.c.
30063 Instead, we'll leave ls.c alone. This undoes today's patch
30064 by Bruno. Add a compile-time warning for 1s-clock resolution;
30065 we've never observed the problem but might as well keep the
30067 * lib/nanosleep.c: Include timespec.h first, for interface check.
30068 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
30069 now assume the sys_time module.
30070 * lib/tempname.c: Likewise.
30071 * lib/timespec.h: Likewise.
30072 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
30074 * lib/strftime.c: Likewise.
30075 * lib/timespec.h: Likewise.
30076 * lib/posixtm.c: Include posixtm.h first, for interface check.
30077 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
30078 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
30079 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
30080 * lib/sys_time_.h: New file.
30081 * lib/timespec.h (struct timespec): Use long int, not long.
30082 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
30083 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
30084 Remove obsolescent call to AC_HEADER_TIME.
30085 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
30086 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30087 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30088 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
30090 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
30091 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
30092 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
30093 into the sys_time module. Check for gettimeofday just once.
30094 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
30095 for gettimeofday signature to just check the signature. Merely
30096 compile it, since linking doesn't test signature. Improve test for
30097 whether gettimeofday.o is actually needed.
30098 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
30099 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
30100 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
30101 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30102 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
30103 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
30104 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
30105 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
30106 than worrying about sys/time.h.
30107 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30108 Don't bother worrying about TIME_WITH_SYS_TIME.
30109 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30110 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
30111 * m4/sys_time_h.m4: New file.
30112 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
30113 Don't include sys/time.h. Return from main rather than exiting.
30114 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
30116 * modules/gethrxtime (Depends-on): Add sys_time.
30117 * modules/gettime (Depends-on): Likewise.
30118 * modules/gettimeofday (Depends-on): Likewise.
30119 * modules/nanosleep (Depends-on): Likewise.
30120 * modules/settime (Depends-on): Likewise.
30121 * modules/tempname (Depends-on): Likewise.
30122 * modules/utimens (Depends-on): Likewise.
30123 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
30124 (Include:) Change back to <sys/time.h>.
30125 (Maintainer:) Add self.
30126 * modules/sys_time: New file.
30127 * modules/tempname (Depends-on): Add gettimeofday.
30128 * tests/test-gettimeofday.c: Include <sys/time.h>
30129 rather than gettimeofday.h.
30131 2007-01-17 Bruno Haible <bruno@clisp.org>
30133 * gnulib-tool (func_get_license): Revert last patch. Instead, let
30134 the license default to GPL.
30135 (func_create_testdir): Don't complain if a module is LGPL and its
30136 tests module depends on GPLed modules.
30138 2007-01-17 Bruno Haible <bruno@clisp.org>
30140 * lib/gettimeofday.c (gettimeofday): Add code for the case
30141 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
30142 maximum possible value for tv->tv_usec, rather than the minimum one.
30144 2005-10-08 Martin Lambers <marlam@marlam.de>
30145 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
30146 2007-01-16 Bruno Haible <bruno@clisp.org>
30148 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
30149 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
30150 gl_FUNC_GETTIMEOFDAY.
30151 (Include): Add gettimeofday.h.
30152 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
30153 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
30154 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
30155 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
30156 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
30157 * lib/gettimeofday.h: New file.
30158 * lib/gettimeofday.c: Include <sys/timeb.h>.
30159 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
30160 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30161 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
30162 fall back on time().
30164 * tests/test-gettimeofday.c: New file.
30165 * modules/gettimeofday-tests: New file.
30167 2007-01-16 Eric Blake <ebb9@byu.net>
30169 * modules/fnmatch (Depends-on): Depend on wchar.
30170 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
30171 * m4/fnmatch.m4: Likewise.
30172 * modules/mbchar (Makefile.am): Assume <wchar.h>.
30173 * m4/mbchar.m4: Likewise.
30174 * modules/mbswidth (Depends-on): Depend on wchar.
30175 * lib/mbswidth.c: Assume <wchar.h>.
30176 * m4/mbswidth.m4: Likewise.
30177 * modules/quotearg (Depends-on): Depend on wchar.
30178 * lib/quotearg.c: Assume <wchar.h>.
30179 * m4/quotearg.m4: Likewise.
30180 * modules/regex (Depends-on): Depend on wchar.
30181 * lib/regex_internal.h: Assume <wchar.h>.
30182 * m4/regex.m4: Likewise.
30183 * modules/stdint (Depends-on): Depend on wchar.
30184 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
30185 * m4/stdint.m4: Likewise.
30186 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
30187 * modules/strftime (Depends-on): Depend on wchar.
30188 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
30189 * modules/strtol (Depends-on): Depend on wchar.
30190 * lib/strtol.c: Assume <wchar.h>.
30191 * modules/wcwidth (Depends-on): Depend on wchar.
30192 * lib/wcwidth.h: Assume <wchar.h>.
30193 * m4/wcwidth.m4: Likewise.
30195 2007-01-16 Bruno Haible <bruno@clisp.org>
30197 * modules/csharpexec-script: New, created from...
30198 * modules/csharpexec: ... this.
30200 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
30202 * modules/javaexec-script: New, created from...
30203 * modules/javaexec: ... this.
30205 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30207 * modules/poll (Dependencies): Add sys_select.
30209 2007-01-15 Jim Meyering <jim@meyering.net>
30211 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
30212 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
30213 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
30214 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
30216 2007-01-15 Bruno Haible <bruno@clisp.org>
30218 * modules/striconveh: New file.
30219 * lib/striconveh.h: New file.
30220 * lib/striconveh.c: New file.
30221 * MODULES.html.sh (Internationalization functions): Add striconveh.
30223 * modules/striconveh-tests: New file.
30224 * tests/test-striconveh.c: New file.
30226 2007-01-15 Bruno Haible <bruno@clisp.org>
30228 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
30229 not from GNU libiconv or GNU libc.
30231 2007-01-15 Bruno Haible <bruno@clisp.org>
30233 * doc/gnulib-intro.texi (Copyright): Explain the different license
30234 terms for module descriptions, autoconf macros, tests, documentation.
30236 2007-01-14 Bruno Haible <bruno@clisp.org>
30238 * modules/striconv-tests: New file.
30239 * tests/test-striconv.c: New file.
30241 2007-01-14 Bruno Haible <bruno@clisp.org>
30243 * modules/iconv-tests: New file.
30244 * tests/test-iconv.c: New file.
30246 2007-01-14 Bruno Haible <bruno@clisp.org>
30248 * gnulib-tool (func_get_license): For test modules, use the license of
30251 2007-01-14 Bruno Haible <bruno@clisp.org>
30253 * modules/iconv (Include): Clarify that <iconv.h> can only be included
30254 if iconv is found to exist.
30256 2007-01-14 Bruno Haible <bruno@clisp.org>
30258 * modules/c-ctype-tests: New file.
30259 * tests/test-c-ctype.c: New file.
30261 2007-01-14 Bruno Haible <bruno@clisp.org>
30263 * modules/binary-io-tests: New file.
30264 * tests/test-binary-io.sh: New file.
30265 * tests/test-binary-io.c: New file.
30267 2007-01-14 Bruno Haible <bruno@clisp.org>
30269 * modules/array-oset-tests: New file.
30270 * tests/test-array_oset.c: New file.
30272 2007-01-14 Bruno Haible <bruno@clisp.org>
30274 * modules/array-list-tests: New file.
30275 * tests/test-array_list.c: New file.
30277 2007-01-14 Bruno Haible <bruno@clisp.org>
30279 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
30281 Reported by Simon Josefsson in
30282 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
30284 2007-01-14 Bruno Haible <bruno@clisp.org>
30286 * modules/allocsa-tests: New file.
30287 * tests/test-allocsa.c: New file.
30289 2007-01-14 Bruno Haible <bruno@clisp.org>
30291 * modules/fchdir (Depends-on): Add absolute-header.
30292 * modules/unistd (Depends-on): Likewise.
30294 2006-12-30 Bruno Haible <bruno@clisp.org>
30296 * modules/fchdir: New file.
30297 * modules/unistd (Files): Add lib/unistd_.h.
30298 (Makefile.am): Generate unistd.h from unistd_.h.
30299 * lib/fchdir.c: New file.
30300 * lib/dirent_.h: New file.
30301 * lib/unistd_.h: New file.
30302 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
30303 * m4/fchdir.m4: New file.
30304 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
30305 (gl_HEADER_UNISTD): Invoke it.
30306 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
30308 * lib/backupfile.c (opendir, closedir): Undefine.
30309 * lib/chown.c (open, close): Undefine.
30310 * lib/clean-temp.c (open, close): Undefine.
30311 * lib/copy-file.c (open, close): Undefine.
30312 * lib/execute.c (open, close): Undefine.
30313 * lib/fsusage.c (open, close): Undefine.
30314 * lib/gc-gnulib.c (open, close): Undefine.
30315 * lib/getcwd.c (opendir, closedir): Undefine.
30316 * lib/glob.c (opendir, closedir): Undefine.
30317 * lib/javacomp.c (open, close): Undefine.
30318 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
30319 * lib/openat-proc.c (open, close): Undefine.
30320 * lib/pagealign_alloc.c (open, close): Undefine.
30321 * lib/pipe.c (open, close): Undefine.
30322 * lib/progreloc.c (open, close): Undefine.
30323 * lib/savedir.c (opendir, closedir): Undefine.
30324 * lib/utime.c (open, close): Undefine.
30325 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
30327 2007-01-10 Bruno Haible <bruno@clisp.org>
30329 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
30331 2007-01-12 Eric Blake <ebb9@byu.net>
30333 Provide a robust <wchar.h>. Further simplifications are now
30334 possible in other modules, but not included here.
30335 * modules/wchar: New module.
30336 * m4/wchar.m4: New file.
30337 * lib/wchar_.h: Likewise.
30338 * modules/mbchar (Depends-on): Depend on wchar, as the first use
30340 * MODULES.html.sh (Extended multibyte and wide character utilities):
30343 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
30345 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
30346 to a reasonable default for memory allocation.
30347 (xreadlink): Don't allocate a huge buffer, to work around a buggy
30348 file system that reports garbage st_size values for symlinks.
30349 Problem reported by Liyang Hu.
30351 2007-01-11 Simon Josefsson <simon@josefsson.org>
30353 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
30354 Emacs .#* auto-save files).
30356 2007-01-11 Bruno Haible <bruno@clisp.org>
30358 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
30361 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
30363 Use @...@ consistently in lib/wctype_.h.
30364 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
30365 on it being set to 1 or 0.
30366 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
30367 go back to AC_SUBSTing it.
30368 * modules/wctype (Makefile.am): Undo previous change.
30370 2007-01-10 Eric Blake <ebb9@byu.net>
30372 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
30373 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
30374 * modules/wctype (Makefile.am): Likewise.
30375 Reported by Chris McGuire.
30377 2007-01-10 Jim Meyering <jim@meyering.net>
30379 fts.c: a small readability/maintainability improvement
30380 * lib/fts.c (fts_read): Make this code slightly more readable and
30381 maintainable by hoisting the "sp->fts_cur = p" assignments to
30382 immediately follow the statements that set P. Derived from
30383 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
30385 2007-01-10 Eric Blake <ebb9@byu.net>
30387 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
30388 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
30389 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30390 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30391 Reported by Chris McGuire.
30393 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30395 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
30398 2007-01-09 Bruno Haible <bruno@clisp.org>
30400 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
30401 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
30403 (func_module): Use them.
30405 2007-01-09 Bruno Haible <bruno@clisp.org>
30407 * modules/unistr/base: New file.
30408 * lib/unistr.h: New file.
30410 * modules/unistr/u8-to-u16: New file.
30411 * lib/unistr/u8-to-u16.c: New file.
30413 * modules/unistr/u8-to-u32: New file.
30414 * lib/unistr/u8-to-u32.c: New file.
30416 * modules/unistr/u16-to-u8: New file.
30417 * lib/unistr/u16-to-u8.c: New file.
30419 * modules/unistr/u16-to-u32: New file.
30420 * lib/unistr/u16-to-u32.c: New file.
30422 * modules/unistr/u32-to-u8: New file.
30423 * lib/unistr/u32-to-u8.c: New file.
30425 * modules/unistr/u32-to-u16: New file.
30426 * lib/unistr/u32-to-u16.c: New file.
30428 * modules/unistr/u8-check: New file.
30429 * modules/unistr/u16-check: New file.
30430 * modules/unistr/u32-check: New file.
30431 * lib/unistr/u8-check.c: New file.
30432 * lib/unistr/u16-check.c: New file.
30433 * lib/unistr/u32-check.c: New file.
30435 * modules/unistr/u8-chr: New file.
30436 * modules/unistr/u16-chr: New file.
30437 * modules/unistr/u32-chr: New file.
30438 * lib/unistr/u8-chr.c: New file.
30439 * lib/unistr/u16-chr.c: New file.
30440 * lib/unistr/u32-chr.c: New file.
30442 * modules/unistr/u8-cmp: New file.
30443 * modules/unistr/u16-cmp: New file.
30444 * modules/unistr/u32-cmp: New file.
30445 * lib/unistr/u8-cmp.c: New file.
30446 * lib/unistr/u16-cmp.c: New file.
30447 * lib/unistr/u32-cmp.c: New file.
30449 * modules/unistr/u8-cpy: New file.
30450 * modules/unistr/u16-cpy: New file.
30451 * modules/unistr/u32-cpy: New file.
30452 * lib/unistr/u8-cpy.c: New file.
30453 * lib/unistr/u16-cpy.c: New file.
30454 * lib/unistr/u32-cpy.c: New file.
30455 * lib/unistr/u-cpy.h: New file.
30457 * modules/unistr/u8-cpy-alloc: New file.
30458 * modules/unistr/u16-cpy-alloc: New file.
30459 * modules/unistr/u32-cpy-alloc: New file.
30460 * lib/unistr/u8-cpy-alloc.c: New file.
30461 * lib/unistr/u16-cpy-alloc.c: New file.
30462 * lib/unistr/u32-cpy-alloc.c: New file.
30463 * lib/unistr/u-cpy-alloc.h: New file.
30465 * modules/unistr/u8-endswith: New file.
30466 * modules/unistr/u16-endswith: New file.
30467 * modules/unistr/u32-endswith: New file.
30468 * lib/unistr/u8-endswith.c: New file.
30469 * lib/unistr/u16-endswith.c: New file.
30470 * lib/unistr/u32-endswith.c: New file.
30471 * lib/unistr/u-endswith.h: New file.
30473 * modules/unistr/u8-mblen: New file.
30474 * modules/unistr/u16-mblen: New file.
30475 * modules/unistr/u32-mblen: New file.
30476 * lib/unistr/u8-mblen.c: New file.
30477 * lib/unistr/u16-mblen.c: New file.
30478 * lib/unistr/u32-mblen.c: New file.
30480 * modules/unistr/u8-mbtouc: New file.
30481 * modules/unistr/u16-mbtouc: New file.
30482 * modules/unistr/u32-mbtouc: New file.
30483 * lib/unistr/u8-mbtouc.c: New file.
30484 * lib/unistr/u16-mbtouc.c: New file.
30485 * lib/unistr/u32-mbtouc.c: New file.
30487 * modules/unistr/u8-mbtouc-safe: New file.
30488 * modules/unistr/u16-mbtouc-safe: New file.
30489 * modules/unistr/u32-mbtouc-safe: New file.
30490 * lib/unistr/u8-mbtouc-safe.c: New file.
30491 * lib/unistr/u16-mbtouc-safe.c: New file.
30492 * lib/unistr/u32-mbtouc-safe.c: New file.
30494 * modules/unistr/u8-move: New file.
30495 * modules/unistr/u16-move: New file.
30496 * modules/unistr/u32-move: New file.
30497 * lib/unistr/u8-move.c: New file.
30498 * lib/unistr/u16-move.c: New file.
30499 * lib/unistr/u32-move.c: New file.
30500 * lib/unistr/u-move.h: New file.
30502 * modules/unistr/u8-next: New file.
30503 * modules/unistr/u16-next: New file.
30504 * modules/unistr/u32-next: New file.
30505 * lib/unistr/u8-next.c: New file.
30506 * lib/unistr/u16-next.c: New file.
30507 * lib/unistr/u32-next.c: New file.
30509 * modules/unistr/u8-prev: New file.
30510 * modules/unistr/u16-prev: New file.
30511 * modules/unistr/u32-prev: New file.
30512 * lib/unistr/u8-prev.c: New file.
30513 * lib/unistr/u16-prev.c: New file.
30514 * lib/unistr/u32-prev.c: New file.
30516 * modules/unistr/u8-set: New file.
30517 * modules/unistr/u16-set: New file.
30518 * modules/unistr/u32-set: New file.
30519 * lib/unistr/u8-set.c: New file.
30520 * lib/unistr/u16-set.c: New file.
30521 * lib/unistr/u32-set.c: New file.
30522 * lib/unistr/u-set.h: New file.
30524 * modules/unistr/u8-startswith: New file.
30525 * modules/unistr/u16-startswith: New file.
30526 * modules/unistr/u32-startswith: New file.
30527 * lib/unistr/u8-startswith.c: New file.
30528 * lib/unistr/u16-startswith.c: New file.
30529 * lib/unistr/u32-startswith.c: New file.
30530 * lib/unistr/u-startswith.h: New file.
30532 * modules/unistr/u8-stpcpy: New file.
30533 * modules/unistr/u16-stpcpy: New file.
30534 * modules/unistr/u32-stpcpy: New file.
30535 * lib/unistr/u8-stpcpy.c: New file.
30536 * lib/unistr/u16-stpcpy.c: New file.
30537 * lib/unistr/u32-stpcpy.c: New file.
30538 * lib/unistr/u-stpcpy.h: New file.
30540 * modules/unistr/u8-stpncpy: New file.
30541 * modules/unistr/u16-stpncpy: New file.
30542 * modules/unistr/u32-stpncpy: New file.
30543 * lib/unistr/u8-stpncpy.c: New file.
30544 * lib/unistr/u16-stpncpy.c: New file.
30545 * lib/unistr/u32-stpncpy.c: New file.
30546 * lib/unistr/u-stpncpy.h: New file.
30548 * modules/unistr/u8-strcat: New file.
30549 * modules/unistr/u16-strcat: New file.
30550 * modules/unistr/u32-strcat: New file.
30551 * lib/unistr/u8-strcat.c: New file.
30552 * lib/unistr/u16-strcat.c: New file.
30553 * lib/unistr/u32-strcat.c: New file.
30554 * lib/unistr/u-strcat.h: New file.
30556 * modules/unistr/u8-strchr: New file.
30557 * modules/unistr/u16-strchr: New file.
30558 * modules/unistr/u32-strchr: New file.
30559 * lib/unistr/u8-strchr.c: New file.
30560 * lib/unistr/u16-strchr.c: New file.
30561 * lib/unistr/u32-strchr.c: New file.
30563 * modules/unistr/u8-strcmp: New file.
30564 * modules/unistr/u16-strcmp: New file.
30565 * modules/unistr/u32-strcmp: New file.
30566 * lib/unistr/u8-strcmp.c: New file.
30567 * lib/unistr/u16-strcmp.c: New file.
30568 * lib/unistr/u32-strcmp.c: New file.
30570 * modules/unistr/u8-strcpy: New file.
30571 * modules/unistr/u16-strcpy: New file.
30572 * modules/unistr/u32-strcpy: New file.
30573 * lib/unistr/u8-strcpy.c: New file.
30574 * lib/unistr/u16-strcpy.c: New file.
30575 * lib/unistr/u32-strcpy.c: New file.
30576 * lib/unistr/u-strcpy.h: New file.
30578 * modules/unistr/u8-strcspn: New file.
30579 * modules/unistr/u16-strcspn: New file.
30580 * modules/unistr/u32-strcspn: New file.
30581 * lib/unistr/u8-strcspn.c: New file.
30582 * lib/unistr/u16-strcspn.c: New file.
30583 * lib/unistr/u32-strcspn.c: New file.
30584 * lib/unistr/u-strcspn.h: New file.
30586 * modules/unistr/u8-strdup: New file.
30587 * modules/unistr/u16-strdup: New file.
30588 * modules/unistr/u32-strdup: New file.
30589 * lib/unistr/u8-strdup.c: New file.
30590 * lib/unistr/u16-strdup.c: New file.
30591 * lib/unistr/u32-strdup.c: New file.
30592 * lib/unistr/u-strdup.h: New file.
30594 * modules/unistr/u8-strlen: New file.
30595 * modules/unistr/u16-strlen: New file.
30596 * modules/unistr/u32-strlen: New file.
30597 * lib/unistr/u8-strlen.c: New file.
30598 * lib/unistr/u16-strlen.c: New file.
30599 * lib/unistr/u32-strlen.c: New file.
30600 * lib/unistr/u-strlen.h: New file.
30602 * modules/unistr/u8-strmblen: New file.
30603 * modules/unistr/u16-strmblen: New file.
30604 * modules/unistr/u32-strmblen: New file.
30605 * lib/unistr/u8-strmblen.c: New file.
30606 * lib/unistr/u16-strmblen.c: New file.
30607 * lib/unistr/u32-strmblen.c: New file.
30609 * modules/unistr/u8-strmbtouc: New file.
30610 * modules/unistr/u16-strmbtouc: New file.
30611 * modules/unistr/u32-strmbtouc: New file.
30612 * lib/unistr/u8-strmbtouc.c: New file.
30613 * lib/unistr/u16-strmbtouc.c: New file.
30614 * lib/unistr/u32-strmbtouc.c: New file.
30616 * modules/unistr/u8-strncat: New file.
30617 * modules/unistr/u16-strncat: New file.
30618 * modules/unistr/u32-strncat: New file.
30619 * lib/unistr/u8-strncat.c: New file.
30620 * lib/unistr/u16-strncat.c: New file.
30621 * lib/unistr/u32-strncat.c: New file.
30622 * lib/unistr/u-strncat.h: New file.
30624 * modules/unistr/u8-strncmp: New file.
30625 * modules/unistr/u16-strncmp: New file.
30626 * modules/unistr/u32-strncmp: New file.
30627 * lib/unistr/u8-strncmp.c: New file.
30628 * lib/unistr/u16-strncmp.c: New file.
30629 * lib/unistr/u32-strncmp.c: New file.
30631 * modules/unistr/u8-strncpy: New file.
30632 * modules/unistr/u16-strncpy: New file.
30633 * modules/unistr/u32-strncpy: New file.
30634 * lib/unistr/u8-strncpy.c: New file.
30635 * lib/unistr/u16-strncpy.c: New file.
30636 * lib/unistr/u32-strncpy.c: New file.
30637 * lib/unistr/u-strncpy.h: New file.
30639 * modules/unistr/u8-strnlen: New file.
30640 * modules/unistr/u16-strnlen: New file.
30641 * modules/unistr/u32-strnlen: New file.
30642 * lib/unistr/u8-strnlen.c: New file.
30643 * lib/unistr/u16-strnlen.c: New file.
30644 * lib/unistr/u32-strnlen.c: New file.
30645 * lib/unistr/u-strnlen.h: New file.
30647 * modules/unistr/u8-strpbrk: New file.
30648 * modules/unistr/u16-strpbrk: New file.
30649 * modules/unistr/u32-strpbrk: New file.
30650 * lib/unistr/u8-strpbrk.c: New file.
30651 * lib/unistr/u16-strpbrk.c: New file.
30652 * lib/unistr/u32-strpbrk.c: New file.
30653 * lib/unistr/u-strpbrk.h: New file.
30655 * modules/unistr/u8-strrchr: New file.
30656 * modules/unistr/u16-strrchr: New file.
30657 * modules/unistr/u32-strrchr: New file.
30658 * lib/unistr/u8-strrchr.c: New file.
30659 * lib/unistr/u16-strrchr.c: New file.
30660 * lib/unistr/u32-strrchr.c: New file.
30662 * modules/unistr/u8-strspn: New file.
30663 * modules/unistr/u16-strspn: New file.
30664 * modules/unistr/u32-strspn: New file.
30665 * lib/unistr/u8-strspn.c: New file.
30666 * lib/unistr/u16-strspn.c: New file.
30667 * lib/unistr/u32-strspn.c: New file.
30668 * lib/unistr/u-strspn.h: New file.
30670 * modules/unistr/u8-strstr: New file.
30671 * modules/unistr/u16-strstr: New file.
30672 * modules/unistr/u32-strstr: New file.
30673 * lib/unistr/u8-strstr.c: New file.
30674 * lib/unistr/u16-strstr.c: New file.
30675 * lib/unistr/u32-strstr.c: New file.
30676 * lib/unistr/u-strstr.h: New file.
30678 * modules/unistr/u8-strtok: New file.
30679 * modules/unistr/u16-strtok: New file.
30680 * modules/unistr/u32-strtok: New file.
30681 * lib/unistr/u8-strtok.c: New file.
30682 * lib/unistr/u16-strtok.c: New file.
30683 * lib/unistr/u32-strtok.c: New file.
30684 * lib/unistr/u-strtok.h: New file.
30686 * modules/unistr/u8-uctomb: New file.
30687 * modules/unistr/u16-uctomb: New file.
30688 * modules/unistr/u32-uctomb: New file.
30689 * lib/unistr/u8-uctomb.c: New file.
30690 * lib/unistr/u16-uctomb.c: New file.
30691 * lib/unistr/u32-uctomb.c: New file.
30693 * MODULES.html.sh (Unicode string functions): Add the new modules.
30695 2007-01-08 Bruno Haible <bruno@clisp.org>
30697 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
30698 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
30701 2007-01-08 Karl Berry <karl@gnu.org>
30703 * doc/error.texi: mention that main() fns must set program_name
30704 when progname is used.
30706 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
30708 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
30709 WCTYPE_H is empty, for the benefit of builds from non-distclean
30710 directories. Problem reported by Eric Blake in
30711 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
30713 2007-01-08 Bruno Haible <bruno@clisp.org>
30715 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
30716 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
30717 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
30718 PROVIDE_CANONICALIZE_FILENAME_MODE.
30719 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
30721 2007-01-08 Bruno Haible <bruno@clisp.org>
30723 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
30724 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
30725 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
30726 * lib/fts.c: Likewise.
30727 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
30729 2006-12-25 Bruno Haible <bruno@clisp.org>
30731 * modules/utf8-ucs4-safe: New file.
30732 * lib/utf8-ucs4-safe.h: New file.
30733 * lib/unistr/utf8-ucs4-safe.c: New file.
30735 * modules/utf16-ucs4-safe: New file.
30736 * lib/utf16-ucs4-safe.h: New file.
30737 * lib/unistr/utf16-ucs4-safe.c: New file.
30739 * MODULES.html.sh (Unicode string functions): Add the new modules.
30741 2007-01-08 Bruno Haible <bruno@clisp.org>
30743 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
30744 (Depends-on): Add unitypes.
30745 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
30746 (u8_mbtouc_aux): Move out to separate file.
30747 (u8_mbtouc): Use ucs4_t, uint8_t types.
30748 * lib/unistr/utf8-ucs4.c: New file.
30750 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
30751 (Depends-on): Add unitypes.
30752 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
30753 (u16_mbtouc_aux): Move out to separate file.
30754 (u16_mbtouc): Use ucs4_t, uint16_t types.
30755 * lib/unistr/utf16-ucs4.c: New file.
30757 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
30758 (Depends-on): Add unitypes.
30759 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
30760 (u8_uctomb_aux): Move out to separate file.
30761 (u8_uctomb): Use ucs4_t, uint8_t types.
30762 * lib/unistr/ucs4-utf8.c: New file.
30764 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
30765 (Depends-on): Add unitypes.
30766 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
30767 (u16_uctomb_aux): Move out to separate file.
30768 (u16_uctomb): Use ucs4_t, uint16_t types.
30769 * lib/unistr/ucs4-utf16.c: New file.
30771 2006-12-25 Bruno Haible <bruno@clisp.org>
30773 * modules/unitypes: New file.
30774 * lib/unitypes.h: New file.
30775 * MODULES.html.sh (func_all_modules): New section "Unicode string
30776 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
30777 this section. Add unitypes.
30779 2007-01-08 Bruno Haible <bruno@clisp.org>
30781 Avoid variable names that conflict with those from libtool.
30782 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
30783 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
30784 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
30785 library_names_spec to acl_library_names_spec, hardcode_* to
30787 Reported by Ralf Wildenhues.
30789 2007-01-08 Bruno Haible <bruno@clisp.org>
30791 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
30793 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
30795 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
30796 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
30798 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
30800 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
30801 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
30802 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
30803 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
30805 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
30807 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
30808 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
30809 GC_USE_<algorithm>.
30810 * lib/gc-libgcrypt.c: Likewise.
30811 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
30812 * modules/gc-arctwo (configure.ac): Likewise.
30813 * modules/gc-des (configure.ac): Likewise.
30814 * modules/gc-hmac-md5 (configure.ac): Likewise.
30815 * modules/gc-hmac-sha1 (configure.ac): Likewise.
30816 * modules/gc-md2 (configure.ac): Likewise.
30817 * modules/gc-md4 (configure.ac): Likewise.
30818 * modules/gc-md5 (configure.ac): Likewise.
30819 * modules/gc-random (configure.ac): Likewise.
30820 * modules/gc-rijndael (configure.ac): Likewise.
30821 * modules/gc-sha1 (configure.ac): Likewise.
30823 2007-01-08 Bruno Haible <bruno@clisp.org>
30825 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
30827 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
30829 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
30831 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
30832 * modules/fcntl-safer (configure.ac): Likewise.
30833 * modules/fopen-safer (configure.ac): Likewise.
30834 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
30835 GNULIB_FWRITEERROR macro definition.
30837 2007-01-08 Bruno Haible <bruno@clisp.org>
30839 * m4/gnulib-common.m4: New file.
30840 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
30841 (func_get_filelist): Add m4/gnulib-common.m4.
30843 2007-01-08 Bruno Haible <bruno@clisp.org>
30845 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
30848 2007-01-08 Jim Meyering <jim@meyering.net>
30850 Use a more robust test for a "can't happen" condition.
30851 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
30852 narrowed the st_size value. Presuming the "can't happen" condition
30853 is true, that narrowing could conceivably convert an invalid st_size
30854 value into a valid one. Instead, use a change based on Matthew
30855 Woehlke's original patch.
30857 Slight readability improvement: use an assert-like macro
30858 in place of literal "abort ()" uses.
30859 * lib/fts.c (fts_assert): Define.
30860 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
30861 Use this macro instead of a bare 'abort'.
30863 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
30865 Don't worry about using IRIX 5.3's wctype.h broken definitions;
30866 simply work around them.
30867 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
30868 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
30869 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
30871 Don't bother to define as macros, since the standard doesn't require it.
30872 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
30873 longer worry about IRIX 5.3.
30874 (HAVE_WCTYPE_CTMP_BUG): Remove.
30876 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
30878 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
30879 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
30880 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30881 Problems reported by Georg Schwarz for IRIX 5.3.
30883 * gnulib-tool (autoconf_minversion): Take the maximum version number
30884 found, not the minimum. Problem reported by James Youngman.
30886 2007-01-03 Karl Berry <karl@gnu.org>
30888 * doc/error.texi: new file, explaining interaction with progname.
30889 * doc/gnulib.texi: include it. Update copyright.
30891 2007-01-03 Simon Josefsson <simon@josefsson.org>
30893 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
30894 AC_CANONICAL_HOST, to improve autobuild outputs.
30896 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
30897 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30899 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
30900 sockets, server sockets, and other file descriptors. Count errors
30901 to compute the return value. Reorder the code a bit to be easier
30902 to follow. Don't set event bits that were not requested (except
30903 POLLERR and POLLHUP).
30905 2007-01-01 Bruno Haible <bruno@clisp.org>
30907 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
30909 2007-01-03 Jim Meyering <jim@meyering.net>
30911 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
30913 2007-01-02 Bruno Haible <bruno@clisp.org>
30915 * modules/settime (Include): Require timespec.h.
30916 * modules/nanosleep (Include): Likewise.
30918 2007-01-01 Bruno Haible <bruno@clisp.org>
30920 * gnulib-tool (func_emit_copyright_notice): Bump year.
30921 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
30923 2007-01-01 Bruno Haible <bruno@clisp.org>
30925 Improve support for OpenBSD.
30926 * build-aux/config.rpath (libname_spec): Export.
30927 (library_names_spec): New variable. Export.
30928 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
30929 library_names_spec from the config.rpath output. Locate shared library
30930 through the name pattern in library_names_spec.
30932 2007-01-01 Eric Blake <ebb9@byu.net>
30934 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
30936 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
30938 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
30939 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
30940 assume the C locale, and avoid an "eval" that could cause trouble.
30941 Problem with SORT reported by Bob Proulx.
30943 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
30944 Define. Trivial patch from Henning Nielsen Lund, originally
30945 sent to bug-grep@gnu.org today.
30947 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
30949 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
30950 struct stat. Problem reported by Henning Nielsen Lund.
30951 * lib/acl.c: Include acl.h first, to check interface. Don't
30952 bother to include sys/types.h and sys/stat.h again.
30954 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
30956 Import the following change from libc; problem reported by
30959 2005-10-13 Ulrich Drepper <drepper@redhat.com>
30962 * lib/argp.h: Remove __NTH for __argp_usage inline function.
30964 2006-12-28 Jim Meyering <jim@meyering.net>
30966 * build-aux/announce-gen: Do not assume that the package
30967 builds any of tar.gz, tar.bz2, and .xdelta files.
30968 Suggestion from Simon Josefsson.
30970 2006-12-28 Simon Josefsson <simon@josefsson.org>
30972 * modules/announce-gen: New file.
30974 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
30976 * lib/mbchar.h: Just include <wctype.h>; the wctype module
30977 handles its gotchas now.
30978 * lib/mbswidth.c: Likewise.
30979 * lib/wcwidth.h: Likewise.
30980 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
30981 and iswcntrl; the wctype module does this stuff now.
30982 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30983 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30984 * modules/mbchar (Depends-on): Add wctype.
30985 * modules/mbswidth (Depends-on): Likewise.
30986 * modules/wcwidth (Depends-on): Likewise.
30988 2006-12-27 Eric Blake <ebb9@byu.net>
30990 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
30991 module uses more than what <wctype.h> is required to provide.
30993 2006-12-26 Eric Blake <ebb9@byu.net>
30995 * gnulib-tool (sed_extract_prog): Avoid space-tab.
30997 2006-12-26 Eric Blake <ebb9@byu.net>
30999 * modules/absolute-header: New module.
31000 * modules/fcntl (Depends-on): Depend on it.
31001 * modules/inttypes (Depends-on): Likewise.
31002 * modules/stdint (Depends-on): Likewise.
31003 * modules/sys_stat (Depends-on): Likewise.
31004 * modules/wctype (Depends-on): Likewise.
31005 * MODULES.html.sh (Support for building libraries and
31006 executables): Document it.
31008 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
31010 * gnulib-tool (SED): Remove, undoing previous change.
31011 The problem was that it broke coreutils on Solaris, because
31012 "sed --posix" leaked into a makefile.
31013 (sed): New alias, if 'alias' and GNU sed.
31015 2006-12-24 Jim Meyering <jim@meyering.net>
31017 Work around an fchownat bug in glibc-2.4:
31018 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
31019 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
31020 in spite of the -P option.
31021 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
31023 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
31024 * modules/openat (Files): Add lib/fchownat.c.
31025 * lib/openat.c (fchownat): Don't define here. Move to...
31026 * lib/fchownat.c: ...this new file.
31028 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
31030 Fix bug reported by Bruno Haible in
31031 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
31032 where quotearg.c didn't compile on Mac OS X 10.2 because it
31033 lacks <wchar.h> and wint_t.
31034 * lib/wctype_.h (__wctype_wint_t): New type.
31035 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
31036 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
31037 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
31038 Arg is now of type __wctype_wint_t, not wint_t.
31039 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
31040 substitute HAVE_WINT_T.
31041 * modules/wctype (Files): Add m4/wint_t.m4.
31042 (wctype.h): Substitute HAVE_WINT_T.
31044 2006-12-23 Bruno Haible <bruno@clisp.org>
31046 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
31048 2006-12-23 Bruno Haible <bruno@clisp.org>
31050 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
31052 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
31055 2006-12-22 Bruno Haible <bruno@clisp.org>
31057 * lib/copy-file.c: Include acl.h.
31058 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
31059 Close the file descriptors only after being done with copy_acl.
31060 * modules/copy-file (Depends-on): Add acl.
31062 2006-12-22 Bruno Haible <bruno@clisp.org>
31064 * gnulib-tool (SED): New variable.
31065 Use $SED instead of sed everywhere.
31067 2006-12-22 Bruno Haible <bruno@clisp.org>
31069 * modules/no-c++: New file.
31070 * m4/no-c++.m4: New file.
31071 * MODULES.html.sh (Support for building libraries and executables):
31074 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
31076 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31077 Include <limits.h>, and use its INT_MAX to rewrite the
31078 j loop so that it does not overflow 'int'. Problem reported by
31080 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
31081 Play it safe by shifting left by 1 rather than multiplying by 2,
31082 as GCC is less likely to optimize this away when the value
31083 is signed (when it assumes overflow leads to undefined behavior).
31084 Also, don't assume time_t uses two's complement.
31086 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
31088 * MODULES.html.sh: New module wctype.
31089 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
31090 * lib/fnmatch.c: Don't bother to include <wchar.h> before
31091 <wctype.h>, since the new wctype module should fix this.
31092 * lib/quotearg.c: Include <wctype.h> unconditionally, since
31093 the wctype module should arrange for it.
31094 * lib/regex_internal.h: Likewise.
31095 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
31096 since the wctype module should handle this now.
31097 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
31098 * modules/fnmatch (Depends-on): Add wctype.
31099 * modules/quotearg (Depends-on): Likewise.
31100 * modules/regex (Depends-on): Likewise.
31102 2006-12-19 Bruno Haible <bruno@clisp.org>
31104 * lib/strdup.h [C++]: Wrap definitions in extern "C".
31105 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
31107 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31109 * modules/savewd (Depends-on): Fix dependency on fcntl.
31111 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
31113 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
31114 conforms to C99, rather than relying on the user's environment
31115 setting of STDINT_H.
31117 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
31118 and Eric Blake <ebb9@byu.net>
31120 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
31121 This is more consistent with the other defines here.
31122 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
31123 Port to z/OS. Problem reported by Paul Gilmartin.
31124 Change local vars to use gl_ prefix rather than ac_.
31125 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
31126 with other defines.
31127 * modules/double-slash-root: New module.
31128 * modules/dirname (Files): Remove m4/double-slash-root.m4.
31129 (Depends-on): Add double-slash-root.
31130 * MODULES.html.sh (File system functions): Mention new module.
31132 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
31134 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
31135 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
31136 This is for the benefit of gzip, which doesn't do i18n.
31138 2006-12-12 Jim Meyering <jim@meyering.net>
31140 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
31141 Reported by Andreas Schwab <schwab@suse.de>.
31143 2006-12-12 Bruno Haible <bruno@clisp.org>
31145 Merge these changes.
31146 2006-09-05 Bruno Haible <bruno@clisp.org>
31147 * lib/iconvme.c (iconv_string): No need to save and restore errno when
31148 iconv_alloc succeeded.
31149 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
31150 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
31151 test for " && dest " at the end - dest is always != NULL there. Call
31152 iconv with 4xNULL arguments initially, to reset the state. Call iconv
31153 with 2xNULL arguments, also to flush the state storage. Handle the
31154 IRIX iconv behaviour. Realloc the final result, to throw away unused
31157 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
31159 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
31160 and fchmodat unconditionally, since glibc 2.4 has them.
31161 Problem reported by Arkadiusz Miskiewicz.
31163 2006-12-10 Bruno Haible <bruno@clisp.org>
31165 * gnulib-tool (func_import): Show the include files only for those
31166 modules that are copied and specified.
31167 Reported by Karl Berry.
31169 2006-12-08 Jim Meyering <jim@meyering.net>
31171 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
31172 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
31174 * build-aux/announce-gen: Add two new options, both optional:
31175 --bootstrap-tools=TOOL_LIST
31176 a comma-separated list of tools, e.g.,
31177 autoconf,automake,bison,gnulib
31178 --gnulib-snapshot-date=DATE
31179 if gnulib is in the bootstrap tool list,
31180 then report this as the snapshot date.
31181 If not specified, use the current date/time.
31182 If you specify a date here, be sure it's UTC.
31184 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31186 * tests/test-argp-2.sh: Fix test to match actual output.
31187 (func_compare): Fix sed script to be portable.
31189 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
31191 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
31192 workaround for this case. It is not autoconfigured now; offhand
31193 it's hard to see how to autoconfigure it.
31195 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
31197 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
31198 a directory that is about to be chowned. Such a directory's
31199 initial file permissions should permit the owner only and this
31200 should not be changed until after the chown, since the group and
31201 other bits would be incorrect if they granted permission before
31204 Fix porting problem for iswctype reported by Georg Schwarz in:
31205 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
31206 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
31207 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
31208 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
31209 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31211 2006-12-03 Jim Meyering <jim@meyering.net>
31213 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
31214 p->fts_statp may not yet be defined.
31215 (fts_read): Instead, set it in the caller, once p->fts_statp is
31216 sure to be defined, and corresponds to a top-level directory.
31217 This bug made du -x fail. Here's the coreutils test case:
31218 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
31219 Reported by Mike Frysinger.
31221 2006-12-01 Jim Meyering <jim@meyering.net>
31223 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
31224 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
31225 Reported by Simon Josefsson.
31227 2006-11-30 Jim Meyering <jim@meyering.net>
31229 * m4/warning.m4: Use the all-permissive copyright notice
31230 recommended by RMS (rather than LGPL).
31231 * m4/vararrays.m4: Likewise.
31232 * m4/flexmember.m4: Likewise.
31234 2006-11-29 Bruno Haible <bruno@clisp.org>
31236 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31237 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
31239 Reported by Simon Josefsson <simon@josefsson.org>.
31241 2006-11-28 James Youngman <jay@gnu.org>
31243 * README: Advise users that they might find the bug-gnulib@gnu.org
31244 and autotools-announce@gnu.org mailing lists useful.
31246 2006-11-28 Bruno Haible <bruno@clisp.org>
31248 * m4/ptrdiff_max.m4: Remove file.
31250 2006-11-21 Bruno Haible <bruno@clisp.org>
31252 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
31254 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31255 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
31257 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31258 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
31260 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31262 2006-11-28 Jim Meyering <jim@meyering.net>
31264 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
31265 warning from "gcc -Wshadow" about shadowing the builtin.
31267 2006-11-27 Bruno Haible <bruno@clisp.org>
31269 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
31271 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31273 2006-11-27 Bruno Haible <bruno@clisp.org>
31274 Paul Eggert <eggert@cs.ucla.edu>
31276 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
31278 2006-11-26 Bruno Haible <bruno@clisp.org>
31280 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31281 noinst_LTLIBRARIES.
31283 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
31284 Bruno Haible <bruno@clisp.org>
31286 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
31287 if compiling with "gcc -ansi".
31289 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
31291 Fix some incompatibilities with gcc -ansi -pedantic.
31292 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
31293 if compiling pedantically with GCC, unless it's C99 or later.
31294 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
31295 it mishandles gcc -ansi -pedantic as well.
31296 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
31298 * lib/regexec.c (check_node_accept_bytes): Don't use auto
31299 initializers for struct if -pedantic, unless it's C99 or later.
31301 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
31303 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
31304 Don't close an fd more than once. Identical atimes indicate
31305 success, not failure.
31307 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
31309 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
31311 2006-11-23 Jim Meyering <jim@meyering.net>
31313 * build-aux/announce-gen: New file. From coreutils.
31315 2006-11-22 Jim Meyering <jim@meyering.net>
31317 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
31318 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
31319 (fts_read): Use a temporary to narrow the overused st_size member
31320 before using it in a switch statement. Reported by Matthew Woehlke.
31322 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
31323 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31325 2006-11-20 Bruno Haible <bruno@clisp.org>
31327 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
31328 changequote instead of pairs of brackets.
31329 Reported by Andreas Schwab <schwab@suse.de>.
31331 2006-11-21 Jim Meyering <jim@meyering.net>
31333 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
31334 so as to remain compatible with older compilers.
31335 Patch from Michael Deutschmann.
31337 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
31339 * MODULES.html.sh (File system functions): Add openat.
31341 * lib/openat.h (rpl_fstatat): New macro, if
31342 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
31343 (fstatat): Define to rpl_fstatat under the same conditions,
31344 unless COMPILING_FSTATAT.
31345 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
31346 seems to have the bug.
31347 * lib/fstatat.c: New file.
31348 * modules/openat (Files): Add it.
31350 2006-11-20 Bruno Haible <bruno@clisp.org>
31352 * Makefile: New file.
31354 2006-11-20 Jim Meyering <jim@meyering.net>
31356 The beginnings of syntax-related checks for gnulib.
31357 * lib/Makefile: New file.
31358 * lib/t-idcache: New script. Ensure that the two halves of
31359 idcache.c stay in sync.
31361 * lib/idcache.c: Adjust comments in user- and group- portions to
31362 be more accurate, and to be consistent with one another.
31364 2006-11-20 Jim Meyering <jim@meyering.net>
31366 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
31367 continue using the flexible array member (thus, this module performs
31368 half as many malloc calls), with the addition that...
31369 (getgroup, getuser): Consistently record a non-match via an empty
31370 "name" string, and map an empty string match to a NULL return value.
31371 * modules/idcache (Depends-on): Re-add flexmember.
31373 * lib/idcache.c (getuser): Remove all uses of the register keyword.
31374 (getuidbyname, getgroup, getgidbyname): Likewise.
31376 Use cleaner syntax: NULL rather than 0.
31377 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
31379 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
31381 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
31382 It mishandled the case where the group was missing.
31383 Problem reported by Greg Schafer.
31384 * modules/idcache: Likewise.
31386 2006-11-18 Jim Meyering <jim@meyering.net>
31388 * check-module (%exempt_header): Add exception for some
31389 conditionally-included headers.
31391 * modules/i-ring (Depends-on): Add verify.
31392 (License): Change to LGPL.
31394 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
31396 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
31397 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
31398 and inttostr.h. Use snprintf rather than uinttostr, so that
31399 LGPLed code doesn't depend on GPLed.
31401 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
31403 * modules/inline (License): Change from GPL to LGPL.
31405 2006-11-17 Jim Meyering <jim@meyering.net>
31407 * modules/d-type (License): Switch to LGPL.
31409 2006-11-15 Bruno Haible <bruno@clisp.org>
31411 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
31413 2006-11-15 Eric Blake <ebb9@byu.net>
31415 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
31416 the module dependency.
31418 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31419 Bruno Haible <bruno@clisp.org>
31421 * gnulib-tool (func_create_testdir): Add license consistency check.
31423 2006-11-15 Eric Blake <ebb9@byu.net>
31425 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
31426 random "(cached)" in configure output.
31428 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31430 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
31431 test for conforming inttypes.h is both announced and cached.
31433 * MODULES.html.sh (seen_modules, seen_files): New variables.
31434 (func_module): Rewrite to use a few less gnulib-tool and sed
31435 invocations. Avoid a couple of quadratic algorithms for ...
31436 (missed_modules, missed_files): ... these, with ...
31437 (func_append, func_tmpdir): ... these new functions, from
31438 gnulib-tool. Analogously, install traps for cleanup.
31440 * tests/test-gc.c (main): Remove unused variables.
31441 * tests/test-read-file.c: Include stdlib.h, for 'free'.
31443 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
31445 * modules/inttostr (License): Change to LGPL.
31447 2006-11-14 Eric Blake <ebb9@byu.net>
31449 * modules/tempname (License): Change to LGPL.
31451 2006-11-14 Eric Blake <ebb9@byu.net>
31453 * doc/functions.texi (Function Portability): *printf functions on
31454 Cygwin now understand all POSIX size specifiers.
31456 2006-11-14 Bruno Haible <bruno@clisp.org>
31458 * modules/c-ctype (License): Change to LGPL.
31460 2006-11-12 Bruno Haible <bruno@clisp.org>
31462 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31463 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
31464 for GNOME libraries, for which the include files are installed in
31465 subdirectories of $prefix/include.
31467 2006-11-12 Bruno Haible <bruno@clisp.org>
31469 * m4/lib-link.m4: Require at least autoconf-2.54.
31470 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
31471 name to underscores for the --with option.
31473 2006-11-13 Bruno Haible <bruno@clisp.org>
31475 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
31476 the tests directory.
31477 Reported by Ralf Wildenhues.
31479 2006-11-13 Bruno Haible <bruno@clisp.org>
31481 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
31482 (func_emit_initmacro_end): Undo the override here.
31483 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
31484 Works around the famous automake error in coreutils.
31486 2006-11-13 Eric Blake <ebb9@byu.net>
31488 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
31489 element, not its node.
31491 2006-11-12 Bruno Haible <bruno@clisp.org>
31493 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
31494 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
31496 2006-11-12 Bruno Haible <bruno@clisp.org>
31498 * gnulib-tool: New option --local-symlink.
31499 (func_usage): Document it.
31500 (lsymbolic): New variable.
31501 (func_import, func_create_testdir): If --symlink was not specified,
31502 test whether --local-symlink was specified and the file comes from
31503 the local_gnulib_dir.
31505 2006-11-12 Bruno Haible <bruno@clisp.org>
31507 * gnulib-tool (func_ln): New function.
31508 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
31510 2006-11-12 Bruno Haible <bruno@clisp.org>
31512 Finish support for source files in subdirectories.
31513 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
31514 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
31516 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
31518 2006-11-12 Bruno Haible <bruno@clisp.org>
31520 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31521 EXTRA_lib_SOURCES augmentation.
31522 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
31524 2006-11-12 Jim Meyering <jim@meyering.net>
31526 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
31527 file descriptors. This also averts a failure on systems with
31528 native openat support when a traversed directory lacks "x" access.
31529 * lib/fts_.h: Include "i-ring.h"
31530 (struct FTS) [fts_fd_ring]: New member.
31531 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
31532 (FCHDIR): Add parentheses.
31533 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
31534 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
31535 When descending, rather than simply closing the previous
31536 fts_cwd_fd value, push that file descriptor onto the ring.
31537 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
31538 (fts_open): Initialize the new fd_ring member.
31539 (fts_close): Clear the ring.
31540 (fts_safe_changedir): When possible, use our new fd_ring to skip
31541 the diropen and fstat and dev/ino comparison that would normally
31542 accompany a virtual `chdir ("..")'.
31544 * modules/fts (Depends-on): Add i-ring.
31545 * modules/i-ring: New module.
31546 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
31547 * m4/i-ring.m4: New file.
31549 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31551 * gnulib-tool (func_create_testdir): Fix replacement of
31552 `build-aux' in configure.ac. Run autotools in gltests
31554 (func_create_testdir, func_create_megatestdir, test): There is
31555 no need for '--force' in most autotool invocations in a new
31556 tree. Actually fail the whole test if any of the tools, or the
31557 configure or make stages fail.
31559 Sync from Automake.
31560 * build-aux/gnupload: Revert last change. Add pointer to upload
31561 instructions of the GNU Maintenance Instructions.
31562 Suggestion by Karl Berry.
31564 2006-11-10 Jim Meyering <jim@meyering.net>
31566 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
31568 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
31570 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
31571 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
31572 (bind_textdomain_codeset) [! ENABLE_NLS]:
31573 Evaluate all the arguments. That way, callers get compatible behavior
31574 if the arguments have side effects. Also, it avoids some GCC
31575 diagnostics in some cases; Joel E. Denny reported problems when Bison
31576 was configured with --enable-gcc-warnigs.
31578 2006-11-10 Jim Meyering <jim@meyering.net>
31580 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
31581 relevant options in CFLAGS (like -O, -fno-inline) are taken into
31584 2006-11-10 Jim Meyering <jim@meyering.net>
31586 * modules/inline: New file/module.
31587 * modules/xalloc (Files): Remove m4/inline.m4.
31588 (Depends-on): Add inline, instead.
31589 * modules/oset: Likewise.
31590 * modules/list: Likewise.
31592 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
31594 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
31595 Problem reported by Matthew Woehlke.
31597 2006-11-09 Bruno Haible <bruno@clisp.org>
31599 * lib/tempname.c (gen_tempname): Remove variant that invokes
31601 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
31604 2006-11-08 Bruno Haible <bruno@clisp.org>
31606 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
31607 to 'yes' instead of 'cross-compiling'.
31609 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
31611 * lib/quotearg.h (quotearg_free): New decl.
31612 * lib/quotearg.c (quotearg_free): New function.
31613 (slot0, nslots, slotvec0, slotvec):
31614 Now file-scope so that quotearg_free can get at them.
31616 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31618 Sync from Automake.
31619 * build-aux/gnupload: Add missing 'gnu' to example URL.
31620 Report by Karl Berry.
31622 2006-11-08 Bruno Haible <bruno@clisp.org>
31624 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
31625 Suggested by Paul Eggert.
31627 2006-11-08 Jim Meyering <jim@meyering.net>
31629 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
31630 It's already included if !_LIBC.
31631 (fts_safe_changedir): Add a comment.
31633 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
31635 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
31636 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
31639 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
31640 definitions up, to avoid colliding with change below.
31641 (static_inline) [HAVE_INLINE]: New macro.
31642 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
31643 Provide extern decls when !HAVE_INLINE. Do not define unless
31644 static_inline is defined, either by us or by xmalloc.c. Use
31645 static_inline rather than static inline.
31646 (XCALLOC): Optimize sizeof(T) = 1 case.
31647 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
31649 2006-11-07 Bruno Haible <bruno@clisp.org>
31651 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
31652 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
31654 * modules/xalloc (Files): Add m4/inline.m4.
31656 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31658 * README: Fix typo.
31659 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
31660 (Miscellanous Notes): ...from this.
31662 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
31664 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
31665 Mention that offsetof should be used instead of sizeof.
31668 2006-11-07 Bruno Haible <bruno@clisp.org>
31670 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
31672 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
31674 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
31675 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
31676 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
31677 (gl_tree_add_before, gl_tree_add_after):
31678 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
31679 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
31680 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
31681 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
31682 (gl_linked_add_after, gl_linked_add_at): Likewise.
31683 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
31684 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
31685 (gl_tree_add_before, gl_tree_add_after): Likewise.
31686 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
31687 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
31688 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31690 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31692 * lib/gl_oset.h: Use C comment style, not C++ comment style.
31694 2006-11-06 Bruno Haible <bruno@clisp.org>
31696 * m4/inline.m4: New file.
31697 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
31698 * modules/list (Files): Add m4/inline.m4.
31699 * modules/oset (Files): Likewise.
31701 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
31703 * lib/idcache.c: Include <stddef.h>, for offsetof.
31704 (struct userid.name): Change from char * to a flexible array member.
31706 * modules/idcache (Depends-on): Add flexmember.
31708 * MODULES.html.sh (Core language properties): New module flexmember.
31709 * modules/flexmember, m4/flexmember.m4: New files.
31711 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
31712 inline functions that are identical with the old xnmalloc_inline,
31713 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
31714 that we can avoid some unnecessary integer multiplications and
31715 divisions in the common case where the element size is known at
31717 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
31719 (xnboundedmalloc): Remove.
31720 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
31721 arguments, for consistency with rest of this header.
31722 (xcharalloc): Rewrite using XNMALLOC.
31723 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
31724 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
31725 versions have been moved to lib/xalloc.h and renamed to be the
31726 non-*_inline versions.
31727 (xmalloc, xrealloc): Implement without reference to the xnmalloc
31728 and xnrealloc functions, since those functions are now inline and
31730 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
31731 renaming described above.
31732 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
31733 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
31734 captures the dependency in AC_C_INLINE.
31736 New module canonicalize-lgpl, proposed by Charles Wilson in
31737 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
31738 with a few small changes afterwards.
31739 * MODULES.html.sh (File system functions): New module
31741 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
31742 and canonicalize_file_name.
31743 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
31744 * modules/canonicalize-lgpl: New files.
31746 2006-11-05 Bruno Haible <bruno@clisp.org>
31748 * gnulib-tool (func_import, func_create_testdir): Create directories
31749 also for files in subdirectories of lib/.
31751 2006-11-05 Bruno Haible <bruno@clisp.org>
31753 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
31756 2006-11-03 Bruno Haible <bruno@clisp.org>
31758 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
31759 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
31760 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
31761 (xnboundedmalloc): New inline function.
31762 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
31763 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
31765 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
31767 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
31768 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
31769 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
31771 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
31772 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
31774 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
31775 gl_tree_add_after): Use XMALLOC instead of xmalloc.
31776 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
31778 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
31779 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
31780 gl_tree_add_after): Use XMALLOC instead of xmalloc.
31781 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
31782 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
31783 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
31784 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
31786 2006-11-03 Bruno Haible <bruno@clisp.org>
31788 * lib/c-ctype.h [C++]: Define functions without name mangling.
31789 * lib/fwriteerror.h [C++]: Likewise.
31790 * lib/gcd.h [C++]: Likewise.
31791 * lib/linebreak.h [C++]: Likewise.
31793 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
31795 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
31796 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
31797 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
31798 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
31799 Check for functions and headers just once.
31800 Check for declaration of canonicalize_file_name.
31801 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
31803 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
31805 * gnulib-tool (func_import): Fix typo in actioncmd.
31807 2006-11-02 Bruno Haible <bruno@clisp.org>
31809 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
31810 newline sequence in the Makefile.am snippet as a space, like "make"
31812 Reported by Roger Persson <perrog@gmail.com>.
31814 2006-11-01 Bruno Haible <bruno@clisp.org>
31816 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
31817 already declared in <string.h>.
31818 * lib/strcase.h (strncasecmp): Don't declare it if yes.
31820 2006-11-01 Bruno Haible <bruno@clisp.org>
31822 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
31823 * lib/strcase.h: Include <string.h>.
31824 (strcasecmp): Define to rpl_strcasecmp here.
31826 2006-11-01 Bruno Haible <bruno@clisp.org>
31828 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
31830 2006-11-01 Eric Blake <ebb9@byu.net>
31832 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
31834 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
31836 2006-10-29 Bruno Haible <bruno@clisp.org>
31838 Make it compile in C++ mode.
31839 * lib/full-write.c (full_rw): Add a cast.
31841 2006-11-01 Bruno Haible <bruno@clisp.org>
31843 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
31844 be POSIX compliant.
31845 Reported by Roger Persson <perrog@gmail.com>.
31847 2006-11-01 Eric Blake <ebb9@byu.net>
31849 * lib/getopt_.h: Fix comments.
31851 2006-10-31 Eric Blake <ebb9@byu.net>
31853 * modules/tmpdir (Depends-on): Add sys_stat.
31854 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
31855 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
31856 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
31857 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
31860 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
31862 Avoid some C++ diagnostics reported by Bruno Haible.
31863 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
31865 (quotearg_alloc): Use xcharalloc rather than xmalloc.
31866 (struct slotvec): Move to top level.
31867 (quotearg_n_options): Rewrite to avoid xmalloc.
31868 * lib/xalloc.h (xcharalloc): New function.
31869 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
31870 [defined __cplusplus]: Add function template that provides result
31871 type propagation. This part of the change is from Bruno Haible.
31873 2006-10-29 Bruno Haible <bruno@clisp.org>
31875 Make it compile in C++ mode.
31876 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
31877 * lib/strnlen1.c (strnlen1): Cast memchr result.
31878 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
31879 * lib/clean-temp.c (string_equals, string_hash): Add casts.
31880 (create_temp_dir): Rename local variable 'template'.
31881 (compile_csharp_using_sscli): Add cast.
31882 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
31883 * lib/findprog.c (find_in_path): Likewise.
31884 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
31885 * lib/wait-process.c (register_slave_subprocess): Likewise.
31887 2006-10-22 Bruno Haible <bruno@clisp.org>
31889 * modules/tsearch: New file.
31890 * lib/tsearch.h: New file.
31891 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
31892 * m4/tsearch.m4: New file.
31893 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
31895 2006-10-29 Eric Blake <ebb9@byu.net>
31897 * lib/arcfour.c: Assume config.h.
31898 * lib/arctwo.c: Likewise.
31899 * lib/base64.c: Likewise.
31900 * lib/check-version.c: Likewise.
31901 * lib/crc.c: Likewise.
31902 * lib/des.c: Likewise.
31903 * lib/gc-gnulib.c: Likewise.
31904 * lib/gc-libgcrypt.c: Likewise.
31905 * lib/gc-pbkdf2-sha1.c: Likewise.
31906 * lib/getaddrinfo.c: Likewise.
31907 * lib/getdelim.c: Likewise.
31908 * lib/getline.c: Likewise.
31909 * lib/hmac-md5.c: Likewise.
31910 * lib/hmac-sha1.c: Likewise.
31911 * lib/iconvme.c: Likewise.
31912 * lib/md2.c: Likewise.
31913 * lib/md4.c: Likewise.
31914 * lib/memxor.c: Likewise.
31915 * lib/read-file.c: Likewise.
31916 * lib/readline.c: Likewise.
31917 * lib/rijndael-alg-fst.c: Likewise.
31918 * lib/rijndael-api-fst.c: Likewise.
31919 * lib/xgetdomainname.c: Likewise.
31921 2006-10-28 Eric Blake <ebb9@byu.net>
31923 * lib/xstrndup.c: Assume config.h.
31925 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
31927 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
31928 stat-macros.h is now for our own macros, whereas stat_h is for
31929 macros in the <sys/stat.h> name space.
31930 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
31931 (STAT_MACROS_H): Remove.
31932 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
31933 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
31934 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
31935 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
31936 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
31937 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
31938 Move these macros to ...
31939 * lib/stat_.h: here. Don't include stat-macros.h.
31940 * lib/canonicalize.c: Don't include stat-macros.h.
31941 * lib/chown.c: Likewise.
31942 * lib/euidaccess.c: Likewise.
31943 * lib/file-type.c: Likewise.
31944 * lib/filemode.c: Likewise.
31945 * lib/glob.c: Likewise.
31946 * lib/isapipe.c: Likewise.
31947 * lib/lchown.c: Likewise.
31948 * lib/lstat.c: Likewise.
31949 * lib/mkdir-p.c: Likewise.
31950 * lib/rmdir.c: Likewise.
31951 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
31952 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
31953 unless mkdir isn't declared, to speed up 'configure'.
31954 Always create sys/stat.h, since it's unlikely any real sys/stat.h
31955 would define all the S_* symbols.
31956 * modules/canonicalize (Depends-on):
31957 Depend on sys_stat, not stat-macros.
31958 * modules/chown: Likewise.
31959 * modules/euidaccess: Likewise.
31960 * modules/filemode: Likewise.
31961 * modules/file-type: Likewise.
31962 * modules/glob: Likewise.
31963 * modules/isapipe: Likewise.
31964 * modules/lchown: Likewise.
31965 * modules/lstat: Likewise.
31966 * modules/mkancesdirs: Likewise.
31967 * modules/rmdir: Likewise.
31968 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
31969 * modules/modechange: Likewise.
31970 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
31971 (configure.ac): Remove gl_STAT_MACROS.
31972 * modules/sys_stat (Depends-on): Remove stat-macros.
31974 2006-10-27 Bruno Haible <bruno@clisp.org>
31976 * m4/signed.m4: Remove file.
31977 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
31979 * modules/vasnprintf (Files): Remove m4/signed.m4.
31981 2006-10-27 Bruno Haible <bruno@clisp.org>
31983 Update to GNU gettext 0.16.
31984 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
31985 m4/inttypes-h.m4, m4/signed.m4.
31986 * m4/gettext.m4: Update to GNU gettext 0.16.
31987 * m4/intl.m4: New file, from GNU gettext.
31988 * m4/intldir.m4: New file, from GNU gettext.
31989 * config/srclist.txt: Update
31991 2006-10-27 Eric Blake <ebb9@byu.net>
31993 * MODULES.html.sh: Document tempname.
31994 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
31996 (Files): Move lib/tempname.c...
31997 * modules/tempname: ...to this new module.
31998 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
31999 (gl_PREREQ_TEMPNAME): Move...
32000 * m4/tempname.m4: ...to this new file.
32001 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
32002 * modules/sys_stat (Depends-on): Add stat-macros.
32003 * lib/stat_.h (includes): Pick up stat macros.
32004 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
32005 if stat macros are broken.
32006 * lib/tempname.c (includes): No need to include "stat-macros.h".
32007 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
32008 (direxists, __path_search) [!_LIBC]: Don't compile these in
32009 gnulib; the tmpdir module covers that.
32010 * lib/tempname.h: New file.
32012 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
32014 * COPYING: Explain how gnulib-tool converts licence headers.
32015 Almost all wording by Eric Blake.
32017 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
32019 * lib/mbchar.h (is_basic_table): Make read-only.
32020 * lib/mbchar.c (is_basic_table): Likewise.
32021 Reported by John Darrington.
32023 2006-10-25 Bruno Haible <bruno@clisp.org>
32025 * lib/progname.h (set_program_name): Undefine before defining.
32027 2006-10-25 Bruno Haible <bruno@clisp.org>
32029 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
32030 false for non-gcc C++ compilers.
32031 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32033 2006-10-24 Bruno Haible <bruno@clisp.org>
32035 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
32036 iconv implementations like Irix iconv.
32038 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
32040 * modules/vararrays: New file.
32041 * m4/vararrays.m4: New file, taken from diffutils.
32042 * MODULES.html.sh: New module vararrays.
32044 2006-10-24 Karl Berry <karl@gnu.org>
32046 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
32047 Don't call GNU Unix.
32049 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32051 * users.txt: Add Libtool.
32055 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
32057 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
32058 to gnulib's policy of including config.h unconditionally.
32060 2006-10-24 Bruno Haible <bruno@clisp.org>
32062 * modules/wcwidth (Files): Add m4/wint_t.m4.
32063 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
32064 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
32066 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
32068 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
32069 to pacify GCC with some -W flags enabled. Problem reported by
32072 2006-10-24 Jim Meyering <jim@meyering.net>
32074 * MODULES.html.sh: Remove uinttostr. It's not a module.
32075 Reported by Karl Berry.
32077 2006-10-23 Bruno Haible <bruno@clisp.org>
32079 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
32081 2006-10-24 Bruno Haible <bruno@clisp.org>
32083 * lib/gl_list.h: Use C comment style, not C++ comment style.
32085 2006-10-23 Eric Blake <ebb9@byu.net>
32087 * lib/getaddrinfo.c (includes): Add missing include.
32089 2006-10-23 Bruno Haible <bruno@clisp.org>
32090 Paul Eggert <eggert@cs.ucla.edu>
32092 Ability to rename obstack_free.
32093 * lib/obstack.h (__obstack_free): New macro. Declare instead of
32095 (obstack_free): Invoke the __obstack_free macro.
32096 * lib/obstack.c (obstack_free): Use __obstack_free macro.
32098 2006-10-23 Bruno Haible <bruno@clisp.org>
32099 Paul Eggert <eggert@cs.ucla.edu>
32101 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
32102 __argc, __argv from the declaration. (They are defined as macros on
32105 2006-10-22 Bruno Haible <bruno@clisp.org>
32107 * doc/gnulib-intro.texi: New file.
32108 * doc/gnulib.texi: Include it.
32110 2006-10-21 Bruno Haible <bruno@clisp.org>
32112 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
32113 "Introduction", "Miscellanous Notes", "Particular Modules".
32115 2006-10-21 Bruno Haible <bruno@clisp.org>
32117 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32118 Change mostlyclean-local rule to avoid sh syntax error from bash
32119 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
32121 2006-10-23 Jim Meyering <jim@meyering.net>
32123 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
32124 in place of snprintf.
32126 * modules/inttostr (Files): Add lib/uinttostr.c.
32127 * lib/uinttostr.c (inttostr): New file/function.
32128 * lib/inttostr.h (uinttostr): Declare.
32129 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
32130 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
32132 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
32134 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
32136 * lib/canonicalize.c (ELOOP): Define if not already defined.
32137 Problem reported by Bruno Haible in
32138 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
32140 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
32142 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
32143 Problem reported by Perry Smith and Ville Laurikari.
32145 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
32148 2006-10-19 Bruno Haible <bruno@clisp.org>
32150 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
32153 2006-10-19 Bruno Haible <bruno@clisp.org>
32155 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
32158 2006-10-19 Bruno Haible <bruno@clisp.org>
32160 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
32162 2006-10-19 Bruno Haible <bruno@clisp.org>
32164 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
32167 2006-10-19 Bruno Haible <bruno@clisp.org>
32169 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
32172 2006-10-19 Bruno Haible <bruno@clisp.org>
32174 * gnulib-tool (func_create_testdir): Don't include ftruncate and
32175 mountlist by default.
32177 2006-10-16 Bruno Haible <bruno@clisp.org>
32179 * lib/c-strstr.c: Include c-strstr.h.
32181 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
32183 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
32186 2006-10-18 Bruno Haible <bruno@clisp.org>
32188 * lib/lock.h [C++]: Wrap definitions in extern "C".
32190 2006-10-18 Bruno Haible <bruno@clisp.org>
32192 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
32195 2006-10-18 Bruno Haible <bruno@clisp.org>
32197 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
32199 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
32201 * lib/xstrtol.h: Include gettext.h.
32202 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
32203 Problem reported by Eric Blake.
32204 * modules/xstrtol (Depends-on): Add gettext-h.
32206 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
32208 * lib/strftime.c (advance): New macro.
32209 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
32210 incomplete type, so you can't add 0 to it. Problem and patch
32211 reported by Eelco Dolstra for dietlibc.
32213 2006-10-18 Jim Meyering <jim@meyering.net>
32215 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
32216 type for a local, and rename it: s/up/user_proc/.
32218 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
32220 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
32221 READ_UTMP_USER_PROCESS.
32222 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
32224 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
32226 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
32227 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
32229 2006-10-17 Eric Blake <ebb9@byu.net>
32231 * lib/sigprocmask.c (sigprocmask): Fix typo.
32233 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
32235 * modules/clean-temp (Makefile.am): Don't add to make output...
32236 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
32239 2006-10-17 Bruno Haible <bruno@clisp.org>
32241 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
32242 differently if DEFAULT_TEXT_DOMAIN is set.
32244 2006-10-16 Bruno Haible <bruno@clisp.org>
32246 * lib/clean-temp.c: Include fwriteerror.h.
32248 2006-10-16 Bruno Haible <bruno@clisp.org>
32250 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
32252 2006-10-16 Bruno Haible <bruno@clisp.org>
32254 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
32255 * lib/sigprocmask.h: Include <sys/types.h>.
32256 (sigset_t): Use the system's definition if present.
32258 2006-10-17 Eric Blake <ebb9@byu.net>
32260 * lib/xvasprintf.c (includes): Assume config.h.
32261 * lib/xasprintf.c (includes): Likewise.
32263 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
32265 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
32266 at least as wide as intmax_t.
32268 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
32270 (Imported from Automake.)
32271 * build-aux/gnupload: Update to version 1.1 of directive file.
32273 2006-10-16 Eric Blake <ebb9@byu.net>
32275 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
32276 match Automake 1.10a.
32278 2006-10-14 Bruno Haible <bruno@clisp.org>
32280 * modules/sigprocmask: New file.
32281 * lib/sigprocmask.h: New file.
32282 * lib/sigprocmask.c: New file.
32283 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
32284 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
32285 request sigprocmask.o.
32286 (gl_PREREQ_SIGPROCMASK): New macro.
32287 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
32288 (Depends-on): Add sigprocmask.
32289 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
32290 gt_SIGNALBLOCKING. Test for 'raise' only once.
32291 * lib/fatal-signal.c: Include sigprocmask.h.
32292 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
32293 unblock_fatal_signals): Define always.
32294 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32297 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
32299 Sync from Automake.
32300 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
32301 which incorrectly sets the mode of an existing destination
32302 directory. In some cases the unpatched install-sh could do the
32303 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
32304 system. We hope this is rare in practice, but it's clearly worth
32305 fixing. Problem reported by Alex Unleashed in
32306 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
32307 Also, don't bother to check for -m bugs unless we're using -m;
32308 suggested by Stepan Kasal.
32310 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32312 Sync from Automake.
32313 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
32314 `-c' flag, so they appear at the same position as in %FASTDEP%
32315 mode in depend2.am. Fixes build failure for FreeBSD's c89,
32316 which ignores unknown options only after the first non-option.
32317 Bug report against M4 by Nelson H. F. Beebe.
32319 2006-10-13 Jim Meyering <jim@meyering.net>
32321 Fix a bug in yesterday's change.
32322 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
32323 p->fts_statp->st_dev would be used uninitialized.
32324 Ensures that we always call fts_stat on the very first entry.
32325 Miklos Szeredi reported that find -xdev stopped working.
32327 2006-10-12 Bruno Haible <bruno@clisp.org>
32329 * gnulib-tool (func_get_automake_snippet): Append an automatically
32330 computed EXTRA_DIST augmentation.
32331 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
32332 * modules/alloca-opt (Makefile.am): Likewise.
32333 * modules/allocsa (Makefile.am): Likewise.
32334 * modules/arcfour (Makefile.am): Likewise.
32335 * modules/arctwo (Makefile.am): Likewise.
32336 * modules/argmatch (Makefile.am): Likewise.
32337 * modules/argz (Makefile.am): Likewise.
32338 * modules/atexit (Makefile.am): Likewise.
32339 * modules/backupfile (Makefile.am): Likewise.
32340 * modules/byteswap (Makefile.am): Likewise.
32341 * modules/c-strtod (Makefile.am): Likewise.
32342 * modules/c-strtold (Makefile.am): Likewise.
32343 * modules/calloc (Makefile.am): Likewise.
32344 * modules/canon-host (Makefile.am): Likewise.
32345 * modules/canonicalize (Makefile.am): Likewise.
32346 * modules/chdir-long (Makefile.am): Likewise.
32347 * modules/chdir-safer (Makefile.am): Likewise.
32348 * modules/check-version (Makefile.am): Likewise.
32349 * modules/chown (Makefile.am): Likewise.
32350 * modules/cloexec (Makefile.am): Likewise.
32351 * modules/close-stream (Makefile.am): Likewise.
32352 * modules/closeout (Makefile.am): Likewise.
32353 * modules/crc (Makefile.am): Likewise.
32354 * modules/csharpexec (Makefile.am): Likewise.
32355 * modules/cycle-check (Makefile.am): Likewise.
32356 * modules/des (Makefile.am): Likewise.
32357 * modules/dev-ino (Makefile.am): Likewise.
32358 * modules/dirfd (Makefile.am): Likewise.
32359 * modules/dirname (Makefile.am): Likewise.
32360 * modules/dup2 (Makefile.am): Likewise.
32361 * modules/eealloc (Makefile.am): Likewise.
32362 * modules/error (Makefile.am): Likewise.
32363 * modules/euidaccess (Makefile.am): Likewise.
32364 * modules/exclude (Makefile.am): Likewise.
32365 * modules/exitfail (Makefile.am): Likewise.
32366 * modules/fcntl-safer (Makefile.am): Likewise.
32367 * modules/fcntl (Makefile.am): Likewise.
32368 * modules/file-type (Makefile.am): Likewise.
32369 * modules/fileblocks (Makefile.am): Likewise.
32370 * modules/filemode (Makefile.am): Likewise.
32371 * modules/filenamecat (Makefile.am): Likewise.
32372 * modules/fnmatch (Makefile.am): Likewise.
32373 * modules/fopen-safer (Makefile.am): Likewise.
32374 * modules/fpending (Makefile.am): Likewise.
32375 * modules/fprintftime (Makefile.am): Likewise.
32376 * modules/free (Makefile.am): Likewise.
32377 * modules/fsusage (Makefile.am): Likewise.
32378 * modules/ftruncate (Makefile.am): Likewise.
32379 * modules/fts (Makefile.am): Likewise.
32380 * modules/gc-arcfour (Makefile.am): Likewise.
32381 * modules/gc-des (Makefile.am): Likewise.
32382 * modules/gc-hmac-md5 (Makefile.am): Likewise.
32383 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
32384 * modules/gc-md4 (Makefile.am): Likewise.
32385 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
32386 * modules/gc-sha1 (Makefile.am): Likewise.
32387 * modules/gc (Makefile.am): Likewise.
32388 * modules/getaddrinfo (Makefile.am): Likewise.
32389 * modules/getcwd (Makefile.am): Likewise.
32390 * modules/getdelim (Makefile.am): Likewise.
32391 * modules/getdomainname (Makefile.am): Likewise.
32392 * modules/getgroups (Makefile.am): Likewise.
32393 * modules/gethostname (Makefile.am): Likewise.
32394 * modules/gethrxtime (Makefile.am): Likewise.
32395 * modules/getline (Makefile.am): Likewise.
32396 * modules/getloadavg (Makefile.am): Likewise.
32397 * modules/getlogin_r (Makefile.am): Likewise.
32398 * modules/getndelim2 (Makefile.am): Likewise.
32399 * modules/getopt (Makefile.am): Likewise.
32400 * modules/getpagesize (Makefile.am): Likewise.
32401 * modules/getpass-gnu (Makefile.am): Likewise.
32402 * modules/getpass (Makefile.am): Likewise.
32403 * modules/getsubopt (Makefile.am): Likewise.
32404 * modules/gettime (Makefile.am): Likewise.
32405 * modules/gettimeofday (Makefile.am): Likewise.
32406 * modules/getugroups (Makefile.am): Likewise.
32407 * modules/getusershell (Makefile.am): Likewise.
32408 * modules/glob (Makefile.am): Likewise.
32409 * modules/group-member (Makefile.am): Likewise.
32410 * modules/hard-locale (Makefile.am): Likewise.
32411 * modules/hash (Makefile.am): Likewise.
32412 * modules/hmac-md5 (Makefile.am): Likewise.
32413 * modules/hmac-sha1 (Makefile.am): Likewise.
32414 * modules/human (Makefile.am): Likewise.
32415 * modules/idcache (Makefile.am): Likewise.
32416 * modules/imaxabs (Makefile.am): Likewise.
32417 * modules/imaxdiv (Makefile.am): Likewise.
32418 * modules/inet_ntop (Makefile.am): Likewise.
32419 * modules/inet_pton (Makefile.am): Likewise.
32420 * modules/intprops (Makefile.am): Likewise.
32421 * modules/inttostr (Makefile.am): Likewise.
32422 * modules/inttypes (Makefile.am): Likewise.
32423 * modules/isapipe (Makefile.am): Likewise.
32424 * modules/javaversion (Makefile.am): Likewise.
32425 * modules/lchmod (Makefile.am): Likewise.
32426 * modules/lchown (Makefile.am): Likewise.
32427 * modules/localcharset (Makefile.am): Likewise.
32428 * modules/long-options (Makefile.am): Likewise.
32429 * modules/lstat (Makefile.am): Likewise.
32430 * modules/malloc (Makefile.am): Likewise.
32431 * modules/mathl (Makefile.am): Likewise.
32432 * modules/mbchar (Makefile.am): Likewise.
32433 * modules/md2 (Makefile.am): Likewise.
32434 * modules/md4 (Makefile.am): Likewise.
32435 * modules/md5 (Makefile.am): Likewise.
32436 * modules/memcasecmp (Makefile.am): Likewise.
32437 * modules/memchr (Makefile.am): Likewise.
32438 * modules/memcmp (Makefile.am): Likewise.
32439 * modules/memcoll (Makefile.am): Likewise.
32440 * modules/memcpy (Makefile.am): Likewise.
32441 * modules/memmem (Makefile.am): Likewise.
32442 * modules/memmove (Makefile.am): Likewise.
32443 * modules/mempcpy (Makefile.am): Likewise.
32444 * modules/memrchr (Makefile.am): Likewise.
32445 * modules/memset (Makefile.am): Likewise.
32446 * modules/memxor (Makefile.am): Likewise.
32447 * modules/mkancesdirs (Makefile.am): Likewise.
32448 * modules/mkdir-p (Makefile.am): Likewise.
32449 * modules/mkdir (Makefile.am): Likewise.
32450 * modules/mkdtemp (Makefile.am): Likewise.
32451 * modules/mkstemp (Makefile.am): Likewise.
32452 * modules/mktime (Makefile.am): Likewise.
32453 * modules/modechange (Makefile.am): Likewise.
32454 * modules/mountlist (Makefile.am): Likewise.
32455 * modules/nanosleep (Makefile.am): Likewise.
32456 * modules/obstack (Makefile.am): Likewise.
32457 * modules/openat (Makefile.am): Likewise.
32458 * modules/pagealign_alloc (Makefile.am): Likewise.
32459 * modules/pathmax (Makefile.am): Likewise.
32460 * modules/physmem (Makefile.am): Likewise.
32461 * modules/poll (Makefile.am): Likewise.
32462 * modules/posixtm (Makefile.am): Likewise.
32463 * modules/posixver (Makefile.am): Likewise.
32464 * modules/putenv (Makefile.am): Likewise.
32465 * modules/quote (Makefile.am): Likewise.
32466 * modules/quotearg (Makefile.am): Likewise.
32467 * modules/raise (Makefile.am): Likewise.
32468 * modules/read-file (Makefile.am): Likewise.
32469 * modules/readline (Makefile.am): Likewise.
32470 * modules/readlink (Makefile.am): Likewise.
32471 * modules/readtokens (Makefile.am): Likewise.
32472 * modules/readutmp (Makefile.am): Likewise.
32473 * modules/realloc (Makefile.am): Likewise.
32474 * modules/regex (Makefile.am): Likewise.
32475 * modules/rename-dest-slash (Makefile.am): Likewise.
32476 * modules/rename (Makefile.am): Likewise.
32477 * modules/rijndael (Makefile.am): Likewise.
32478 * modules/rmdir (Makefile.am): Likewise.
32479 * modules/rpmatch (Makefile.am): Likewise.
32480 * modules/safe-read (Makefile.am): Likewise.
32481 * modules/safe-write (Makefile.am): Likewise.
32482 * modules/same-inode (Makefile.am): Likewise.
32483 * modules/same (Makefile.am): Likewise.
32484 * modules/save-cwd (Makefile.am): Likewise.
32485 * modules/savedir (Makefile.am): Likewise.
32486 * modules/setenv (Makefile.am): Likewise.
32487 * modules/settime (Makefile.am): Likewise.
32488 * modules/sha1 (Makefile.am): Likewise.
32489 * modules/sig2str (Makefile.am): Likewise.
32490 * modules/snprintf (Makefile.am): Likewise.
32491 * modules/stat-macros (Makefile.am): Likewise.
32492 * modules/stat-time (Makefile.am): Likewise.
32493 * modules/stdbool (Makefile.am): Likewise.
32494 * modules/stdint (Makefile.am): Likewise.
32495 * modules/stdlib-safer (Makefile.am): Likewise.
32496 * modules/stpcpy (Makefile.am): Likewise.
32497 * modules/stpncpy (Makefile.am): Likewise.
32498 * modules/strcase (Makefile.am): Likewise.
32499 * modules/strcasestr (Makefile.am): Likewise.
32500 * modules/strchrnul (Makefile.am): Likewise.
32501 * modules/strcspn (Makefile.am): Likewise.
32502 * modules/strdup (Makefile.am): Likewise.
32503 * modules/strerror (Makefile.am): Likewise.
32504 * modules/strftime (Makefile.am): Likewise.
32505 * modules/strndup (Makefile.am): Likewise.
32506 * modules/strnlen (Makefile.am): Likewise.
32507 * modules/strpbrk (Makefile.am): Likewise.
32508 * modules/strsep (Makefile.am): Likewise.
32509 * modules/strstr (Makefile.am): Likewise.
32510 * modules/strtod (Makefile.am): Likewise.
32511 * modules/strtoimax (Makefile.am): Likewise.
32512 * modules/strtok_r (Makefile.am): Likewise.
32513 * modules/strtol (Makefile.am): Likewise.
32514 * modules/strtoll (Makefile.am): Likewise.
32515 * modules/strtoul (Makefile.am): Likewise.
32516 * modules/strtoull (Makefile.am): Likewise.
32517 * modules/strtoumax (Makefile.am): Likewise.
32518 * modules/strverscmp (Makefile.am): Likewise.
32519 * modules/sys_socket (Makefile.am): Likewise.
32520 * modules/sys_stat (Makefile.am): Likewise.
32521 * modules/sysexits (Makefile.am): Likewise.
32522 * modules/time_r (Makefile.am): Likewise.
32523 * modules/timegm (Makefile.am): Likewise.
32524 * modules/timespec (Makefile.am): Likewise.
32525 * modules/tmpfile-safer (Makefile.am): Likewise.
32526 * modules/trim (Makefile.am): Likewise.
32527 * modules/unistd-safer (Makefile.am): Likewise.
32528 * modules/unlinkdir (Makefile.am): Likewise.
32529 * modules/unlocked-io (Makefile.am): Likewise.
32530 * modules/userspec (Makefile.am): Likewise.
32531 * modules/utime (Makefile.am): Likewise.
32532 * modules/utimecmp (Makefile.am): Likewise.
32533 * modules/utimens (Makefile.am): Likewise.
32534 * modules/vasnprintf (Makefile.am): Likewise.
32535 * modules/vasprintf (Makefile.am): Likewise.
32536 * modules/vsnprintf (Makefile.am): Likewise.
32537 * modules/xalloc (Makefile.am): Likewise.
32538 * modules/xgetcwd (Makefile.am): Likewise.
32539 * modules/xnanosleep (Makefile.am): Likewise.
32540 * modules/xreadlink (Makefile.am): Likewise.
32541 * modules/xstrtod (Makefile.am): Likewise.
32542 * modules/xstrtol (Makefile.am): Likewise.
32543 * modules/xstrtold (Makefile.am): Likewise.
32544 * modules/yesno (Makefile.am): Likewise.
32545 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
32547 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
32549 * modules/error (Makefile.am): Distribute files through
32550 EXTRA_DIST, not lib_SOURCES.
32552 2006-10-12 Eric Blake <ebb9@byu.net>
32554 * modules/error (Makefile.am): Distribute files in /lib.
32555 * modules/obstack (Makefile.am): Likewise.
32557 2006-10-12 Bruno Haible <bruno@clisp.org>
32559 * modules/acl (Makefile.am): Distribute all files in lib/ through
32561 * modules/arcfour (Makefile.am): Likewise.
32562 * modules/arctwo (Makefile.am): Likewise.
32563 * modules/argmatch (Makefile.am): Likewise.
32564 * modules/argz (Makefile.am): Likewise.
32565 * modules/atexit (Makefile.am): Likewise.
32566 * modules/backupfile (Makefile.am): Likewise.
32567 * modules/c-strtod (Makefile.am): Likewise.
32568 * modules/c-strtold (Makefile.am): Likewise.
32569 * modules/calloc (Makefile.am): Likewise.
32570 * modules/canon-host (Makefile.am): Likewise.
32571 * modules/canonicalize (Makefile.am): Likewise.
32572 * modules/chdir-long (Makefile.am): Likewise.
32573 * modules/chdir-safer (Makefile.am): Likewise.
32574 * modules/check-version (Makefile.am): Likewise.
32575 * modules/chown (Makefile.am): Likewise.
32576 * modules/cloexec (Makefile.am): Likewise.
32577 * modules/close-stream (Makefile.am): Likewise.
32578 * modules/closeout (Makefile.am): Likewise.
32579 * modules/crc (Makefile.am): Likewise.
32580 * modules/cycle-check (Makefile.am): Likewise.
32581 * modules/des (Makefile.am): Likewise.
32582 * modules/dirfd (Makefile.am): Likewise.
32583 * modules/dirname (Makefile.am): Likewise.
32584 * modules/dup2 (Makefile.am): Likewise.
32585 * modules/euidaccess (Makefile.am): Likewise.
32586 * modules/exclude (Makefile.am): Likewise.
32587 * modules/exitfail (Makefile.am): Likewise.
32588 * modules/fcntl-safer (Makefile.am): Likewise.
32589 * modules/file-type (Makefile.am): Likewise.
32590 * modules/fileblocks (Makefile.am): Likewise.
32591 * modules/filemode (Makefile.am): Likewise.
32592 * modules/filenamecat (Makefile.am): Likewise.
32593 * modules/fnmatch (Makefile.am): Likewise.
32594 * modules/fopen-safer (Makefile.am): Likewise.
32595 * modules/fpending (Makefile.am): Likewise.
32596 * modules/fprintftime (Makefile.am): Likewise.
32597 * modules/free (Makefile.am): Likewise.
32598 * modules/fsusage (Makefile.am): Likewise.
32599 * modules/ftruncate (Makefile.am): Likewise.
32600 * modules/fts (Makefile.am): Likewise.
32601 * modules/gc (Makefile.am): Likewise.
32602 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
32603 * modules/getaddrinfo (Makefile.am): Likewise.
32604 * modules/getcwd (Makefile.am): Likewise.
32605 * modules/getdelim (Makefile.am): Likewise.
32606 * modules/getdomainname (Makefile.am): Likewise.
32607 * modules/getgroups (Makefile.am): Likewise.
32608 * modules/gethostname (Makefile.am): Likewise.
32609 * modules/gethrxtime (Makefile.am): Likewise.
32610 * modules/getline (Makefile.am): Likewise.
32611 * modules/getloadavg (Makefile.am): Likewise.
32612 * modules/getlogin_r (Makefile.am): Likewise.
32613 * modules/getopt (Makefile.am): Likewise.
32614 * modules/getpass (Makefile.am): Likewise.
32615 * modules/getpass-gnu (Makefile.am): Likewise.
32616 * modules/getsubopt (Makefile.am): Likewise.
32617 * modules/gettime (Makefile.am): Likewise.
32618 * modules/gettimeofday (Makefile.am): Likewise.
32619 * modules/getugroups (Makefile.am): Likewise.
32620 * modules/getusershell (Makefile.am): Likewise.
32621 * modules/glob (Makefile.am): Likewise.
32622 * modules/group-member (Makefile.am): Likewise.
32623 * modules/hard-locale (Makefile.am): Likewise.
32624 * modules/hash (Makefile.am): Likewise.
32625 * modules/hmac-md5 (Makefile.am): Likewise.
32626 * modules/hmac-sha1 (Makefile.am): Likewise.
32627 * modules/human (Makefile.am): Likewise.
32628 * modules/idcache (Makefile.am): Likewise.
32629 * modules/imaxabs (Makefile.am): Likewise.
32630 * modules/imaxdiv (Makefile.am): Likewise.
32631 * modules/inet_ntop (Makefile.am): Likewise.
32632 * modules/inet_pton (Makefile.am): Likewise.
32633 * modules/inttostr (Makefile.am): Likewise.
32634 * modules/isapipe (Makefile.am): Likewise.
32635 * modules/lchown (Makefile.am): Likewise.
32636 * modules/long-options (Makefile.am): Likewise.
32637 * modules/lstat (Makefile.am): Likewise.
32638 * modules/malloc (Makefile.am): Likewise.
32639 * modules/mathl (Makefile.am): Likewise.
32640 * modules/mbchar (Makefile.am): Likewise.
32641 * modules/md2 (Makefile.am): Likewise.
32642 * modules/md4 (Makefile.am): Likewise.
32643 * modules/md5 (Makefile.am): Likewise.
32644 * modules/memcasecmp (Makefile.am): Likewise.
32645 * modules/memchr (Makefile.am): Likewise.
32646 * modules/memcmp (Makefile.am): Likewise.
32647 * modules/memcoll (Makefile.am): Likewise.
32648 * modules/memcpy (Makefile.am): Likewise.
32649 * modules/memmem (Makefile.am): Likewise.
32650 * modules/memmove (Makefile.am): Likewise.
32651 * modules/mempcpy (Makefile.am): Likewise.
32652 * modules/memrchr (Makefile.am): Likewise.
32653 * modules/memset (Makefile.am): Likewise.
32654 * modules/memxor (Makefile.am): Likewise.
32655 * modules/mkancesdirs (Makefile.am): Likewise.
32656 * modules/mkdir (Makefile.am): Likewise.
32657 * modules/mkdir-p (Makefile.am): Likewise.
32658 * modules/mkdtemp (Makefile.am): Likewise.
32659 * modules/mkstemp (Makefile.am): Likewise.
32660 * modules/mktime (Makefile.am): Likewise.
32661 * modules/modechange (Makefile.am): Likewise.
32662 * modules/mountlist (Makefile.am): Likewise.
32663 * modules/nanosleep (Makefile.am): Likewise.
32664 * modules/openat (Makefile.am): Likewise.
32665 * modules/pagealign_alloc (Makefile.am): Likewise.
32666 * modules/physmem (Makefile.am): Likewise.
32667 * modules/poll (Makefile.am): Likewise.
32668 * modules/posixtm (Makefile.am): Likewise.
32669 * modules/posixver (Makefile.am): Likewise.
32670 * modules/putenv (Makefile.am): Likewise.
32671 * modules/quote (Makefile.am): Likewise.
32672 * modules/quotearg (Makefile.am): Likewise.
32673 * modules/raise (Makefile.am): Likewise.
32674 * modules/read-file (Makefile.am): Likewise.
32675 * modules/readline (Makefile.am): Likewise.
32676 * modules/readlink (Makefile.am): Likewise.
32677 * modules/readtokens (Makefile.am): Likewise.
32678 * modules/readutmp (Makefile.am): Likewise.
32679 * modules/realloc (Makefile.am): Likewise.
32680 * modules/regex (Makefile.am): Likewise.
32681 * modules/rename (Makefile.am): Likewise.
32682 * modules/rename-dest-slash (Makefile.am): Likewise.
32683 * modules/rijndael (Makefile.am): Likewise.
32684 * modules/rmdir (Makefile.am): Likewise.
32685 * modules/rpmatch (Makefile.am): Likewise.
32686 * modules/safe-read (Makefile.am): Likewise.
32687 * modules/safe-write (Makefile.am): Likewise.
32688 * modules/same (Makefile.am): Likewise.
32689 * modules/save-cwd (Makefile.am): Likewise.
32690 * modules/savedir (Makefile.am): Likewise.
32691 * modules/setenv (Makefile.am): Likewise.
32692 * modules/settime (Makefile.am): Likewise.
32693 * modules/sha1 (Makefile.am): Likewise.
32694 * modules/sig2str (Makefile.am): Likewise.
32695 * modules/snprintf (Makefile.am): Likewise.
32696 * modules/stdlib-safer (Makefile.am): Likewise.
32697 * modules/stpcpy (Makefile.am): Likewise.
32698 * modules/stpncpy (Makefile.am): Likewise.
32699 * modules/strcase (Makefile.am): Likewise.
32700 * modules/strcasestr (Makefile.am): Likewise.
32701 * modules/strchrnul (Makefile.am): Likewise.
32702 * modules/strcspn (Makefile.am): Likewise.
32703 * modules/strdup (Makefile.am): Likewise.
32704 * modules/strerror (Makefile.am): Likewise.
32705 * modules/strftime (Makefile.am): Likewise.
32706 * modules/strndup (Makefile.am): Likewise.
32707 * modules/strnlen (Makefile.am): Likewise.
32708 * modules/strpbrk (Makefile.am): Likewise.
32709 * modules/strsep (Makefile.am): Likewise.
32710 * modules/strstr (Makefile.am): Likewise.
32711 * modules/strtod (Makefile.am): Likewise.
32712 * modules/strtoimax (Makefile.am): Likewise.
32713 * modules/strtok_r (Makefile.am): Likewise.
32714 * modules/strtol (Makefile.am): Likewise.
32715 * modules/strtoll (Makefile.am): Likewise.
32716 * modules/strtoul (Makefile.am): Likewise.
32717 * modules/strtoull (Makefile.am): Likewise.
32718 * modules/strtoumax (Makefile.am): Likewise.
32719 * modules/strverscmp (Makefile.am): Likewise.
32720 * modules/time_r (Makefile.am): Likewise.
32721 * modules/timegm (Makefile.am): Likewise.
32722 * modules/tmpfile-safer (Makefile.am): Likewise.
32723 * modules/unistd-safer (Makefile.am): Likewise.
32724 * modules/unlinkdir (Makefile.am): Likewise.
32725 * modules/userspec (Makefile.am): Likewise.
32726 * modules/utime (Makefile.am): Likewise.
32727 * modules/utimecmp (Makefile.am): Likewise.
32728 * modules/utimens (Makefile.am): Likewise.
32729 * modules/vasnprintf (Makefile.am): Likewise.
32730 * modules/vasprintf (Makefile.am): Likewise.
32731 * modules/vsnprintf (Makefile.am): Likewise.
32732 * modules/xalloc (Makefile.am): Likewise.
32733 * modules/xgetcwd (Makefile.am): Likewise.
32734 * modules/xnanosleep (Makefile.am): Likewise.
32735 * modules/xreadlink (Makefile.am): Likewise.
32736 * modules/xstrtod (Makefile.am): Likewise.
32737 * modules/xstrtol (Makefile.am): Likewise.
32738 * modules/xstrtold (Makefile.am): Likewise.
32739 * modules/yesno (Makefile.am): Likewise.
32741 2006-10-12 Jim Meyering <jim@meyering.net>
32743 * m4/getloadavg.m4: Revert the change below.
32745 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
32746 lib/getloadavg.c using "ls -L", not "test -f". The latter would
32747 fail with a symlink, which is what coreutils' ./bootstrap now
32748 creates by default.
32750 2006-10-12 Bruno Haible <bruno@clisp.org>
32752 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
32754 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
32755 MSVC and mingw explicitly.
32757 2006-10-11 Simon Josefsson <jas@extundo.com>
32758 Bruno Haible <bruno@clisp.org>
32760 Add support for multiple gnulib-tool invocations in the scope of a
32761 single configure.ac file.
32762 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
32763 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
32764 with the same contents as the _LIBADD variable.
32765 (func_emit_initmacro_start, func_emit_initmacro_end,
32766 func_emit_initmacro_done): New functions.
32767 (func_import, func_create_testdir): Invoke them. Allow the identifiers
32768 gl_LIBOBJS and gl_LTLIBOBJS.
32770 2006-10-11 Bruno Haible <bruno@clisp.org>
32772 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
32773 (func_create_testdir): Don't create po/Makefile.am, don't invoke
32774 autoreconf. Instead, invoke autopoint explicitly but move back the
32775 *.m4 files from gnulib.
32777 2006-10-11 Bruno Haible <bruno@clisp.org>
32779 * gnulib-tool (func_usage): Make module names after --create-testdir
32781 (func_create_testdir): If no module was specified, use nearly all
32784 2006-10-12 Jim Meyering <jim@meyering.net>
32786 Big performance improvement for fts-based tools that use FTS_NOSTAT.
32787 Avoid spurious inode-mismatch problems on non-POSIX file systems.
32788 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
32789 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
32790 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
32791 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
32792 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
32793 (fts_set_stat_required): New function.
32794 (fts_open): Defer the calls to fts_stat, if possible or requested.
32795 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
32796 into fts_stat itself.
32797 (fts_read): Perform any required (deferred) fts_stat call.
32798 (fts_build): Likewise, for the directory we're about to open and read.
32799 In the readdir loop, carefully decide whether each entry will require
32800 an eventual call to fts_stat, using dirent.d_type info if available.
32801 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
32802 a command line argument into this function. Update all callers.
32803 Map a return value of FTS_DOT to FTS_D for a command line argument.
32804 * modules/fts (Depends-on): Add d-type. Alphabetize.
32805 Thanks to Miklos Szeredi for his tenacity and for the initial
32806 bug report about "find" failing on a FUSE-based file system.
32808 * lib/fts.c (fts_open): Use consistent indentation.
32810 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
32812 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
32813 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
32814 reported by Jim Meyering. All uses of cache variables renamed
32815 to match Autoconf's.
32816 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
32819 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32820 Fix misspelling in diagnostic.
32822 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
32824 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
32825 defined. Problem reported by Matthew Woehlke.
32827 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
32828 Add support for Tandem NonStop R series.
32829 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
32832 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
32833 (has_trailing_slash): Omit size arg; all callers changed.
32834 Omit 'inline', since it doesn't help performance and we'd
32835 need to configure it.
32836 Don't count //, ///, etc. as having a trailing slash.
32837 As a side effect, this removes a C99ism reported by Matthew Woehlke.
32838 (rpl_rename_dest_slash): On failure, use rename's errno rather
32839 than (in some cases) an incorrect or junk errno.
32840 Simplify code by removing need to compute length; this does
32841 cause it to make two passes instead of one over the file name,
32844 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
32845 change, since Autoconf's version may no longer be appropriate now
32846 that we are using CVS Autoconf's version. Add support for Tandem.
32848 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
32849 Bruno Haible <bruno@clisp.org>
32851 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
32852 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
32853 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
32854 gl_AC_TYPE_LONG_LONG.
32856 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
32857 instead of HAVE_LONG_LONG.
32858 * lib/printf-args.c (printf_fetchargs): Likewise.
32859 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
32860 * lib/vasnprintf.c (VASNPRINTF): Likewise.
32861 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
32862 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
32863 gl_AC_TYPE_LONG_LONG.
32865 2006-10-11 Bruno Haible <bruno@clisp.org>
32867 * m4/longlong.m4: Add comments.
32868 * m4/ulonglong.m4: Likewise.
32870 2006-10-10 Bruno Haible <bruno@clisp.org>
32872 Make it possible to #define stpcpy, strdup to aliases.
32873 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
32874 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
32876 2006-10-10 Bruno Haible <bruno@clisp.org>
32878 Make it possible to #define gcd to an alias.
32879 * lib/gcd.c: Include config.h.
32881 2006-10-10 Bruno Haible <bruno@clisp.org>
32883 Make it possible to #define c_isascii to an alias.
32884 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
32885 defined. Undefine the macros before defining them, to avoid gcc
32887 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
32888 define NO_C_CTYPE_MACROS early.
32890 2006-10-10 Bruno Haible <bruno@clisp.org>
32892 Make it possible to #define set_program_name to an alias.
32893 * lib/progname.c: Don't undefine set_program_name; instead, undefine
32894 ENABLE_RELOCATABLE early.
32896 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
32898 Port to Tandem NSK OSS, which has 64-bit signed int but at most
32899 32-bit unsigned int. Problem reported by Matthew Woehlke in:
32900 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
32901 More generally, don't assume that 64-bit signed int is available
32902 if unsigned int is, and vice versa.
32903 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
32904 unsigned symbols, not on their signed counterparts.
32905 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
32906 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
32907 (UINT64_C, UINTMAX_C):
32909 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
32910 unsigned counterparts.
32911 (Have_long_long, Unsigned): New macros.
32912 (Int): Renamed from INT.
32913 (strtoimax): Use the new macros.
32914 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
32915 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
32916 * modules/inttypes (inttypes.h): Substitute
32917 HAVE_UNSIGNED_LONG_LONG_INT.
32918 * modules/stdint (stdint.h): Likewise.
32919 (Files): Add m4/ulonglong.m4.
32921 2006-10-10 Bruno Haible <bruno@clisp.org>
32923 Fix a gcc -Wshadow warning.
32924 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
32926 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
32927 gl_linked_indexof_from_to): Likewise.
32928 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
32930 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
32932 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
32933 Reported by Eric Blake.
32935 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
32937 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
32938 for NetBSD. Problem reported by Bruno Haible.
32940 2006-10-09 Jim Meyering <jim@meyering.net>
32942 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
32943 Patch from Bruno Haible.
32945 2006-10-09 Jim Meyering <jim@meyering.net>
32947 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
32948 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
32949 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
32951 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
32953 Don't include <config.h> twice; this doesn't work in some cases,
32954 e.g., when config.h has "#define intmax_t long long int" and
32955 we include <config.h>, <inttypes.h>, <config.h> in that order.
32956 Problem reported by Matthew Woehlke in:
32957 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
32958 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
32959 * lib/fts-cycle.c: Don't include config.h.
32960 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
32961 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
32962 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
32963 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
32965 * lib/xstrtoumax.c: Likewise.
32966 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
32967 __strtol and the like, so that this module is more like its siblings.
32968 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
32969 Remove; no longer needed now that we assume gnulib inttypes.h.
32971 2006-10-08 Bruno Haible <bruno@clisp.org>
32973 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
32976 2006-10-07 Jim Meyering <jim@meyering.net>
32978 * modules/inttypes (inttypes.h): Revert what seems to have been
32979 an inadvertent part of today's change: use "|", not "/" in the
32980 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
32982 2006-10-07 Bruno Haible <bruno@clisp.org>
32984 * modules/sublist: New file.
32986 2006-10-07 Bruno Haible <bruno@clisp.org>
32988 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
32989 * modules/argz (argz.h): Likewise.
32990 * modules/arpa_inet (arpa/inet.h): Likewise.
32991 * modules/byteswap (byteswap.h): Likewise.
32992 * modules/configmake (configmake.h): Likewise.
32993 * modules/fcntl (fcntl.h): Likewise.
32994 * modules/fnmatch (fnmatch.h): Likewise.
32995 * modules/getopt (getopt.h): Likewise.
32996 * modules/glob (glob.h): Likewise.
32997 * modules/inttypes (inttypes.h): Likewise.
32998 * modules/netinet_in (netinet/in.h): Likewise.
32999 * modules/poll (poll.h): Likewise.
33000 * modules/stdbool (stdbool.h): Likewise.
33001 * modules/stdint (stdint.h): Likewise.
33002 * modules/sys_select (sys/select.h): Likewise.
33003 * modules/sys_socket (sys/socket.h): Likewise.
33004 * modules/sys_stat (sys/stat.h): Likewise.
33005 * modules/sysexits (sysexits.h): Likewise.
33006 * modules/unistd (unistd.h): Likewise.
33007 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33008 Add a "DO NOT EDIT" comment to the generated file.
33009 (func_import): Likewise for gnulib-comp.m4.
33011 2006-10-07 Bruno Haible <bruno@clisp.org>
33013 * lib/gl_sublist.h: New file.
33014 * lib/gl_sublist.c: New file.
33016 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
33018 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
33019 name (relative to the original working directory) and the file
33020 name component (relative to the temporary working directory). All
33022 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
33023 * lib/mkdir-p.c (make_dir_parents): Likewise.
33024 * lib/mkdir-p.h (make_dir_parents): Likewise.
33026 2006-10-06 Eric Blake <ebb9@byu.net>
33028 Define several macros for use by the clean-temp module.
33029 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
33030 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
33031 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
33033 * lib/clean-temp.h (close_stream_temp): New declaration.
33034 * lib/clean-temp.c (includes): Pull in headers according to what
33035 other modules are in use.
33036 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
33038 2006-10-06 Bruno Haible <bruno@clisp.org>
33040 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
33041 instead of fopen, fwriteerror.
33043 2006-10-06 Bruno Haible <bruno@clisp.org>
33045 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
33046 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
33048 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
33049 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
33050 Return an error indicator.
33051 Suggested by Eric Blake.
33053 2006-10-06 Bruno Haible <bruno@clisp.org>
33055 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
33056 Reported by Eric Blake.
33058 2006-10-06 Bruno Haible <bruno@clisp.org>
33060 * modules/closeout (Description): Mention stderr too.
33062 2006-10-06 Bruno Haible <bruno@clisp.org>
33063 and Paul Eggert <eggert@cs.ucla.edu>
33065 * lib/closeout.c (close_stdout): Also close stderr.
33066 * lib/closeout.h: Update comment.
33068 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
33070 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
33071 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
33072 * lib/dirchownmod.c: Include lchown.h.
33073 * lib/lchown.c: Don't include files that lchown.h now includes.
33074 Don't declare chown, since lchown.h now does that.
33075 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
33076 (lchown): Define to rpl_chown if lchown is declared but
33077 does not exist. Declare using a prototype if lchown is not
33078 declared. Add a copyright notice.
33079 * lib/mkstemp.h: Include <unistd.h>.
33080 * lib/openat.c: Include lchown.h.
33082 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
33083 we now test for that separately.
33084 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
33085 rather than O_NOFOLLOW, when testing whether it's possible to
33086 avoid a race condition reliably.
33087 * lib/savewd.c (savewd_chdir): Likewise.
33089 Remove macros that are no longer needed now that stdint.h is
33091 * lib/fsusage.c (UINTMAX_MAX): Remove.
33092 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
33093 * lib/utimecmp.c (SIZE_MAX): Remove.
33095 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
33097 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
33098 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
33101 2006-10-05 Bruno Haible <bruno@clisp.org>
33103 * lib/gl_list.h (gl_sortedlist_search_from_to,
33104 gl_sortedlist_indexof_from_to): New declarations.
33105 (gl_list_implementation): New fields sortedlist_search_from_to,
33106 sortedlist_indexof_from_to.
33107 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
33109 * lib/gl_list.c (gl_sortedlist_search_from_to,
33110 gl_sortedlist_indexof_from_to): New functions.
33111 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
33113 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
33114 (gl_array_sortedlist_search_from_to): New function.
33115 (gl_array_list_implementation): Update.
33116 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
33118 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
33119 (gl_carray_sortedlist_search_from_to): New function.
33120 (gl_carray_list_implementation): Update.
33121 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
33122 gl_linked_sortedlist_indexof_from_to): New functions.
33123 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33124 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33125 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
33126 gl_tree_sortedlist_indexof_from_to): New functions.
33127 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33128 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33130 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33131 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
33134 2006-10-05 Bruno Haible <bruno@clisp.org>
33136 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
33137 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
33138 (struct gl_list_implementation): Add fields search_from_to,
33139 indexof_from_to. Remove fields search, indexof.
33140 (gl_list_search): Use the search_from_to method.
33141 (gl_list_search_from, gl_list_search_from_to): New functions.
33142 (gl_list_indexof): Use the indexof_from_to method.
33143 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33144 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
33145 (gl_list_search_from, gl_list_search_from_to): New functions.
33146 (gl_list_indexof): Use the indexof_from_to method.
33147 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33148 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
33149 gl_array_indexof. Add start_index, end_index arguments.
33150 (gl_array_search_from_to): Renamed from gl_array_search. Add
33151 start_index, end_index arguments.
33152 (gl_array_remove, gl_array_list_implementation): Update.
33153 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
33154 gl_carray_indexof. Add start_index, end_index arguments.
33155 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
33156 start_index, end_index arguments.
33157 (gl_carray_remove, gl_carray_list_implementation): Update.
33158 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
33159 gl_linked_search. Add start_index, end_index arguments.
33160 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
33161 start_index, end_index arguments.
33162 (gl_linked_remove): Update.
33163 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33164 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33165 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
33167 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
33168 gl_tree_search. Add start_index, end_index arguments.
33169 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33170 start_index, end_index arguments.
33171 (gl_tree_remove): Update.
33172 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33173 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33174 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
33176 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
33177 gl_tree_search. Add start_index, end_index arguments.
33178 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33179 start_index, end_index arguments.
33180 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33182 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33184 2006-10-05 Bruno Haible <bruno@clisp.org>
33186 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
33188 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
33189 fwriteerror_temp): New declarations.
33190 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
33191 (descriptors): New variable.
33192 (cleanup): First, close the descriptors.
33193 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
33194 fclose_temp, fwriteerror_temp): New functions.
33196 2006-10-04 Jim Meyering <jim@meyering.net>
33198 * lib/fts.c (fts_open): Tiny comment change.
33200 2006-10-04 Bruno Haible <bruno@clisp.org>
33202 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
33203 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
33205 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
33206 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
33207 gl_LOCK_EARLY_BODY.
33208 (gl_LOCK): Require gl_LOCK_BODY.
33210 2006-10-04 Bruno Haible <bruno@clisp.org>
33212 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
33213 (gl_oset_search_atleast): New declaration.
33214 (struct gl_oset_implementation): Add field 'search_atleast'.
33215 (gl_oset_search_atleast): New inline function.
33216 * lib/gl_oset.c (gl_oset_search_atleast): New function.
33217 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
33218 (gl_array_oset_implementation): Update.
33219 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
33220 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
33221 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
33223 2006-10-04 Bruno Haible <bruno@clisp.org>
33225 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
33227 2006-10-03 Bruno Haible <bruno@clisp.org>
33229 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
33230 from gl_avltreehash_list_implementation.
33232 2006-10-03 Bruno Haible <bruno@clisp.org>
33234 * lib/gl_oset.c (gl_oset_add): Fix return type.
33236 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
33238 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
33240 2006-10-02 Eric Blake <ebb9@byu.net>
33242 * modules/strnlen (Depends-on): Add extensions.
33244 2006-10-02 Eric Blake <ebb9@byu.net>
33246 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
33247 definition in 2.60+.
33249 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
33251 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
33254 2006-10-02 Bruno Haible <bruno@clisp.org>
33256 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
33257 to the AUTOMAKE_OPTIONS.
33258 Reported by Jim Meyering.
33260 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
33262 Work around bug in Solaris 10 /proc file system:
33263 /proc/self/fd/NNN/.. isn't the parent directory of
33264 the directory whose file descriptor is NNN. This needs to
33265 be worked around at run time, not compile time, since a
33266 program might be built on Solaris 8, where things work, and
33268 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
33269 to use the following interface instead:
33270 (OPENAT_BUFFER_SIZE): New macro.
33271 (openat_proc_name): New function.
33272 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
33273 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
33275 * lib/openat-proc.c: New file.
33276 * modules/openat (Files): Add lib/openat-proc.c.
33277 (Depends-on): Add same-inode, stdbool.
33278 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
33280 2006-09-29 Bruno Haible <bruno@clisp.org>
33282 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
33283 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
33284 argument. Set stdout_closed before testing for ferror, not after.
33285 (fwriteerror, fwriteerror_no_ebadf): New functions.
33287 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33289 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
33291 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
33293 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
33294 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
33296 2006-09-28 Jim Meyering <jim@meyering.net>
33298 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
33299 Include <unistd.h>.
33301 2006-09-28 Bruno Haible <bruno@clisp.org>
33303 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
33304 * modules/linkedhash-list (Depends-on): Likewise.
33305 * modules/rbtreehash-list (Depends-on): Likewise.
33307 2006-09-28 Bruno Haible <bruno@clisp.org>
33309 * lib/strndup.h: Simplify the redefinition of strndup.
33310 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
33311 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
33313 2006-09-28 Bruno Haible <bruno@clisp.org>
33315 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
33316 * lib/gl_linkedhash_list.c: Likewise.
33317 * lib/gl_rbtreehash_list.c: Likewise.
33319 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
33321 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
33324 * lib/__fpending.h: Don't include <stdio_ext.h> unless
33325 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
33326 it causes <stdio_ext.h> to cause a compile-time error.
33327 Problem reported by Nelson H. F. Beebe.
33328 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
33329 of HAVE_DECL___PENDING.
33331 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
33332 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
33335 2006-09-27 Jim Meyering <jim@meyering.net>
33337 This file could end up with a definition for a function
33338 named __strndup, rather than rpl_strndup on a system with
33339 incomplete weak_alias support.
33340 * lib/strndup.c (strndup): Rename from __strndup.
33341 Remove #defines that used to map __strndup to strndup.
33342 Don't use K&R prototypes.
33343 Remove LIBC-related code, since this file is not sync'd with glibc.
33344 * lib/strndup.h: Revamp, accordingly.
33345 * m4/strndup.m4: Modernize.
33347 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
33349 * modules/savewd (Depends-on): Add 'raise'.
33350 * lib/savewd.c: Include <signal.h>, for 'raise'.
33352 2006-09-26 Jim Meyering <jim@meyering.net>
33354 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
33355 when we detect Darwin 8.7.0's acl_get_file bug.
33356 Rearrange to perform the new (below) run-test while $LIBS
33357 contains any acl-related library. Set USE_ACL at the end.
33358 (gl_ACL_GET_FILE): New function.
33360 2006-09-26 Eric Blake <ebb9@byu.net>
33362 * lib/verror.c: Include <config.h> unconditionally.
33364 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
33366 * modules/clock-time (Maintainer): Add self.
33367 * modules/getlogin_r (Depends-on): Add extensions.
33369 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33371 * modules/clock-time: New module.
33372 * modules/nanosleep (Depends-on): Add clock-time.
33373 * modules/gethrxtime (Depends-on): Likewise.
33374 * modules/gettime (Depends-on): Likewise.
33375 * modules/settime (Depends-on): Likewise.
33377 * modules/fts-lgpl: Depend on openat.
33378 * modules/mkancesdirs: Depend on savewd.
33379 * modules/mkdir-p: Likewise.
33381 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33383 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
33385 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
33386 `gl_have_arbitrary_file_name_length_limit' to
33387 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
33388 actually works between configure runs.
33390 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33391 Bruno Haible <bruno@clisp.org>
33393 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
33395 2006-09-25 Jim Meyering <jim@meyering.net>
33397 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
33398 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
33400 2006-09-25 Eric Blake <ebb9@byu.net>
33402 * gnulib-tool (func_import, func_create_testdir): Fix typos in
33403 exec's in 2006-09-18 patch when shuffling fds.
33405 2006-09-25 Bruno Haible <bruno@clisp.org>
33407 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
33408 Reported by Jim Meyering.
33410 2006-09-24 Jim Meyering <jim@meyering.net>
33412 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
33413 compare a pointer against a literal "0". That caused failures with
33414 at least HP-UX's hpcc.
33416 2006-09-22 Simon Josefsson <jas@extundo.com>
33420 * modules/gc-hmac-sha1:
33421 * modules/gc-hmac-md5:
33423 * modules/gc-arcfour: Distribute more files.
33425 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33427 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
33428 (gl_linked_iterator_from_to): Initialize struct completely.
33429 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
33430 (gl_tree_iterator_from_to): Likewise
33431 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
33432 * lib/gl_array_list.c [lint] (gl_array_iterator)
33433 (gl_array_iterator_from_to): Likewise.
33434 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
33435 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
33436 (gl_carray_iterator_from_to): Likewise.
33438 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
33439 * lib/md4.c (md4_process_block): Remove unused variable.
33440 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
33441 parentheses for clarity.
33443 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33445 * modules/bison-i18n (Depends-on): Add gettext.
33447 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33449 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
33450 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33451 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
33452 also add missing comma that caused broken test.
33453 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
33454 stdlib.h, for `abort'.
33455 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
33457 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
33458 include unistd.h if present, for `rmdir'.
33459 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
33461 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
33462 in the process include standard headers for prototypes.
33463 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
33464 gets declared on GNU/Linux.
33465 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
33466 unistd.h, for `rmdir'.
33467 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
33469 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
33471 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
33473 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
33475 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33477 * gnulib-tool (func_version): Create output all at once. This
33478 may help avoid triggering unnecessary SIGPIPEs, and at any
33479 rate it doesn't hurt.
33481 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33482 Bruno Haible <bruno@clisp.org>
33484 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
33485 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33486 * m4/signed.m4 (bh_C_SIGNED): Likewise.
33488 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
33489 (gl_FUNC_VASPRINTF): Invoke it.
33491 2006-09-22 Bruno Haible <bruno@clisp.org>
33493 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
33494 getloadavg.c as first argument.
33496 2006-09-22 Bruno Haible <bruno@clisp.org>
33498 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
33499 at the beginning of the gl_INIT macro.
33500 * modules/getloadavg (configure.ac): Pass $gl_source_base to
33503 2006-09-22 Bruno Haible <bruno@clisp.org>
33505 * gnulib-tool (func_create_megatestdir): Don't include the config-h
33507 Suggested by Ralf Wildenhues.
33509 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
33511 Import this patch from libc:
33513 2006-09-06 Jakub Jelinek <jakub@redhat.com>
33515 * lib/regex_internal.c (re_string_reconstruct): Handle
33516 offset < pstr->valid_raw_len && pstr->offsets_needed case.
33517 Ensure no bytes read before raw_mbs array. Pass a saved copy of
33518 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
33519 re_string_context_at.
33521 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
33523 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
33524 gl_REGEX now does it for us.
33525 (gl_REGEX): Add test taken from
33526 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
33528 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
33529 Check that large offsets work. Modernize Autoconf usages.
33530 Prefer "yes" to mean a good thing rather than a bad.
33531 Don't put "#define mkstemp" in config.h, as this might interfere
33532 with standard system headers that "#define mkstemp mkstemp64".
33534 * modules/mkstemp (Depends-on): Add extensions, so that
33535 mkstemp is visible on some platforms.
33536 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
33537 (Include): Change to "mkstemp.h" from <stdlib.h>.
33538 (Files): Add mkstemp.h.
33540 * lib/mkstemp.h: New file, since some standard headers
33542 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
33543 Include "mkstemp.h".
33544 Make the _LIBC code resemble glibc original more,
33545 e.g., use K&R style.
33546 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
33547 (mkstemp): Remove, since mkstemp.h does this for us.
33548 * lib/stdlib--.h: Include mkstemp.h.
33550 Import this patch from libc:
33552 2006-04-07 Ulrich Drepper <drepper@redhat.com>
33554 * lib/tempname.c (__gen_tempname): Change attempts_min
33555 into a macro. Use preprocessor to decide how to initialize
33556 attempts [Coverity CID 67].
33558 2006-09-20 Bruno Haible <bruno@clisp.org>
33560 * lib/mkdtemp.c: Import from libc.
33561 2006-04-07 Ulrich Drepper <drepper@redhat.com>
33562 * sysdeps/posix/tempname.c (__gen_tempname): Change
33563 attempts_min into a macro. Use preprocessor to decide how to
33564 initialize attempts [Coverity CID 67].
33565 2001-11-27 Paul Eggert <eggert@twinsun.com>
33566 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
33567 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
33569 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33571 * gnulib-tool (func_exit): New function, to allow to pass the
33572 exit status portably through the trap. Use everywhere.
33573 (--help, --version): Signal a write error.
33574 (trap): catch SIGPIPE, for write errors.
33575 Exit at the end of the trap, with the correct exit status.
33577 2006-09-19 Karl Berry <karl@gnu.org>
33579 * doc/gnulib.texi: note about the license texinfo files.
33581 2006-09-19 Eric Blake <ebb9@byu.net>
33583 * gnulib-tool: Avoid space-tab.
33585 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
33587 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
33588 that prevented coreutils 6.1 from building. Problem reported
33589 by Petter Reinholdtsen.
33591 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
33593 * gnulib-tool (avoidlist): Fix typo that broke options like
33594 --avoid=lock that are used by coreutils bootstrap.
33596 2006-09-18 Mark D. Baushke <mdb@gnu.org>
33598 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
33599 more systematically.
33601 2006-09-18 Jim Meyering <jim@meyering.net>
33603 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
33605 2006-09-18 Bruno Haible <bruno@clisp.org>
33607 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
33609 2006-09-18 Bruno Haible <bruno@clisp.org>
33611 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
33612 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
33613 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
33614 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
33615 * m4/gettext.m4: Require autoconf >= 2.52.
33616 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
33617 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
33618 of gl_cv_header_inttypes_h.
33620 2006-09-18 Bruno Haible <bruno@clisp.org>
33622 * lib/javaversion.c: Include configmake.h.
33624 2006-09-18 Bruno Haible <bruno@clisp.org>
33626 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
33627 avoid that the while loops be executed in a subshell.
33629 2006-09-18 Bruno Haible <bruno@clisp.org>
33631 * MODULES.html.sh (func_module): Break long lines.
33632 Suggested by Bruce Korb <bkorb@gnu.org>.
33634 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33636 Speed up by a factor of 1.12.
33637 * gnulib-tool (nl): New variable.
33638 (func_import): Rewrite include directive extraction to only read each
33641 2006-09-17 Bruno Haible <bruno@clisp.org>
33643 * modules/javaversion (Makefile.am): Remove DEFS setting.
33644 (Depends-on): Add configmake, for PKGDATADIR definition.
33646 2006-09-17 Bruno Haible <bruno@clisp.org>
33648 * gnulib-tool (func_create_testdir): Rewrite all files at once.
33650 2006-09-17 Bruno Haible <bruno@clisp.org>
33652 * gnulib-tool (func_append): New function, stolen from libtool.m4.
33653 (func_modules_transitive_closure, func_modules_add_dummy,
33654 func_modules_to_filelist, func_import, func_create_testdir,
33655 func_create_megatestdir, ...): Use it wherever possible.
33656 Suggested by Ralf Wildenhues.
33658 2006-09-16 Karl Berry <karl@gnu.org>
33660 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
33661 to avoid sectioning errors.
33662 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
33663 [ifinfo]: blank line after @center-ed titles.
33664 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
33665 Spell FSF address consistently with others.
33666 (These changes approved by rms.)
33668 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33670 Speed up by a factor of 1.61.
33671 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
33672 already checked module names again.
33674 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33676 Speed up by a factor of 1.13.
33677 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
33678 for new_files, and the input to func_add_or_update.
33680 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33682 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
33683 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
33685 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
33687 * modules/mkancesdirs (Depends-on): Add fcntl.
33688 * modules/savewd: New file.
33689 * MODULES.html.sh (File system functions): Add savewd.
33691 * modules/configmake (Makefile.am): Add support for the
33692 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
33694 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
33696 * m4/savewd.m4: New file.
33698 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
33700 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
33701 (dirchownmod): New arg FD. All callers changed.
33702 Use FD rather than opening the directory ourself, as opening is
33703 now the caller's responsibility.
33704 * lib/dirchownmod.h: Likewise.
33705 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
33706 hosts that require <sys/types.h> before <sys/stat.h>. Include
33707 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
33708 (test_dir): Remove.
33709 (mkancesdirs): Return length of prefix of FILE that has already
33710 been made, or -2 if there is a child doing the work. Redo
33711 algorithm so that it is O(N) rather than O(N**2). Optimize away
33712 ".", and treat ".." specially since it might stray back into
33713 already-created areas. Use a subprocess if necessary. New arg
33714 WD; all users changed. MAKE_DIR function should now return 1
33715 if it creates a directory that is not readable. Return -2 if
33716 a child process is spun off.
33717 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
33718 Adjust signature to match code.
33719 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
33720 (make_dir_parents): Use a subprocess if necessary. New arg WD;
33722 * lib/savewd.c, lib/savewd.h: New files.
33724 2006-09-15 Jim Meyering <jim@meyering.net>
33726 * modules/rename-dest-slash: New module.
33727 * MODULES.html.sh (posix_compat): Add it here.
33729 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
33731 2006-09-15 Jim Meyering <jim@meyering.net>
33733 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
33736 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
33738 2006-09-15 Jim Meyering <jim@meyering.net>
33740 * lib/rename-dest-slash.c (has_trailing_slash): Use
33741 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
33742 (rpl_rename_dest_slash): Perform the cheaper trailing slash
33743 test before testing whether SRC is a directory.
33744 Suggestions from Bruno Haible.
33746 Avoid a warning about an unused variable.
33747 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
33748 into the #ifdef block where it's used.
33750 * lib/rename-dest-slash.c: New file.
33752 2006-09-14 Bruno Haible <bruno@clisp.org>
33754 * lib/allocsa.c: Include <config.h> unconditionally.
33755 * lib/asnprintf.c: Likewise.
33756 * lib/asprintf.c: Likewise.
33757 * lib/c-strcasecmp.c: Likewise.
33758 * lib/c-strcasestr.c: Likewise.
33759 * lib/c-strncasecmp.c: Likewise.
33760 * lib/c-strstr.c: Likewise.
33761 * lib/classpath.c: Likewise.
33762 * lib/clean-temp.c: Likewise.
33763 * lib/concatpath.c: Likewise.
33764 * lib/copy-file.c: Likewise.
33765 * lib/csharpcomp.c: Likewise.
33766 * lib/csharpexec.c: Likewise.
33767 * lib/execute.c: Likewise.
33768 * lib/fatal-signal.c: Likewise.
33769 * lib/findprog.c: Likewise.
33770 * lib/fwriteerror.c: Likewise.
33771 * lib/gl_array_list.c: Likewise.
33772 * lib/gl_array_oset.c: Likewise.
33773 * lib/gl_avltree_list.c: Likewise.
33774 * lib/gl_avltree_oset.c: Likewise.
33775 * lib/gl_avltreehash_list.c: Likewise.
33776 * lib/gl_carray_list.c: Likewise.
33777 * lib/gl_linked_list.c: Likewise.
33778 * lib/gl_linkedhash_list.c: Likewise.
33779 * lib/gl_list.c: Likewise.
33780 * lib/gl_oset.c: Likewise.
33781 * lib/gl_rbtree_list.c: Likewise.
33782 * lib/gl_rbtree_oset.c: Likewise.
33783 * lib/gl_rbtreehash_list.c: Likewise.
33784 * lib/imaxabs.c: Likewise.
33785 * lib/imaxdiv.c: Likewise.
33786 * lib/javacomp.c: Likewise.
33787 * lib/javaexec.c: Likewise.
33788 * lib/javaversion.c: Likewise.
33789 * lib/linebreak.c: Likewise.
33790 * lib/localcharset.c: Likewise.
33791 * lib/lock.c: Likewise.
33792 * lib/mbchar.c: Likewise.
33793 * lib/mbswidth.c: Likewise.
33794 * lib/mkdtemp.c: Likewise.
33795 * lib/pipe.c: Likewise.
33796 * lib/printf-args.c: Likewise.
33797 * lib/printf-parse.c: Likewise.
33798 * lib/progname.c: Likewise.
33799 * lib/progreloc.c: Likewise.
33800 * lib/readlink.c: Likewise.
33801 * lib/sh-quote.c: Likewise.
33802 * lib/stpcpy.c: Likewise.
33803 * lib/stpncpy.c: Likewise.
33804 * lib/strcasecmp.c: Likewise.
33805 * lib/strcasestr.c: Likewise.
33806 * lib/strcspn.c: Likewise.
33807 * lib/striconv.c: Likewise.
33808 * lib/strncasecmp.c: Likewise.
33809 * lib/strnlen1.c: Likewise.
33810 * lib/strstr.c: Likewise.
33811 * lib/strtok_r.c: Likewise.
33812 * lib/tls.c: Likewise.
33813 * lib/tmpdir.c: Likewise.
33814 * lib/unicodeio.c: Likewise.
33815 * lib/unsetenv.c: Likewise.
33816 * lib/vasnprintf.c: Likewise.
33817 * lib/vasprintf.c: Likewise.
33818 * lib/wait-process.c: Likewise.
33819 * lib/xallocsa.c: Likewise.
33820 * lib/xsetenv.c: Likewise.
33821 * lib/xstriconv.c: Likewise.
33823 2006-09-13 Simon Josefsson <jas@extundo.com>
33825 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
33826 that internally, suggested by Ralf Wildenhues
33827 <Ralf.Wildenhues@gmx.de>.
33829 2006-09-13 Simon Josefsson <jas@extundo.com>
33831 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
33833 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33835 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
33837 * lib/_fpending.c: Include <config.h> unconditionally, since we no
33838 longer worry about uses that don't define HAVE_CONFIG_H.
33839 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
33840 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
33841 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
33842 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
33843 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
33844 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
33845 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
33846 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
33847 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
33848 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
33849 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
33850 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
33851 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
33852 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
33853 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
33854 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
33855 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
33856 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
33857 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
33858 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
33859 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
33860 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
33861 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
33862 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
33863 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
33864 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
33865 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
33866 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
33867 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
33868 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
33869 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
33870 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
33871 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
33872 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
33873 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
33874 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
33875 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
33876 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
33877 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
33878 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
33879 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
33882 2006-09-13 Eric Blake <ebb9@byu.net>
33884 * lib/getopt.c: Fix typo in last commit.
33886 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
33888 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
33891 2006-09-12 Jim Meyering <jim@meyering.net>
33893 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
33894 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
33895 Reported by Nelson H. F. Beebe.
33897 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
33899 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
33900 program_invocation_name and program_invocation_short_name are
33902 * lib/argp-namefrob.h: Move declarations of program_invocation_name
33903 and program_invocation_short_name to argp.h, so they are visible
33905 * lib/argp.h: Likewise
33907 2006-09-10 Bruno Haible <bruno@clisp.org>
33909 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
33910 m4/inttypes_h.m4, m4/uintmax_t.m4.
33912 2006-09-10 Bruno Haible <bruno@clisp.org>
33914 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
33915 gl_AC_TYPE_UINTMAX_T.
33917 2006-09-10 Bruno Haible <bruno@clisp.org>
33919 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
33921 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
33923 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
33924 convention. Text proposed by Bruno Haible.
33925 (struct argp_option): Document the use of N_() wrappers.
33927 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
33928 '\v', and translate the two parts separately, instead of feeding
33929 the whole string to gettext. This allows to exclude
33930 '\v' from the strings visible to the translator by writing doc
33931 strings as N_("..") "\v" N_("..").
33933 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
33935 * config/srclist.txt: Undo latest change; the bug was fixed.
33937 2006-09-09 Bruno Haible <bruno@clisp.org>
33939 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
33940 assignments if building a library without libtool.
33941 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
33942 in func_emit_lib_Makefile_am.
33943 (func_import): When building a static library libfoo.a, arrange to
33944 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
33945 (func_create_testdir): Likewise.
33946 * modules/gc (configure.ac, Makefile.am): If building statically,
33947 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
33948 * modules/iconvme (configure.ac, Makefile.am): Likewise.
33949 * modules/striconv (configure.ac, Makefile.am): Likewise.
33950 Based on a suggestion by Ralf Wildenhues.
33952 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33954 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
33955 Check for unistd.h too, since Autoconf doesn't assume POSIX.
33958 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33959 Add year_2050_test to catch glibc bug 2821
33960 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33962 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
33963 Prefer #ifdef to #if.
33965 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
33966 Return from 'main' instead of calling 'exit'.
33968 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33970 * lib/mktime.c (guess_time_tm): Fix bug where mktime
33971 returned the maximum time_t value rather than (time_t) -1.
33972 Problem originally reported by William Bardwell
33973 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33975 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33977 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33980 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33982 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
33985 2006-09-08 Jim Meyering <jim@meyering.net>
33987 Don't make generated files read-only. That would bother too many
33988 people. However, do retain the ability to work when targets are
33989 read-only: remove the destination and temporary files before writing
33990 them (when generated via sed or echo), or by using the -f option for
33991 both cp and mv commands. Suggestion to use -f from Paul Eggert.
33992 * modules/alloca-opt, modules/argz, modules/arpa_inet:
33993 * modules/byteswap, modules/configmake, modules/fcntl:
33994 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
33995 * modules/localcharset, modules/netinet_in, modules/poll:
33996 * modules/stdbool, modules/stdint, modules/sys_select:
33997 * modules/sys_socket, modules/sys_stat, modules/sysexits:
33999 2006-09-08 Jim Meyering <jim@meyering.net>
34001 Avoid new build failure on FreeBSD 6.0.
34002 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
34003 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
34004 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
34006 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34008 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
34010 2006-09-07 Jim Meyering <jim@meyering.net>
34012 Fix global typo in last change: use chmod u-w, not chmod u-x.
34013 Spotted by Paul Eggert and Bruce Korb.
34014 * modules/alloca-opt, modules/argz, modules/arpa_inet:
34015 * modules/byteswap, modules/configmake, modules/fcntl:
34016 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34017 * modules/localcharset, modules/netinet_in, modules/poll:
34018 * modules/stdbool, modules/stdint, modules/sys_select:
34019 * modules/sys_socket, modules/sys_stat, modules/sysexits:
34021 2006-09-06 Jim Meyering <jim@meyering.net>
34023 Make generated files be read-only.
34024 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
34025 Ensure that each generated file is now read-only.
34026 * modules/argz: Likewise.
34027 * modules/arpa_inet: Likewise.
34028 * modules/byteswap: Likewise.
34029 * modules/configmake: Likewise.
34030 * modules/fcntl: Likewise.
34031 * modules/fnmatch: Likewise.
34032 * modules/getopt: Likewise.
34033 * modules/glob: Likewise.
34034 * modules/inttypes: Likewise.
34035 * modules/netinet_in: Likewise.
34036 * modules/poll: Likewise.
34037 * modules/stdbool: Likewise.
34038 * modules/stdint: Likewise.
34039 * modules/sys_select: Likewise.
34040 * modules/sys_socket: Likewise.
34041 * modules/sys_stat: Likewise.
34042 * modules/sysexits: Likewise.
34043 * modules/localcharset: Same as above, but continue using temporary
34044 file named "t-$@" (why different?) rather than the "$@-t" used
34047 * modules/sysexits (Makefile.am): Replace literal occurrences
34048 of "sysexit.h" more readable, and more consistent, "$@".
34050 2006-09-06 Bruno Haible <bruno@clisp.org>
34052 * modules/striconv: New file.
34053 * modules/xstriconv: New file.
34054 * MODULES.html.sh (Internationalization functions): Add striconv,
34057 2006-09-06 Bruno Haible <bruno@clisp.org>
34059 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
34060 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
34061 not using libtool correctly.
34063 2006-09-06 Bruno Haible <bruno@clisp.org>
34065 * lib/striconv.h: New file.
34066 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
34068 * lib/xstriconv.h: New file.
34069 * lib/xstriconv.c: New file.
34071 2006-09-06 Bruno Haible <bruno@clisp.org>
34073 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34076 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34078 * lib/argz_.h: Sync from Libtool.
34080 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
34081 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34083 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
34085 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
34087 * modules/trim: New file.
34089 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
34091 * lib/trim.h: New file.
34092 * lib/trim.c: New file.
34094 2006-09-05 Bruno Haible <bruno@clisp.org>
34096 * MODULES.html.sh (String handling): Add trim.
34098 2006-09-04 Karl Berry <karl@gnu.org>
34100 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
34101 until next release.
34103 2006-09-03 Bruno Haible <bruno@clisp.org>
34105 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
34108 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
34110 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
34111 not gl_GETLOADAVG. Omit unneeded semicolons.
34112 Problems reported by Ralf Wildenhues in
34113 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34114 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
34115 at the end, which is the usual gnulib style.
34117 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
34118 of doing all the work ourselves.
34119 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
34120 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
34122 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
34124 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
34125 Problem reported by Ralf Wildenhues in
34126 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34128 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
34129 HAVE_STRUCT_STATFS_F_FSTYPENAME.
34131 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
34133 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
34134 yesterday's patch by changing test -n to test -z.
34136 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
34138 * modules/getloadavg (Files): Add m4/getloadavg.m4.
34139 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
34140 the former is now obsolescent.
34142 * modules/chdir-long (Depends-on): Add fcntl.
34144 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
34146 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
34147 obsolescent, and programs should use gnulib instead.
34148 * m4/getloadavg.m4: New file, with contents taken from Autoconf
34149 but with prefixes changed.
34151 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
34153 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
34154 or stdbool.h, because they might not exist while configuring.
34156 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
34157 Don't include unistd.h or limits.h; not needed, since chdir-long.h
34159 (O_DIRECTORY): Remove.
34161 2006-08-31 Eric Blake <ebb9@byu.net>
34163 * gnulib-tool: Don't let emacs change spaces to TAB.
34165 2006-08-31 Bruno Haible <bruno@clisp.org>
34167 * gnulib-tool: When calling func_import more than once, do it in a
34169 Reported by Eric Blake <ebb9@byu.net>.
34171 2006-08-31 Bruno Haible <bruno@clisp.org>
34173 * gnulib-tool (nl): Remove variable.
34174 (sed_transform_lib_file): Use more robust test for config-h module.
34175 (func_import): Fix typo in 2006-08-25 patch.
34177 2006-08-31 Bruno Haible <bruno@clisp.org>
34179 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
34180 specified, augment Makefile.am variables instead of assigning them.
34182 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34184 Work around a bug in both the Linux and SunOS 64-bit kernels:
34185 nanosleep mishandles sleeps for longer than 2**31 seconds.
34186 Problem reported by Frank v Waveren in
34187 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34188 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
34189 Check for nanosleep bug.
34190 (LIB_NANOSLEEP): Append clock_gettime library if needed.
34192 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34194 Work around a bug in both the Linux and SunOS 64-bit kernels:
34195 nanosleep mishandles sleeps for longer than 2**31 seconds.
34196 Problem reported by Frank v Waveren in
34197 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34198 * lib/nanosleep.c (BILLION): New constant.
34199 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
34200 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
34203 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34205 * modules/nanosleep (Depends-on): Add gettime.
34207 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34208 and Simon Josefsson <jas@extundo.com>
34209 and Oskar Liljeblad <oskar@osk.mine.nu>
34211 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
34212 * gnulib-tool (func_import): New license type 'unmodifiable license
34214 * modules/fdl: Use it. Longer description.
34215 * module/gpl, module/lgpl: New files.
34217 2006-08-30 Jim Meyering <jim@meyering.net>
34219 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
34220 shadowing the parameter.
34222 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34226 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34228 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
34229 sharing with gnulib. Report by Eric Blake.
34231 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34233 * modules/isapipe: New file.
34234 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
34236 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34238 * modules/configmake (Makefile.am): Add a comment, and omit
34239 the CONFIGMAKE_ prefix from generated macro names. Suggested
34242 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34244 * m4/isapipe.m4: New file.
34246 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34248 * lib/isapipe.c, lib/isapipe.h: New files.
34250 2006-08-29 Jim Meyering <jim@meyering.net>
34252 * modules/configmake (Makefile.am): Make configmake.h depend on
34253 Makefile. Otherwise, a stale configmake.h could hang around.
34255 2006-08-29 Eric Blake <ebb9@byu.net>
34257 * lib/error.c (error_at_line, print_errno_message): Match libc, after
34258 resolution of upstream bug 3044.
34260 2006-08-29 Bruno Haible <bruno@clisp.org>
34262 * modules/localcharset (Depends-on): Add configmake.
34263 (Makefile.am): Remove setting of LIBDIR through DEFS.
34265 2006-08-29 Bruno Haible <bruno@clisp.org>
34267 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
34270 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34272 * modules/fcntl: New file.
34273 * modules/chdir-safer (Depends-on): Add fcntl.
34274 * modules/fts: Likewise.
34275 * modules/mkdir-p: Likewise.
34277 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
34278 This undoes the most recent change, since we're now addressing the
34279 problem in a different way.
34281 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
34282 into output, since the output might be called Makefile.am even
34283 if $makefile_name is something different.
34284 (func_import): Use $makefile_am rather than
34285 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
34288 * modules/inttypes (Files): Add m4/inttypes-h.m4.
34290 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34292 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
34293 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
34294 recent change to stdint.m4, since we're now addressing the problem in a
34297 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34299 * m4/fcntl_h.m4: New file.
34301 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34303 * lib/fcntl_.h: New file.
34304 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
34306 * lib/dirchownmod.c: Likewise.
34307 * lib/fts.c: Likewise.
34309 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
34310 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
34311 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
34312 just before including <inttypes.h>, to avoid circular inclusion.
34314 2006-08-28 Jim Meyering <jim@meyering.net>
34316 * doc/visibility.texi: Actually read and correct the grammar of the
34317 sentence affected by yesterday's change.
34319 2006-08-28 Eric Blake <ebb9@byu.net>
34321 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
34324 2006-08-28 Eric Blake <ebb9@byu.net>
34326 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
34328 2006-08-28 Eric Blake <ebb9@byu.net>
34330 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
34332 2006-08-28 Bruno Haible <bruno@clisp.org>
34334 * modules/c-strstr: New file, from GNU gettext.
34335 * MODULES.html.sh (String handling): Add c-strstr.
34337 2006-08-28 Bruno Haible <bruno@clisp.org>
34339 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
34341 Reported by Eric Blake.
34343 2006-08-28 Bruno Haible <bruno@clisp.org>
34345 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
34346 (VASNPRINTF): Return a string of length > INT_MAX without failing.
34347 * lib/vasprintf.c: Include errno.h, limits.h.
34348 (EOVERFLOW): New fallback definition.
34349 (vasprintf): Test here whether the string length is > INT_MAX.
34350 * lib/vsnprintf.c: Include errno.h, limits.h.
34351 (EOVERFLOW): New fallback definition.
34352 (vsnprintf): Fix bug when generated string was too long for the buffer.
34353 Test here whether the string length is > INT_MAX.
34355 2006-08-28 Bruno Haible <bruno@clisp.org>
34357 * lib/inttypes_.h (SCNX*): Remove definitions.
34358 Reported by Eric Blake.
34360 2006-08-28 Bruno Haible <bruno@clisp.org>
34362 * lib/c-strstr.h: New file, from GNU gettext.
34363 * lib/c-strstr.c: New file, from GNU gettext.
34365 2006-08-28 Bruno Haible <bruno@clisp.org>
34367 * gnulib-tool: Reorder some statements.
34369 2006-08-28 Bruno Haible <bruno@clisp.org>
34371 * gnulib-tool: New option --makefile-name.
34372 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
34374 (func_import): Write $makefile_name to the cache file, and read it from
34375 there unless explicitly specified. Use $makefile_name as file name
34376 instead of Makefile.am. Adjust the recommendations accordingly.
34378 2006-08-28 Bruno Haible <bruno@clisp.org>
34380 * gnulib-tool (func_verify_module): Check against misapplying patch.
34382 2006-08-28 Bruno Haible <bruno@clisp.org>
34384 * gnulib-tool (func_relativize, func_relconcat): New functions.
34385 Give an error if --local-dir is given with --update.
34386 Remove trailing slashes from $local_gnulib_dir.
34387 (func_import): Store the relativized $local_gnulib_dir in
34388 gnulib-cache.m4, and read it from there if not specified explicitly.
34390 2006-08-28 Bruno Haible <bruno@clisp.org>
34392 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
34393 is the current directory. Respect also $local_gnulib_dir.
34395 2006-08-28 Bruno Haible <bruno@clisp.org>
34396 Simon Josefsson <jas@extundo.com>
34399 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
34401 2006-08-27 Jim Meyering <jim@meyering.net>
34403 * doc/visibility.texi: Remove duplicate word: "pointer".
34405 2006-08-26 Bruno Haible <bruno@clisp.org>
34407 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
34408 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
34409 (Makefile.am): Create inttypes.h from inttypes_.h.
34410 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
34412 * modules/imaxabs: New file.
34414 * modules/imaxdiv: New file.
34416 2006-08-26 Bruno Haible <bruno@clisp.org>
34418 * m4/inttypes.m4: New file.
34419 * m4/_inttypes_h.m4: Remove file.
34420 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
34422 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
34424 * m4/imaxabs.m4: New file.
34426 * m4/imaxdiv.m4: New file.
34428 2006-08-26 Bruno Haible <bruno@clisp.org>
34430 * lib/inttypes_.h: New file.
34431 * lib/inttypes.h: Remove file.
34432 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
34434 * lib/imaxabs.c: New file.
34436 * lib/imaxdiv.c: New file.
34438 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
34440 New config-h module, so that "make" output needn't be cluttered
34441 by -DHAVE_CONFIG_H.
34442 * MODULES.html.sh (Support for building libraries and executables):
34444 * modules/config-h: New file.
34445 * gnulib-tool (nl, sed_transform_lib_file): New vars.
34446 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
34447 the config-h module is used.
34449 New configmake module, so that "make" output needn't be cluttered
34450 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
34451 * MODULES.html.sh (Support for building libraries and executables):
34453 * modules/configmake: New file.
34455 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
34457 * m4/config-h.m4: New file.
34459 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
34461 * config/srclist.txt: Add elisp-comp.
34463 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
34465 * MODULES.html.sh (Support for building libraries and executables):
34467 * build-aux/elisp-comp: New file.
34468 * modules/elisp-comp: New file.
34470 2006-08-24 Bruno Haible <bruno@clisp.org>
34472 * gnulib-tool (func_create_testdir): Use non-default values of
34473 sourcebase and m4base.
34475 2006-08-24 Bruno Haible <bruno@clisp.org>
34477 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
34480 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
34482 * modules/openat (Depends-on): Add lchown.
34484 2006-08-23 Bruno Haible <bruno@clisp.org>
34486 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
34487 of gl_LOCK_EARLY instead of gl_LOCK.
34489 2006-08-23 Bruno Haible <bruno@clisp.org>
34491 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
34493 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
34495 2006-08-23 Bruno Haible <bruno@clisp.org>
34497 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
34500 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
34501 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
34502 (gl_LOCK): New macro.
34504 2006-08-22 Simon Josefsson <jas@extundo.com>
34506 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
34509 2006-08-22 Simon Josefsson <jas@extundo.com>
34511 * MODULES.html.sh: Add "Support for maintaining and release
34514 * build-aux/gnupload: New file, from coreutils.
34516 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34518 Avoid the need for AC_LIBSOURCES in m4 macros.
34519 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
34520 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
34521 * modules/check-version (EXTRA_DIST): Add check-version.h.
34522 * modules/crc (EXTRA_DIST): Add crc.h.
34523 * modules/des (EXTRA_DIST): Add des.h.
34524 * modules/gc (EXTRA_DIST): Add gc.h.
34525 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
34526 * modules/getline (EXTRA_DIST): Add getline.h.
34527 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
34528 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
34529 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
34530 * modules/md2 (EXTRA_DIST): Add md2.h.
34531 * modules/md4 (EXTRA_DIST): Add md4.h.
34532 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
34533 * modules/read-file (EXTRA_DIST): Add read-file.h.
34534 * modules/readline (EXTRA_DIST): Add readline.h.
34535 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
34536 rijndael-api-fst.h.
34538 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34540 * m4/rijndael.m4 (gl_ARCFOUR):
34541 * m4/arctwo.m4 (gl_ARCTWO):
34542 * m4/check-version.m4 (gl_CHECK_VERSION):
34543 * m4/crc.m4 (gl_CRC):
34544 * m4/des.m4 (gl_DES):
34545 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
34546 * m4/gc.m4 (gl_GC):
34547 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
34548 * m4/getline.m4 (gl_FUNC_GETLINE):
34549 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
34550 * m4/hmac-md5.m4 (gl_HMAC_MD5):
34551 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
34552 * m4/md2.m4 (gl_MD2):
34553 * m4/md4.m4 (gl_MD4):
34554 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
34555 * m4/read-file.m4 (gl_FUNC_READ_FILE):
34556 * m4/readline.m4 (gl_FUNC_READLINE):
34557 * m4/rijndael.m4 (gl_RIJNDAEL):
34558 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
34559 to get the necessary .h files and whatnot.
34561 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34563 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
34564 gnulib rather than the other way around.
34565 * config/srclistvars.sh (COREUTILS): Remove.
34567 2006-08-22 Jim Meyering <jim@meyering.net>
34569 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
34571 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
34573 2006-08-22 Eric Blake <ebb9@byu.net>
34575 * modules/regexprops-generic: New file.
34576 * MODULES.html.sh (Support for building documentation): List it.
34578 2006-08-22 Eric Blake <ebb9@byu.net>
34580 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
34581 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34582 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
34583 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
34585 2006-08-22 Bruno Haible <bruno@clisp.org>
34587 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
34588 and lib_LTLIBRARIES like the other lib_* variables.
34590 2006-08-22 Bruno Haible <bruno@clisp.org>
34592 * build-aux/x-to-1.in: New file, from GNU gettext.
34594 2006-08-22 Bruno Haible <bruno@clisp.org>
34596 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
34599 2006-08-22 Bruno Haible <bruno@clisp.org>
34601 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
34604 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
34607 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
34609 Problem reported by Bruno Haible.
34611 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
34613 Avoid the need for AC_LIBSOURCES in m4 macros.
34614 * modules/acl (EXTRA_DIST): Add acl.h.
34615 * modules/argmatch (Files): Add m4/argmatch.m4.
34616 (configure.ac): Add gl_ARGMATCH.
34617 (EXTRA_DIST): Renamed from lib_SOURCES, for
34618 consistency with the other modules. Remove argmatch.c.
34619 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
34620 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
34621 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
34622 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
34623 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
34624 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
34625 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
34626 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
34627 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
34628 * modules/closeout (EXTRA_DIST): Add closeout.h.
34629 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
34630 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
34631 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
34632 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
34633 dirname.h; remove basename.c and stripslash.c.
34634 * modules/exclude (EXTRA_DIST): Add exclude.h.
34635 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
34636 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
34637 * modules/file-type (EXTRA_DIST): Add file-type.h.
34638 * modules/filemode (EXTRA_DIST): Add filemode.h.
34639 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
34640 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
34641 * modules/fpending (EXTRA_DIST): Add __fpending.h.
34642 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
34643 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
34644 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
34645 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
34646 * modules/getdate (EXTRA_DIST): Add getdate.c.
34647 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
34648 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
34649 * modules/getpass (EXTRA_DIST): Add getpass.h.
34650 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
34651 * modules/group-member (EXTRA_DIST): Add group-member.h.
34652 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
34653 * modules/hash (EXTRA_DIST): Add hash.h.
34654 * modules/human (EXTRA_DIST): Add human.h.
34655 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
34656 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
34657 * modules/lchown (EXTRA_DIST): Add lchown.h.
34658 * modules/long-options (EXTRA_DIST): Add long-options.h.
34659 * modules/lstat (EXTRA_DIST): Add lstat.h.
34660 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
34661 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
34662 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
34663 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
34664 * modules/memxor (EXTRA_DIST): Add memxor.h.
34665 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
34666 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
34667 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
34668 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
34669 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
34670 * modules/physmem (EXTRA_DIST): Add physmem.h.
34671 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
34672 * modules/posixver (EXTRA_DIST): Add posixver.h.
34673 * modules/quote (EXTRA_DIST): Add quote.h.
34674 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
34675 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
34676 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
34677 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
34678 regex_internal.h regexec.c.
34679 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
34680 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
34681 * modules/same (EXTRA_DIST): Add same.h.
34682 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
34683 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
34684 * modules/savedir (EXTRA_DIST): Add savedir.h.
34685 * modules/sha1 (EXTRA_DIST): Add sha1.h.
34686 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
34687 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
34688 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
34689 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
34690 * modules/strdup (EXTRA_DIST): Add strdup.h.
34691 * modules/strftime (EXTRA_DIST): Add strftime.h.
34692 * modules/strndup (EXTRA_DIST): Add strndup.h.
34693 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
34694 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
34695 * modules/time_r (EXTRA_DIST): Add time_r.h.
34696 * modules/timespec (EXTRA_DIST): Add timespec.h.
34697 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
34698 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
34699 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
34700 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
34701 * modules/userspec (EXTRA_DIST): Add userspec.h.
34702 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
34703 * modules/utimens (EXTRA_DIST): Add utimens.h.
34704 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
34705 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
34706 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
34707 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
34708 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
34709 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
34710 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
34711 * modules/yesno (EXTRA_DIST): Add yesno.h.
34713 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
34715 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
34717 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
34718 * m4/dev-ino.m4, same-inode.m4: Remove.
34720 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
34721 * m4/acl.m4 (AC_FUNC_ACL):
34722 * m4/backupfile.m4 (gl_BACKUPFILE):
34723 * m4/c-strtod.m4 (gl_C99_STRTOLD):
34724 * m4/canon-host.m4 (gl_CANON_HOST):
34725 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
34726 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
34727 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
34728 * m4/cloexec.m4 (gl_CLOEXEC):
34729 * m4/close-stream.m4 (gl_CLOSE_STREAM):
34730 * m4/closeout.m4 (gl_CLOSEOUT):
34731 * m4/dirfd.m4 (gl_FUNC_DIRFD):
34732 * m4/dirname.m4 (gl_DIRNAME):
34733 * m4/exclude.m4 (gl_EXCLUDE):
34734 * m4/exitfail.m4 (gl_EXITFAIL):
34735 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
34736 * m4/file-type.m4 (gl_FILE_TYPE):
34737 * m4/filemode.m4 (gl_FILEMODE):
34738 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
34739 * m4/fpending.m4 (gl_FUNC_FPENDING):
34740 * m4/fprintftime.m4 (gl_FPRINTFTIME):
34741 * m4/fts.m4 (gl_FUNC_FTS):
34742 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
34743 * m4/getdate.m4 (gl_GETDATE):
34744 * m4/gethrxtime.m4 (gl_GETHRXTIME):
34745 * m4/getpagesize.m4 (gl_GETPAGESIZE):
34746 * m4/getpass.m4 (gl_FUNC_GETPASS):
34747 * m4/gettime.m4 (gl_GETTIME):
34748 * m4/getugroups.m4 (gl_GETUGROUPS):
34749 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
34750 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
34751 * m4/hard-locale.m4 (gl_HARD_LOCALE):
34752 * m4/hash.m4 (gl_HASH):
34753 * m4/idcache.m4 (gl_IDCACHE):
34754 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
34755 * m4/lchown.m4 (gl_FUNC_LCHOWN):
34756 * m4/long-options.m4 (gl_LONG_OPTIONS):
34757 * m4/lstat.m4 (gl_FUNC_LSTAT):
34758 * m4/md5.m4 (gl_MD5):
34759 * m4/memcasecmp.m4 (gl_MEMCASECMP):
34760 * m4/memcoll.m4 (gl_MEMCOLL):
34761 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
34762 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
34763 * m4/memxor.m4 (gl_MEMXOR):
34764 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
34765 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
34766 * m4/modechange.m4 (gl_MODECHANGE):
34767 * m4/mountlist.m4 (gl_MOUNTLIST):
34768 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34769 * m4/openat.m4 (gl_FUNC_OPENAT):
34770 * m4/pathmax.m4 (gl_PATHMAX):
34771 * m4/physmem.m4 (gl_PHYSMEM):
34772 * m4/posixtm.m4 (gl_POSIXTM):
34773 * m4/posixver.m4 (gl_POSIXVER):
34774 * m4/quote.m4 (gl_QUOTE):
34775 * m4/quotearg.m4 (gl_QUOTEARG):
34776 * m4/readtokens.m4 (gl_READTOKENS):
34777 * m4/readutmp.m4 (gl_READUTMP):
34778 * m4/regex.m4 (gl_REGEX):
34779 * m4/safe-read.m4 (gl_SAFE_READ):
34780 * m4/safe-write.m4 (gl_SAFE_WRITE):
34781 * m4/same.m4 (gl_SAME):
34782 * m4/save-cwd.m4 (gl_SAVE_CWD):
34783 * m4/savedir.m4 (gl_SAVEDIR):
34784 * m4/settime.m4 (gl_SETTIME):
34785 * m4/sha1.m4 (gl_SHA1):
34786 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
34787 * m4/stat-macros.m4 (gl_STAT_MACROS):
34788 * m4/stat-time.m4 (gl_STAT_TIME):
34789 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
34790 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
34791 * m4/strdup.m4 (gl_FUNC_STRDUP):
34792 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
34793 * m4/strndup.m4 (gl_FUNC_STRNDUP):
34794 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
34795 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
34796 * m4/time_r.m4 (gl_TIME_R):
34797 * m4/timespec.m4 (gl_TIMESPEC):
34798 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
34799 * m4/unlinkdir.m4 (gl_UNLINKDIR):
34800 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
34801 * m4/userspec.m4 (gl_USERSPEC):
34802 * m4/utimecmp.m4 (gl_UTIMECMP):
34803 * m4/utimens.m4 (gl_UTIMENS):
34804 * m4/xalloc.m4 (gl_XALLOC):
34805 * m4/xgetcwd.m4 (gl_XGETCWD):
34806 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
34807 * m4/xreadlink.m4 (gl_XREADLINK):
34808 * m4/xstrtod.m4 (gl_XSTRTOD):
34809 * m4/yesno.m4 (gl_YESNO):
34810 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
34811 to get the necessary .h files and whatnot.
34813 2006-08-21 Mark D. Baushke <mdb@gnu.org>
34814 Bruno Haible <bruno@clisp.org>
34816 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
34817 /bin/sh understanding of '!' conditional negation.
34819 2006-08-21 Jim Meyering <jim@meyering.net>
34821 * modules/openat (Depends-on): Really alphabetize.
34823 * modules/acl (Depends-on): Add error and quote.
34825 * check-module (find_included_lib_files): Add at-func.c to the
34826 ok-to-include-more-than-once white list.
34828 * modules/openat (Depends-on): Add lstat. Alphabetize.
34830 2006-08-21 Bruno Haible <bruno@clisp.org>
34832 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34833 Emit a pkgdata_DATA variable only if some snippets add contents to it.
34834 Reported by Martin Lambers <marlam@marlam.de>.
34836 2006-08-21 Bruno Haible <bruno@clisp.org>
34838 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
34839 specify an installation location, don't emit a noinst_LIBRARIES or
34840 noinst_LTLIBRARIES assignment.
34842 2006-08-21 Bruno Haible <bruno@clisp.org>
34845 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
34846 BeOS has mbrtowc() but no <wctype.h>.
34848 2006-08-21 Bruno Haible <bruno@clisp.org>
34851 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
34854 2006-08-21 Bruno Haible <bruno@clisp.org>
34857 * lib/mbchar.h: Include <wctype.h> only if it exists.
34859 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
34861 Remove files that are no longer needed by their respective modules.
34862 * m4/obstack.m4: Remove.
34863 * m4/strerror_r.m4: Remove.
34864 * m4/uint32_t.m4: Remove.
34865 * m4/uintptr_t.m4: Remove.
34866 * m4/ullong_max.m4: Remove.
34867 * m4/xstrtoimax.m4: Remove.
34868 * m4/xstrtoumax.m4: Remove.
34870 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
34871 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
34872 dependencies now capture this.
34874 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
34875 Do not use AC_LIBSOURCES, since gnulib modules now do this.
34876 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
34877 * m4/human.m4 (gl_HUMAN): Likewise.
34878 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
34879 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
34881 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
34883 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
34884 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
34886 * m4/human.m4 (gl_HUMAN): Likewise.
34887 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
34888 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
34889 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
34890 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34891 * m4/xstrtol (gl_XSTRTOL): Likewise.
34893 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
34894 AC_TYPE_LONG_LONG_INT.
34895 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
34896 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
34897 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
34898 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34900 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
34903 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
34904 (gl_PREREQ_XSTRTOUL): Remove.
34906 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
34908 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
34911 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
34913 Add and change modules to make it easier for coreutils to use
34915 * modules/backupfile (Files): Remove m4/d-ino.m4.
34916 (Depends-on): Add d-ino.
34917 * modules/cycle-check (Depends-on): Add stdint.
34918 (lib_SOURCES): Add cycle-check.h.
34919 * modules/d-ino: New module.
34920 * modules/d-type: New module.
34921 * modules/error (Files): Remove m4/strerror_r.m4.
34922 * modules/filemode (Files): Add m4/st_dm_mode.m4.
34923 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34924 m4/inttypes_h.m4, m4/uintmax_t.m4.
34925 (Depends-on): Add stdint.
34926 (lib_SOURCES): Add fsusage.h.
34927 * modules/getcwd (Files): Remove d-ino.m4.
34928 (Depends-on): Add d-ino.
34929 * modules/getndelim2 (Depends-on): Add stdint.
34930 * modules/glob (Files): Remove m4/d-type.m4.
34931 (Depends-on): Add d-type.
34932 * modules/host-os: New module.
34933 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34934 m4/inttypes_h.m4, m4/uintmax_t.m4.
34935 * Depends-on: Add stdint.
34936 (lib_SOURCES): Add human.h.
34937 * modules/inttostr (Files): Remove m4/intmax_t.m4,
34938 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
34939 m4/uintmax_t.m4, m4/ulonglong.m4.
34940 (Depends-on): Add stdint.
34941 (EXTRA_DIST): Add inttostr.h.
34942 * modules/lchmod: New module.
34943 * modules/link-follow: New module.
34944 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
34945 (Depends-on): Add lchmod.
34946 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
34947 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
34948 (Depends-on): Add stdint.
34949 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
34950 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
34951 (Depends-on): Add stdint.
34952 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
34953 * modules/perl: New module.
34954 * modules/regex (Depends-on): Add stdint.
34955 * modules/rmdir-errno: New module.
34956 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34958 (Depends-on): Add stdint.
34959 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34961 (Depends-on): Add stdint.
34962 * modules/unlink-busy: New module.
34963 * modules/utimecmp (Depends-on): Add stdint.
34964 * modules/uptime: New module.
34965 * modules/winsz-ioctl: New module.
34966 * modules/winsz-termios: New module.
34967 * modules/xnanosleep (Depends-on): Add nanosleep.
34968 * modules/ullong_max: Remove.
34969 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
34970 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
34971 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
34972 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
34973 (Depends-on): Add inttypes.
34974 (lib_SOURCES): Add xstrtol.h.
34975 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
34976 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
34977 * MODULES.html.sh: Move 'assert' into the assert section.
34978 Move 'dummy' into the linking section.
34980 Add section for compatibility checks for POSIX:2001 functions,
34981 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
34982 winsz-ioctl, and winsz-termios into it.
34984 Add top-level Misc section and put host-os, perl, and uptime
34987 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
34989 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
34990 now assume the stdint module. Do not include inttypes.h.
34991 * lib/fsusage.h: Likewise.
34992 * lib/getndelim2.c: Likewise.
34993 * lib/human.h: Likewise.
34994 * lib/inttostr.h: Likewise.
34995 * lib/obstack.c: Likewise.
34996 * lib/regex_internal.h: Likewise.
34997 * lib/tempname.c: Likewise.
34998 * lib/utimecmp.c: Likewise.
34999 * lib/xstrtol.h: Likewise.
35001 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
35003 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
35004 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
35005 * lib/xtime.h: Likewise.
35007 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
35009 * modules/openat (Files): Add lib/fchmodat.c.
35010 Fixes problem reported by Jay Youngman.
35012 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
35014 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
35015 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
35017 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
35018 Bruno Haible <bruno@clisp.org>
35020 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
35021 and is a script that invokes bison. Tighten the code. Add comments.
35023 2006-08-18 Jim Meyering <jim@meyering.net>
35025 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
35026 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
35027 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
35028 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
35030 2006-08-18 Bruno Haible <bruno@clisp.org>
35032 * modules/bison-i18n: New file.
35033 * MODULES.html.sh (Internationalization functions): Add it.
35035 2006-08-18 Bruno Haible <bruno@clisp.org>
35037 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
35038 sys/statvfs.h. When getmntinfo was found, check its declaration and
35039 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
35041 2006-08-18 Bruno Haible <bruno@clisp.org>
35043 * m4/bison-i18n.m4: New file, from bison.
35045 2006-08-18 Bruno Haible <bruno@clisp.org>
35047 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
35048 (ME_DUMMY): Treat "kernfs" as a dummy.
35049 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
35051 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
35053 Update from coreutils.
35055 2006-08-15 Jim Meyering <jim@meyering.net>
35057 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
35059 2006-01-17 Jim Meyering <jim@meyering.net>
35061 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
35063 2006-01-11 Jim Meyering <jim@meyering.net>
35065 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
35066 Check for the lchmod function.
35068 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
35070 Update from coreutils.
35072 * lib/__fpending.h: Add copyright notice.
35073 * lib/fprintftime.h: Likewise.
35074 * lib/savedir.c: Use (C) in copyright notice.
35075 * lib/savedir.h: Likewise.
35077 2006-08-15 Jim Meyering <jim@meyering.net>
35079 * lib/at-func.c: New file, with the logic of all emulated at-functions.
35080 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
35081 in support of the EXPECTED_ERRNO macro.
35082 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
35083 definitions. Instead, define the appropriate symbols and include
35085 * lib/mkdirat.c (mkdirat): Likewise.
35086 * lib/fchmodat.c (fchmodat): Likewise.
35087 (ENOSYS): Remove definition.
35088 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
35089 it. Don't include "unistd--.h" -- it wasn't ever used.
35091 2006-01-17 Jim Meyering <jim@meyering.net>
35093 Rewrite fts.c not to change the current working directory,
35094 by using openat, fstatat, fdopendir, etc..
35096 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
35097 (HAVE_OPENAT_SUPPORT): Define.
35098 [_LIBC] (fchdir): Don't undef or define; no longer used.
35099 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
35100 Now, this `function' always succeeds, and consumes its file descriptor
35101 parameter -- so callers must not close such FDs. Update callers.
35102 (diropen_fd, opendirat, cwd_advance_fd): New functions.
35103 (diropen): Add parameter, SP. Adjust all callers.
35104 Implement using diropen_fd, rather than open.
35105 (fts_open): Initialize new member, fts_cwd_fd.
35106 Remove fts_rft-setting code.
35107 (fts_close): Close fts_cwd_fd, if necessary.
35108 (__opendir2): Define in terms of opendir or opendirat,
35109 depending on whether the FST_NOCHDIR flag is set.
35110 (fts_build): Since fts_safe_changedir consumes its FD, and since
35111 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
35112 and close the dup'd file descriptor upon failure.
35113 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
35114 (fts_safe_changedir): Tweak semantics to reflect that this function
35115 now calls cwd_advance_fd and hence consumes its FD argument.
35116 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
35117 [struct FTS] (fts_rft): Remove now-unused member.
35118 [struct FTS] (fts_cycle.state): Improve comment.
35120 * lib/openat.c (openat_needs_fchdir): New function.
35121 * lib/openat.h (openat_needs_fchdir): Declare it.
35123 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
35125 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
35126 Problem and fix reported by Pádraig Brady in
35127 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
35129 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
35131 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
35133 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
35135 * lib/memcoll.c (memcoll): Optimize for the common case where the
35136 arguments are bytewise equal.
35138 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
35140 * doc/regexprops-generic.texi: Add a copyright notice.
35142 2006-08-15 Bruno Haible <bruno@clisp.org>
35144 * modules/tmpdir (License): Change to LGPL.
35146 2006-08-15 Bruno Haible <bruno@clisp.org>
35148 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
35151 2006-08-14 Simon Josefsson <jas@extundo.com>
35153 * config/srclist.txt: Add gnupload.
35155 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35157 Change copyright notice from LGPL 2 to GPL 2, since that's the
35158 standard form used in the gnulib repository.
35159 * tests/test-lock.c: Likewise.
35160 * tests/test-stdint.c: Likewise.
35161 * tests/test-tls.c: Likewise.
35163 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
35164 prelude-manager. User shorter URLs for GNU projects, without '?'.
35165 Add copyright notice.
35167 * check-module: Add copyright notice. Output a copyright
35168 notice if "--version" is specified.
35169 * modules/COPYING: New file.
35170 * tests/test-getaddrinfo.c: Add copyright notice.
35171 * tests/test-verify.c: Likewise.
35173 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35175 Change copyright notice from LGPL 2 to GPL 2, since that's the
35176 standard form used in the gnulib repository.
35177 * lib/lock.c: LGPL -> GPL.
35178 * lib/lock.h: Likewise.
35179 * lib/strnlen1.c: Likewise.
35180 * lib/strnlen1.h: Likewise.
35181 * lib/tls.c: Likewise.
35182 * lib/tls.h: Likewise.
35183 * lib/tmpdir.c: Likewise.
35185 * lib/TODO: Remove; this belongs only in coreutils.
35187 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35189 Add copyright notices to long-enough files that lack them, since
35190 otherwise the files aren't clearly free. Use the same notice that
35191 getdate.texi already uses.
35192 * doc/alloca-opt.texi: Add copyright notice.
35193 * doc/alloca.texi: Likewise.
35194 * doc/ctime.texi: Likewise.
35195 * doc/functions.texi: Likewise.
35196 * doc/gcd.texi: Likewise.
35197 * doc/gnulib-tool.texi: Likewise.
35198 * doc/inet_ntoa.texi: Likewise.
35199 * doc/visibility.texi: Likewise.
35201 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
35202 * doc/quote.texi: Add copyright notice.
35204 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
35205 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
35206 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
35207 Mention SunOS 5.11. Mention that everything before SunOS 5.7
35208 is now obsolete, and give a pointer to the Sun list.
35209 Add copyright notice.
35211 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35213 * config/srclistvars.sh: Add copyright notice.
35215 2006-08-14 Eric Blake <ebb9@byu.net>
35217 Import the following change from libc:
35219 2006-08-12 Ulrich Drepper <drepper@redhat.com>
35222 * lib/misc/error.c: Add space between program name and message if file
35225 2006-08-12 Karl Berry <karl@gnu.org>
35227 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
35228 remove, these originate in gnulib now.
35230 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35232 * doc/Makefile (standards.info standards.html standards.dvi):
35233 Also depend on make-stds.texi.
35235 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
35237 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
35238 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
35240 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
35241 in wchar_t. Problem reported by Eric Blake.
35243 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
35244 LEN is smaller than SIZE. Suggested by Bruno Haible.
35245 Also, help the compiler to keep LEN in a register.
35247 2006-08-11 Eric Blake <ebb9@byu.net>
35249 * users.txt: Sort. Add tar.
35251 2006-08-11 Bruno Haible <bruno@clisp.org>
35253 * users.txt: New file.
35255 2006-08-11 Bruno Haible <bruno@clisp.org>
35257 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
35258 before <wchar.h>. Needed for OSF/1 and BSD/OS.
35260 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
35262 * modules/snprintf (Depends-on): Remove minmax.
35263 (Maintainer): Add self and Bruno.
35265 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
35267 * lib/.cppi-disable: Add snprintf.h, socket_.h.
35268 * lib/snprintf.c: Include <errno.h> and <limits.h>.
35269 (EOVERFLOW): Define if the system does not.
35270 Do not include "minmax.h"; it wasn't used.
35271 (snprintf): Don't assume size_t promotes to an unsigned type.
35272 Fix bug when generated string was too long for the buffer: the
35273 buffer's contents are supposed to be the initial prefix of the
35274 output. Don't assume vasnprintf returns EOVERFLOW if the size
35275 exceeds INT_MAX; do the check ourselves.
35277 Import the following changes from libc:
35279 2006-06-02 Jakub Jelinek <jakub@redhat.com>
35281 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
35282 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
35283 set wc to the byte which couldn't be converted.
35284 (re_string_reconstruct): Don't clear valid_raw_len before calling
35285 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
35286 tip_context using re_string_context_at.
35288 2006-05-02 Ulrich Drepper <drepper@redhat.com>
35290 * lib/posix/regex.h: g++ still cannot handled [restrict].
35292 2006-04-21 Ulrich Drepper <drepper@redhat.com>
35294 * lib/posix/regex.h: Remove special handling for VMS.
35296 2006-08-10 Jim Meyering <jim@meyering.net>
35298 * modules/same-inode: New module.
35299 * modules/dev-ino: New module.
35300 * modules/cycle-check: Depend on these modules, rather than simply
35301 including their .h files.
35302 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
35303 required via m4/cycle-check.m4.
35304 * modules/same: Depend on new same-inode module, rather than
35305 including same-inode.h.
35306 * modules/chdir-safer: New file.
35308 * modules/chown (Depends-on): Add stat-macros.
35310 2006-08-10 Jim Meyering <jim@meyering.net>
35312 * m4/cycle-check.m4: New file.
35313 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
35314 * m4/dev-ino.m4, m4/same-inode.m4: New files.
35316 2006-08-10 Eric Blake <ebb9@byu.net>
35318 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
35319 in from original proposal.
35321 2006-08-10 Eric Blake <ebb9@byu.net>
35322 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35324 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
35327 2006-08-10 Bruno Haible <bruno@clisp.org>
35329 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
35332 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35334 Sync from coreutils.
35336 2006-07-19 Mike Frysinger <vapier@gentoo.org>
35338 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
35339 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
35341 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35343 * modules/restrict: Remove; no longer needed now that we assume
35344 Autoconf 2.59 or later.
35345 * MODULES.html.sh: Remove 'restrict'.
35346 * modules/argp (Depends-on): Remove 'restrict'.
35347 * modules/base64 (Depends-on): Likewise.
35348 * modules/gc (Depends-on): Likewise.
35349 * modules/getaddrinfo (Depends-on): Likewise.
35350 * modules/glob (Depends-on): Likewise.
35351 * modules/inet_ntop (Depends-on): Likewise.
35352 * modules/inet_pton (Depends-on): Likewise.
35353 * modules/memxor (Depends-on): Likewise.
35354 * modules/regex (Depends-on): Likewise.
35355 * modules/strtok_r (Depends-on): Likewise.
35356 * modules/time_r (Depends-on): Likewise.
35358 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35360 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
35361 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
35362 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35363 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
35364 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
35365 * m4/memxor.m4 (gl_MEMXOR): Likewise.
35366 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
35367 gl_C_RESTRICT replaced by AC_C_RESTRICT.
35369 Merge from coreutils.
35370 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
35371 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
35372 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35373 * m4/time_r.m4 (gl_TIME_R): Likewise.
35375 2006-08-09 Karl Berry <karl@gnu.org>
35377 * config/srclist.txt: no more gettext-tools, per Bruno.
35379 2006-08-08 Eric Blake <ebb9@byu.net>
35381 * modules/verror: New module.
35382 * MODULES.html.sh: Document it.
35384 2006-08-08 Eric Blake <ebb9@byu.net>
35386 * lib/verror.h, lib/verror.c: New files.
35388 2006-08-08 Eric Blake <ebb9@byu.net>
35390 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
35391 verror_at_line output complies with GNU Coding Standards even when
35394 2006-08-07 Bruno Haible <bruno@clisp.org>
35396 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
35398 Reported by Ralf Wildenhues.
35400 2006-08-07 Bruno Haible <bruno@clisp.org>
35402 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
35403 in an AC_DEFUN. Needed so that the autoconf snippets can use
35406 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35408 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35409 Initialize pkgdata_DATA.
35410 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
35413 2006-08-06 Eric Blake <ebb9@byu.net>
35415 * lib/error.h: Fold in some upstream changes from glibc.
35416 * lib/error.c: Likewise.
35418 2006-08-04 Bruno Haible <bruno@clisp.org>
35420 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35421 Make the mostlyclean-local rule depend on mostlyclean-generic.
35422 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
35424 2006-07-31 Bruno Haible <bruno@clisp.org>
35426 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
35427 <stdlib.h>, <string.h>.
35429 2006-07-30 Bruno Haible <bruno@clisp.org>
35431 * modules/readlink (License): Change to LGPL.
35433 2006-07-30 Bruno Haible <bruno@clisp.org>
35435 * modules/javaversion (Makefile.am): Distribute javaversion.java and
35436 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
35437 set PKGDATADIR to point to it.
35439 2006-07-30 Bruno Haible <bruno@clisp.org>
35441 * modules/csharpexec (configure.ac): Comment out macro invocation.
35442 * modules/javaexec (configure.ac): Likewise.
35443 * modules/javacomp-script (configure.ac): Likewise.
35445 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
35447 2006-07-30 Bruno Haible <bruno@clisp.org>
35449 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
35452 2006-07-30 Bruno Haible <bruno@clisp.org>
35454 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
35456 2006-07-30 Bruno Haible <bruno@clisp.org>
35458 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35459 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
35462 2006-07-29 Bruno Haible <bruno@clisp.org>
35464 Make it possible for gnulib-tool to work with locally modified or
35465 augmented gnulib repositories.
35466 * gnulib-tool (func_usage): Document --local-dir option.
35467 (local_gnulib_dir): New variable.
35468 Handle --local-dir option.
35469 (func_lookup_file): New function.
35470 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
35471 (func_get_description, func_get_filelist, func_get_description,
35472 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
35473 func_get_automake_snippet, func_get_include_directive,
35474 func_get_license, func_get_maintainer): Use func_lookup_file.
35475 (func_import, func_create_testdir): Use func_lookup_file.
35477 2006-07-29 Bruno Haible <bruno@clisp.org>
35479 * modules/setenv (Depends-on): Add unistd.
35481 2006-07-29 Bruno Haible <bruno@clisp.org>
35483 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
35485 2006-07-29 Bruno Haible <bruno@clisp.org>
35487 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
35489 2006-07-29 Bruno Haible <bruno@clisp.org>
35491 * gnulib-tool (import, update): If there is no Makefile.am, look at
35492 aclocal.m4, instead of bailing out.
35494 2006-07-29 Bruno Haible <bruno@clisp.org>
35496 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
35497 Categorize the options by when they are useful.
35499 2006-07-29 Bruno Haible <bruno@clisp.org>
35501 * gnulib-tool (func_usage): Document option --no-libtool.
35502 Handle option --no-libtool.
35503 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
35504 for changed semantics of $libtool variable.
35505 (func_import): Likewise. If libtool is not used, show this through
35506 an option --no-libtool.
35507 (func_create_testdir): Update.
35509 2006-07-29 Bruno Haible <bruno@clisp.org>
35511 * gnulib-tool (func_import): Extend error message about missing
35514 2006-07-29 Bruno Haible <bruno@clisp.org>
35516 * gnulib-tool (func_import): Don't create the $docbase directory if
35517 there is no file to store there.
35519 2006-07-29 Bruno Haible <bruno@clisp.org>
35521 * gnulib-tool (autoconf_minversion): If a --dir option is given and
35522 relevant, look for configure.ac there, not in the current directory.
35523 Also use a simple search for AC_PREREQ, not "autoconf --trace".
35525 2006-07-29 Bruno Haible <bruno@clisp.org>
35527 * gnulib-tool (SORT): New variable.
35528 (func_usage): Undocument --assume-autoconf option.
35529 Remove --assume-autoconf option handling.
35530 (autoconf_minversion): Determine from the contents of configure.ac.
35531 (func_import): Remove autoconf_minversion handling.
35532 Suggested by Eric Blake.
35534 2006-07-29 Bruno Haible <bruno@clisp.org>
35536 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
35538 2006-07-29 Bruno Haible <bruno@clisp.org>
35540 * config/srclist.txt (*setenv.[ch]): Remove rules.
35542 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35544 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
35546 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35548 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
35551 2006-07-28 Simon Josefsson <jas@extundo.com>
35553 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
35554 * modules/inet_pton (Depends-on): Likewise.
35556 2006-07-28 Simon Josefsson <jas@extundo.com>
35558 * m4/netinet_in_h.m4: New file.
35560 2006-07-28 Simon Josefsson <jas@extundo.com>
35562 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
35565 2006-07-28 Simon Josefsson <jas@extundo.com>
35567 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
35570 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
35572 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
35573 setgid on directories only if they set these bits.
35574 * lib/modechange.h: Remove obsolete comment about masks.
35576 2006-07-28 Eric Blake <ebb9@byu.net>
35578 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
35581 2006-07-28 Bruno Haible <bruno@clisp.org>
35583 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
35585 2006-07-28 Bruno Haible <bruno@clisp.org>
35587 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
35589 2006-07-28 Bruno Haible <bruno@clisp.org>
35591 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35592 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35594 Avoids link error on FreeBSD 4.x.
35595 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35597 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
35599 * lib/mbswidth.c (iswcntrl): Likewise.
35601 2006-07-27 Bruno Haible <bruno@clisp.org>
35603 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
35606 2006-07-27 Bruno Haible <bruno@clisp.org>
35608 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
35609 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
35612 2006-07-26 Eric Blake <ebb9@byu.net>
35614 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
35616 2006-07-26 Eric Blake <ebb9@byu.net>
35618 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
35619 like mingw that lack mkstemp.
35620 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
35621 avoid compilation warning on mingw.
35623 2006-07-26 Bruno Haible <bruno@clisp.org>
35625 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
35626 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
35627 INT_FAST*_MIN, INTPTR_MIN.
35629 2006-07-25 Bruno Haible <bruno@clisp.org>
35631 * modules/version-etc (Depends-on): Add stdarg.
35633 2006-07-25 Bruno Haible <bruno@clisp.org>
35635 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
35638 2006-07-25 Bruno Haible <bruno@clisp.org>
35640 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
35641 defined in <stdarg.h> or config.h.
35643 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
35645 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
35646 (gl_STDIO_SAFER): Remove.
35648 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
35650 * MODULES.html.sh (File stream based Input/Output):
35651 Add fopen-safer, tmpfile-safer; remove stdio-safer.
35652 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
35653 * modules/fopen-safer, modules/tmpfile-safer: New files.
35654 * modules/stdio-safer: Remove.
35656 2006-07-24 Bruno Haible <bruno@clisp.org>
35658 * modules/tmpdir: New file.
35659 * MODULES.html.sh (File system functions): Add it.
35661 2006-07-24 Bruno Haible <bruno@clisp.org>
35663 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
35664 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
35666 2006-07-24 Bruno Haible <bruno@clisp.org>
35668 * modules/clean-temp: New file.
35670 2006-07-24 Bruno Haible <bruno@clisp.org>
35672 * m4/tmpdir.m4: New file, from GNU gettext.
35674 2006-07-24 Bruno Haible <bruno@clisp.org>
35676 * lib/tmpdir.h: New file, from GNU gettext.
35677 * lib/tmpdir.c: New file, from GNU gettext.
35679 2006-07-24 Bruno Haible <bruno@clisp.org>
35681 * lib/clean-temp.h: New file, from GNU gettext.
35682 * lib/clean-temp.c: New file, from GNU gettext.
35684 2006-07-23 Eric Blake <ebb9@byu.net>
35686 * modules/stdio-safer (Files): Add tmpfile-safer.c.
35687 (Depends-on): Add binary-io.
35689 2006-07-23 Eric Blake <ebb9@byu.net>
35691 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
35693 2006-07-23 Eric Blake <ebb9@byu.net>
35695 * lib/tmpfile-safer.c: New file.
35696 * lib/stdio-safer.h (fopen_safer): Add prototype.
35697 * lib/stdio--.h (tmpfile): Make safer.
35699 2006-07-23 Bruno Haible <bruno@clisp.org>
35701 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
35702 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
35703 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
35704 gl_linked_remove_at): Use it.
35706 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35707 and Simon Josefsson <jas@extundo.com>
35709 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
35711 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
35713 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
35715 * modules/close-stream: New file.
35716 * modules/closeout (Description): Make it clear that it exits
35717 with a diagnostic on error.
35718 (Depends-on): Add close-stream. Remove fpending, stdbool.
35719 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
35721 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
35723 * m4/close-stream.m4: New file.
35725 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
35727 * lib/close-stream.c, lib/close-stream.h: New files.
35729 2006-07-22 Bruno Haible <bruno@clisp.org>
35731 Merge from GNU gettext 0.15.
35733 2006-05-01 Bruno Haible <bruno@clisp.org>
35735 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
35737 2006-07-22 Bruno Haible <bruno@clisp.org>
35739 * modules/javaversion: New file.
35740 * MODULES.html.sh (Java): Add javaversion.
35742 2006-03-12 Bruno Haible <bruno@clisp.org>
35744 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
35746 2005-12-04 Bruno Haible <bruno@clisp.org>
35748 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
35751 2006-06-21 Bruno Haible <bruno@clisp.org>
35753 Avoid warnings from recent versions of mcs.
35754 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
35755 -o, -L, -r any more. Use options documented since mcs-1.0
35756 instead. Similarly for -g.
35758 2005-12-04 Bruno Haible <bruno@clisp.org>
35760 * build-aux/csharpcomp.sh.in: Suffix for resources is
35761 .resources, not .resource.
35763 2005-07-09 Bruno Haible <bruno@clisp.org>
35765 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
35767 Reported by Mark Junker <mjscod@gmx.de>.
35769 2006-07-22 Bruno Haible <bruno@clisp.org>
35771 * modules/gettext: Upgrade to gettext-0.15.
35772 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
35774 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
35776 2006-07-22 Bruno Haible <bruno@clisp.org>
35778 Merge from GNU gettext 0.15.
35780 2006-03-25 Bruno Haible <bruno@clisp.org>
35782 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
35784 2006-07-21 Bruno Haible <bruno@clisp.org>
35786 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
35789 2006-05-09 Bruno Haible <bruno@clisp.org>
35791 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
35792 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
35793 for the conftestver execution.
35795 2006-05-01 Bruno Haible <bruno@clisp.org>
35797 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
35798 optional target-version argument. Verify that the compiler
35799 groks source of the specified source-version, or add -source
35800 option as necessary. Verify that the compiler produces
35801 bytecode in the specified target-version, or add -target and
35802 -source options as necessary. Make the result of the test
35803 available as variable CONF_JAVAC. Also log error output in
35806 2006-03-11 Bruno Haible <bruno@clisp.org>
35808 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
35810 2006-05-09 Bruno Haible <bruno@clisp.org>
35812 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
35813 CLASSPATH_SEPARATOR to a semicolon.
35815 2006-03-12 Bruno Haible <bruno@clisp.org>
35817 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
35818 available as variable CONF_JAVA, for subsequent autoconf
35819 tests. Also log error output in config.log.
35821 2006-07-19 Bruno Haible <bruno@clisp.org>
35823 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
35824 that getline works on glibc2 systems. Needed to avoid trouble
35826 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
35828 2005-12-04 Bruno Haible <bruno@clisp.org>
35830 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
35831 launcher (untested).
35833 2005-12-04 Bruno Haible <bruno@clisp.org>
35835 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
35837 2006-07-22 Bruno Haible <bruno@clisp.org>
35839 * gettext.m4: Update from GNU gettext-0.15.
35840 * nls.m4: Likewise.
35842 * inttypes-pri.m4: Likewise.
35843 * inttypes-h.m4: Renamed from inttypes.m4.
35844 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
35846 2006-07-22 Bruno Haible <bruno@clisp.org>
35848 Merge from GNU gettext 0.15.
35850 2005-07-05 Bruno Haible <bruno@clisp.org>
35852 * printf-args.c (printf_fetchargs): Work around broken
35853 definition of wint_t on mingw.
35855 2005-02-12 Bruno Haible <bruno@clisp.org>
35857 * xallocsa.h: Add extern "C" for C++.
35859 2006-05-17 Bruno Haible <bruno@clisp.org>
35861 Cygwin portability.
35862 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
35864 2006-04-30 Bruno Haible <bruno@clisp.org>
35866 * progreloc.c: Include <mach-o/dyld.h> if available.
35867 (find_executable): Use _NSGetExecutablePath when possible.
35869 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
35871 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
35874 2005-12-29 Bruno Haible <bruno@clisp.org>
35876 * progreloc.c (set_program_name_and_installdir): Fix
35879 2005-12-04 Bruno Haible <bruno@clisp.org>
35881 Cygwin portability.
35882 * progreloc.c: Include <windows.h> also on Cygwin.
35883 (find_executable): Add support for Cygwin.
35884 (set_program_name_and_installdir): Handle also platforms with
35887 2006-07-11 Bruno Haible <bruno@clisp.org>
35889 * javacomp.c: Fix a comment.
35890 Reported by Jim Meyering.
35892 2006-04-30 Bruno Haible <bruno@clisp.org>
35894 * javacomp.h (compile_java_class): Add source_version,
35895 target_version arguments.
35896 * javacomp.c: Rewritten to choose only a compiler that
35897 respects the specified source_version and target_version.
35899 2006-06-27 Bruno Haible <bruno@clisp.org>
35901 Assume correct S_ISDIR macro.
35902 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
35904 2006-07-22 Bruno Haible <bruno@clisp.org>
35906 * javaversion.h: New file, from GNU gettext.
35907 * javaversion.c: New file, from GNU gettext.
35908 * javaversion.java: New file, from GNU gettext.
35909 * javaversion.class: New file, from GNU gettext.
35911 2006-05-17 Bruno Haible <bruno@clisp.org>
35913 Cygwin portability.
35914 * javaexec.c (execute_java_class): Test for jview program
35917 2006-04-09 Bruno Haible <bruno@clisp.org>
35919 * fatal-signal.c: Don't include string.h.
35920 (at_fatal_signal): Use a copying loop instead of memcpy.
35922 2005-12-04 Bruno Haible <bruno@clisp.org>
35924 * csharpexec.c: Add support for 'clix' launcher (untested).
35925 (execute_csharp_using_sscli): New function.
35926 (execute_csharp_program): Call it.
35928 2006-06-21 Bruno Haible <bruno@clisp.org>
35930 Avoid warnings from recent versions of mcs.
35931 * csharpcomp.c (compile_csharp_using_mono): Don't use options
35932 -o, -L, -r any more. Use options documented since mcs-1.0
35933 instead. Similarly for -g.
35935 2005-07-09 Bruno Haible <bruno@clisp.org>
35937 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
35939 Reported by Mark Junker <mjscod@gmx.de>.
35941 2006-06-17 Bruno Haible <bruno@clisp.org>
35943 * config.charset: Update for NetBSD 3.0.
35945 2006-05-17 Bruno Haible <bruno@clisp.org>
35947 Cygwin portability.
35948 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
35950 2006-05-16 Bruno Haible <bruno@clisp.org>
35952 * localcharset.c [CYGWIN]: Include <windows.h>.
35953 (get_charset_aliases): For Cygwin, return the same CPxxx
35954 aliases list as under WIN32.
35955 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
35956 the environment variables. Fall back to GetACP().
35958 2006-04-05 Bruno Haible <bruno@clisp.org>
35960 * config.charset: Update Juan Manuel Guerrero's address.
35962 2005-02-12 Bruno Haible <bruno@clisp.org>
35964 * allocsa.h: Add extern "C" for C++.
35966 2005-02-10 Bruno Haible <bruno@clisp.org>
35968 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
35969 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
35971 2006-07-22 Bruno Haible <bruno@clisp.org>
35973 * gettext.h: Update to GNU gettext-0.15.
35975 2006-07-22 Bruno Haible <bruno@clisp.org>
35977 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
35978 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
35979 lib-prefix.m4, longdouble.m4, ssize_t.m4.
35981 2006-07-21 Eric Blake <ebb9@byu.net>
35983 * modules/stdlib-safer: New file.
35984 * MODULES.html.sh (File stream based Input/Output): Add
35987 2006-07-21 Eric Blake <ebb9@byu.net>
35989 * lib/stdlib-safer.h: New file from coreutils, required by
35992 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
35994 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
35996 2006-07-20 Bruno Haible <bruno@clisp.org>
35998 * gnulib-tool: Recognize new option --assume-autoconf.
35999 (autoconf_minversion): New variable.
36000 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
36002 2006-07-20 Bruno Haible <bruno@clisp.org>
36004 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
36006 2006-07-19 Derek R. Price <derek@ximbiot.com>
36008 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
36009 Reindent and repaginate.
36011 2006-07-19 Derek Price <derek@ximbiot.com>
36013 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
36016 2006-07-17 Bruno Haible <bruno@clisp.org>
36018 * modules/list: New file.
36019 * modules/array-list: New file.
36020 * modules/carray-list, modules/carray-list-tests: New files.
36021 * modules/linked-list, modules/linked-list-tests: New files.
36022 * modules/avltree-list, modules/avltree-list-tests: New files.
36023 * modules/rbtree-list, modules/rbtree-list-tests: New files.
36024 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
36025 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
36026 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
36027 * modules/oset: New file.
36028 * modules/array-oset: New file.
36029 * modules/avltree-oset, modules/avltree-oset-tests: New files.
36030 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
36031 * tests/test-carray_list.c: New file.
36032 * tests/test-linked_list.c: New file.
36033 * tests/test-avltree_list.c: New file.
36034 * tests/test-rbtree_list.c: New file.
36035 * tests/test-linkedhash_list.c: New file.
36036 * tests/test-avltreehash_list.c: New file.
36037 * tests/test-rbtreehash_list.c: New file.
36038 * tests/test-avltree_oset.c: New file.
36039 * tests/test-rbtree_oset.c: New file.
36040 * MODULES.html.sh (Container data structures): New section.
36042 2006-07-17 Bruno Haible <bruno@clisp.org>
36044 * m4/gl_list.m4: New file.
36046 2006-07-17 Bruno Haible <bruno@clisp.org>
36048 * lib/gl_list.h: New file.
36049 * lib/gl_list.c: New file.
36050 * lib/gl_array_list.h: New file.
36051 * lib/gl_array_list.c: New file.
36052 * lib/gl_carray_list.h: New file.
36053 * lib/gl_carray_list.c: New file.
36054 * lib/gl_linked_list.h: New file.
36055 * lib/gl_linked_list.c: New file.
36056 * lib/gl_anylinked_list1.h: New file.
36057 * lib/gl_anylinked_list2.h: New file.
36058 * lib/gl_avltree_list.h: New file.
36059 * lib/gl_avltree_list.c: New file.
36060 * lib/gl_anyavltree_list1.h: New file.
36061 * lib/gl_anyavltree_list2.h: New file.
36062 * lib/gl_rbtree_list.h: New file.
36063 * lib/gl_rbtree_list.c: New file.
36064 * lib/gl_anyrbtree_list1.h: New file.
36065 * lib/gl_anyrbtree_list2.h: New file.
36066 * lib/gl_anytree_list1.h: New file.
36067 * lib/gl_anytree_list2.h: New file.
36068 * lib/gl_linkedhash_list.h: New file.
36069 * lib/gl_linkedhash_list.c: New file.
36070 * lib/gl_anyhash_list1.h: New file.
36071 * lib/gl_anyhash_list2.h: New file.
36072 * lib/gl_avltreehash_list.h: New file.
36073 * lib/gl_avltreehash_list.c: New file.
36074 * lib/gl_rbtreehash_list.h: New file.
36075 * lib/gl_rbtreehash_list.c: New file.
36076 * lib/gl_anytreehash_list1.h: New file.
36077 * lib/gl_anytreehash_list2.h: New file.
36079 * lib/gl_oset.h: New file.
36080 * lib/gl_oset.c: New file.
36081 * lib/gl_array_oset.h: New file.
36082 * lib/gl_array_oset.c: New file.
36083 * lib/gl_avltree_oset.h: New file.
36084 * lib/gl_avltree_oset.c: New file.
36085 * lib/gl_rbtree_oset.h: New file.
36086 * lib/gl_rbtree_oset.c: New file.
36087 * lib/gl_anytree_oset.h: New file.
36089 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
36091 * m4/mkancesdirs.m4: New file.
36092 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
36093 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
36094 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
36097 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
36099 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
36100 * lib/mkancesdirs.h: New files.
36101 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
36102 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
36103 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
36104 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
36105 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
36106 callers changed. Revamp internals significantly, by not
36107 attempting to create directories that are temporarily more
36108 permissive than the final results. Do not attempt to use
36109 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
36110 This removes some race conditions, fixes some bugs, and simplifies
36111 things. Use new dirchownmod function to do owner and mode changes.
36112 * lib/mkdir-p.h: Likewise.
36113 * lib/modechange.c (octal_to_mode): New function.
36114 (struct mode_change): New member mentioned.
36115 (make_node_op_equals): New arg mentioned. All callers changed.
36116 (mode_compile): Keep track of which mode bits the user has explicitly
36118 (mode_adjust): New arg DIR, so that we implement the X op correctly.
36119 New arg PMODE_BITS, to keep track of which mode bits the user
36120 mentioned; it treats S_ISUID and S_ISGID speciall.
36121 All callers changed.
36122 * lib/modechange.h: Likewise.
36124 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
36126 * MODULES.html.sh: Add mkancestors.
36127 * modules/mkancesdirs: New module.
36128 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
36129 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
36130 The chdir-safer and afs files are now orphans; I'll remove them
36131 unless someone speaks up.
36132 Add lib/dirchownmod.c, lib/dirchownmod.h.
36133 (Depends-on): Remove alloca, chown, save-cwd, dirname.
36134 Add lchown, mkancesdirs.
36135 (Maintainer): Add self.
36137 2006-07-15 Karl Berry <karl@gnu.org>
36139 * gnulib-tool: help message wording/arrangement.
36141 2006-07-14 Simon Josefsson <jas@extundo.com>
36143 * doc/gnulib.texi (Libtool and Windows): New section.
36145 2006-07-12 Simon Josefsson <jas@extundo.com>
36147 * modules/gendocs (License): Fix license, approved by Karl.
36149 2006-07-12 Eric Blake <ebb9@byu.net>
36151 * MODULES.html.sh: Add gendocs.
36153 2006-07-11 Eric Blake <ebb9@byu.net>
36155 * modules/fdl: New module, to install doc/fdl.texi.
36156 * MODULES.html.sh: Add new section for documentation modules.
36157 * gnulib-tool: Avoid space-tab.
36158 (--doc-base): New option, to manage files from doc.
36160 2006-07-11 Eric Blake <ebb9@byu.net>
36162 * m4/absolute-header.m4: Fix comments to match recent change.
36164 2006-07-11 Eric Blake <ebb9@byu.net>
36166 * gnulib-tool: List --doc-base before --tests-base.
36168 2006-07-11 Derek R. Price <derek@ximbiot.com>
36170 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
36172 2006-07-11 Bruno Haible <bruno@clisp.org>
36174 * README: Mention where to put documentation.
36176 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36178 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
36180 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
36182 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
36185 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
36187 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
36188 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
36189 "no/such/file/stdint.h" when there is no such file, so that
36190 the resulting C code can be parsed by dodgy compilers.
36191 Problems reported by Bob Proulx.
36193 2006-07-10 Derek R. Price <derek@ximbiot.com>
36195 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
36196 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
36197 macros into the GNU _D_EXACT_NAMLEN.
36198 * lib/savedir.c: Likewise.
36199 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
36201 2006-07-10 Derek R. Price <derek@ximbiot.com>
36202 and Paul Eggert <eggert@cs.ucla.edu>
36204 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
36206 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
36207 macros into the GNU _D_EXACT_NAMLEN.
36209 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36211 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
36212 around the absolute name, to work around a problem with the HP-UX
36213 11.23 native C compiler, reported by Bob Proulx.
36215 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36217 * doc/maintain.texi, make-stds.texi: Sync from
36218 <http://savannah.gnu.org/projects/gnustandards>.
36220 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36222 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
36224 2006-07-09 Jim Meyering <jim@meyering.net>
36226 * m4/glob.m4: Remove a doubled word in a comment.
36228 2006-07-09 Jim Meyering <jim@meyering.net>
36230 * lib/argp-pv.c: Remove a doubled word in a comment.
36231 * lib/check-version.c (check_version): Likewise.
36232 * lib/javacomp.c (compile_java_class): Likewise.
36234 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
36236 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
36237 for the benefit of people using Autoconf 2.60. If you want to
36238 support older Autoconf versions you can copy m4/onceonly_2_57.m4
36239 (or m4/onceonly.m4, if pre-2.57) manually.
36241 2006-07-08 Jim Meyering <jim@meyering.net>
36243 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
36245 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
36246 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
36249 2006-07-08 Jim Meyering <jim@meyering.net>
36251 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
36253 2006-07-07 Simon Josefsson <jas@extundo.com>
36255 * tests/test-crc.c: Change expected crc value, the test vector
36256 were probably computed using the old broken crc.c?
36258 2006-07-06 Simon Josefsson <jas@extundo.com>
36260 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
36261 now the canonical place for the M4 file).
36263 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
36264 from the sys_socket dependency now.
36266 * modules/inet_pton (Files): Ditto.
36268 * modules/inet_ntop (Files): Ditto.
36270 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
36272 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
36273 not gl_PREREQ_GETUSERSHELL.
36275 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36277 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
36278 with only one argument, for Autoconf 2.60.
36279 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
36280 expand to nothing, so add a shell command to avoid syntax error.
36281 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36283 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36285 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
36287 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36289 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
36290 no longer needed. Check for isblank decl.
36291 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
36292 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
36295 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36297 * lib/getloadavg.c: Use __VMS, not VMS.
36298 * lib/getopt.c: Likewise.
36299 * lib/getpagesize.h: Likewise.
36300 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
36301 and probably does not work.
36303 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36305 * lib/.cppi-disable: Add wcwidth.
36306 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
36307 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
36308 (ISGRAPH): Remove. All uses changed to isgraph.
36309 (FOLD) [!defined _LIBC]: Remove special case.
36310 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
36311 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
36313 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
36316 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
36318 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
36319 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
36320 brackets. Other minor changes to suppress some compiler
36323 2006-07-06 Derek R. Price <derek@ximbiot.com>
36324 and Paul Eggert <eggert@cs.ucla.edu>
36326 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
36327 of invoking obsolescent AC_HEADER_DIRENT macro.
36328 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
36329 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
36330 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36331 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36332 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
36333 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36334 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
36335 * m4/readdir.m4: Remove; no longer needed.
36337 2006-07-06 Derek R. Price <derek@ximbiot.com>
36338 and Paul Eggert <eggert@cs.ucla.edu>
36340 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
36341 Don't worry about this obsolete case any more.
36342 (HAVE_DIR): Remove. All uses removed; we now assume you can read
36344 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
36345 worry about this obsolete case any more.
36346 * lib/fts.c: Likewise.
36347 * lib/getcwd.c: Likewise.
36348 * lib/glob.h: Likewise.
36349 * lib/savedir.c: Likewise.
36351 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
36353 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
36354 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
36355 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
36358 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36359 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36360 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
36362 * m4/getdate.m4 (gl_GETDATE): Likewise.
36363 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36364 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36365 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36366 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36367 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36368 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36369 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
36372 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
36374 * lib/memcasecmp.c: Include <limits.h>.
36375 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
36376 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
36377 Don't assume isdigit succeeds only on '0' through '9'.
36379 2006-07-05 Eric Blake <ebb9@byu.net>
36381 * modules/getaddrinfo (Depends-on): Add snprintf.
36383 2006-07-05 Eric Blake <ebb9@byu.net>
36385 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
36386 to avoid 'header present but could not be compiled' on cygwin.
36388 2006-07-05 Eric Blake <ebb9@byu.net>
36390 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
36391 missing from netdb.h.
36392 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
36394 2006-07-05 Derek R. Price <derek@ximbiot.com>
36396 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
36398 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
36399 * m4/getdate.m4 (gl_GETDATE): Likewise.
36400 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36401 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36402 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36403 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36404 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36406 2006-07-05 Derek R. Price <derek@ximbiot.com>
36408 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
36409 All uses of is_space replaced by isspace.
36410 * lib/exit.h: Don't talk about STDC_HEADERS.
36411 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
36412 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
36413 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
36414 replaced by isprint etc.
36415 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
36416 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36417 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
36418 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
36419 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
36420 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36422 2006-07-05 Bruno Haible <bruno@clisp.org>
36424 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
36425 the function exists, before testing against AIX.
36426 Reported by Martin Lambers <marlam@marlam.de>.
36428 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
36430 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
36431 From Mark D. Baushke.
36433 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
36435 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
36436 to the absolute name, not just one, to bypass Sun C 5.8's
36437 "warning: #include of /usr/include/... may be non-portable".
36439 2006-07-04 Eric Blake <ebb9@byu.net>
36441 * modules/dirname-tests: New test module.
36442 * tests/test-dirname.c: New file, replacing dirname.c
36443 TEST_DIRNAME section that was recently deleted.
36445 2006-07-04 Bruno Haible <bruno@clisp.org>
36447 Assume ANSI C header files and <ctype.h> functions.
36448 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
36449 (mbsnwidth): Use isprint, iscntrl instead.
36451 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36453 Merge from coreutils.
36454 * MODULES.html.sh: Add xstrtold.
36455 * modules/xstrtold: New file.
36456 * modules/cycle-check (Files): Add lib/same-inode.h.
36457 * modules/dirname (Files): Add m4/double-slash-root.m4.
36458 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
36459 * modules/mkdir-p (Files): Add lib/same-inode.h.
36460 * modules/same (Files): Add lib/same-inode.h.
36462 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36464 * m4/absolute-header.m4: Renamed from full-header-path.m4.
36465 This is to keep the terminology clean; POSIX talks about
36466 "absolute pathnames", not "full pathnames", but the GNU
36467 Coding Standards say to use "path" for something else;
36468 so use "absolute" to keep both sides happy.
36469 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
36470 Set gl_absolute_header, not gl_full_header_path.
36471 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
36472 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
36475 Merge from coreutils.
36477 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
36479 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
36480 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
36481 want to require the building of c-strtod.o.
36482 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
36483 needs -lm directly.
36484 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
36486 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
36488 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
36489 --as-needed option if available. Problem reported by Albert Chin in
36490 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
36491 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
36492 cc merely issues a bunch of annoying warnings for --as-needed
36493 (this problem was reported by Bob Proulx). Also, try linking with
36494 -lm to detect a bug in binutils 2.16 (this problem was reported
36495 by Ralf Wildenhues).
36497 2006-06-18 Jim Meyering <jim@meyering.net>
36499 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
36500 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
36502 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
36503 also check for glibc-2.4's abort-inducing bug.
36505 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
36506 Low-probability clean-up should be to use rmdir to get rid of
36507 the just-created directory, not unlink.
36509 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
36510 configure fail, and request a bug report to inform us about it.
36511 Add a comment that, barring reports to the contrary, in 2007 we'll
36512 assume ftruncate is universally available.
36514 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
36516 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
36518 2006-03-12 Jim Meyering <jim@meyering.net>
36520 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
36521 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
36522 * m4/same.m4 (gl_SAME): Likewise.
36523 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
36525 2006-03-11 Eric Blake <ebb9@byu.net>
36527 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
36528 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
36529 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
36530 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
36532 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36534 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
36535 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
36536 reported by Mark D. Baushke, one in
36537 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
36539 Merge from coreutils.
36541 * lib/.cppi-disable: Add stdint_.h.
36542 * lib/.cvsignore: Add stdint.h.
36544 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
36546 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
36547 both double and long double versions.
36548 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
36549 * lib/xstrtold.c: New file.
36550 * lib/xstrtod.h (xstrtold): New decl.
36552 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
36554 * lib/filemode.c (setst): Remove.
36555 (strmode): Rewrite to avoid setst. This makes the code shorter,
36556 (arguably) clearer, and the generated code is a bit smaller on my
36557 Debian GNU/Linux stable x86 host.
36559 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
36561 * lib/filemode.c: Include "filemode.h" first, to test the interface.
36562 Assume that filemode.h includes sys/types.h and sys/stat.h.
36563 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
36564 (ftypelet): Reorder to put common cases first, for efficiency.
36565 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
36567 (strmode): Renamed from mode_string, and now stores 12 bytes instead
36568 of 10, for compatibility with FreeBSD. All callers changed.
36569 (filemodestring): Now stores 12 bytes instead of 10, and sets file
36570 types that can't be deduced solely from st_mode. First arg is now a
36572 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
36573 (strmode): Renamed from mode_string.
36574 (filemodestring): New decl.
36575 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
36576 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
36578 (S_ISPORT, S_ISWHT): New macros, if not already defined.
36580 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
36582 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
36583 fsusage.h now does that. Include fsusage.h first, to test interface.
36584 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
36585 at most one method (the old code could have generated decls that
36586 didn't conform to C89, not that this was ever exercised).
36587 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
36589 2006-03-19 Jim Meyering <jim@meyering.net>
36591 Work even in a chroot where d_ino values for entries in "/"
36592 don't match the stat.st_ino values for the same names.
36593 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
36594 number, iterate through all entries again, using lstat instead.
36595 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
36596 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
36598 * lib/getcwd.c (__getcwd): Clarify a comment.
36599 Use memcpy in place of a call to strcpy.
36601 2006-03-12 Jim Meyering <jim@meyering.net>
36603 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
36604 matches that of the current directory (which we're about to chdir ".."
36605 out of), then save the dev-ino of the parent, instead.
36607 * lib/same-inode.h (SAME_INODE): New file/macro.
36608 * lib/chdir-safer.c (SAME_INODE): Remove definition.
36609 Include "same-inode.h", instead.
36610 * lib/same.c: Likewise.
36611 * lib/cycle-check.h: Include "same-inode.h".
36612 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
36613 * lib/cycle-check.c (SAME_INODE): Remove definition.
36614 * lib/root-dev-ino.h: Include "same-inode.h".
36616 2006-03-11 Eric Blake <ebb9@byu.net>
36618 * lib/same.c (same_name): s/base_name/last_component/
36619 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
36620 * lib/filenamecat.c (file_name_concat): Likewise.
36622 2006-03-11 Eric Blake <ebb9@byu.net>,
36623 Paul Eggert <eggert@cs.ucla.edu>
36625 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
36626 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
36628 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
36629 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
36630 (last_component): New method.
36631 * lib/dirname.c (dir_len): Determine when drive letters need a
36632 subsequent slash. Preserve // when it is special.
36633 (dir_name): Don't append dot when drive letter is absolute.
36634 [TEST_DIRNAME]: Move into a full-blown gnulib test.
36635 * lib/basename.c (base_name): New semantics - malloc the result.
36636 Preserve // when it is special. Preserve relative files that look
36637 like drive letters.
36638 (base_len): Preserve // when it is special.
36639 (last_component): New method, similar to old base_name semantics.
36640 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
36641 base_name. Strip redundant slashes from ///.
36643 2006-07-03 Jim Meyering <jim@meyering.net>
36645 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
36646 macro is used before the first cycle_check call.
36648 2006-07-03 Eric Blake <ebb9@byu.net>
36650 * modules/dirname (Depends-on): Add xstrndup.
36652 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
36654 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
36655 test cases, so that config.log is a bit easier to follow.
36657 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
36659 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
36660 both are 64 bits, since this seems to be the tradition, and this
36661 prevents gcc -Wformat from warning about usages with PRIuMAX. If
36662 we ever run into a host that prefers long long to long in this
36663 case, we'll need another configure-time test. Problem reported by
36666 2006-07-02 Eric Blake <ebb9@byu.net>
36668 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
36670 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
36672 * modules/inttypes (Depends-on): No longer depends on stdint.
36673 * modules/stdint (Description): Say more about assumptions.
36674 Say that the fast types might differ. Say macros are used.
36675 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
36676 (Makefile.am): Revise list of substituted symbols to match
36678 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
36679 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
36680 * tests/test-stdint.c (verify_same_types)
36681 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
36682 the code conforms to C99/C89.
36683 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
36684 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
36686 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
36688 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
36689 but fix a bug, by requiring at least 64 bits.
36690 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36691 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
36692 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
36693 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
36695 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
36696 changes. Make 2.59 a prerequisite. Check and substitute for
36697 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
36698 inttypes.h. Do not use special include files; just use the
36699 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
36700 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
36701 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
36702 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
36703 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
36704 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
36705 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
36706 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
36707 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
36708 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
36709 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
36710 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
36711 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
36712 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
36713 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
36714 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
36715 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
36716 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
36717 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
36718 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
36719 WINT_MAX. Check for C99 conformance more strictly, by detecting
36720 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
36721 not check for things that C99 does not require, e.g., int8_t. If
36722 a test isn't needed unless <stdint.h> isn't working, and is
36723 unlikely to be needed for any other reason, then don't do it
36724 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
36725 size_t, since we assume C89 freestanding at least. Do not check
36726 for sig_atomic_t, wchar_t, or wint_t, since the code now does
36727 the right thing even if the types are not defined. Instead use:
36728 (gl_STDINT_TYPE_PROPERTIES): New macro.
36729 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
36730 testing whether <sys/types.h> clashes, as Autoconf does this for
36731 us now. All uses removed.
36732 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
36733 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
36734 (gl_CHECK_TYPE_SAME):
36735 Remove; no longer needed.
36736 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
36737 exists, since we'll return 0 anyway in that case.
36738 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
36740 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
36742 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
36743 possible collision with system files.
36744 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
36745 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
36746 WCHAR_MIN and WCHAR_MAX in this case.
36747 (<stddef.h>): Do not include; no longer needed.
36748 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
36749 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
36750 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
36751 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
36752 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
36753 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
36754 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
36755 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
36756 !defined(__c99))]: Include in this case too, since it's harmless
36758 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
36759 dangerous to do so.
36760 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
36761 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
36762 (_STDINT_MIN, _STDINT_MAX): New macros.
36763 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
36764 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
36765 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
36766 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
36767 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
36768 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
36769 macros, not typedefs; this simplifies things quite a bit.
36770 Use long int for all types narrower than int64_t.
36771 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
36772 Define in terms of long long int or int64_t or long int,
36773 not int64_t or int32_t. This saves some compile-time testing.
36774 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
36775 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
36776 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
36777 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
36778 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
36779 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
36780 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
36781 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
36782 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
36783 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
36784 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
36785 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
36786 undef any previous version and define our own version, for
36787 simplicity and consistency with the new macros for types.
36788 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
36789 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
36790 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
36791 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
36792 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
36793 @WINT_T_SUFFIX@ to keep things simple here.
36794 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
36795 Simplify by assuming typical 8/16/32/64 host, since we're
36796 already doing that elsewhere anyway.
36797 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
36798 and assume long long int is 64 bits if available. This
36799 speeds up 'configure'.
36801 2006-07-01 Eric Blake <ebb9@byu.net>
36803 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
36804 Reported by Andreas Buening.
36806 2006-07-01 Eric Blake <ebb9@byu.net>
36808 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
36810 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
36812 * lib/getaddrinfo.c: fixed typo
36814 2006-06-29 Jim Meyering <jim@meyering.net>
36816 * modules/strftime (Maintainer): Add my name, since with the
36817 FPRINTFTIME changes strftime.c has forked from glibc.
36819 2006-06-29 Eric Blake <ebb9@byu.net>
36821 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
36823 2006-06-29 Eric Blake <ebb9@byu.net>
36825 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
36827 2006-06-29 Eric Blake <ebb9@byu.net>
36829 * lib/stat_.h: New file.
36831 2006-06-29 Eric Blake <ebb9@byu.net>
36833 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
36834 unused static function.
36836 2006-06-29 Eric Blake <ebb9@byu.net>
36838 * doc/functions.texi (Function Portability): Document missing lstat
36841 2006-06-29 Eric Blake <ebb9@byu.net>
36843 * MODULES.html.sh: Add sys_stat.
36844 * modules/sys_stat: New module.
36845 * modules/mkstemp (Depends-on): Add sys_stat.
36847 2006-06-29 Derek R. Price <derek@ximbiot.com>
36849 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
36851 2006-06-29 Derek R. Price <derek@ximbiot.com>
36853 * m4/c-bs-a.m4: Removed.
36855 2006-06-29 Derek R. Price <derek@ximbiot.com>
36857 * lib/strftime.c: Assume strftime() exists.
36859 2006-06-29 Derek Price <derek@ximbiot.com>
36861 * modules/c-bs-a: Removed - \a is C89.
36862 * MODULES.html.sh: Remove c-bs-a.
36864 2006-06-29 Bruno Haible <bruno@clisp.org>
36866 * modules/wcwidth (License): Change to LGPL.
36868 2006-06-28 Simon Josefsson <jas@extundo.com>
36870 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
36873 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
36876 2006-06-28 Simon Josefsson <jas@extundo.com>
36878 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
36880 2006-06-28 Simon Josefsson <jas@extundo.com>
36882 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
36883 functions there. It will succeed on Windows XP, but on Windows
36884 2000 and (presumably) earlier, it will fail, and use the internal
36886 (use_win32_p): New function.
36887 (getaddrinfo): Use strtoul on servname, to support numeric ports.
36888 Support AI_NUMERICSERV to disable getservbyname.
36889 (getnameinfo): New function, only supports
36890 NI_NUMERICHOST|NI_NUMERICSERV for now.
36892 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
36893 only have some of them. Add AI_NUMERICSERV. Add prototype for
36896 2006-06-28 Eric Blake <ebb9@byu.net>
36898 * modules/wcwidth: New file.
36899 * modules/mbchar (Depends-on): Add wcwidth.
36900 * modules/mbswidth (Depends-on): Add wcwidth.
36901 * MODULES.html.sh: Add wcwidth.
36903 2006-06-28 Eric Blake <ebb9@byu.net>
36905 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
36906 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
36908 2006-06-28 Eric Blake <ebb9@byu.net>
36910 * lib/xvasprintf.h: Fix comments.
36912 2006-06-28 Eric Blake <ebb9@byu.net>
36914 * lib/mbchar.h (wcwidth): Include wcwidth.h.
36915 * lib/mbswidth.c (wcwidth): Move from here...
36916 * lib/wcwidth.h: ...to this new file.
36918 2006-06-28 Derek R. Price <derek@ximbiot.com>
36920 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
36922 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
36924 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
36926 2006-06-28 Derek R. Price <derek@ximbiot.com>
36928 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
36929 Autoconf 2.60 says this stuff was obsolete.
36931 2006-06-28 Bruno Haible <bruno@clisp.org>
36933 * modules/wcwidth (Files): Add m4/wchar_t.m4.
36935 2006-06-28 Bruno Haible <bruno@clisp.org>
36937 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
36940 2006-06-28 Bruno Haible <bruno@clisp.org>
36942 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
36943 declaration for wcwidth.
36944 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
36946 2006-06-28 Bruno Haible <bruno@clisp.org>
36948 * lib/mkdtemp.c [MINGW]: Include <io.h>.
36949 (mkdir): Define using _mkdir.
36951 2006-06-28 Bruno Haible <bruno@clisp.org>
36953 * lib/getaddrinfo.h: Fix POSIX URL.
36954 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
36956 (use_win32_p): Make static.
36957 (getaddrinfo): Reject service name if it is empty or does not consist
36958 solely of decimal digits, or if its value is > 65535.
36959 (getnameinfo): Remove useless casts.
36961 2006-06-27 Simon Josefsson <jas@extundo.com>
36963 * modules/sys_select: New file, suggested by Bruno Haible, Paul
36964 Eggert and Martin Lambers.
36966 2006-06-27 Simon Josefsson <jas@extundo.com>
36968 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
36969 Eggert and Martin Lambers.
36971 2006-06-27 Bruno Haible <bruno@clisp.org>
36973 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
36974 result to 0, not to empty.
36975 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
36977 2006-06-27 Bruno Haible <bruno@clisp.org>
36979 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
36981 2006-06-26 Simon Josefsson <jas@extundo.com>
36983 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
36986 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
36988 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
36989 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
36990 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
36992 2006-06-26 Mark D. Baushke <mdb@gnu.org>
36994 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
36996 2006-06-26 Bruno Haible <bruno@clisp.org>
36998 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
37000 2006-06-26 Bruno Haible <bruno@clisp.org>
37002 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
37004 2006-06-26 Bruno Haible <bruno@clisp.org>
37006 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
37007 SGI C compiler in pre-C99 mode.
37008 Suggested by Mark D. Baushke and Larry Jones.
37010 2006-06-26 Bruno Haible <bruno@clisp.org>
37012 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
37014 Reported by Mark D. Baushke and Larry Jones.
37016 2006-06-26 Bruno Haible <bruno@clisp.org>
37018 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
37020 Suggested by Mark D. Baushke and Larry Jones.
37022 2006-06-23 Simon Josefsson <jas@extundo.com>
37023 Bruno Haible <bruno@clisp.org>
37025 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
37026 Emit mostlyclean-local rule.
37027 (func_emit_tests_Makefile_am): Likewise.
37028 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
37030 2006-06-23 Mark D. Baushke <mdb@gnu.org>
37032 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
37034 2006-06-23 Bruno Haible <bruno@clisp.org>
37036 * tests/test-stdint.c: Update to match ISO C 99 Technical
37039 2006-06-23 Bruno Haible <bruno@clisp.org>
37041 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
37043 2006-06-23 Bruno Haible <bruno@clisp.org>
37045 * lib/stdint_.h: Treat IRIX like OpenBSD.
37047 2006-06-23 Bruno Haible <bruno@clisp.org>
37049 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
37050 ISO C 99 Technical Corrigendum 1.
37052 2006-06-22 Simon Josefsson <jas@extundo.com>
37054 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
37057 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
37059 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
37060 needed. Some compiler complained about some of them. Problem reported
37062 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
37064 2006-06-21 Simon Josefsson <jas@extundo.com>
37066 * tests/test-getaddrinfo.c: New file.
37068 * modules/getaddrinfo-tests: New file.
37070 * MODULES.html.sh: Add inet_pton.
37072 * modules/inet_pton: New file.
37074 2006-06-21 Simon Josefsson <jas@extundo.com>
37076 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
37077 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
37078 of using the (limited) gnulib implementation on Windows XP.
37080 * m4/inet_pton.m4: New file.
37082 2006-06-21 Simon Josefsson <jas@extundo.com>
37084 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
37087 * lib/socket_.h: Don't define WINVER.
37089 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
37090 slightly modified to work in gnulib.
37092 2006-06-21 Simon Josefsson <jas@extundo.com>
37094 * doc/gnulib.texi (Windows sockets): Add.
37096 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
37098 * lib/read-file.c (fread_file): Start with buffer allocation of
37099 0 bytes rather than 1 byte; this simplifies the code.
37100 Don't invoke feof; it's not needed. Refactor to avoid duplicate
37101 code to free buffer and save/restore errno.
37102 (internal_read_file): Remove unused local.
37104 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
37106 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
37107 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
37108 Problem reported by Denis Excoffier in
37109 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
37111 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37113 * modules/sys_socket, modules/socklen: Include sys/types since
37114 FreeBSD 4.x's sys/socket.h needs it.
37116 2006-06-19 Simon Josefsson <jas@extundo.com>
37118 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
37120 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
37122 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
37124 2006-06-19 Bruno Haible <bruno@clisp.org>
37126 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
37127 and FULL_PATH_INTTYPES_H in angle brackets.
37128 Reported by Mark D. Baushke <mdb@gnu.org>.
37130 2006-06-17 Eric Blake <ebb9@byu.net>
37132 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
37135 2006-06-17 Bruno Haible <bruno@clisp.org>
37137 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
37140 2006-06-17 Bruno Haible <bruno@clisp.org>
37142 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
37143 whether errno is declared. Assume <errno.h> declares errno.
37145 2006-06-17 Bruno Haible <bruno@clisp.org>
37147 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
37149 2006-06-17 Bruno Haible <bruno@clisp.org>
37151 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
37152 problem on Solaris 2.5.1.
37154 2006-06-16 Eric Blake <ebb9@byu.net>
37156 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
37157 * lib/unicodeio.c [!defined errno]: Likewise.
37158 * lib/strtol.c [!defined errno]: Likewise.
37159 * lib/strtod.c [!defined errno]: Likewise.
37161 2006-06-15 Eric Blake <ebb9@byu.net>
37163 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
37165 2006-06-15 Eric Blake <ebb9@byu.net>
37167 * config/srclist.txt (ssize_t.m4): Lose sync.
37169 2006-06-15 Bruno Haible <bruno@clisp.org>
37171 * modules/stdint (Files): Include m4/full-header-path.m4,
37172 m4/size_max.m4, m4/wchar_t.m4.
37173 (Makefile.am): Many more substitutions.
37174 * modules/stdint-tests: New file.
37175 * tests/test-stdint.c: New file.
37177 2006-06-15 Bruno Haible <bruno@clisp.org>
37179 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
37180 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
37181 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
37182 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
37183 gl_CHECK_TYPE_SAME): New macros.
37185 2006-06-15 Bruno Haible <bruno@clisp.org>
37187 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
37189 2006-06-15 Bruno Haible <bruno@clisp.org>
37191 * lib/stdint_.h: Rewritten to be fully auto-configured.
37192 Fixes bug on HP-UX/IA64.
37194 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
37196 * lib/getdate.y (__attribute__): Don't define if already defined.
37197 Problem reported by Larry Jones.
37198 * lib/utimens.c (__attribute__): Likewise.
37200 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
37202 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
37203 reported by Andreas Schwab.
37205 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37206 Bruno Haible <bruno@clisp.org>
37208 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
37209 check for the declaration of strnlen and a run test that exposes the
37210 AIX 5.1 strnlen bug. In the failure case, #define strndup to
37213 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37214 Bruno Haible <bruno@clisp.org>
37216 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
37218 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37220 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
37221 compile test, for Tru64 4.0D.
37223 2006-05-28 Karl Berry <karl@gnu.org>
37225 * config/srclist.txt (printf-args.c): lose sync.
37227 2006-05-26 Martin Lambers <marlam@marlam.de>
37229 * lib/getpass.c: Updates the test for the native W32 API, and adds
37230 missing includes, thus fixing compilation warnings.
37232 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
37234 * lib/exclude.c (exclude_fnmatch): New function.
37235 (excluded_file_name): Call exclude_fnmatch.
37236 * lib/exclude.h (excluded_file_name): New prototype
37238 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
37240 * lib/tempname.c (small_open, large_open): New macros.
37241 (__open, __open64) [!_LIBC]: Remove.
37242 (__gen_tempname): Use small_open and large_open instead of __open
37243 and __open64. This fixes a portability bug on HP-UX 11.11i
37244 reported by Simon Wing-Tang in
37245 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
37247 2006-05-24 Bruno Haible <bruno@clisp.org>
37249 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
37250 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
37251 Reported by Thorsten Maerz <torte@netztorte.de> via
37252 Aaron Stone <aaron@serendipity.cx>.
37254 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
37256 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
37257 gl_ rather than jm_. Link, don't run, so that cross-compiles are
37258 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
37259 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
37260 not really conditional on the cache.
37261 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
37263 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
37265 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
37266 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
37267 (my_usleep): Don't mishandle maximum value.
37269 2006-05-19 Jim Meyering <jim@meyering.net>
37271 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
37273 2006-05-17 Bruno Haible <bruno@clisp.org>
37275 Cygwin portability.
37276 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
37278 2006-05-17 Bruno Haible <bruno@clisp.org>
37280 * lib/stdint_.h: Fix recognition of Cygwin.
37282 2006-05-15 Bruno Haible <bruno@clisp.org>
37284 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
37285 on libtool patch by Ralf Wildenhues.
37287 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
37289 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
37290 test for C99 conformance; (bool) 0.5 is an integer constant
37291 expression, but (bool) -0.5 is not. Problem reported by Fedor
37292 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
37294 2006-05-11 Simon Josefsson <jas@extundo.com>
37296 * m4/xvasprintf.m4: Fix obvious typo.
37298 2006-05-11 Jim Meyering <jim@meyering.net>
37300 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
37303 2006-05-10 Simon Josefsson <jas@extundo.com>
37305 * lib/md4.c: Typo fix, update copyright years.
37306 (K1, K2): Don't use L because it turn computations into 64-bit on
37309 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
37311 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
37312 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
37313 unwanted sign propagation, e.g., on hosts with 64-bit int.
37314 There still are some problems with reeelly weird theoretical hosts
37315 (e.g., 33-bit int) but it's not worth worrying about now.
37316 * lib/sha1.c (rol): Likewise.
37317 (K1, K2, K3, K4): Remove unnecessary L suffix.
37319 2006-05-10 Bruno Haible <bruno@clisp.org>
37321 * lib/des.c: Cast to avoid warnings.
37323 2006-05-09 Bruno Haible <bruno@clisp.org>
37325 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
37326 (Depends-on): Depend also on xsize, stdarg.
37327 (configure.ac): Add gl_XVASPRINTF.
37329 2006-05-09 Bruno Haible <bruno@clisp.org>
37331 * m4/xvasprintf.m4: New file.
37333 2006-05-09 Bruno Haible <bruno@clisp.org>
37335 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
37336 (EOVERFLOW): Define fallback value.
37337 (xstrcat): New function.
37338 (xvasprintf): Recognize the special case of a string concatenation.
37340 2006-05-08 Eric Blake <ebb9@byu.net>
37342 * gnulib-tool (func_version): Base copyright year on CVS date.
37343 (func_emit_copyright_notice): New function.
37344 (func_emit_lib_Makefile_am): Use it.
37345 (func_emit_tests_Makefile_am): Likewise.
37346 (func_import): Likewise.
37348 2006-05-08 Bruno Haible <bruno@clisp.org>
37350 * modules/stdarg: New file.
37351 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
37353 2006-05-08 Bruno Haible <bruno@clisp.org>
37355 * m4/stdarg.m4: New file, from GNU gettext.
37357 2006-05-08 Bruno Haible <bruno@clisp.org>
37359 * config/srclist.txt (build-aux/config.rpath): different from latest
37362 2006-05-08 Bruno Haible <bruno@clisp.org>
37364 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
37366 2006-05-05 Jim Meyering <jim@meyering.net>
37368 * m4/warning.m4: New file, derived from bison's file by the same name.
37370 2006-05-03 Bruno Haible <bruno@clisp.org>
37372 * lib/stdint_.h: Shorter URL.
37373 * lib/inttypes.h: Likewise.
37375 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37377 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
37379 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37381 * lib/verify.h: Document the internals better. Most of this change
37382 was written by Bruno Haible.
37384 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37386 * doc/verify.texi: New file, partly based on a proposal by
37389 2006-05-02 Bruno Haible <bruno@clisp.org>
37391 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
37393 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
37395 2006-04-29 Bruno Haible <bruno@clisp.org>
37397 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
37398 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
37400 2006-04-29 Bruno Haible <bruno@clisp.org>
37402 * gnulib-tool: Make --update option actually work.
37404 2006-04-29 Bruno Haible <bruno@clisp.org>
37406 * doc/gcd.texi: New file.
37407 * doc/gnulib.texi: Include it.
37409 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
37411 * lib/getdate.y (get_date): When adding relative date, start with the
37412 initial time, not with the result of the first mktime call.
37414 2006-04-25 Bruno Haible <bruno@clisp.org>
37416 * gnulib-tool (func_import): Output the include directives in three
37417 blocks, sorted separately.
37418 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37420 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
37422 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
37423 to define main with arguments, for C++. Reported by Eric Blake.
37424 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
37425 Prefer 'int main ()' to 'int main (void)', for C++.
37426 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37427 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
37428 for 'main', for C99 and C++.
37430 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
37432 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
37433 Don't assume that exit status -1 is valid.
37434 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37435 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37436 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37437 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
37438 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
37439 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
37440 not AC_TRY_RUN. Use return, not exit. Don't assume that
37441 functions can be used without declaring them, or that you can
37442 exit with status -1.
37443 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37445 2006-04-24 Karl Berry <karl@gnu.org>
37447 * config/srclist.txt (longdouble.m4): sync lost.
37449 2006-04-24 Eric Blake <ebb9@byu.net>
37451 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
37453 2006-04-24 Bruno Haible <bruno@clisp.org>
37455 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
37456 poll() implementation in AIX.
37457 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37459 2006-04-24 Bruno Haible <bruno@clisp.org>
37461 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
37462 assigned exactly once.
37464 2006-04-23 Claudio Fontana <claudio@gnu.org>
37465 Bruno Haible <bruno@clisp.org>
37467 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
37468 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
37471 2006-04-23 Bruno Haible <bruno@clisp.org>
37473 * modules/copy-file: Depend on unistd.
37474 * modules/execute: Likewise.
37475 * modules/fatal-signal: Likewise.
37476 * modules/findprog: Likewise.
37477 * modules/mkdtemp : Likewise.
37478 * modules/pipe: Likewise.
37479 * modules/wait-process: Likewise.
37481 2006-04-23 Bruno Haible <bruno@clisp.org>
37483 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
37484 condition was already detected.
37485 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37487 2006-04-23 Bruno Haible <bruno@clisp.org>
37489 * lib/copy-file.c: Include <unistd.h> unconditionally.
37490 * lib/execute.c: Likewise.
37491 * lib/fatal-signal.c: Likewise.
37492 * lib/findprog.c: Likewise.
37493 * lib/mkdtemp.c: Likewise.
37494 * lib/pipe.h: Likewise.
37495 * lib/pipe.c: Likewise.
37496 * lib/wait-process.h: Likewise.
37498 2006-04-23 Bruno Haible <bruno@clisp.org>
37500 * gnulib-tool (func_usage): Fix --import description. Document
37502 (func_import): Create temporary file in a temporary directory, if
37503 --dry-run is specified. Silence errors from 'grep' when there are no
37504 m4 files in $m4dir.
37505 (func_create_testdir): Silence errors from 'grep' when there are no
37506 m4 files in $m4dir.
37507 Reported by Karl Berry <karl@freefriends.org>.
37509 2006-04-20 Bruno Haible <bruno@clisp.org>
37511 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
37512 one argument, so that the code will be portable to Autoconf 2.60.
37513 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
37514 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37515 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
37517 2006-04-19 Derek Price <derek@ximbiot.com>
37518 Eric Blake <ebb9@byu.net>
37520 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
37521 rather than "/full/path.h". Update comment to match. Shorten &
37522 generalize m4_translit call via AS_TR_CPP.
37524 2006-04-19 Derek Price <derek@ximbiot.com>
37525 Eric Blake <ebb9@byu.net>
37527 * lib/inttypes.h: Correct grammar in comment.
37529 2006-04-18 Derek Price <derek@ximbiot.com>
37530 Paul Eggert <eggert@cs.ucla.edu>
37532 * modules/inttypes: New file.
37533 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
37535 2006-04-18 Derek Price <derek@ximbiot.com>
37536 Paul Eggert <eggert@cs.ucla.edu>
37538 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
37541 2006-04-18 Derek Price <derek@ximbiot.com>
37542 Paul Eggert <eggert@cs.ucla.edu>
37544 * lib/inttypes.h: New file.
37545 * lib/strtoimax.c: Assume <inttypes.h>.
37547 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
37549 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
37550 isn't mounted. Problem reported by Kir Kolyshkin.
37552 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
37554 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
37555 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
37557 * lib/regex.h (RE_DUP_MAX): Update comment to match current
37560 2006-04-12 Eric Blake <ebb9@byu.net>
37562 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
37563 is now done automatically by the corresponding Autoconf macro.
37565 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
37567 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
37570 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37572 Merge regex changes from libc, removing some of our
37573 POSIX-conformance changes that were rejected and redoing them in a
37574 less-intrusive way.
37576 * lib/regcomp.c (re_compile_internal, init_dfa):
37577 Length arg is now size_t, not Idx. All uses changed.
37578 (peek_token): Forward decl now says internal_function.
37579 (__re_error_msgid, __re_error_msgid_idx):
37580 Now static rather than extern with attribute_hidden.
37581 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
37582 For some reason libc prefers K&R style defns for external functions.
37583 (regerror) [!defined _LIBC]: Likewise.
37584 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
37585 (seek_collating_symbol_entry, lookup_collation_sequence_value):
37586 (build_range_exp, build_collating_symbol):
37587 Use K&R-style defn.
37588 (re_compile_fastmap): Use '\0' to memset, not 0.
37589 (utf8_sb_map): Make the calculations more obvious.
37590 (init_dfa, parse_bracket_exp, build_charclass_op):
37591 Call calloc and cast result, as glibc does.
37592 (init_word_char, fetch_token, peek_token, peek_token_bracket):
37593 (build_range_exp, build_collating_symbol):
37594 Now internal functions.
37596 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
37598 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
37599 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
37600 Don't depend on VMS; depend on __VMS instead, for POSIX
37601 namespace cleanness.
37602 (regoff_t): Define to ssize_t, not long int.
37604 Remove the REG_ macros named below. Instead, make the old names
37605 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
37607 (REG_BACKSLASH_ESCAPE_IN_LISTS):
37608 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
37609 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
37610 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
37611 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
37612 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
37613 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
37614 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
37615 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
37616 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
37617 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
37618 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
37619 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
37620 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
37621 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
37622 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
37623 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
37625 Remove. All uses replaced by the old RE_* names.
37626 (RE_BACKSLASH_ESCAPE_IN_LISTS):
37627 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
37628 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
37629 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
37630 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
37631 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
37632 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
37633 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
37634 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
37635 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
37636 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
37637 Don't bother having these macros be independent of each others'
37638 values, since they no longer exist in the POSIX name space.
37640 Rename the following member names back to their old names,
37641 unless !__USE_GNU_REGEX. All uses changed back.
37642 (buffer): Renamed from re_buffer.
37643 (allocated): Renamed from re_allocated.
37644 (used): Renamed from re_used.
37645 (syntax): Renamed from re_syntax.
37646 (fastmap): Renamed from re_fastmap.
37647 (translate): Renamed from re_translate.
37648 (can_be_null): Renamed from re_can_be_null.
37649 (regs_allocated): Renamed from re_regs_allocated.
37650 (fastmap_accurate): Renamed from re_fastmap_accurate.
37651 (no_sub): Renamed from re_no_sub.
37652 (not_bol): Renamed from re_not_bol.
37653 (not_eol): Renamed from re_not_eol.
37654 (newline_anchor): Renamed from re_newline_anchor.
37655 (num_regs): Renamed from rm_num_regs.
37656 (start): Renamed from rm_start.
37657 (end): Renamed from rm_end.
37659 (free_state): Move up a bit.
37661 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
37662 #define to be empty.
37663 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
37664 when that is what is intended.
37665 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
37666 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
37668 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
37669 All uses changed back to re_malloc, etc. It's now the caller's
37670 responsibility to check for overflow; all callers changed.
37671 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
37672 (re_x2nrealloc): Remove.
37673 (free_state): Remove decl.
37675 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
37676 (re_set_registers, re_exec):
37677 Use K&R-style defn.
37679 2006-01-31 Roland McGrath <roland@redhat.com>
37681 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
37682 Reported by Mike Frysinger <vapier@gentoo.org>.
37684 2006-01-15 Andreas Jaeger <aj@suse.de>
37687 * lib/regex_internal.c (re_string_reconstruct): Adjust for
37688 build_wcs_upper_buffer change.
37689 (build_wcs_upper_buffer): Change return type.
37691 2005-12-10 Ulrich Drepper <drepper@redhat.com>
37693 * lib/regex_internal.h: Include <stdint.h> if available.
37695 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
37697 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
37699 2005-10-14 Ulrich Drepper <drepper@redhat.com>
37701 * lib/regcomp.c: Adjust for changed secondary hash function.
37703 2005-09-30 Ulrich Drepper <drepper@redhat.com>
37705 * lib/regex.h: Pretty printing.
37706 Clean up namespace a bit.
37708 2005-09-30 Jakub Jelinek <jakub@redhat.com>
37710 * lib/regexec.c (update_cur_sifted_state, check_arrival,
37711 check_arrival_add_next_nodes): Avoid using uninitialized variable.
37713 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
37714 Ulrich Drepper <drepper@redhat.com>
37717 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
37719 (bitset_word_t): Renamed from bitset_word. All uses changed.
37721 2005-09-22 Ulrich Drepper <drepper@redhat.com>
37724 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
37725 * lib/regcomp.c: Remove unnecessary uses of
37726 unsigned RE_TRANSLATE_TYPE.
37727 * lib/regex_internal.h: Likewise.
37728 * lib/regex_internal.c: Likewise.
37729 * lib/regexec.c: Likewise.
37730 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
37732 2005-09-07 Ulrich Drepper <drepper@redhat.com>
37734 * lib/regexec.c (find_recover_state): Remove unnecessary
37736 (transit_state_bkref): Make DFA a const pointer.
37737 (get_subexp): Likewise.
37738 (check_arrival): Likewise.
37739 (update_cur_sifted_state): Likewise.
37740 (re_search_internal): Likewise.
37741 (prune_impossible_nodes): Likewise.
37742 (acquire_init_state_context): Likewise.
37743 (proceed_next_node): Likewise.
37744 (set_regs): Likewise.
37745 (free_fail_stack_return): Likewise.
37746 (check_arrival_expand_ecl): Mark DFA parameter as const.
37747 (check_arrival_expand_ecl_sub): Likewise.
37748 (check_subexp_limits): Likewise.
37749 (sub_epsilon_src_nodes): Likewise.
37750 (add_epsilon_src_nodes): Likewise.
37751 (merge_state_array): Likewise.
37752 (update_regs): Likewise.
37753 (build_trtable): Likewise.
37754 (sift_states_backward): Mark MCTX parameter as const.
37755 (build_sifted_states): Likewise.
37756 (update_cur_sifted_state): Likewise.
37757 (sift_states_mkref): Likewise.
37758 (check_arrival_expand_ecl): Mark eclosure as const.
37759 (check_dst_limits_calc_pos_1): Likewise.
37760 * lib/regex_internal.h (re_match_context_t): Make dfa a const
37763 2005-09-06 Ulrich Drepper <drepper@redhat.com>
37765 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
37766 (transit_state_sb): Likewise.
37767 (transit_state_mb): Likewise.
37768 (sift_states_iter_mb): Likewise.
37769 (check_arrival_add_next_nodes): Likewise.
37770 (check_node_accept_bytes): Change first parameter to pointer-to-const.
37771 [_LIBC] (re_search_2_stub): Use mempcpy.
37773 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
37774 mbrtowc for very simple UTF-8 case.
37776 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
37777 a pointer-to-const.
37778 (re_acquire_state_context): Likewise.
37779 * lib/regex_internal.h: Adjust prototypes.
37781 * lib/regex.c: Prevent using C++ compilers.
37783 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
37784 (re_acquire_state_context): Likewise.
37786 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37788 * modules/regex (Depends-on): Add ssize_t.
37790 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37792 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
37795 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37797 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
37799 2006-03-29 Mark D. Baushke <mdb@gnu.org>
37800 Bruno Haible <bruno@clisp.org>
37802 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
37803 <sys/types.h> and <inttypes.h>.
37805 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37807 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
37808 `__error_t_defined', so argp.h will not typedef the former.
37810 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
37812 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
37813 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
37814 glibc names. Even if glibc is changed to conform to POSIX, the
37815 traditional names will be available anyway, since regex depends on
37816 the extensions module. Also, fix a longstanding typo in the
37817 implementation of Spencer ERE test #75 from grep 2.3. Problems
37818 reported by Emanuele Giaquinta. Also, change sense of cached
37819 variable, so that the message makes sense.
37821 2006-03-24 Simon Josefsson <jas@extundo.com>
37823 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
37824 including some doc fixes.
37825 (base64_encode_alloc): Fix +1 bug on allocation failures.
37827 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37829 * lib/base64.c (base64_encode): Do not read past end of array with
37830 unsanitized input on systems with CHAR_BIT > 8.
37832 2006-03-24 Eric Blake <ebb9@byu.net>
37834 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
37836 2006-03-22 Karl Berry <karl@gnu.org>
37838 * config/srclist.txt (*setenv.[ch]): get from coreutils.
37839 * config/srclistvars.sh (COREUTILS): new var.
37841 2006-03-17 Jim Meyering <jim@meyering.net>
37843 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
37844 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
37846 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
37848 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
37849 no longer needs it. Instead, check that regoff_t is as least
37850 as wide as ptrdiff_t.
37852 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
37853 so that our regex.h stays compatible with the installed regex.
37854 This is helpful for installers who configure --without-included-regex.
37855 Problem reported by Emanuele Giaquinta.
37857 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
37859 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
37860 Typedef to long int, not to off_, as POSIX will likely change
37863 2006-03-15 Eric Blake <ebb9@byu.net>
37865 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
37867 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
37869 * lib/argp-help.c (validate_uparams): Fix typo
37870 * lib/argp-parse.c (argp_default_options): Consistently begin help
37871 messages with a lowercase letter.
37873 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
37875 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
37876 overrun buffers and shouldn't be used (much as gets shouldn't be
37878 * lib/time_r.c (asctime_r, ctime_r): Likewise.
37880 2006-03-08 Simon Josefsson <jas@extundo.com>
37882 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
37883 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37885 2006-03-08 Simon Josefsson <jas@extundo.com>
37887 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
37888 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37890 2006-03-08 Simon Josefsson <jas@extundo.com>
37892 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
37893 signal that configure disabled the device.
37895 2006-03-08 Simon Josefsson <jas@extundo.com>
37897 * build-aux/maint.mk: Fix refresh-po, to handle no translated
37900 2006-03-07 Simon Josefsson <jas@extundo.com>
37902 * modules/getopt (Depends-on): Add unistd.
37904 * modules/unistd: New file.
37906 2006-03-07 Simon Josefsson <jas@extundo.com>
37908 * modules/gc-random: New file.
37910 2006-03-07 Simon Josefsson <jas@extundo.com>
37912 * m4/unistd_h.m4: New file.
37914 2006-03-07 Simon Josefsson <jas@extundo.com>
37916 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
37917 test to be side-effect free by storing the result in the cache
37918 variable gl_cv_lib_readline, and moving the assignment of
37919 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
37920 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37922 2006-03-07 Simon Josefsson <jas@extundo.com>
37924 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
37925 error on missing devices (the functions will return an error).
37927 * m4/gc.m4: Move random stuff to gc-random.m4
37929 2006-03-07 Simon Josefsson <jas@extundo.com>
37931 * lib/unistd_.h: New file.
37933 2006-03-07 Simon Josefsson <jas@extundo.com>
37935 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
37937 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
37939 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
37940 Problem reported by Juan Manuel Guerrero.
37942 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
37944 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
37946 * lib/getlogin_r.c: Likewise.
37947 * lib/getlogin_r.h: Likewise.
37948 * lib/glob.c: Likewise.
37949 * lib/pagealign_alloc.c: Likewise.
37950 * lib/unistd_.h: Remove; no longer needed.
37952 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
37954 * MODULES.html.sh (Support for systems lacking POSIX:2001):
37956 * modules/c-stack (Depends-on): Add unistd.
37957 * modules/getlogin_r: Likewise.
37958 * modules/glob: Likewise.
37959 * modules/pagealign_alloc: Likewise.
37960 * modules/unistd (Files): Remove lib/unistd_.h.
37961 (EXTRA_DIST): Remove.
37962 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
37964 (MOSTLYCLEANFILES): Remove unistd.h-t.
37966 2006-03-03 Simon Josefsson <jas@extundo.com>
37968 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
37970 2006-03-03 Simon Josefsson <jas@extundo.com>
37972 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
37975 2006-03-03 Simon Josefsson <jas@extundo.com>
37977 * build-aux/maint.mk: Add indent target.
37979 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
37981 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
37982 our replacement poll.h in any case, to avoid a differing
37983 declaration from a system header. Seen on AIX.
37985 2006-03-01 Simon Josefsson <jas@extundo.com>
37987 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
37990 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
37992 * modules/gettime (Depends-on): Add extensions module.
37993 * modules/nanosleep (Depends-on): Likewise.
37994 * modules/settime (Depends-on): Likewise.
37996 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
37998 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
37999 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
38001 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38002 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
38004 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
38005 not "==". Reported by Ralf Wildenhues.
38007 2006-03-01 Karl Berry <karl@gnu.org>
38009 * doc/Copyright/request-*: new files, synced from gnuorg.
38011 2006-03-01 Karl Berry <karl@gnu.org>
38013 * config/srclist.txt (Copyright/*): new entries.
38015 2006-02-28 Simon Josefsson <jas@extundo.com>
38017 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
38019 2006-02-27 Simon Josefsson <jas@extundo.com>
38021 * lib/base64.h: Indent #define's. From Jim Meyering
38022 <jim@meyering.net>.
38024 2006-02-27 Jim Meyering <jim@meyering.net>
38026 Revert the change of 2006-02-24, so these files can continue
38027 to be sync'd from gettext.
38028 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
38031 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
38033 * modules/intprops: New file.
38034 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38036 * modules/getloadavg (Files): Remove lib/intprops.h.
38037 (Depends-on): Add intprops.
38038 * modules/human: Likewise.
38039 * modules/inttostr: Likewise.
38040 * modules/openat: Likewise.
38041 * modules/sig2str: Likewise.
38042 * modules/userspec: Likewise.
38043 * modules/utimecmp: Likewise.
38044 * modules/xnanosleep: Likewise.
38045 * modules/xstrtol: Likewise.
38047 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
38049 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
38050 * modules/lock-tests (TESTS): Use $(EXEEXT).
38051 * modules/tls-tests: Likewise.
38052 * modules/argp-tests: Likewise.
38053 (check_PROGRAMS): New var, replacing...
38054 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
38056 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38058 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
38061 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
38063 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
38065 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38067 Sync from coreutils.
38068 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
38071 2006-02-22 Jim Meyering <jim@meyering.net>
38073 Sync from coreutils.
38074 * m4/chdir-safer.m4: New file.
38076 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
38078 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
38079 AT_FDCWD exceeds INT_MAX.
38080 * lib/openat.h (AT_FDCWD): Likewise.
38082 2006-02-17 Eric Blake <address@hidden>
38084 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
38086 2006-02-16 Simon Josefsson <jas@extundo.com>
38088 * modules/getaddrinfo (Depends-on): Add sys_socket.
38090 2006-02-15 Simon Josefsson <jas@extundo.com>
38092 * build-aux/maint.mk: Add dsyntax-check rule.
38094 2006-02-15 Eric Blake <ebb9@byu.net>
38096 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
38097 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
38098 'present but cannot compile' warnings on cygwin.
38099 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
38100 use ws2tcpip.h if sys/socket.h works.
38101 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
38102 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
38104 2006-02-14 Simon Josefsson <jas@extundo.com>
38106 * modules/maintainer-makefile (Files): Rename.
38108 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
38109 and (the local) Makefile.cfg to maint-cfg.mk.
38111 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
38114 * modules/maintainer-makefile: New module.
38116 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
38117 severaly stripped to make it possible to build it up from scratch
38118 with reliable tests.
38120 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
38121 fixes to permit overriding the default actions when configure and
38122 makefile are not available.
38124 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
38126 Sync from coreutils.
38127 * modules/lstat (Depends-on): Don't depend on xalloc.
38128 (License): Change from GPL to LGPL, since this is now simply a
38129 replacement for a libc function.
38131 2006-02-14 Jim Meyering <jim@meyering.net>
38133 Sync from coreutils.
38135 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
38136 failure on deficient systems, and simplify gnulib lgpl dependencies.
38137 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
38138 xmalloc/lstat combination. Based on a patch from Bruno Haible.
38140 * lib/xalloc-die.c: Remove unused definition of N_.
38142 2006-02-14 Jim Meyering <jim@meyering.net>
38144 Sync from coreutils.
38145 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
38146 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
38147 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
38148 double-quote uses of that variable, to accommodate the rare case in
38149 which getmntent is available in none of the libraries checked. This
38150 happens at least on FreeBSD 5.0.
38152 2006-02-13 Simon Josefsson <jas@extundo.com>
38154 * gnulib-tool (Usage): Fix --import, from
38155 karl@freefriends.org (Karl Berry).
38157 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
38159 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
38161 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
38163 * lib/argp-namefrob.h: Restore changes accidentally lost during the
38164 "autoupdate" on 2005-12-12.
38166 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
38168 * modules/closeout (Depends-on): Remove atexit.
38170 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
38172 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
38173 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
38175 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
38177 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
38178 __EXTENSIONS__ if this causes compilation to fail. Problem
38179 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
38180 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
38182 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
38184 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
38185 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
38186 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
38189 2006-01-26 Simon Josefsson <jas@extundo.com>
38191 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
38192 prototype is visible on mingw32.
38194 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
38197 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
38200 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
38202 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
38203 attempt to open for write; this always fails, at least on POSIX
38204 hosts. This reinstates the 2006-01-09 change, which was
38205 inadvertently removed.
38207 2006-01-26 Bruno Haible <bruno@clisp.org>
38209 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
38210 Reported by Paul Eggert.
38212 2006-01-26 Bruno Haible <bruno@clisp.org>
38213 Paul Eggert <eggert@cs.ucla.edu>
38215 * lib/stdbool_.h (_Bool)
38216 [(! (defined __cplusplus || defined __BEOS__)
38217 && !defined __GNUC__
38218 && !(defined __HP_cc || defined __xlc__
38219 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
38220 || defined __sgi))]:
38221 #define to signed char in these cases too; this simplifies
38222 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
38223 etc., separately) and makes it more conservative.
38225 2006-01-25 Simon Josefsson <jas@extundo.com>
38227 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
38228 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
38229 ws2tcpip.h with WINVER=0x0501. All for mingw32.
38231 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
38233 * lib/argp-namefrob.h: Bugfix. Remove stray #
38235 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
38237 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
38238 so that we test the test.
38239 Check for yet another HP-UX cc bug involving *bool |= bool.
38241 2006-01-25 Karl Berry <karl@gnu.org>
38243 * config/srclist.txt (vasnprintf.c): sync lost.
38245 2006-01-25 Jim Meyering <jim@meyering.net>
38247 Sync from the stable (b5) branch of coreutils:
38249 * lib/fts.c (fts_children): Don't let close() clobber errno from
38252 * lib/fts.c (fts_stat): When following a symlink-to-directory,
38253 don't necessarily interpret stat-fails+lstat-succeeds as indicating
38254 a dangling symlink. That can also happen at least for ELOOP.
38255 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
38256 FYI, this bug predates the inclusion of fts.c in coreutils.
38258 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
38259 in their own block, so pre-c99 compilers don't object.
38261 Avoid the double-free (first in fts_read, second in fts_close) that
38262 would occur when an `active' directory is made inaccessible (e.g.,
38263 via chmod a-x) during a traversal.
38264 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
38265 before returning. Reproduce this failure by
38266 mkdir -p a/b; cd a; chmod a-x . b
38267 Reported by Stavros Passas.
38269 2006-01-25 Jim Meyering <jim@meyering.net>
38271 * lib/fileblocks.c: Remove more useless parentheses.
38272 * lib/readutmp.h: Likewise.
38274 2006-01-25 Bruno Haible <bruno@clisp.org>
38276 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
38278 Reported by Paul Eggert.
38280 2006-01-25 Bruno Haible <bruno@clisp.org>
38282 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
38283 rid of a trap command. For Solaris sh.
38284 Reported by Mark D. Baushke <mdb@gnu.org>.
38286 2006-01-24 Simon Josefsson <jas@extundo.com>
38288 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
38291 2006-01-24 Karl Berry <karl@gnu.org>
38293 * config/srclist.txt (argp-namefrob.h): sync lost.
38295 2006-01-24 Jim Meyering <jim@meyering.net>
38297 * modules/openat (Files): Add lib/intprops.h.
38298 From Mark D. Baushke.
38300 2006-01-24 Jim Meyering <jim@meyering.net>
38302 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
38303 Reported by Mark D. Baushke.
38305 2006-01-24 Jim Meyering <jim@meyering.net>
38307 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
38309 2006-01-24 Bruno Haible <bruno@clisp.org>
38311 * modules/strnlen (Maintainer): Change from glibc to all.
38313 2006-01-24 Bruno Haible <bruno@clisp.org>
38315 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
38316 Patch by Paul Eggert.
38318 2006-01-24 Bruno Haible <bruno@clisp.org>
38320 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
38322 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
38325 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
38326 'signed char' to avoid problems with the built-in _Bool type.
38327 Reported by Paul Eggert on 2005-11-26.
38329 2006-01-24 Bruno Haible <bruno@clisp.org>
38331 * gnulib-tool (func_import): Avoid constructing complicated sed
38332 expressions inside backquote.
38333 Report and solution by Mark D. Baushke <mdb@gnu.org>.
38335 2006-01-23 Ulrich Drepper <drepper@redhat.com>
38337 These changes imported from libc.
38338 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
38339 test and two separate function calls.
38340 * lib/strndup.c (__strndup): Add libc_hidden_def.
38342 2006-01-23 Simon Josefsson <jas@extundo.com>
38344 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
38345 Remove the test_*_SOURCES variable: automake infers it by default.
38346 * modules/tls-tests: Likewise.
38348 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38350 Work around porting bugs reported by Dieter in
38351 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
38352 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
38353 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
38354 Include "getopt.h" first, to check interface.
38355 (getenv): Declare only if defined HAVE_DECL_GETENV &&
38357 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
38358 (__strndup): Revert to K&R-style function dfns, the glibc style.
38359 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
38360 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
38361 Include strnlen.h first, to get prototype properly.
38362 (strnlen): Renamed from __strnlen.
38365 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38367 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
38369 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38371 * config/srclist.txt: Adjust to reflect glibc reorganization.
38372 This affects only comments.
38374 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
38376 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
38377 Reported by Bruce Korb <bkorb@gnu.org>.
38379 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
38381 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
38382 to pacify gcc -Wswitch-default.
38384 2006-01-22 Bruno Haible <bruno@clisp.org>
38386 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
38387 temporary buffer for sprintf, take into account the precision also
38388 for 'd', 'i', 'u', 'o', 'x', 'X'.
38390 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
38392 * modules/argp-tests: New module
38393 * tests/test-argp.c: New file
38394 * tests/test-argp-2.sh: New file
38396 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
38398 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
38399 (__argp_base_name): Removed
38400 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
38402 (__argp_base_name): Provide macro definition or extern declaration
38403 depending on the configuration
38405 2006-01-20 Simon Josefsson <jas@extundo.com>
38407 * modules/inet_ntop (Depends-on): Depend on sys_socket.
38409 2006-01-20 Simon Josefsson <jas@extundo.com>
38411 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
38413 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
38415 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
38416 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
38417 Suggested by Bruno Haible.
38419 2006-01-20 Karl Berry <karl@gnu.org>
38421 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
38422 until changes propagate, I guess.
38424 2006-01-19 Simon Josefsson <jas@extundo.com>
38426 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
38428 2006-01-19 Simon Josefsson <jas@extundo.com>
38430 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
38432 2006-01-19 Simon Josefsson <jas@extundo.com>
38434 * gnulib-tool: Set check_PROGRAMS.
38436 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38437 modules/des-tests, modules/gc-arcfour-tests,
38438 modules/gc-arctwo-tests, modules/gc-des-tests,
38439 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38440 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38441 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38442 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38443 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38444 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
38445 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
38448 2006-01-18 Simon Josefsson <jas@extundo.com>
38450 * modules/socklen (Depends-on): Depend on sys_socket.
38452 2006-01-18 Simon Josefsson <jas@extundo.com>
38454 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38455 modules/des-tests, modules/gc-arcfour-tests,
38456 modules/gc-arctwo-tests, modules/gc-des-tests,
38457 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38458 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38459 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38460 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38461 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38462 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
38463 $(EXEEXT) to automake TESTS variable, for mingw32.
38465 2006-01-17 Simon Josefsson <jas@extundo.com>
38467 * modules/socklen (Include): Need sys/socket.h.
38469 2006-01-17 Bruno Haible <bruno@clisp.org>
38471 * modules/ssize_t (Include): Add <sys/types.h>.
38473 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
38475 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
38476 it's not portable and it doesn't work with cross-compiles.
38477 Problem reported by Bruno Haible. Fix missing-$ typo in
38478 'test "gl_cv_ignore_unused_libraries" ...' that prevented
38479 -zignore from being used with Sun's C compiler.
38481 2006-01-12 Simon Josefsson <jas@extundo.com>
38483 * lib/base64.c: Fix warning, reported by Bruno Haible
38484 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
38486 2006-01-12 Bruno Haible <bruno@clisp.org>
38488 * modules/ldd: New file.
38489 * build-aux/ldd.sh.in: New file.
38490 * MODULES.html.sh (Support for building libraries and executables): Add
38493 2006-01-12 Bruno Haible <bruno@clisp.org>
38495 * m4/ldd.m4: New file.
38497 2006-01-12 Bruno Haible <bruno@clisp.org>
38499 * gnulib-tool (func_import, func_create_testdir): Don't go into an
38500 endless loop while replacing $auxdir with build-aux.
38502 2006-01-11 Simon Josefsson <jas@extundo.com>
38504 * lib/stdint_.h (SIZE_MAX): Add missing (.
38506 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
38508 Sync from coreutils.
38509 * lib/md5.c: Fix commentary typos.
38510 (alignof, UNALIGNED_P): No need for a GCC-specific version.
38511 * lib/md5.h (__attribute__): Remove; unused.
38512 * lib/sha1.c: Fix commentary to match md5 better.
38513 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
38514 so that we don't need to worry about alignment. All uses changed.
38515 This merges the 2005-10-28 md5 change into sha1.
38517 2006-01-11 Jim Meyering <jim@meyering.net>
38519 Sync from coreutils.
38520 * lib/md5.c (OP): Fix spacing.
38522 2006-01-11 Bruno Haible <bruno@clisp.org>
38524 Ensure automatic ordering between gl_LOCK and gl_ARGP.
38525 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
38526 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
38528 2006-01-11 Bruno Haible <bruno@clisp.org>
38530 Ensure automatic ordering between gl_LOCK and gl_ARGP.
38531 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
38532 the "early" section as well.
38534 2006-01-11 Bruno Haible <bruno@clisp.org>
38536 Avoid "ar: no archive members specified" error on MacOS X.
38537 * gnulib-tool (func_modules_add_dummy): New function.
38538 (func_import, func_create_testdir): Invoke it.
38540 2006-01-11 Bruno Haible <bruno@clisp.org>
38542 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
38543 with $auxdir in AC_CONFIG_FILES statements.
38545 2006-01-11 Bruno Haible <bruno@clisp.org>
38547 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38548 Initialize also noinst_HEADERS to empty.
38550 2006-01-11 Bruno Haible <bruno@clisp.org>
38552 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
38554 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
38557 2006-01-11 Bruno Haible <bruno@clisp.org>
38559 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
38560 overridable by the user.
38561 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38563 2006-01-10 Simon Josefsson <jas@extundo.com>
38565 * modules/sys_socket: New file.
38567 2006-01-10 Simon Josefsson <jas@extundo.com>
38569 * m4/sys_socket_h.m4: New file.
38571 2006-01-10 Simon Josefsson <jas@extundo.com>
38573 * lib/socket_.h: New file.
38575 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
38577 * modules/readutmp (Maintainer): Add myself.
38579 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
38581 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
38582 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
38583 People who are still concerned with buggy memcmp implementations
38584 can invoke gl_FUNC_MEMCMP themselves.
38586 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
38588 * lib/regex_internal.h (BITSET_WORD_BITS):
38589 Work around a bug in 64-bit PGC (before version 6.1-2), where the
38590 preprocessor mishandles large unsigned values as if they were signed.
38591 Problem reported by Claudio Fontana in
38592 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
38594 2006-01-10 Jim Meyering <jim@meyering.net>
38596 Avoid the double-free (first in fts_read, second in fts_close) that
38597 would occur when an `active' directory is made inaccessible (e.g.,
38598 via chmod a-x) during a traversal.
38599 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
38600 before returning. Reproduce this failure by
38601 mkdir -p a/b; cd a; chmod a-x . b
38602 Reported by Stavros Passas.
38604 Sync from coreutils.
38605 * lib/sha1.c: Tweak grammar in a comment.
38607 2006-01-10 Jim Meyering <jim@meyering.net>
38609 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
38610 Patch by Joerg Sonnenberger.
38612 2006-01-10 Bruno Haible <bruno@clisp.org>
38614 * modules/readutmp: Depend on module free.
38615 * modules/strtok_r: Depend on module restrict.
38617 2006-01-10 Bruno Haible <bruno@clisp.org>
38619 * modules/gettext (configure.ac): Add an invocation of
38620 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
38622 2006-01-10 Bruno Haible <bruno@clisp.org>
38624 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
38625 Reported by Werner Lemberg <wl@gnu.org>.
38627 2006-01-10 Bruno Haible <bruno@clisp.org>
38629 * lib/localcharset.c: Update from GNU gettext.
38631 2006-01-10 Bruno Haible <bruno@clisp.org>
38633 * lib/argp.h (__const): Remove macro. Use const instead.
38634 * lib/argp-fmtstream.h (__const): Likewise.
38635 * lib/glob_.h (__const): Remove macro.
38636 * lib/glob-libc.h: Use const instead of __const.
38638 2006-01-10 Bruno Haible <bruno@clisp.org>
38640 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
38642 Needed to avoid an automake error regarding the 'gettext' module.
38644 2006-01-09 Simon Josefsson <jas@extundo.com>
38646 * modules/inet_ntop (Depends-on): Add restrict.
38648 2006-01-09 Simon Josefsson <jas@extundo.com>
38650 * modules/gc-rijndael-tests (License): Put under LGPL.
38652 * modules/gc-des-tests (License): Likewise.
38654 * modules/gc-arcfour-tests (License): Likewise.
38656 * modules/gc-arctwo-tests (License): Likewise.
38658 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
38660 * modules/gc-hmac-sha1-tests (Files): Likewise.
38662 * modules/gc-hmac-md5-tests (License): Likewise.
38664 * modules/gc-sha1-tests (License): Likewise.
38666 * modules/gc-md5-tests (License): Likewise.
38668 * modules/gc-md4-tests (License): Likewise.
38670 * modules/gc-md2-tests (License): Likewise.
38672 * modules/gc-tests (License): Likewise.
38674 * modules/des-tests (License): Likewise.
38676 * modules/md4-tests (License): Likewise.
38678 * modules/md2-tests (License): Likewise.
38680 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38682 Sync from coreutils:
38684 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
38685 * modules/lib-ignore: New file.
38686 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
38687 chdir-safer.m4, lchmod.m4.
38688 * modules/openat: Add mkdirat.c, openat-priv.h.
38690 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38692 Sync from coreutils.
38693 * m4/lib-ignore.m4: New file.
38694 * m4/lchmod.m4: New file.
38696 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38698 Sync from coreutils.
38699 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
38700 for write access: POSIX says that must fail.
38701 * lib/fts.c (diropen): Likewise.
38702 * lib/save-cwd.c (save_cwd): Likewise.
38703 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
38704 well, for minor improvements on hosts that lack O_DIRECTORY.
38705 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
38706 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
38707 Fall back on chown if open failed with EACCES.
38709 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
38710 Report an error at compile-time if only a 1-second nominal clock
38711 resolution is found.
38713 * lib/lchmod.h: New file.
38714 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
38715 (make_dir_parents): Use lchown rather than chown, and
38716 lchmod rather than chmod.
38718 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
38719 dummies too. Problem with "none" reported by Bob Proulx. Problem with
38720 "proc" reported by n0dalus.
38722 * lib/mountlist.c: Include <limits.h>.
38723 (dev_from_mount_options)
38724 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
38725 New function. It no longer assumes "dev=" has the System V meaning
38726 on Linux (since it doesn't). It also parses "dev=" more carefully.
38727 (read_file_system_list)
38728 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
38729 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
38732 * lib/posixtm.h (PDS_PRE_2000): New macro.
38733 * lib/posixtm.c (year): Arg is now syntax_bits rather than
38734 allow_century. All usages changed. Reject dates outside the range
38735 1969-1999 if PDS_PRE_2000 is used.
38737 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38739 Sync from coreutils.
38740 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
38741 (Time of day items): Mention the possibility of leap seconds.
38742 Problem reported by Dr. David Alan Gilbert.
38744 2006-01-09 Jim Meyering <jim@meyering.net>
38746 Sync from coreutils.
38748 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
38750 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
38752 * lib/modechange.c (mode_compile): Reject an invalid mode string
38753 that starts with an octal digit. From Andreas Gruenbacher.
38755 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
38756 and dup to open_safer and dup_safer, respectively.
38757 (openat_permissive): Fix typo in comment.
38759 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
38760 "gettext.h"; either no longer needed or are guaranteed by openat.h.
38761 (_): Remove; no longer needed.
38762 (openat): Renamed from rpl_openat; no need for rpl_openat
38763 since openat.h renames openat for us.
38764 Replace most of the body with a call to openat_permissive,
38765 to avoid duplicate code.
38766 Port to (probably hypothetical) environments were mode_t is
38768 (openat_permissive): Require mode arg, so that we can check
38769 types better. Put it just after flags. Change cwd failure
38770 indicator from pointer-to-bool to pointer-to-errno-value.
38771 All callers changed.
38772 Invoke openat_save_fail and/or openat_restore_fail if
38773 cwd_errno is null, so that openat can call us.
38774 (openat_permissive, fdopendir, fstatat, unlinkat):
38775 Simplify errno handling to avoid some duplicate code,
38776 as it's OK to set errno on success.
38777 * lib/openat.h: Revamp code so that function macros depend on
38778 __OPENAT_PREFIX only, not also on AT_FDCWD.
38779 (openat_ro): Remove. Caller changed to use openat_permissive.
38780 (openat_permissive): Now a macro, if not a function.
38781 (openat_restore_fail, openat_save_fail): Now always functions,
38782 since mkdirat needs them even if __OPENAT_PREFIX is defined.
38784 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
38786 * lib/mkdirat.c: Include openat-priv.h.
38787 Remove definitions of macros defined therein.
38788 * lib/openat.c: Likewise.
38790 * lib/mkdirat.c (mkdirat): New file and function.
38791 * lib/openat.h (mkdirat): Declare.
38793 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
38795 * lib/openat.h (openat_permissive): Declare.
38796 (openat_ro): Define.
38798 * lib/openat.c (EXPECTED_ERRNO): New macro.
38799 (openat_permissive): New function -- used in remove.c rewrite.
38800 (all functions): Set errno just before returning, only if there
38801 was an actual failure.
38802 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
38804 Emulate openat-family functions using Linux's procfs, if possible.
38805 Idea and some code based on Ulrich Drepper's glibc changes.
38807 * lib/openat.c: (BUILD_PROC_NAME): New macro.
38808 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
38809 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
38810 before falling back on save_cwd and restore_cwd.
38811 (fdopendir, fstatat, unlinkat): Likewise.
38813 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
38814 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
38816 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
38817 as second argument to va_arg. Otherwise, some versions of gcc
38818 warn that `if this code is reached, the program will abort'.
38820 2006-01-09 Jim Meyering <jim@meyering.net>
38822 Sync from coreutils.
38823 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
38824 Require openat-priv.h.
38826 2006-01-09 Bruno Haible <bruno@clisp.org>
38828 * modules/strnlen (Include): Use strnlen.h.
38830 2006-01-09 Bruno Haible <bruno@clisp.org>
38832 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
38834 2006-01-09 Bruno Haible <bruno@clisp.org>
38836 * lib/sysexit_.h (EX_OK): New macro.
38837 Suggested by Martin Lambers <marlam@marlam.de>.
38839 2006-01-09 Bruno Haible <bruno@clisp.org>
38841 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
38842 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
38844 2006-01-09 Bruno Haible <bruno@clisp.org>
38846 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
38849 2006-01-09 Bruno Haible <bruno@clisp.org>
38851 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
38852 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
38853 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
38854 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
38856 2006-01-09 Bruno Haible <bruno@clisp.org>
38858 * build-aux/javacomp.sh.in: New file, moved from lib/.
38859 * modules/javacomp-script (Files): Update.
38860 (configure.ac): Add AC_CONFIG_FILES invocation.
38861 (EXTRA_DIST): Remove variable.
38863 * build-aux/javaexec.sh.in: New file, moved from lib/.
38864 * modules/javaexec (Files): Update.
38865 (configure.ac): Add AC_CONFIG_FILES invocation.
38866 (EXTRA_DIST): Remove javaexec.sh.in.
38868 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
38869 * modules/csharpcomp-script (Files): Update.
38870 (configure.ac): Add AC_CONFIG_FILES invocation.
38871 (EXTRA_DIST): Remove variable.
38873 * build-aux/csharpexec.sh.in: New file, moved from lib/.
38874 * modules/csharpexec (Files): Update.
38875 (configure.ac): Add AC_CONFIG_FILES invocation.
38876 (EXTRA_DIST): Remove csharpexec.sh.in.
38878 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
38880 Sync from coreutils.
38882 Add POSIX ACL support
38883 * lib/acl.h (copy_acl, set_acl): Add declarations.
38884 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
38885 systems other than Linux.
38886 (chmod_or_fchmod): New function: use fchmod when possible,
38887 and chmod otherwise.
38888 (file_has_acl): Add a POSIX ACL implementation, with a
38889 Linux-specific subcase.
38890 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
38891 S_ISVTX from one file to another. Fall back to fchmod/chmod when
38892 acls are unsupported.
38893 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
38894 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
38897 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
38899 Sync from coreutils.
38900 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
38902 2006-01-07 Bruno Haible <bruno@clisp.org>
38904 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
38907 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
38909 * lib/strftime.c (tzname): Don't declare if it is already #defined.
38910 Problem reported for Mingw by Mark Junker.
38912 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
38914 * README: Gnulib normally doesn't generate a tarball.
38916 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
38918 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
38919 long int, not int, for nanosecond counts, so that people who are
38920 used to POSIX struct timespec won't be surprised. Reported by Jim
38923 2005-12-28 Bruno Haible <bruno@clisp.org>
38925 * build-aux/config.rpath: Update from GNU gettext.
38927 2005-12-16 Jim Meyering <jim@meyering.net>
38929 * modules/fprintftime: New module.
38930 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
38932 2005-12-16 Jim Meyering <jim@meyering.net>
38934 * m4/fprintftime.m4: New file.
38936 2005-12-16 Jim Meyering <jim@meyering.net>
38938 * lib/fprintftime.c, lib/fprintftime.h: New files.
38940 2005-12-15 Simon Josefsson <jas@extundo.com>
38942 * modules/socklen (configure.ac): Fix M4 macro name, to align with
38945 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
38947 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
38948 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
38950 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
38952 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
38953 * lib/argp-help.c (fill_in_uparams): Check if the constructed
38954 struct uparams is valid. Fall back to the default values if it is
38957 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
38959 * modules/argp (Files): Add argp-pin.c
38960 (Depends-on): dirname
38961 (lib_SOURCES): Add argp-pin.c
38963 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
38965 * m4/argp.m4: Check if program_invocation_name and
38966 program_invocation_short_name are declared and define appropriate
38967 macros if they are not.
38969 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
38971 * lib/argp-help.c (__argp_base_name): New function
38972 (__argp_short_program_name): Rewrite using __argp_base_name
38973 * lib/argp-namefrob.h: Define program_invocation_name and
38974 program_invocation_short_name if requested
38975 (__argp_base_name): Add prototype
38976 * lib/argp-parse.c (argp_def): Use gettext wrappers
38977 (argp_default_parser): Use __argp_base_name
38978 * lib/argp-pin.c: New file. Defines program_invocation_name and
38979 program_invocation_short_name on systems that lack them.
38981 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
38983 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
38984 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38985 porting problem reported by Georg Schwarz in
38986 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38988 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
38990 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
38991 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38992 porting problem reported by Georg Schwarz in
38993 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38995 2005-12-05 Bruno Haible <bruno@clisp.org>
38997 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
38998 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
38999 Reported by Mark Junker <mjscod@gmx.de>.
39001 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
39003 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
39004 Use implementation from Albert Chin, with some
39005 comments/corrections by Stepan Kasal and myself.
39007 2005-12-02 Bruno Haible <bruno@clisp.org>
39009 * gnulib-tool (func_import): Accept GPLed build tool modules when
39011 * modules/csharpcomp-script: New file.
39012 * modules/csharpcomp: Depend on it.
39013 * modules/javacomp-script: New file.
39014 * modules/javacomp: Depend on it.
39015 Suggested by Simon Josefsson.
39017 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
39019 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
39020 statement, to work around an HP-UX 10.20 compiler bug reported by
39023 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
39025 * modules/savedir (Depends-on): Add openat.
39027 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
39029 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
39030 (uintmax_t) [defined uintmax_t]: Do not declare.
39031 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
39032 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
39033 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
39034 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
39035 sake of portability to weird hosts that C allows (though we don't
39036 know of any practical examples).
39038 * lib/savedir.h (fdsavedir): New decl.
39039 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
39040 contains most of the former guts of savedir.
39041 (savedir): Use savedirstream.
39042 Include "openat.h".
39044 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
39046 * modules/obstack (Files): Add m4/ulonglong.m4.
39047 Problem reported by Davide Angelocola.
39049 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
39051 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
39052 coreutils no longer futzes with rounding modes.
39054 2005-11-14 Jim Meyering <jim@meyering.net>
39056 * lib/mkstemp-safer.c: Include <config.h>, required for possible
39057 replacement of mkstemp.
39059 2005-11-10 Simon Josefsson <jas@extundo.com>
39061 * lib/readline.c: Remove EOL.
39063 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
39065 * modules/gethrxtime (Depends-on): Add gettime.
39067 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
39069 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
39070 or gettimeofday; no longer needed.
39072 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
39074 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
39076 (gethrxtime) [! (HAVE_NANOUPTIME
39077 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
39078 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
39079 our own approximation.
39081 2005-11-08 Eric Blake <ebb9@byu.net>
39083 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39085 2005-11-08 Eric Blake <ebb9@byu.net>
39087 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39089 2005-11-04 Bruno Haible <bruno@clisp.org>
39091 * gnulib-tool: Implement --update mode.
39093 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
39095 Fix porting problem reported by Theodoros V. Kalamatianos.
39096 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
39097 Don't assume that futimes failing means we must fail.
39099 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
39101 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
39102 variables to suggest the intended function of the PATH_MAX check.
39104 2005-10-30 Kean Johnston <jkj@sco.com>
39106 Trivial changes to support SCO systems.
39107 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
39109 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
39110 where __ptr is null when no I/O is pending.
39112 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
39114 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
39115 leave errno alone. Problem reported by Dmitry V. Levin.
39117 2005-10-28 Simon Josefsson <jas@extundo.com>
39119 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
39122 * tests/test-gc-md2.c, tests/test-md2.c: New files.
39124 * modules/md2, modules/md2-tests: New files.
39126 2005-10-28 Simon Josefsson <jas@extundo.com>
39128 * m4/inet_ntop.m4: More tests.
39130 * m4/gc-md2.m4, md2.m4: New file.
39132 2005-10-28 Simon Josefsson <jas@extundo.com>
39134 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
39135 "restrict" keywords, as per POSIX. Protect the function
39136 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
39137 Don't use K&R prototypes. Check the sprintf return values.
39138 Re-define EAFNOSUPPORT if not present. Indent.
39140 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
39141 suggested by Bruno Haible <bruno@clisp.org>.
39143 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
39145 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
39147 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
39150 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
39152 * lib/md2.h, lib/md2.c: New files.
39154 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
39156 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
39157 errno alone. Problem reported by Frederic Jolliton.
39159 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
39161 * modules/verify (License): Change from GPL to LGPL. This is a
39162 tiny module and there are apparently near-equivalents that are
39163 under the BSD license.
39165 2005-10-24 Simon Josefsson <jas@extundo.com>
39167 * modules/sha1: Relicense to LGPL.
39169 2005-10-24 Simon Josefsson <jas@extundo.com>
39171 * lib/md4.h: Shrink buffer size, now that we changed the type.
39173 2005-10-23 Simon Josefsson <jas@extundo.com>
39175 * gnulib-tool (func_import): Fix --tests-base.
39177 2005-10-22 Simon Josefsson <jas@extundo.com>
39179 * modules/arcfour (Depends-on): Need stdint.
39181 2005-10-22 Simon Josefsson <jas@extundo.com>
39183 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
39184 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
39186 2005-10-22 Simon Josefsson <jas@extundo.com>
39188 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
39189 suggested by Bruno Haible <bruno@clisp.org>.
39191 2005-10-22 Simon Josefsson <jas@extundo.com>
39193 * lib/crc.h: Include stddef.h, for size_t.
39195 2005-10-22 Simon Josefsson <jas@extundo.com>
39197 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
39198 arcfour_context struct (simplify test vector testing in GNU
39201 2005-10-21 Simon Josefsson <jas@extundo.com>
39203 * modules/des, modules/des-tests: New files.
39205 * modules/gc-des, modules/gc-des-tests: New files.
39207 * tests/test-des.c, tests/test-gc-des.c: New file.
39209 2005-10-21 Simon Josefsson <jas@extundo.com>
39211 * modules/arctwo, modules/arctwo-tests: New files.
39213 * tests/test-arctwo.c: New file.
39215 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
39217 * tests/test-gc-arctwo.c: New file.
39219 2005-10-21 Simon Josefsson <jas@extundo.com>
39221 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
39222 Bruno Haible <bruno@clisp.org>.
39224 * m4/gc-des.m4: New file.
39226 2005-10-21 Simon Josefsson <jas@extundo.com>
39228 * m4/arctwo.m4: New file.
39230 * m4/gc-arctwo.m4: New file.
39232 2005-10-21 Simon Josefsson <jas@extundo.com>
39234 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
39237 2005-10-21 Simon Josefsson <jas@extundo.com>
39239 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
39242 * lib/hmac-sha1.c (hmac_sha1): Likewise.
39244 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
39245 Bruno Haible <bruno@clisp.org>.
39247 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
39250 2005-10-21 Simon Josefsson <jas@extundo.com>
39252 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
39254 2005-10-21 Simon Josefsson <jas@extundo.com>
39256 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
39258 2005-10-21 Simon Josefsson <jas@extundo.com>
39260 * lib/des.h, lib/des.c: New files.
39262 * lib/gc-gnulib.c: Support DES.c
39264 2005-10-21 Simon Josefsson <jas@extundo.com>
39266 * lib/arctwo.h, lib/arctwo.c: New files.
39268 * lib/gc-gnulib.c: Support ARCTWO.
39270 2005-10-21 Simon Josefsson <jas@extundo.com>
39272 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
39273 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39275 2005-10-21 Simon Josefsson <jas@extundo.com>
39277 * gnulib-tool (func_import, func_create_testdir): Define automake
39278 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
39279 Makefile.am snippet),
39280 suggested by Bruno Haible <bruno@clisp.org>.
39282 * modules/gc (Makefile.am): Use it.
39284 2005-10-21 Bruno Haible <bruno@clisp.org>
39286 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
39289 2005-10-19 Simon Josefsson <jas@extundo.com>
39291 * tests/test-gc-rijndael.c: New file.
39293 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
39295 2005-10-19 Simon Josefsson <jas@extundo.com>
39297 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
39300 2005-10-19 Simon Josefsson <jas@extundo.com>
39302 * tests/test-gc-arcfour.c: New file.
39304 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
39306 2005-10-19 Simon Josefsson <jas@extundo.com>
39308 * modules/gc-md4, modules/gc-md4-tests: New file.
39310 * tests/test-gc-md4.c: New file.
39312 2005-10-19 Simon Josefsson <jas@extundo.com>
39314 * m4/gc-md4.m4: New file.
39316 2005-10-19 Simon Josefsson <jas@extundo.com>
39318 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
39319 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
39322 2005-10-19 Simon Josefsson <jas@extundo.com>
39324 * m4/gc-arcfour.m4: New file.
39326 * m4/gc-rijndael.m4: New file.
39328 2005-10-19 Simon Josefsson <jas@extundo.com>
39330 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
39332 2005-10-19 Simon Josefsson <jas@extundo.com>
39334 * lib/gc-gnulib.c: Support ARCFOUR.
39336 2005-10-19 Simon Josefsson <jas@extundo.com>
39338 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
39341 * lib/gc.h: Add ECB enum type.
39343 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
39345 2005-10-18 Simon Josefsson <jas@extundo.com>
39347 * tests/test-md5.c: New file.
39349 * modules/md5-tests: New file.
39351 2005-10-18 Simon Josefsson <jas@extundo.com>
39353 * tests/test-md4.c: New file.
39355 * modules/md4, modules/md4-tests: New files.
39357 2005-10-18 Simon Josefsson <jas@extundo.com>
39359 * m4/md4.m4: New file.
39361 2005-10-18 Simon Josefsson <jas@extundo.com>
39363 * lib/md4.h, lib/md4.c: New files, based on md5.?.
39365 2005-10-17 Stepan Kasal <kasal@ucw.cz>
39367 * gnulib-tool (func_create_testdir): Omit the second check whether
39368 BUILT_SOURCES in nonempty.
39370 2005-10-17 Simon Josefsson <jas@extundo.com>
39372 * tests/test-rijndael.c: New file.
39374 2005-10-17 Simon Josefsson <jas@extundo.com>
39376 * modules/sha1: Depend on stdint instead of md5.
39378 * modules/md5: Depend on stdint, remove uint32_t.
39380 2005-10-17 Simon Josefsson <jas@extundo.com>
39382 * modules/gc-sha1-tests: New file.
39384 * tests/test-gc-sha1.c: New file.
39386 2005-10-17 Simon Josefsson <jas@extundo.com>
39388 * m4/md5.m4: Remove call to uint32_t.m4.
39390 2005-10-17 Simon Josefsson <jas@extundo.com>
39392 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
39394 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
39397 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
39399 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
39401 2005-10-17 Simon Josefsson <jas@extundo.com>
39403 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
39405 2005-10-17 Simon Josefsson <jas@extundo.com>
39407 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
39409 2005-10-17 Simon Josefsson <jas@extundo.com>
39411 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
39413 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
39415 2005-10-17 Bruno Haible <bruno@clisp.org>
39417 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
39418 that it can also be used in a test.
39420 2005-10-16 Bruno Haible <bruno@clisp.org>
39422 * gnulib-tool (func_emit_tests_Makefile_am): Also define
39423 TESTS_ENVIRONMENT, so that individual tests can augment it.
39425 * gnulib-tool (func_create_testdir): Use an intermediate target for
39426 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
39427 macros, like $(ALLOCA_H), which cannot be passed through the command
39430 2005-10-15 Simon Josefsson <jas@extundo.com>
39432 * modules/rijndael-tests: New file.
39434 * modules/rijndael: New file.
39436 2005-10-15 Simon Josefsson <jas@extundo.com>
39438 * m4/rijndael.m4: New file.
39440 2005-10-15 Simon Josefsson <jas@extundo.com>
39442 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
39444 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
39446 2005-10-14 Simon Josefsson <jas@extundo.com>
39448 * tests/test-arcfour.c: New file.
39450 * modules/arcfour, modules/arcfour-tests: New files.
39452 2005-10-14 Simon Josefsson <jas@extundo.com>
39454 * m4/arcfour.m4: New file.
39456 2005-10-14 Simon Josefsson <jas@extundo.com>
39458 * lib/arcfour.h, lib/arcfour.c: New files.
39460 2005-10-14 Roland McGrath <roland@redhat.com>
39462 Import from libc. [BZ #1331]
39463 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
39465 Reported by Matej Vela <vela@debian.org>.
39467 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
39469 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
39470 include <wchar.h>; no longer needed.
39472 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
39474 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
39476 2005-10-14 Jakub Jelinek <jakub@redhat.com>
39477 and Ulrich Drepper <drepper@redhat.com>
39480 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
39481 instead of inline stream orientation test and two separate
39482 function calls. Pay no attention to USE_IN_LIBIO.
39484 2005-10-13 Simon Josefsson <jas@extundo.com>
39486 * modules/gc-hmac-md5-tests: New file.
39488 * tests/test-gc-hmac-sha1.c: New file.
39490 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
39492 * modules/gc-hmac-md5-tests: New file.
39494 * tests/test-gc-md5.c: New file.
39496 * modules/gc-md5-tests: New file.
39498 2005-10-13 Simon Josefsson <jas@extundo.com>
39500 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
39501 Move memory allocation outside of loop.
39503 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
39505 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
39506 intermediate directory is in a read-only file system. Problem
39507 reported by Eric Blake.
39509 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
39511 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
39513 2005-10-12 Simon Josefsson <jas@extundo.com>
39515 * tests/test-hmac-sha1.c: New file.
39517 * modules/hmac-sha1-tests: New file.
39519 * modules/hmac-sha1: New file.
39521 2005-10-12 Simon Josefsson <jas@extundo.com>
39523 * modules/gc-sha1: New file.
39525 2005-10-12 Simon Josefsson <jas@extundo.com>
39527 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
39529 * tests/test-gc-pbkdf2-sha1.c: New file.
39531 2005-10-12 Simon Josefsson <jas@extundo.com>
39533 * modules/gc-md5, modules/gc-hmac-md5: New files.
39535 * modules/gc (Files): Remove md5, memxor and hmac files.
39537 2005-10-12 Simon Josefsson <jas@extundo.com>
39539 * m4/gc-pbkdf2-sha1.m4: New file.
39541 * m4/gc-hmac-sha1.m4: New file.
39543 * m4/gc-sha1: New file.
39545 * m4/hmac-sha1.m4: New file.
39547 2005-10-12 Simon Josefsson <jas@extundo.com>
39549 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
39551 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
39553 2005-10-12 Simon Josefsson <jas@extundo.com>
39555 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
39556 suggested by Bruno Haible <bruno@clisp.org>.
39558 2005-10-12 Simon Josefsson <jas@extundo.com>
39560 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
39562 2005-10-12 Simon Josefsson <jas@extundo.com>
39564 * lib/gc-pbkdf2-sha1.c: New file.
39566 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
39568 2005-10-12 Simon Josefsson <jas@extundo.com>
39570 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
39572 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
39574 2005-10-12 Simon Josefsson <jas@extundo.com>
39576 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
39577 GC_USE_HMAC_MD5, respectively.
39579 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
39580 (gc_md5): Fix typo.
39582 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
39584 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
39586 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
39588 2005-10-12 Bruno Haible <bruno@clisp.org>
39590 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
39591 Reported by Stepan Kasal <kasal@ucw.cz>.
39593 2005-10-11 Simon Josefsson <jas@extundo.com>
39595 * tests/test-crc.c: New file.
39597 * modules/crc, modules/crc-tests: New files.
39599 2005-10-11 Simon Josefsson <jas@extundo.com>
39601 * m4/crc.m4: New file.
39603 2005-10-11 Simon Josefsson <jas@extundo.com>
39605 * lib/gc.h: Add gc_hash and gc_hash_buffer.
39607 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
39609 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
39611 2005-10-11 Simon Josefsson <jas@extundo.com>
39613 * lib/crc.h, lib/crc.c: New files.
39615 * lib/gc.h (gc_hash_buffer): Add doc.
39617 2005-10-11 Bruno Haible <bruno@clisp.org>
39619 * modules/c-strcasestr: New file.
39620 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
39622 2005-10-11 Bruno Haible <bruno@clisp.org>
39624 * modules/c-strcase: New file.
39625 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
39627 2005-10-11 Bruno Haible <bruno@clisp.org>
39629 * lib/strcasecmp.c: Include limits.h.
39630 (strcasecmp): Avoid integer overflow on exotic platforms.
39631 * lib/strncasecmp.c: Include limits.h.
39632 (strncasecmp): Avoid integer overflow on exotic platforms.
39633 Reported by Paul Eggert.
39635 2005-10-11 Bruno Haible <bruno@clisp.org>
39637 * lib/c-strcasestr.h: New file, from GNU gettext.
39638 * lib/c-strcasestr.c: New file, from GNU gettext.
39640 2005-10-11 Bruno Haible <bruno@clisp.org>
39642 * lib/c-strcase.h: New file, from GNU gettext.
39643 * lib/c-strcasecmp.c: New file, from GNU gettext.
39644 * lib/c-strncasecmp.c: New file, from GNU gettext.
39646 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
39648 * modules/mempcpy (License): GPL -> LGPL.
39649 * modules/strchrnul (License): Likewise.
39650 * modules/sysexits (License): Likewise.
39652 2005-10-08 Simon Josefsson <jas@extundo.com>
39654 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
39656 2005-10-07 Simon Josefsson <jas@extundo.com>
39658 * m4/memxor.m4: Remove gl_C_RESTRICT call.
39660 2005-10-06 Simon Josefsson <jas@extundo.com>
39662 * tests/test-hmac-md5.c: New file.
39664 * modules/hmac-md5-tests: New file.
39666 * modules/hmac-md5: New file.
39668 2005-10-06 Simon Josefsson <jas@extundo.com>
39670 * m4/hmac-md5.m4: New file.
39672 * m4/memxor.m4: Require gl_C_RESTRICT.
39674 2005-10-06 Simon Josefsson <jas@extundo.com>
39676 * lib/memxor.c (memxor): Avoid casts and warnings.
39678 2005-10-06 Simon Josefsson <jas@extundo.com>
39680 * lib/hmac-md5.c: New file.
39682 * lib/hmac.h: New file.
39684 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
39686 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
39687 promotes to int, not unsigned int, to catch the AIX 5.3
39690 2005-10-05 Simon Josefsson <jas@extundo.com>
39692 * modules/memxor: New file.
39694 * modules/iconv (Files): Move config.rpath to havelib, it is used
39697 * modules/havelib (Files): Add config.rpath.
39699 2005-10-05 Simon Josefsson <jas@extundo.com>
39701 * m4/memxor.m4: New file.
39703 2005-10-05 Simon Josefsson <jas@extundo.com>
39705 * lib/memxor.c (memxor): Fix compiler error.
39707 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
39708 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
39710 * lib/memxor.h, lib/memxor.c: New files.
39712 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
39713 we assume all systems have it, suggested by Jim Meyering
39714 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
39715 any systems lack sys/socket.h; mingw32 is known to lack it, but we
39716 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
39719 2005-10-05 Simon Josefsson <jas@extundo.com>
39721 * config/srclist.txt: Add glibc bug 1423 for md5.h.
39723 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
39725 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
39726 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
39727 needed, since the source code now assumes these .h files.
39729 2005-10-05 Derek Price <derek@ximbiot.com>
39731 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
39733 2005-10-05 Bruno Haible <bruno@clisp.org>
39735 * modules/stdint (License): Change to LGPL.
39737 2005-10-04 Simon Josefsson <jas@extundo.com>
39739 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
39740 D. Baushke" <mdb@gnu.org>.
39742 2005-10-04 Bruno Haible <bruno@clisp.org>
39744 * lib/verify.h (verify_true): Provide alternative definition for C++.
39746 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
39748 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
39749 (SSIZE_MAX): New macro, if not already defined.
39750 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
39753 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
39755 Sync from coreutils.
39756 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
39757 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
39758 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
39759 ULLONG_MAX doesn't work with 2.7.2.1.
39761 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
39763 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
39766 * modules/exclude (Depends-on): Depend on verify.
39767 * modules/strtoimax (Depends-on): Likewise.
39768 * modules/utimecmp (Depends-on): Likewise.
39770 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
39772 * lib/exclude.c: Include verify.h.
39773 (verify): Remove. All callers changed to use verify.h's version.
39774 * lib/strtoimax.c: Likewise.
39775 * lib/utimecmp.c: Likewis.e
39777 Sync from coreutils.
39778 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
39779 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
39780 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
39781 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
39782 bother returning ENOSYS if settimeofday or stime fails; just let
39783 them return whatever errno they want to return.
39784 * lib/utimens.c: Include unistd.h, for dup2.
39785 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
39786 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
39788 2005-10-02 Jim Meyering <jim@meyering.net>
39790 Sync from coreutils.
39791 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
39792 from glibc-2.2.5 that fails for read-only files.
39794 2005-10-02 Jim Meyering <jim@meyering.net>
39796 Sync from coreutils.
39797 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
39798 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
39799 `#if HAVE_CONFIG_H'.
39800 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
39801 Remove AT_FDCWD test.
39802 Do not consume the fd unless successful.
39803 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
39804 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
39805 block, so that we don't even try to compile it if settimeofday is
39806 available. This works around a compilation failure on OSF1 V5.1,
39807 due to stime requiring a `long int*' while tv_sec is `int'.
39809 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
39811 Sync from coreutils.
39812 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
39813 against `yes', rather than just testing for nonempty.
39815 2005-10-01 Simon Josefsson <jas@extundo.com>
39817 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
39820 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
39821 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
39822 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
39823 freeaddrinfo and gai_strerror are declared by the POSIX headers.
39824 Check if struct addrinfo is declared.
39826 2005-10-01 Simon Josefsson <jas@extundo.com>
39828 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
39829 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
39830 AI_* and EAI_* definitions. Protect function declarations.
39832 2005-10-01 Jim Meyering <jim@meyering.net>
39834 Sync from coreutils.
39836 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
39837 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
39838 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
39839 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
39840 in the inet and nsl libraries. Required on Solaris 5.7.
39842 2005-10-01 Jim Meyering <jim@meyering.net>
39844 Sync from coreutils.
39845 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
39846 in the inet and nsl libraries. Required on Solaris 5.7.
39848 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
39850 * lib/getdelim.c (getdelim): Remove unused variables.
39852 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
39854 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
39855 so that the code works even with ancient cpp. Portability problem
39856 with GCC 2.7.2.1 reported by Thomas M.Ott.
39858 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
39860 * modules/regex (Depends-on): Add strcase.
39862 * modules/gethostname (Licence): Change from GPL to LGPL, since
39863 gethostname.c is a trivial implementation of a standard library
39865 * modules/poll (License): Change from GPL to LGPL, since it's
39866 derived from LGPL code.
39868 2005-09-27 Jim Meyering <jim@meyering.net>
39870 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
39873 * lib/intprops.h (signed_type_or_expr__): Define.
39874 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
39875 for unsigned types.
39877 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
39879 * lib/verify.h (verify_expr): Remove, replacing with:
39880 (verify_true): New macro that returns true instead of void.
39881 (verify_type__): Remove.
39882 (verify): Use verify_true rather than verify_type__.
39884 2005-09-26 Bruno Haible <bruno@clisp.org>
39886 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
39888 (lib_SOURCES): Remove mbchar.c.
39889 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
39890 (Files): Add m4/mbrtowc.m4.
39891 * modules/mbiter: Likewise.
39892 * modules/mbuiter: Likewise.
39894 2005-09-26 Bruno Haible <bruno@clisp.org>
39896 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
39897 compile mbchar.c if they are not both present.
39898 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
39899 * m4/mbiter.m4 (gl_MBITER): Likewise.
39900 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
39901 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
39902 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
39904 2005-09-25 Jim Meyering <jim@meyering.net>
39906 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
39907 also uses socklen_t.
39909 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
39911 * lib/utimens.c (ENOSYS): Define if not already defined.
39912 (futimens): Support having a null PATH if the file descriptor
39915 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
39917 (__attribute): Define to empty unless GCC 3.1 or later.
39918 This works around a core dump on OpenBSD 3.4, which has GCC
39919 2.95.3, which dumps core when given __attribute__(()). It also
39920 simplifies other tests, since we really don't want to bother with
39921 worrying about which ancient version of GCC supported what.
39922 Original problem reported by Yoann Vandoorselaere, with part of
39923 the fix suggested by Derek Price.
39925 2005-09-24 Jim Meyering <jim@meyering.net>
39927 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
39928 so we can once again use a positive bitfield width of 1 -- now we
39929 don't have to explain why we were using a bitfield width of 2.
39931 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
39933 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
39934 and similarly for the other external symbols. Problem reported
39937 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
39938 bug reported by Jim Meyering.
39940 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
39941 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
39942 not needed, since socklen is a prerequisite module.
39944 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
39946 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
39947 Problem reported by Eric Blake.
39948 (getaddrinfo): Initialize se so that it's not garbage.
39949 Redo internal storage allocation so that it doesn't make unportable
39950 assumptions about alignment.
39953 * lib/utimens.c (futimens): Use futimesat if available.
39954 Prefer it to futimes since it doesn't have the futimes bug.
39956 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
39957 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
39958 Instead, declare a function that returns a pointer to an array,
39959 and use verify_type__ to declare the size of the array.
39960 Problem and germ of a solution reported by Bruno Haible.
39961 (verify_type__): Use 2, not 1, for bitfield size, to avoid
39962 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
39964 2005-09-23 Jim Meyering <jim@meyering.net>
39966 Sync from coreutils.
39967 Correct build failure (socklen_t not defined) on at least
39968 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
39969 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
39971 2005-09-23 Jim Meyering <jim@meyering.net>
39973 * modules/getaddrinfo (Depends-on): Add socklen.
39975 2005-09-23 Bruno Haible <bruno@clisp.org>
39977 * tests/test-verify.c: New file.
39979 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
39981 Sync from coreutils.
39983 * modules/argmatch (Depends-on): Add verify.
39984 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
39986 * modules/save-cwd (Depends-on): Likewise.
39988 * modules/openat (Files): Add lib/openat-die.c.
39989 (Depends-on): Remove error, exitfail.
39992 * modules/verify: New file.
39993 * MODULES.html.sh (Diagnostics <assert.h>): New section,
39994 with "verify" module.
39996 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
39998 Sync from coreutils.
40000 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
40001 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
40002 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
40003 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
40004 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
40005 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
40006 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
40007 Don't bother checking for string.h, stdlib.h, unistd.h.
40008 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
40009 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
40011 * m4/jm-macros.m4 (gl_MACROS): Likewise.
40012 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
40014 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
40015 (gl_GETDATE): Use it.
40017 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
40019 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
40021 Sync from coreutils.
40023 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
40025 * lib/argmatch.h: Include verify.h
40026 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
40027 (ARGMATCH_ASSERT): Remove; unused.
40028 * lib/canonicalize.c: Assume STDC_HEADERS.
40029 * lib/exclude.c: Include "strcase.h".
40030 * lib/regex_internal.h [!defined _LIBC]: Likewise.
40031 * lib/getusershell.c: Include stdio--.h rather than stdio.h
40033 (getusershell): Call fopen, not fopen_safer.
40034 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
40035 Do not include unistd-safer.h.
40036 (save_cwd): Don't call fd_safer; no longer needed
40037 now that we include fcntl--.h.
40039 * lib/getdate.y (relative_time): New type.
40040 (RELATIVE_TIME_0): New constant.
40041 (parser_control): Use relative_time instead of doing it ourselves.
40042 (%union): Add new relative_time rel member.
40043 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
40045 (relunit, relunit_snumber): Now of type rel.
40046 (zone, rel, relunit, get_date): Adjust to above changes.
40048 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
40049 Do not include unistd-safer.h.
40050 (getloadavg): Don't call fd_safer; no longer needed
40051 now that we include fcntl--.h.
40053 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
40054 (make_dir_parents): Treat ENOSYS like EEXIST.
40056 Improve quality of diagnostics on restore_cwd failure.
40057 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
40058 (make_dir_parents): Last arg is now int * (for errno), not bool *.
40059 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
40060 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
40061 each time through the loop. Do not diagnose restore_cwd failure;
40062 that is the caller's job (and perhaps the caller does not care).
40064 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
40065 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
40066 If the file already exists but is not a directory, don't bother
40067 to try to make its parents.
40068 Close potential file descriptor leak if we can't chdir("/") (!).
40069 Don't always return true if chdir($PWD) fails; return true only
40070 if the requested action was done successfully (except for the
40072 Don't log final directory unless we actually made it.
40073 Refactor to avoid duplicate code to fix up permissions.
40074 Don't attempt to fix up parent permissions if chdir($PWD) fails.
40076 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
40077 to make it a bit faster and (I hope) clearer.
40078 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
40079 Fix bug in formats like %2N.
40081 * lib/verify.h: New file.
40083 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
40085 Sync from coreutils.
40086 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
40088 2005-09-22 Jim Meyering <jim@meyering.net>
40090 Sync from coreutils.
40092 * m4/lstat.m4 (gl_FUNC_LSTAT):
40093 Use AC_LIBSOURCES to require lstat.c and lstat.h.
40094 Remove obsolete comment.
40095 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
40096 * m4/xstrtod.m4: Likewise.
40098 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
40100 2005-09-22 Jim Meyering <jim@meyering.net>
40102 Sync from coreutils.
40104 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
40106 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
40107 the .tm_year member, since otherwise gcc-4.0 would now warn about
40108 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
40110 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
40111 order to avoid an unsuppressible warning from gcc on 64-bit systems.
40113 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
40114 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
40115 when run in a time zone for which daylight savings time is in effect
40116 for the starting date.
40118 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
40119 stop us from restricting permissions of just-created absolute-named
40121 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
40122 to restore initial working directory.
40123 * lib/mkdir-p.c (make_dir_parents): New parameter:
40124 different_working_dir, to tell caller if/when we change the working
40125 directory and are unable to return to the initial one.
40126 * lib/mkdir-p.h (make_dir_parents): Update prototype.
40127 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
40128 `return false'. This fixes a bug introduced on 2004-07-30.
40130 * lib/openat.c (fdopendir): Be sure to close the supplied
40131 file descriptor before returning. This makes our replacement
40132 implementation a little closer to Solaris's, where fdopendir
40133 ties the file descriptor to the returned DIR* pointer.
40134 * lib/openat.c (unlinkat): New function.
40135 * lib/openat.h (unlinkat): Add prototype.
40136 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
40137 (openat_restore_fail): Rename from openat_restore_die.
40138 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
40140 Provide an alternative to exiting immediately upon save_cwd or
40141 restore_cwd failure. Now, an application can arrange e.g.,
40142 to perform a longjump in that case.
40143 * lib/openat.c: Include dirname.h.
40144 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
40145 (rpl_openat, fdopendir, fstatat): Call openat_save_die
40146 and openat_restore_die rather than calling error directly.
40147 Don't include "error.h" or "exitfail.h"; they're no longer needed.
40149 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
40150 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
40153 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
40154 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
40155 int utc, int nanoseconds);
40157 date should not have to allocate a megabyte of virtual memory to
40158 handle a format argument like +%1048575T. When implemented with
40159 strftime, it must allocate such a buffer, use strftime to fill it
40160 in, print it, then free it.
40161 With fprintftime, it simply prints everything and exits.
40162 With no need for memory allocation, that's one fewer way to fail.
40163 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
40164 optional field width, not before, so we accept %9:z, not %:9z.
40165 (my_strftime): Be sure to use L_('x') for literals.
40167 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
40168 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
40169 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
40170 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
40171 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
40172 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
40173 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
40174 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
40175 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
40176 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
40177 * lib/xgethostname.c, lib/xreadlink.c:
40178 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
40180 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
40181 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
40182 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
40183 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40184 and don't include <sys/file.h>).
40186 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
40188 Sync from coreutils.
40190 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
40191 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
40192 [!LDAV_DONE]: Avoid unused variable warning.
40194 2005-09-21 Bruno Haible <bruno@clisp.org>
40196 * lib/unicodeio.h (unicode_to_mb): New declaration.
40198 2005-09-20 Derek Price <derek@ximbiot.com>
40200 * lib/getaddrinfo.c: Don't include <netdb.h> included from
40203 2005-09-20 Bruno Haible <bruno@clisp.org>
40205 * gnulib-tool: Remove trailing slashes from the values specified for
40206 --source-base, --m4-base, --tests-base, --aux-dir.
40207 Suggested by Simon Josefsson <jas@extundo.com>.
40209 2005-09-20 Bruno Haible <bruno@clisp.org>
40211 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
40212 func_modules_to_filelist, func_import, func_create_testdir): Make all
40213 sorting results locale-independent, so that gnulib-cache.m4 doesn't
40214 change when gnulib-tool is invoked in a different locale.
40216 2005-09-19 Simon Josefsson <jas@extundo.com>
40218 * m4/socklen.m4: Fix typo.
40220 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40222 Use a consistent style for including <config.h>.
40223 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
40224 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
40225 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
40226 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
40227 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
40228 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
40229 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
40230 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
40231 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
40232 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
40233 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
40234 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
40235 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
40236 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
40237 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
40238 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
40239 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
40240 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
40241 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
40242 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
40243 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
40244 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
40245 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
40246 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
40247 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
40248 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
40249 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
40250 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
40251 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
40252 lib/xstrtoumax.c, lib/yesno.c:
40253 Standardize inclusion of config.h.
40254 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
40255 lib/inttostr.h: Removed inclusion of config.h from header files.
40256 * lib/inttostr.c: Adjusted in-tree users.
40257 * lib/timespec.h: Remove superfluous warning to include config.h.
40258 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
40259 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
40260 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
40261 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
40262 config.h with HAVE_CONFIG_H.
40264 2005-09-19 Jim Meyering <jim@meyering.net>
40266 * modules/pathmax (License): Change to LGPL.
40268 2005-09-19 Derek Price <derek@ximbiot.com>
40270 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
40272 2005-09-19 Bruno Haible <bruno@clisp.org>
40274 * gnulib-tool (import): Provide default for --tests-base.
40276 2005-09-19 Bruno Haible <bruno@clisp.org>
40278 * doc/quote.texi: New file, extracted from gnulib.texi.
40279 * doc/ctime.texi: New file, extracted from gnulib.texi.
40280 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
40281 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
40282 * doc/gnulib.texi: Include them.
40284 2005-09-18 Bruno Haible <bruno@clisp.org>
40287 * gnulib-tool (func_readlink): New function.
40288 (func_ln_if_changed): Use it.
40290 2005-09-18 Bruno Haible <bruno@clisp.org>
40292 * gnulib-tool: Support --with-tests also with --import.
40293 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
40294 (func_import): Use variables $testsbase and $inctests. Emit a
40295 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
40296 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
40297 SUBDIRS += $testsdir.
40298 (func_create_testdir): Update.
40300 2005-09-18 Bruno Haible <bruno@clisp.org>
40302 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
40303 instead of $dry_run.
40304 (func_cp_if_changed, func_mv_if_changed): Remove functions.
40305 (func_ln_if_changed): Don't handle dry-run here.
40306 (func_import): In dry-run mode, detect more precisely which actions
40307 would be performed, and don't use "...ing" verbs.
40309 2005-09-18 Bruno Haible <bruno@clisp.org>
40311 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
40312 (func_import): Use join on two temporary files instead of three nested
40313 loops, in order to determine which files are new or old.
40315 2005-09-18 Bruno Haible <bruno@clisp.org>
40317 * gnulib-tool (func_import): Comment out code that spits out the
40318 new files with --dry-run.
40320 2005-09-18 Bruno Haible <bruno@clisp.org>
40322 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
40324 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40326 * lib/stat-time.h: New file.
40327 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
40328 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
40329 in a different way.
40330 (timespec_cmp): New function.
40331 * lib/utimecmp.c: Include stat-time.h.
40332 (SYSCALL_RESOLUTION): Depend on whether various struct stat
40333 members exist, not on the obsolescent ST_MTIM_NSEC.
40334 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
40336 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40338 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
40340 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40342 * MODULES.html.sh (File system functions): Add stat-time.
40343 * modules/stat-time: New file.
40344 * modules/timespec (Files): Remove m4/st_mtim.m4; this
40345 is now done in a different way, by the stat-time module.
40346 * modules/utimecmp (Depends-on): Add stat-time.
40348 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
40350 * m4/st_mtim.m4: Remove. Superseded by...
40351 * m4/stat-time.m4: New file.
40352 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
40353 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
40355 2005-09-15 Derek Price <derek@ximbiot.com>
40357 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
40359 2005-09-15 Derek Price <derek@ximbiot.com>
40361 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
40362 * lib/regex_internal.c: Ditto, using this...
40363 (__GNUC_PREREQ): ...new macro.
40364 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
40366 (__GNUC_PREREQ): ...this new macro.
40368 * lib/strstr.h: Include string.h. Define strstr as a macro here.
40370 2005-09-15 Derek Price <derek@ximbiot.com>
40371 Paul Eggert <eggert@cs.ucla.edu>
40373 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
40374 changes, consolidating in...
40375 * lib/regex_internal.h: ...this file.
40377 2005-09-13 Jim Meyering <jim@meyering.net>
40379 * lib/canon-host.c: Filter through gnu indent and reword comments
40381 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
40383 2005-09-13 Derek Price <derek@ximbiot.com>
40385 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
40387 Reported by Jim Meyering <jim@meyering.net>.
40389 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
40391 * lib/base64.c: Typo.
40392 (base64_encode): Put b64str in initialized data section.
40394 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
40396 Merge glibc and coreutils changes into gnulib, plus a few
40398 * lib/md5.c: Use #error rather than a string.
40399 (CYCLIC): New macro, from glibc source. Use it instead of rol.
40400 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
40401 (__attribute__): Define to empty for non recent-GCC.
40402 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
40403 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
40404 Renamed from their non-__ counterparts, with new macros replacing
40405 them if not _LIBC. Add __THROW attribute.
40407 (struct md5_ctx): Align buffer if using GCC.
40408 * lib/sha1.h (struct sha1_ctx): Likewise.
40409 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
40410 The old name was backwards.
40411 (NOTSWAP): Remove; not used.
40412 (rol): New macro, moved here from md5.h.
40413 (sha1_process_block): Remove a FIXME that doesn't make sense.
40415 2005-09-12 Derek Price <derek@ximbiot.com>
40417 Return usable errors from canon-host.
40418 * lib/canon-host.h: New file.
40419 * lib/canon-host.c (canon_host): Wrap...
40420 (canon_host_r): ...this new function, which now relies exclusively on
40422 (ch_strerror): New function.
40423 (last_cherror): New global.
40424 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
40426 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
40428 (freeaddrinfo): Free ai->ai_canonname when set.
40430 2005-09-12 Derek Price <derek@ximbiot.com>
40432 Make canon-host require getaddrinfo.
40433 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
40434 AC_LIBSOURCE canon-host.h. Call...
40435 (gl_PREREQ_CANON_HOST): ...this new function, which requires
40437 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
40439 2005-09-12 Derek Price <derek@ximbiot.com>
40441 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
40443 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
40445 2005-09-12 Derek Price <derek@ximbiot.com>
40447 * lib/gai_strerror.c: Include config.h when available. Include
40448 getaddrinfo.h before other headers to test interface.
40449 Reported by Larry Jones <lawrence.jones@ugs.com>.
40451 2005-09-12 Derek Price <derek@ximbiot.com>
40452 Paul Eggert <eggert@cs.ucla.edu>
40454 * modules/glob (Files): Add glob-libc.h.
40456 2005-09-12 Derek Price <derek@ximbiot.com>
40457 Paul Eggert <eggert@cs.ucla.edu>
40459 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
40460 glob_.h, glob-libc.h.
40461 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
40463 2005-09-12 Derek Price <derek@ximbiot.com>
40464 Paul Eggert <eggert@cs.ucla.edu>
40466 * lib/glob-libc.h: Renamed from glob_.h. The new version is
40467 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
40468 protecting things that should be done only in gnulib contexts.
40469 * lib/glob_.h: New file, containing only the glob things needed for
40471 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
40472 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
40473 (glob, globfree, glob_pattern_p): Now defined simply in terms of
40474 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
40475 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
40476 and to respect the namespace rules better.
40478 2005-09-08 Simon Josefsson <jas@extundo.com>
40480 * modules/socklen: New file.
40482 2005-09-08 Simon Josefsson <jas@extundo.com>
40484 * m4/socklen.m4: New file.
40486 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40488 * modules/utimens (Files): Add m4/utimbuf.m4, since
40489 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
40490 Reported by Sergey Poznyakoff.
40492 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40494 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
40495 definitions, since that's the preferred style in glibc.
40496 Fix a minor spacing issue, and update copyright notice to match
40499 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40501 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
40503 2005-09-06 Simon Josefsson <jas@extundo.com>
40505 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
40506 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
40508 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
40510 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
40513 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
40515 * config/srclist.txt: Add glibc bug 1302.
40517 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
40519 Change bitset word type from unsigned int to unsigned long int,
40520 as this has better performance on typical 64-bit hosts.
40521 Port bitset code to hosts with unusual word sizes.
40522 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
40523 (build_collating_symbol):
40524 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
40525 argument is a bitset. This is merely a style issue, but it makes
40526 it clearer that an entire array is expected.
40527 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
40528 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
40529 Port to the case where bitset_word is not the same as unsigned int.
40530 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
40531 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
40533 * lib/regexec.c (check_dst_limits_calc_pos_1,
40534 check_subexp_matching_top):
40535 (build_trtable, group_nodes_into_DFAstates):
40537 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
40538 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
40539 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
40540 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
40541 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
40542 * lib/regcomp.c (optimize_subexps, lower_subexp):
40543 Work even if bitset_word has holes in its bitwise representation.
40544 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
40545 * lib/regexec.c (check_dst_limits_calc_pos_1,
40546 check_subexp_matching_top):
40548 * lib/regex_internal.c (re_string_reconstruct):
40549 Don't assume UCHAR_MAX == 255.
40550 * lib/regex_internal.h (bitset_set_all): Likewise.
40551 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
40553 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
40554 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
40556 (BITSET_WORD_MAX): New macro.
40557 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
40558 (bitset_set_all, bitset_copy): Now inline functions, not macros.
40559 (bitset_empty, bitset_copy):
40560 Prefer sizeof (bitset) to multiplying it out ourselves.
40561 (bitset_not_merge): Remove; unused.
40562 (bitset_contain): Return bool, not unsigned int with one bit on.
40563 All callers changed.
40564 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
40565 alignment than re_node_set; do this by defining a new internal
40566 type struct dests_alloc and using it to allocate memory.
40568 2005-09-05 Bruno Haible <bruno@clisp.org>
40570 * gnulib-tool (func_import): Fix comparison in handling of symbolic
40573 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
40575 * modules/size_max (Makefile.am): Add size_max.h
40577 2005-09-04 Derek Price <derek@ximbiot.com>
40579 * gnulib-tool (func_import): Fix reversed $symbolic logic.
40581 2005-09-03 Simon Josefsson <jas@extundo.com>
40583 * gnulib-tool: Fix typo.
40585 2005-09-03 Simon Josefsson <jas@extundo.com>
40587 * config/srclist.txt: Add glibc bug 1293.
40589 2005-09-03 Derek Price <derek@ximbiot.com>
40591 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
40592 From Larry Jones <lawrence.jones@ugs.com>.
40594 2005-09-02 Simon Josefsson <jas@extundo.com>
40596 * modules/socklen: New file.
40598 2005-09-02 Simon Josefsson <jas@extundo.com>
40600 * modules/havelib: New module.
40602 * modules/gettext, modules/iconv, modules/lock, modules/readline:
40605 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
40607 Check for arithmetic overflow when calculating sizes, to prevent
40608 some buffer-overflow issues. These patches are conservative, in the
40609 sense that when I couldn't determine whether an overflow was possible,
40610 I inserted a run-time check.
40611 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
40613 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
40614 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
40615 (re_xnrealloc, re_x2nrealloc): New inline functions.
40616 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
40617 parse_bracket_exp):
40618 (build_equiv_class, build_charclass): Check for arithmetic overflow
40619 in size expression calculations.
40620 * lib/regex_internal.c (re_string_realloc_buffers):
40621 (build_wcs_upper_buffer, re_node_set_add_intersect):
40622 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
40623 (re_dfa_add_node, register_state): Likewise.
40624 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
40625 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
40626 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
40627 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
40629 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
40631 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40632 m4/ulonglong.m4. Problem reported by Martin Lambers.
40634 2005-09-02 Bruno Haible <bruno@clisp.org>
40636 Support for lib vs. lib64 distinction on biarch platforms.
40637 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
40638 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
40639 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
40641 2005-09-02 Bruno Haible <bruno@clisp.org>
40643 * gnulib-tool (import): In the other first-use case, provide defaults
40646 2005-09-02 Bruno Haible <bruno@clisp.org>
40648 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
40649 patches not yet found in the latest gettext release.
40651 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
40653 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
40654 to avoid a collision with bits/local_lim.h in glibc.
40655 All uses changed. Problem reported by Dmitry V. Levin in
40656 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
40658 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
40659 bugs in int versus size_t comparisons.
40660 (re_string_context_at): Fix bug where the code assumed that
40663 Use bool where appropriate.
40664 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
40665 All callers changed.
40666 (calc_eclosure_iter): Likewise, for ROOT arg.
40667 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
40668 (build_charclass_op): Likewise, for NON_MATCH arg.
40669 * lib/regex_internal.c (re_string_allocate, re_string_construct):
40670 (re_string_construct_common): Likewise, for ICASE arg.
40671 * lib/regexec.c (re_search_2_stub, re_search_stub):
40672 Likewise, for RET_LEN arg.
40673 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
40674 (set_regs): Likewise, for FL_BACKTRACK arg.
40675 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
40676 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
40677 (calc_eclosure_iter, parse_bracket_exp):
40678 Use bool for internal variables that are booleans.
40679 * lib/regexec.c (re_search_internal, check_matching,
40680 proceed_next_node):
40681 (set_regs, build_sifted_states, sift_states_bkref):
40682 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
40683 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
40684 (find_collation_sequence_value):
40686 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
40687 (re_node_set_compare):
40688 Return bool, not int. All callers changed.
40689 * lib/regexec.c (check_halt_node_context, check_dst_limits):
40690 (build_trtable, check_node_accept): Likewise.
40691 * lib/regex_internal.h: Include stdbool.h.
40693 Fix bugs uncovered when converting to bool.
40694 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
40695 failure instead of charging ahead blindly.
40696 * lib/regex_internal.c (register_state): Likewise.
40697 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
40698 for freeing internal storage.
40699 (group_nodes_into_DFA_states): Use unsigned int, not int, for
40700 bitset pieces used as boolean, to avoid undefined behavior
40701 on hosts that do int overflow checking.
40703 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
40705 * config/srclist.txt: Add glibc bugs 1285-1287.
40707 2005-09-01 Jim Meyering <jim@meyering.net>
40709 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
40710 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
40711 Require gl_STAT_MACROS, too.
40713 2005-09-01 Bruno Haible <bruno@clisp.org>
40715 * gnulib-tool (import): In the first-use case, provide defaults.
40717 2005-09-01 Bruno Haible <bruno@clisp.org>
40719 * gnulib-tool (func_import): Remove the .tmp files.
40721 2005-09-01 Bruno Haible <bruno@clisp.org>
40723 * gnulib-tool (func_import): Fix handling of symbolic links.
40725 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40727 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
40728 old glibc regex code mishandles strings longer than 2**31 bytes.
40729 This patch fixes this when the regex code is used in gnulib
40730 (i.e., outside glibc).
40732 This patch should not affect the use of the regex code inside
40733 glibc. No doubt this problem also needs to be handled for glibc
40734 as well, but the result will be an incompatible change to the
40735 glibc ABI, and the old ABI will have to be supported too. That
40736 can be the the subject for another patch.
40738 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
40739 governing whether the rest of this patch is active. By default,
40740 the macro is disabled and the patch has no effect.
40741 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
40742 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
40743 (struct re_pattern_buffer, re_search, re_search_2, re_match):
40744 (re_match_2, re_set_registers): Use the new types.
40745 * lib/regex_internal.h (Idx, re_hashval_t): New types.
40746 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
40748 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
40749 (re_string_context_at, bin_tree_t, re_dfastate_t):
40750 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
40751 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
40752 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
40753 (re_string_char_size_at, re_string_wchar_at):
40754 (re_string_elem_size_at):
40755 Use the new types and macros to port to 64-bit hosts.
40756 Use unsigned types for internal values, so that the code
40757 mostly works even for arrays larger than SSIZE_MAX.
40758 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
40759 (search_duplicated_node, calc_eclosure_iter, fetch_number):
40760 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40761 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
40762 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
40763 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
40764 (calc_inveclosure, parse_dup_op, build_range_exp):
40765 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
40766 (fetch_number, create_token_tree, mark_opt_subexp):
40768 * lib/regex_internal.c (re_string_construct_common,
40769 create_ci_newstate):
40770 (create_cd_newstate, re_string_allocate, re_string_construct):
40771 (re_string_realloc_buffers, build_wcs_upper_buffer):
40772 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
40773 (re_string_reconstruct, re_string_peek_byte_case):
40774 (re_string_fetch_byte_case, re_string_context_at):
40775 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
40776 (re_node_set_init_copy, re_node_set_add_intersect):
40777 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40778 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40779 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
40780 (re_acquire_state, re_acquire_state_context, register_state):
40782 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
40783 search_cur_bkref_entry):
40784 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
40785 (re_search_internal, re_search_2_stub, re_search_stub)
40786 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
40787 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
40788 (update_cur_sifted_state, check_dst_limits):
40789 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
40790 (check_subexp_limits, sift_states_bkref, merge_state_array):
40791 (check_subexp_matching_top, get_subexp, get_subexp_sub):
40792 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
40793 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
40794 (expand_bkref_cache, check_node_accept_bytes):
40795 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
40796 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
40797 (acquire_init_state_context, check_halt_node_context):
40798 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
40799 (sift_states_backward, clean_state_log_if_needed):
40800 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
40801 (find_recover_state, transit_state_sb, transit_state_mb):
40802 (transit_state_bkref, build_trtable, match_ctx_clean):
40804 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
40805 to work around an assumption that REG_MISSING is negative.
40807 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
40808 (seek_collating_symbol_entry) [defined _LIBC]:
40809 (lookup_collation_sequence_value) [defined _LIBC]:
40810 (build_range_exp, build_collating_symbol) [defined _LIBC]:
40811 Use prototypes rather than old-style function definitions.
40812 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
40813 (transit_state_sb) [0]:
40814 (find_collation_sequence_value) [defined _LIBC]: Likewise.
40816 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
40819 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
40820 (optimize_subexps, lower_subexp):
40821 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
40822 since the signed shift might overflow. Use 1u<<31 instead.
40823 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
40825 * lib/regexec.c (check_dst_limits_calc_pos_1,
40826 check_subexp_matching_top): Likewise.
40828 * lib/regcomp.c (optimize_subexps, lower_subexp):
40829 Use CHAR_BIT rather than 8, for clarity.
40830 * lib/regexec.c (check_dst_limits_calc_pos_1):
40831 (check_subexp_matching_top): Likewise.
40832 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
40833 have to worry about portability issues when shifting it left.
40834 Remove no-longer-needed test for table_size > 0.
40835 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
40836 in a word, as the resulting behavior is undefined.
40837 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
40838 in one case, a <= should have been an <, and in another case the
40839 whole test was missing.
40840 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
40841 the standard name CHAR_BIT.
40842 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
40843 this is not true on one's complement and signed-magnitude hosts.
40845 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
40847 (struct re_dfa_t): Remove unused member states_alloc.
40848 * lib/regcomp.c (init_dfa): Don't initialize unused members.
40850 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40852 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
40853 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
40854 and large-file glibc and in 32-bit large-file Solaris.
40856 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40858 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
40859 lengths fit in regoff_t; this isn't true if regoff_t is the same
40861 * lib/regex.c (re_search_internal): 5th arg is LAST_START
40862 (= START + RANGE) instead of RANGE. This avoids overflow
40863 problems when regoff_t is the same width as size_t.
40864 All callers changed.
40865 (re_search_2_stub): Check for overflow when adding the
40866 sizes of the two strings.
40867 (re_search_stub): Check for overflow when adding START
40868 to RANGE; if it occurs, substitute the extreme value.
40870 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40872 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
40874 2005-08-31 Jim Meyering <jim@meyering.net>
40876 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
40877 a pointer-to-const.
40878 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
40879 (register_state): Likewise.
40880 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
40881 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
40882 (group_nodes_into_DFAstates): Likewise.
40884 2005-08-31 Jim Meyering <jim@meyering.net>
40886 * check-module: Add a FIXME comment.
40888 2005-08-31 Eric Blake <ebb9@byu.net>
40890 * modules/unistd-safer (Files): Add unistd--.h.
40891 * modules/stdio-safer (Files): Add stdio--.h.
40893 2005-08-31 Derek Price <derek@ximbiot.com>
40895 * lib/getdelim.c (getdelim): Return EOF on EOF.
40896 Reported by Larry Jones <lawrence.jones@ugs.com>.
40898 2005-08-31 Bruno Haible <bruno@clisp.org>
40900 Avoid unnecessary diffs in the generated lib/Makefile.am.
40901 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
40902 the generated files.
40903 (func_import): Don't set cmd.
40905 2005-08-31 Bruno Haible <bruno@clisp.org>
40907 * lib/strstr.c: Include <stddef.h>, for NULL.
40908 * lib/strcasestr.c: Likewise.
40909 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40911 2005-08-31 Bruno Haible <bruno@clisp.org>
40913 * gnulib-tool: New option --macro-prefix.
40914 (func_import): Use macro_prefix.
40915 (import): Handle option --macro-prefix.
40917 2005-08-31 Bruno Haible <bruno@clisp.org>
40919 * gnulib-tool (import): Rename most ac_* variables to cached_*.
40920 Also use new variables cached_lgpl, cached_libtool.
40922 2005-08-31 Bruno Haible <bruno@clisp.org>
40924 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
40925 always instantiating them.
40927 2005-08-31 Bruno Haible <bruno@clisp.org>
40929 * gnulib-tool (func_import): Read the previous cached settings
40930 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
40931 earlier added by gnulib but are now dropped. Warn when a gnulib file
40932 overwrites a non-gnulib file.
40934 2005-08-31 Bruno Haible <bruno@clisp.org>
40936 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
40937 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
40938 projects that don't keep autogenerated files in CVS. Put into
40939 actioncmd only the specified modules, not the transitive closure.
40941 2005-08-31 Bruno Haible <bruno@clisp.org>
40943 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
40944 Create directories that shall be filled.
40945 (import): Don't look for gl_* macros in configure.ac. Recurse across
40946 all directories containing a gnulib-cache.m4 files, if meaningful.
40948 2005-08-31 Bruno Haible <bruno@clisp.org>
40950 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
40951 (import): Set seen_libtool when we see gl_LIBTOOL.
40953 2005-08-31 Bruno Haible <bruno@clisp.org>
40955 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
40956 declaration macro definitions from generated gnulib.m4.
40958 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
40960 * lib/iconvme.h: Add prototype for iconv_alloc.
40962 2005-08-29 Simon Josefsson <jas@extundo.com>
40964 * lib/iconvme.c: Fix errno.
40966 2005-08-29 Bruno Haible <bruno@clisp.org>
40968 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
40969 that it works when the directory contains spaces.
40971 2005-08-29 Bruno Haible <bruno@clisp.org>
40973 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
40975 2005-08-29 Bruno Haible <bruno@clisp.org>
40977 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
40980 2005-08-29 Bruno Haible <bruno@clisp.org>
40981 and Stepan Kasal <kasal@ucw.cz>
40983 * check-module: If more parameters are given, check each of them
40984 separately; add more exceptions, as noted by Jim Meyering.
40985 (check_module): New procedure.
40986 (%exempt_header): Now contains all exceptions.
40988 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
40990 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
40992 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
40994 * lib/iconvme.c: Split iconv_string into iconv_alloc.
40996 2005-08-28 Bruno Haible <bruno@clisp.org>
40998 * m4/gnulib-tool.m4: New file.
41000 2005-08-27 Jim Meyering <jim@meyering.net>
41002 * modules/unistd-safer (Files): Add pipe-safer.c.
41003 * modules/fcntl-safer (Files): Add creat-safer.c.
41005 2005-08-27 Jim Meyering <jim@meyering.net>
41007 * m4/stdlib-safer.m4: New file. From coreutils.
41008 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
41009 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
41010 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
41011 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
41012 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
41014 2005-08-27 Jim Meyering <jim@meyering.net>
41016 * lib/fopen-safer.c: Merge minor changes from coreutils.
41017 * lib/dup-safer.c: Likewise.
41018 * lib/fd-safer.c: Likewise.
41020 Merge from coreutils.
41021 * lib/stdio--.h: New file.
41022 * lib/stdlib--.h: New file.
41023 * lib/mkstemp-safer.c: New file.
41025 GNU tar needs these.
41026 * lib/pipe-safer.c: New file.
41027 * lib/creat-safer.c: New file.
41028 * lib/fcntl--.h (creat): Define to creat_safer.
41029 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
41030 * lib/unistd--.h (pipe): Define to pipe_safer.
41031 * lib/unistd-safer.h: Declare pipe_safer.
41033 2005-08-26 Simon Josefsson <jas@extundo.com>
41035 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
41036 Haible <bruno@clisp.org>.
41038 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
41040 * lib/regex_internal.h: Remove all references to
41041 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
41043 (bitset_not, bitset_merge, bitset_not_merge):
41044 (bitset_mask, re_string_allocate, re_string_construct):
41045 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
41046 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
41047 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
41048 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
41049 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41050 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41051 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
41052 (re_acquire_state_context):
41053 Remove unnecessary forward decls.
41054 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
41055 Put __attribute at function definition,
41056 now that the function decl has been removed.
41057 * lib/regex_internal.c (re_string_peek_byte_case):
41058 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
41061 2005-08-25 Stepan Kasal <kasal@ucw.cz>
41063 * m4/regex.m4: Add AC_PREREQ(2.50).
41064 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
41066 2005-08-25 Simon Josefsson <jas@extundo.com>
41068 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
41071 2005-08-25 Simon Josefsson <jas@extundo.com>
41073 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
41074 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
41075 GLIBC specific code.
41077 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41079 Make regex safe for g++. This fixes one real bug (an "err"
41080 that should have been "*err"). g++ problem reported by
41082 * lib/regex_internal.h (re_calloc): New macro, consistent with
41083 re_malloc etc. All callers of calloc changed to use re_calloc.
41084 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
41085 not int. All callers changed.
41086 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
41087 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
41088 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
41089 (find_recover_state): Change "err" to "*err"; this fixes what
41090 appears to be a real bug.
41091 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
41094 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41096 * modules/regex (Depends-on): Add malloc, since the code
41097 assumes that !malloc(0) means failure.
41099 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41101 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
41103 alloca modernization/simplification for regex.
41104 * lib/regex.c: Remove portability cruft for alloca. This no longer
41105 needs to be at the start of the file, and can be moved into
41106 regex_internal.h and simplified.
41107 * lib/regex_internal.h: Include <alloca.h>.
41108 (__libc_use_alloca) [!defined _LIBC]: New macro.
41109 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
41110 now works outside glibc.
41112 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41114 * config/srclist.txt: Add glibc bugs 1241, 1245.
41116 2005-08-25 Jim Meyering <jim@meyering.net>
41118 * lib/open-safer.c: Include <config.h>.
41119 Otherwise, we'd lose LARGEFILE support in any file using
41122 2005-08-25 Bruno Haible <bruno@clisp.org>
41124 * m4/minmax.m4: Require autoconf 2.52.
41125 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
41126 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
41127 alternatives of translit over the alphabet.
41128 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
41130 2005-08-24 Simon Josefsson <jas@extundo.com>
41132 * tests/test-getpass.c: New file.
41134 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
41136 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
41137 for GNU regex features.
41139 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
41141 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
41142 * lib/regex.h (regerror): Likewise.
41144 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
41145 requires this. (The code never needed it.)
41147 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
41148 All uses of recently-renamed identifiers changed to use the new,
41149 POSIX-compliant names. The code will build and run just fine
41150 without these changes, but it's better to eat our own dog food
41151 and use the standard-conforming names.
41153 * lib/regex.h: Fix a multitude of POSIX name space violations.
41154 These changes have an effect only for programs that define
41155 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
41156 do not change anything for programs compiled in the normal way.
41157 Also, there is no effect on the ABI.
41159 (_REGEX_SOURCE): New macro.
41160 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
41161 defined and _GNU_SOURCE is not; this fixes a name space violation.
41163 Rename the following macros to obey POSIX requirements.
41164 The old names are still visible as macros if _REGEX_SOURCE is defined.
41165 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
41166 RE_BACKSLASH_ESCAPE_IN_LISTS.
41167 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
41168 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
41169 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
41170 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
41171 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
41172 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
41173 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
41174 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
41175 (REG_INTERVALS): renamed from RE_INTERVALS.
41176 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
41177 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
41178 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
41179 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
41180 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
41181 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
41182 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
41183 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
41184 RE_UNMATCHED_RIGHT_PAREN_ORD.
41185 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
41186 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
41187 (REG_DEBUG): renamed from RE_DEBUG.
41188 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
41189 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
41190 unusual, since we can't clash with the POSIX REG_ICASE.
41191 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
41192 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
41193 (REG_NO_SUB): renamed from RE_NO_SUB.
41194 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
41195 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
41196 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
41197 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
41198 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
41199 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
41200 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
41201 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
41202 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
41203 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
41204 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
41205 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
41206 RE_SYNTAX_POSIX_MINIMAL_BASIC.
41207 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
41208 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
41209 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
41210 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
41211 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
41212 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
41213 (REG_FIXED): Renamed from REGS_FIXED.
41214 (REG_NREGS): Renamed from RE_NREGS.
41216 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
41217 of other REG_* macros, since POSIX says the user is allowed to
41218 #undef these macros selectively.
41220 (reg_errcode_t): Update comment stating what other tables need
41223 Rename the following enum values to obey POSIX requirements.
41224 The old names are still visible as macros.
41225 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
41226 is not defined, since GNU is supposed to be a superset of POSIX as
41227 much as possible, and since we want reg_errcode_t to be a signed
41228 type for implementation consistency.
41229 (_REG_NOERROR): Renamed from REG_NOERROR.
41230 (_REG_NOMATCH): Renamed from REG_NOMATCH.
41231 (_REG_BADPAT): Renamed from REG_BADPAT.
41232 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
41233 (_REG_ECTYPE): Renamed from REG_ECTYPE.
41234 (_REG_EESCAPE): Renamed from REG_EESCAPE.
41235 (_REG_ESUBREG): Renamed from REG_ESUBREG.
41236 (_REG_EBRACK): Renamed from REG_EBRACK.
41237 (_REG_EPAREN): Renamed from REG_EPAREN.
41238 (_REG_EBRACE): Renamed from REG_EBRACE.
41239 (_REG_BADBR): Renamed from REG_BADBR.
41240 (_REG_ERANGE): Renamed from REG_ERANGE.
41241 (_REG_ESPACE): Renamed from REG_ESPACE.
41242 (_REG_BADRPT): Renamed from REG_BADRPT.
41243 (_REG_EEND): Renamed from REG_EEND.
41244 (_REG_ESIZE): Renamed from REG_ESIZE.
41245 (_REG_ERPAREN): Renamed from REG_ERPAREN.
41246 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
41247 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
41248 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
41249 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
41251 (_REG_RE_NAME, _REG_RM_NAME): New macros.
41252 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
41253 changed. But support the old name if the new one is not defined
41254 and if _REGEX_SOURCE.
41256 Change the following member names in struct re_pattern_buffer.
41257 The old names are still supported if !_REGEX_SOURCE.
41258 The new names are always supported, regardless of _REGEX_SOURCE.
41259 (re_buffer): Renamed from buffer.
41260 (re_allocated): Renamed from allocated.
41261 (re_used): Renamed from used.
41262 (re_syntax): Renamed from syntax.
41263 (re_fastmap): Renamed from fastmap.
41264 (re_translate): Renamed from translate.
41265 (re_can_be_null): Renamed from can_be_null.
41266 (re_regs_allocated): Renamed from regs_allocated.
41267 (re_fastmap_accurate): Renamed from fastmap_accurate.
41268 (re_no_sub): Renamed from no_sub.
41269 (re_not_bol): Renamed from not_bol.
41270 (re_not_eol): Renamed from not_eol.
41271 (re_newline_anchor): Renamed from newline_anchor.
41273 Change the following member names in struct re_registers.
41274 The old names are still supported if !_REGEX_SOURCE.
41275 The new names are always supported, regardless of _REGEX_SOURCE.
41276 (rm_num_regs): Renamed from num_regs.
41277 (rm_start): Renamed from start.
41278 (rm_end): Renamed from end.
41280 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
41281 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
41282 Prepend __ to parameter names.
41284 Undo yesterday's changes.
41286 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
41288 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
41289 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
41292 2005-08-24 Jim Meyering <jim@meyering.net>
41294 Sync from coreutils.
41295 * m4/fcntl-safer.m4: New file.
41297 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
41298 and object files for this module.
41300 2005-08-24 Jim Meyering <jim@meyering.net>
41302 Sync from coreutils.
41303 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
41305 2005-08-24 Jim Meyering <jim@meyering.net>
41307 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
41308 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
41310 2005-08-24 Jim Meyering <jim@meyering.net>
41312 * modules/fcntl-safer: New module.
41313 * modules/fts (Depends-on): Add fcntl-safer.
41314 * MODULES.html.sh (File descriptor based Input/Output):
41317 2005-08-24 Bruno Haible <bruno@clisp.org>
41319 Support for unit test modules.
41320 * modules/README: Mention tests modules.
41321 * modules/TEMPLATE-TESTS: New file.
41322 * gnulib-tool: New options --extract-tests-module, --with-tests and
41323 --tests-base (unused for the moment).
41324 (testsbase, inctests): New variables.
41325 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
41326 (func_verify_module): Exclude TEMPLATE-TESTS.
41327 (func_verify_nontests_module, func_verify_tests_module): New functions.
41328 (func_get_dependencies): Add implicit dependency for tests modules.
41329 (func_get_tests_module): New function.
41330 (func_modules_transitive_closure): When --with-tests was specified,
41331 include the unit tests as well, unless explicitly avoided.
41332 (func_emit_lib_Makefile_am): Ignore the tests modules here.
41333 (func_emit_tests_Makefile_am): New function.
41334 (func_create_testdir): When --with-tests was specified, emit a
41336 * MODULES.html.sh (Future developments): Update.
41338 2005-08-24 Bruno Haible <bruno@clisp.org>
41340 * modules/tls-tests: New file.
41341 * tests/test-tls.c: New file, from GNU gettext.
41343 2005-08-24 Bruno Haible <bruno@clisp.org>
41345 * modules/lock-tests: New file.
41346 * tests/test-lock.c: New file, from GNU gettext.
41348 2005-08-24 Bruno Haible <bruno@clisp.org>
41350 * lib/lock.h: Add multiple inclusion guard.
41351 * lib/tls.h: Add multiple inclusion guard.
41353 2005-08-24 Bruno Haible <bruno@clisp.org>
41355 * gnulib-tool: Add support for the --aux-dir option to
41356 --create-testdir, --create-megatestdir, --test, --megatest.
41357 (func_create_testdir, func_create_megatestdir): Optionally emit a
41358 AC_CONFIG_AUX_DIR directive.
41359 (create-testdir, create-megatestdir, test, megatest): Provide a
41360 default value for $auxdir.
41362 2005-08-24 Bruno Haible <bruno@clisp.org>
41364 * gnulib-tool (import): Use compound statement instead of subshell
41367 2005-08-24 Bruno Haible <bruno@clisp.org>
41369 * gnulib-tool (import): Change --aux-dir default to "build-aux".
41371 2005-08-24 Bruno Haible <bruno@clisp.org>
41373 * gnulib-tool (func_version): Update.
41375 2005-08-24 Bruno Haible <bruno@clisp.org>
41377 * gnulib-tool (func_import, func_create_testdir,
41378 func_create_megatestdir): Quote all autoconf macro arguments.
41380 2005-08-24 Bruno Haible <bruno@clisp.org>
41382 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
41383 option --force, because --force causes the aclocal.m4 of each
41384 subdirectory to be newer than the corresponding config.h.in.
41386 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41388 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
41389 All contents moved to gl_REGEX.
41390 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
41391 assume that it does.
41393 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41395 * lib/regex.h (REG_NOSYS)
41396 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
41397 Define, since POSIX requires it as of 2001.
41399 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
41400 New private symbol, used to keep the enum signed in all cases.
41401 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
41403 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
41405 * lib/regex_internal.c (re_string_skip_chars, register_state):
41407 Remove forward decls; no longer needed now that we use prototypes.
41408 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
41409 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
41410 (clean_state_log_if_needed): Likewise.
41412 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41414 * config/srclist.txt: Add glibc bugs 1231-1233.
41416 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41418 Fix problems reported by Sam Steingold in
41419 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
41420 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
41421 assumed that reg_errcode_t is a signed type, which is not
41422 necessarily true if _XOPEN_SOURCE is not defined.
41423 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
41424 since some compilers warn about it otherwise.
41426 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41428 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
41429 (init_word_char, create_initial_state, duplicate_node_closure):
41430 (fetch_token, peek_token_bracket, build_range_exp):
41431 (build_collating_symbol): Remove forward decls; no longer needed
41432 now that we use prototypes.
41435 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
41436 (re_compile_fastmap_iter, regcomp, regerror, regfree):
41437 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
41438 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
41439 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
41440 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
41441 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
41442 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
41443 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
41444 (build_range_exp, build_collating_symbol, parse_bracket_exp):
41445 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
41446 (build_charclass, build_charclass_op, fetch_number, create_tree):
41447 (create_token_tree, mark_opt_subexp, duplicate_tree):
41448 Use prototypes rather than old-style definitions.
41450 * lib/regex_internal.c:
41451 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
41452 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
41453 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41454 (re_string_reconstruct, re_string_peek_byte_case):
41455 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
41456 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41457 (re_node_set_init_copy, re_node_set_add_intersect):
41458 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41459 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41460 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41461 (re_acquire_state, re_acquire_state_context, register_state):
41462 (create_ci_newstate, create_cd_newstate, free_state):
41464 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
41466 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
41467 (re_search_internal, prune_impossible_nodes):
41468 (acquire_init_state_context, check_matching, static):
41469 (check_halt_node_context, check_halt_state_context, proceed_next_node):
41470 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
41471 (update_regs, sift_states_backward, build_sifted_states):
41472 (clean_state_log_if_needed, merge_state_array):
41473 (update_cur_sifted_state, add_epsilon_src_nodes):
41474 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
41475 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
41476 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
41477 (find_recover_state, check_subexp_matching_top, transit_state_mb):
41478 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
41479 (check_arrival, check_arrival_add_next_nodes):
41480 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41481 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41482 (check_node_accept_bytes, check_node_accept, extend_buffers):
41483 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
41484 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
41488 * lib/regex_internal.h:
41489 (re_string_allocate, re_string_construct, re_string_reconstruct):
41490 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
41491 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
41492 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
41493 (re_string_context_at, re_string_peek_byte_case):
41494 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
41495 is defined, since we now use prototypes always.
41497 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
41498 C89 or better. All uses removed.
41500 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41502 * config/srclist.txt: Add glibc bugs 1220-1227.
41504 2005-08-20 Jim Meyering <jim@meyering.net>
41506 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
41507 of unused local, dfa.
41509 2005-08-20 Bruno Haible <bruno@clisp.org>
41511 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
41513 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41515 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
41516 (re_node_set_insert_last, re_dfa_add_node):
41517 Rename local variables to avoid GCC shadowing warnings.
41519 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41521 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
41522 [defined lint]: Suppress bogus uninitialized-variable warnings.
41524 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
41525 and let the caller return REG_ESPACE if out of space. This
41526 removes an uninitialied-variable warning with GCC 4.0.1, and also
41527 avoids taking the address of a local variable. All callers
41530 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41532 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
41533 $LIBCSRC/posix/regexec.c.
41534 Add glibc bug 1217 for regcomp.c.
41536 2005-08-19 Jim Meyering <jim@meyering.net>
41538 * lib/regexec.c (proceed_next_node): Redo local variables to
41539 avoid GCC shadowing warnings.
41541 2005-08-18 Bruno Haible <bruno@clisp.org>
41543 * lib/strstr.c (strstr): Fix return value in multibyte case.
41544 * lib/strcasestr.c (strcasestr): Likewise.
41546 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
41548 * lib/regex.h: Remove useless space-before-tab. From coreutils.
41550 2005-08-17 Jim Meyering <jim@meyering.net>
41552 Make the %s format (seconds since the epoch) work for a negative
41553 number and when used with a zero-padded field width, e.g. %015s.
41555 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
41556 label so that it precedes the code to set `digits'. Otherwise,
41557 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
41558 print `00-22'. Now, it prints `-0022', as it should.
41560 2005-08-17 Bruno Haible <bruno@clisp.org>
41562 * modules/strstr (Files): Add m4/mbrtowc.m4.
41563 (Depends-on): Add mbuiter.
41565 2005-08-17 Bruno Haible <bruno@clisp.org>
41567 * modules/strcasestr: New file.
41568 * MODULES.html.sh (String handling, based on ANSI C 89): Add
41571 2005-08-17 Bruno Haible <bruno@clisp.org>
41573 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
41575 2005-08-17 Bruno Haible <bruno@clisp.org>
41577 * modules/mbuiter: New file.
41578 * MODULES.html.sh (Extended multibyte and wide character utilities):
41581 2005-08-17 Bruno Haible <bruno@clisp.org>
41583 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
41584 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
41586 2005-08-17 Bruno Haible <bruno@clisp.org>
41588 * m4/strcasestr.m4: New file.
41590 2005-08-17 Bruno Haible <bruno@clisp.org>
41592 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
41593 * lib/strstr.c: Completely rewritten, with multibyte locale support.
41595 2005-08-17 Bruno Haible <bruno@clisp.org>
41597 * lib/strcasestr.h: New file.
41598 * lib/strcasestr.c: New file.
41600 2005-08-17 Bruno Haible <bruno@clisp.org>
41602 * lib/strcasecmp.c: Use mbuiter.h.
41604 2005-08-17 Bruno Haible <bruno@clisp.org>
41606 * lib/mbuiter.h: New file.
41608 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
41610 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
41611 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
41612 and gl_GETOPT are both invoked via different paths (as happens
41613 with GNU tar CVS because it uses both argp and getopt), the former
41616 2005-08-16 Bruno Haible <bruno@clisp.org>
41618 * modules/tls: New file.
41619 * MODULES.html.sh (Multithreading): Add tls.
41621 2005-08-16 Bruno Haible <bruno@clisp.org>
41623 * modules/strnlen1: New file.
41624 * MODULES.html.sh (String handling): Add strnlen1.
41626 2005-08-16 Bruno Haible <bruno@clisp.org>
41628 * modules/strcase (Files): Add m4/mbrtowc.m4.
41629 (Depends-on): Add strnlen1, mbchar.
41631 2005-08-16 Bruno Haible <bruno@clisp.org>
41633 * modules/mbiter: New file.
41634 * MODULES.html.sh (Extended multibyte and wide character utilities):
41637 2005-08-16 Bruno Haible <bruno@clisp.org>
41639 * modules/mbfile: New file.
41640 * MODULES.html.sh (Extended multibyte and wide character utilities):
41643 2005-08-16 Bruno Haible <bruno@clisp.org>
41645 * modules/mbchar: New file.
41646 * MODULES.html.sh (Extended multibyte and wide character utilities):
41649 2005-08-16 Bruno Haible <bruno@clisp.org>
41651 * m4/tls.m4: New file, from GNU gettext.
41653 2005-08-16 Bruno Haible <bruno@clisp.org>
41655 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
41657 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
41659 2005-08-16 Bruno Haible <bruno@clisp.org>
41661 * m4/mbiter.m4: New file.
41663 2005-08-16 Bruno Haible <bruno@clisp.org>
41665 * m4/mbfile.m4: New file.
41667 2005-08-16 Bruno Haible <bruno@clisp.org>
41669 * m4/mbchar.m4: New file.
41671 2005-08-16 Bruno Haible <bruno@clisp.org>
41673 * lib/tls.h: New file, from GNU gettext.
41674 * lib/tls.c: New file, from GNU gettext.
41676 2005-08-16 Bruno Haible <bruno@clisp.org>
41678 * lib/strnlen1.h: New file.
41679 * lib/strnlen1.c: New file.
41681 2005-08-16 Bruno Haible <bruno@clisp.org>
41683 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
41684 (mbi_init): Update.
41685 (mbi_avail, mbi_advance): Let the iteration end before the terminating
41686 NUL byte, not after it.
41688 2005-08-16 Bruno Haible <bruno@clisp.org>
41690 * lib/strcase.h (strcasecmp): Add note in comments.
41691 * lib/strncasecmp.c: Use code from strcasecmp.c.
41692 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
41693 (strcasecmp): Work correctly in multibyte locales.
41695 2005-08-16 Bruno Haible <bruno@clisp.org>
41697 * lib/mbiter.h: New file.
41699 2005-08-16 Bruno Haible <bruno@clisp.org>
41701 * lib/mbfile.h: New file.
41703 2005-08-16 Bruno Haible <bruno@clisp.org>
41705 * lib/mbchar.h: New file.
41706 * lib/mbchar.c: New file.
41708 2005-08-16 Bruno Haible <bruno@clisp.org>
41710 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
41711 the valid ones. Makes the comparison operations transitive:
41712 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
41713 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
41715 2005-08-15 Simon Josefsson <jas@extundo.com>
41717 * modules/ssize_t (License): Change to 'unlimited'.
41719 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
41721 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
41723 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
41724 Add comments for each pending glibc patch.
41726 2005-08-15 Bruno Haible <bruno@clisp.org>
41728 * lib/regex.h (__restrict_arr): Don't define to __restrict if
41729 __cplusplus is defined.
41731 2005-08-14 Jim Meyering <jim@meyering.net>
41733 Sync from coreutils.
41735 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
41736 Use the hash-table-based cycle-detection code not just when
41737 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
41738 Reported by James Youngman in
41739 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
41740 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
41741 FTS_TIGHT_CYCLE_CHECK.
41742 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
41743 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
41745 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
41746 * lib/fts.c (fd_safer): Remove decl.
41747 Include fcntl--.h rather than unistd-safer.h
41748 (fts_safe_changedir): Don't call fd_safer; no longer needed
41749 now that we include fcntl--.h.
41751 2005-08-12 Simon Josefsson <jas@extundo.com>
41753 * modules/getndelim2: Use ssize_t module.
41754 * modules/getnline: Likewise.
41755 * modules/safe-read: Likewise.
41756 * modules/xreadlink: Likewise.
41758 * modules/ssize_t: New file.
41760 2005-08-12 Simon Josefsson <jas@extundo.com>
41762 * m4/readline.m4: Look for termcap, curses or ncurses if required.
41764 2005-08-12 Simon Josefsson <jas@extundo.com>
41766 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41769 2005-08-12 Simon Josefsson <jas@extundo.com>
41771 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
41772 readline, getdelim and check_version.
41773 (Support for systems lacking ISO C 99: Sizes of integer types):
41776 2005-08-12 Bruno Haible <bruno@clisp.org>
41778 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
41780 2005-08-11 Simon Josefsson <jas@extundo.com>
41782 * modules/readline: New file.
41784 * modules/strnlen (Files): Add strnlen.h.
41786 2005-08-11 Simon Josefsson <jas@extundo.com>
41788 * m4/readline.m4: New file.
41790 2005-08-11 Simon Josefsson <jas@extundo.com>
41792 * lib/readline.h, readline.c: New file.
41794 2005-08-11 Simon Josefsson <jas@extundo.com>
41796 * doc/gnulib.texi (Initial import, Finishing touches): Mention
41799 2005-08-11 Bruno Haible <bruno@clisp.org>
41801 * lib/strnlen.h (strnlen): Change parameter name to match comment.
41803 2005-08-10 Stepan Kasal <kasal@ucw.cz>
41805 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
41807 2005-08-10 Simon Josefsson <jas@extundo.com>
41809 * tests/test-iconvme.c: New file.
41811 2005-08-10 Simon Josefsson <jas@extundo.com>
41813 * m4/strnlen.m4: New file.
41815 * m4/strndup.m4: Don't check for strnlen declaration, done in
41818 2005-08-10 Simon Josefsson <jas@extundo.com>
41820 * lib/strndup.c: Use strnlen.h.
41822 * lib/strnlen.h: New file.
41824 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
41828 2005-08-02 Simon Josefsson <jas@extundo.com>
41830 * modules/readline: New file.
41832 2005-08-02 Simon Josefsson <jas@extundo.com>
41834 * modules/getdelim: New file.
41836 * modules/getline: Rewrite, don't use getndelim2.
41838 2005-08-02 Simon Josefsson <jas@extundo.com>
41840 * m4/getline.m4: Separate out getdelim stuff into separate module.
41842 * m4/getdelim.m4: New file.
41844 2005-08-02 Simon Josefsson <jas@extundo.com>
41846 * lib/getline.h, getline.c: Rewrite.
41848 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
41850 2005-07-31 Bruno Haible <bruno@clisp.org>
41852 * lib/lock.h (gl_lock_initializer): New macro.
41853 (gl_lock_define_initialized): Use it.
41854 (gl_rwlock_initializer): New macro.
41855 (gl_rwlock_define_initialized): Use it.
41856 (gl_recursive_lock_initializer): New macro.
41857 (gl_recursive_lock_define_initialized): Use it.
41859 2005-07-30 Karl Berry <karl@gnu.org>
41861 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
41862 Report from Ben Pfaff, regarding getopt.
41864 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
41866 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
41868 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
41869 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
41870 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
41871 (gl_GETOPT): Use the new macros. Most of the implementation
41872 is moved to the new macros. This is for programs like Emacs
41873 that don't want all the functionality of gl_GETOPT.
41875 2005-07-26 Bruno Haible <bruno@clisp.org>
41877 * m4/lock.m4: Update from GNU gettext.
41879 2005-07-26 Bruno Haible <bruno@clisp.org>
41881 * lib/lock.h: Update from GNU gettext.
41882 * lib/lock.c: Update from GNU gettext.
41884 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
41886 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
41887 obsolescent AC_TRY_RUN. Include the default includes files, for
41890 2005-07-24 Bruno Haible <bruno@clisp.org>
41892 * modules/visibility: New file.
41893 * MODULES.html.sh (Misc): Add visibility.
41895 2005-07-24 Bruno Haible <bruno@clisp.org>
41897 * m4/visibility.m4: New file.
41899 2005-07-24 Bruno Haible <bruno@clisp.org>
41901 * doc/visibility.texi: New file.
41903 2005-07-22 Bruno Haible <bruno@clisp.org>
41905 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
41906 $(ALLOCA_H), redundant through BUILT_SOURCES.
41907 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
41908 redundant through BUILT_SOURCES.
41909 * modules/byteswap (Makefile.am): Remove explicit dependency on
41910 $(BYTESWAP_H), redundant through BUILT_SOURCES.
41911 * modules/fnmatch (Makefile.am): Remove explicit dependency on
41912 $(FNMATCH_H), redundant through BUILT_SOURCES.
41913 * modules/getopt (Makefile.am): Remove explicit dependency on
41914 $(GETOPT_H), redundant through BUILT_SOURCES.
41915 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
41916 redundant through BUILT_SOURCES.
41917 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
41918 redundant through BUILT_SOURCES.
41919 * modules/stdbool (Makefile.am): Remove explicit dependency on
41920 $(STDBOOL_H), redundant through BUILT_SOURCES.
41921 * modules/stdint (Makefile.am): Remove explicit dependency on
41922 $(STDINT_H), redundant through BUILT_SOURCES.
41923 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
41924 Remove explicit dependency on $(SYSEXITS_H).
41925 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
41927 2005-07-18 Simon Josefsson <jas@extundo.com>
41929 * lib/check-version.c (check_version): Accept identical versions too.
41931 2005-07-18 Bruno Haible <bruno@clisp.org>
41933 * modules/lock: New file.
41934 * MODULES.html.sh (Multithreading): New section.
41936 2005-07-18 Bruno Haible <bruno@clisp.org>
41938 * m4/lock.m4: New file, from GNU gettext.
41940 2005-07-18 Bruno Haible <bruno@clisp.org>
41942 * lib/lock.h: New file, from GNU gettext.
41943 * lib/lock.c: New file, from GNU gettext.
41945 2005-07-18 Bruno Haible <bruno@clisp.org>
41947 * lib/lock.h (gl_once_t): New type.
41948 (gl_once_define, gl_once): New macros.
41949 * lib/lock.c (fresh_once): New variable.
41950 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
41953 2005-07-16 Simon Josefsson <jas@extundo.com>
41955 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
41956 workaround, suggested by Bruno.
41958 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
41960 * modules/xalloc (Depends-on): Add xalloc-die.
41961 * modules/xvasprintf (Depends-on): Add xalloc-die.
41963 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
41965 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
41966 with a minor change.
41968 2005-07-15 Bruno Haible <bruno@clisp.org>
41970 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
41971 When using lib/poll.c, define poll as rpl_poll.
41973 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
41975 * modules/argp (Depends-on): Remove unlocked-io.
41977 2005-07-14 Derek Price <derek@ximbiot.com>
41979 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
41980 for glob symlink bug.
41982 2005-07-14 Bruno Haible <bruno@clisp.org>
41984 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
41985 Instead, test for *_unlocked function declarations directly.
41987 2005-07-11 Simon Josefsson <jas@extundo.com>
41989 * modules/size_max: New file.
41991 * modules/xsize: Depend on size_max module for size_max.m4.
41993 2005-07-11 Simon Josefsson <jas@extundo.com>
41995 * lib/size_max.h: New file.
41997 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
41999 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
42000 copyright symbol and the year.
42001 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
42002 (version_etc_va): Use parameterized copyright notice.
42003 Reword to conform to the current GNU coding standards.
42005 2005-07-11 Karl Berry <karl@gnu.org>
42007 * doc/gnulib.texi (Quoting): new node.
42008 (Initial import): more info, from Patrice.
42010 2005-07-11 Bruno Haible <bruno@clisp.org>
42012 * gnulib-tool (func_usage): Document option --avoid.
42013 (Command line options): Handle --avoid.
42014 (func_acceptable): New function.
42015 (func_modules_transitive_closure): Use it.
42017 2005-07-11 Bruno Haible <bruno@clisp.org>
42019 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
42020 Reported by Jim Meyering.
42022 2005-07-10 Bruno Haible <bruno@clisp.org>
42024 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
42025 Needed when size_t is smaller than 'unsigned int'.
42026 Reported by Paul Eggert.
42028 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
42030 * modules/argp (Depends-on): Add unlocked-io
42032 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
42034 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
42037 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
42039 * config/srclist.txt: Comment out regcomp.c, since we have a porting
42042 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
42043 and Paul Eggert <eggert@cs.ucla.edu>
42045 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
42046 in wint_t, not wchar_t. Remove now-unnecessary cast.
42048 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42050 * modules/regex (Files): Add lib/regex_internal.c,
42051 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
42052 (Depends-on): Add extensions.
42053 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
42055 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42057 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
42059 * m4/same.m4 (gl_SAME): Likewise.
42060 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
42062 * m4/regex.m4: Adjust to new libc regex implementation.
42063 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
42064 all the .c and .h parts of (the new) regex.
42065 Quote the m4 stuff better.
42066 Check for RE_ICASE bug of old gnulib.
42067 Check for REG_STARTEND of recent libc.
42068 Rename local variables from jm_* to gl_*.
42069 Quote operand of "test -f".
42070 Say "recent enough" version of libc, not "version 2".
42071 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
42072 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
42073 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
42074 Remove check for btowc, isascii.
42075 Require AM_LANGINFO_CODESET.
42077 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42079 * lib/regex.c, regex.h: Sync from libc.
42080 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
42082 New files, synced from libc, except that regex_internal.h
42083 currently has a small porting fix.
42085 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42087 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
42088 regex_internal.c, regexec.c.
42089 Add regex_internal.h too, but as a comment, since the libc version
42090 is currently broken in gnulib mode.
42092 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
42094 Support programs like Emacs that use gnulib but not gettext.
42095 * MODULES.html.sh (Internationalization functions): Add gettext-h.
42096 * modules/gettext-h: New file.
42097 * modules/gettext (Files): Remove lib/gettext.h.
42098 (Depends-on): Add gettext-h.
42099 (Makefile.am): Remove lib_SOURCES.
42100 * modules/argmatch, modules/c-stack, modules/closeout:
42101 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
42102 * modules/execute, modules/file-type, modules/getaddrinfo:
42103 * modules/getopt, modules/human, modules/javacomp:
42104 * modules/javaexec, modules/mkdir-p, modules/obstack:
42105 * modules/openat, modules/pagealign_alloc, modules/pipe:
42106 * modules/quotearg, modules/regex, modules/rpmatch:
42107 * modules/unicodeio, modules/userspec, modules/version-etc:
42108 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
42110 Depend on gettext-h, not gettext.
42112 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
42114 * gnulib-tool (func_import): Add support for 'public domain' license.
42115 * modules/alloca, modules/atexit, modules/memmove:
42116 Now public domain, not GPL.
42117 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
42118 * modules/realloc, modules/strerror, modules/strtod:
42121 2005-07-05 Bruno Haible <bruno@clisp.org>
42123 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
42124 autoconf CVS. Needed for mingw.
42126 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
42128 Remove the dependency of the strftime module on the tzset module.
42129 * modules/strftime (Depends-on): Remove dependency on tzset.
42131 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
42133 Remove the dependency of the strftime module on the tzset module.
42134 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
42135 gl_FUNC_TZSET_CLOBBER.
42137 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
42139 Remove the dependency of the strftime module on the tzset module.
42140 * lib/strftime.c (my_strftime)
42141 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
42142 Copy the input structure, to work around some of the bug with
42143 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
42144 Solaris releases, you should also use the tzset module, but we won't
42145 require it as a dependency any more since we don't want LGPLed code
42146 to depend on GPLed code.
42148 2005-07-02 Jim Meyering <jim@meyering.net>
42150 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
42151 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
42152 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
42153 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
42155 2005-07-02 Jim Meyering <jim@meyering.net>
42157 * lib/backupfile.c (backup_args): Change a `0' to NULL.
42159 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
42161 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
42162 declares only 'struct timespec;' (!).
42164 2005-07-01 Jim Meyering <jim@meyering.net>
42166 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
42167 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
42168 * lib/save-cwd.c, tempname.c:
42169 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
42170 and don't include <sys/file.h>).
42172 2005-06-29 Jim Meyering <jim@meyering.net>
42174 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
42175 type name. Use the variable name instead.
42176 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
42179 2005-06-28 Simon Josefsson <jas@extundo.com>
42181 * modules/check-version (Files): Add check-version.m4.
42183 2005-06-28 Simon Josefsson <jas@extundo.com>
42185 * m4/check-version.m4: New file, suggested by Jim Meyering
42186 <jim@meyering.net>.
42188 2005-06-28 Simon Josefsson <jas@extundo.com>
42190 * lib/check-version.h, lib/check-version.c: New files.
42192 2005-06-28 Simon Josefsson <jas@extundo.com>
42194 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
42195 collision with global variable. Better indentation. Don't
42196 increment buffer pointer beyond buffer end. Based on comments
42197 from Paul Eggert <eggert@cs.ucla.edu>.
42199 * lib/base64.h: Indent.
42201 2005-06-28 Simon Josefsson <jas@extundo.com>
42203 * doc/gnulib.texi (Library version handling): New section.
42205 2005-06-28 Jim Meyering <jim@meyering.net>
42207 * check-module (find_included_lib_files): Hard-code another
42208 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
42209 but modules/fts-lgpl (correctly) does not list those files.
42211 * modules/canonicalize (Files): Add lib/pathmax.h.
42213 2005-06-25 Simon Josefsson <jas@extundo.com>
42215 * modules/check-version: New file.
42217 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
42219 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
42220 initializer of struct addrinfo, as an indication that we don't
42221 care how many members the structure has.
42223 2005-06-24 Derek Price <derek@ximbiot.com>
42224 and Bruno Haible <bruno@clisp.org>
42226 Remove stat module & update lstat.
42227 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
42228 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42229 * m4/stat.m4: Remove this file.
42231 2005-06-24 Derek Price <derek@ximbiot.com>
42232 and Bruno Haible <bruno@clisp.org>
42234 Remove stat module & update lstat.
42235 * lib/stat.c: Remove this file...
42236 (slash_aware_lstat): ...moving this content and its support...
42237 * lib/lstat.c (rpl_lstat): ...into here.
42238 * lib/lstat.h: New file.
42240 2005-06-24 Derek Price <derek@ximbiot.com>
42241 and Bruno Haible <bruno@clisp.org>
42243 Remove stat module & update lstat.
42244 * config/srclist.txt (libc sources): Remove stat.
42246 2005-06-24 Derek Price <derek@ximbiot.com>
42247 and Bruno Haible <bruno@clisp.org>
42249 Remove stat module & update lstat.
42250 * MODULES.html.sh (stat): Remove.
42251 * MODULES.html: Regenerated.
42252 * modules/lstat (Description): Correct function name.
42253 (Files): Add "lstat.h".
42254 (Depends-on): Remove stat, add xalloc, stat-macros.
42255 * modules/stat: Remove this file.
42256 (Include): Add "lstat.h", remove <sys/stat.h>.
42258 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
42260 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
42261 (ranged_convert): Don't save conversion in a temporary struct.
42262 This causes a warning with GCC 4.0.0, and anyway in the typical
42263 case it's not worth the extra 100 bytes or so of code.
42264 (ranged_convert, __mktime_internal): When calling a function via a
42265 pointer P, use P () rather than (*P) (), as we now assume C89 or
42268 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
42270 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
42271 "who -r" failed to give output. Problem reported by Tim Waugh.
42273 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
42274 (xcalloc): Use it to avoid needless tests.
42275 Problem reported by Jim Meyering.
42277 2005-06-20 Derek Price <derek@ximbiot.com>
42279 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
42280 unnecessary for Autoconfs > 2.59c.
42282 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
42284 * lib/argp.h (__option_is_short): Check upper limit of
42285 __key. Isprint() requires its argument to have the value
42286 of an unsigned char or EOF.
42288 2005-06-16 Jim Meyering <jim@meyering.net>
42290 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
42291 when either N or S is zero.
42293 2005-06-16 Derek Price <derek@ximbiot.com>
42295 * m4/bison.m4: Declare YACC & YFLAGS precious.
42297 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
42299 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
42300 multibyte string or pattern, fall back on unibyte matching.
42301 Problem reported by James Youngman.
42303 2005-06-08 Bruno Haible <bruno@clisp.org>
42305 * modules/csharpcomp: New file.
42306 * MODULES.html.sh (C#): Add csharpcomp.
42308 2005-06-08 Bruno Haible <bruno@clisp.org>
42310 * m4/csharpcomp.m4: New file, from GNU gettext.
42312 2005-06-08 Bruno Haible <bruno@clisp.org>
42314 * lib/csharpcomp.h: New file, from GNU gettext.
42315 * lib/csharpcomp.c: New file, from GNU gettext.
42316 * lib/csharpcomp.sh.in: New file, from GNU gettext.
42318 2005-06-08 Bruno Haible <bruno@clisp.org>
42320 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
42323 2005-06-07 Derek Price <derek@ximbiot.com>
42326 * lib/glob_.h: Indent nested #ifdef.
42328 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42330 Sync from coreutils.
42331 Use "file name" when talking about file names, instead of "filename"
42332 or "path", as per the GNU coding standards.
42333 * lib/mkdir-p.c: Renamed from makepath.c.
42334 (make_dir_parents): Renamed from make_path. All callers changed.
42335 * lib/mkdir-p.h: Likewise. All includers changed.
42336 * lib/filenamecat.c: Renamed from path-concat.c.
42337 (file_name_concat): Renamed from path_concat. All callers changed.
42338 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
42339 * lib/filenamecat.h: Likewise. All includers changed.
42340 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
42341 in comments or local variable names.
42342 * lib/basename.c: Likewise.
42343 * lib/canonicalize.c, canonicalize.h: Likewise.
42344 * lib/dirname.c, dirname.h: Likewise.
42345 * lib/euidaccess.c: Likewise.
42346 * lib/exclude.c: Likewise
42347 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
42348 * lib/fsusage.c, fsuage.h: Likewise.
42349 * lib/fts.c, fts_.h: Likewise.
42350 * lib/getcwd.c: Likewise.
42351 * lib/getloadavg.c: Likewise.
42352 * lib/mkstemp.c: Likewise.
42353 * lib/mountlist.c, mountlist.h: Likewise.
42354 * lib/openat.c, openat.h: Likewise.
42355 * lib/readlink-stub.c: Likewise.
42356 * lib/readutmp.c, readutmp.h: Likewise.
42357 * lib/rename.c: Likewise.
42358 * lib/rmdir.c: Likewise.
42359 * lib/same.c: Likewise.
42360 * lib/savedir.c: Likewise.
42361 * lib/stripslash.c: Likewise.
42362 * lib/tempname.c: Likewise.
42363 * lib/xreadlink.c: Likewise.
42364 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
42366 * lib/exclude.h: Likewise.
42368 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
42369 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42370 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
42371 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42372 * lib/pathmax.h: Include <limits.h> unconditionally, since other
42373 files have been getting away with it for years (MORE/BSD 4.3
42375 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
42376 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42378 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
42379 Define to 256, not 255, as per modern POSIX.
42381 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42383 Sync from coreutils.
42384 Use "file name" when talking about file names, instead of "filename"
42385 or "path", as per the GNU coding standards.
42386 * MODULES.html.sh: mkdir-p renamed from makepath.
42387 filenamecat renamed from path-concat.
42388 * modules/filenamecat: Renamed from modules/path-concat.
42389 (Files): filenamecat.h and filenamecat.c renamed from
42390 path-concat.h and path-concat.c.
42391 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
42392 (Include): filenamecat.h, not path-concat.h.
42393 * modules/mkdir-p: Renamed from modules/makepath.
42394 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
42396 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
42397 (Include): mkdir-p.h, not makepath.h.
42399 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42401 Sync from coreutils.
42402 * m4/mkdir-p.m4: Renamed from makepath.m4.
42403 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
42404 Rename files from makepath.c to mkdir-p.c, and from
42405 makepath.h to mkdir-p.h.
42406 * m4/filenamecat.m4: Renamed from path-concat.m4.
42407 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
42408 Rename files from path-concat.c to filenamecat.c,
42409 and from path-concat.h to filenamecat.h.
42410 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
42411 "file name" in local variables or comments.
42412 * m4/rename.m4: Likewise.
42414 2005-06-01 Bruno Haible <bruno@clisp.org>
42416 * modules/csharpexec: New file.
42417 * MODULES.html.sh (C#): New section.
42419 2005-06-01 Bruno Haible <bruno@clisp.org>
42421 * m4/csharp.m4: New file, from GNU gettext.
42422 * m4/csharpexec.m4: New file, from GNU gettext.
42424 2005-06-01 Bruno Haible <bruno@clisp.org>
42426 * lib/csharpexec.h: New file, from GNU gettext.
42427 * lib/csharpexec.c: New file, from GNU gettext.
42428 * lib/csharpexec.sh.in: New file, from GNU gettext.
42430 2005-05-31 Derek Price <derek@ximbiot.com>
42431 Paul Eggert <eggert@cs.ucla.edu>
42434 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42436 2005-05-31 Derek Price <derek@ximbiot.com>
42437 Paul Eggert <eggert@cs.ucla.edu>
42440 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42442 2005-05-29 Derek Price <derek@ximbiot.com>
42444 * config/srclist.txt (glob_.h, glob.c): Add these files.
42446 2005-05-29 Derek Price <derek@ximbiot.com>
42448 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
42449 * modules/glob: New file.
42450 * modules/getlogin_r: Add link to POSIX spec in description.
42452 2005-05-29 Derek Price <derek@ximbiot.com>
42453 Paul Eggert <eggert@cs.ucla.edu>
42455 * m4/glob.m4: New file.
42457 2005-05-29 Derek Price <derek@ximbiot.com>
42458 Paul Eggert <eggert@cs.ucla.edu>
42460 * lib/glob_.h, lib/glob.c: New files.
42462 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42464 * modules/fts (Files): Remove m4/inttypes-pri.m4.
42465 * modules/fts-lgpl (Depends-on): Remove gettext.
42467 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42469 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
42470 and don't require gt_INTTYPES_PRI.
42472 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42474 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
42476 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
42477 the configuration hassle isn't worth it.
42478 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
42479 (LONGEST_MODIFIER, PRIuMAX): Remove.
42481 2005-05-27 Bruno Haible <bruno@clisp.org>
42483 * lib/getlogin_r.h: Remove second include of <stddef.h>.
42485 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
42487 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
42488 _POSIX_PTHREAD_SEMANTICS for Solaris.
42490 2005-05-25 Derek Price <derek@ximbiot.com>
42492 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
42494 2005-05-25 Derek Price <derek@ximbiot.com>
42495 Paul Eggert <eggert@cs.ucla.edu>
42497 * modules/getlogin_r, m4/getlogin_r.m4: New files.
42498 * lib/getlogin_r.c, getlogin_r.h: New files.
42500 2005-05-25 Bruno Haible <bruno@clisp.org>
42501 Derek Price <derek@ximbiot.com>
42503 * lib/getlogin_r.h: Simplify API documentation.
42505 2005-05-23 Derek Price <derek@ximbiot.com>
42507 * modules/minmax (Files): Add m4/minmax.m4.
42508 (configure.ac): Add gl_MINMAX.
42510 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
42512 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
42513 so that unistd-safer.h (GPL'ed code) need not be included.
42515 2005-05-22 Bruno Haible <bruno@clisp.org>
42517 * m4/minmax.m4: New file.
42518 Based on a patch by Derek Price <derek@ximbiot.com>.
42520 2005-05-22 Bruno Haible <bruno@clisp.org>
42522 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
42523 (INT64_MIN): Fix definition.
42524 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
42526 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
42527 NEED_SIGNED_INT_TYPES.
42529 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
42530 HAVE_SYSTEM_INTTYPES.
42532 2005-05-22 Bruno Haible <bruno@clisp.org>
42534 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
42535 Also include <sys/param.h> if it defines MIN, MAX.
42536 Based on a patch by Derek Price <derek@ximbiot.com>.
42538 2005-05-21 Jim Meyering <jim@meyering.net>
42540 * modules/fts (Files): Add m4/inttypes-pri.m4.
42541 (Depends-on): Add lstat and remove gettext. Alphabetize.
42543 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42546 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
42547 (setup_dir, free_dir): New functions.
42548 (enter_dir, leave_dir): Define trivial
42549 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
42550 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
42551 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
42552 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
42553 Move to fts-cycle.c.
42554 (fts_open): Use setup_dir.
42555 (fts_close): Use free_dir.
42556 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
42557 This adds a label and some gotos, but the alternatives were messier.
42558 Check for memory allocation failure when entering a dir.
42559 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
42560 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
42561 (FTS): New member fts_cycle, that is a union that contains the
42562 old active_dir_ht and cycle_state. All uses changed to mention
42563 fts_cycle.ht and fts_cycle.state.
42564 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
42565 fts.c, with the following changes:
42566 (setup_dir, free_dir): New functions.
42567 (enter_dir): Now returns bool. Return true if successful, false
42568 if memory exhausted. All callers changed.
42569 Do not bother partly cleaning up on
42570 memory allocation failure; that is free_dir's job.
42571 However, free ad if hash_insert fails, to avoid memory leak.
42572 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
42573 fts->fts_options to see which union member to use.
42575 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42577 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
42578 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
42580 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42582 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
42584 2005-05-20 Jim Meyering <jim@meyering.net>
42586 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
42587 Now a macro, to pacify GCC.
42589 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
42591 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
42594 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
42596 * lib/chown.c (rpl_chown): Return -1 on failure.
42598 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
42600 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
42601 Don't check for stddef.h.
42602 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
42603 don't use its results.
42604 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
42605 since we include them unconditionally. Don't require
42606 AM_STDBOOL_H, since stdbool is a prerequisite.
42607 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
42608 since we assume C89 or better.
42609 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
42610 as we don't use their results.
42611 Don't check for fchdir, memmove, memset, strrchr, as we use
42612 them unconditionally.
42613 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
42614 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
42616 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
42618 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
42619 Include <stddef.h> unconditionally, since we assume C89 now.
42620 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
42621 * lib/fts.c: Include fts_.h first, to check interface.
42622 Do not include intprops.h; no longer needed.
42623 Include cycle-check.h and hash.h, since fts_.h no longer does.
42624 Remove unnecessary casts of closedir to void.
42625 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
42626 decide whether to decrement nlinks.
42627 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
42628 (FTS): Use struct hash_table * instead of Hash_table, so that
42629 we no longer need to include hash.h here.
42631 2005-05-18 Jim Meyering <jim@meyering.net>
42633 * modules/dirfd (License): Change to LGPL. Most of the code
42634 is already in the public domain.
42636 2005-05-18 Jim Meyering <jim@meyering.net>
42638 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
42639 Reported by Yoann Vandoorselaere.
42641 2005-05-17 Jim Meyering <jim@meyering.net>
42643 * m4/fts.m4: New file, from coreutils.
42645 2005-05-17 Jim Meyering <jim@meyering.net>
42647 * lib/fts.c, lib/fts_.h: New files, from coreutils.
42649 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
42651 Sync from coreutils.
42652 * m4/unlinkdir.m4: New file.
42654 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
42656 Sync from coreutils.
42657 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
42658 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
42659 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
42660 White space changes only.
42661 * lib/makepath.c (make_path): Port to hosts where leading "//" is
42663 * lib/yesno.c: Include getline.h, not ctype.h.
42664 (yesno): Don't remove leading white space; POSIX doesn't allow it.
42665 Use getline to remove arbitrary restriction on response length.
42667 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
42669 * config/srclist-update: Spell out "Street" in FSF postal
42670 mail address; this is the style the FSF seems to prefer.
42672 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
42673 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
42674 this updates FSF postal mail address.
42676 Sync from coreutils.
42677 * modules/unlinkdir: New file.
42678 * modules/yesno (Depends-on): Add getline.
42679 * MODULES.html.sh (File system functions): Add unlinkdir.
42681 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
42683 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
42685 Change the initial comment to refer to GPL, not LGPL.
42686 gnulib-tool will change it to LGPL as needed.
42688 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
42689 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
42690 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
42691 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
42692 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
42693 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
42694 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
42695 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
42696 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
42697 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
42698 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
42699 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
42700 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
42701 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
42702 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
42703 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
42704 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
42705 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
42706 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
42707 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
42708 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
42709 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
42710 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
42711 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
42712 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
42713 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
42714 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
42715 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
42716 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
42717 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
42718 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
42719 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
42720 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
42721 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
42722 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
42723 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
42724 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
42725 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
42726 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
42727 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
42728 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
42729 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
42730 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
42731 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
42732 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
42733 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
42734 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
42735 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
42736 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
42737 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
42738 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
42739 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
42740 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
42741 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
42742 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
42743 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
42744 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
42745 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
42746 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
42747 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
42748 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
42749 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
42750 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
42751 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
42752 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
42753 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
42754 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
42755 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
42756 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
42757 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
42758 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
42759 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
42760 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
42761 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
42762 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
42763 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
42764 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
42765 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
42766 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
42767 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
42768 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
42769 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
42770 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
42771 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
42772 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
42773 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
42774 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
42775 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
42776 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
42777 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
42778 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
42779 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
42780 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
42781 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
42782 lib/yesno.c, lib/yesno.h:
42783 Update FSF postal mail address.
42785 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
42787 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
42788 tests/test-memmem.c, tests/test-stpncpy.c:
42789 Update FSF postal mail address.
42791 2005-05-13 Bruno Haible <bruno@clisp.org>
42793 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
42794 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
42795 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
42796 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
42797 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
42798 Add support for 64-bit integers in the MSVC compiler.
42800 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
42802 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
42804 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
42806 * gnulib-tool (func_import): Sort and uniquify recommended includes.
42808 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
42810 * doc/getdate.texi (General date syntax): Don't say that date
42811 date --iso-8601=ns generates acceptable dates; it doesn't yet.
42812 Problem reported by Nic Ferrier.
42814 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42816 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
42817 specified in ai_socktype. Fix invalid ai_protocol
42818 check. ai_protocol is usually set to 0 or depending on
42819 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
42820 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
42821 ai_socktype / ai_protocol in the returned addrinfo structure.
42823 2005-05-10 Simon Josefsson <jas@extundo.com>
42825 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
42826 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42828 2005-05-10 Karl Berry <karl@gnu.org>
42830 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
42831 (from http://www.gnu.org/licenses).
42832 * doc/COPYING.LIB: also rename to COPYING.LESSER.
42833 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
42836 2005-05-10 Karl Berry <karl@gnu.org>
42838 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
42839 (COPYING.DOC): remove.
42841 * config/srclist-update: new FSF address.
42843 2005-05-10 Derek Price <derek@ximbiot.com>
42845 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
42848 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42849 Bruno Haible <bruno@clisp.org>
42851 * modules/inet_ntop: New file.
42852 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42855 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42856 Bruno Haible <bruno@clisp.org>
42858 * m4/inet_ntop.m4: New file.
42860 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42861 Bruno Haible <bruno@clisp.org>
42863 * lib/inet_ntop.h: New file.
42864 * lib/inet_ntop.c: New file, from glibc with modifications.
42866 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
42868 * modules/time_r (License): Change to LGPL.
42869 * modules/extensions (License): Change to LGPL. Actually,
42870 the license is more permissive than that, but currently gnulib-tool
42871 doesn't know how to handle more-permissive licenses.
42873 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
42874 Problem reported by Dave Love.
42876 2005-05-08 Jim Meyering <jim@meyering.net>
42878 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
42881 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
42883 * modules/argmatch (Depends-on): Add stdbool.
42884 * modules/backupfile (Depends-on): Likewise.
42885 * modules/chdir-long (Depends-on): Likewise.
42886 * modules/closeout (Depends-on): Likewise.
42887 * modules/cycle-check (Depends-on): Likewise.
42888 * modules/dirname (Depends-on): Likewise.
42889 * modules/fnmatch (Depends-on): Likewise.
42890 * modules/fsusage (Depends-on): Likewise.
42891 * modules/fwriteerror (Depends-on): Likewise.
42892 * modules/getcwd (Depends-on): Likewise.
42893 * modules/getloadavg (Depends-on): Likewise.
42894 * modules/hard-locale (Depends-on): Likewise.
42895 * modules/makepath (Depends-on): Likewise.
42896 * modules/mountlist (Depends-on): Likewise.
42897 * modules/nanosleep (Depends-on): Likewise.
42898 * modules/posixtm (Depends-on): Likewise.
42899 * modules/quotearg (Depends-on): Likewise.
42900 * modules/readtokens (Depends-on): Likewise.
42901 * modules/readtokens0 (Depends-on): Likewise.
42902 * modules/readutmp (Depends-on): Likewise.
42903 * modules/save-cwd (Depends-on): Likewise.
42904 * modules/strftime (Depends-on): Likewise.
42905 * modules/userspec (Depends-on): Likewise.
42906 * modules/utimecmp (Depends-on): Likewise.
42907 * modules/xgetcwd (Depends-on): Likewise.
42908 * modules/xnanosleep (Depends-on): Likewise.
42909 * modules/xstrtod (Depends-on): Likewise.
42910 * modules/yesno (Depends-on): Likewise.
42912 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
42914 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
42917 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
42919 Merge from coreutils. Among other things,
42920 add bulletproofing for cases where stdin, stdout, or stderr are closed.
42921 * lib/fd-safer.c: New file.
42922 * lib/fcntl-safer.h, open-safer.c: Remove.
42923 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
42924 * lib/dup-safer.c: Include unistd-safer.h first.
42925 Don't include errno.h.
42926 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
42927 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
42928 * lib/file-type.c: Rely on file-type.h change.
42929 * lib/getloadavg.c: Include unistd-safer.h.
42930 (getloadavg): Use safer open.
42931 * lib/getusershell.c: Include "stdio-safer.h".
42932 (getusershell): Use safer fopen.
42933 * lib/long-options.c (long_options): Use NULL rather than 0.
42934 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
42936 * lib/modechange.c: Likewise.
42937 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
42938 (MODE_DONE): New constant.
42939 (struct mode_change): Remove 'next' member.
42940 (make_node_op_equals): New function; like the old one of the
42941 same name, except it allocates an array.
42942 (mode_compile, mode_create_from_ref): Use it.
42943 (mode_compile): Allocate result as an array, not a linked list.
42944 Parse octal string ourself, so that we catch mistakes like "+0".
42945 (mode_adjust): Arg is an array, not a linked list.
42946 * lib/modechange.c: Include stat-macros.h, xalloc.h.
42947 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
42948 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
42949 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
42950 Remove. This is now stat-macros.h's job.
42951 (talloc): Remove. All callers replaced by xalloc, so that
42952 our invokers don't have to worry about reporting memory failures.
42953 (make_node_op_equals): Remove.
42954 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42956 (struct mode_change): Moved here from modechange.h.
42957 (mode_append_entry): Remove.
42958 (mode_compile): Remove MASKED_OPS arg, since it encouraged
42959 apps to have incorrect behavior. Use simpler algorithm for head
42960 and tail. Don't futz with umask; that's now the job of mode_adjust.
42961 Detect more invalid usages rather than having somewhat-random behavior.
42962 Don't insert an "a=" action, as that leads to incorrect behavior.
42963 (mode_compile, mode_create_from_ref): Return NULL on error instead
42964 of an enum, since now there's only one way to have an error. All
42966 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
42967 at the correct time. Simplify calculation of "+u" and its ilk.
42968 Don't mishandle "+X".
42969 (mode_free): Remove "register" and localize decls.
42970 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42971 (struct mode_change): Move to modechange.c; callers don't
42972 need to see this stuff.
42973 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
42974 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
42975 (mode_change, mode_adjust): Reflect the new signatures noted above.
42976 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
42977 that might redefine system include files.
42978 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
42979 (my_usleep): Use NULL rather than (void *) 0.
42980 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
42981 Use siginterrupt to specify that system calls should be interrupted.
42982 (rpl_nanosleep): Move initialization of suspended closer to call of
42984 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
42985 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
42986 (desirable_utmp_entry): New function.
42987 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
42988 using x2nrealloc, to simplify logic.
42989 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
42990 size calculation. Do not assume utmp file is a regular file.
42991 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
42992 (READ_UTMP_CHECK_PIDS): New constant.
42993 * lib/save-cwd.c: Include unistd-safer.h.
42994 (save_cwd): Use fd_safer.
42995 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
42996 [!_LIBC] Include "stat-macros.h" instead.
42997 * lib/unistd-safer.h (fd_safer): New decl.
42999 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
43001 * modules/getloadavg (Depends-on): Add unistd-safer.
43002 * modules/getusershell (Depends-on): Add stdio-safer.
43003 * modules/lstat (Depends-on): Remove xalloc.
43004 * modules/mkstemp (Depends-on): Add stat-macros.
43005 * modules/modechange (Depends-on): Remove xstrtol.
43006 Add stat-macros, xalloc.
43007 * modules/save-cwd (Depends-on): Add unistd-safer.
43008 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
43009 * modules/unistd-safer (Files): Add lib/fd-safer.c
43010 (Makefile.am): Remove lib_SOURCES.
43012 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
43013 Remove fcntl-safer; unistd-safer supersedes it.
43015 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
43017 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
43019 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
43020 (gl_PREREQ_CHOWN): Remove.
43021 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
43022 it. Don't require AC_HEADER_STAT.
43023 (gl_PREREQ_LSTAT): Remove.
43024 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
43025 Don't require AC_HEADER_STAT.
43026 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
43027 (gl_PREREQ_RMDIR): Remove.
43028 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
43029 mention stat-macros.h or AC_HEADER_STAT, since we'll make
43030 the stat-macros module a prerequisite.
43031 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
43032 * m4/filemode.m4 (gl_FILEMODE): Likewise.
43033 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
43034 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
43035 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
43037 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
43038 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
43040 * m4/fcntl-safer.m4: Remove.
43041 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
43042 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
43043 Invoke gl_PREREQ_FD_SAFER.
43044 (gl_PREREQ_FD_SAFER): New macro.
43045 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
43046 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
43047 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
43048 Remove duplicate call to AC_LIBOBJ(readutmp).
43049 (gl_PREREQ_READUTMP): Remove. All uses inlined.
43051 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
43052 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
43054 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
43056 * MODULES.html.sh (Misc): Add byteswap.
43058 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43060 * modules/getcwd (Depends-on): Add extensions.
43061 * modules/openat (Depends-on): Likewise.
43063 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43065 * modules/byteswap: New file.
43067 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43069 * m4/byteswap.m4: New file.
43071 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43073 * lib/byteswap_.h: New file.
43075 2005-04-25 Karl Berry <karl@gnu.org>
43077 * m4/gettext.m4: Update from GNU gettext 0.14.4.
43079 2005-04-25 Albert Chin <china@thewrittenword.com>
43081 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
43084 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
43086 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
43087 (func_ln_if_changed) Remove forcibly for no error message
43088 in case file does not exist.
43090 2005-04-19 Simon Josefsson <jas@extundo.com>
43092 * gnulib-tool (Options): Make --symlink mean --symbolic.
43094 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
43096 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
43098 2005-04-16 Simon Josefsson <jas@extundo.com>
43100 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
43102 2005-04-15 Simon Josefsson <jas@extundo.com>
43104 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
43106 2005-04-15 Simon Josefsson <jas@extundo.com>
43108 * gnulib-tool: Rename --symlink to --symbolic.
43110 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
43112 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
43113 symbolic links to files instead of copying/moving. Add --aux-dir,
43114 specifying directory relative --dir where auxiliary build tools
43117 2005-04-14 Bruno Haible <bruno@clisp.org>
43119 * modules/allocsa (License): Change to LGPL.
43120 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43122 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
43124 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
43125 that "UTC +1 second" continues to work. Problem reported
43126 by Dmitry V. Levin.
43127 (relunit_snumber): New rule.
43130 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
43132 * lib/getdate.y (universal_time_zone_table): New constant.
43133 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
43134 universal_time_zone_table.
43135 (lookup_zone): Prefer universal_time_zone_table to
43136 local_time_zone_table, so that "GMT" time stamps are allowed in
43137 London during the summer. Problem reported by Ian Abbott.
43139 2005-04-12 Jim Meyering <jim@meyering.net>
43141 * lib/human.c (humblock): Set *options even when returning due to
43142 xstrtoumax conversion failure. Thanks to a used-uninitialized
43143 warning from gcc-4.
43145 2005-04-09 Jim Meyering <jim@meyering.net>
43147 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
43148 -Wuninitialized: initialize tm0.tm_year.
43150 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
43152 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
43153 count, since there's no maximum. All uses changed.
43154 Add member dsts_seen.
43155 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
43157 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
43158 Use pc_rels_seen to decide whther a date is absolute.
43160 * lib/getdate.y (number): Don't overwrite year.
43161 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
43164 2005-04-02 Simon Josefsson <jas@extundo.com>
43166 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
43167 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
43169 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
43171 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
43172 where no absolute path name can be longer than PATH_MAX.
43174 2005-03-27 Jim Meyering <jim@meyering.net>
43176 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
43178 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
43180 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
43181 "one's complement" -> "ones' complement" in comment, as per Knuth.
43182 "value of type" -> "type or expression" in comment.
43183 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
43185 2005-03-26 Jim Meyering <jim@meyering.net>
43188 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
43189 Correct typos: s/or/of/.
43191 2005-03-26 Jim Meyering <jim@meyering.net>
43193 * modules/check-include-files: Move to ../ and rename to...
43194 * check-module: ...this.
43196 2005-03-25 Jim Meyering <jim@meyering.net>
43198 * modules/xvasprintf (Files): Add xalloc.h.
43200 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
43202 * modules/gettext (Files): config/config.rpath ->
43203 build-aux/config.rpath
43204 * modules/iconv (Files): Likewise.
43205 Problem reported by Oskar Liljeblad.
43207 2005-03-23 Jim Meyering <jim@meyering.net>
43209 * modules/check-include-files: New script to check for
43210 missing dependencies, multiple includes, etc.
43212 * modules/c-strtold (Depends-on): Add xalloc.
43213 * modules/c-strtod (Depends-on): Add xalloc.
43214 * modules/hash (Depends-on): Add xalloc.
43215 (Files): Remove lib/xalloc.h.
43217 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
43218 * modules/userspec (Files): Add lib/inttostr.h.
43220 2005-03-23 Jim Meyering <jim@meyering.net>
43222 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
43224 2005-03-22 Jim Meyering <jim@meyering.net>
43226 * modules/stat-macros: New module.
43227 * modules/canonicalize, modules/euidaccess, modules/file-type,
43228 * modules/filemode, modules/lchown, modules/makepath,
43229 * modules/rmdir, modules/stat: Depend on new stat-macros module
43230 rather than listing lib/stat-macros.h manually.
43231 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
43233 2005-03-22 Jim Meyering <jim@meyering.net>
43235 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
43237 2005-03-22 Bruno Haible <bruno@clisp.org>
43239 * config/srclist.txt: Replace target directory 'config' with
43241 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
43242 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
43245 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
43247 * modules/chdir-long (Depends-on): Add mempcpy.
43249 * modules/acl, modules/backupfile, modules/c-strtod,
43250 modules/c-strtold, modules/canon-host, modules/canonicalize,
43251 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
43252 modules/exclude, modules/exitfail, modules/file-type,
43253 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
43254 modules/getdate, modules/getline, modules/getpagesize,
43255 modules/getpass, modules/getugroups, modules/group-member,
43256 modules/hard-locale, modules/hash, modules/human, modules/idcache,
43257 modules/inttostr, modules/long-options, modules/makepath,
43258 modules/md5, modules/memcasecmp, modules/memcoll,
43259 modules/modechange, modules/mountlist, modules/path-concat,
43260 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
43261 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
43262 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
43263 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
43264 modules/strftime, modules/strndup, modules/strverscmp,
43265 modules/timespec, modules/unlocked-io, modules/userspec,
43266 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
43268 Remove lib_SOURCES line from Makefile.am section, as this is now
43269 done automatically by the corresponding Autoconf macro.
43271 2005-03-21 Jim Meyering <jim@meyering.net>
43273 Changes imported from coreutils.
43275 * lib/cycle-check.c: Don't include xalloc.h.
43277 * lib/path-concat.c: Don't include assert.h.
43278 (path_concat): Remove assertion that would have triggered
43279 for ABASE starting with more than one slash.
43280 Reported by Andreas Schwab.
43282 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
43283 properly when ABASE is an absolute file name.
43284 Correct the description of this function.
43285 Include <assert.h>.
43286 Add an assertion and a test driver.
43287 This fixes a bug introduced on 2004-07-02.
43288 Andreas Schwab reported the resulting failure of cp --parents:
43289 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
43291 2005-03-21 Jim Meyering <jim@meyering.net>
43293 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
43294 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
43296 2005-03-21 Jim Meyering <jim@meyering.net>
43297 and Paul Eggert <eggert@cs.ucla.edu>
43299 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
43300 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
43301 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
43302 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
43303 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
43304 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
43305 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
43306 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
43307 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
43308 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
43309 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
43310 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
43311 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
43312 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
43313 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
43314 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
43315 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
43318 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
43320 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
43321 (which shouldn't happen), generate nothing instead of returning 0
43322 immediately, so that nstrftime (NULL, ...) doesn't return 0.
43324 2005-03-16 Bruno Haible <bruno@clisp.org>
43326 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
43327 HAVE_LONGLONG_64BIT.
43329 2005-03-16 Bruno Haible <bruno@clisp.org>
43331 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
43332 HAVE_LONGLONG_64BIT.
43334 2005-03-16 Bruno Haible <bruno@clisp.org>
43336 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
43337 HAVE_LONGLONG_64BIT.
43339 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
43341 * lib/strftime.c (my_strftime): Prepend space to format so that we can
43342 reliably distinguish strftime failure from empty output on POSIX
43345 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
43347 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
43348 (iconv_string): Don't guess a size-zero buffer, as that might cause
43349 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
43350 result would be 'too large', where 'too large' is (heuristically)
43351 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
43352 overflow concerns. This will prevent some unwanted malloc failures
43353 when the inputs are very large.
43355 2005-03-15 Karl Berry <karl@gnu.org>
43357 * config/srclist.txt (config.rpath): from gettext.
43358 * config/config.rpath: update.
43360 2005-03-15 Bruno Haible <bruno@clisp.org>
43362 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
43365 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
43368 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
43371 2005-03-14 Simon Josefsson <jas@extundo.com>
43373 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
43376 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
43378 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
43379 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
43381 * lib/strtol.c: Likewise.
43383 2005-03-14 Jim Meyering <jim@meyering.net>
43385 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
43386 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
43387 to be nonzero so that we (and caller) can detect the difference
43388 between a valid zero-length expansion and an error return, even
43389 when the underlying strftime fails before writing anything into
43392 2005-03-14 Bruno Haible <bruno@clisp.org>
43394 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
43395 Update from GNU gettext 0.14.3.
43397 2005-03-10 Jim Meyering <jim@meyering.net>
43399 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
43401 2005-03-10 Jim Meyering <jim@meyering.net>
43403 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
43404 so that this module works on systems without fchdir.
43406 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
43408 Factor int-properties macros into a single file, except for
43409 glibc-related files.
43410 * lib/intprops.h: New file.
43411 * lib/getloadavg.c: Include it instead of limits.h.
43412 (INT_STRLEN_BOUND): Remove.
43413 * lib/human.c: Include intprops.h.
43414 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
43415 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
43417 * lib/inttostr.h: Include intprops.h instead of limits.h.
43418 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
43419 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
43420 for consistency with intprops.h.
43421 (time_t_is_integer, twos_complement_arithmetic): Use them.
43422 * lib/sig2str.h: Include <signal.h>, intprops.h.
43423 (INT_STRLEN_BOUND): Remove.
43424 * lib/strftime.c (TYPE_SIGNED): Remove.
43425 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
43426 * lib/strtol.c: Adjust comments to match intprops.h.
43427 * lib/userspec.c: Include intprops.h.
43428 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
43429 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
43430 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
43431 instead of rolling our own expressions.
43432 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
43434 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
43436 (my_strftime): Do not mishandle years close to INT_MAX, by doing
43437 the right thing even if adding 1900 would overflow. Similarly
43438 for tm_mon + 1 and tm_yday + 1.
43439 Make %Y always equivalent to %C%y, and similarly for %G and %g.
43440 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
43441 (DO_SIGNED_NUMBER): New macro.
43442 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
43444 2005-03-07 Bruno Haible <bruno@clisp.org>
43446 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
43448 2005-03-07 Bruno Haible <bruno@clisp.org>
43450 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
43452 2005-03-04 Derek R. Price <derek@ximbiot.com>
43454 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
43455 (func_import): Only replace files via --import when they have actually
43458 2005-03-03 Derek R. Price <derek@ximbiot.com>
43460 * m4/mmap-anon.m4: New file.
43461 * m4/pagealign_alloc.m4: New file.
43463 2005-03-03 Derek R. Price <derek@ximbiot.com>
43464 Bruno Haible <bruno@clisp.org>
43466 * modules/pagealign_alloc: New file.
43467 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
43469 2005-03-03 Derek R. Price <derek@ximbiot.com>
43470 Bruno Haible <bruno@clisp.org>
43472 * lib/pagealign_alloc.h: New file.
43473 * lib/pagealign_alloc.c: New file.
43475 2005-03-03 Bruno Haible <bruno@clisp.org>
43477 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
43478 Use an all-permissive copyright notice, recommended by RMS.
43480 2005-03-02 Bruno Haible <bruno@clisp.org>
43482 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
43483 of AIX, the replacement has to be done only after <string.h> is
43484 included, therefore not in config.h. stpncpy.h does the replacement,
43485 and stpncpy.c uses it.
43487 2005-03-02 Bruno Haible <bruno@clisp.org>
43489 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
43492 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43494 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
43495 The workaround isn't strictly needed for POSIX conformance, and
43496 it's too much of a pain to configure and maintain. We'll ask
43497 people to fix their kernels instead.
43498 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
43499 (NANOSLEEP_BUG_WORKAROUND): Remove.
43500 (xnanosleep): Remove the workaround.
43502 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43504 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
43505 Reported by Derek Price.
43506 (Include): Add "timespec.h".
43508 * modules/xnanosleep (Depends-on): Remove gethrxtime.
43510 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43512 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
43513 to detect nanosleep bug.
43515 2005-03-01 Bruno Haible <bruno@clisp.org>
43517 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
43519 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
43521 * modules/gethrxtime: New file.
43522 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
43523 (Depends-on): Add gethrxtime.
43524 (configure.ac): Add gl_XNANOSLEEP.
43525 (Makefile.am): Remove lib_SOURCES line.
43527 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
43529 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
43530 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
43532 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
43534 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
43535 * lib/timespec.h (gettime): Return void, since it always
43536 succeeds now. All uses changed.
43537 * lib/gettime.c (gettime) Likewise.
43538 [HAVE_NANOTIME]: Prefer nanotime.
43539 Assume gettimeofday succeeds, as POSIX requires.
43540 Assime time () succeeds, since other code already does.
43541 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
43542 (timespec_subtract): Remove.
43543 (NANOSLEEP_BUG_WORKAROUND): New constant.
43544 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
43545 things considerably. Use it only on GNU/Linux hosts, since the
43546 workaround shouldn't be needed elsewhere.
43548 2005-02-24 Bruno Haible <bruno@clisp.org>
43550 * modules/gettext (Files): Add m4/glibc2.m4.
43552 2005-02-24 Bruno Haible <bruno@clisp.org>
43554 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
43555 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
43557 Update from GNU gettext 0.14.2.
43558 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
43560 2005-02-24 Bruno Haible <bruno@clisp.org>
43562 * lib/localcharset.c: Update from GNU gettext 0.14.2.
43563 * lib/config.charset: Update from GNU gettext 0.14.2.
43565 2005-02-24 Bruno Haible <bruno@clisp.org>
43567 * lib/gettext.h: Update from GNU gettext 0.14.2.
43569 2005-02-23 Simon Josefsson <jas@extundo.com>
43571 * m4/iconvme.m4: New file.
43573 2005-02-23 Jim Meyering <jim@meyering.net>
43575 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
43577 Thanks to Bruno Haible for catching it.
43579 2005-02-22 Simon Josefsson <jas@extundo.com>
43581 * modules/iconvme: New file.
43583 * MODULES.html.sh: Add iconvme.
43585 2005-02-22 Simon Josefsson <jas@extundo.com>
43587 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
43589 2005-02-22 Simon Josefsson <jas@extundo.com>
43591 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
43593 2005-02-22 Jim Meyering <jim@meyering.net>
43595 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
43598 2005-02-20 Neil Conway <neilc@samurai.com>
43600 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
43601 returned by OSX/Darwin if the specified buffer is not large
43602 enough for the hostname.
43604 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43606 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
43607 pass it to _help, otherwise the latter coredumps trying to
43608 dereference state.root_argp.
43610 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
43612 * modules/chdir-long (Depends-on): Add memrchr.
43613 * modules/memrchr (Files): Add lib/memrchr.h.
43614 (Include): "memrchr.h".
43616 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
43618 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
43620 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
43622 * lib/memrchr.h: New file.
43623 * lib/chdir-long.c: Include it.
43624 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
43625 Don't bother including stddef.h.
43627 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
43629 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
43631 Include <sys/types.h>, for dev_t.
43632 (ME_DUMMY, ME_REMOTE): Move from here....
43633 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
43634 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
43636 Include mountlist.h first, to test the interface.
43638 2005-01-29 Bruno Haible <bruno@clisp.org>
43640 * lib/progname.c (program_name): Initialize.
43641 Needed when linking statically on MacOS X.
43643 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
43645 Sync from coreutils.
43646 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
43647 (Depends-on): Add c-strtod.
43648 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
43650 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
43652 Sync from coreutils.
43653 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
43655 Remove files that are specific to coreutils.
43656 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
43658 2005-01-28 Bruno Haible <bruno@clisp.org>
43660 * modules/javacomp: New file.
43661 * MODULES.html.sh (Java): Add javacomp.
43663 2005-01-28 Bruno Haible <bruno@clisp.org>
43665 * m4/javacomp.m4: New file, from GNU gettext.
43667 2005-01-28 Bruno Haible <bruno@clisp.org>
43669 * lib/javacomp.sh.in: New file, from GNU gettext.
43670 * lib/javacomp.h: New file, from GNU gettext.
43671 * lib/javacomp.c: New file, from GNU gettext.
43673 2005-01-26 Simon Josefsson <jas@extundo.com>
43675 * lib/gai_strerror.c: Use GPL in header.
43677 2005-01-26 Bruno Haible <bruno@clisp.org>
43679 * modules/javaexec: New file.
43680 * MODULES.html.sh (Java): Add javaexec.
43682 2005-01-26 Bruno Haible <bruno@clisp.org>
43684 * m4/javaexec.m4: New file, from GNU gettext.
43686 2005-01-26 Bruno Haible <bruno@clisp.org>
43688 * lib/javaexec.sh.in: New file, from GNU gettext.
43689 * lib/javaexec.h: New file, from GNU gettext.
43690 * lib/javaexec.c: New file, from GNU gettext.
43692 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43694 * modules/lchown (Depends-on): Remove lchown.h
43696 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43698 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
43699 must be defined if the header file was not found, in order
43700 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
43702 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43704 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
43705 initializers for struct pentry_state.
43706 (__argp_error): Check return value of __asprintf
43707 (__argp_failure): Translate error message
43709 * lib/argp-parse.c: Removed braces around the expansion of N_()
43711 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
43713 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
43714 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
43715 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
43716 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
43717 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
43718 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
43719 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
43720 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
43721 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
43722 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
43723 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
43724 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
43725 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
43726 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
43727 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
43728 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
43729 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
43730 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
43731 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
43732 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
43733 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
43734 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
43735 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
43736 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
43737 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
43738 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
43739 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
43740 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
43741 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
43742 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
43743 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
43744 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
43745 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
43746 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
43747 xstrtol.m4, xstrtoumax.m4, yesno.m4:
43748 Use an all-permissive copyright notice, recommended by RMS.
43750 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
43752 * modules/chdir-long (Depends-on): Remove mempcpy.
43754 2005-01-21 Jim Meyering <jim@meyering.net>
43756 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
43757 same value as for Solaris 9.
43759 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
43760 component length. This included changing the parameter to be
43761 of type `char *' rather than `char const *'.
43762 * lib/chdir-long.h (chdir_long): Update prototype.
43764 * lib/openat.c (fdopendir, fstatat): New functions.
43765 * lib/openat.h: Include headers required for use of DIR and struct
43767 [AT_SYMLINK_NOFOLLOW]: Define.
43768 (fdopendir, fstatat): Add prototypes.
43770 2005-01-21 Bruno Haible <bruno@clisp.org>
43772 * modules/classpath: New file.
43773 * MODULES.html.sh (Java): Add classpath.
43775 2005-01-21 Bruno Haible <bruno@clisp.org>
43777 * lib/classpath.h: New file, from GNU gettext.
43778 * lib/classpath.c: New file, from GNU gettext.
43780 2005-01-20 Simon Josefsson <jas@extundo.com>
43782 * modules/version-etc-fsf: New file.
43784 2005-01-20 Simon Josefsson <jas@extundo.com>
43786 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
43787 * lib/version-etc.c: Remove version_etc_copyright.
43788 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
43789 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
43791 2005-01-20 Simon Josefsson <jas@extundo.com>
43793 * lib/base64.h (isbase64): Add.
43795 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
43796 using a unsigned prototype, don't inline.
43797 (base64_decode): Use it.
43799 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
43801 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
43804 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
43806 * lib/save-cwd.c (save_cwd): Remove code to support the case
43807 where fchdir is missing or flaky.
43809 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
43811 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
43813 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
43815 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
43816 AC_LIBSOURCES now does this.
43817 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
43818 with new ullong_max module.
43820 2005-01-19 Bruno Haible <bruno@clisp.org>
43822 * modules/sh-quote: New file.
43823 * MODULES.html.sh (Executing programs): Add sh-quote.
43825 2005-01-19 Bruno Haible <bruno@clisp.org>
43827 * lib/sh-quote.h: New file, from GNU gettext.
43828 * lib/sh-quote.c: New file, from GNU gettext.
43830 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
43832 Merge from coreutils.
43833 * m4/ullong_max.m4: New file.
43834 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
43835 (gl_MACROS): Assume localeconv exists.
43837 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
43839 Merge changes from coreutils, as described below in several
43840 changelogs dated today.
43842 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
43843 (O_DIRECTORY): Remove; not needed here, since "." must be
43844 a directory. All uses removed.
43845 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
43846 universal on Suns, and we also need to test for IRIX.
43847 Revamp code to use 'if' rather than '#if'.
43848 Avoid unnecessary comparison of cwd->desc to 0.
43850 * lib/utimens.c (futimens): Robustify the previous patch, by checking
43851 for known valid error numbers rather than observed invalid ones.
43853 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
43855 * modules/ullong_max: New file.
43857 * modules/chdir-long, modules/openat: New files.
43858 * modules/save-cwd (Depends-on): Depend on chdir-long.
43859 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
43861 2005-01-18 Jim Meyering <jim@meyering.net>
43863 Merge from coreutils.
43864 * m4/chdir-long.m4, m4/openat.m4: New files.
43865 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
43866 save-cwd.h. Add AC_LIBOBJ for save-cwd.
43867 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
43868 is sane and DOES follow symlinks. Besides, testing 20 different
43869 systems found no broken chown implementations.
43870 Prompted by a change in rsync's copy of this macro.
43871 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
43873 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
43875 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
43876 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
43877 NULL-means-set-to-current-time semantics.
43878 Remove temporary file immediately, rather than waiting
43879 for configure's at-exit trap code to do it.
43881 2005-01-18 Jim Meyering <jim@meyering.net>
43883 * lib/version-etc.c (version_etc_copyright): Update copyright date.
43885 * lib/utimens.c (futimens): Account for the fact that futimes
43886 can also fail with errno == ENOSYS or errno == ENOENT.
43887 Patch from Dmitry V. Levin.
43889 Change the name of the robust chdir function from chdir to chdir_long.
43890 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
43891 (restore_cwd): Use chdir_long, not chdir.
43892 * lib/chdir-long.c: Renamed from chdir.c.
43893 * lib/chdir-long.h: Renamed from chdir.h.
43894 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
43897 2005-01-18 Bruno Haible <bruno@clisp.org>
43899 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
43900 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
43901 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
43902 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
43903 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
43904 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
43905 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
43906 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
43907 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
43908 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
43909 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
43910 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
43911 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
43912 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
43913 Use an all-permissive copyright notice, recommended by RMS.
43915 2005-01-18 Bob Proulx <bob@proulx.com>
43917 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
43918 simplify offsetof() macro construct to avoid compile failure with
43919 native HP-UX 11.0 ANSI C compiler.
43921 2005-01-17 Bruno Haible <bruno@clisp.org>
43923 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
43924 redundant because stpncpy.m4 takes care of it.
43926 2005-01-17 Bruno Haible <bruno@clisp.org>
43928 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
43930 2005-01-17 Bruno Haible <bruno@clisp.org>
43932 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
43935 2005-01-17 Bruno Haible <bruno@clisp.org>
43937 * lib/fwriteerror.h (fwriteerror): Change specification to include
43939 * lib/fwriteerror.c: Include <stdbool.h>.
43940 (fwriteerror): At the end, close the file stream. Record whether
43941 stdout was already closed.
43943 2005-01-17 Bruno Haible <bruno@clisp.org>
43945 * lib/execute.c (environ): Declare if needed.
43946 * lib/pipe.c (environ): Likewise.
43947 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
43949 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43951 * modules/argp: Depend on vsnprintf
43953 2005-01-10 Jim Meyering <jim@meyering.net>
43955 * modules/closeout (Depends-on): Add atexit.
43957 2005-01-06 Bruno Haible <bruno@clisp.org>
43959 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
43961 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
43963 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
43964 definitions to be after all include files, to avoid collisions.
43965 Problem reported by Bob Proulx.
43967 2005-01-04 Jim Meyering <jim@meyering.net>
43969 Changes imported from coreutils.
43970 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
43971 as the mkstemp template, use a temporary directory and an
43972 8.3-friendly template to avoid trouble on systems like DJGPP.
43973 Reported by Juan M. Guerrero via Stepan Kasal.
43974 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
43975 close. Remove the temporary directory right away, rather than waiting
43976 for configure's at-exit trap code to do it.
43977 Suggestion from Stepan Kasal.
43979 2005-01-01 Simon Josefsson <jas@extundo.com>
43981 * gnulib-tool: Print #include directives when --import'ing.
43983 2004-12-28 Simon Josefsson <jas@extundo.com>
43985 * tests/test-base64.c: Include required header files. Remove
43988 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
43990 * modules/error (Depends-on): Remove gettext.
43992 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
43994 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
43995 not needed. This removes a dependency on the gettext module.
43996 [defined _LIBC]: Do not include <libintl.h>; not needed.
43998 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
44000 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
44001 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
44003 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
44005 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
44008 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
44010 * modules/getdate (Depends-on): Remove alloca-opt.
44012 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
44014 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
44016 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
44018 * lib/argp-parse.c: Include <stddef.h>.
44019 (alignof, alignto): New macros.
44020 (parser_init): Don't assume that void * is aligned sufficiently
44023 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
44024 need to extend the stack.
44025 (YYINITDEPTH): New macro, so that the initial stack isn't overly
44028 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44030 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
44032 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
44034 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
44035 (2004-10-24) change. Apparently this was a false alarm.
44037 * modules/getdate: Depend on alloca-opt, not alloca.
44039 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
44041 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
44042 Remove now-obsolete comment about AIX.
44043 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
44044 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
44045 (YYMAXDEPTH): New macro.
44047 2004-12-18 Simon Josefsson <jas@extundo.com>
44049 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
44051 2004-12-18 Bruno Haible <bruno@clisp.org>
44053 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
44055 2004-12-18 Bruno Haible <bruno@clisp.org>
44057 * lib/fatal-signal.c (fatal_signals): Make non-const.
44058 (init_fatal_signals): New function.
44059 (uninstall_handlers, install_handlers): Ignore signals that were set to
44061 (at_fatal_signal): Call init_fatal_signals.
44062 (init_fatal_signal_set): Likewise. Ignore signals that were set to
44064 Reported by Paul Eggert.
44066 2004-12-18 Bruno Haible <bruno@clisp.org>
44068 * doc/alloca.texi: New file.
44069 * doc/alloca-opt.texi: New file.
44071 2004-12-17 Jim Meyering <jim@meyering.net>
44073 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
44074 Otherwise, install-sh could exit with improper exit status when
44075 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
44077 2004-12-16 Simon Josefsson <jas@extundo.com>
44079 * tests/test-base64.c: Add license.
44081 2004-12-15 Stepan Kasal <address@hidden>
44083 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
44085 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
44087 * modules/getcwd (Files): Add m4/d-ino.m4.
44088 Suggested by Mark D. Baushke.
44090 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
44092 * lib/getdate.y (textint): New member "negative".
44093 (time_zone_hhmm): New function.
44094 Expect 14 shift-reduce conflicts, not 13.
44095 (o_colon_minutes): New rule.
44096 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
44097 (yylex): Set the "negative" member of signed numbers.
44099 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
44101 * doc/getdate.texi (Time of day items, Time zone items):
44102 Describe new formats +00:00, UTC+00:00.
44104 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
44106 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
44107 spurious "-l"s. Problem reported by Stepan Kasal.
44109 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
44111 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
44112 in Autoconf 2.59. Problem reported by Mark D. Baushke.
44114 2004-12-04 Simon Josefsson <jas@extundo.com>
44116 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
44117 Vandoorselaere <yoann@prelude-ids.org>.
44119 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
44121 Changes imported from coreutils.
44122 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
44124 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
44126 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
44128 Changes imported from coreutils.
44129 * lib/hard-locale.c: Assume <locale.h> exists.
44130 Include "strdup.h".
44131 (GLIBC_VERSION): New macro.
44132 (hard_locale): Assume setlocale exists.
44133 Rewrite to avoid #ifdef.
44134 Use strdup rather than malloc + strcpy.
44135 * lib/human.c: Assume <locale.h> exists.
44136 (human_readable): Assume localeconv exists.
44138 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
44140 * modules/hard-locale (Depends-on): Add strdup.
44142 2004-12-01 Jakub Jelinek <jakub@redhat.com>
44144 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
44145 convert T2, not T. (Imported from libc.)
44147 2004-11-30 Simon Josefsson <jas@extundo.com>
44149 * modules/restrict (License): Change to LGPL.
44151 2004-11-30 Simon Josefsson <jas@extundo.com>
44153 * m4/restrict.m4: Add copyright and copying conditions.
44155 2004-11-30 Simon Josefsson <jas@extundo.com>
44157 * m4/base64.m4: New file.
44159 2004-11-30 Simon Josefsson <jas@extundo.com>
44161 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
44164 * tests/test-base64.c: New file.
44166 * modules/base64: New file.
44168 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
44170 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
44171 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
44173 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
44175 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
44177 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
44178 (__getcwd.c): Don't restore errno; glibc doesn't.
44179 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
44180 first, falling back to our code only if its results look suspicious.
44181 Ensure that the resulting buffer is only as large as necessary.
44183 * lib/readutmp.c: Include readutmp.h first.
44184 Include <errno.h>, since readutmp.h no longer does that.
44185 * lib/readutmp.h: Don't include <errno.h>,
44186 <sys/param.h>, <time.h>; not needed to establish interface.
44187 (errno): Remove decl.
44188 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
44189 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
44190 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
44192 2004-11-28 Simon Josefsson <jas@extundo.com>
44194 * lib/base64.h, base64.c: New file.
44196 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
44198 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
44200 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
44202 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
44203 (Depends-on): Remove pathmax, same. Add mempcpy.
44204 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
44205 (Makefile.am): Append getcwd.h to lib_SOURCES.
44206 (Include): Add getcwd.h.
44207 (Maintainer): Change from Jim Meyering to "all, glibc",
44208 since getdate now uses intended-for-glibc code.
44209 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
44210 (Depends-on): Depend on getcwd. Do not depend on pathmax.
44212 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
44214 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
44215 HP's ANSI C compiler.
44216 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
44217 Declaring int functions causes warnings on some modern systems and
44218 shouldn't be needed to compile on ancient ones.
44219 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
44222 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
44223 with the following changes.
44224 (__set_errno): Parenthesize properly.
44225 Include <stdbool.h>.
44226 (MIN, MAX, MATCHING_INO): New macros.
44227 (__getcwd): Define with prototype, not K&R form.
44228 Use heuristics to allocate default buffer on stack if possible.
44229 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
44230 behavior, and to avoid the PATH_MAX limit when computing
44232 Use MATCHING_INO to compare inode number to file.
44233 Check for arithmetic overflow in size calculations.
44234 Fix bug in reallocation of dot array that caused getcwd to fail
44235 on directories nested deeper than 75.
44236 Be more careful about saving errno on error.
44237 Do not use realloc; use only free+malloc, as this is a bit
44238 more flexible and avoids a needless copy operation.
44239 Do not inspect st_dev and st_ino for symbolic links; POSIX
44240 doesn't specify the latter.
44241 Check for closedir errors.
44242 Avoid needless casts.
44243 Use "#ifdef weak_alias" around weak_alias, to be like other
44245 The following changes to getcwd.c have effect only when used in
44246 gnulib; they have no effect inside glibc proper.
44247 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
44248 as alloca isn't used.
44249 (alloca, __alloca): Likewise.
44250 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
44251 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
44252 unconditionally, as gnulib assumes C89 or better.
44253 Do not include <sys/param.h>.
44254 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
44255 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
44257 (NULL) [!defined NULL]: Remove; we assume C89 or better.
44258 Include <dirent.h> in a way that is compatible with modern Autoconf.
44259 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
44260 New macros, if not already defined.
44261 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
44262 Use "_LIBC", not "defined _LIBC", for consistency.
44263 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
44265 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
44266 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
44267 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
44268 credit only to Jim Meyering and adjust the copyright dates.
44269 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
44270 <stdlib.h>, <unistd.h>, "pathmax.h".
44271 Instead, include "xgetcwd.h" (first) and "getcwd.h".
44272 (INITIAL_BUFFER_SIZE): Remove.
44273 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
44275 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
44277 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
44278 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
44279 Use the _ONCE methods, for efficiency.
44280 Check for fcntl.h. In test program, include <errno.h>
44281 and <fcntl.h> if available. Remove old K&R cruft from
44282 test program. Check for common errors in GNU/Linux,
44283 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
44284 don't do AC_LIBOBJ, as that's getcwd.m4's job.
44285 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
44286 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
44288 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
44289 accommodate new getcwd.c.
44290 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
44291 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
44292 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
44293 that's all we need now.
44295 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44297 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
44298 argp-parse.c depends on getopt internals, that means we should
44299 always use our getopt, to be on the safe side.
44300 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
44301 order not to spoil the result of an eventual previous invocation
44302 of gl_GETOPT_SUBSTITUTE.
44304 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44306 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
44307 redefinition warnings. To avoid them, include the defines
44308 in `#if !defined __need_getopt ... #endif'. The only place
44309 where __getopt_argv_const is used is in definitions
44310 of getopt_long and getopt_long_only below, which are as well
44311 protected by `#ifndef __need_getopt'.
44312 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
44313 __need_getopt after including <stdio.h> and <unistd.h> These
44314 headers might have defined it.
44316 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
44318 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
44320 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
44322 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
44323 (futimens): New function, which uses futimes if available.
44324 (futimens, utimens): Support timespec==NULL, with same semantics
44325 as utime and utimens.
44326 * lib/utimens.h (futimens): New decl.
44328 2004-11-23 Jim Meyering <jim@meyering.net>
44330 * lib/getopt_.h: Remove trailing blanks.
44332 2004-11-23 Jim Meyering <jim@meyering.net>
44334 * lib/__fpending.c: Add comment.
44336 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
44338 * modules/canonicalize (Depends-on): Add xreadlink.
44339 Problem reported by James Youngman.
44341 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
44343 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
44345 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
44346 optopt): Use them instead of invoking ## directly; otherwise, the
44347 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
44349 2004-11-19 Bruno Haible <bruno@clisp.org>
44351 * lib/strtok_r.c: Move comments from here...
44352 * lib/strtok_r.h: ... to here.
44354 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
44356 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
44357 implementations that mishandle size_t overflow.
44359 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
44361 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
44362 might fail. Problem reported by Yoann Vandoorselaere.
44363 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
44364 implementations that mishandle size_t overflow.
44366 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44368 * modules/canon-host (Depends-on): Add strdup.
44370 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44372 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
44374 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44376 * lib/canon-host.c: Include "strdup.h".
44377 (canon_host): Use getaddrinfo if available, so that IPv6 works.
44378 Use strdup instead of malloc/strcpy to duplicate strings.
44380 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
44381 (human_space_before_unit): New constant.
44382 * lib/human.c (human_readable): Support it.
44384 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
44385 (xgetcwd): Set errno correctly when failing.
44386 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
44387 the failure is actually due to a PATH_MAX problem.
44389 Further getopt changes to make it more likely that glibc will
44390 buy the changes back.
44391 * lib/getopt.c (POSIXLY_CORRECT): New constant.
44392 (getopt): Use it, so to preserve glibc semantic
44393 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
44394 when compiling for libc.
44395 * lib/getopt_.h (__getopt_argv_const): Bring it back.
44396 (getopt_long, getopt_long_only): Use it.
44398 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44399 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
44400 (getopt): Argv is now char * const *, as per standard.
44401 (_getopt_internal_r, _getopt_internal): Argv is now char **,
44402 not char *__getopt_argv_const *.
44403 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44404 _getopt_long_only_r): Likewise.
44405 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
44406 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44407 _getopt_long_r, _getopt_long_only_r): Likewise.
44408 * lib/getopt_.h (__getopt_argv_const): Remove.
44409 (getopt): Argv is now char * const *, as per standard.
44411 * lib/getdate.y (tORDINAL): New token.
44412 (day, relunit): Allow it for relative times.
44413 (relative_time_table): Use tORDINAL for ordinals.
44415 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44417 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
44418 Document that "second" isn't allowed as an ordinal number.
44420 2004-11-16 Jim Meyering <jim@meyering.net>
44422 * modules/closeout (Depends-on): Add fpending.
44424 2004-11-15 Jim Meyering <jim@meyering.net>
44426 * lib/closeout.c: Include "__fpending.h" once again.
44427 Include <stdbool.h>.
44428 (close_stdout): Don't fail just because stdout was closed initially,
44429 since some programs don't write to stdout in the normal course of
44430 operation (other than --version and --help), and we don't want this
44431 function to make e.g. `touch file >&-' fail.
44432 But do fail if it was closed and someone has tried to write to it.
44433 E.g., `printf foo >&-' must fail.
44435 2004-11-13 Jim Meyering <jim@meyering.net>
44437 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
44439 2004-11-12 Simon Josefsson <jas@extundo.com>
44441 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
44442 small doc fix is still pending.
44444 2004-11-11 Simon Josefsson <jas@extundo.com>
44446 * modules/strtok_r: New file.
44448 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44451 2004-11-11 Simon Josefsson <jas@extundo.com>
44453 * m4/strtok_r.m4: New file.
44455 * m4/getopt.m4: Replace opterr.
44457 2004-11-11 Simon Josefsson <jas@extundo.com>
44459 * lib/strtok_r.h, strtok_r.c: New file.
44461 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
44463 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
44464 of replacing opterr, getopt, etc. This should handle the
44465 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
44467 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
44469 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
44470 we can stop lying to compilers about the constness of argv when we
44471 are compiled outside glibc.
44472 (getopt, getopt_long, getopt_long_only): Use it.
44473 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44474 _getopt_internal, getopt): Likewise.
44475 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44476 _getopt_long_only_r): Likewise.
44477 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44478 _getopt_long_r, _getopt_long_only_r): Likewise.
44480 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
44481 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
44482 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
44483 the other external symbols.
44484 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
44485 declaration, since the above renaming now works around collisions.
44487 2004-11-11 Jim Meyering <jim@meyering.net>
44489 * lib/linebreak.c: Remove trailing blanks.
44490 * lib/alloca_.h: Likewise.
44491 * lib/acosl.c: Likewise.
44492 * lib/euidaccess.c: Likewise.
44493 * lib/allocsa.h: Likewise.
44495 2004-11-10 Simon Josefsson <jas@extundo.com>
44497 * m4/getaddrinfo.m4: New file.
44499 2004-11-10 Simon Josefsson <jas@extundo.com>
44501 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
44503 2004-11-10 Simon Josefsson <jas@extundo.com>
44505 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44508 * modules/getaddrinfo: New file.
44510 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
44512 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
44514 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
44516 * lib/mktime.c (SHR): New macro, which is a portable
44517 substitute for >> that should work even on Crays.
44518 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
44519 Problem reported by Mark D. Baushke in
44520 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
44521 * lib/getdate.y (SHR): Likewise.
44523 * lib/strftime.c (SHR): Likewise.
44525 * lib/quotearg.c (struct quoting_options): Use unsigned int for
44526 quote_these_too, so that right shifts are well defined. All uses
44529 2004-11-10 Jim Meyering <jim@meyering.net>
44531 Ensure that no close failure goes unreported.
44532 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
44533 return early when it seems there's nothing to flush.
44534 Don't include __fpending.h.
44536 2004-11-10 Jim Meyering <jim@meyering.net>
44538 * modules/closeout (Depends-on): Remove fpending.
44540 2004-11-10 Jim Meyering <jim@meyering.net>
44542 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
44544 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
44546 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
44548 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
44549 and AC_REQUIRE when possible, to avoid duplicate checks.
44550 Check for <wchar.h>.
44552 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
44554 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
44556 2004-11-09 Bruno Haible <bruno@clisp.org>
44558 * m4/sockpfaf.m4: New file.
44560 2004-11-05 Bruno Haible <bruno@clisp.org>
44562 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
44563 Reported by Mark D. Baushke <mdb@cvshome.org>.
44565 2004-11-04 Bruno Haible <bruno@clisp.org>
44567 2004-09-11 Bruno Haible <bruno@clisp.org>
44568 * allocsa.valgrind: New file.
44569 2004-02-06 Bruno Haible <bruno@clisp.org>
44570 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
44571 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
44572 Reported by Christopher Seip <chris.seip@hp.com>.
44574 2004-11-04 Bruno Haible <bruno@clisp.org>
44576 * modules/allocsa (Files): Add lib/allocsa.valgrind.
44577 (Makefile.am): Distribute it.
44579 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
44581 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
44582 with errno == ERANGE if the buffer is too small.
44583 Problem reported by Mark D. Baushke.
44585 2004-11-03 Albert Chin <china@thewrittenword.com>
44586 Paul Eggert <eggert@cs.ucla.edu>
44588 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
44589 equivalent, substitute $ac_type for equivalent type rather than
44590 blindly using uint32_t *always* which won't work if uint32_t is not
44591 available. Define _UINT32_T to work around typedef of uint32_t if
44592 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
44595 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
44597 * m4/jm-macros.m4: Sync from coreutils.
44598 (gl_MACROS): Check for mbrlen, for pathchk.
44599 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
44601 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
44603 * lib/xreadlink.c (MAXSIZE): New macro.
44604 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
44605 size does not exceed MAXSIZE. Avoid cast.
44606 As suggested by Mark D. Baushke in
44607 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
44608 if readlink fails with buffer size just under MAXSIZE, try again
44611 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
44613 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
44615 2004-11-02 Derek R. Price <derek@ximbiot.com>
44616 and Paul Eggert <eggert@cs.ucla.edu>
44618 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
44619 (get_date): Overparenthesize to avoid GCC warning.
44621 2004-11-02 Bruno Haible <bruno@clisp.org>
44623 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
44626 2004-11-02 Bruno Haible <bruno@clisp.org>
44628 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
44629 function returns void.
44631 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
44633 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
44634 fflush_unlocked, flockfile, funlockfile, funlockfile,
44635 fputs_unlocked, putc_unlocked.
44637 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
44639 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
44640 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
44643 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
44645 * modules/getdate (Files): Add doc/getdate.texi.
44646 (Depends-on): Add setenv, xalloc.
44648 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
44650 * lib/getdate.y: Add support for TZ="foo" within a date string.
44651 Fix some bugs near time_t boundaries. Reject dates with
44652 out-of-range components, e.g., "Sept 31".
44653 Include <stdlib.h>, "setenv.h", "xalloc.h".
44654 (ISDIGIT_LOCALE): Remove; unused.
44655 Note that the TZ and time functions used here are not reentrant.
44656 (mktime_ok, get_tz): New functions.
44657 (TZBUFSIZE): New constant.
44658 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
44659 This requires that we sometimes generate our own TZ="XXX..." setting.
44661 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
44663 * doc/getdate.texi: New file, from coreutils with modifications for
44664 the new TZ parsing.
44666 2004-10-27 Derek R. Price <derek@ximbiot.com>
44668 * lib/mktime.c (not_equal_tm): Remove redundant check.
44670 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
44672 * modules/regex (lib_SOURCES): Add regex.c.
44673 Reported by James Youngman in
44674 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
44676 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
44678 * lib/getdate.y: Use Bison 1.875 features, and some minor
44679 code cleanups. This change does not affect semantics.
44680 Don't include <stdlib.h>; no longer needed.
44681 Don't include unlocked-io.h; only the "#if TEST" code uses
44682 stdio, and performance isn't crucial there.
44683 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
44684 Bison 1.875 features as described below.
44685 All uses of "PC." replaced by "pc->".
44686 (YYSTYPE): Add a forward declaration.
44687 (yylex, yyerror): Use full prototypes in forward decls.
44688 Use "%pure-parser" rather than obsolescent "%pure_parser".
44689 Use %parse-param and %lex-param instead of obsolescent
44690 YYPARSE_PARAM and YYLEX_PARAM.
44691 (meridian_table, month_and_day_table, time_units_table,
44692 relative_time_table, time_zone_table, military_table,
44693 lookup_zone, lookup_word, get_date):
44694 Use NULL instead of 0 where appropriate.
44695 (to_hour): Avoid abort (), to avoid a dependency on
44697 (yyerror, yylex): Now accepts parser_control * arg.
44698 (main) [TEST]: Use '\0' rather than 0 for char.
44700 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
44702 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
44704 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
44706 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
44707 It's now the caller's responsibility to handle the case where
44708 !HAVE_GETPAGESIZE && !defined getpagesize.
44710 * lib/mktime.c (leapyear): Arg is long int, not int.
44712 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
44714 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
44716 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
44718 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
44719 missing. Problem reported by James Youngman.
44721 2004-10-16 Simon Josefsson <jas@extundo.com>
44723 * gnulib-tool: Fix comments. Fix parse problem.
44724 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
44726 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
44728 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
44729 implementation of getopt_long. Problem reported by Alexander Taler in:
44730 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
44732 2004-10-15 Bruno Haible <bruno@clisp.org>
44734 * gnulib-tool: Untabify. Initialize supplied_libname.
44735 (func_usage): More homogenous output.
44736 (func_modules_transitive_closure, func_modules_to_filelist,
44737 func_emit_lib_Makefile_am): New functions.
44738 (func_import): New function, extracted from big case statement. Use
44739 func_get_license, func_modules_transitive_closure,
44740 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
44741 opt_lgpl. Don't use test -a, as it's not portable.
44742 (func_create_testdir): Use func_modules_transitive_closure,
44743 func_modules_to_filelist, func_emit_lib_Makefile_am.
44745 2004-10-15 Bruno Haible <bruno@clisp.org>
44747 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
44749 2004-10-15 Bruno Haible <bruno@clisp.org>
44751 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
44752 the portions belonging to each module.
44753 Suggested by Derek Robert Price <derek@ximbiot.com>.
44755 2004-10-12 Simon Josefsson <jas@extundo.com>
44757 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
44758 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
44761 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
44763 * modules/vsnprintf: New file.
44765 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
44767 * m4/vsnprintf.m4: New file.
44769 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
44771 * lib/vsnprintf.h: New file.
44772 * lib/vsnprintf.c: New file.
44774 2004-10-11 Bruno Haible <bruno@clisp.org>
44776 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
44779 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
44781 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
44783 2004-10-07 Bruno Haible <bruno@clisp.org>
44785 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
44786 fits into the provided buffer.
44788 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
44790 * lib/diacrit.c, diacrit.h: Add GPL notice.
44792 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
44794 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
44795 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
44796 This avoids a potential constant-folding bug.
44798 2004-10-05 Bruno Haible <bruno@clisp.org>
44800 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
44801 for the declaration of strsep.
44803 2004-10-05 Bruno Haible <bruno@clisp.org>
44805 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
44807 2004-10-04 Simon Josefsson <jas@extundo.com>
44809 * modules/memmem: New file.
44810 * tests/test-memmem.c: New file.
44811 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
44813 2004-10-04 Simon Josefsson <jas@extundo.com>
44815 * m4/memmem.m4: New file.
44817 2004-10-04 Simon Josefsson <jas@extundo.com>
44819 * lib/memmem.h: New file.
44820 * lib/memmem.c: New file, taken from glibc.
44822 2004-10-04 Simon Josefsson <jas@extundo.com>
44824 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
44825 '#ifdef USE_UNLOCKED_IO'.
44827 2004-10-04 Simon Josefsson <jas@extundo.com>
44829 * config/srclist.txt: Add memmem from glibc.
44831 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44833 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
44835 * modules/argmatch, modules/argp, modules/closeout, modules/error,
44836 modules/exclude, modules/getdate, modules/getline,
44837 modules/getndelim2, modules/getpass, modules/getpass-gnu,
44838 modules/getusershell, modules/linebuffer, modules/md5,
44839 modules/mountlist, modules/posixtm, modules/readtokens,
44840 modules/readutmp, modules/regex, modules/sha1,
44841 modules/version-etc, modules/yesno:
44842 Remove dependency on unlocked-io.
44844 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44846 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
44848 * m4/unlocked-io.m4: Add copyright notice.
44849 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
44851 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44853 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
44854 * lib/xmalloc.c (xmemdup): Likewise.
44855 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
44856 XFREE): Remove these long-obsolescent macros.
44857 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
44858 * lib/xstrdup.c: Remove.
44860 * lib/regex.c (re_comp): Cast gettext return value to char *,
44861 Problem reported by Martin Neitzel via Mark D. Baushke.
44863 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44865 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
44866 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
44867 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
44868 regex.c, sha1.c, version-etc.c, yesno.c:
44869 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
44870 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
44871 the includer's responsibility.
44873 Sync from coreutils.
44875 * lib/modechange.c (mode_compile): Don't decrement a pointer that
44876 points to the start of a string, as the C Standard says the
44877 resulting behavior is undefined.
44879 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
44880 simple -> simple_backups, numbered_existing ->
44881 numbered_existing_backups, numbered -> numbered_backups
44882 to avoid shadowing problems. All uses changed.
44883 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
44884 * lib/backupfile.c (check_extension, numbered_backup):
44885 Rename locals to avoid shadowing 'basename'.
44886 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
44889 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
44890 * lib/.cvsignore: Add getopt.h.
44892 2004-10-04 Bruno Haible <bruno@clisp.org>
44894 * modules/README: New file.
44895 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
44898 2004-10-02 Jim Meyering <jim@meyering.net>
44900 * lib/dirfd.h, getpagesize.h: Add copyright notice.
44902 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
44904 * modules/strsep: New file.
44906 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
44908 * m4/strsep.m4: New file.
44910 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
44912 * lib/strsep.h: New file.
44913 * lib/strsep.c: New file.
44915 2004-10-01 Simon Josefsson <jas@extundo.com>
44917 * lib/snprintf.c (snprintf): Handle size==0.
44919 2004-10-01 Simon Josefsson <jas@extundo.com>
44920 Bruno Haible <bruno@clisp.org>
44922 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
44923 (snprintf): Declare 'args'.
44925 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
44927 * lib/snprintf.c: Remove comments as to why each header is needed.
44929 2004-10-01 Bruno Haible <bruno@clisp.org>
44931 * MODULES.html.sh: Add strsep.
44933 2004-09-30 Simon Josefsson <jas@extundo.com>
44935 * modules/snprintf: New file.
44937 2004-09-30 Simon Josefsson <jas@extundo.com>
44939 * m4/snprintf.m4: New file.
44941 2004-09-30 Simon Josefsson <jas@extundo.com>
44943 * lib/snprintf.h, lib/snprintf.c: New files.
44945 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44947 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
44948 (hol_entry_help): Never translate an empty string.
44949 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
44950 * lib/argp.h (OPTION_NO_TRANS): New option.
44952 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
44954 * modules/argp (Maintainer): Replace Simon Josefsson
44955 by Sergey Poznyakoff.
44957 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
44959 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
44960 changes merged back into glibc.
44962 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
44964 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
44966 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
44968 * lib/xvasprintf.c: Include xalloc.h.
44969 (xvasprintf): Use xalloc_die, not xmalloc_die.
44971 2004-09-29 Bruno Haible <bruno@clisp.org>
44973 * modules/alloca-opt: New file, derived from modules/alloca.
44974 * modules/allocsa: Depend on alloca-opt instead of alloca.
44975 * modules/setenv: Likewise.
44976 * modules/vasnprintf: Likewise.
44977 * MODULES.html.sh: Add alloca-opt.
44979 2004-09-28 Simon Josefsson <jas@extundo.com>
44981 * gnulib-tool: New parameter --lgpl, to asseert that modules are
44982 LGPL, and to replace license template from GPL to LGPL.
44984 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
44986 * modules/dummy: Change license to LGPL.
44988 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
44990 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
44992 2004-09-24 Simon Josefsson <jas@extundo.com>
44994 * modules/minmax (License): Change from GPL to LGPL.
44996 2004-09-23 Simon Josefsson <jas@extundo.com>
44998 * gnulib-tool (--import): Typo.
45000 2004-09-23 Simon Josefsson <jas@extundo.com>
45002 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
45004 2004-09-22 Bruno Haible <bruno@clisp.org>
45006 * modules/*: Add 'License' field.
45007 * gnulib-tool: Accept --extract-license option.
45008 (func_get_license): New function.
45010 2004-09-21 Bruno Haible <bruno@clisp.org>
45012 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
45013 Reported by Simon Josefsson.
45015 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
45017 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
45018 gl_AC_TYPE_LONG_LONG.
45020 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
45022 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
45024 2004-09-18 Simon Josefsson <jas@extundo.com>
45025 and Paul Eggert <eggert@cs.ucla.edu>
45027 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
45028 calls with autoreconf. Define GL_LIB.
45030 2004-09-14 Karl Berry <karl@gnu.org>
45032 * config/srclist.txt: unsync setenv.c, sigh.
45034 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
45036 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
45037 Problem reported by Bruno Haible in:
45038 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
45040 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
45042 * config/srclist.txt: Comment out argp-pvh.c.
45044 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
45046 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
45047 in case some system header has #define'd it. Problem reported by
45048 Soeren D. Schulze in
45049 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
45051 2004-09-09 Karl Berry <karl@gnu.org>
45053 * regex.[ch]: delete from the root. These were supposed to be
45054 synced with emacs cvs, but this has not happened for about
45055 a year, and anyway nothing else uses emacs regex.[ch].
45056 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
45057 lib/regex[.ch] is untouched.
45059 2004-09-09 Bruno Haible <bruno@clisp.org>
45061 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
45063 2004-09-09 Bruno Haible <bruno@clisp.org>
45065 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
45067 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
45069 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
45071 * modules/xvasprintf: New file.
45072 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
45074 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
45076 * lib/xvasprintf.h: New file.
45077 * lib/xvasprintf.c: New file.
45078 * lib/xasprintf.c: New file.
45080 2004-09-08 Bruno Haible <bruno@clisp.org>
45082 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
45084 2004-09-08 Bruno Haible <bruno@clisp.org>
45086 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
45087 length is > INT_MAX.
45088 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
45091 2004-09-08 Bruno Haible <bruno@clisp.org>
45093 * lib/stdint_.h: New file, taken from GNU clisp.
45095 2004-09-08 Bruno Haible <bruno@clisp.org>
45096 Oskar Liljeblad <oskar@osk.mine.nu>
45098 * modules/stdint: New file.
45099 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
45101 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
45103 Import from coreutils.
45104 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
45105 strings on unbounded length. alloca's performance benefits aren't
45106 that important here.
45107 (V_STRDUP): Remove.
45108 (parse_with_separator): New function, with most of the internals
45109 of the old parse_user_spec. Allow user to omit both user and group,
45110 for compatibility with FreeBSD.
45111 Clone only the user name, not the entire spec.
45112 Do not set *uid, *gid unless entirely successful.
45113 Avoid memory leak in some failing cases.
45114 Fix regression for USER.GROUP reported by Dmitry V. Levin in
45115 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
45116 (parse_user_spec): Rewrite to use parse_with_separator.
45118 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
45120 * modules/userspec: Don't depend on alloca.
45122 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
45124 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
45126 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
45128 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
45129 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
45130 utimecmp, utimens, xnanosleep. Rename sha to sha1.
45132 2004-08-16 Simon Josefsson <jas@extundo.com>
45134 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
45135 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
45136 Add --dry-run for --import.
45137 Let user provided command line parameters override configure.ac
45140 2004-08-12 Simon Josefsson <jas@extundo.com>
45142 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
45143 as discussed with Paul Eggert in threads rooted at
45144 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
45146 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
45147 Before, the test was empty, and relied on ELIDE_CODE in source
45149 (gl_PREREQ_GETOPT): New macro.
45150 (gl_GETOPT): Use them.
45152 2004-08-12 Simon Josefsson <jas@extundo.com>
45154 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
45155 * lib/getopt_.h: Renamed from getopt.h.
45157 2004-08-12 Simon Josefsson <jas@extundo.com>
45159 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
45160 Change default library name from libfoo to libgnu.
45161 Now, if you have a configure.ac that says:
45164 gl_MODULES(error getopt etcetera)
45166 you can import all you need by running:
45167 ../gnulib/gnulib-tool --import
45169 * modules/getopt (Files): Rename getopt.h to getopt_.h.
45170 (Makefile.am): Rewrite, use logic from argz.
45171 (Include): Use <getopt.h> instead of "getopt.h".
45173 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45175 * modules/argp (Files): Add m4/unlocked-io.m4.
45176 (Depends-on): Add extensions.
45178 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45180 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
45181 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
45182 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
45183 Check for program_invocation_name, program_invocation_short_name,
45184 flockfile, funlockfile, features.h, _getopt_long_only_r.
45186 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45188 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
45189 its complicated substitute.
45190 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
45191 and program_invocation_name.
45192 (__argp_basename) [!_LIBC]: Remove; the only use was
45193 replaced by its body.
45194 (__argp_short_program_name): Change condition from
45195 !defined __argp_short_program_name to
45196 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
45197 to match argp-namefrob.h.
45198 (__argp_failure): Don't assume strerror_r returns char *.
45199 * lib/argp-parse.c (N_): Define unconditionally.
45200 (argp_default_options): Fill out initializers with 0 to avoid
45203 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45205 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
45208 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45210 Merge from coreutils.
45212 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
45214 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
45215 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
45217 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45219 Merge from coreutils.
45221 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
45222 wmemchr or wmemcpy. Problem reported by Robert Dahlem
45223 for Reliant Unix 5.43.
45225 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
45226 (union fooround): Use uintmax_t, not long int.
45227 The rest is a merge from libc:
45228 [defined _LIBC]: Include <shlib-compat.h>.
45229 (_obstack) [defined _LIBC]: Remove after 2.3.4.
45231 * lib/settime.c (settime): Recode to avoid warning with
45234 * lib/strverscmp.c: Convert to UTF-8.
45236 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45238 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
45241 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45243 * modules/xalloc-die: New file.
45244 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
45246 * modules/md5 (Files): Add m4/uint32_t.m4.
45247 * modules/sha1: Renamed from modules/sha.
45249 Rename lib/sha.h to lib/sha1.h.
45250 Rename lib/sha.c to lib/sha1.c.
45251 Rename m4/sha.m4 to m4/sha1.m4.
45252 (lib_SOURCES): Likewise.
45253 (configure.ac): Rename gl_SHA to gl_SHA1.
45254 (Include): sha.h -> sha1.h.
45256 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45258 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
45259 * m4/sha1.m4: Renamed from sha.m4.
45260 (gl_SHA1): Renamed from gl_SHA. All uses changed.
45262 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45264 * lib/obstack.h (obstack_empty_p):
45265 Don't assume that chunk->contents is suitably aligned.
45266 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
45267 Likewise. Problem reported by Benno in
45268 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
45270 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
45271 readable. This could be improved further but it'd take some work.
45273 2004-08-08 Simon Josefsson <jas@extundo.com>
45275 * modules/xgethostname (Depends-on): Remove exit and error (not
45278 * modules/getpass-gnu: Add getpass.h.
45279 (Depends-on): Add stdbool.
45280 * modules/getpass: Add getpass.h.
45282 2004-08-08 Simon Josefsson <jas@extundo.com>
45284 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
45285 Check getpass declaration.
45287 2004-08-08 Simon Josefsson <jas@extundo.com>
45289 * lib/xgethostname.c: Don't include error.h (not used).
45291 * lib/getpass.h: Add.
45292 * lib/getpass.c: Include getpass.h first.
45294 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
45296 * lib/xalloc-die.c: New file.
45297 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
45299 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
45300 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
45302 (_, N_, xalloc_die): Move to xalloc-die.c.
45303 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
45304 so that we needn't mess with xalloc_msg_memory_exhausted.
45306 * lib/sha1.h: Renamed from sha.h.
45307 (SHA1_H): Renamed from _SHA_H.
45308 (sha1_ctx): Renamed from sha_ctx.
45309 (sha1_init_ctx): Renamed from sha_init_ctx.
45310 (sha1_process_block): Renamed from sha_process_block.
45311 (sha1_process_bytes): Renamed from sha_process_bytes.
45312 (sha1_finish_ctx): Renamed from sha_finish_ctx.
45313 (sha1_read_ctx): Renamed from sha_read_ctx.
45314 (sha1_stream): Renamed from sha_stream.
45315 (sha1_buffer): Renamed from sha_buffer.
45316 * lib/sha1.c: Likewise; renamed from sha.c.
45317 Do not include <sys/types.h>.
45318 Include <stddef.h> rather than <stdlib.h>.
45320 2004-08-08 Bruno Haible <bruno@clisp.org>
45322 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
45323 FILESYSTEM_PREFIX_LEN.
45324 * lib/progreloc.c: Likewise.
45325 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
45327 2004-08-06 Simon Josefsson <jas@extundo.com>
45329 * modules/progname (Depends-on): Don't depend on stdbool.
45331 2004-08-06 Simon Josefsson <jas@extundo.com>
45333 * modules/getsubopt: New file.
45334 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45337 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45339 More merge from coreutils.
45341 * m4/utimens.m4, m4/utimecmp.m4: New files.
45342 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
45343 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
45344 prereq.m4, sha.m4: Import changes from coreutils.
45346 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45348 More merge from coreutils.
45349 * modules/raise, modules/readtokens0, modules/utimens:
45350 * modules/utimecmp, module/xnanosleep: New files.
45351 * modules/strftime: Add lib/strftime.h.
45352 Change include from <time.h> to "strftime.h".
45353 * modules/yesno: Add lib/yesno.h.
45354 * modules/backupfile: Remove lib/addext.c.
45355 * modules/euidaccess: Add stat-macros.h.
45356 * modules/canonicalize, modules/euidaccess,
45357 modules/filemode, modules/lchown, modules/makepath,
45358 modules/rmdir, modules/stat: Likewise.
45360 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45363 * lib/argp-help.c (make_hol, hol_append): Don't assume that
45364 SIZE_MAX is a valid preprocessor constant.
45365 (__argp_basename): Change from "#ifndef _LIBC"
45366 to "#ifndef __argp_short_program_name", so that
45367 we don't compile these functions for tar.
45369 More merges from coreutils.
45370 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
45371 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
45372 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
45373 * lib/addext.c: Remove; no longer needed.
45374 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
45375 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
45376 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
45377 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
45378 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
45379 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
45380 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
45381 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
45382 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
45383 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
45384 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
45385 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
45386 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
45387 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
45388 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
45389 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
45390 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
45391 Import changes from coreutils.
45393 2004-08-05 Simon Josefsson <jas@extundo.com>
45395 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
45397 2004-08-05 Simon Josefsson <jas@extundo.com>
45399 * m4/getsubopt.m4: New file.
45401 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45403 Merge from coreutils.
45405 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
45406 * m4/getcwd-path-max.m4: New files.
45408 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
45409 FILESYSTEM_PREFIX_LEN ->
45410 FILE_SYSTEM_PREFIX_LEN.
45411 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
45412 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
45413 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
45414 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
45416 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
45417 prerequisite modules now handle the DOS stuff.
45418 Don't check for unistd.h.
45420 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45422 Merge from coreutils.
45424 * lib/.gdb-history: Remove; this doesn't belong here.
45426 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
45427 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
45428 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
45429 * lib/getcwd.c: New files.
45431 * lib/dirname.h: Include <stdbool.h>.
45432 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
45433 for consistency with POSIX terminology. All uses changed.
45434 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
45435 (strip_trailing_slashes): Use bool for booleans.
45436 * lib/stripslash.c (strip_trailing_slashes): Likewise.
45438 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
45439 sometimes returns a positive errno value even when it succeeds.
45440 (print_errno_message) [!LIBC]: Fall back on strerror if
45441 __strerror_r fails.
45443 * lib/path-concat.c (mempcpy): Don't define if a system header defines
45444 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
45445 (longest_relative_suffix): New function.
45446 (path_concat): Use it. Assume first argument is not NULL.
45447 Port to DOS. Omit redundant separators.
45448 Report an error instead of returning NULL.
45449 Use mempcpy instead of memcpy.
45450 (xpath_concat): Remove: not declared or used.
45452 * lib/same.h: Include <stdbool.h>
45453 (same_name): Return bool, not int.
45454 * lib/same.c (same_name): Likewise.
45455 (errno): Don't declare; we assume C89 or better now.
45457 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
45458 if not already defined.
45460 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
45461 * lib/dup-safer.c (errno): Likewise.
45463 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45465 Merge from coreutils.
45466 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
45467 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
45468 * modules/path-concat: Don't depend on strdup.
45470 2004-08-03 Simon Josefsson <jas@extundo.com>
45472 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
45473 * lib/progname.h: Don't include stdbool.h.
45475 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45477 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
45478 * MODULES.html.sh (func_all_modules): Remove fatal.
45480 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45482 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
45484 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45486 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
45489 2004-08-02 Simon Josefsson <jas@extundo.com>
45491 * lib/getsubopt.h: New file, with comments from Bruno Haible.
45492 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
45493 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
45495 2004-08-01 Simon Josefsson <jas@extundo.com>
45497 * lib/xgetdomainname.c: Include stdlib.h, for free().
45499 2004-07-19 Bruno Haible <bruno@clisp.org>
45501 * MODULES.html.sh (func_all_modules): Add dummy.
45503 2004-07-16 Simon Josefsson <jas@extundo.com>
45505 * modules/dummy: New file.
45507 2004-07-16 Simon Josefsson <jas@extundo.com>
45509 * lib/dummy.c: New file.
45511 2004-07-16 Bruno Haible <bruno@clisp.org>
45513 * lib/backupfile.h: Add extern "C" for C++.
45514 * lib/closeout.h: Likewise.
45515 * lib/copy-file.h: Likewise.
45516 * lib/findprog.h: Likewise.
45517 * lib/full-write.h: Likewise.
45518 * lib/pathname.h: Likewise.
45519 * lib/progname.h: Likewise.
45520 * lib/stpcpy.h: Likewise.
45521 * lib/stpncpy.h: Likewise.
45522 * lib/strcase.h: Likewise.
45523 * lib/strstr.h: Likewise.
45524 * lib/xalloc.h: Likewise.
45526 * lib/mbswidth.h: Add extern "C" for C++.
45527 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
45529 2004-07-13 Robert Millan <robertmh@gnu.org>
45531 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
45533 2004-07-09 Simon Josefsson <jas@extundo.com>
45535 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
45536 failed without this.)
45538 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
45540 * modules/chown (Files): Add lib/fchown-stub.c, since
45541 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
45543 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
45545 * lib/fchown-stub.c: New file.
45547 2004-06-24 Jim Meyering <jim@meyering.net>
45549 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
45551 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45553 * modules/argz: Omit "#include".
45555 * MODULES.html.sh (func_all_modules): Add calloc, to match
45556 2004-06-01 addition of calloc module.
45558 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45560 * m4/argz.m4: New file, which is autoupdated from libtool.
45562 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45564 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
45567 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45569 * config/srclist-update: Don't insist on "USA." before the
45570 close-comment, as libtool omits the period and puts the */ on a
45572 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
45573 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
45575 2004-06-22 Gary V. Vaughan <gary@gnu.org>
45577 * modules/argz: New file.
45578 * MODULES.html.sh (func_all_modules): Add argz.
45580 2004-06-12 Jim Meyering <jim@meyering.net>
45581 and Paul Eggert <eggert@cs.ucla.edu>
45583 * modules/hash (Files): Add lib/xalloc.h.
45584 * modules/pipe (Depends-on): Add wait-process.
45585 * modules/stat (Depends-on): Add xalloc.
45586 * modules/userspec (Files): Add lib/userspec.h.
45589 Upgrade from gettext-0.13.
45590 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
45591 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
45592 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
45594 2004-06-10 Jim Meyering <jim@meyering.net>
45596 * lib/calloc.c: New file.
45598 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
45600 * lib/getdate.y (yylex): Allow space between sign and number.
45601 Problem reported by Dan Jacobson.
45603 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
45605 Merge from coreutils CVS.
45607 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
45608 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
45609 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
45610 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
45611 xstrtol.m4: Fix copyright date and/or serial number.
45613 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
45614 See if we need an fchown replacement.
45615 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
45616 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
45617 and use the replacement function if we detect either defect.
45619 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
45622 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
45623 and Jim Meyering <jim@meyering.net>
45625 Merge from coreutils CVS.
45627 * lib/stat-macros.h: New file, with contents from file-type.h
45628 and coreutils' system.h.
45629 * lib/file-type.c: Include "stat-macros.h".
45630 * lib/file-type.h (file_type): Move all macro definitions to new file,
45633 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
45634 Wrap old code with this conditional.
45635 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
45636 function that does not dereference symlinks.
45637 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
45639 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
45640 dependency problems.
45641 (xreadlink): Accept new arg SIZE, for efficiency.
45642 All decls and uses changed.
45643 * lib/xreadlink.h: Include <stddef.h>, for size_t.
45645 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
45646 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
45648 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
45651 2004-06-01 Jim Meyering <jim@meyering.net>
45653 * m4/calloc.m4: New file.
45655 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
45657 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
45658 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
45659 Also, fix a typo in a diagnostic.
45661 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
45663 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
45664 or AC_FUNC_REALLOC.
45666 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
45668 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
45669 macros to be defined.
45670 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
45671 the allocator returns NULL because the requested size is zero.
45673 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
45675 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
45676 var. Add comment explaining why libc still defines it. This
45677 merges the following patch from glibc:
45678 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
45680 2004-05-20 Andreas Schwab <schwab@suse.de>
45682 * m4/free.m4: Replace free if it not known to work, not the other
45685 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
45687 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
45688 present in glibc since revision 1.1 of this file.
45689 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
45690 obstack_alignment_mask, obstack_alloc, obstack_base,
45691 obstack_blank, obstack_blank_fast, obstack_chunk_size,
45692 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
45693 obstack_grow0, obstack_init, obstack_int_grow,
45694 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
45695 obstack_next_free, obstack_object_size, obstack_ptr_grow,
45696 obstack_ptr_grow_fast, obstack_room): Remove declarations of
45697 nonexistent functions.
45699 2004-05-18 Karl Berry <karl@gnu.org>
45701 * config/srclist.txt: break link for vasnprintf.c.
45703 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
45705 Port obstack to the AS/400, where pointers are 16 bytes wide and
45706 you cannot cast an integer to a valid pointer. This patch is
45707 currently waiting to be integrated into glibc; see
45708 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
45710 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
45711 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
45712 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
45713 (struct obstack): temp member is now a union of a pointer and
45714 an integer, instead of an integer. All integer uses changed.
45715 This does not affect the physical layout of struct obstack,
45716 except on hosts (like the AS/400) where the size or alignment of
45717 void * is greater than that of ptrdiff_t.
45718 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
45719 __STDC__)]: Store temporary in pointer member of union, not
45721 * lib/obstack.c: Include <stddef.h>, for offsetof.
45722 (struct fooalign): Remove; it doesn't need a name.
45723 (union fooround): Change double to long double, and add void *.
45724 (DEFAULT_ALIGNMENT): Use offsetof to compute.
45725 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
45726 not a macro. Hence the values are always int; so remove all
45727 casts-to-int in uses.
45729 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
45731 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
45732 we can get this patch merged into glibc.
45734 2004-05-17 Derek R. Price <derek@ximbiot.com>
45735 Paul Eggert <eggert@cs.ucla.edu>
45737 * m4/argp: Depend on alloca.
45739 2004-05-17 Derek R. Price <derek@ximbiot.com>
45740 Paul Eggert <eggert@cs.ucla.edu>
45742 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
45745 2004-05-17 Bruno Haible <bruno@clisp.org>
45747 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
45748 precision that consists of a '.' followed by an empty digit string.
45749 Patch by Tor Lillqvist <tml@iki.fi>.
45751 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
45753 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
45754 for backward compatibility with older code. We need our own
45755 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
45756 it under some other name, and our alloca.h will define it.
45758 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
45759 Derek Price <derek@ximbiot.com>
45761 * lib/alloca.c: Include <alloca.h>, to get our interface.
45762 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
45763 include <alloca.h> first. Use C89 prototype for alloca; this
45764 requires including <stddef.h> for size_t. Use extern "C" if C++.
45765 Use #elif for simplicity, since we can assume C89 now.
45766 Don't try to source the system alloca.h since it will not be found
45767 and to prevent recursively including its replacement.
45768 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
45769 * lib/regex.c: Likewise.
45771 2004-05-16 Derek Price <derek@ximbiot.com>
45772 Paul Eggert <eggert@cs.ucla.edu>
45774 getline cleanup. This changes the getndelim2 API: both order of
45775 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
45778 * lib/getline.c: Don't include stddef.h or stdio.h, since our
45779 interface does that.
45780 (getline): Always use getdelim, so that we don't have two
45781 copies of this code.
45782 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
45784 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
45785 (GETNDELIM2_MAXIMUM): New macro.
45786 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
45787 instead of the old practice of delim2==0. All callers changed.
45788 Return -1 on overflow, instead of returning junk.
45789 Do not set *linesize unless allocation succeeds.
45790 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
45791 that we include sys/types.h.
45792 * lib/getnline.h: Likewise.
45793 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
45794 (getndelim2): Reorder arguments.
45795 * lib/getnline.c (getnline, getndelim):
45796 Don't discard the NMAX argument.
45797 (getnline): Invoke getndelim, to avoid code duplication.
45798 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
45799 of (size_t) -1 by callers of the getnline family.
45801 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
45803 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
45804 Check for gettimeofday.
45805 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
45806 Check for settimeofday, stime.
45808 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
45810 * lib/nanosleep.c (suspended): Change its type from int to
45811 sig_atomic_t volatile.
45812 (first_call): Make it private to rpl_nanosleep, and have it
45813 be zero initially as that's a bit faster.
45814 (my_usleep): Round up fractional times instead of truncating them,
45815 as this is the usual meaning for 'sleep'.
45817 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
45819 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
45820 (ENOSYS): Define if not defined.
45821 (settime): Fall back on stime if it exists and settimeofday fails.
45822 But don't bother with fallbacks if a method fails with errno == EPERM.
45824 2004-05-11 Jim Meyering <jim@meyering.net>
45826 Prior to this change, the save_cwd caller required read access to the
45827 current directory on most systems (ones with the fchdir function).
45829 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
45830 fails, try write-only, and finally, resort to using xgetcwd.
45832 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
45834 * lib/obstack.c, obstack.h: Import changes from libc.
45836 2004-04-28 Bruno Haible <bruno@clisp.org>
45838 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
45839 also implicitly appends .exe to executables.
45840 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
45841 accepts Windows pathnames.
45842 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
45843 Treat Cygwin like Windows, since it now accepts Windows pathnames.
45844 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
45845 Treat Cygwin like Windows, since it now accepts Windows pathnames.
45846 Reported by Derek Robert Price <derek@ximbiot.com>.
45848 2004-04-21 Karl Berry <karl@gnu.org>
45850 * config/srclist.txt (localcharset.c): break sync.
45852 2004-04-20 Paul Eggert <eggert@twinsun.com>
45854 * m4/host-os.m4: Add a copyright notice.
45856 2004-04-20 Jim Meyering <jim@meyering.net>
45858 Change UTILS_ to gl_ in AC_DEFINE'd names.
45859 Change utils_- and jm_-prefixed variables, too.
45860 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
45861 UTILS_FUNC_MKDIR_TRAILING_SLASH.
45862 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
45864 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
45865 Don't emit trailing blanks.
45866 Also rename jm_-prefixed variables to have gl_ prefix.
45868 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
45869 Also rename jm_-prefixed variables to have gl_ prefix.
45871 * m4/jm-macros.m4: Reflect the renamings.
45872 * m4/prereq.m4: Likewise.
45874 2004-04-20 Jim Meyering <jim@meyering.net>
45876 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
45879 2004-04-20 Jim Meyering <jim@meyering.net>
45880 Bruno Haible <bruno@clisp.org>
45882 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
45883 memory when realloc fails.
45885 2004-04-19 Jim Meyering <jim@meyering.net>
45887 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
45888 now that readutmp.c may call `free (0)'.
45890 2004-04-19 Bruno Haible <bruno@clisp.org>
45892 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
45893 * m4/inttypes_h.m4: Likewise.
45894 * m4/stdint_h.m4: Likewise.
45895 * m4/intmax_t.m4: Likewise.
45896 * m4/uintmax_t.m4: Likewise.
45898 2004-04-18 Jim Meyering <jim@meyering.net>
45900 * m4/prereq.m4: Don't forbid jm_ prefix.
45902 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
45903 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
45904 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
45905 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
45906 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
45907 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
45908 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
45909 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
45910 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
45911 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
45912 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
45913 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
45914 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
45915 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
45916 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
45917 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
45918 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
45919 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
45920 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
45922 2004-04-18 Jim Meyering <jim@meyering.net>
45924 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
45925 failure, don't leak memory and do call END_UTMP_ENT.
45927 2004-04-16 Jim Meyering <jim@meyering.net>
45929 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
45930 coreutils' stat program.
45931 (gl_PREREQ): Don't require jm_PREREQ_STAT.
45933 2004-04-11 Paul Eggert <eggert@twinsun.com>
45935 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
45937 (CHAR_BIT): Remove, since we assume C89.
45938 Include <stdint.h> if available, as per current Autoconf CVS advice.
45940 2004-03-31 Jim Meyering <jim@meyering.net>
45942 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
45943 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
45944 * m4/xalloc.m4: Likewise.
45946 2004-03-30 Paul Eggert <eggert@twinsun.com>
45948 Merge from coreutils.
45950 * m4/inttostr.m4: New file.
45951 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
45952 Require AM_STDBOOL_H and gl_TIMESPEC instead.
45953 Require gl_CLOCK_TIME.
45954 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
45956 2004-03-30 Paul Eggert <eggert@twinsun.com>
45958 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
45959 not bool, to be more consistent with Unix conventions.
45960 Suggested by Bruno Haible.
45962 Merge from coreutils.
45964 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
45965 * lib/umaxtostr.c: New files.
45967 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
45968 the usual <time.h> dance.
45969 (get_date): Change signature to support fractional time stamps.
45970 All callers changed.
45971 * lib/getdate.y: Include "getdate.h" first, as we can now
45972 assume C89 and don't need to worry about 'const'.
45973 Similarly, include "unlocked-io.h" near start, not in middle.
45974 Include <limits.h>.
45975 (textint.value): Use long int rather than int.
45976 (textint.digits): Use size_t rather than int.
45977 (BILLION, LOG10_BILLION): New constants.
45978 (parser_control): New member rel_ns. Members day_ordinal,
45979 time_zone, month, day, hour, minutes, rel_year, rel_month,
45980 rel_day, rel_hour, rel_minutes, rel_seconds
45981 are now long int, not int. Member seconds is now struct timespec,
45982 not int. New member timespec_seen. Members dates_seen, days_seen,
45983 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
45985 (%union.intval): Now long int, not int.
45986 New member timespec.
45987 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
45988 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
45989 (spec): Now is a timespec or an item list.
45990 (timespec, items): New nonterminals.
45991 (time, rel, relunit, number, get_date):
45992 Add support for fractional seconds.
45993 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
45994 (gmtime, localtime, mktime): Remove decls; not needed with C89.
45995 (to_hour): First arg is now long int, not int.
45996 (to_year): Returns long int, not int.
45997 Don't treat year -70 like 70.
45998 (tm_diff): Returns long int, not int.
45999 (lookup_word): Use bool instead of int when appropriate.
46000 (yylex): Use size_t for count, not int.
46001 Detect overflow when parsing large integer constants.
46002 Add support for fractions.
46003 (get_date): Make pointers 'const' if possible.
46004 Use more-portable code to detect integer overflow.
46005 (main) [TEST]: Adjust to above changes. Test for localtime failure.
46006 Don't use ctime; it's not reliable if the year has >4 digits.
46008 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
46009 This is for compatibility with BSD.
46011 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
46012 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
46013 From coreutils' system.h.
46015 * lib/userspec.c: Don't include "posixver.h".
46016 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
46017 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
46018 compatible extension. Simplify code by removing a boolean int
46019 that was always nonzero if a string was nonnull.
46021 2004-03-30 Jim Meyering <jim@meyering.net>
46023 Merge from coreutils.
46025 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
46026 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
46027 on some systems one must include <grp.h> before it.
46028 Reported by Christian Krackowizer.
46030 2004-03-30 Jim Meyering <jim@meyering.net>
46032 Merge from coreutils.
46034 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
46036 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
46037 an empty input stream.
46039 * lib/readtokens.c: Include <stdbool.h>.
46040 (readtoken): Use `size_t' rather than int/long.
46041 All callers adjusted.
46042 Use `bool' rather than `int' where appropriate.
46043 Use memset rather than an explicit loop.
46044 Use x2nrealloc rather than xrealloc.
46045 Allow the use of `\0' as a delimiter.
46046 (readtokens): Likewise.
46047 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
46049 2004-03-30 Jim Meyering <jim@meyering.net>
46051 * m4/realloc.m4: Remove file, since now it does no more than
46052 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
46053 the `configure.ac' section of module/realloc.
46054 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
46056 2004-03-30 Bruno Haible <bruno@clisp.org>
46058 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
46061 2004-03-29 Paul Eggert <eggert@twinsun.com>
46063 Merge changes to getloadavg.c from coreutils and Emacs.
46065 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
46066 Define to an expression, not to the empty string.
46067 Include cloexec.h and xalloc.h.
46068 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
46069 Use set_cloexec_flag rather than rolling our own.
46070 * lib/cloexec.c, lib/cloexec.h: New files.
46072 2004-03-29 Paul Eggert <eggert@twinsun.com>
46074 * m4/cloexec.m4: New file.
46076 2004-03-18 Paul Eggert <eggert@twinsun.com>
46078 * lib/getopt.h: Sync with libc CVS.
46080 2004-03-18 Paul Eggert <eggert@twinsun.com>
46081 Bruno Haible <bruno@clisp.org>
46083 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
46086 2004-03-18 Paul Eggert <eggert@twinsun.com>
46087 Bruno Haible <bruno@clisp.org>
46089 * lib/mbswidth.h: Include <wchar.h> only if
46090 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
46092 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
46094 2004-03-09 Paul Eggert <eggert@twinsun.com>
46096 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
46097 Sync with libc CVS.
46098 * lib/getopt_int.h: New file, also synced from libc.
46100 2004-03-09 Paul Eggert <eggert@twinsun.com>
46102 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
46103 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
46104 Bring back getopt.c, getopt.h, getopt1.c.
46106 2004-03-07 Paul Eggert <eggert@twinsun.com>
46108 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
46109 All uses changed. Check for sa_sigaction member; this fixes
46110 a bug first reported by Jason Andrade in
46111 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46113 2004-03-07 Paul Eggert <eggert@twinsun.com>
46115 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
46116 '#if' expressions. Unlike the code it replaces, it does not
46117 depend on (defined _SC_PAGESIZE). However, it does depend on
46118 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
46119 first reported by Jason Andrade in
46120 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46122 2004-02-25 Simon Josefsson <jas@extundo.com>
46124 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
46126 2004-02-25 Simon Josefsson <jas@extundo.com>
46128 * lib/strdup.h: New file.
46129 * lib/strdup.c: Include it.
46130 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
46131 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
46133 2004-02-23 Karl Berry <karl@gnu.org>
46135 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
46136 (from fencepost.gnu.org:/gd/gnuorg).
46138 2004-02-23 Karl Berry <karl@gnu.org>
46140 * config/srclistvars.sh (GNUORG) [karl]: redefine.
46141 * config/srclist.txt: add maintain/standards documents.
46143 2004-02-18 Bruno Haible <bruno@clisp.org>
46145 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
46146 Reported by Derek Robert Price <derek@ximbiot.com>.
46148 2004-02-16 Karl Berry <karl@gnu.org>
46150 * config/mkinstalldirs, install-sh: update from automake.
46152 2004-02-06 Karl Berry <karl@gnu.org>
46154 * m4/po.m4: update from gettext 0.14.1.
46156 2004-02-06 Karl Berry <karl@gnu.org>
46158 * lib/config.charset: update from gettext 0.14.1.
46160 2004-02-05 Paul Eggert <eggert@twinsun.com>
46162 Add comments and code, prompted by suggestions from Bruno Haible
46164 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
46165 describing the enum quoting_style values.
46166 * lib/quotearg.c (quotearg_alloc): New function.
46167 (quotearg_buffer_restyled): Treat lone { and } as special.
46168 Treat = as special. Work around bug with older shells
46169 that "see" a '\' that is really the 2nd byte of a multibyte char.
46170 Quote empty string with shell_quoting_style.
46172 2004-02-03 Bruno Haible <bruno@clisp.org>
46174 * m4/pipe.m4: New file, from GNU gettext.
46176 2004-02-03 Bruno Haible <bruno@clisp.org>
46178 * lib/pipe.h: New file, from GNU gettext.
46179 * lib/pipe.c: New file, from GNU gettext.
46181 2004-01-27 Bruno Haible <bruno@clisp.org>
46183 * m4/execute.m4: New file, from GNU gettext.
46185 2004-01-27 Bruno Haible <bruno@clisp.org>
46187 * lib/execute.h: New file, from GNU gettext.
46188 * lib/execute.c: New file, from GNU gettext.
46189 * lib/w32spawn.h: New file, from GNU gettext.
46191 2004-01-24 Paul Eggert <eggert@twinsun.com>
46193 Merge from diffutils.
46195 * lib/file-type.c (file_type): Add typed memory objects.
46196 * lib/file-type.h (S_TYPEISTMO): New macro.
46198 * lib/c-stack.h (c_stack_action): Remove argv argument.
46199 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
46200 (die): Don't calculate message unless segv_action returns.
46201 (get_stack_location, min_address_from_argv, max_address_from_argv,
46202 volatile stack_base, volatile_stack_size): Remove.
46203 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
46204 that every segmentation violation is a stack overflow. (Ouch!)
46205 See Debian bug 136249 (still outstanding) for more info about why
46206 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
46208 2004-01-24 Paul Eggert <eggert@twinsun.com>
46210 Exit-status fix from coreutils.
46212 Use exit_failure consistently in place of EXIT_FAILURE,
46213 so that program exit statuses are consistent on failure.
46215 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
46216 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
46217 * lib/argmatch.h: Comment fix to match the above.
46218 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
46219 Now a macro referring to exit_failure, instead of a separate
46220 variable. Include "exitfail.h" to get it.
46221 * lib/xstrtol.h: Include "exitfail.h".
46222 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
46224 * lib/long-options.c (parse_long_options): Use prototype
46225 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
46228 2004-01-21 Jim Meyering <jim@meyering.net>
46230 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
46231 so as not to conflict with a different-sized __mktime_internal
46232 function in GNU libc.
46233 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
46234 Problem building statically-linked `ls' reported by Michael Brunnbauer.
46236 2004-01-20 Karl Berry <karl@gnu.org>
46238 * config/config.guess: update from config.
46240 * config/srclistvars.sh: GNUWWWLICENSES for karl.
46242 2004-01-20 Bruno Haible <bruno@clisp.org>
46244 Safer stack allocation.
46245 * lib/setenv.c: Include allocsa.h.
46246 (alloca): Remove fallback definition.
46247 (freea): Remove macro.
46248 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
46251 2004-01-20 Bruno Haible <bruno@clisp.org>
46253 * m4/eealloc.m4: New file, from GNU gettext.
46255 2004-01-20 Bruno Haible <bruno@clisp.org>
46257 * m4/allocsa.m4: New file, from GNU gettext.
46259 2004-01-20 Bruno Haible <bruno@clisp.org>
46261 * lib/xallocsa.h: New file, from GNU gettext.
46262 * lib/xallocsa.c: New file, from GNU gettext.
46264 2004-01-20 Bruno Haible <bruno@clisp.org>
46266 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
46268 2004-01-20 Bruno Haible <bruno@clisp.org>
46270 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
46271 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
46274 2004-01-20 Bruno Haible <bruno@clisp.org>
46276 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
46279 2004-01-20 Bruno Haible <bruno@clisp.org>
46281 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
46283 2004-01-20 Bruno Haible <bruno@clisp.org>
46285 * lib/eealloc.h: New file.
46287 2004-01-20 Bruno Haible <bruno@clisp.org>
46289 * lib/binary-io.h: Avoid warnings on Cygwin.
46291 2004-01-20 Bruno Haible <bruno@clisp.org>
46293 * lib/allocsa.h: New file, from GNU gettext.
46294 * lib/allocsa.c: New file, from GNU gettext.
46296 2004-01-18 Karl Berry <karl@gnu.org>
46298 * doc/gpl.texi, doc/lgpl.texi: new files.
46300 2004-01-18 Karl Berry <karl@gnu.org>
46302 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
46303 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
46305 2004-01-15 Paul Eggert <eggert@twinsun.com>
46307 Merge from coreutils.
46309 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
46310 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
46311 (gl_DEFAULT_POSIX2_VERSION): Move
46312 the documentation from 'configure' into 'config.hin',
46313 so that 'configure --help' isn't burdened by it and
46314 we don't have to worry about its formatting there.
46315 Reword the documentation so that it's more succinct
46316 and can be run together into a single paragraph.
46317 * m4/same.m4 (gl_SAME): Check for pathconf.
46319 2004-01-15 Paul Eggert <eggert@twinsun.com>
46321 Merge from coreutils.
46323 * lib/posixver.c: Include posixver.h.
46325 * lib/same.c: Include <stdbool.h>, <limits.h>.
46326 (_POSIX_NAME_MAX): Define if not defined.
46328 (same_name): If file names are silently truncated, report
46329 that the file names are the same if they are the same after
46330 the silent truncation.
46332 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
46333 conversion function.
46334 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
46335 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
46338 2004-01-15 Jim Meyering <jim@meyering.net>
46340 Merge from coreutils.
46342 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
46343 if no library is required.
46344 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
46345 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
46346 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
46347 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
46348 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
46349 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
46350 value, $ac_cv_search_crypt, if it's "none required".
46351 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
46352 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
46353 not gl_FUNC_GETLOADAVG.
46354 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
46355 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
46357 2004-01-15 Jim Meyering <jim@meyering.net>
46359 Merge from coreutils.
46361 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
46362 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
46363 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
46365 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
46366 optional configure-time default.
46368 * lib/version-etc.c (version_etc_copyright): Update copyright date.
46370 * lib/xreadlink.c (xreadlink): Correct outdated comment.
46372 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
46374 Merge from coreutils.
46376 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
46377 value, $ac_cv_search_nanosleep, if it's "none required".
46379 2004-01-14 Paul Eggert <eggert@twinsun.com>
46381 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
46382 with like-named macro in fnmatch.c.
46383 (EXT): Use an internal constant instead.
46385 Merge fnmatch patches from glibc.
46386 * lib/fnmatch.c (mbsinit): Remove define.
46387 Add libc_hidden_ver (__fnmatch, fnmatch).
46388 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
46389 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
46391 2004-01-14 Karl Berry <karl@gnu.org>
46393 * config/install-sh: update from automake.
46395 2004-01-13 Karl Berry <karl@gnu.org>
46397 * config/install-sh: update from automake.
46399 2004-01-09 Karl Berry <karl@gnu.org>
46401 * config/install-sh: update from automake.
46403 2004-01-05 Karl Berry <karl@gnu.org>
46405 * config/config.{sub,guess}: update from config.
46407 2003-12-31 Karl Berry <karl@gnu.org>
46409 * config/depcomp: update from automake.
46411 2003-12-14 Karl Berry <karl@gnu.org>
46413 * lib/config.charset: update from gettext-runtime.
46415 2003-12-03 Paul Eggert <eggert@twinsun.com>
46417 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
46418 Bug reported by Alfred M. Szmidt.
46420 2003-12-03 Bruno Haible <bruno@clisp.org>
46422 * m4/gettext.m4: Upgrade from gettext-0.13.
46423 * m4/po.m4: Upgrade from gettext-0.13.
46424 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
46425 * m4/intmax.m4: New file, from gettext-0.13.
46426 * m4/printf-posix.m4: New file, from gettext-0.13.
46428 2003-11-29 Karl Berry <karl@gnu.org>
46430 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
46432 2003-11-25 Paul Eggert <eggert@twinsun.com>
46433 Bruno Haible <bruno@clisp.org>
46435 * lib/printf-parse.h: Don't include sys/types.h.
46436 (ARG_NONE): New macro.
46437 (char_directive): Change type of *arg_index fields to size_t.
46438 * lib/printf-parse.c: Don't include sys/types.h.
46439 (SSIZE_MAX): Remove macro.
46440 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
46441 Remove unnecessary overflow check.
46442 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
46445 2003-11-25 Bruno Haible <bruno@clisp.org>
46447 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
46449 2003-11-25 Bruno Haible <bruno@clisp.org>
46451 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
46454 2003-11-24 Paul Eggert <eggert@twinsun.com>
46456 * modules/alloca: Remove dependency on xalloc.
46458 2003-11-24 Paul Eggert <eggert@twinsun.com>
46460 * lib/alloca.c: Remove dependency on xalloc module.
46461 (xalloc_die): Remove.
46462 (memory_full) [!defined emacs]: New macro.
46463 [!defined emacs]: Don't include xalloc.h.
46464 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
46465 address arithmetic overflows. Change datatypes a bit to avoid
46468 2003-11-22 Jim Meyering <jim@meyering.net>
46470 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
46473 2003-11-21 Karl Berry <karl@gnu.org>
46475 * config/config.{sub,guess}: update from config.
46477 2003-11-18 Karl Berry <karl@gnu.org>
46479 * config/config.{sub,guess}: update from config.
46481 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
46483 2003-11-17 Paul Eggert <eggert@twinsun.com>
46485 * README: Mention that S+T cannot overflow if S is the size of
46486 an existing object and T is sufficiently small.
46488 2003-11-17 Jim Meyering <jim@meyering.net>
46490 On systems without utime and without a utimes function capable of
46491 dealing with a NULL struct utimbuf* argument, this utime replacement
46492 could -- in unusual circumstances -- leak a file descriptor.
46493 * lib/utime.c: Include <unistd.h> and <errno.h>.
46494 (utime_null): Be sure to close `fd' and to preserve errno.
46495 Reported by Geoff Collyer via Arnold Robbins.
46497 2003-11-17 Bruno Haible <bruno@clisp.org>
46499 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
46500 (Depends-on): Add xsize.
46502 2003-11-17 Bruno Haible <bruno@clisp.org>
46504 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
46506 2003-11-17 Bruno Haible <bruno@clisp.org>
46508 * lib/vasnprintf.c (alloca): Remove fallback definition.
46509 (freea): Remove definition.
46510 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
46511 Reported by Paul Eggert.
46513 2003-11-16 Paul Eggert <eggert@twinsun.com>
46514 Bruno Haible <bruno@clisp.org>
46516 Protect against address arithmetic overflow.
46517 * lib/printf-args.h: Include stddef.h.
46518 (arguments): Change type of field 'count' to size_t.
46519 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
46520 'unsigned int' where appropriate.
46521 * lib/printf-parse.h: Include sys/types.h.
46522 (char_directive): Change type of *arg_index fields to ssize_t.
46523 (char_directives): Change type of fields 'count', max_*_length to
46525 * lib/printf-parse.c: Include sys/types.h and xsize.h.
46526 (SSIZE_MAX): Define fallback value.
46527 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
46528 instead of 'int' where appropriate. Check a_allocated, d_allocated
46529 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
46530 * lib/vasnprintf.c: Include xsize.h.
46531 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
46532 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
46533 overflow. Avoid wraparound when converting a width or precision from
46536 2003-11-16 Bruno Haible <bruno@clisp.org>
46538 Update from GNU gettext.
46539 * lib/printf-parse.c: Generalize to it can be compiled for wide
46541 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
46542 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
46543 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
46544 SNPRINTF): New macros.
46545 Don't include <alloca.h> if the file is used inside libintl.
46546 (local_wcslen): New function, for Solaris 2.5.1.
46547 (VASNPRINTF): Use it instead of wcslen.
46549 2003-11-16 Bruno Haible <bruno@clisp.org>
46551 * lib/xsize.h (xmax): New function.
46552 (xsum, xsum3, xsum4): Declare as "pure" functions.
46554 2003-11-12 Paul Eggert <eggert@twinsun.com>
46556 * modules/xalloc (Files): Undo latest change, since xalloc.h
46557 no longer needs SIZE_MAX or PTRDIFF_MAX.
46559 2003-11-12 Paul Eggert <eggert@twinsun.com>
46561 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
46564 2003-11-12 Paul Eggert <eggert@twinsun.com>
46566 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
46567 "return", to pacify some unknown compiler. Problem reported
46568 by Joerg Schilling.
46570 2003-11-12 Paul Eggert <eggert@twinsun.com>
46572 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
46573 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
46574 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
46575 heuristic is just as accurate as far as we know, and it removes a
46576 dependency on size_max.m4 and ptrdiff_max.m4.
46578 2003-11-11 Bruno Haible <bruno@clisp.org>
46580 * modules/xsize (Files): Add m4/size_max.m4.
46581 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
46583 2003-11-11 Bruno Haible <bruno@clisp.org>
46585 * m4/size_max.m4: New file.
46586 * m4/ptrdiff_max.m4: New file.
46587 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
46588 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
46589 (gl_XALLOC): Invoke it.
46591 2003-11-11 Bruno Haible <bruno@clisp.org>
46593 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
46594 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
46597 2003-11-10 Paul Eggert <eggert@twinsun.com>
46599 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
46600 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
46601 rejected some allocations of exactly SIZE_MAX - 2 bytes.
46603 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
46604 not (size_t) -1, since it's defined here.
46606 2003-11-09 Karl Berry <karl@gnu.org>
46608 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
46610 2003-11-06 Paul Eggert <eggert@twinsun.com>
46612 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
46613 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
46614 Reject sizes of exactly SIZE_MAX bytes.
46615 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
46616 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
46618 2003-11-05 Bruno Haible <bruno@clisp.org>
46620 * lib/xsize.h: Include limits.h, to avoid a possible collision with
46621 SIZE_MAX defined in <limits.h> on Solaris.
46623 2003-11-04 Jim Meyering <jim@meyering.net>
46625 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
46626 variable names, rather than @VAR@.
46627 * modules/poll: Likewise.
46629 2003-11-04 Bruno Haible <bruno@clisp.org>
46631 * modules/xsize: New file.
46632 * modules/linebreak: Depend on xsize.
46633 * MODULES.html.sh (func_all_modules): Add xsize.
46635 2003-11-04 Bruno Haible <bruno@clisp.org>
46637 * m4/xsize.m4: New file.
46639 2003-11-04 Bruno Haible <bruno@clisp.org>
46641 * lib/xsize.h: New file.
46642 * lib/linebreak.c: Include xsize.h.
46643 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
46644 argument for overflow.
46645 Suggested by Paul Eggert.
46647 2003-11-03 Karl Berry <karl@gnu.org>
46649 * config/config.{guess,sub}: update from config.
46651 2003-11-03 Jim Meyering <jim@meyering.net>
46653 * modules/userspec (lib_SOURCES): Add userspec.h.
46654 (Include): Add "userspec.h".
46655 Improve description.
46657 2003-11-03 Jim Meyering <jim@meyering.net>
46659 * lib/userspec.c: Include "userspec.h".
46660 * lib/userspec.h: New file.
46662 2003-11-03 Bruno Haible <bruno@clisp.org>
46664 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
46666 2003-11-03 Bruno Haible <bruno@clisp.org>
46668 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
46669 available, to avoid (extremely rare) race condition.
46670 Suggested by Paul Eggert.
46672 2003-11-02 Karl Berry <karl@gnu.org>
46674 * config/srclist.txt (vasprintf.c): sync broken, sigh.
46676 2003-10-31 Paul Eggert <eggert@twinsun.com>
46678 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
46679 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
46680 (read_filesystem_list): Set and use me_type_malloced.
46681 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
46682 whatever the type happens to be), for brevity and consistency.
46683 Check for size calculation overflow on Alphas running OSF/1.
46685 2003-10-31 Jim Meyering <jim@meyering.net>
46687 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
46689 * lib/linebuffer.c: Include <string.h> for declaration of memset.
46691 2003-10-30 Paul Eggert <eggert@twinsun.com>
46692 Bruno Haible <bruno@clisp.org>
46694 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
46695 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
46697 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
46699 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
46700 netbsd*-gnu*. Suggested by Robert Millan.
46702 2003-10-29 Paul Eggert <eggert@twinsun.com>
46704 * modules/group-member: Depend on stdbool.
46706 2003-10-29 Paul Eggert <eggert@twinsun.com>
46708 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
46710 2003-10-29 Paul Eggert <eggert@twinsun.com>
46712 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
46713 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
46714 after the 'gnu' in these cases. This fixes some bugs in the
46715 previous change, and is based on suggestions by Robert Millan.
46717 2003-10-29 Paul Eggert <eggert@twinsun.com>
46719 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
46720 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
46722 * lib/quotearg.c (quotearg_n_options): Use it.
46723 * lib/group-member.c: Include <stdbool.h>.
46724 (free_group_info): Arg is now const *; don't free arg.
46725 (get_group_info): Now returns bool and accepts struct group_info *,
46726 rather than returning a malloc'ed struct group_info *.
46727 All uses changed. Check for overflow in internal size calculation.
46729 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
46730 rather than xmalloc/xrealloc.
46731 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
46732 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
46733 conformance bug: the old code used a pointer after freeing the
46734 storage that it addressed.
46735 * lib/hash.c (hash_initialize): Simplify the code by using
46736 xalloc_oversized rather than doing it by hand.
46737 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
46738 the buffer preserved. Use free and xmalloc instead.
46739 * lib/quotearg.c (quotearg_n_options): Likewise.
46740 Use a simpler test for size overflow. Don't use xalloc_oversized
46741 because unsigned int might be wider than size_t (!); this suggests
46742 that we should switch from unsigned int to size_t for slot numbers.
46744 2003-10-28 Paul Eggert <eggert@twinsun.com>
46746 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
46747 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
46748 NetBSD kernels. Requested by Richard Stallman.
46750 2003-10-27 Paul Eggert <eggert@twinsun.com>
46752 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
46753 to allocate the returned structure. Do not allocate a subarray,
46754 as x2nrealloc will do that.
46755 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
46756 instead of xnrealloc.
46757 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
46759 2003-10-27 Bruno Haible <bruno@clisp.org>
46761 * lib/stdbool_.h: Better support for BeOS.
46763 2003-10-26 Paul Eggert <eggert@twinsun.com>
46765 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
46768 2003-10-26 Paul Eggert <eggert@twinsun.com>
46770 * lib/xalloc.h (xalloc_oversized): New static inline function, for
46771 callers that want to do their own size-overflow checking. Include
46772 <stdbool.h>, since xalloc_oversized returns bool.
46773 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
46774 to use xalloc_oversized.
46776 Add two functions x2realloc, x2nrealloc, for programs that grow
46777 arrays dynamically by doubling their sizes.
46778 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
46779 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
46782 Port to C99 semantics for 'inline' of external functions.
46783 Bug reported by Bruno Haible.
46784 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
46785 with the old contents of xnmalloc.
46786 (xnmalloc, xmalloc): Use it.
46787 (xnrealloc_inline): New static inline function,
46788 with the old contents of xnrealloc.
46789 (xnrealloc, xrealloc): Use it.
46791 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
46794 2003-10-26 Karl Berry <karl@gnu.org>
46796 * config/srclist.txt (COPYING.DOC): no longer available from
46797 /gd/gnuorg; don't know where the ultimate source is.
46799 2003-10-25 Paul Eggert <eggert@twinsun.com>
46801 Fix several address-calculation bugs in the hash modules,
46802 plus some minor code cleanup.
46804 * lib/hash.h: Include <stdbool.h>, for bool.
46805 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
46806 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
46807 hash_get_n_entries, hash_get_max_bucket_length,
46808 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
46809 hash_rehash): Use size_t rather than unsigned.
46810 * lib/hash.c (struct hash_table, hash_get_n_buckets,
46811 hash_get_n_buckets_used, hash_get_n_entries,
46812 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
46813 hash_get_entries, hash_do_for_each, hash_string, is_prime,
46814 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
46816 (SIZE_MAX): Define if not defined.
46817 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
46818 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
46820 Use const * when possible.
46821 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
46822 (check_tuning): Fix bug: if tuning parameters were very close to
46823 0 or 1, rounding errors could have caused subscript violations.
46824 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
46825 (hash_initialize): Add 'fail:' label
46826 to free table and return NULL, and use it to simplify code.
46827 Use calloc rather than clearing the storage ourself.
46828 (hash_initialize, hash_rehash): Check for arithmetic overflow in
46829 buffer size calculations.
46830 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
46831 Include <stddef.h>, for size_t.
46832 * lib/hash-pjw.c (hash_pjw): Likewise.
46833 Switch to method described by Bruno Haible.
46834 Include <limits.h>, for CHAR_BIT.
46835 (SIZE_BITS): New macro.
46837 2003-10-23 Paul Eggert <eggert@twinsun.com>
46839 * m4/getline.m4 (AM_FUNC_GETLINE):
46840 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
46841 hosts. Problem reported by Derek Robert Price in
46842 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
46843 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
46844 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
46846 2003-10-21 Paul Eggert <eggert@twinsun.com>
46848 * lib/getndelim2.c (getndelim2): When size calculation overflows,
46849 ceiling the allocation at NMAX bytes rather than silently
46850 discarding input bytes before NMAX is reached. This makes
46851 a difference only if NMAX exceeds SIZE_MAX / 2.
46853 * lib/obstack.c: Merge from glibc.
46854 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
46855 Add libc_hidden_def (_obstack_newchunk).
46856 (_obstack_free) [! defined _LIBC]: Remove.
46857 [defined _LIBC]: Make a strong alias from obstack_free, rather than
46858 a clone of the function body.
46859 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
46860 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
46862 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
46864 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
46867 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
46868 (obstack_ptr_grow_fast, obstack_int_grow_fast):
46869 Don't use lvalue casts, as GCC plans to remove support for them
46870 in GCC 3.5. Reported by Joseph S. Myers. This bug
46871 was also present in the non-GCC version, indicating that this
46872 code had always been buggy and had never been widely used.
46873 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
46874 Use the fast variant of each macro, rather than copying the
46875 definiens of the fast variant; that way, we'll be more likely to
46876 catch future bugs in the fast variants.
46878 2003-10-20 Bruno Haible <bruno@clisp.org>
46880 * modules/wait-process: New file.
46881 * MODULES.html.sh (func_all_modules): Add wait-process.
46883 2003-10-20 Bruno Haible <bruno@clisp.org>
46885 * m4/wait-process.m4: New file.
46887 2003-10-20 Bruno Haible <bruno@clisp.org>
46889 * lib/wait-process.h: New file, from GNU gettext.
46890 * lib/wait-process.c: New file, from GNU gettext.
46892 2003-10-19 Jim Meyering <jim@meyering.net>
46894 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
46897 2003-10-18 Karl Berry <karl@gnu.org>
46899 * config/config.guess: update from config.
46901 2003-10-16 Paul Eggert <eggert@twinsun.com>
46903 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
46904 (getgroups): First arg is int, not size_t.
46905 Don't let 'free' mangle errno.
46907 2003-10-16 Paul Eggert <eggert@twinsun.com>
46909 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
46911 2003-10-16 Karl Berry <karl@gnu.org>
46913 * config/config.{guess,sub}: update from config.
46915 2003-10-16 Jim Meyering <jim@meyering.net>
46917 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
46920 2003-10-15 Paul Eggert <eggert@twinsun.com>
46922 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
46923 (SIZE_MAX): Remove.
46924 (new_exclude, add_exclude_file): Initial size no longer needs to
46926 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
46927 our own address arithmetic overflow checking.
46929 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
46930 (fnmatch): Do not alloca more than 2000 wide characters;
46931 instead, use malloc for large buffers.
46932 Check for address arithmetic overflow, and return -1
46933 with errno set to ENOMEM in that case.
46934 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
46935 (NEW_PATTERN): Do not alloca more than 8000 bytes;
46936 instead, return -1. Check for address arithmetic overflow.
46938 2003-10-14 Paul Eggert <eggert@twinsun.com>
46940 Handle invalid suffixes and overflow independently, so that
46941 callers can treat them independently as needed. Fix some bugs in
46942 suffix handling, e.g., "100k@" was not diagnosed as an invalid
46943 suffix for a human-readable blocksize. The major caller-visible
46944 change is the addition of a new
46945 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
46946 that both overflow and suffix chars were found.
46948 * lib/human.c (humblock): Don't check separately for invalid suffix
46949 char; that is xstrtoumax's job (now that its bug is fixed).
46950 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
46951 INTMAX_MAX]: New macros.
46952 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
46953 TYPE_MAXIMUM): New macros.
46954 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
46955 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
46956 if overflow occurs, as it's what __strtol does and it's more useful
46958 (__xstrtol): If __strtol reports some error other than ERANGE,
46959 reflect it to the caller as LONGINT_INVALID. If it reports
46960 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
46961 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
46962 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
46964 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
46965 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
46966 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
46967 [defined UINTMAX_MAX]: New macros.
46969 2003-10-14 Bruno Haible <bruno@clisp.org>
46971 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
46973 2003-10-14 Bruno Haible <bruno@clisp.org>
46975 * m4/sig_atomic_t: New file, from GNU gettext.
46976 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
46978 2003-10-14 Bruno Haible <bruno@clisp.org>
46980 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
46981 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
46982 Also use volatile where needed.
46984 2003-10-12 Paul Eggert <eggert@twinsun.com>
46986 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
46987 Change maintainer from Bruno Haible to 'all'.
46989 2003-10-12 Paul Eggert <eggert@twinsun.com>
46991 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
46993 2003-10-12 Paul Eggert <eggert@twinsun.com>
46995 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
46996 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
46997 and define in terms of the other primitives.
46998 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
46999 (SIZE_MAX): Define if not already defined.
47000 (array_size_overflow): New function.
47001 (xalloc_die): Abort instead of exiting if 'error' returns.
47002 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
47003 (xmalloc, xrealloc): Use them.
47004 (xcalloc): Check for address arithmetic overflow.
47005 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
47006 a bit faster than strcpy.
47008 2003-10-10 Simon Josefsson <jas@extundo.com>
47010 * modules/argp (Depends-on): Add restrict and strcase.
47012 2003-10-10 Simon Josefsson <jas@extundo.com>
47014 * m4/argp.m4: Add AC_C_INLINE.
47016 2003-10-08 Paul Eggert <eggert@twinsun.com>
47018 Merge getpass from libc, plus a few fixes.
47020 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
47021 Include <stdbool.h>.
47022 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
47023 __fsetlocking to empty.
47024 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
47025 do include <bits/libc-lock.h>.
47026 Do not include <fcntl.h>; not needed.
47027 [_LIBC]: Include <wchar.h>.
47028 (NOTCANCEL_MODE): New macro.
47029 (flockfile, funlockfile) [_LIBC]: New macros.
47030 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
47031 [!_LIBC]: New macros.
47032 (call_fclose): New function.
47033 (getpass): Use it. Save tty stream separately; this simplifies the
47034 code and makes it more reliable if stdin happens to equal stdout.
47035 Invoke __fsetlocking on tty.
47036 Handle thread cancellation if needed.
47037 Namespace cleanup (use __tcgetattr, __getline).
47038 Use bool for Booleans.
47039 [USE_IN_LIBIO]: Handle wide streams.
47040 [!_LIBC]: Unconditionally do the fseek, since we don't know what
47041 stream might go where.
47043 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
47044 doesn't have to include <stdio.h> before us.
47045 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
47046 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
47047 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
47048 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
47049 if not declared, so that we can use getpass.c code from libc without
47051 (flockfile, ftrylockfile, funlockfile): New macros.
47053 2003-10-08 Paul Eggert <eggert@twinsun.com>
47055 * modules/getpass: Depend on stdbool.
47057 2003-10-08 Paul Eggert <eggert@twinsun.com>
47059 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
47061 2003-10-07 Karl Berry <karl@gnu.org>
47063 * config/config.{guess,sub}: update from config.
47065 2003-10-06 Jim Meyering <jim@meyering.net>
47066 Bruno Haible <bruno@clisp.org>
47068 This lets translators provide better translations for the
47069 "Written by ..." part of --version output.
47070 * lib/version-etc.h: Include stdarg.h.
47071 (version_etc_copyright): Declare as readonly.
47072 (version_etc): Make this function variadic with a NULL-terminated list
47073 of author name strings.
47074 (version_etc_va): New declaration.
47075 * lib/version-etc.c: Include stdarg.h, stdlib.h.
47076 (version_etc_copyright): Declare as readonly.
47077 (version_etc_va): New function. Provide a different translatable string
47078 for each possible number of authors < 10. Abbreviate when there are 10
47080 (version_etc): Make this function variadic. Call version_etc_va.
47081 Suggestion from Gary V. Vaughan.
47083 * lib/long-options.h (parse_long_options): Change prototype: the
47084 authors string is moved to the end and becomes variadic.
47085 * lib/long-options.c: Include stdarg.h.
47086 (parse_long_options): Make this function variadic, too.
47087 Call version_etc_va, not version_etc.
47089 2003-10-06 Bruno Haible <bruno@clisp.org>
47091 * modules/version-etc-2: Remove file.
47092 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
47094 2003-10-06 Bruno Haible <bruno@clisp.org>
47096 * modules/fatal-signal: New file.
47097 * MODULES.html.sh (func_all_modules): Add fatal-signal.
47099 2003-10-06 Bruno Haible <bruno@clisp.org>
47101 * m4/fatal-signal.m4: New file.
47102 * m4/signalblocking.m4: New file, from GNU gettext.
47104 2003-10-06 Bruno Haible <bruno@clisp.org>
47106 * lib/version-etc-2.h: Remove file.
47107 * lib/version-etc-2.c: Remove file.
47109 2003-10-06 Bruno Haible <bruno@clisp.org>
47111 * lib/fatal-signal.h: New file, from GNU gettext.
47112 * lib/fatal-signal.c: New file, from GNU gettext.
47114 2003-10-05 Paul Eggert <eggert@twinsun.com>
47116 * README: Rework advice for preventing empty .o files.
47117 Don't recommend ELIDE constructs. Recommend <stddef.h>,
47120 2003-10-04 Karl Berry <karl@gnu.org>
47122 * lib/argp*: update from libc.
47124 2003-10-04 Karl Berry <karl@gnu.org>
47126 * config/config.{guess,sub}: update from config.
47128 2003-10-02 Bruno Haible <bruno@clisp.org>
47130 * modules/lchown (Include): Add lchown.h.
47131 * modules/time_r (Include): Use "..." syntax.
47132 * modules/xgetdomainname (Include): Add xgetdomainname.h.
47134 2003-10-01 Simon Josefsson <jas@extundo.com>
47136 * MODULES.html.sh (func_all_modules): Move gethostname from section
47137 'based on' to section 'lacking' POSIX:2001.
47139 2003-10-01 Larry Jones <lawrence.jones@eds.com>
47141 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
47142 to output mode on the same stream.
47144 2003-09-29 Paul Eggert <eggert@twinsun.com>
47146 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
47147 Fix arg typo in previous patch.
47149 2003-09-28 Jim Meyering <jim@meyering.net>
47151 * lib/error.c: Correct cpp indentation.
47153 2003-09-27 Paul Eggert <eggert@twinsun.com>
47155 * modules/free: New file.
47157 2003-09-27 Paul Eggert <eggert@twinsun.com>
47159 * m4/free.m4: New file.
47161 2003-09-27 Paul Eggert <eggert@twinsun.com>
47163 * lib/minmax.h (MIN, MAX)
47164 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
47165 Omit the special code that used __typeof__, since we worry that
47166 it could be more trouble than it's worth. See:
47167 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
47168 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
47170 * lib/free.c: New file.
47172 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
47174 Trivial fixes to Makefile.am parts of module listings.
47175 * modules/strstr: Append strstr.h to lib_SOURCES.
47176 * modules/strcase: Likewise, for strcase.h.
47178 2003-09-27 Karl Berry <karl@gnu.org>
47180 * config/mkinstalldirs: update from automake.
47182 2003-09-26 Paul Eggert <eggert@twinsun.com>
47184 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
47185 (error_tail): Do not loop, reallocating temporary buffer, since
47186 the output cannot contain more wide characters than the input
47187 contains bytes, the size must be big enough already. This avoids
47188 one potential size overflow calculation. Check for size overflow
47189 when calculating temporary buffer size. Free temporary buffer
47190 when done, if it was allocated with malloc; this plugs a memory
47191 leak. Remove casts from void * to pointers, that are no longer
47192 needed now that we're assuming C89 or better.
47194 Merge error changes from glibc.
47196 * lib/error.c, error.h: Update copyright notice header to match glibc.
47197 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
47198 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
47199 Disable cancellation while printing error.
47200 * lib/error.h: Prepend __ to parameter names.
47202 2003-09-26 Jim Meyering <jim@meyering.net>
47204 * lib/error.c (error_tail): Move some declarations
47205 into inner scope where the local variables are used.
47207 2003-09-26 Bruno Haible <bruno@clisp.org>
47209 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
47211 Don't define stpncpy through config.h; it's now done through stpncpy.h.
47213 2003-09-26 Bruno Haible <bruno@clisp.org>
47215 * lib/stpncpy.h (gnu_stpncpy): New declaration.
47216 (stpncpy): Define as alias for gnu_stpncpy.
47217 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
47219 2003-09-25 Simon Josefsson <jas@extundo.com>
47221 * lib/xgetdomainname.h: New file.
47222 * lib/xgetdomainname.c: New file.
47224 2003-09-25 Simon Josefsson <jas@extundo.com>
47225 Bruno Haible <bruno@clisp.org>
47227 * modules/getdomainname: New file.
47228 * modules/xgetdomainname: New file.
47229 * MODULES.html.sh (func_all_modules): Add getdomainname,
47232 2003-09-25 Simon Josefsson <jas@extundo.com>
47233 Bruno Haible <bruno@clisp.org>
47235 * m4/getdomainname.m4: New file.
47237 2003-09-25 Simon Josefsson <jas@extundo.com>
47238 Bruno Haible <bruno@clisp.org>
47240 * lib/getdomainname.h: New file.
47241 * lib/getdomainname.c: New file.
47243 2003-09-25 Karl Berry <karl@gnu.org>
47245 * lib/argp-fmtstream.c, argp-help.c: update from libc.
47247 2003-09-25 Karl Berry <karl@gnu.org>
47249 * config/install-sh: update from automake.
47251 2003-09-25 Bruno Haible <bruno@clisp.org>
47253 * modules/version-etc-2: New file, from modules/version-etc with
47255 * MODULES.html.sh (func_all_modules): Add version-etc-2.
47257 2003-09-25 Bruno Haible <bruno@clisp.org>
47259 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
47260 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
47262 2003-09-24 Simon Josefsson <jas@extundo.com>
47264 * modules/xgethostname: Add xgethostname.h.
47266 2003-09-24 Paul Eggert <eggert@twinsun.com>
47268 * lib/linebuffer.c (freebuffer): Don't free the argument, just
47269 the buffer associated with the argument. Bug reported by
47272 2003-09-24 Paul Eggert <eggert@twinsun.com>
47274 * README: Document assumptions that 'int' is at least 32 bits
47275 wide, that integer arithmetic is 2's complement without overflow,
47276 that there are no holes in integer values, that adding sizes of
47277 two nonoverlapping objects can't overflow, and that all-bits-zero
47278 yields scalar zero. Fix spelling and capitalization typos.
47280 2003-09-19 Karl Berry <karl@gnu.org>
47282 * lib/argp.h: update from libc.
47284 2003-09-17 Paul Eggert <eggert@twinsun.com>
47286 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
47287 to avoid spurious warnings like "AC_RUN_IFELSE was called before
47288 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
47290 2003-09-17 Paul Eggert <eggert@twinsun.com>
47292 * gnulib-tool: Use "test -h", not "test -L", for portability
47293 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
47294 (tags_regexp): Remove, since \| doesn't conform to POSIX.
47295 (sed_extract_prog): Issue s commands one-by-one, rather than
47296 using \| in one s command.
47298 2003-09-16 Paul Eggert <eggert@twinsun.com>
47300 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
47301 input error, instead of returning NULL the next time we are called
47302 (and therefore losing track of errno).
47304 2003-09-16 Bruno Haible <bruno@clisp.org>
47306 * gnulib-tool (func_create_testdir): Warn about duplicated
47309 2003-09-15 Paul Eggert <eggert@twinsun.com>
47311 * modules/argmatch, modules/fatal, modules/obstack,
47312 modules/xalloc, modules/xgethostname: Sort dependencies by
47313 importance, not alphabetically.
47315 2003-09-15 Paul Eggert <eggert@twinsun.com>
47317 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
47318 fails, so that the caller gets the proper errno.
47320 * lib/readutmp.c (read_utmp): Likewise.
47321 Check for fstat error. Close stream and free storage
47324 2003-09-14 Karl Berry <karl@gnu.org>
47326 * config/srclist.txt (strdup.c): disable for c89 changes.
47328 2003-09-14 Jim Meyering <jim@meyering.net>
47330 * lib/getloadavg.c: Correct cpp indentation.
47331 * lib/strdup.c: Likewise.
47332 * lib/vasnprintf.c: Likewise.
47334 2003-09-14 Bruno Haible <bruno@clisp.org>
47336 * modules/fwriteerror: New file.
47337 * MODULES.html.sh (func_all_modules): Add fwriteerror.
47339 2003-09-14 Bruno Haible <bruno@clisp.org>
47341 * lib/fwriteerror.h: New file.
47342 * lib/fwriteerror.c: New file.
47344 2003-09-12 Paul Eggert <eggert@twinsun.com>
47346 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
47347 modules/xgethostname, modules/xalloc: Depend on exit.
47349 2003-09-12 Paul Eggert <eggert@twinsun.com>
47351 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
47353 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
47354 and AC_MINIX, too, so that their extensions are available.
47356 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
47357 This macro has been superseded by gl_BACKUPFILE.
47359 More patches to assume C89 or better.
47361 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
47363 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
47365 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
47366 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
47367 Include <string.h>, <stdlib.h> unconditionally.
47368 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
47369 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
47370 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
47371 headers or for string.h.
47372 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
47375 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
47377 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
47378 * m4/userspec.m4 (gl_USERSPEC): Likewise.
47379 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
47380 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
47381 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47382 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
47384 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
47385 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
47386 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
47388 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
47389 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
47390 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
47393 2003-09-12 Paul Eggert <eggert@twinsun.com>
47395 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
47396 * lib/obstack.c [!defined _LIBC]: Likewise.
47397 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
47398 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
47399 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
47401 More changes to assume C89 or better.
47403 * lib/error.c (error_tail): Assume vprintf.
47405 * lib/argmatch.c (getenv): Remove decl.
47406 * lib/progreloc.c (get_full_program_name): Define via prototype.
47407 * lib/setenv.c (clearenv): Likewise.
47408 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
47410 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
47411 (malloc, memcpy): Remove decls.
47412 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
47413 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
47414 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47415 (memcpy): Remove macro.
47416 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
47417 (__P): Remove. All uses removed.
47418 (PTR): Remove. All uses changed to void *.
47419 (CHAR_BIT, NULL): Remove.
47420 (spaces, zeros, memset_space, memset_zero)
47421 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
47423 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
47424 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
47425 Define with prototype.
47426 Remove now-unnecessary prototype decl.
47427 (extra_args_spec): Assume ANSI C. All uses changed.
47428 (extra_args_spec_iso): Remove.
47429 (my_strftime, emacs_strftimeu): Define via prototype.
47430 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
47432 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
47433 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
47434 (strtoul, strtol): Remove decls.
47435 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
47437 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47438 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
47439 (LOCALE_PARAM_PROTO): New macro.
47440 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
47441 (INTERNAL (strtol), strtol): Define with a prototype.
47442 (PARAMS): Remove. All uses removed.
47443 * lib/tempname.c: Include <string.h> unconditionally.
47444 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
47445 * lib/xgethostname.c (main): Define with a prototype.
47446 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
47447 Include <stdlib.h> unconditionally.
47448 (calloc, malloc, realloc, free): Remove decls.
47449 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
47450 Include <stdlib.h> unconditionally. Sort include file names.
47452 (xstrtod): Define with a prototype.
47453 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
47454 (strtol, strtoul): Remove decls.
47456 2003-09-11 Paul Eggert <eggert@twinsun.com>
47458 More patches to assume C89 or better.
47459 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
47460 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
47461 string.h, memchr, STDC_HEADERS.
47463 2003-09-11 Paul Eggert <eggert@twinsun.com>
47465 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
47466 Include <stdlib.h>, <string.h> unconditionally.
47467 Remove now-unnecessary cast to char *.
47468 * lib/strnlen.c: Include <string.h> unconditionally.
47469 * lib/yesno.c (yesno): Define with a prototype.
47471 2003-09-11 Bruno Haible <bruno@clisp.org>
47473 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
47475 2003-09-10 Jim Meyering <jim@meyering.net>
47477 * lib/error.c: Correct indentation of cpp directives.
47479 2003-09-10 Bruno Haible <bruno@clisp.org>
47481 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
47482 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
47483 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
47484 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
47485 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
47486 <stdlib.h> and <string.h> checks.
47487 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
47488 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
47490 2003-09-10 Bruno Haible <bruno@clisp.org>
47492 * lib/strcspn.c: Include <string.h> unconditionally.
47493 * lib/strpbrk.c: Include <string.h> unconditionally.
47494 * lib/strstr.c: Include <string.h> unconditionally.
47495 * lib/unicodeio.c: Include <string.h> unconditionally.
47496 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
47497 * lib/unsetenv.c: Likewise.
47498 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
47499 * lib/yesno.c: Include <stdlib.h> unconditionally.
47500 (rpmatch): Add prototype.
47502 2003-09-09 Paul Eggert <eggert@twinsun.com>
47504 More patches to assume C89 or better.
47505 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
47506 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
47507 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
47509 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
47511 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
47513 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
47515 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
47516 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
47517 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
47519 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
47520 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
47522 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
47524 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
47525 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
47526 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
47527 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
47528 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
47529 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
47531 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
47532 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
47533 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
47534 C headers, or for string.h.
47535 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
47536 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
47537 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
47538 headers, memory.h, stdlib.h, string.h, strings.h.
47539 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
47540 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
47541 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
47543 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
47544 headers, memory.h, string.h.
47545 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
47546 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
47548 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
47550 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
47551 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
47552 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
47553 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
47554 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
47556 2003-09-09 Paul Eggert <eggert@twinsun.com>
47560 * lib/acosl.c (main): Use a prototype.
47561 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
47564 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
47566 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
47567 (getopt, etopt_long, getopt_long_only, _getopt_internal)
47568 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
47570 * lib/getopt.c (const): Remove macro.
47571 Include <string.h> unconditionally.
47572 (my_index): Remove; all uses changed to strchr.
47573 (strlen): Remove decl.
47574 (exchange): Remove forward decl; no longer needed.
47575 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
47576 Define with prototype.
47577 * lib/getopt1.c (const): Remove macro.
47578 (getopt_long, getopt_long_only, main): Define with prototype.
47580 * lib/getugroups.c: Include <string.h> unconditionally.
47582 * lib/getusershell.c: Include <stdlib.h> unconditionally.
47583 (getusershell, setusershell, endusershell, readname, main):
47584 Define with prototypes.
47586 * lib/group-member.c: Include group-member.h first.
47587 Include <stdlib.h> unconditionally.
47589 * lib/hard-locale.c: Include hard-locale.h first.
47590 Include <stdlib.h>, <string.h> unconditionally.
47592 * lib/hash.c (free, malloc): Remove decls.
47593 Include <stdlib.h> unconditionally.
47595 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
47596 (getenv): Do not declare.
47598 * lib/idcache.c: Include <string.h> unconditionally.
47600 * lib/long-options.c: Include long-options.h first, to test interface.
47601 Include <stdlib.h> unconditionally.
47603 * lib/makepath.c: Include makepath.h first, to test interface.
47604 Include <stdlib.h> and <string.h> unconditionally.
47606 * lib/linebuffer.c: Include <stdlib.h>.
47607 (free): Remove decl.
47609 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
47610 stddef.h. rpl_malloc returns void *, not char *.
47611 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
47614 * lib/md5.h: Include <limits.h> unconditionally.
47615 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
47616 (__P): Remove; all uses removed.
47617 * lib/md5.c: Include "md5.h" first.
47618 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
47619 md5_buffer, md5_process_bytes, md5_process_block):
47620 Define with prototypes.
47621 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
47622 * lib/sha.c: Include "sha.h" first.
47623 Include <stdlib.h>, <string.h> unconditionally.
47625 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
47626 * lib/memcmp.c (__ptr_t): Likewise.
47627 * lib/memrchr.c (__ptr_t): Likewise.
47628 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
47629 Include <string.h> unconditionally.
47630 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
47631 * lib/memchr.c: Include <stdlib.h> unconditionally.
47632 * lib/memchr.c (LONG_MAX): Remove.
47633 * lib/memrchr.c (LONG_MAX): Likewise.
47634 * lib/memchr.c (__memchr): Define via a prototype.
47635 * lib/memrchr.c (__memrchr): Likewise.
47636 * lib/memcmp.c (__P): Remove, and remove all uses.
47637 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
47638 Remove forward decls; no longer needed.
47639 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
47640 Use types required by C89 in prototype.
47642 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
47643 * lib/savedir.c: Likewise.
47644 * lib/mkdir.c (free): Remove decl.
47645 * lib/rmdir.c (rmdir): Define with a prototype.
47646 * lib/savedir.c: Include savedir.h first, to test interface.
47648 * lib/mktime.c (STDC_HEADERS): Remove.
47649 Include <stdlib.h>, <string.h> unconditionally.
47651 * lib/modechange.c: Include <stdlib.h> unconditionally.
47652 (malloc): Remove decl.
47654 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
47655 (free): Remove decl.
47657 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
47658 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
47659 (This type really should be intptr_t, but that's a C99ism.)
47660 (_obstack_memcpy): Remove: all uses changed to memcpy.
47661 Include <string.h> unconditionally.
47662 (struct obstack): Assume __STDC__ for types of members
47663 chunkfun, freefun, extra_arg.
47664 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
47665 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
47666 obstack_begin, obstack_specify_allocation,
47667 obstack_specify_allocation_with_arg, obstack_chunkfun,
47668 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
47669 Remove unprototyped decls and the macros that use them.
47670 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
47671 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
47672 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
47673 (defined __STDC__ && __STDC__)]:
47674 Remove nonprototyped code.
47675 Include <stdlib.h> unconditionally.
47676 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
47677 _obstack_allocated_p, _obstack_free, obstack_free,
47678 _obstack_memory_used, print_and_abort):
47679 Define using prototypes.
47680 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
47681 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
47682 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
47683 obstack_next_free, obstack_object_size, obstack_room) [0]:
47684 Remove unused, unprototyped code.
47686 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
47688 * lib/physmem.c (physmem_total, physmem_available, main): Define
47691 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
47692 (main): Define with a prototype.
47694 * lib/posixver.c (getenv): Remove decl.
47696 * lib/putenv.c (malloc): Returns void *, not char *.
47697 Include <string.h> unconditionally.
47698 (strchr, memcpy, NULL): Do not define.
47700 * lib/readtokens.c: Include readtokens.h first, to test interface.
47701 Include <stdlib.h>, <string.h> unconditionally.
47702 (init_tokenbuffer): Define with a prototype.
47704 * lib/regex.c (PARAMS): Remove. All uses removed.
47705 All uses of _RE_ARGS removed, too.
47706 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47708 (bzero): Assume memset exists.
47709 (memcmp, memcpy, NULL): Remove.
47710 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
47711 char, or assignments to local vars of type signed char.
47712 (init_syntax_once, PREFIX(extract_number_and_incr),
47713 PREFIX(print_partial_compiled_pattern),
47714 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
47715 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
47716 PREFIX(regex_grow_registers), PREFIX(regex_compile),
47717 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
47718 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
47719 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
47720 wcs_compile_range, byte_compile_range, truncate_wchar,
47721 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
47722 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
47723 count_mbs_length, wcs_re_match_2_internal,
47724 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
47725 PREFIX(alt_match_null_string_p),
47726 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
47727 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
47728 regfree, PREFIX(extract_number)): Define with prototype. Remove
47729 now-unnecessary declaration, if any.
47730 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
47732 Remove now-unnecessary casts among pointer types.
47733 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
47735 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
47736 (free): Remove decl.
47738 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
47740 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
47741 (free): Remove decl.
47743 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
47744 * lib/xgetcwd.c: Likewise.
47746 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
47747 (free): Remove decl.
47749 * lib/strchrnul.c (strchrnul): Define with a prototype.
47750 Fix bug: c_in was not converted to char before searching.
47752 The following changes are not K&R related:
47754 * lib/group-member.h: Include <sys/types.h>, so that this file is
47756 * lib/makepath.h: Likewise.
47758 * lib/getusershell.c (readname, default_index, line_size, readname):
47759 Use size_t, not int, for sizes.
47760 (readname): If the size overflows, report an error instead of
47763 2003-09-09 Paul Eggert <eggert@twinsun.com>
47765 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
47768 2003-09-09 Paul Eggert <eggert@twinsun.com>
47770 * README: New section: portability guidelines.
47772 2003-09-09 Derek Robert Price <derek@ximbiot.com>
47774 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
47777 2003-09-09 Derek Robert Price <derek@ximbiot.com>
47779 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
47781 2003-09-08 Paul Eggert <eggert@twinsun.com>
47783 Assume C89 or better; remove K&R cruft.
47784 A few of these changes were first proposed by Derek Robert Price
47785 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
47787 * lib/addext.c: Include <string.h> unconditionally.
47788 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
47789 Don't declare getenv or malloc.
47791 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
47792 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
47794 (find_stack_direction, alloca): Use prototypes.
47796 * lib/atexit.c (atexit): Define using a prototype.
47798 * lib/basename.c, dirname.c, stripslash.c:
47799 Include <string.h> unconditionally.
47801 * lib/bcopy.c: Include <stddef.h>.
47802 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
47804 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
47806 * lib/error.h (error, error_at_line, error_print_progname)
47807 [! (defined (__STDC__) && __STDC__)]: Remove decls.
47808 * lib/error.c: Include error.h first, to check interface.
47809 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
47810 (VA_START): Remove; all uses changeed to va_start.
47811 (exit, strerror): Remove decls.
47812 (error_print_progname): Prototype uncondionally.
47813 Don't include <errno.h>; no longer needed.
47814 (private_strerror): Remove.
47815 (error_tail): Always define.
47816 (error, error_at_line): Assume C89 or better; always use prototypes.
47817 * lib/fatal.c: Include "fatal.h" first, to test interface.
47818 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
47819 (VA_START): Remove; all uses changed to va_start.
47820 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
47822 (exit): Remove decl.
47823 (fatal): Prototype unconditionally. Assume va_start works.
47824 Abort at end, to pacify gcc.
47826 * lib/euidaccess.c (main): Define with a prototype.
47828 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
47830 * lib/exitfail.c: Include <stdlib.h> unconditionally.
47832 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
47834 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
47835 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
47836 (getenv): Remove decl.
47837 (fnmatch): Define using a prototype.
47838 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
47839 (FCT): Define using a prototype.
47841 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
47843 * lib/gethostname.c: Include <stddef.h>.
47844 (gethostname): Define with prototype. Length is size_t, not int.
47846 2003-09-08 Paul Eggert <eggert@twinsun.com>
47848 Assume C89 or better; remove K&R cruft.
47849 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
47850 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
47851 string.h, getenv, malloc.
47852 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
47854 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
47855 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
47856 do not check for strerror.
47857 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
47858 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
47859 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
47860 do not check for doprnt or vprintf.
47861 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
47862 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
47864 2003-09-08 Paul Eggert <eggert@twinsun.com>
47866 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
47867 getversion.c should have been removed then, but was accidentally
47870 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
47871 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
47873 2003-09-08 Karl Berry <karl@gnu.org>
47875 * config/config.sub, config.guess, srclistvars.sh: update from savannah
47876 config, forget about prep.
47878 * config/depcomp, missing: update from automake.
47880 2003-09-07 Paul Eggert <eggert@twinsun.com>
47882 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
47883 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
47885 2003-09-07 Paul Eggert <eggert@twinsun.com>
47887 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
47888 copy_tm_result. Bug reported by Simon Josefsson in
47889 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
47891 2003-09-06 Paul Eggert <eggert@twinsun.com>
47893 * m4/time_r.m4: New file.
47894 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
47895 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
47896 is. Check for timegm declaration.
47897 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
47898 Do not check for gmtime_r.
47899 Replace mktime if __mktime_internal does not exist and if mktime
47900 hasn't been replaced already.
47902 2003-09-06 Paul Eggert <eggert@twinsun.com>
47904 * lib/time_r.c, lib/time_r.h: New files.
47906 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
47908 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
47909 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
47911 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
47913 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
47914 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
47915 Include <time_r.h>.
47917 * lib/timegm.c: Switch to glibc implementation, with the following
47919 [defined HAVE_CONFIG_H]: Include <config.h>.
47920 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
47921 (__mktime_internal) [!defined _LIBC]: New decl.
47922 (__gmtime_r) [!defined _LIBC]: New macro and function.
47923 (timegm): Use a prototype, since gnulib assumes C89.
47924 Do not bother declaring tmp to be const, as it's not really usefu.
47925 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
47926 (timegm): Declare only if HAVE_DECL_TIMEGM.
47928 2003-09-06 Paul Eggert <eggert@twinsun.com>
47930 * MODULES.html.sh (func_all_modules): Add time_r.
47931 * modules/time_r: New file.
47932 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
47933 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
47935 2003-09-03 Paul Eggert <eggert@twinsun.com>
47937 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
47938 Bug reported by Lute Kamstra in
47939 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
47941 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
47942 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
47943 course with correspondingly smaller numbers for tomorrow and
47944 yesterday. From Tadayoshi Funaba. Originally installed into
47945 sh-utils on 1999-08-07, but the patch got lost (I guess during the
47948 2003-08-31 Simon Josefsson <jas@extundo.com>
47950 * modules/timegm: New file.
47951 * MODULES.html.sh (func_all_modules): Add timegm.
47953 2003-08-31 Simon Josefsson <jas@extundo.com>
47955 * m4/timegm.m4: New file.
47957 2003-08-31 Simon Josefsson <jas@extundo.com>
47959 * lib/timegm.h: New file.
47960 * lib/timegm.c: New file. Based on
47961 wget-1.8.2/src/http.c:mktime_from_utc.
47963 2003-08-31 Karl Berry <karl@gnu.org>
47965 * lib/argp.h: update from libc.
47967 2003-08-28 Bruno Haible <bruno@clisp.org>
47969 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
47970 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
47971 followed by '#define fnmatch fnmatch_posix' gives an error.
47973 2003-08-28 Bruno Haible <bruno@clisp.org>
47975 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
47976 warning on QNX, which defines O_BINARY to 000000.
47978 2003-08-27 Jim Meyering <jim@meyering.net>
47980 * m4/mkstemp.m4: Require that the system mkstemp be able to create
47981 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
47982 would fail after 32. Reported by Danny Levinson. Details here:
47983 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
47985 2003-08-24 Bruno Haible <bruno@clisp.org>
47987 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
47988 MSVC7 <stdio.h> is included later.
47990 2003-08-22 Simon Josefsson <jas@extundo.com>
47992 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
47994 2003-08-20 Karl Berry <karl@gnu.org>
47996 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
47998 2003-08-20 Bruno Haible <bruno@clisp.org>
48000 * modules/progname: New file.
48001 * MODULES.html.sh (func_all_modules): Add progname.
48003 2003-08-20 Bruno Haible <bruno@clisp.org>
48005 * lib/progname.h: New file, from GNU gettext.
48006 * lib/progname.c: New file, from GNU gettext.
48007 * lib/progreloc.c: New file, from GNU gettext.
48009 2003-08-19 Jim Meyering <jim@meyering.net>
48011 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
48012 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
48014 2003-08-19 Bruno Haible <bruno@clisp.org>
48016 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
48019 2003-08-19 Bruno Haible <bruno@clisp.org>
48021 * lib/xstrdup.c: Assume <string.h> exists.
48023 2003-08-18 Paul Eggert <eggert@twinsun.com>
48025 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
48028 2003-08-18 Jim Meyering <jim@meyering.net>
48030 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
48031 * m4/lib-ld.m4: Likewise.
48033 2003-08-18 Jim Meyering <jim@meyering.net>
48035 * lib/setenv.h: Indent nested cpp directive.
48036 * lib/vasnprintf.c: Remove trailing blanks.
48038 2003-08-17 Simon Josefsson <jas@extundo.com>
48040 * modules/xstrndup: New file.
48041 * MODULES.html.sh (func_all_modules): Add xstrndup.
48043 2003-08-17 Simon Josefsson <jas@extundo.com>
48045 * modules/argp: Fix autoconf macro name. Add more dependencies.
48047 2003-08-17 Simon Josefsson <jas@extundo.com>
48049 * m4/xstrndup.m4: New file.
48051 2003-08-17 Simon Josefsson <jas@extundo.com>
48053 * m4/argp.m4: New file.
48055 2003-08-17 Simon Josefsson <jas@extundo.com>
48056 Bruno Haible <bruno@clisp.org>
48058 * lib/xstrndup.h: New file.
48059 * lib/xstrndup.c: New file.
48061 2003-08-17 Bruno Haible <bruno@clisp.org>
48063 * modules/strndup (Files, Include): Add lib/strndup.h.
48065 2003-08-17 Bruno Haible <bruno@clisp.org>
48067 * modules/euidaccess (Files): Add lib/euidaccess.h.
48069 2003-08-17 Bruno Haible <bruno@clisp.org>
48071 * lib/strndup.h: New file.
48073 2003-08-17 Bruno Haible <bruno@clisp.org>
48075 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
48076 like AC_GNU_SOURCE.
48077 * modules/extensions (configure.ac): Comment out the invocation of
48078 gl_USE_SYSTEM_EXTENSIONS.
48080 2003-08-16 Paul Eggert <eggert@twinsun.com>
48082 Merges from coreutils, etc.
48083 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
48084 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
48085 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
48087 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
48088 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
48090 2003-08-16 Paul Eggert <eggert@twinsun.com>
48092 Document merge from coreutils.
48093 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
48094 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
48095 * modules/utime: Add m4/utimes-null.m4.
48097 2003-08-16 Paul Eggert <eggert@twinsun.com>
48099 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
48100 space, undoing this 2003-08-12 change:
48101 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48103 2003-08-16 Paul Eggert <eggert@twinsun.com>
48105 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
48106 strtoul.c from libc, undoing this 2003-08-12 change:
48107 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48109 2003-08-16 Jim Meyering <jim@meyering.net>
48111 Merges from coreutils.
48112 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
48113 prefix. Adjust cache variables similarly. Create 500 rather than
48114 just 300 files, to exercise bug on Darwin6.5, too.
48115 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
48117 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
48118 AM_SYS_POSIX_TERMIOS.
48119 Reported by mkc@mathdogs.com.
48120 Also change use of $am_cv_sys_posix_termios
48121 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
48122 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
48123 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
48124 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
48125 in /proc/mounts until it finds one with matching device number. This
48126 is unnecessary when the FILE argument *is* a mount point. No stat call
48127 is necessary in that case. So, disable the statvfs-testing code on
48128 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
48129 as RedHat bug# 84846.
48130 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48131 to 1MB, so as not to render systems with no stack size limit (e.g.,
48132 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
48133 Include <unistd.h>. On some systems,
48134 it is required for the definition of _SC_PAGESIZE.
48136 2003-08-16 Jim Meyering <jim@meyering.net>
48138 Merge from coreutils.
48139 * lib/xstrtoimax.c: #else #if -> #elif.
48140 * lib/xstrtoumax.c: Likewise.
48142 2003-08-16 Jim Meyering <jim@meyering.net>
48144 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
48145 * m4/utimes.m4: Removed.
48146 * m4/utimes-null.m4: Renamed from utimes.m4.
48148 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48149 to 1MB, so as not to render systems with no stack size limit (e.g.,
48150 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
48151 Include <unistd.h>. On some systems,
48152 it is required for the definition of _SC_PAGESIZE.
48154 2003-08-16 Jim Meyering <jim@meyering.net>
48155 and Paul Eggert <eggert@cs.ucla.edu>
48157 Merges from coreutils, etc.
48159 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
48160 using the latest version from cvs. This avoids problems with #line
48161 directives using a vendor (Sun) compiler.
48162 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
48163 Don't set GETGROUPS_LIB here; now it's
48164 done via getgroups.m4's wrapper function.
48165 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
48166 rather than just in sh-util/configure.in, so that the
48167 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
48169 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
48170 AC_FUNC_GETLOADAVG where to find getloadavg.c.
48171 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
48172 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
48173 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
48174 Remove code that is now done by the newly-required macros.
48175 Append $(EXEEXT) to DF_PROG.
48176 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
48177 Do not invoke or require the following here,
48178 since prereq.m4 or some gnulib .m4 now does this for us:
48179 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
48180 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
48181 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
48182 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
48183 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
48184 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
48185 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
48187 Do not replace the following functions, as this is now the job
48188 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
48189 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
48190 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
48191 atexit getpass, strdup, getpagesize.
48193 Do not check for the following functions, as this is now the job
48194 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
48195 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
48197 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
48198 Check for sys/sysctl.h.
48199 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
48200 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
48201 of checking for ssize_t ourselves.
48203 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
48204 Require every macro that gnulib/modules/* suggests for us.
48205 (jm_PREREQ_ADDEXT): New macro.
48206 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
48207 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
48209 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
48210 (gl_PHYSMEM): Use it.
48211 Also check for `table' function.
48212 Check for new headers and functions.
48213 Add check for sys/sysmp.h.
48214 With suggestions from Kaveh Ghazi.
48215 Ignore headers that are present but cannot be compiled. This
48216 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
48219 2003-08-15 Paul Eggert <eggert@twinsun.com>
48221 Document merge from coreutils.
48222 * modules/userspec: Depend on posixver.
48223 * modules/strftime: Depend on tzset.
48225 2003-08-15 Paul Eggert <eggert@twinsun.com>
48227 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
48228 rather than tab, after '#' in shell-script copyright notices.
48229 Suggested by Bruno Haible.
48231 2003-08-15 Paul Eggert <eggert@twinsun.com>
48233 * config/srclist-update: Use three spaces, rather than tab, after '#'
48234 in shell-script copyright notices. Suggested by Bruno Haible.
48235 Remove unnecessary parenthesization in regular expression.
48237 2003-08-15 Jim Meyering <jim@meyering.net>
48239 Merge from coreutils.
48240 * lib/xgethostname.c: Include <stdlib.h>.
48241 (xghostname): Don't exit for anything other than memory-related
48242 failure; just return NULL.
48243 * lib/userspec.c: Include "posixver.h".
48244 (parse_user_spec): Accept `.' as a separator only
48245 in pre-POSIX-200112 mode.
48246 * lib/strtoimax.c: Use #elif rather than #else #if.
48247 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
48248 Remove function, now that we can rely on a working tzset function.
48249 [!_LIBC]: Ensure that the required autoconf test has been run.
48250 [!defined _NL_CURRENT && HAVE_STRFTIME]:
48251 Use underlying_strftime for %r.
48252 * lib/sha.c: Merge in some clean-up and optimization changes from
48254 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
48255 Ensure that it is a multiple of 64.
48256 Rearrange loop exit tests so as to avoid performing an
48257 additional fread after encountering an error or EOF.
48258 * lib/realloc.c: Update copyright date.
48260 2003-08-15 Jim Meyering <jim@meyering.net>
48261 and Paul Eggert <eggert@twinsun.com>
48263 Merge from coreutils.
48264 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
48265 member but strut utmpx does not. Needed for AIX 4.3.3.
48266 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
48268 2003-08-15 Jim Meyering <jim@meyering.net>
48269 and Paul Eggert <eggert@cs.ucla.edu>
48271 Merges from coreutils, etc.
48272 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
48273 Require gl_FUNC_TZSET_CLOBBER.
48274 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
48275 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
48278 2003-08-14 Paul Eggert <eggert@twinsun.com>
48280 Help the merge from coreutils.
48281 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
48282 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
48283 * m4/tzset.m4: Use it too.
48285 2003-08-14 Paul Eggert <eggert@twinsun.com>
48287 * modules/tzset: New file.
48289 2003-08-14 Jim Meyering <jim@meyering.net>
48291 Merges from coreutils.
48292 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
48293 variable names, rather than @FNMATCH_H@.
48294 * modules/alloca: Likewise for $(ALLOCA_H).
48296 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
48297 the three copies of the literal target, `fnmatch.h'.
48298 * modules/alloca (alloca.h): Likewise.
48300 2003-08-14 Jim Meyering <jim@meyering.net>
48302 Merge from coreutils.
48303 * m4/tzset.m4: New file.
48304 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
48305 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
48306 otherwise, AIX 5.1 systems would end up using the latter.
48307 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
48308 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
48309 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
48310 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
48312 2003-08-14 Jim Meyering <jim@meyering.net>
48314 Merge from coreutils.
48315 * lib/obstack.h: Whitespace changes.
48316 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
48317 and xcalloc return values.
48318 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
48319 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
48320 hang on OSF/1 5.1 for DIR on both local and remote file systems.
48321 Reported by (and fix confirmed by) Nelson H. F. Beebe.
48322 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48324 Use mntctl's return value to drive the entry-processing loop, since
48325 we can't rely on the value of the vmt_length member in the last
48326 entry. On some systems doing so could result in exhausting
48327 virtual memory. Based in part on a patch from Mike Jetzer.
48329 2003-08-14 Jim Meyering <jim@meyering.net>
48330 and Paul Eggert <eggert@twinsun.com>
48332 Merges from coreutils, plus other fixes.
48333 * lib/physmem.c: Merge in portability changes from gcc/libiberty
48334 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
48335 for credits and details. Thanks to Kaveh Ghazi for helping
48336 to keep these files in sync.
48337 (ARRAY_SIZE): Define it.
48338 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
48339 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
48340 (memcasecmp): Don't assume size_t fits in unsigned int.
48341 Remove casts and duplicate code.
48342 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
48343 (memcpy): Remove definition.
48344 Merge in some clean-up and optimization changes from glibc.
48345 [BLOCKSIZE]: Move definition to top of file.
48346 Ensure that it is a multiple of 64.
48347 Rearrange loop exit tests so as to avoid performing an
48348 additional fread after encountering an error or EOF.
48349 * lib/md5.h (md5_uintptr): Define.
48350 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
48351 return to the initial working directory. Preserve errno
48353 * lib/idcache.c: Include "xalloc.h".
48354 (xmalloc, xrealloc): Remove decls.
48355 (getuser): Remove casts no longer required in C89.
48356 * lib/human.c: Include stdio.h, for sprintf.
48357 * lib/group-member.c: Include "xalloc.h".
48358 (xmalloc, xrealloc): Remove decls.
48359 (get_group_info): Remove casts no longer required in C89.
48360 * lib/getusershell.c (readname): Remove casts no longer required in
48362 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
48363 * lib/getline.c: Whitespace fix, from coreutils.
48365 2003-08-13 Paul Eggert <eggert@twinsun.com>
48367 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
48370 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48371 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48372 Undo previous (whitespace-only) change.
48374 2003-08-13 Paul Eggert <eggert@twinsun.com>
48376 * lib/exclude.c: Include <ctype.h>
48377 (IN_CTYPE_DOMAIN): New macro.
48378 (is_space): New fn.
48379 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
48382 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48383 Undo previous (whitespace-only) change.
48385 2003-08-13 Paul Eggert <eggert@twinsun.com>
48387 * config/srclist-update: Change update back to the old behavior,
48388 leaving whitespace alone. Use one 'sed' command rather than a
48390 (fixlicense): Now a variable, not a function.
48391 (remove_trailing_blanks): Remove.
48392 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
48393 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48394 Undo previous (whitespace-only) change.
48396 2003-08-12 Paul Eggert <eggert@twinsun.com>
48398 Merge from coreutils.
48399 * modules/euidaccess: Add lib_SOURCES, include for new
48402 2003-08-12 Paul Eggert <eggert@twinsun.com>
48404 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48405 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48406 Normalize leading white space and remove trailing white space.
48408 Merge from coreutils
48409 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
48411 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
48412 0.12.1. These files are now being upgraded automatically by
48413 ../config/srclist-update.
48415 2003-08-12 Paul Eggert <eggert@twinsun.com>
48417 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48418 Normalize leading white space and remove trailing white space.
48419 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
48420 notice, as per ../config/srclist-update.
48422 Merge from coreutils.
48423 * lib/euidaccess.h: New file.
48424 * lib/euidaccess.c: Include it.
48425 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
48426 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
48427 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
48429 2003-08-12 Paul Eggert <eggert@twinsun.com>
48431 * config/srclist-update: Add copyright notice.
48432 (remove_id_lines, remove_trailing_blanks): New constants.
48433 (fixfile): Use them to normalize spacing a bit in copied files.
48434 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48435 Normalize leading white space and remove trailing white space.
48437 * config/texinfo.tex: Sync with texinfo.
48439 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
48440 strtoul.c from libc, to merge coreutils whitespace changes.
48442 * config/srclist.txt: Get the following m4 files from gettext:
48443 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
48444 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
48445 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
48448 2003-08-12 Karl Berry <karl@gnu.org>
48450 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
48453 2003-08-11 Paul Eggert <eggert@twinsun.com>
48455 * modules/gnu-source, m4/gnu-source.m4:
48456 Remove; we're assuming Autoconf 2.54 or later now.
48457 Suggested by Bruno Haible.
48458 * MODULES.html.sh (func_all_modules): Remove gnu-source.
48460 2003-08-11 Bruno Haible <bruno@clisp.org>
48462 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
48464 2003-08-11 Bruno Haible <bruno@clisp.org>
48466 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
48467 (vasnprintf): Use it instead of wcslen.
48469 2003-08-11 Bruno Haible <bruno@clisp.org>
48471 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
48472 value to ensure that _Bool promotes to int. Use #define for _Bool when
48473 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
48475 2003-08-10 Karl Berry <karl@gnu.org>
48477 * lib/regex.h: update from libc (whitespace fix).
48479 2003-08-09 Paul Eggert <eggert@twinsun.com>
48481 Merge some files from coreutils. These changes were
48482 originally made by Jim Meyering.
48483 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
48484 many older Unixes require this.
48485 * lib/alloca.c (alloca): Remove cast to argument of free;
48486 no longer needed in C89.
48487 * lib/alloca_.h, regex.h: Fix white space to match
48488 what GNU indent does.
48490 2003-08-09 Paul Eggert <eggert@twinsun.com>
48492 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
48493 apparently Emacs's Unicode mode got confused before my 2003-08-05
48496 2003-08-08 Paul Eggert <eggert@twinsun.com>
48498 * m4/extensions.m4: New file.
48499 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
48500 Require gl_USE_SYSTEM_EXTENSIONS.
48501 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
48502 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
48504 2003-08-08 Paul Eggert <eggert@twinsun.com>
48506 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
48507 * modules/extensions, modules/gnu-source: New files.
48508 * modules/timespec, modules/unlocked-io: Depend on extensions.
48510 2003-08-07 Paul Eggert <eggert@twinsun.com>
48512 * modules/restrict: New file.
48513 * MODULES.html.sh (func_all_modules): Add restrict.
48514 * modules/regex: Depend on restrict.
48516 2003-08-07 Paul Eggert <eggert@twinsun.com>
48518 * m4/restrict.m4: New file.
48519 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
48521 2003-08-07 Bruno Haible <bruno@clisp.org>
48523 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
48524 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
48526 2003-08-07 Bruno Haible <bruno@clisp.org>
48528 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
48529 makes the module 'getndelim2' compatible with the module 'getline'.
48531 2003-08-05 Paul Eggert <eggert@twinsun.com>
48533 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
48534 byte with "\201" to avoid glitches when editing that source file
48535 with multi-gnome-terminal.
48537 2003-08-05 Paul Eggert <eggert@twinsun.com>
48539 * lib/bumpalloc.h: Remove.
48541 2003-08-05 Paul Eggert <eggert@twinsun.com>
48543 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
48544 * modules/bumpalloc: Remove.
48546 2003-08-04 Paul Eggert <eggert@twinsun.com>
48548 * lib/getloadavg.c: Change copyright notice and spacing to conform to
48551 Merge from coreutils.
48552 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
48554 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
48555 from Karl Berry, implemented by Jim Meyering.
48556 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
48557 from Dmitry V. Levin.
48558 Remove anachronistic cast of xrealloc.
48559 * lib/fnmatch_.h (__const): Remove. Use 'const'.
48560 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
48561 type. Otherwise, it wouldn't compile with at least /bin/cc on
48562 ymp-cray-unicos9.0.2.X.
48563 Combine two mostly-identical uses of alloca into one.
48564 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
48566 2003-08-04 Dave Love <d.love@dl.ac.uk>
48570 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
48571 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
48572 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
48573 obsolete NLIST_NAME_UNION.
48574 [__GNU__]: Undef BSD and FSCALE.
48575 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
48577 2003-08-03 Paul Eggert <eggert@twinsun.com>
48579 * lib/stdbool_.h (_Bool): Make it signed char, instead of
48580 an enum type, so that it's guaranteed to promote to int. See:
48581 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
48583 2003-08-03 Karl Berry <karl@gnu.org>
48585 * config/depcomp: update from automake.
48587 2003-07-31 Paul Eggert <eggert@twinsun.com>
48589 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
48590 (strerror): Don't assume that a printable int fits in 14 bytes.
48592 2003-07-31 Bruno Haible <bruno@clisp.org>
48594 * modules/getpass-gnu: New file.
48595 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
48597 2003-07-31 Bruno Haible <bruno@clisp.org>
48599 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
48601 2003-07-24 Karl Berry <karl@gnu.org>
48603 * config/missing: update from automake.
48605 2003-07-24 Derek Robert Price <derek@ximbiot.com>
48606 Bruno Haible <bruno@clisp.org>
48608 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
48609 * lib/getline.c (getline, getdelim): Likewise.
48610 Remove _GNU_SOURCE define; now it's defined in config.h through
48613 2003-07-23 Karl Berry <karl@gnu.org>
48615 * config/config.sub: update from prep.
48617 2003-07-22 Paul Eggert <eggert@twinsun.com>
48619 * modules/xalloc (Depends-on): Add exitfail.
48620 * modules/xmemcoll: Likewise.
48622 2003-07-22 Paul Eggert <eggert@twinsun.com>
48624 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
48625 over-parenthesization in macros.
48627 Sync with coreutils.
48629 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
48632 Use `exit_failure' for xalloc and xmemcoll instead of their own
48633 private exit-failure variables.
48634 * lib/xalloc.h (xalloc_exit_failure): Remove.
48635 * lib/xmalloc.c: Likewise. Include exitfail.h.
48636 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
48637 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
48638 * lib/xmemcoll.c: Likewise. Include exitfail.h.
48639 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
48641 2003-07-20 Jim Meyering <jim@meyering.net>
48643 * modules/closeout (Depends-on): Add exitfail.
48644 Suggestion from Bruno Haible.
48646 2003-07-19 Karl Berry <karl@gnu.org>
48648 * config/config.sub: update from prep.
48650 2003-07-18 Paul Eggert <eggert@twinsun.com>
48652 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
48654 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
48655 to test that it can stand by itself. Include "exitfail.h".
48656 Clients should set exit_failure instead.
48657 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
48659 2003-07-18 Bruno Haible <bruno@clisp.org>
48661 * modules/getndelim2: New file.
48662 * modules/getline: Share files with module getndelim2.
48663 * modules/getnline: Depend on getndelim2 instead of sharing files with
48664 it. Add getnline.c to lib_SOURCES.
48665 * MODULES.html.sh (func_all_modules): Add getndelim2.
48667 2003-07-18 Bruno Haible <bruno@clisp.org>
48669 * m4/getndelim2.m4: New file.
48670 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
48671 invoke gl_PREREQ_GETNDELIM2.
48672 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
48673 gl_PREREQ_GETNDELIM2.
48674 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
48677 2003-07-18 Bruno Haible <bruno@clisp.org>
48679 * lib/getndelim2.h: New file.
48680 * lib/getndelim2.c: Make into a module of its own. Include config.h,
48682 (getndelim2): Make non-static. Change return type to ssize_t.
48683 * lib/getline.h: Change argument names.
48684 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
48685 * lib/getnline.c: Include getndelim2.h.
48687 2003-07-18 Andreas Schwab <schwab@suse.de>
48689 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
48691 2003-07-17 Karl Berry <karl@gnu.org>
48693 * config/config.sub: update from prep.
48695 2003-07-17 Bruno Haible <bruno@clisp.org>
48697 * modules/getnline: New file.
48698 * modules/getline: Add lib/getndelim2.c to source file list.
48699 * MODULES.html.sh (func_all_modules): Add getnline.
48701 2003-07-17 Bruno Haible <bruno@clisp.org>
48703 * m4/getnline.m4: New file.
48705 2003-07-17 Bruno Haible <bruno@clisp.org>
48707 * m4/Makefile.am.in: Remove file.
48708 * m4/Makefile.am: Remove file.
48709 * m4/Makefile.in: Remove file.
48711 2003-07-17 Bruno Haible <bruno@clisp.org>
48713 * lib/getnline.h: New file.
48714 * lib/getnline.c: New file.
48715 * lib/getndelim2.c: New file, extracted from getline.c.
48716 (getndelim2): Renamed from getdelim2, with added nmax argument.
48717 * lib/getline.c: Include getndelim2.c.
48718 (getdelim2): Moved out to getndelim2.c.
48719 (getline, getdelim): Update.
48721 2003-07-17 Bruno Haible <bruno@clisp.org>
48723 * lib/Makefile.am: Remove file.
48724 * lib/Makefile.in: Remove file.
48726 2003-07-17 Bruno Haible <bruno@clisp.org>
48728 * configure.in: Remove file.
48729 * Makefile.in: Remove file.
48731 2003-07-17 Bruno Haible <bruno@clisp.org>
48733 * MODULES.html.sh: Put the </BODY> right before </HTML>.
48735 2003-07-16 Karl Berry <karl@gnu.org>
48737 * config/srclist-update: was running fixlicense twice, which caused
48738 texinfo.tex to be nullified for some reason. Simplify,
48739 $gplsrc is no longer needed as far as I can see?
48741 2003-07-16 Jim Meyering <jim@meyering.net>
48743 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
48745 2003-07-15 Paul Eggert <eggert@twinsun.com>
48747 * config/srclist.txt: Get the following files from gettext-runtime/intl
48748 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
48749 ref-del.sin. From Bruno Haible.
48750 * config/srclist-update (fixfile): Change grep pattern again, since the
48751 previous fix didn't work (there was another trailing $). Use
48752 '[$]' to escape the $s.
48754 2003-07-15 Karl Berry <karl@gnu.org>
48756 * lib/vasnprintf.c: update from gettext.
48758 2003-07-15 Karl Berry <karl@gnu.org>
48760 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
48761 gets expanded when surrounded by '$'.
48763 2003-07-15 Jim Meyering <jim@meyering.net>
48765 * modules/save-cwd: Don't depend on error. From Derek Price.
48767 2003-07-15 Jim Meyering <jim@meyering.net>
48769 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
48771 2003-07-14 Simon Josefsson <jas@extundo.com>
48773 * modules/mempcpy: New file.
48774 * MODULES.html.sh (func_all_modules): Add mempcpy.
48776 2003-07-14 Simon Josefsson <jas@extundo.com>
48778 * m4/mempcpy.m4: New file.
48780 2003-07-14 Simon Josefsson <jas@extundo.com>
48782 * lib/mempcpy.h: New file.
48783 * lib/mempcpy.c: New file.
48785 2003-07-14 Paul Eggert <eggert@twinsun.com>
48787 * modules/getdate, modules/posixtm: Depend on mktime.
48789 2003-07-14 Paul Eggert <eggert@twinsun.com>
48791 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
48792 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
48793 unicodeio.c, unicodeio.h, unlocked-io.h:
48794 Switch from LGPL to GPL.
48796 2003-07-14 Paul Eggert <eggert@twinsun.com>
48798 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
48799 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
48800 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
48801 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
48802 vasprintf.c, vasprintf.h: Regenerate. These files are now being
48803 updated automatically by ../config/srclist-update. This changes
48804 their license from LPGL to GPL.
48806 2003-07-14 Paul Eggert <eggert@twinsun.com>
48808 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
48809 assumed to refer to the root of the most recent stable gettext version.
48810 * config/srclistvars.sh: Add defaults for eggert.
48811 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
48812 Match "This program" as well as "The program". This is needed
48815 2003-07-14 Jim Meyering <jim@meyering.net>
48817 Don't emit diagnostics. Let callers do that.
48818 * lib/save-cwd.c: Don't include "error.h".
48819 (save_cwd): Don't call error. Ensure that errno is valid
48820 when returning nonzero.
48822 * lib/save-cwd.h (restore_cwd): Update prototype.
48823 * lib/save-cwd.c (restore_cwd): Remove two parameters.
48824 Simplify. Don't call error upon failure. Let callers do that.
48825 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
48826 when auditing is enabled. But don't bother updating the #if.
48828 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
48830 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
48831 it breaks C++ compilation.
48832 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
48834 2003-07-10 Simon Josefsson <jas@extundo.com>
48836 * modules/strchrnul (Makefile.am): Add strchrnul.h.
48838 2003-07-10 Jim Meyering <jim@meyering.net>
48840 * m4/clock_time.m4: Remove trailing blank.
48841 * m4/intmax_t.m4: Likewise.
48843 2003-07-10 Jim Meyering <jim@meyering.net>
48845 * lib/vasnprintf.c: Remove trailing blanks.
48846 Make cpp indentation consistent.
48848 2003-07-09 Paul Eggert <eggert@twinsun.com>
48850 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
48851 posixver.c, strftime.c, strnlen.c, strverscmp.c:
48852 Switch from LGPL to GPL.
48854 2003-07-09 Paul Eggert <eggert@twinsun.com>
48856 * config/srclist.txt: Sort sublists. Add
48857 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
48858 that differ from gnulib for one reason or another; we'd like this list
48859 to be smaller but for now let's document what we have.
48861 2003-07-08 Paul Eggert <eggert@twinsun.com>
48863 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
48864 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
48865 and sweeter "eval x=$x".
48866 * config/srclist.txt: Get lib/argp* from glibc.
48868 2003-07-07 Paul Eggert <eggert@twinsun.com>
48870 * lib/mktime.c: Fix some boundary cases and remove need for floating
48873 Issue a compile-time diagnostic if time_t is floating point, or if
48874 two's complement arithmetic is not in effect, or if arithmetic
48875 right shift does not propagate the sign. These assumptions were
48876 all in the original code but they weren't checked.
48878 (TIME_T_MIDPOINT, verify): New macros.
48879 (__isleap): Remove; it has integer overflow problems.
48880 (leapyear): New function, without those problems.
48881 (ydhms_tm_diff): Remove; splitting into two parts.
48882 (ydhms_diff): New function, containing the arithmetic part of
48883 the old ydhms_tm_diff function. Issue a compile-time
48884 diagnostic if we are not using C99 integer division.
48885 Avoid casts when possible.
48886 (guess_time_tm): New function, containing the checking part of
48887 the old ydhms_tm_diff function. Return the new value, rather than
48888 the difference between it and the old. Accept a new argument T
48889 so that *T specifies the old value. Check for overflow in the result.
48891 (__mktime_internal): Use a time_t offset, not a long int offset.
48892 This undoes the 2003-06-04 change, which is no longer needed now
48893 that we have better overflow checking.
48894 (localtime_offset): Likewise.
48896 (__mktime_internal): Avoid harmful overflow on hosts where time_t
48897 and long are 64-bit but int is only 32-bit.
48898 (ydhms_diff): Use long int to store year1 and yday1.
48899 Issue a compile-time diagnostic if long int is not wide enough.
48901 (__mktime_internal): Use long int to store adjusted year and yday.
48902 Use plain C rather than preprocessor commands, if that doesn't
48904 Check for overflow (and try to repair) after each probe
48905 rather than checking only at the very end. This avoids some bugs
48906 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
48907 does not equal GMT offset at maximum time).
48908 Use integer to check for overflow rather than floating point; this
48909 is more portable to non-IEEE hosts, and is a tad faster.
48910 When we detect that we are oscillating between two values,
48911 don't check whether tm_isdst has the requested value, since
48912 we already know the answer. When tm_isdst has the wrong value,
48913 use a different heuristic to find the right one, based on the
48914 extreme values actually observed in practice in tz2003a,
48915 rather than the (overly optimistic) "previous 3 calendar quarters".
48917 (not_equal_tm, print_tm, check_result): Use "const T" rather than
48918 "T const" to accommodate glibc style.
48919 (check_result): Use less-confusing report format. "long" -> "long int.
48921 Don't loop if the iteration overflows time_t.
48922 Allow a negative step in the iteration.
48924 2003-07-06 Karl Berry <karl@gnu.org>
48926 * config/depcomp: update from automake.
48927 * config/config.sub: update from prep.
48929 2003-07-03 Karl Berry <karl@gnu.org>
48931 * config/config.guess: update from prep.
48933 2003-07-01 Paul Eggert <eggert@twinsun.com>
48935 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
48936 xreadlink.c now includes it unconditionally.
48938 2003-07-01 Paul Eggert <eggert@twinsun.com>
48940 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
48941 having it depend on HAVE_SYS_TYPES_H.
48943 2003-07-01 Bruno Haible <bruno@clisp.org>
48945 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
48946 <sys/types.h> should be sufficient.
48947 Reported by Paul Eggert.
48949 2003-06-26 Karl Berry <karl@gnu.org>
48951 * config/depcomp: update from automake.
48953 2003-06-26 Bruno Haible <bruno@clisp.org>
48955 * modules/human: Depend on module stdbool.
48957 2003-06-25 Bruno Haible <bruno@clisp.org>
48959 * modules/readlink: New file.
48960 * modules/xreadlink: Depend on it.
48961 * MODULES.html.sh (func_all_modules): Add readlink.
48963 2003-06-25 Bruno Haible <bruno@clisp.org>
48965 * m4/readlink.m4: New file.
48967 2003-06-25 Bruno Haible <bruno@clisp.org>
48969 * lib/readlink.c: New file.
48971 2003-06-22 Karl Berry <karl@gnu.org>
48973 * config/srclist.txt: update mkinstalldirs from automake.
48974 * config/mkinstalldirs: update.
48976 2003-06-22 Bruno Haible <bruno@clisp.org>
48978 Portability to mingw32.
48979 * m4/ssize_t.m4: New file, from GNU gettext.
48980 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
48981 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
48983 2003-06-22 Bruno Haible <bruno@clisp.org>
48985 * modules/safe-read: Add m4/ssize_t.m4.
48986 * modules/xreadlink: Add m4/ssize_t.m4.
48988 2003-06-20 Bruno Haible <bruno@clisp.org>
48990 Assume C89, so PARAMS isn't needed.
48991 * lib/unicodeio.h (PARAMS): Remove.
48992 * lib/unicodeio.c: Don't use PARAMS.
48994 2003-06-18 Karl Berry <karl@gnu.org>
48996 * config/config.{guess,sub}: update from prep.
48998 2003-06-18 Jim Meyering <jim@meyering.net>
49000 Merge changes from coreutils.
49001 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
49002 Remove explicit declarations of xmalloc and realloc.
49004 (read_utmp): Remove anachronistic cast of xmalloc.
49006 2003-06-17 Paul Eggert <eggert@twinsun.com>
49008 Assume C89, so PARAMS isn't needed.
49009 * lib/backupfile.h (PARAMS): Remove. All uses removed.
49010 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
49011 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
49012 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
49013 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
49014 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
49015 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
49016 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
49017 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
49018 lib/xstrtod.h, lib/xstrtol.h: Likewise.
49019 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
49020 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
49021 no longer needed. Anyway, config.h should always be included before any
49024 2003-06-11 Simon Josefsson <jas@extundo.com>
49026 * modules/sysexits: New file.
49027 * MODULES.html.sh (func_all_modules): Add sysexits.
49029 2003-06-11 Simon Josefsson <jas@extundo.com>
49031 * lib/sysexit_.h: New file.
49033 2003-06-11 Derek Price <derek@ximbiot.com>
49035 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
49038 2003-06-11 Bruno Haible <bruno@clisp.org>
49040 * m4/sysexits.m4: New file.
49042 2003-06-10 Simon Josefsson <jas@extundo.com>
49044 * lib/argp.h: New file, from glibc.
49045 * lib/argp-ba.c: New file, from glibc.
49046 * lib/argp-eexst.c: New file, from glibc.
49047 * lib/argp-fmtstream.c: New file, from glibc.
49048 * lib/argp-fmtstream.h: New file, from glibc.
49049 * lib/argp-fs-xinl.c: New file, from glibc.
49050 * lib/argp-help.c: New file, from glibc.
49051 * lib/argp-namefrob.h: New file, from glibc.
49052 * lib/argp-parse.c: New file, from glibc.
49053 * lib/argp-pv.c: New file, from glibc.
49054 * lib/argp-pvh.c: New file, from glibc.
49055 * lib/argp-xinl.c: New file, from glibc.
49057 2003-06-10 Simon Josefsson <jas@extundo.com>
49059 * modules/strchrnul: New file.
49061 2003-06-10 Simon Josefsson <jas@extundo.com>
49063 * modules/argp: New file.
49065 2003-06-10 Simon Josefsson <jas@extundo.com>
49067 * m4/strchrnul.m4: New file.
49069 2003-06-10 Simon Josefsson <jas@extundo.com>
49071 * lib/strchrnul.h: New file.
49072 * lib/strchrnul.c: New file.
49074 2003-06-10 Bruno Haible <bruno@clisp.org>
49076 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
49078 2003-06-07 Karl Berry <karl@gnu.org>
49080 * config/config.{guess,sub}: update from prep.
49082 2003-06-07 Jim Meyering <jim@meyering.net>
49084 * modules/strtod: Use $(...) notation, not @...@ for
49085 AC_REPLACE'd variables.
49086 * modules/localcharset: Likewise.
49088 2003-06-07 Jim Meyering <jim@meyering.net>
49090 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
49091 in place of my name in the copyright comment.
49092 Remove definition and uses of __P.
49095 * lib/stat.c: Don't declare xmalloc explicitly.
49096 Instead, include "xalloc.h".
49097 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
49098 xrealloc, and xcalloc return values.
49099 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
49101 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
49103 2003-06-07 Bruno Haible <bruno@clisp.org>
49105 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
49106 avoid AC_CONFIG_LINKS.
49107 * modules/fnmatch (Makefile.am): Use explicit creation rule for
49108 fnmatch.h, to avoid AC_CONFIG_LINKS.
49109 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
49111 2003-06-07 Bruno Haible <bruno@clisp.org>
49113 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
49114 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
49115 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49117 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
49118 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49121 2003-06-06 Jim Meyering <jim@meyering.net>
49123 Merge from coreutils.
49124 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
49125 Consolidate declarations and initializations of *_base* locals.
49127 Merge from coreutils.
49128 This avoids a core dump on systems without GNU putenv,
49129 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
49130 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
49131 (unsetenv): New static function, from GNU libc.
49132 (rpl_putenv): Use it.
49134 * lib/modechange.c: Remove trailing blanks.
49136 Merge from coreutils.
49137 * lib/fsusage.c: Remove declaration of statfs.
49138 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
49140 * lib/posixtm.c: Include <stdbool.h> unconditionally.
49142 2003-06-06 Jim Meyering <jim@meyering.net>
49144 * lib/stdbool_.h: Renamed from stdbool.h.in.
49146 2003-06-06 Jim Meyering <jim@meyering.net>
49147 Bruno Haible <bruno@clisp.org>
49149 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
49150 Adjust Makefile.am snippet not to redirect directly to target.
49151 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
49153 2003-06-05 Paul Eggert <eggert@twinsun.com>
49155 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
49156 mismatch, look in future quarters as well as past. This fixes a
49157 bug when processing fall-backwards gaps immediately after a long
49158 period of daylight-saving time.
49160 * lib/mktime.c: Assume freestanding C89 or better.
49161 (HAVE_LIMITS_H): Remove. Assume it's 1.
49162 (__P): Remove; not used.
49163 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
49164 (mktime, not_equal_tm, print_tm, check_result,
49165 main): Use prototypes. Use const * where appropriate.
49166 (main): Fix typo in testing code that uncovered by above changes.
49167 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
49169 2003-06-04 Paul Eggert <eggert@twinsun.com>
49171 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
49172 locale.h, localeconv. This merges changes from coreutils.
49174 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
49175 It can be removed after the next Autoconf is released.
49176 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
49179 2003-06-04 Paul Eggert <eggert@twinsun.com>
49181 * lib/mktime.c: Fix Debian bug 177940
49182 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
49183 (localtime_offset): Now long int, not time_t, because we want it
49184 to be guaranteed to be signed. All uses changed.
49185 (__mktime_internal): If overflow would occur when adding offset,
49188 Merge 'human' changes from coreutils. Rewrite to support
49189 locale-specific notations like thousands separators.
49190 * lib/human.c: Simplify authorship notice.
49191 Include human.h immediately after config.h.
49192 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
49193 <limits.h>: Do not include, since human.h does.
49194 (SIZE_MAX, UINTMAX_MAX): New macros.
49195 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
49196 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
49197 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
49198 (power_letter): Renamed from suffixes.
49199 (generate_suffix_backwards): Remove.
49200 (adjust_value): Now takes int style (because of human.h changes)
49201 and long double value (for greater precision on some platforms).
49202 (group_number): New function.
49203 (human_readable): Use it. Use integer options, not enum.
49204 Put the options before the sizes in the arg list.
49205 Support all the new options.
49206 The old human_readable function has been removed;
49207 use inttostr.h instead.
49208 (human_readable, default_block_size, humblock):
49209 Use uintmax_t, not int, for block sizes.
49210 (human_readable_inexact, block_size_types): Remove.
49211 (block_size_opts): New constant.
49212 (human_options): Renamed from human_block_size, with new signature
49213 that allows block sizes up to UINTMAX_MAX. All callers changed.
49214 * lib/human.h: Add copyright and authorship notice.
49215 Include <limits.h> and <stdbool.h> unconditionally.
49216 (PARAMS): Remove. All uses removed.
49217 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
49218 (enum human_inexact_style): Remove tag; now a nameless enum.
49219 (human_floor, human_ceiling, human_round_to_even): Now have
49220 values 2, 0, 1 rather than -1, 1, 0.
49221 (human_group_digits, human_suppress_point_zero, human_autoscale,
49222 human_base_1024, human_SI, human_B): New constants.
49223 (human_readable_inexact, human_block_size): Remove.
49224 (human_readable): Size args are now uintmax_t, not int.
49225 (human_options): New decl.
49227 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
49228 unnecessary now that we assume C89 or better. This change
49229 imported from coreutils.
49231 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49232 arbitrarily. This is the same patch as 2003-05-28, but it got lost
49233 in the 2003-05-30 sync from glibc.
49235 .h files should stand alone, but we shouldn't include <sys/types.h>
49236 if we can get away with just <stddef.h>.
49238 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
49239 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
49240 rather than <sys/types.h>, as we merely need size_t.
49241 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
49243 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
49244 Include <stdio.h>, to get FILE.
49245 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
49246 memcasecmp.h has included <stddef.h> and all we need is size_t.
49247 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
49248 our interface, instead of including <sys/types.h>
49250 2003-06-04 Paul Eggert <eggert@twinsun.com>
49252 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
49253 now, as glibc mktime is buggy on non-glibc systems.
49255 2003-06-03 Karl Berry <karl@gnu.org>
49257 * config/config.sub: update from prep.
49259 2003-06-02 Paul Eggert <eggert@twinsun.com>
49262 Fix some minor time-related bugs with POSIX time arguments.
49263 Some valid time stamps were being rejected (notably -1, and
49264 time stamps before 1900 on 64-bit hosts). And some invalid
49265 time stamps were being accepted, e.g. September 31.
49267 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
49268 that we can return (time_t) -1 successfully.
49269 * lib/posixtm.c: Likewise.
49270 [HAVE_STDBOOL_H]: Include <stdbool.h>.
49271 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
49272 (t): Remove static var.
49273 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
49274 of static var. All uses changed.
49275 (year): Do not reject years before 1900; they can occur with
49277 (posix_time_parse): Do not check for out-of-range components;
49278 that is now the caller's responsibility, since our checks were
49279 only approximations.
49280 (posixtime): Use mktime to check for out-of-range components,
49281 since it knows them exactly.
49282 If mktime returns (time_t) -1, check whether an error actually occurred
49283 by invoking localtime on -1.
49284 (main) [TEST_POSIXTIME]: Check for input data errors, and report
49285 posixtime failures better.
49286 Improve the test data (in comments only).
49288 2003-06-02 Karl Berry <karl@gnu.org>
49290 * config/mkinstalldirs (version): new variable.
49291 (--version): new option.
49292 (usage): improve message.
49294 2003-05-30 Karl Berry <karl@gnu.org>
49296 * lib/mktime.c: update from libc.
49298 2003-05-30 Bruno Haible <bruno@clisp.org>
49300 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
49301 * config/config.rpath: Upgrade to gettext-0.12.1.
49303 2003-05-30 Bruno Haible <bruno@clisp.org>
49305 * m4/gettext.m4: Upgrade to gettext-0.12.1.
49306 * m4/nls.m4: New file, from gettext-0.12.1.
49307 * m4/po.m4: New file, from gettext-0.12.1.
49308 * m4/progtest.m4: Upgrade to gettext-0.12.1.
49310 2003-05-30 Bruno Haible <bruno@clisp.org>
49312 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
49313 * lib/localcharset.h: Likewise.
49314 * lib/localcharset.c: Likewise.
49316 2003-05-29 Karl Berry <karl@gnu.org>
49318 * config/config.rpath: update from gettext.
49320 2003-05-28 Paul Eggert <eggert@twinsun.com>
49322 Assume the headers required for C89 freestanding compilers.
49323 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
49324 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
49325 * m4/human.m4 (gl_HUMAN): Likewise.
49326 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
49327 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
49328 * m4/userspec.m4 (gl_USERSPEC): Likewise.
49329 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
49330 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49331 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
49333 2003-05-28 Paul Eggert <eggert@twinsun.com>
49335 Assume the headers required for C89 freestanding compilers.
49336 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
49337 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
49338 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
49339 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
49340 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
49341 define, since <limits.h> is guaranteed to do that.
49342 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
49343 * lib/exclude.c: Include <stdbool.h> unconditionally.
49344 * lib/tempname.c: Include <stddef.h> unconditionally.
49345 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
49346 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
49347 <stddef.h> does that.
49348 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
49349 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
49350 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
49352 * lib/xstrtol.c: Likewise.
49353 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
49354 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
49356 * lib/addext.c (addext): Use assignment rather than cast, to avoid
49357 warnings on some platforms.
49359 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49362 2003-05-26 Jim Meyering <jim@meyering.net>
49364 Merge in a change from coreutils:
49365 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
49366 that is guaranteed to be `no'. Use `no_such_member' to indicate
49367 that condition, rather than `-1' which is slightly misleading.
49368 Change the name of the cache variable to have the gl_ prefix.
49369 Prompted by a patch from Richard Dawe for DJGPP.
49371 2003-05-24 Karl Berry <karl@gnu.org>
49373 * config/config.guess: update from prep.
49375 2003-05-22 Karl Berry <karl@gnu.org>
49377 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
49379 2003-05-20 Karl Berry <karl@gnu.org>
49381 * config/config.guess: update from prep.
49383 2003-05-18 Karl Berry <karl@gnu.org>
49385 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
49386 might actually be set by the user.
49388 * config/depcomp, install-sh, mdate-sh: update from automake.
49390 2003-05-17 Bruno Haible <bruno@clisp.org>
49392 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
49393 invalid expansion for AC_EGREP_CPP.
49394 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
49395 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
49396 Suggested by Akim Demaille <akim@epita.fr> in
49397 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
49399 2003-05-12 Jim Meyering <jim@meyering.net>
49401 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
49402 the space-padded-by-default conversion specifiers, %e, %k, %l.
49404 2003-05-12 Bruno Haible <bruno@clisp.org>
49406 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
49407 the string is longer than 4 KB.
49409 2003-05-11 Karl Berry <karl@gnu.org>
49411 * config/config.{guess,sub}: update from prep.
49413 2003-05-09 Bruno Haible <bruno@clisp.org>
49415 * modules/error: Add m4/strerror_r.m4 to file list.
49417 2003-05-03 Bruno Haible <bruno@clisp.org>
49419 Upgrade to Unicode-4.0.
49420 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
49421 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
49422 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
49423 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
49424 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
49425 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
49426 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
49427 Change width of U+E0100..U+E01EF from 1 to 0.
49429 2003-04-25 Jim Meyering <jim@meyering.net>
49431 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
49432 of type size_t, not int.
49434 2003-04-25 Bruno Haible <bruno@clisp.org>
49436 * lib/copy-file.c: Include <stddef.h>, for size_t.
49438 2003-04-21 Paul Eggert <eggert@twinsun.com>
49440 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
49441 code which expansion is under static control. Patch imported from
49442 Akim Demaille's patch to Bison; see
49443 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
49445 2003-04-14 Bruno Haible <bruno@clisp.org>
49447 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
49449 2003-04-11 Jim Meyering <jim@meyering.net>
49451 Merge changes from Coreutils.
49453 2003-03-22 Jim Meyering <jim@meyering.net>
49455 * lib/strftime.c (widen): Cast alloca return value to proper type.
49457 2003-01-19 Ulrich Drepper <drepper@redhat.com>
49460 * lib/strftime.c (my_strftime): Handle very large width
49461 specifications for numeric values correctly. Improve checks for
49464 2003-01-19 Jim Meyering <jim@meyering.net>
49466 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
49468 (nl_get_alt_digit) [! defined my_strftime]: Define.
49469 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
49470 _nl_get_alt_digit and _nl_get_walt_digit.
49472 * lib/strftime.c (my_strftime): Merge in locale-related changes from
49473 libc. These changes have no effect outside of _LIBC.
49475 2003-04-10 Bruno Haible <bruno@clisp.org>
49477 * modules/findprog: New file.
49478 * MODULES.html.sh (func_all_modules): Add it.
49480 2003-04-10 Bruno Haible <bruno@clisp.org>
49482 * m4/findprog.m4: New file.
49483 * m4/eaccess.m4: New file.
49485 2003-04-10 Bruno Haible <bruno@clisp.org>
49487 * lib/findprog.h: New file, from GNU gettext.
49488 * lib/findprog.c: New file, from GNU gettext.
49490 2003-04-05 Jim Meyering <jim@meyering.net>
49492 Merge changes from Coreutils.
49494 * lib/exclude.h (PARAMS): Remove definition and uses.
49495 * lib/exclude.c: Remove uses of `PARAMS'.
49497 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
49498 Add test-cases for DOS filenames. Declare program_name.
49499 (main): Set up program_name. Patch by Rich Dawe.
49501 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
49503 Use mntctl's return value to drive the entry-processing loop, since
49504 we can't rely on the value of the vmt_length member in the last
49505 entry. On some systems doing so could result in exhausting
49506 virtual memory. Based in part on a patch from Mike Jetzer.
49508 2003-04-04 Bruno Haible <bruno@clisp.org>
49510 * modules/linebreak: New file.
49511 * MODULES.html.sh (func_all_modules): Add it.
49513 2003-04-04 Bruno Haible <bruno@clisp.org>
49515 * m4/linebreak.m4: New file.
49517 2003-04-04 Bruno Haible <bruno@clisp.org>
49519 * lib/linebreak.h: New file, from GNU gettext.
49520 * lib/linebreak.c: New file, from GNU gettext with slight
49522 * lib/lbrkprop.h: New file, from GNU gettext.
49524 2003-04-03 Bruno Haible <bruno@clisp.org>
49526 * modules/utf8-ucs4: New file.
49527 * modules/utf16-ucs4: New file.
49528 * modules/ucs4-utf8: New file.
49529 * modules/ucs4-utf16: New file.
49530 * MODULES.html.sh (func_all_modules): Add them.
49532 2003-04-03 Bruno Haible <bruno@clisp.org>
49534 * m4/utf-ucs4.m4: New file.
49535 * m4/ucs4-utf.m4: New file.
49537 2003-04-03 Bruno Haible <bruno@clisp.org>
49539 * lib/utf8-ucs4.h: New file, from GNU gettext.
49540 * lib/utf16-ucs4.h: New file, from GNU gettext.
49541 * lib/ucs4-utf8.h: New file, from GNU gettext.
49542 * lib/ucs4-utf16.h: New file, from GNU gettext.
49544 2003-04-02 Bruno Haible <bruno@clisp.org>
49546 * modules/binary-io: New file.
49547 * MODULES.html.sh (func_all_modules): Add it.
49549 2003-04-02 Bruno Haible <bruno@clisp.org>
49551 * lib/binary-io.h: New file, from GNU gettext.
49553 2003-04-01 Bruno Haible <bruno@clisp.org>
49555 * modules/pathname: New file.
49556 * MODULES.html.sh (func_all_modules): Add it.
49558 2003-04-01 Bruno Haible <bruno@clisp.org>
49560 * lib/pathname.h: New file, from GNU gettext.
49561 * lib/concatpath.c: New file, from GNU gettext.
49563 2003-03-30 Bruno Haible <bruno@clisp.org>
49565 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
49567 2003-03-30 Bruno Haible <bruno@clisp.org>
49569 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
49570 function chown() doesn't exist.
49572 2003-03-28 Bruno Haible <bruno@clisp.org>
49574 * modules/copy-file: New file.
49575 * MODULES.html.sh (func_all_modules): Add it.
49577 2003-03-28 Bruno Haible <bruno@clisp.org>
49579 * m4/copy-file.m4: New file.
49581 2003-03-28 Bruno Haible <bruno@clisp.org>
49583 * lib/copy-file.h: New file, from GNU gettext.
49584 * lib/copy-file.c: New file, from GNU gettext.
49586 2003-03-18 Jim Meyering <jim@meyering.net>
49588 * lib/quote.c (quote_n): Fix typo in comment.
49590 2003-03-18 Bruno Haible <bruno@clisp.org>
49592 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
49594 * m4/onceonly_2_57.m4: Likewise.
49596 2003-03-17 Bruno Haible <bruno@clisp.org>
49598 * m4/onceonly.m4: Require autoconf 2.54 or newer.
49599 (m4_quote): Remove macro.
49600 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
49602 2003-03-14 Jim Meyering <jim@meyering.net>
49604 Merge changes from Coreutils.
49605 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
49606 to be const, in order to avoid warnings.
49607 (obstack_room): Likewise.
49608 (obstack_empty_p): Likewise.
49610 2003-03-14 Bruno Haible <bruno@clisp.org>
49612 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
49613 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
49615 2003-03-13 Paul Eggert <eggert@twinsun.com>
49617 Merge changes from Bison.
49618 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
49619 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
49620 when compiling Bison 1.875's `bitset bset = obstack_alloc
49621 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
49622 * lib/hash.c: Include <stdbool.h> unconditionally.
49624 2003-03-13 Paul Eggert <eggert@twinsun.com>
49626 * m4/onceonly.m4 (m4_quote): New macro.
49627 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
49628 Quote AC_FOREACH variable-expansions properly.
49630 2003-03-13 Paul Eggert <eggert@twinsun.com>
49632 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
49634 2003-03-09 Paul Eggert <eggert@twinsun.com>
49636 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
49637 Reported by Bruce Becker; see:
49638 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
49640 2003-03-03 Paul Eggert <eggert@twinsun.com>
49641 Bruno Haible <bruno@clisp.org>
49643 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
49644 Reported by John Hughes, see
49645 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
49647 2003-02-20 Bruno Haible <bruno@clisp.org>
49649 * MODULES.html.sh (func_all_modules): Add poll.
49651 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
49653 * modules/poll: New file.
49655 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
49657 * lib/poll_.h: New file.
49658 * lib/poll.c: New file.
49660 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
49662 * m4/poll.m4: New file.
49664 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
49666 * modules/mathl: New file.
49668 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
49670 * lib/mathl.h: New file.
49671 * lib/acosl.c: New file.
49672 * lib/asinl.c: New file.
49673 * lib/atanl.c: New file.
49674 * lib/ceill.c: New file.
49675 * lib/cosl.c: New file.
49676 * lib/expl.c: New file.
49677 * lib/floorl.c: New file.
49678 * lib/frexpl.c: New file.
49679 * lib/ldexpl.c: New file.
49680 * lib/logl.c: New file.
49681 * lib/sincosl.c: New file.
49682 * lib/sinl.c: New file.
49683 * lib/sqrtl.c: New file.
49684 * lib/tanl.c: New file.
49685 * lib/trigl.c: New file.
49686 * lib/trigl.h: New file.
49688 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
49690 * m4/mathl.m4: New file.
49692 2003-02-18 Bruno Haible <bruno@clisp.org>
49694 * MODULES.html.sh (func_all_modules): Add mathl.
49696 2003-02-17 Bruno Haible <bruno@clisp.org>
49698 * modules/mkdtemp: New module.
49699 * MODULES.html.sh (func_all_modules): Add it.
49701 2003-02-17 Bruno Haible <bruno@clisp.org>
49703 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
49705 2003-02-17 Bruno Haible <bruno@clisp.org>
49707 * lib/mkdtemp.h: New file, from GNU gettext.
49708 * lib/mkdtemp.c: New file, from GNU gettext.
49710 2003-02-02 Jim Meyering <jim@meyering.net>
49712 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
49715 2003-01-31 Bruno Haible <bruno@clisp.org>
49717 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
49719 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
49721 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
49723 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
49726 2003-01-31 Bruno Haible <bruno@clisp.org>
49728 * lib/rename.c: #undef rename before defining rpl_rename.
49729 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
49731 2003-01-30 Bruno Haible <bruno@clisp.org>
49733 * modules/vasnprintf, modules/vasprintf: New modules.
49734 * MODULES.html.sh (func_all_modules): Add them.
49736 2003-01-30 Bruno Haible <bruno@clisp.org>
49738 * m4/signed.m4: New file, from GNU gettext.
49739 * m4/longdouble.m4: New file, from GNU gettext.
49740 * m4/wchar_t.m4: New file, from GNU gettext.
49741 * m4/wint_t.m4: New file, from GNU gettext.
49742 * m4/vasnprintf.m4: New file.
49743 * m4/vasprintf.m4: New file.
49745 2003-01-30 Bruno Haible <bruno@clisp.org>
49747 * lib/printf-args.h: New file, from GNU gettext.
49748 * lib/printf-args.c: New file, from GNU gettext.
49749 * lib/printf-parse.h: New file, from GNU gettext.
49750 * lib/printf-parse.c: New file, from GNU gettext.
49751 * lib/vasnprintf.h: New file, from GNU gettext.
49752 * lib/vasnprintf.c: New file, from GNU gettext.
49753 * lib/asnprintf.c: New file, from GNU gettext.
49754 * lib/vasprintf.h: New file, from GNU gettext with modifications.
49755 * lib/vasprintf.c: New file, from GNU gettext.
49756 * lib/asprintf.c: New file, from GNU gettext.
49758 2003-01-29 Bruno Haible <bruno@clisp.org>
49760 * modules/stpncpy: New module.
49761 * MODULES.html.sh (func_all_modules): Add it.
49763 2003-01-29 Bruno Haible <bruno@clisp.org>
49765 * m4/stpncpy.m4: New file.
49767 2003-01-29 Bruno Haible <bruno@clisp.org>
49769 * lib/stpncpy.h: New file, from GNU gettext with modifications.
49770 * lib/stpncpy.c: New file, from GNU gettext with modifications.
49772 2003-01-28 Bruno Haible <bruno@clisp.org>
49774 * modules/c-ctype: New module.
49775 * MODULES.html.sh (func_all_modules): Add it.
49777 2003-01-28 Bruno Haible <bruno@clisp.org>
49779 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
49781 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
49784 2003-01-27 Bruno Haible <bruno@clisp.org>
49786 * modules/xsetenv: New module.
49787 * MODULES.html.sh (func_all_modules): Add it.
49789 2003-01-27 Bruno Haible <bruno@clisp.org>
49791 * lib/xsetenv.h: New file, from GNU gettext.
49792 * lib/xsetenv.c: New file, from GNU gettext.
49794 2003-01-23 Jim Meyering <jim@meyering.net>
49796 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
49797 from working on systems without dirfd (at least Irix and OSF1/Tru64).
49799 2003-01-23 Bruno Haible <bruno@clisp.org>
49801 * modules/minmax: New module.
49802 * MODULES.html.sh (func_all_modules): Add it.
49804 2003-01-23 Bruno Haible <bruno@clisp.org>
49806 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
49809 2003-01-22 Bruno Haible <bruno@clisp.org>
49811 * modules/exit: New module.
49812 * MODULES.html.sh (func_all_modules): Add it.
49814 2003-01-22 Bruno Haible <bruno@clisp.org>
49816 * lib/exit.h: New file, from GNU gettext.
49818 2003-01-19 Bruno Haible <bruno@clisp.org>
49820 * gnulib-tool: Recognize option --extract-maintainer.
49821 (func_get_maintainer): New function.
49822 * modules/*: Add Maintainer entry.
49824 2003-01-16 Jim Meyering <jim@meyering.net>
49826 * m4/regex.m4: The `regex' struct is both input and output.
49827 Initialize it before each use. Patch by Tim Waugh.
49829 2003-01-16 Bruno Haible <bruno@clisp.org>
49831 * MODULES.html.sh: Add a table of contents. Add the module name as
49832 leftmost column. Add hyperlinks.
49834 2003-01-15 Bruno Haible <bruno@clisp.org>
49836 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
49838 2003-01-15 Bruno Haible <bruno@clisp.org>
49840 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
49841 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
49844 2003-01-15 Bruno Haible <bruno@clisp.org>
49846 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
49848 2003-01-15 Bruno Haible <bruno@clisp.org>
49850 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
49851 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
49853 2003-01-14 Jim Meyering <jim@meyering.net>
49855 * lib/same.c (same_name): Tweak a comment.
49857 2003-01-14 Bruno Haible <bruno@clisp.org>
49859 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
49860 when a string comparison is sufficient.
49862 2003-01-14 Bruno Haible <bruno@clisp.org>
49864 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
49867 2003-01-14 Bruno Haible <bruno@clisp.org>
49869 * lib/hash-pjw.c: Add comment about low quality of this function.
49871 2003-01-13 Bruno Haible <bruno@clisp.org>
49873 * modules/stpcpy: Distribute lib/stpcpy.h.
49874 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
49876 2003-01-13 Bruno Haible <bruno@clisp.org>
49878 * modules/*: Add a description.
49879 * modules/strpbrk: Fix Makefile.am snippet.
49880 * modules/strtoimax: Fix dependencies.
49881 * modules/strtoumax: Likewise.
49883 2003-01-13 Bruno Haible <bruno@clisp.org>
49885 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
49886 * modules/alloca (Makefile.am): All object files depend on alloca.h.
49887 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
49889 2003-01-13 Bruno Haible <bruno@clisp.org>
49891 * gnulib-tool (func_create_testdir): Store config/* files in the main
49893 * config.rpath: Move to ...
49894 * config/config.rpath: ... here.
49895 * modules/gettext: Contains config/config.rpath, not config.rpath.
49896 * modules/iconv: Likewise.
49898 2003-01-12 Paul Eggert <eggert@twinsun.com>
49900 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49901 to avoid collisions with libcurses and libreadline.
49903 * m4/getstr.m4: Remove.
49904 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
49906 2003-01-12 Paul Eggert <eggert@twinsun.com>
49908 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49909 to avoid collisions with libcurses and libreadline.
49911 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
49912 * lib/getstr.h, getstr.c: Remove.
49913 * lib/getline.c: Include "getline.h", to check interface.
49914 Move body of old getstr.c here: this defines MIN_CHUNK and
49915 declares getdelim2, which is renamed from getstr.
49916 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
49918 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
49920 * lib/linebuffer.h: Likewise.
49921 (readline): Remove backward-compatibility macro.
49923 2003-01-12 Paul Eggert <eggert@twinsun.com>
49925 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49926 to avoid collisions with libcurses and libreadline.
49928 * MODULES.html.sh: Remove getstr.
49929 * modules/getline: Depend on unlocked-io, not getstr.
49931 2003-01-12 Jim Meyering <jim@meyering.net>
49933 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
49935 2003-01-10 Bruno Haible <bruno@clisp.org>
49937 * modules/alloca: Change Makefile.am requirements. Simplify Include
49938 requirements. Add lib/alloca_.h to file list.
49940 2003-01-10 Bruno Haible <bruno@clisp.org>
49942 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
49944 2003-01-10 Bruno Haible <bruno@clisp.org>
49946 * lib/alloca_.h: New file.
49947 * lib/getdate.y: Unconditionally include alloca.h.
49948 * lib/makepath.c: Likewise.
49949 * lib/setenv.c: Likewise.
49950 * lib/userspec.c: Likewise.
49952 2003-01-09 Karl Berry <karl@gnu.org>
49954 * MODULES.html.sh: include `dirname $0` in PATH, to find
49957 2003-01-09 Bruno Haible <bruno@clisp.org>
49959 * modules/stdbool: Change configure.ac, Makefile.am requirements.
49960 Simplify Include requirements. Add lib/stdbool.h.in to file list.
49962 2003-01-09 Bruno Haible <bruno@clisp.org>
49964 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
49966 2003-01-09 Bruno Haible <bruno@clisp.org>
49968 * lib/stdbool.h.in: New file.
49970 2003-01-09 Bruno Haible <bruno@clisp.org>
49972 * gnulib-tool (func_all_modules): Ignore files ending in ~.
49973 * MODULES.html.sh: Likewise.
49975 2003-01-08 Jim Meyering <jim@meyering.net>
49977 * lib/full-write.c: Undefine and define-away `const' after inclusion
49978 of errno.h, not before. Suggestion from Bruno Haible.
49980 2003-01-08 Bruno Haible <bruno@clisp.org>
49982 * modules/full-read: Depend on full-write.
49984 2003-01-08 Bruno Haible <bruno@clisp.org>
49986 * lib/safe-read.c: Include specification header first, to ensure its
49988 * lib/full-write.c: Likewise.
49990 2003-01-07 Jim Meyering <jim@meyering.net>
49992 * lib/full-write.c: Rework so that it may serve to define full_read,
49994 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
49996 2003-01-07 Bruno Haible <bruno@clisp.org>
49998 * lib/strtoimax.c: Include <stdint.h> as an alternative to
50000 * lib/xstrtol.h: Likewise.
50001 * lib/xstrtoimax.c: Likewise.
50002 * lib/xstrtoumax.c: Likewise.
50003 * lib/human.h: Likewise.
50005 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
50006 on systems that have <inttypes.h> but not <stdint.h>.
50008 2003-01-07 Bruno Haible <bruno@clisp.org>
50010 * MODULES.html.sh: Add copyright notice.
50011 (missed_files): Omit CVS directory entries.
50012 (func_module): Make it work with sed-3.02.
50013 * MODULES.txt: Remove file.
50015 2003-01-06 Jim Meyering <jim@meyering.net>
50017 * lib/version-etc.c: Update year in translatable copyright string.
50019 2003-01-03 Karl Berry <karl@gnu.org>
50021 * config/config.{guess,sub}: update from prep.
50023 2003-01-02 Karl Berry <karl@gnu.org>
50025 * doc/COPYING.DOC: belatedly updated to 1.2.
50027 2003-01-01 Karl Berry <karl@gnu.org>
50029 * gnulib-tool (func_verify_module): report module name $module in
50030 error message, not $1.
50031 * gnulib-tool (create-testdir): don't complain if destdir couldn't
50032 be created, only if it doesn't exist.
50033 * gnulib-tool (last_checkin_date): don't expand the $Date here.
50035 2002-12-31 Paul Eggert <eggert@twinsun.com>
50037 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
50039 2002-12-31 Paul Eggert <eggert@twinsun.com>
50041 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
50042 memcmp if strcoll doesn't work.
50044 2002-12-31 Bruno Haible <bruno@clisp.org>
50046 * lib/utime.c (utime_null): No need to call ftruncate if the file was
50049 2002-12-31 Bruno Haible <bruno@clisp.org>
50051 * lib/memcoll.c (STRCOLL): New macro.
50054 2002-12-31 Bruno Haible <bruno@clisp.org>
50056 * lib/localcharset.h: New file.
50057 * lib/localcharset.c: Include it.
50058 * lib/unicodeio.c: Likewise.
50060 2002-12-31 Bruno Haible <bruno@clisp.org>
50062 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
50063 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
50065 2002-12-31 Bruno Haible <bruno@clisp.org>
50067 * lib/getline.h: Include <stddef.h>, for size_t.
50069 * lib/unicodeio.h: Include <stddef.h>, for size_t.
50070 * lib/unicodeio.c: Don't include <stddef.h>.
50072 2002-12-31 Bruno Haible <bruno@clisp.org>
50074 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
50077 2002-12-24 Karl Berry <karl@gnu.org>
50079 * config/config.guess: update from prep.
50081 2002-12-24 Bruno Haible <bruno@clisp.org>
50083 General infrasructure.
50084 * m4/README: Rewritten.
50085 * m4/onceonly.m4: New file.
50086 * m4/onceonly_2_57.m4: New file.
50089 * m4/atexit.m4: New file.
50092 * m4/strtod.m4: New file.
50095 * m4/strtol.m4: New file.
50098 * m4/strtoul.m4: New file.
50101 * m4/memchr.m4: New file.
50104 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
50105 (jm_FUNC_MEMCMP): Invoke it.
50108 * m4/memcpy.m4: New file.
50111 * m4/memmove.m4: New file.
50114 * m4/memset.m4: New file.
50117 * m4/strcspn.m4: New file.
50120 * m4/strpbrk.m4: New file.
50123 * m4/strstr.m4: New file.
50126 * m4/strerror.m4: New file.
50129 * m4/mktime.m4: Renamed from jm-mktime.m4.
50130 (gl_PREREQ_MKTIME): New macro.
50131 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
50134 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
50135 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
50136 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
50139 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
50140 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
50141 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
50144 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
50145 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
50146 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
50148 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
50151 * m4/xalloc.m4: New file.
50154 * m4/alloca.m4: New file.
50157 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
50158 (jm_FUNC_PUTENV): Invoke it.
50161 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
50162 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
50163 when invoked twice.
50164 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
50168 * m4/memrchr.m4: New file.
50171 * m4/stpcpy.m4: New file.
50174 * m4/strcase.m4: New file.
50177 * m4/strdup.m4: New file.
50180 * m4/strnlen.m4: New file.
50183 * m4/strndup.m4: New file.
50186 * m4/xstrtod.m4: New file.
50189 * m4/xstrtol.m4: New file.
50192 * m4/getdate.m4: New file.
50194 Module unlocked-io.
50195 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
50196 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
50197 * m4/jm-glibc-io.m4n: Remove file.
50199 Module long-options.
50200 * m4/long-options.m4: New file.
50203 * m4/md5.m4: New file.
50206 * m4/sha.m4: New file.
50209 * m4/getstr.m4: New file.
50212 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
50213 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
50214 <sys/types.h>, for size_t. Use the function name gnu_getline, not
50215 simply getline. Infoke gl_PREREQ_GETLINE.
50218 * m4/obstack.m4: New file.
50221 * m4/hash.m4: New file.
50224 * m4/readtokens.m4: New file.
50227 * m4/strverscmp.m4: New file.
50230 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
50234 * m4/strtoll.m4: New file.
50237 * m4/strtoull.m4: New file.
50240 * m4/strtoimax.m4: New file.
50243 * m4/strtoumax.m4: New file.
50246 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
50247 jm_AC_PREREQ_XSTRTOIMAX.
50248 Moved the strtol prerequisites to strtol.m4.
50249 Moved the strtoll prerequisites to strtoll.m4.
50250 Moved the strtoimax prerequisites to strtoimax.m4.
50253 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
50254 jm_AC_PREREQ_XSTRTOUMAX.
50255 Moved the strtoul prerequisites to strtoul.m4.
50256 Moved the strtoull prerequisites to strtoull.m4.
50257 Moved the strtoumax prerequisites to strtoumax.m4.
50260 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
50261 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
50264 * m4/dup2.m4: New file.
50267 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
50268 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
50271 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
50272 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
50274 Module gettimeofday.
50275 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
50276 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
50277 gl_PREREQ_GETTIMEOFDAY.
50280 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
50281 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
50284 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
50285 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
50286 jm_AC_TYPE_UINTMAX_T.
50287 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
50290 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
50291 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
50294 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
50295 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
50298 * m4/timespec.m4 (gl_TIMESPEC): New macro.
50299 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
50300 * m4/st_mtim.m4: Indentation.
50303 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
50304 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
50305 gl_PREREQ_NANOSLEEP.
50308 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
50309 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
50310 (gl_REGEX): New macro.
50313 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
50314 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
50317 * m4/rmdir.m4: New file.
50320 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
50321 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
50322 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
50325 * m4/dirname.m4: New file.
50328 * m4/getopt.m4: New file.
50330 Module unistd-safer.
50331 * m4/unistd-safer.m4: New file.
50334 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
50336 (gl_PREREQ_FNMATCH_EXTRA): New macro.
50337 (gl_FUNC_FNMATCH_POSIX): New macro.
50338 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
50339 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
50343 * m4/exclude.m4: New file.
50346 * m4/human.m4: New file.
50352 * m4/backupfile.m4: New file.
50353 * m4/d-ino.m4: Indentation.
50356 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
50357 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
50358 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
50361 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
50365 * m4/euidaccess.m4: New file.
50368 * m4/file-type.m4: New file.
50371 * m4/fileblocks.m4: New file.
50374 * m4/filemode.m4: New file.
50377 * m4/isdir.m4: New file.
50380 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
50381 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
50384 * m4/makepath.m4: New file.
50387 * m4/modechange.m4: New file.
50390 * m4/mountlist.m4: New file.
50391 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
50394 Module path-concat.
50395 * m4/path-concat.m4: New file.
50398 * m4/pathmax.m4: New file.
50401 * m4/same.m4: New file.
50404 * m4/save-cwd.m4: New file.
50407 * m4/savedir.m4: New file.
50410 * m4/xgetcwd.m4: New file.
50411 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
50414 * m4/xreadlink.m4: New file.
50417 * m4/safe-read.m4: New file.
50420 * m4/safe-write.m4: New file.
50423 * m4/closeout.m4: New file.
50425 Module stdio-safer.
50426 * m4/stdio-safer.m4: New file.
50429 * m4/getpass.m4: New file.
50432 * m4/getugroups.m4: New file.
50434 Module group-member.
50435 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
50436 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
50439 * m4/idcache.m4: New file.
50442 * m4/userspec.m4: New file.
50445 * m4/clock_time.m4: New file.
50446 * m4/gettime.m4: New file.
50449 * m4/settime.m4: New file.
50452 * m4/posixtm.m4: New file.
50454 Module gethostname.
50455 * m4/gethostname.m4: New file.
50458 * m4/canon-host.m4: New file.
50461 * m4/codeset.m4: New file, from gettext-0.11.5.
50462 * m4/gettext.m4: New file, from gettext-0.11.5.
50463 * m4/glibc21.m4: New file, from gettext-0.11.5.
50464 * m4/iconv.m4: New file, from gettext-0.11.5.
50465 * m4/intdiv0.m4: New file, from gettext-0.11.5.
50466 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
50467 * m4/inttypes.m4: New file, from gettext-0.11.5.
50468 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
50469 * m4/isc-posix.m4: New file, from gettext-0.11.5.
50470 * m4/lcmessage.m4: New file, from gettext-0.11.5.
50471 * m4/lib-ld.m4: New file, from gettext-0.11.5.
50472 * m4/lib-link.m4: New file, from gettext-0.11.5.
50473 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
50474 * m4/progtest.m4: New file, from gettext-0.11.5.
50475 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
50476 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
50477 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
50479 Module localcharset.
50480 * m4/localcharset.m4: New file.
50482 Module hard-locale.
50483 * m4/hard-locale.m4: New file.
50486 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
50488 * m4/mbrtowc.m4: Add comment.
50491 * m4/memcasecmp.m4: New file.
50494 * m4/memcoll.m4: New file.
50497 * m4/unicodeio.m4: New file.
50500 * m4/rpmatch.m4: New file.
50503 * m4/yesno.m4: New file.
50506 * m4/exitfail.m4: New file.
50509 * m4/c-stack.m4 (gl_C_STACK): New macro.
50510 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
50513 * m4/error.m4 (gl_ERROR): New macro.
50514 (jm_PREREQ_ERROR): Use onceonly macros.
50517 * m4/fatal.m4: New file.
50520 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
50521 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
50523 Module getpagesize.
50524 * m4/getpagesize.m4: New file.
50526 Module getusershell.
50527 * m4/getusershell.m4: New file.
50530 * m4/physmem.m4: New file.
50533 * m4/posixver.m4: New file.
50536 * m4/quotearg.m4: New file.
50539 * m4/quote.m4: New file.
50542 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
50545 * m4/sig2str.m4: New file.
50548 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
50550 * m4/intmax_t.m4: New file.
50551 * m4/d-type.m4: Indentation.
50552 * m4/jm-macros.m4: Update.
50553 * m4/prereq.m4 (jm_PREREQ): Update.
50554 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
50555 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
50556 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
50557 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
50558 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
50559 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
50560 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
50561 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
50562 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
50563 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
50564 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
50565 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
50566 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
50567 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
50568 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
50569 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
50570 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
50571 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
50572 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
50574 2002-12-24 Bruno Haible <bruno@clisp.org>
50576 * MODULES.txt: Update according to m4/ changes.
50579 * config.rpath: New file, from gettext-0.11.5.
50581 * modules/*: New module descriptions.
50582 * gnulib-tool: New file.
50583 * MODULES.html.sh: New file.
50585 2002-12-21 Karl Berry <karl@gnu.org>
50587 * doc/fdl.texi: update to version 1.2.
50589 2002-12-19 Karl Berry <karl@gnu.org>
50591 * config/config.guess: update from prep.
50593 2002-12-18 Bruno Haible <bruno@clisp.org>
50595 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
50596 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
50598 2002-12-17 Bruno Haible <bruno@clisp.org>
50600 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
50601 stdlib.h, string.h.
50603 2002-12-17 Bruno Haible <bruno@clisp.org>
50605 * lib/canon-host.c (strdup): Remove unused declaration.
50607 * lib/fsusage.c: Include full_read.h.
50608 (get_fs_usage): Use full_read instead of safe_read.
50610 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
50612 2002-12-12 Karl Berry <karl@gnu.org>
50614 * config/config.guess: update from prep.
50616 2002-12-11 Bruno Haible <bruno@clisp.org>
50618 * m4/setenv.m4: New file, from gettext-0.11.5.
50620 2002-12-11 Bruno Haible <bruno@clisp.org>
50622 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
50624 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
50627 2002-12-11 Bruno Haible <bruno@clisp.org>
50629 * setenv.c (alloca): Fall back to malloc.
50630 (freea): New macro.
50631 (setenv): Use freea() to free memory allocated with alloca().
50633 2002-11-13 Bruno Haible <bruno@clisp.org>
50635 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
50636 function declarations.
50637 * unsetenv.c (unsetenv): Likewise.
50639 2002-03-04 Bruno Haible <bruno@clisp.org>
50641 Portability to AIX 4.3.3.
50642 * unsetenv.c: New file, extracted from setenv.c.
50643 * setenv.c: Move the unsetenv() function to unsetenv.c.
50645 2001-12-20 Bruno Haible <bruno@clisp.org>
50647 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
50648 use malloc instead. For SunOS 4.
50650 2001-12-11 Bruno Haible <bruno@clisp.org>
50652 * setenv.c: Declare alloca.
50653 (compar_fn_t): New typedef.
50654 (KNOWN_VALUE, STORE_VALUE): Use it.
50656 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
50659 2002-12-10 Paul Eggert <eggert@twinsun.com>
50661 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
50662 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
50663 Choose values that are less likely to collide with system fnmatch
50665 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
50666 defined (e.g., a pure POSIX system).
50667 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
50668 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
50670 2002-12-06 Paul Eggert <eggert@twinsun.com>
50672 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
50673 a pain in practice to deal with generated m4 files. This change
50674 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
50676 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
50677 and jm-glibc-io.m4, as they are no longer a special case.
50678 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
50679 kludge and the auto-generation stuff. Check only whether the
50680 functions are declared, not whether they exist, since older hosts
50681 that don't declare the functions can't use the optimization anyway.
50683 2002-12-06 Jim Meyering <jim@meyering.net>
50685 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
50687 Merge in changes from libc's misc/error.c, in preparation
50688 for the merge of gnulib's changes back into libc.
50690 * lib/error.c (_): Define only if not already defined.
50691 Move definition to follow all #include directives.
50692 Include unlocked-io.h only if !_LIBC.
50693 [_LIBC]: Include <libio/libioP.h>.
50694 [USE_IN_LIBIO]: Include <libio/iolibio.h>
50695 (fflush): Tweak definition to use INTUSE.
50698 2002-12-05 Paul Eggert <eggert@twinsun.com>
50700 * lib/alloca.c [defined emacs]: Include "lisp.h".
50701 (xalloc_die) [defined emacs]: New macro.
50702 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
50703 [! defined emacs]: Include <xalloc.h>.
50704 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
50705 (pointer): Typedef to POINTER_TYPE *.
50706 (malloc): Remove decl; we now always use xmalloc.
50707 (alloca): Use old-style definition, since Emacs needs this.
50708 Check for arithmetic overflow when computing combined size.
50710 2002-12-04 Paul Eggert <eggert@twinsun.com>
50712 Do not generate unlocked-io.h automatically, since it's easier to
50713 maintain it by hand.
50715 * lib/unlocked-io.h: New file, from GNU diffutils,
50716 but with proper copyright notice and attribution.
50717 * lib/gen-uio: Remove.
50718 * lib/Makefile.am: Add copyright notice.
50719 (libfetish_a_SOURCES): Add unlocked-io.h.
50720 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
50721 (DISTCLEANFILES, io_functions): Remove macros.
50722 (EXTRA_DIST): Remove gen_uio.
50723 (unlocked-io.h): Remove rule.
50725 2002-12-04 Jim Meyering <jim@meyering.net>
50727 Reflect the fact that stat.c and lstat.c are no longer generated.
50728 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
50729 (DISTCLEANFILES): Likewise.
50730 (EXTRA_DIST): Likewise.
50731 (all_local): Don't depend on stat.c or lstat.c.
50732 (stat.c, lstat.c): Remove rules.
50733 (EXTRA_DIST): Remove xstat.in.
50735 * lib/xstat.in: Remove file. Contents moved into stat.c.
50736 * lib/stat.c: New file. Contents mostly from xstat.in.
50737 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
50738 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
50740 * lib/safe-read.c: Rework so that it may serve to define safe_write,
50742 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
50744 2002-12-03 Jim Meyering <jim@meyering.net>
50746 * lib/safe-read.c, safe-write.c: Change variable names and comments,
50747 but not semantics, to minimize the differences between these two files.
50748 (safe_read): Change comment to mention SAFE_READ_ERROR.
50750 * lib/safe-read.c (IS_EINTR): Define.
50751 (safe_read): Use IS_EINTR in place of in-function cpp directives.
50753 2002-12-02 Jim Meyering <jim@meyering.net>
50755 * lib/safe-read.c (EINTR): Define.
50756 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
50757 (INT_MAX): Provide fallback.
50758 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
50760 * lib/safe-read.h (SAFE_READ_ERROR): Define.
50762 2002-12-02 Bruno Haible <bruno@clisp.org>
50764 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
50765 Define, taken from safe-read.c.
50766 (INT_MAX): Provide fallback.
50767 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
50768 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
50770 * lib/safe-read.c (EINTR): Remove definition.
50771 (safe_read): Don't use EINTR if it is absent.
50773 2002-12-01 Jim Meyering <jim@meyering.net>
50775 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
50777 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
50779 2002-11-27 Paul Eggert <eggert@twinsun.com>
50781 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
50782 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
50783 with `if (! (value < limit)) abort ();', for readability.
50785 2002-11-26 Karl Berry <karl@gnu.org>
50787 * lib/strdup.c: copy from libc again, with jim's ok.
50788 * lib/.cppi-disable: re-add strdup.c
50790 2002-11-25 Karl Berry <karl@gnu.org>
50792 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
50793 instead of "strtol.c".
50795 2002-11-25 Karl Berry <karl@gnu.org>
50797 * config/install-sh: update from automake for variable quoting, $0 in
50800 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
50801 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
50804 2002-11-25 Jim Meyering <jim@meyering.net>
50806 * lib/mktime.c: Sync from libc, now that it has the latest fix.
50808 2002-11-24 Karl Berry <karl@gnu.org>
50810 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
50811 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
50813 2002-11-24 Jim Meyering <jim@meyering.net>
50815 Update from coreutils:
50817 * lib/mktime.c: Merge in changes from libc.
50819 Avoid a link-time failure on some Linux systems.
50820 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
50822 (__mon_yday): Declare with the STATIC attribute.
50823 (__mktime_internal): Likewise.
50824 Based on a report from Greg Schafer.
50826 2002-11-23 Jim Meyering <jim@meyering.net>
50828 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
50829 Use `unsigned', not `int', as type of index.
50831 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
50833 * lib/fsusage.c: Remove unneeded parentheses around operands of
50836 2002-11-22 Paul Eggert <eggert@twinsun.com>
50838 * lib/quotearg.h: Allow multiple inclusion by surrounding with
50839 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
50840 so that we can be included first.
50841 (PARAMS): Remove; we now assume C89 or later. All uses removed.
50842 * lib/quotearg.c: Include quotearg.h immediately after config.h.
50843 No need to include stddef.h or sys/types.h any more.
50844 Surround local include files with "", not "<>".
50845 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
50846 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
50847 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
50848 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
50849 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
50850 (ISPRINT): Remove; no longer needed now that we assume C89.
50852 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
50855 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
50856 quotearg_char): Use SIZE_MAX rather than
50857 (size_t) -1 when we are talking about "infinity".
50859 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
50861 2002-11-22 Paul Eggert <eggert@twinsun.com>
50863 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
50864 hint that one should use `if (! x) abort ();' rather than `assert
50865 (x);', and anyway it's one less thing to worry about configuring.
50866 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
50867 hash_rehash, hash_insert): Use abort rather than assert.
50869 2002-11-22 Bruno Haible <bruno@clisp.org>
50871 * lib/safe-read.h: Assume C89. Add comments.
50872 (safe_read): Change return type to size_t.
50873 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
50874 byte counts > SSIZE_MAX correctly.
50875 * lib/safe-write.h: New file.
50876 * lib/safe-write.c: New file.
50877 * lib/full-read.h: New file.
50878 * lib/full-read.c: New file.
50879 * lib/full-write.h: Assume C89. Add comments.
50880 * lib/full-write.c: Include safe-write.h.
50881 (full_write): Rewritten to use safe_write.
50882 Suggested by Jim Meyering and Paul Eggert.
50884 2002-11-21 Jim Meyering <jim@meyering.net>
50886 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
50888 Merge in changes from the coreutils.
50890 2002-09-25 Paul Eggert <eggert@twinsun.com>
50891 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
50893 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
50894 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
50895 int. Work more efficiently if X is the same width as uintmax_t.
50896 Do not compare X to -1, to avoid bogus compiler warning.
50897 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
50898 Don't assume that f_frsize and f_bsize are the same type.
50900 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
50901 warning on FreeBSD.
50903 * lib/makepath.c (make_path): Restore umask *before* creating the final
50905 (make_path): Minor reformatting.
50907 * lib/xmalloc.c: Adjust to work with new autoconf macros,
50908 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
50909 HAVE_MALLOC/HAVE_REALLOC.
50911 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
50912 dummy ones. At least on GNU/Linux systems, `auto' means something
50914 From Michael Stone.
50916 2002-11-21 Bruno Haible <bruno@clisp.org>
50918 Remove case insensitive option matching.
50919 * lib/argmatch.h (argcasematch): Remove declaration.
50920 (ARGCASEMATCH): Remove macro.
50921 (__xargmatch_internal): Remove case_sensitive argument.
50922 (XARGMATCH): Update.
50923 (XARGCASEMATCH): Remove macro.
50924 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
50925 case_sensitive argument.
50926 (argcasematch): Remove function.
50927 (__xargmatch_internal): Remove case_sensitive argument.
50928 (main): Use XARGMATCH instead of XARGCASEMATCH.
50930 * lib/xmalloc.c: Change compile-time error message. Add comment about
50931 required autoconf version.
50933 2002-11-20 Paul Eggert <eggert@twinsun.com>
50935 Merge argmatch cleanups from Bison. Assume C89.
50937 * lib/argmatch.c: Include config.h here, not in argmatch.h.
50938 Include stdlib.h, for EXIT_FAILURE.
50939 Always include <string.h>, since we assume C89.
50940 (EXIT_FAILURE): Remove pre-C89 bug workaround.
50941 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
50942 Include <stddef.h> instead, since it's all we need for size_t.
50943 (PARAMS): Remove. All uses removed.
50944 (ARRAY_CARDINALITY): Do not bother to #undef.
50945 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
50946 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50947 Remove unnecessary parentheses.
50948 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50949 Insert necessary parentheses.
50950 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
50951 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
50953 2002-11-19 Bruno Haible <bruno@clisp.org>
50955 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
50956 * lib/mbswidth.h: Include <stddef.h>, for size_t.
50958 * lib/mbswidth.h (PARAMS): Remove macro.
50959 (mbswidth, mbsnwidth): Use ANSI C function declarations.
50960 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
50962 * lib/gcd.h (PARAMS): Remove macro.
50963 (gcd): Use ANSI C function declarations.
50964 * lib/gcd.c (gcd): Likewise.
50966 2002-11-15 Bruno Haible <bruno@clisp.org>
50968 * lib/strcspn.c: Include <stddef.h>.
50969 (strcspn): Use ANSI C function declaration. Change return type to
50971 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
50972 (strpbrk): Use NULL.
50973 * lib/strpbrk.h (PARAMS): Remove macro.
50974 (strpbrk): Use ANSI C function declaration.
50975 * lib/strstr.c: Don't include <sys/types.h>.
50976 * lib/strstr.h (PARAMS): Remove macro.
50977 (strstr): Use ANSI C function declarations.
50979 2002-11-14 Karl Berry <karl@gnu.org>
50981 * config/mkinstalldirs: `do' on separate line, instead of
50984 2002-11-06 Bruno Haible <bruno@clisp.org>
50986 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
50987 * lib/gcd.c (gcd): Likewise.
50989 2002-11-05 Bruno Haible <bruno@clisp.org>
50991 * lib/gcd.h: New file, from gettext-0.11.5.
50992 * lib/gcd.c: New file, from gettext-0.11.5.
50994 2002-11-05 Bruno Haible <bruno@clisp.org>
50996 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50997 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50998 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50999 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51001 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
51003 * lib/makepath.c: Include gettext.h instead of <locale.h> and
51006 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
51007 * lib/human.c: Include gettext.h instead of <libintl.h>.
51008 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
51009 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
51010 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
51011 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
51012 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
51013 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
51014 (textdomain): Remove definition.
51015 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
51017 * lib/long-options.c: Remove include of <libintl.h> and definition of
51019 * lib/same.c: Remove include of <libintl.h> and definition of _.
51021 2002-11-04 Owen Taylor <otaylor@redhat.com>
51023 * lib/config.charset: A few additions for Solaris.
51025 2002-11-04 Bruno Haible <haible@clisp.cons.org>
51027 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
51028 * lib/localcharset.c (locale_charset): Declare as extern "C".
51030 2002-11-04 Bruno Haible <haible@clisp.cons.org>
51032 * lib/config.charset: msdos in uk_UA uses CP1125.
51034 2002-11-04 Bruno Haible <bruno@clisp.org>
51036 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
51037 * lib/strcase.h: New file, from GNU gettext-0.11.5.
51038 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
51039 * lib/strstr.h: New file, from GNU gettext-0.11.5.
51040 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
51042 2002-11-04 Bruno Haible <bruno@clisp.org>
51044 * lib/localcharset.c (locale_charset): Don't return an empty string.
51046 2002-11-04 Bruno Haible <bruno@clisp.org>
51048 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
51051 2002-11-04 Bruno Haible <bruno@clisp.org>
51053 * lib/config.charset: Update for newest glibc. Add canonical names
51054 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
51056 2002-11-04 Bruno Haible <bruno@clisp.org>
51058 * lib/config.charset: Add support for NetBSD.
51060 2002-11-04 Bruno Haible <bruno@clisp.org>
51062 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
51064 2002-11-01 Bruno Haible <bruno@clisp.org>
51066 * configure.in: Add AC_CONFIG_AUX_DIR call.
51067 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
51069 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
51071 2002-09-28 Karl Berry <karl@gnu.org>
51073 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
51074 installed automake until the next release, since changes have been
51077 2002-09-25 Karl Berry <karl@gnu.org>
51079 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
51080 * lib/getopt*: copy from libc/posix.
51081 * lib/gettext.h: copy from gettext.
51082 * lib/.cppi-disable: add strdup.c, gettext.h.
51084 2002-09-25 Karl Berry <karl@gnu.org>
51086 * config/srclist.txt: enable gettext.h check.
51087 * config/config.{guess,sub}: update from prep.
51088 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
51089 from automake 1.6.3.
51092 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
51094 * regex.c (PATFETCH): Remove the translating fetch.
51095 (PATFETCH_RAW): Rename to PATFETCH.
51096 (set_image_of_range): New fun.
51097 (SET_RANGE_TABLE_WORK_AREA): Use it.
51098 (regex_compile): Don't translate the pattern chars so eagerly.
51099 Only do it when inserting an `exactn' bytecode or when handling
51101 (mutually_exclusive_p): Avoid empty statement.
51103 2002-07-06 Jim Meyering <meyering@lucent.com>
51105 * m4/README: Don't mention Makefile.am.in.
51106 Outline how I've tested changes to .m4 files. Yep, it's a pain.
51108 2002-07-01 Jim Meyering <meyering@lucent.com>
51110 * lib/c-stack.c: Include sys/time.h.
51111 From Volker Borchert.
51113 2002-06-26 Paul Eggert <eggert@twinsun.com>
51115 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
51117 2002-06-26 Paul Eggert <eggert@twinsun.com>
51119 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
51120 New macro. Use it uniformly instead of
51121 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
51122 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
51123 reported by Vin Shelton.
51125 2002-06-22 Paul Eggert <eggert@twinsun.com>
51127 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
51128 Do not assume SA_SIGINFO behavior.
51129 Bug reported by Jim Meyering on NetBSD 1.5.2.
51131 2002-06-22 Jim Meyering <meyering@lucent.com>
51133 * m4/c-stack.m4: New file, from diffutils-2.8.2.
51134 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
51136 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
51137 now that configure.ac uses AC_GNU_SOURCE.
51138 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
51139 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
51141 Update to latest tools. Suggestions from Paul Eggert.
51142 * m4/stdbool.m4: New file, from diffutils-2.8.2.
51143 * m4/gnu-source.m4: Update from diffutils-2.8.2.
51144 * m4/fnmatch.m4: Likewise.
51145 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
51146 to AC_HEADER_STDBOOL
51148 2002-06-22 Jim Meyering <meyering@lucent.com>
51150 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
51151 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
51153 2002-06-22 Jim Meyering <meyering@lucent.com>
51155 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
51157 * lib/exitfail.c, exitfail.h: Likewise.
51158 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
51160 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
51162 (EXTRA_DIST): Add fnmatch_loop.c.
51163 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
51165 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
51166 * lib/fnmatch.c: Update from diffutils-2.8.2.
51167 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
51168 * lib/fnmatch.h: Remove file.
51170 2002-06-21 Jim Meyering <meyering@lucent.com>
51172 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
51173 * m4/mbrtowc.m4: Likewise.
51175 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
51176 * m4/mbswidth.m4: Reflect name change:
51177 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
51178 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51180 * m4/lib-link.m4: Update from gettext-0.11.2.
51181 * m4/gettext.m4: Likewise.
51183 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
51184 From Alfred M. Szmidt.
51186 2002-06-18 Paul Eggert <eggert@twinsun.com>
51188 * lib/file-type.h: Report an error if neither S_ISREG nor
51189 S_IFREG is defined, instead of using a test specific to glibc
51190 2.2. This should be safe, since POSIX requires S_ISREG and
51191 Unix Version 7 had S_IFREG. We don't need to check for
51192 <sys/types.h> since we don't use any symbols that it defines.
51194 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
51196 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
51197 $@-t, so that each temporary file name is unique and valid in the first
51198 8 characters, for operation under DOS.
51200 2002-06-15 Paul Eggert <eggert@twinsun.com>
51202 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
51204 2002-06-15 Jim Meyering <meyering@lucent.com>
51206 Work even with DJGPP 2.03, which lacks support for symlinks.
51208 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
51210 * lib/lchown.c (S_ISLNK): Likewise.
51212 2002-06-15 Jim Meyering <meyering@lucent.com>
51214 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
51215 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
51216 have been included before this file.
51218 2002-06-14 Jim Meyering <meyering@lucent.com>
51220 * lib/file-type.h: Use the version from diffutils-2.8.2.
51221 * lib/file-type.c: Likewise.
51223 2002-06-07 Jim Meyering <meyering@lucent.com>
51225 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
51226 They're needed at least for NetBSD 1.5.2.
51227 ($statxfs_includes): Include those same headers.
51228 ($statxfs_includes): Include sys/vfs.h if available.
51229 ($statxfs_includes): Likewise for sys/statvfs.h.
51230 Check for the following members in both structs statfs and statvfs:
51231 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
51233 2002-06-01 Jim Meyering <meyering@lucent.com>
51235 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
51236 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
51238 2002-05-28 Jim Meyering <meyering@lucent.com>
51240 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
51241 Reported by Volker Borchert.
51243 2002-05-27 Jim Meyering <meyering@lucent.com>
51245 Fix a problem seen only on nonconforming systems whereby ls.c's
51246 use of localtime, and then of gettimeofday would cause trouble:
51247 the localtime call used to initialize rpl_gettimeofday's save
51248 mechanism would clobber ls's current local time information so
51249 that in any long listing the first file would always be listed
51250 with date 1970-01-01. Analysis by Volker Borchert.
51252 * lib/gettimeofday.c (localtime): Undefine.
51253 (rpl_localtime): New function.
51255 2002-05-27 Jim Meyering <meyering@lucent.com>
51257 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
51260 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
51261 use the replacement function; it wouldn't resolve at link time.
51262 Reported by Volker Borchert.
51264 2002-05-22 Jim Meyering <meyering@lucent.com>
51266 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
51268 * lib/file-type.h: New file.
51269 * lib/file-type.c (file_type): New file/function. Extracted from
51272 2002-04-30 Jim Meyering <meyering@lucent.com>
51274 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
51276 2002-04-29 Paul Eggert <eggert@twinsun.com>
51278 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
51280 2002-04-29 Paul Eggert <eggert@twinsun.com>
51282 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
51283 Do not check for alloca.h (no longer used) or stdbool.h (was never
51284 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
51286 2002-04-29 Paul Eggert <eggert@twinsun.com>
51288 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
51290 2002-04-29 Jim Meyering <meyering@lucent.com>
51292 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
51293 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
51294 Use AC_FUNC_STRNLEN here instead.
51296 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
51297 With autoconf-2.53a, it's part of AC_PROG_CC.
51299 2002-04-28 Paul Eggert <eggert@twinsun.com>
51301 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
51302 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
51304 2002-04-28 Paul Eggert <eggert@twinsun.com>
51306 * lib/sig2str.h, lib/sig2str.c: New files.
51307 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
51309 2002-04-28 Paul Eggert <eggert@twinsun.com>
51311 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
51312 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
51313 of 127, since 64 is the largest conceivable number for ancient
51315 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
51317 2002-04-28 Jim Meyering <meyering@lucent.com>
51319 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
51321 2002-04-24 Jim Meyering <meyering@lucent.com>
51323 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
51324 (jm_PREREQ): Use it.
51326 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
51327 mach/mach.h fcntl.h.
51328 Check for this function: setlocale.
51330 2002-04-24 Jim Meyering <meyering@lucent.com>
51332 * lib/gettext.h: New file, from Gettext.
51333 * lib/Makefile.am (INCLUDES): Remove -I../intl.
51334 (libfetish_a_SOURCES): Add gettext.h.
51336 2002-04-16 Jim Meyering <meyering@lucent.com>
51338 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
51339 ut_pid, ut_id, ut_exit.
51341 2002-04-16 Jim Meyering <meyering@lucent.com>
51343 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
51344 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
51345 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
51347 2002-04-12 Jim Meyering <meyering@lucent.com>
51349 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
51350 now-bogus check for f_type in sys/mount.h. Instead, just test for the
51351 existence of the getmntinfo function. Needed for Darwin 5.3.
51353 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
51354 This is necessary at least on Darwin 5.3.
51356 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
51357 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
51358 strnlen.o in the library, and that makes some versions of ranlib
51361 2002-04-12 Jim Meyering <meyering@lucent.com>
51363 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
51365 2002-04-09 Jim Meyering <meyering@lucent.com>
51367 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
51368 to be more precise. Rather than saying we're checking whether the
51369 function `works', say what we're testing.
51370 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
51371 Reported by Bruno Haible.
51373 2002-03-10 Jim Meyering <meyering@lucent.com>
51375 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
51376 Suggestion from Santiago Vila.
51378 2002-03-08 Jim Meyering <meyering@lucent.com>
51380 * lib/rename.c: Mention that this wrapper is needed also on
51381 mips-dec-ultrix4.4 systems.
51383 2002-03-02 Jim Meyering <meyering@lucent.com>
51385 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
51386 not HAVE_CLOCK_SETTIME.
51388 2002-02-27 Paul Eggert <eggert@twinsun.com>
51390 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
51391 Check for clock_settime.
51393 2002-02-27 Paul Eggert <eggert@twinsun.com>
51395 * lib/nanosleep.h: Rename to....
51396 * lib/timespec.h: New name for nanosleep.h. All uses changed.
51398 * lib/gettime.c: New file.
51399 * lib/settime.c: New file.
51400 * lib/stime.c: Remove.
51402 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
51403 timespec.h. Remove nanosleep.h.
51405 2002-02-25 Paul Eggert <eggert@twinsun.com>
51407 * m4/acl.m4: New file.
51408 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
51409 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
51411 2002-02-25 Paul Eggert <eggert@twinsun.com>
51413 * lib/acl.c, lib/acl.h: New files.
51414 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
51416 2002-02-24 Jim Meyering <meyering@lucent.com>
51418 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
51419 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
51420 cause trouble. Reported by Nelson Beebe.
51422 2002-02-23 Paul Eggert <eggert@twinsun.com>
51424 * lib/path-concat.c (xpath_concat): Reorder code to pacify
51425 compilers that don't know that xalloc_die never returns.
51427 2002-02-20 Jim Meyering <meyering@lucent.com>
51429 * lib/getdate.c: Regenerate using bison-1.33.
51431 2002-02-17 Jim Meyering <meyering@lucent.com>
51433 * config/config.guess (main): Don't use `head -1'; it's no longer
51434 portable. Use `sed 1q' instead.
51436 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
51438 * m4/codeset.m4: Upgrade to gettext-0.11.
51439 * m4/gettext.m4: Upgrade to gettext-0.11.
51440 * m4/glibc21.m4: Upgrade to gettext-0.11.
51441 * m4/iconv.m4: Upgrade to gettext-0.11.
51442 * m4/isc-posix.m4: Upgrade to gettext-0.11.
51443 * m4/lcmessage.m4: Upgrade to gettext-0.11.
51444 * m4/lib-ld.m4: New file, from gettext-0.11.
51445 * m4/lib-link.m4: New file, from gettext-0.11.
51446 * m4/lib-prefix.m4: New file, from gettext-0.11.
51447 * m4/progtest.m4: Upgrade to gettext-0.11.
51449 2002-02-15 Paul Eggert <eggert@twinsun.com>
51451 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
51452 (jm_PREREQ): Use it.
51454 2002-02-15 Paul Eggert <eggert@twinsun.com>
51456 * lib/posixver.c, lib/posixver.h: New files.
51457 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51459 2002-02-02 Paul Eggert <eggert@twinsun.com>
51460 Bruno Haible <bruno@clisp.org>
51462 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
51463 (fwrite_success_callback): New declaration.
51464 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
51465 print_unicode_char. Call failure callback instead of error.
51466 (fwrite_success_callback): New function.
51467 (exit_failure_callback): New function.
51468 (fallback_failure_callback): New function.
51469 (print_unicode_char): Call unicode_to_mb.
51471 2002-01-26 Jim Meyering <meyering@lucent.com>
51473 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
51474 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
51476 2002-01-26 Jim Meyering <meyering@lucent.com>
51478 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
51480 2002-01-22 Paul Eggert <eggert@twinsun.com>
51482 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
51484 2002-01-22 Jim Meyering <meyering@lucent.com>
51486 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
51487 Otherwise, some versions of automake would omit the rule that makes
51488 Makefile from Makefile.in.
51490 2002-01-21 Paul Eggert <eggert@twinsun.com>
51492 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
51493 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51494 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
51495 (memcoll): Set errno to zero if there is no error.
51497 * lib/quotearg.c (quotearg_buffer_restyled):
51498 Fix bug with quoting buffers containing NUL when backslashing escapes.
51499 This bug was exposed by the other changes in this patch.
51500 (quotearg_n_options): New arg ARGSIZE.
51501 All callers changed.
51502 (quoting_options_from_style): New function.
51503 (quotearg_n_style): Use it.
51504 (quotearg_n_style_mem): New function.
51506 * lib/quotearg.h (quotearg_n_style_mem): New function.
51508 2002-01-19 Jim Meyering <meyering@lucent.com>
51510 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
51511 Remove useless quotes: DF_PROG="df".
51512 * m4/strnlen.m4: New file.
51514 2002-01-16 Paul Eggert <eggert@twinsun.com>
51516 * lib/backupfile.c (ISDIGIT): Comment fix.
51517 * lib/getdate.y (ISDIGIT): Likewise.
51518 * lib/posixtm.c (ISDIGIT, year): Likewise.
51519 * lib/strverscmp.c (ISDIGIT): Likewise.
51520 * lib/userspec.c (ISDIGIT): Likewise.
51522 2002-01-16 Jim Meyering <meyering@lucent.com>
51524 * lib/getdate.y: Add three semicolons, each just before a closing
51525 brace. Bison (as of version 1.31) no longer papers over that mistake.
51527 2002-01-05 Jim Meyering <meyering@lucent.com>
51529 * lib/version-etc.c (version_etc_copyright): Update copyright year.
51531 2001-12-19 Paul Eggert <eggert@twinsun.com>
51533 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
51534 not silently exit merely because the output buffer happens to
51535 have nothing pending.
51537 2001-12-18 Paul Eggert <eggert@twinsun.com>
51539 See the big note in ../ChangeLog.
51540 * lib/human.c (suffixes): Prefer K to k for 1024.
51541 (generate_suffix_backwards): New function.
51542 (human_readable_inexact): Use it.
51543 * lib/xstrtol.c (__xstrtol): If there is no number but there
51544 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
51545 Accept 'K' as well as 'k'.
51547 2001-12-15 Jim Meyering <meyering@lucent.com>
51549 * lib/regex.h (__restrict_arr): Update from libc.
51551 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
51552 as `remote' if the name starts with `//'. Suggested by Michael Stone.
51555 2001-12-14 Jim Meyering <meyering@lucent.com>
51557 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
51558 Suggestion from Bruno Haible.
51560 2001-12-10 Jim Meyering <meyering@lucent.com>
51562 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
51563 xrealloc, Instead, include "xalloc.h".
51564 (initbuffer): Don't cast xmalloc return value to char*.
51565 (readline): Reword comment.
51566 Don't cast xrealloc return value to char*
51567 Return NULL, not 0.
51569 2001-12-09 Jim Meyering <meyering@lucent.com>
51571 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
51572 about `signed and unsigned type in conditional expression'.
51573 * lib/posixtm.c (posix_time_parse): Likewise.
51575 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
51577 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
51578 to avoid a pedantic warning.
51580 * lib/getstr.c: Don't include assert.h.
51581 (getstr): Remove warning-evoking assertions.
51582 Return -1 if offset parameter is out of bounds.
51583 Change the type of a local from int to size_t.
51585 * lib/strftime.c (my_strftime_localtime_r): Include this function
51586 definition in the `#if ! HAVE_TM_GMTOFF' block.
51588 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
51589 Include xalloc.h instead.
51591 2001-12-02 Jim Meyering <meyering@lucent.com>
51593 * lib/tempname.c: Don't declare getenv, thus reverting the change of
51594 2001-11-18. It's no longer necessary, now that stdlib.h is always
51597 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
51598 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
51600 2001-11-30 Akim Demaille <akim@epita.fr>
51602 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
51603 before being defined.
51605 2001-11-27 Paul Eggert <eggert@twinsun.com>
51607 * lib/quotearg.h (quotearg_n, quotearg_n_style):
51608 First arg is int, not unsigned.
51609 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
51610 (SIZE_MAX, UINT_MAX): New macros.
51611 (quotearg_n_options): Abort if N is negative.
51612 Avoid overflow check on hosts where size_t is 64 bits and int
51613 is 32 bits, as overflow is impossible there.
51614 Fix off-by-one typo that caused unnecessary reallocation.
51616 2001-11-27 Jim Meyering <meyering@lucent.com>
51618 * lib/tempname.c: Merge with version from libc.
51619 * lib/regex.c: Likewise.
51621 * lib/tempname.c: Include stdlib.h unconditionally. On some old
51622 systems for which STDC_HEADERS is 0, it was not included, resulting in
51623 a warning about an integer-to-pointer conversion problem with getenv.
51624 Reported by Volker Borchert.
51626 2001-11-26 Jim Meyering <meyering@lucent.com>
51628 * lib/gtod.h: Remove file.
51629 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
51630 * lib/gettimeofday.c: Don't include gtod.h.
51631 (GTOD_init): Remove function.
51632 (rpl_gettimeofday): Do its job here instead, rather than aborting.
51633 Suggestion from Volker Borchert.
51635 2001-11-23 Jim Meyering <meyering@lucent.com>
51637 * lib/hash.h (struct hash_table): Don't define here. Merely declare
51639 * lib/hash.c (struct hash_table): Define it here instead.
51641 2001-11-22 Jim Meyering <meyering@lucent.com>
51643 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
51645 2001-11-20 Jim Meyering <meyering@lucent.com>
51647 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
51648 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
51650 2001-11-19 Jim Meyering <meyering@lucent.com>
51652 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
51653 directory. Use "conftestXXXXXX" as the template.
51654 Suggestion from Paul Eggert.
51656 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
51657 immediately, so the test doesn't mistakenly hit the max-open-files
51660 2001-11-18 Paul Eggert <eggert@twinsun.com>
51662 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
51663 (TEMPORARIES): New macro.
51664 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
51665 removes an artificial limitation (e.g. HP-UX 10.20, where
51668 2001-11-18 Jim Meyering <meyering@lucent.com>
51670 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
51672 2001-11-18 Jim Meyering <meyering@lucent.com>
51674 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
51677 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
51678 files will be created before anything else.
51680 2001-11-17 Paul Eggert <eggert@twinsun.com>
51682 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
51683 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
51685 2001-11-17 Jim Meyering <meyering@lucent.com>
51687 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
51688 Prompted by a report from Bob Proulx.
51690 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
51691 Instead, require UTILS_FUNC_MKSTEMP.
51693 2001-11-17 Jim Meyering <meyering@lucent.com>
51695 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
51696 Now, that's done as part of AC_FUNC_STRTOD.
51698 2001-11-17 Jim Meyering <meyering@lucent.com>
51700 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
51701 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
51702 rather than group writable. Patch by Juan F. Codagnone.
51704 * lib/readtokens.c: Remove explicit declarations of xmalloc and
51705 xrealloc, Instead, include "xalloc.h".
51707 * lib/mountlist.c: Include unlocked-io.h after all system headers.
51708 Remove explicit declarations of xmalloc, xrealloc,
51709 and xstrdup. Instead, include "xalloc.h".
51711 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
51713 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
51715 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
51717 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
51718 Reported by Padraig Brady.
51720 * lib/mkstemp.c: #undef mkstemp.
51722 (rpl_mkstemp): Rename from mkstemp.
51725 2001-11-16 Jim Meyering <meyering@lucent.com>
51727 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
51728 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
51729 determine the amount of total physical memory, use pstat_getstatic.
51730 HPUX-11 doesn't define _SC_PHYS_PAGES.
51731 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
51732 If sysconf couldn't be used to determine the amount of available
51733 physical memory, use both pstat_getstatic and pstat_getdynamic.
51734 Based on a patch from Bob Proulx.
51736 2001-11-10 Jim Meyering <meyering@lucent.com>
51738 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
51739 (jm_PREREQ): Use it.
51741 2001-11-09 Jim Meyering <meyering@lucent.com>
51743 * m4/jm-macros.m4: Require autoconf-2.52f.
51744 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
51745 Use these AC_-prefixed names, not the AM_-prefixed ones.
51747 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
51749 2001-11-05 Jim Meyering <meyering@lucent.com>
51751 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
51753 2001-11-04 Jim Meyering <meyering@lucent.com>
51755 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
51758 2001-11-03 Jim Meyering <meyering@lucent.com>
51760 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
51763 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
51764 know the name of the variable in the macro definition.
51766 2001-11-03 Jim Meyering <meyering@lucent.com>
51768 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
51769 in argmatch_to_argument call.
51771 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
51774 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
51775 e.g., a fault due to an attempt to free a NULL pointer.
51777 2001-11-01 Jim Meyering <meyering@lucent.com>
51779 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
51780 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
51782 2001-11-01 Jim Meyering <meyering@lucent.com>
51784 * lib/dirfd.c, lib/dirfd.h: New files.
51785 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
51787 * lib/hash.c (hash_print) [TESTING]: Clean up.
51789 2001-10-22 Paul Eggert <eggert@twinsun.com>
51791 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
51792 to avoid a warning if -Wall.
51794 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
51797 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
51798 (per RMS's instructions, this is now the canonical source)
51799 * lgpl/, gpl/: New directories.
51801 2001-10-21 Paul Eggert <eggert@twinsun.com>
51803 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
51805 2001-10-21 Jim Meyering <meyering@lucent.com>
51807 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
51808 this code would end up calling gettext even in packages built
51809 with --disable-nls.
51810 * lib/getopt.c (_): Likewise.
51811 * lib/regex.c (_): Likewise.
51813 2001-10-20 Paul Eggert <eggert@twinsun.com>
51815 * m4/error.m4 (jm_PREREQ_ERROR):
51816 Do not invoke AC_CHECK_FUNCS with strerror_r, as
51817 AC_FUNC_STRERROR_R does that.
51818 Check for strerror declaration.
51820 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
51821 are supposed to have them these days.
51822 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
51823 Merge changes from latest Autoconf CVS.
51824 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
51825 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
51826 POSIX decided to standardize on the int flavor of strerror_r.
51828 2001-10-20 Paul Eggert <eggert@twinsun.com>
51830 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
51831 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
51832 Use strerror_r that is only a macro, even if it is not a function.
51833 (strerror): Check for HAVE_DECL_STRERROR before declaring.
51834 (private_strerror): Use prototypes, not old-style function definition.
51835 (print_errno_message): New function.
51836 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
51837 char*-flavored one.
51838 (error_tail, error, error_at_line): Use it.
51840 2001-10-11 Jim Meyering <meyering@lucent.com>
51842 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
51843 and quote_n (1, ... to avoid clobbering a buffer.
51845 2001-10-05 Jim Meyering <meyering@lucent.com>
51847 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
51849 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
51850 * lib/hash-pjw.h: New file.
51852 2001-09-30 Jim Meyering <meyering@lucent.com>
51854 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
51855 `struct fsstat' has the `f_fstypename' member.
51856 Use that to define FS_TYPE, which is now used to make
51857 the getfsstat link test tighter.
51859 2001-09-30 Jim Meyering <meyering@lucent.com>
51861 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
51862 Include <sys/ucred.h>, for Apple Darwin.
51863 Include sys/mount.h and sys/fs_types.h only if available.
51865 (read_filesystem_list): Use FS_TYPE.
51867 2001-09-29 Paul Eggert <eggert@twinsun.com>
51869 * lib/exclude.c (excluded_filename): 0 -> false, since it's
51872 2001-09-29 Jim Meyering <meyering@lucent.com>
51874 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
51875 [one-argument getmntent function]): Include stdio.h before mntent.h.
51876 SunOS 4.1.x needs it for the declaration of `FILE'.
51877 Patch by Volker Borchert.
51879 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
51880 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
51881 sys/fs_types.h, and make the link-test for getfsstat guard #include
51882 directives with appropriate #if HAVE_*_H tests so that we can
51883 detect getfsstat on Apple Darwin1.3.7 systems.
51884 Reported by Nelson Beebe.
51885 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
51887 2001-09-28 Paul Eggert <eggert@twinsun.com>
51889 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
51890 #defines strtoimax. Also treat the other strto* functions
51893 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
51894 Check for strtoul and strtoumax,
51895 as those declarations are made even in the signed case.
51896 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
51897 Likewise, for strtol and strtoimax.
51899 2001-09-28 Paul Eggert <eggert@twinsun.com>
51901 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
51902 #defines strtoimax. Also treat the other strto* functions
51905 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
51906 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
51907 (strtoimax, strtoumax): Do not declare if already defined as a macro.
51909 2001-09-26 Jim Meyering <meyering@lucent.com>
51911 Most macros in unlocked-io.h had the wrong number of arguments.
51912 * lib/gen-uio: New script.
51913 (USE_UNLOCKED_IO): Define to 1 if not already defined.
51914 * lib/unlocked-io.hin: Remove file.
51915 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
51916 rather than trying to embed it here.
51917 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
51918 Reported by Padraig Brady.
51920 2001-09-25 Volker Borchert <bt@teknon.de>
51922 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
51925 2001-09-24 Jim Meyering <meyering@lucent.com>
51927 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
51929 2001-09-23 Jim Meyering <meyering@lucent.com>
51931 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
51932 instead of the mere test for existence of mntent.h. The latter
51933 would get a false-positive on AIX 3.4 systems.
51934 In the outer getmntent if-block, don't die if neither of the getmntent
51935 tests succeeds. Instead, just fall through and continue with the
51938 2001-09-23 Jim Meyering <meyering@lucent.com>
51940 * lib/mountlist.c: Remove useless parentheses in #if directives.
51941 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
51942 the deprecated MOUNTED symbol is no longer defined in mntent.h.
51944 2001-09-22 Jim Meyering <meyering@lucent.com>
51946 * m4/gettext.m4: New file. From gettext.
51947 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
51948 * m4/progtest.m4: Likewise
51949 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
51950 * m4/glibc21.m4: Likewise.
51952 * m4/libintl.m4: Remove. No longer used.
51954 2001-09-22 Jim Meyering <meyering@lucent.com>
51956 * lib/localcharset.c: Update from latest gettext.
51957 * lib/config.charset: Likewise.
51959 2001-09-20 Jim Meyering <meyering@lucent.com>
51961 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
51963 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
51966 2001-09-20 Jim Meyering <meyering@lucent.com>
51968 * lib/xstrtol.c (strtoimax): Guard declaration with
51969 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
51970 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
51971 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
51972 (strtoumax): Likewise, for completeness (it wasn't necessary).
51974 2001-09-17 Paul Eggert <eggert@twinsun.com>
51976 * lib/strtoimax.c (HAVE_LONG_LONG):
51977 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
51978 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
51979 to work around bug in IBM C compiler.
51981 2001-09-17 Jim Meyering <meyering@lucent.com>
51983 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
51984 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
51985 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
51986 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
51987 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
51988 whenever the right hand side need not be expanded by the shell.
51990 2001-09-16 Paul Eggert <eggert@twinsun.com>
51992 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
51993 library. It's not correct, as some older glibcs are buggy.
51994 fnmatch wasn't fixed until glibc 2.2.
51996 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
51997 special shell magic here.
51999 2001-09-16 Jim Meyering <meyering@lucent.com>
52001 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
52002 * m4/jm-macros.m4: Require it.
52004 2001-09-16 Jim Meyering <meyering@lucent.com>
52006 * lib/mkdir.c: New file.
52008 2001-09-15 Jim Meyering <meyering@lucent.com>
52010 * m4/jm-macros.m4: Check for help2man.
52012 2001-09-11 Jim Meyering <meyering@lucent.com>
52014 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
52015 The body, by Paul Eggert, was moved here from configure.in.
52016 * m4/jm-macros.m4: Require UTILS_HOST_OS.
52018 2001-09-04 Paul Eggert <eggert@twinsun.com>
52020 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
52021 (jm_PREREQ): Use it.
52023 2001-09-04 Paul Eggert <eggert@twinsun.com>
52025 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
52026 Use ssize_t, not int, to store result of readlink.
52027 Check for ssize_t overflow as well as size_t overflow,
52028 as POSIX says the result of readlink is implementation-defined
52029 when ssize_t overflows.
52030 Remove unnecessary cast to char*.
52031 Use free+malloc instead of realloc, as the storage doesn't need
52032 to be preserved and it's clearer and can be more efficient that way.
52033 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
52034 * lib/xreadlink.h (xreadlink): Update prototype.
52036 2001-09-04 Paul Eggert <eggert@twinsun.com>
52038 * lib/xgetcwd.c: Revert some of the previous change; intead,
52039 fix the HAVE_GETCWD_NULL code to behave more like the
52040 !HAVE_GETCWD_NULL code used to.
52042 Include "xalloc.h".
52043 (xgetcwd): Do not return NULL when memory is exhausted; instead,
52046 2001-09-03 Paul Eggert <eggert@twinsun.com>
52048 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
52049 sys/param.h, as pathmax.h includes them.
52051 2001-09-03 Paul Eggert <eggert@twinsun.com>
52053 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
52054 (jm_PREREQ_XGETCWD): New macro.
52056 * m4/getcwd.m4: New file.
52058 2001-09-03 Paul Eggert <eggert@twinsun.com>
52060 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
52061 like the HAVE_GETCWD_NULL code.
52062 Include pathmax.h if not HAVE_GETCWD.
52063 Do not include xalloc.h.
52064 (INITIAL_BUFFER_SIZE): New symbol.
52065 Do not use xmalloc / xrealloc, since the caller is responsible for
52066 handling errors. Preserve errno around `free' during failure.
52067 Do not overrun buffer when using getwd.
52069 2001-09-03 Paul Eggert <eggert@twinsun.com>
52071 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
52072 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
52075 2001-09-03 Paul Eggert <eggert@twinsun.com>
52077 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
52078 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
52079 spotted by Jim Meyering.
52081 2001-09-03 Jim Meyering <meyering@lucent.com>
52083 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
52086 2001-09-02 Jim Meyering <meyering@lucent.com>
52088 * lib/error.c: Update from GNU libc.
52090 2001-09-01 Jim Meyering <meyering@lucent.com>
52092 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
52095 2001-09-01 Jim Meyering <meyering@lucent.com>
52097 * lib/xreadlink.c: New file.
52098 * lib/xreadlink.h: New file.
52099 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
52102 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
52103 doesn't conflict with sparc Solaris 7's definition in
52104 /usr/include/sys/int_types.h.
52106 * lib/exclude.c: Use `""', not `<>' to #include non-system header
52108 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
52109 and strncasecmp as r-values. Unixware didn't have declarations.
52111 2001-08-31 Paul Eggert <eggert@twinsun.com>
52113 * lib/xstrtol.h: Add copyright notice.
52114 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
52115 LONGINT_INVALID_SUFFIX_CHAR.
52117 2001-08-31 Paul Eggert <eggert@twinsun.com>
52119 * lib/xstrtol.c (strtoimax): New decl.
52121 2001-08-31 Paul Eggert <eggert@twinsun.com>
52123 * lib/xgetcwd.c: Don't include pathmax.h.
52124 Include stdlib.h and unistd.h if available.
52126 (xmalloc, xstrdup, free): Remove decls.
52127 (xgetcwd): Don't assume sizes fit in unsigned.
52128 Check for overflow when computing sizes.
52129 Simplify reallocation code.
52131 2001-08-31 Paul Eggert <eggert@twinsun.com>
52133 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
52134 a directory's st_size can have an arbitrary value, so the old
52135 usage could waste an arbitrary amount of memory. All uses
52137 * lib/savedir.h: Update prototype.
52139 2001-08-31 Paul Eggert <eggert@twinsun.com>
52141 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
52143 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
52146 Also, make the following further changes to make this file's
52147 configuration more similar to that of strtol.c:
52148 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
52149 (strtoumax, uintmax_t, strtoull, strtol): Remove.
52150 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
52151 (strtoimax): Renamed from strtoumax. All uses of unsigned values
52152 changed to signed values.
52154 And make the following changes as well:
52155 Fix copyright notice, as 1999 was missing.
52156 (verify): New macro.
52157 (strtoimax): Check sizes at compile-time, not run-time.
52158 Prefer strtol to strtoll if both work.
52159 (main): Remove; it was not that useful and was a pain to maintain.
52161 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
52163 2001-08-31 Jim Meyering <meyering@lucent.com>
52165 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
52166 Use an initial, malloc'd, buffer of length 128 rather than
52167 a statically allocated one of length 1024.
52169 2001-08-30 Paul Eggert <eggert@twinsun.com>
52171 Simplify code, partly by assuming autoconf 2.52 semantics.
52173 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
52175 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
52176 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
52178 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
52179 Move AC_REQUIRE to next-to-top level, to avoid confusion.
52180 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
52181 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
52182 jm_AC_HEADER_INTTYPES_H.
52183 * m4/jm-macros.m4 (jm_MACROS): Likewise.
52185 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
52187 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52188 Quote first arg of AC_DEFUN.
52189 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
52190 since they are needed to parse the include file even if we need
52191 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
52192 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
52193 but with opposite signedness.
52195 2001-08-30 Paul Eggert <eggert@twinsun.com>
52197 Merge 'exclude' changes from tar 1.13.22.
52198 This fixes one or two unlikely storage allocation overflow bugs,
52199 but doesn't change user-visible behavior otherwise.
52201 2001-08-30 Paul Eggert <eggert@twinsun.com>
52203 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
52204 (jm_PREREQ_EXCLUDE): New macro.
52206 2001-08-30 Paul Eggert <eggert@twinsun.com>
52208 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
52211 2001-08-30 Paul Eggert <eggert@twinsun.com>
52213 * lib/hash.c: Remove '2001' from copyright notice.
52215 2001-08-30 Paul Eggert <eggert@twinsun.com>
52217 * lib/full-write.h: New file.
52218 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
52219 * lib/full-write.c: Correct credits, as cccp.c no longer
52220 exists and anyway it was so heavily changed from the old cccp
52221 code as to be unrecognizable. Include full-write.h.
52222 (full_write) Return size_t, with short writes meaning failure.
52223 All callers changed. This fixes a bug with large buffers
52225 * lib/utime.c: Include full-write.h.
52227 2001-08-30 Paul Eggert <eggert@twinsun.com>
52229 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
52230 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
52231 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
52232 Include if available.
52233 (<xalloc.h>): Include
52234 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
52235 (verify): New macro. Use it to verify that EXCLUDE macros do not
52236 collide with FNM macros.
52237 (struct patopts): New struct.
52238 (struct exclude): Use it, as exclude patterns now come with options.
52239 (new_exclude): Support above changes.
52240 (new_exclude, add_exclude_file):
52241 Initial size must now be a power of two to simplify overflow checking.
52242 (free_exclude, fnmatch_no_wildcards): New function.
52243 (excluded_filename): No longer requires options arg, as the options
52244 are determined by add_exclude. Now returns bool, not int.
52245 (excluded_filename, add_exclude):
52246 Add support for the fancy new exclusion options.
52247 (add_exclude, add_exclude_file): Now takes int options arg.
52248 Check for arithmetic overflow when computing sizes.
52249 (add_exclude_file): xrealloc might modify errno, so don't
52250 realloc until after errno might be used.
52252 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
52254 (free_exclude): New decl.
52255 (add_exclude, add_exclude_file): Now takes int options arg.
52256 (excluded_filename): No longer requires options arg, as the options
52257 are determined by add_exclude. Now returns bool, not int.
52259 2001-08-30 Paul Eggert <eggert@twinsun.com>
52261 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
52263 2001-08-27 Jim Meyering <meyering@lucent.com>
52265 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
52267 * lib/version-etc.c (N_): Remove definition.
52268 Revert most of last change.
52269 Instead, simply don't mark the `Copyright...' string for translation.
52270 Based on advice from Paul Eggert.
52272 * lib/strtoxmax.c: Tweak comment.
52274 2001-08-26 Jim Meyering <meyering@lucent.com>
52276 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
52278 * m4/xstrtoimax.m4: New file.
52279 * m4/xstrtoumax.m4: Add comments explaining why we
52280 AC_REPLACE_FUNCS(strtol).
52282 2001-08-26 Jim Meyering <meyering@lucent.com>
52284 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
52285 of copyright with `%s' so translators don't get an untranslated
52287 (COPYRIGHT_YEAR): Define.
52288 (version_etc): Use fprintf rather than fputs.
52289 Suggestion from Ulrich Drepper.
52291 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
52293 * lib/strtoll.c: New file, from GNU libc.
52294 * lib/xstrtoimax.c: New file.
52296 * lib/xstrtol.h: Add xstrtoimax.
52297 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
52298 * lib/strtoimax.c: New file. Likewise, but first define
52301 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
52303 * lib/strtoxmax.c: ... then renamed to this.
52305 2001-08-18 Paul Eggert <eggert@twinsun.com>
52307 * m4/inttypes.m4: Add AC_PREREQ(2.13).
52308 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
52309 (jm_AC_TYPE_INTMAX_T): New macro.
52310 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
52312 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
52314 * m4/longlong.m4: Renamed from ulonglong.m4.
52315 * m4/inttypes.m4: Renamed from inttypes_h.m4.
52316 * m4/uintmax_t.m4: Removed.
52318 2001-08-13 Paul Eggert <eggert@twinsun.com>
52320 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
52321 Port to Solaris 8, where 'sed' requires a space after the 'r'
52322 command, and where sh dislikes "$/". Clean up the spacing a bit.
52323 Redirect output to $tmp just once.
52325 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
52327 * lib/addext.c (<errno.h>): Include.
52328 (errno): Declare if not defined.
52329 (addext): Work correctly when pathconf returns -1 and leaves
52330 errno alone because there is no limit. Also, work even if
52331 pathconf returns a value greater than SIZE_MAX.
52333 2001-08-12 Jim Meyering <meyering@lucent.com>
52335 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
52336 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
52337 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
52338 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
52339 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
52340 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
52341 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
52342 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
52343 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
52344 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
52345 utime.m4, utimes.m4, xstrtoumax.m4:
52346 Quote the first argument in each use of AC_DEFUN.
52348 2001-08-12 Jim Meyering <meyering@lucent.com>
52350 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
52351 Simply `return getcwd (NULL, 0);'.
52352 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
52353 Use 1300 as initial value for length, not PATH_MAX.
52355 * lib/pathmax.h: Clean up cpp syntax.
52357 2001-08-12 Jim Meyering <meyering@lucent.com>
52359 * lib/gettimeofday.c: New file.
52360 * lib/gtod.h: New file.
52361 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
52363 2001-08-05 Jim Meyering <meyering@lucent.com>
52365 * m4/jm-macros.m4: Require autoconf-2.52.
52367 2001-08-04 Jim Meyering <meyering@lucent.com>
52369 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
52370 stmt, to get in sync with glibc.
52372 2001-08-03 Paul Eggert <eggert@twinsun.com>
52374 The following changes are from gettext 0.10.39 as maintained by
52377 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
52378 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
52379 with inverted sense. All uses changed.
52381 * lib/mbswidth.c: Don't include <limits.h>.
52382 Include <stdlib.h> and <string.h> unconditionally.
52383 (iswcntrl, mbsinit, ISCNTRL): New macros.
52384 (mbsnwidth): Use K&R style function declarations.
52385 Don't bother checking for MB_LEN_MAX == 1, since the compiler
52386 can optimize it when MB_CUR_MAX == 1.
52387 The width of control characters is zero, not 1.
52389 2001-08-03 Paul Eggert <eggert@twinsun.com>
52391 The following changes are from gettext 0.10.39 as maintained by
52392 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
52394 * m4/codeset.m4: Upgrade to serial AM1.
52395 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
52396 all uses changed. Quote first arg of AC_DEFUN.
52397 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
52399 * m4/iconv.m4: Upgrade to serial AM2.
52400 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
52401 Add --with-libconv-prefix.
52402 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
52403 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
52404 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
52405 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
52406 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
52408 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
52409 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
52410 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
52411 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
52412 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
52413 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
52414 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52415 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
52416 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
52418 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
52421 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
52422 not the default value.
52424 2001-06-25 Bruno Haible <haible@clisp.cons.org>
52425 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
52426 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
52427 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
52428 Also check for iswcntrl, used for wcwidth fallback.
52429 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
52432 2001-08-03 Jim Meyering <meyering@lucent.com>
52434 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
52435 as it was in the original. Reported by Paul Eggert.
52437 2001-07-16 Jim Meyering <meyering@lucent.com>
52439 * m4/gettimeofday.m4: New file.
52440 Prompted by a report from Bernhard Baehr.
52442 2001-07-15 Jim Meyering <meyering@lucent.com>
52444 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
52445 stuff. Now it's in ../Makefile.cfg.
52447 2001-07-15 Jim Meyering <meyering@lucent.com>
52449 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
52450 (BUILT_SOURCES): Add unlocked-io.h.
52451 (io_functions): Define.
52452 (unlocked-io.h): New rule.
52453 (DISTCLEANFILES): Add unlocked-io.h.
52454 (all-local): Depend on unlocked-io.h, to ensure it is created.
52456 * lib/unlocked-io.hin: New file
52458 * lib/regex.c: Update from glibc.
52460 2001-07-05 Jim Meyering <meyering@lucent.com>
52462 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
52464 (libfetish_a_SOURCES): Put all .h files here instead.
52465 Remove a thus-exposed (better checks in automake) duplicate and
52466 two unnecessary .h files.
52468 2001-07-04 Jim Meyering <meyering@lucent.com>
52470 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
52471 that generates jm-glibc-io.m4 so that it doesn't trigger any make
52474 2001-07-02 Jim Meyering <meyering@lucent.com>
52476 The following changes were prompted by suggestions from Bruno Haible.
52478 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
52480 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
52481 definition of EXTRA_DIST.
52482 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
52483 ensure that the generated file is created/updated whenever the list
52484 of $(unlocked_functions) is changed.
52485 (jm-glibc-io.m4): New rule.
52486 (unlocked-io.h): New rule -- currently unused.
52488 2001-06-24 Jim Meyering <meyering@lucent.com>
52490 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
52491 unmatched right bracket, rather than kludging it with an extra,
52492 falsely-matching quote in a comment. Patch by Akim Demaille.
52494 2001-06-11 Jim Meyering <meyering@lucent.com>
52496 * lib/regex.c: Update from GNU libc.
52498 2001-05-27 Jim Meyering <meyering@lucent.com>
52500 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
52501 Check for ut_type in struct utmp.
52503 2001-05-27 Jim Meyering <meyering@lucent.com>
52505 * lib/readutmp.h (UT_TYPE): Define.
52507 2001-05-24 Jim Meyering <meyering@lucent.com>
52509 * lib/argmatch.c: Include "quote.h".
52510 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
52511 quote function. Reported by Göran Uddeborg.
52513 2001-05-22 Jim Meyering <meyering@lucent.com>
52515 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
52516 now that we use the package-supplied version unconditionally.
52517 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
52519 2001-05-21 Jim Meyering <meyering@lucent.com>
52521 * m4/regex.m4: Change a couple backticks to single quotes to avoid
52522 shell syntax errors.
52524 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
52526 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
52528 2001-05-20 Paul Eggert <eggert@twinsun.com>
52530 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
52531 Don't bother to check library strftime, since
52532 we'll be using our own my_strftime function anyway.
52533 Define my_strftime instead of strftime.
52535 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
52537 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
52538 which is not yet declared.
52540 2001-05-15 Jim Meyering <meyering@lucent.com>
52542 * m4/regex.m4: Use proper quoting so brackets appear in the test
52544 Reported by, and with help from, Bruno Haible.
52546 2001-05-13 Jim Meyering <meyering@lucent.com>
52548 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
52551 2001-05-11 Paul Eggert <eggert@twinsun.com>
52553 dirname code cleanup. base_name now behaves more compatibly
52554 with POSIX basename when given file names that have trailing
52555 slashes, and similarly for dir_name. Add new primitives
52556 base_len and dir_len. Put the directory-name-related decls
52559 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
52560 * lib/backupfile.c (base_name): Likewise.
52561 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
52562 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
52563 * lib/makepath.c (strip_trailing_slashes): Likewise.
52564 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
52565 ISSLASH): Likewise.
52566 * lib/rename.c (strip_trailing_slashes): Likewise.
52567 * lib/same.c (base_name): Likewise.
52568 * lib/stripslash.c (ISSLASH): Likewise.
52570 * lib/addext.c: Include <dirname.h> after size_t is defined.
52571 * lib/backupfile.c: Likewise.
52573 * lib/addext.c (addext): Use base_len to trim redundant
52574 trailing slashes instead of doing it ourselves.
52575 But do not trim the last slash if it is not redundant.
52577 * lib/backupfile.c (find_backup_file_name,
52578 max_backup_version): Use base_len instead of rolling it ourselves.
52579 Handle the case of "" and (on DOS) "C:" correctly.
52581 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
52582 needed. Include <string.h>, <dirname.h>.
52583 (base_name): Allow file names ending in slashes, other than names
52584 that are all slashes. In this case, return the basename followed
52585 by the slashes. This is more general, and can be used in places
52586 where the original base_name purposely had an assertion failure.
52587 (base_len): New function.
52589 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
52590 Do not include <assert.h>; no longer needed.
52592 (memrchr): Remove decl.
52593 (dir_name_r): Remove.
52594 (dir_len): Renamed from dirlen. All callers changed.
52595 Rewrite in terms of base_name, for simplicity and consistency.
52596 (dir_name): Never return NULL. All callers changed.
52597 Do not include <stdlib.h> in test program; no longer needed.
52598 return 0; is fine for test program.
52600 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
52602 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
52604 * lib/path-concat.c (path_concat): Use base_len to compute
52605 base length, not strlen; this means we cannot rely on memcpy
52608 * lib/same.c (STREQ): Remove.
52609 (same_name): Handle the case where the basename ends in trailing '/'.
52611 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
52612 a slash was stripped. Do not strip the last slash after a
52613 file system prefix.
52615 2001-05-11 Paul Eggert <eggert@twinsun.com>
52617 * lib/Makefile.am (libfetish_a_SOURCES):
52618 Add strftime.c, since we now compile it on all hosts.
52620 * lib/strftime.c (my_strftime):
52621 Define to nstrftime if emacs, but only if my_strftime is not defined.
52622 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
52623 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
52624 Add one more extra argument: a nanoseconds value.
52627 (my_strftime function): Add %N format.
52628 (emacs_strftimeu): Renamed from emacs_strftime,
52629 with extra ut argument.
52631 2001-05-09 Paul Eggert <eggert@twinsun.com>
52633 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
52635 2001-04-21 Jim Meyering <meyering@lucent.com>
52637 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
52640 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
52642 * m4/ftruncate.m4: Check for chsize.
52643 Link with ftruncate.o unconditionally if ftruncate is missing.
52644 This was required when cross-compiling to i586-mingw32msvc.
52646 2001-04-08 Jim Meyering <meyering@lucent.com>
52648 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
52649 recomputed; that's necessary when the offset spans a DST transition.
52650 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
52652 2001-04-02 Jim Meyering <meyering@lucent.com>
52654 * lib/regex.h, regex.c: Update from GNU libc.
52656 2001-03-24 Jim Meyering <meyering@lucent.com>
52658 * m4/jm-macros.m4: Require autoconf-2.49d.
52660 2001-03-20 Bruno Haible <haible@clisp.cons.org>
52662 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
52664 2001-03-19 Paul Eggert <eggert@twinsun.com>
52666 * lib/version-etc.c (version_etc_copyright): Update to 2001.
52668 2001-03-17 Jim Meyering <meyering@lucent.com>
52670 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
52671 now that the version in autoconf is equivalent.
52672 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
52674 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
52675 Suggestion from Akim Demaille.
52677 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
52678 (jm_PREREQ_TEMPNAME): New function.
52680 2001-03-16 Paul Eggert <eggert@twinsun.com>
52682 * lib/tempname.c (uint64_t): Define to uintmax_t if
52683 not defined, and if UINT64_MAX is not defined.
52684 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
52685 Reported by John David Anglin.
52687 2001-03-15 Bruno Haible <haible@clisp.cons.org>
52689 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
52690 resolve alias if codeset is empty.
52691 * lib/config.charset (BeOS): Use wildcard syntax.
52693 2001-03-13 Jim Meyering <meyering@lucent.com>
52695 * lib/path-concat.c (path_concat)
52696 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
52697 concatenating e.g., `C:' and `foo'.
52700 2001-03-06 Bruno Haible <haible@clisp.cons.org>
52702 * lib/localcharset.c (locale_charset): Don't use
52703 setlocale(LC_CTYPE,NULL). Don't return NULL.
52704 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
52706 2001-03-06 Bruno Haible <haible@clisp.cons.org>
52708 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
52709 support for DOS/DJGPP.
52711 2001-03-01 Paul Eggert <eggert@twinsun.com>
52713 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
52714 lacks mkstemp. Compile our own tempname.c if we compile our own
52715 mkstemp.c, as mkstemp relies on tempname.
52717 2001-03-01 Jim Meyering <meyering@lucent.com>
52719 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
52720 AH_VERBATIM really does output its argument verbatim.
52722 2001-02-28 Paul Eggert <eggert@twinsun.com>
52724 * lib/Makefile.am (libfetish_a_SOURCES):
52725 Add dup-safer.c, fopen-safer.c.
52726 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
52728 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
52729 * lib/unistd-safer.h: New files.
52731 2001-02-25 Paul Eggert <eggert@twinsun.com>
52733 The mkstemp replacement is taken from glibc 2.2.2, with some
52734 portability fixes for use outside glibc, as follows:
52736 * lib/tempname.c (struct_stat64): New macro.
52737 (direxists, __gen_tempname): Use it.
52738 This avoids a portability problem with Solaris 8.
52740 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
52741 (<stddef.h>, <stdint.h>, <string.h>):
52742 Include only if STDC_HEADERS || _LIBC.
52743 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
52744 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
52745 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
52746 (__set_errno): Define this macro if <errno.h> doesn't.
52747 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
52748 Define these macros if <stdio.h> doesn't.
52749 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
52750 Define these macros if <sys/stat.h>
52751 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
52752 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
52753 __xstat64): Define if not _LIBC.
52754 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
52755 (__gen_tempname): Invoke gettimeofday only if
52756 HAVE_GETTIMEOFDAY || _LIBC;
52757 otherwise, fall back on plain "time".
52758 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
52760 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
52762 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
52764 2001-02-18 Paul Eggert <eggert@twinsun.com>
52766 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
52768 2001-02-17 Paul Eggert <eggert@twinsun.com>
52770 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
52771 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
52772 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
52773 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
52775 2001-02-17 Paul Eggert <eggert@twinsun.com>
52777 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
52778 Remove workaround macros for hosts that have mbrtowc but not
52779 mbstate_t, as we now insist on proper declarations for both
52780 before using mbrtowc.
52782 2001-02-17 Jim Meyering <meyering@lucent.com>
52784 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
52785 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
52786 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
52789 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
52790 rather than AC_CACHE_VAL.
52792 2001-02-17 Jim Meyering <meyering@lucent.com>
52794 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
52795 around included file name.
52797 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
52799 * lib/strftime.c: Update from GNU libc (the only changes were to
52802 2001-02-17 Jim Meyering <meyering@lucent.com>
52804 * lib/regex.c: Update from libc.
52806 2001-02-17 Bruno Haible <haible@clisp.cons.org>
52808 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
52811 2001-02-16 Paul Eggert <eggert@twinsun.com>
52813 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
52814 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
52815 Reported by Mark Hounschell via Paul Eggert.
52817 2001-02-07 Jim Meyering <meyering@lucent.com>
52819 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
52821 2001-02-05 Jim Meyering <meyering@lucent.com>
52823 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
52824 it includes the patch required for `large file' support with at least
52825 HP-UX's 10.20 /bin/cc.
52827 2001-02-03 Jim Meyering <meyering@lucent.com>
52829 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
52830 AS_IF, now that it works once again (mysteriously).
52831 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
52833 2001-01-30 Jim Meyering <meyering@lucent.com>
52835 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
52836 * m4/chown.m4: Rename conftestchown to conftest.chown.
52837 * m4/rename.m4: s/conftestdir/conftest.d1/ and
52838 s/conftestdir2/conftest.d2/.
52839 * m4/utimes.m4: s/conftestdata/conftest.data/
52840 Inspired by Pavel Roskin's change in autoconf.
52842 2001-01-30 Bruno Haible <haible@clisp.cons.org>
52844 * lib/config.charset: Update for FreeBSD 4.2.
52846 2001-01-27 Jim Meyering <meyering@lucent.com>
52848 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
52850 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
52852 2001-01-26 Jim Meyering <meyering@lucent.com>
52854 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
52855 quotearg.c includes it.
52857 2001-01-26 Jim Meyering <meyering@lucent.com>
52859 * lib/quotearg.c: Include stddef.h.
52860 * lib/quote.c: Include stddef.h.
52861 Reported by Axel Kittenberger.
52863 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
52864 line in double quotes so that it evokes a better diagnostic.
52865 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
52866 Reported by Axel Kittenberger.
52868 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
52870 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
52871 as if it was a `charset'.
52873 2001-01-21 Bruno Haible <haible@clisp.cons.org>
52875 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
52878 2001-01-21 Bruno Haible <haible@clisp.cons.org>
52880 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
52881 to avoid a warning. Add back 'const' to inptr.
52883 2001-01-20 Jim Meyering <meyering@lucent.com>
52885 Be sure that headers are checked before used in code compiled
52886 for the type checks.
52887 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
52888 In place of that, invoke jm_CHECK_ALL_TYPES.
52889 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
52890 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
52891 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
52892 The check for ssize_t was mistakenly run before the test for unistd.h.
52894 The configure-time check for stdbool.h was missing.
52895 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
52896 (jm_PREREQ_HASH): New function.
52898 2001-01-17 Jim Meyering <meyering@lucent.com>
52900 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
52901 for autoconf-2.49c.
52902 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
52904 2001-01-16 Jim Meyering <meyering@lucent.com>
52906 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
52909 2001-01-14 Jim Meyering <meyering@lucent.com>
52911 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
52912 foo and bar. Create conftestdir/ in the script, not in the C code.
52913 Remove directories in the script, not in the C code.
52914 Remove conftestdir{,2} before trying to create the directory.
52915 Make the entire configure script fail if the mkdir fails.
52917 2001-01-14 Jim Meyering <meyering@lucent.com>
52919 * lib/rename.c: New file. From Volker Borchert.
52920 Include stdlib.h, string.h or strings.h, and xalloc.h.
52921 Use strip_trailing_slashes rather than open-coding it.
52923 2001-01-03 Paul Eggert <eggert@twinsun.com>
52925 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
52927 2001-01-03 Jim Meyering <meyering@lucent.com>
52929 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
52930 of local `inptr' to avoid warning with some system declarations of
52933 2001-01-02 Volker Borchert <bt@teknon.de>
52935 * m4/rename.m4: New file.
52936 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
52938 2001-01-01 Jim Meyering <meyering@lucent.com>
52940 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
52941 even on systems with utmpx.h. It's necessary for the declaration of
52942 utmp's ut_user member. Reported by Andreas Jaeger.
52944 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
52945 available. They are required for the declarations of getgrgid and
52947 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
52948 Reported by Andreas Jaeger.
52950 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
52952 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
52953 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
52954 so `make install' also works in VPATH builds.
52956 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
52958 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
52959 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
52960 can be used in subdirectories.
52962 2000-12-29 Paul Eggert <eggert@twinsun.com>
52964 * lib/modechange.c: Do not assume that mode_t uses the
52965 traditional octal encoding. E.g. "chmod 1 FOO" should set
52966 the other-execute bit of FOO even if S_IXOTH != 1.
52968 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
52969 WOTH, XOTH, ALLM): New macros.
52970 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
52971 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
52973 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
52974 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
52976 No need to use uintmax_t; unsigned long is long enough.
52977 Don't bother to get suffix since we don't use it.
52979 2000-12-26 Jim Meyering <meyering@lucent.com>
52981 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
52982 better with autoheader.
52984 2000-12-24 Jim Meyering <meyering@lucent.com>
52986 * lib/hash.c (is_prime): Return explicit boolean values.
52987 (hash_get_first): Return NULL to appease Irix5.6's 89.
52988 Reported by Nelson Beebe.
52990 2000-12-19 Bruno Haible <haible@clisp.cons.org>
52992 * lib/localcharset.c (locale_charset): Add support for Win32.
52994 2000-12-18 Paul Eggert <eggert@twinsun.com>
52996 * lib/physmem.h, lib/physmem.c: New files.
52998 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
52999 (noinst_HEADERS): Add physmem.h.
53001 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
53002 't' for compatibility with Solaris 8 sort.
53004 2000-12-18 Bruno Haible <haible@clisp.cons.org>
53006 * lib/config.charset: Add support for BeOS.
53008 2000-12-17 Jim Meyering <meyering@lucent.com>
53010 * m4/dos.m4 (jm_AC_DOS): New file and macro.
53011 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
53013 2000-12-16 Jim Meyering <meyering@lucent.com>
53015 This bug had a serious impact on chown: `chown N:M FILE' (for integer
53016 N and M) would have treated it like `chown N:N FILE'.
53018 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
53020 2000-12-16 Jim Meyering <meyering@lucent.com>
53022 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
53023 SHELLS_FILE to a file name that's useful on djgpp systems.
53025 (ADDITIONAL_DEFAULT_SHELLS): Define.
53026 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
53027 Based mostly on a patch from Prashant TR.
53029 2000-12-16 Bruno Haible <haible@clisp.cons.org>
53031 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
53032 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
53033 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
53035 2000-12-08 Andreas Schwab <schwab@suse.de>
53037 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
53038 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
53040 2000-12-07 Jim Meyering <meyering@lucent.com>
53042 * lib/stripslash.c (ISSLASH): Define.
53043 (strip_trailing_slashes): Use ISSLASH rather than comparing against
53047 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
53048 (dir_name_r): Declare this function as static.
53049 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
53050 manifest itself on a name containing a mix of slashes and
53052 Make this function work with names starting with a DOS-style
53053 drive letter and colon prefix.
53054 (dir_name): Append `.' if necessary.
53055 Based mostly on patches from Prashant TR and Eli Zaretskii.
53057 * lib/dirname.h (dir_name_r): Remove prototype.
53059 2000-12-06 Paul Eggert <eggert@twinsun.com>
53061 * m4/off_t-format.m4: Remove this file.
53062 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
53064 2000-12-06 Jim Meyering <meyering@lucent.com>
53066 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
53067 replacement strtoull, we may well need the replacement strtoul, too.
53068 Check for declarations of strtoul and strtoull.
53069 Check for strtol. Mainly as a cue to cause automake to include
53070 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
53071 Check for limits.h -- strtol.c needs it.
53073 2000-12-05 Jim Meyering <meyering@lucent.com>
53075 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
53077 2000-12-04 Jim Meyering <meyering@lucent.com>
53079 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
53080 Also include memory.h, stdlib.h, unistd.h if appropriate.
53081 Reported by Andreas Jaeger (conflicting declaration of malloc).
53083 2000-12-02 Jim Meyering <meyering@lucent.com>
53085 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
53086 * m4/jm-macros.m4 (jm_MACROS): require it.
53088 2000-12-02 Jim Meyering <meyering@lucent.com>
53090 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
53092 2000-12-01 Paul Eggert <eggert@twinsun.com>
53094 * lib/memrchr.c: Include <config.h> before any system include file.
53096 2000-11-30 Jim Meyering <meyering@lucent.com>
53098 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
53100 2000-11-30 Jim Meyering <meyering@lucent.com>
53102 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
53104 2000-11-29 Paul Eggert <eggert@twinsun.com>
53106 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
53108 2000-11-26 Jim Meyering <meyering@lucent.com>
53110 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
53112 2000-11-22 Paul Eggert <eggert@twinsun.com>
53114 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
53115 size of (size_t) -1; it's not portable.
53117 2000-11-17 Jim Meyering <meyering@lucent.com>
53119 * lib/strstr.c: Update from GNU libc.
53121 2000-11-17 Akim Demaille <akim@epita.fr>
53123 * lib/obstack.h: Formatting changes.
53124 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
53125 prevent type checking.
53126 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
53127 cast the value to (void *): assigning a `foo *' to a `void *'
53129 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
53131 2000-11-16 Jim Meyering <meyering@lucent.com>
53133 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
53135 2000-11-11 Jim Meyering <meyering@lucent.com>
53137 * lib/error.c: Add a couple #includes, merging from GNU libc version.
53139 2000-11-10 Jim Meyering <meyering@lucent.com>
53141 * lib/obstack.h: Update from GNU libc.
53142 * lib/obstack.c: Likewise.
53144 2000-11-08 Bruno Haible <haible@clisp.cons.org>
53146 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
53148 2000-11-06 Paul Eggert <eggert@twinsun.com>
53150 * lib/getusershell.c (setusershell): Use rewind rather than
53151 fseek/fseeko, to avoid configuration hassles with fseeko.
53152 Don't bother opening SHELLS_FILE if shellstream is NULL;
53153 it's not necessary.
53155 2000-11-05 Jim Meyering <meyering@lucent.com>
53157 * lib/makepath.h (make_dir): Declare.
53158 * lib/makepath.c (make_dir): Remove `static' attribute.
53161 2000-11-04 Jim Meyering <meyering@lucent.com>
53163 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
53165 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
53167 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
53168 last one in a bucket, advance to the next bucket.
53170 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
53172 * lib/fnmatch.c: Do not comment out all the code if we are using
53173 the GNU C library, because in some cases we are replacing buggy
53174 code in the GNU C library itself.
53176 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
53178 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
53179 (regex_compile): Catch bogus \(\1\).
53181 2000-10-30 Paul Eggert <eggert@twinsun.com>
53183 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
53184 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
53185 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
53187 2000-10-30 Paul Eggert <eggert@twinsun.com>
53189 * lib/error.h, getline.h, modechange.h:
53190 Remove "2000" from Copyright line, as the file hasn't been
53191 changed this year other than in the copyright notice.
53193 * lib/xalloc.h: Add "2000" to Copyright line, as this file
53194 was changed this year.
53196 2000-10-29 Jim Meyering <meyering@lucent.com>
53198 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
53200 * m4/ls-mntd-fs.m4: Likewise
53202 2000-10-29 Jim Meyering <meyering@lucent.com>
53204 * lib/xstat.in: Fix grammar in comment.
53206 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
53208 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
53209 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
53210 doesn't define __restrict_arr.
53212 2000-10-28 Jim Meyering <meyering@lucent.com>
53214 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
53215 (jm_PREREQ_MEMCHR): New function.
53217 2000-10-28 Jim Meyering <meyering@lucent.com>
53219 * lib/memchr.c: Update from libc.
53220 Adjust for portability:
53221 [HAVE_STDLIB_H]: Include stdlib.h.
53222 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
53223 Undef __memchr, too.
53224 [!weak_alias]: Define __memchr to memchr.
53226 * lib/regex.c: Update from libc.
53227 * lib/regex.h: Likewise.
53228 * lib/getopt1.c: Likewise.
53229 * lib/memcmp.c: Likewise.
53231 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
53232 Avoid using fseek, when possible -- it's broken by design.
53233 Patch by Ulrich Drepper.
53235 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
53237 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
53238 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
53239 Giving in to popular pressure to shut up the compiler with casts.
53241 2000-10-26 Jim Meyering <meyering@lucent.com>
53243 * lib/strftime.c: Update from libc.
53245 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
53247 * regex.c: More `unsigned char' -> `re_char' changes.
53248 Also change several `int' into `re_wchar_t'.
53249 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
53250 (PUSH_FAILURE_POINTER): Don't cast any more.
53251 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
53252 We want GCC to complain, since this piece of code makes
53253 re_match non-reentrant, which *should* be fixed.
53254 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
53255 (EXTEND_BUFFER): Use RETALLOC.
53256 (SET_LIST_BIT): Don't cast.
53257 (re_wchar_t): New type.
53258 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
53259 that those two functions will always properly return.
53260 (IMMEDIATE_QUIT_CHECK): Cast to void.
53261 (analyse_first): Use recursion rather than an explicit stack.
53262 (re_compile_fastmap): Can't fail anymore.
53263 (re_search_2): Don't check re_compile_fastmap for failure.
53264 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
53265 Now also sets the new value (passed in a new argument).
53266 (re_match_2_internal): Use it.
53267 Also, use a new var `reg' of type size_t when looping through regs
53268 rather than reuse the inappropriate `mcnt'.
53270 2000-10-25 Jim Meyering <meyering@lucent.com>
53272 * lib/obstack.c: Update from libc.
53274 2000-10-24 Kenichi Handa <handa@etl.go.jp>
53276 * regex.c (regex_compile): Change the way of handling a range from
53277 a char less than 256 to a char not less than 256.
53279 2000-10-24 Andrew Innes <andrewi@gnu.org>
53281 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
53283 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
53284 so that re_search functions only quit when callers expect them to.
53286 2000-10-23 Jim Meyering <meyering@lucent.com>
53288 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
53289 wrong. That set_locale call must not have any side effects.
53292 2000-10-22 Jim Meyering <meyering@lucent.com>
53294 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
53295 [CYCLIC]: Remove now-unused definition.
53297 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
53298 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
53299 Suggestion from Ulrich Drepper.
53301 2000-10-21 Jim Meyering <meyering@lucent.com>
53303 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
53304 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
53305 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
53307 2000-10-21 Jim Meyering <meyering@lucent.com>
53309 * lib/dirname.c (memrchr): Declare if necessary.
53310 (dir_name): Remove the restriction that there be no
53311 trailing slashes. Now, this code skips past them, effectively
53313 [TEST_DIRNAME] (main): New unit tests.
53315 * lib/memrchr.c: New file from GNU libc.
53316 Undef __memrchr, too.
53317 [!weak_alias]: Define __memrchr to memrchr.
53318 Guard weak_alias use with `#ifdef weak_alias'.
53320 2000-10-21 Jim Meyering <meyering@lucent.com>
53322 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
53323 (dir_name): Use dir_name_r.
53324 * lib/dirname.h (dir_name_r): Declare it.
53326 2000-10-17 Jim Meyering <meyering@lucent.com>
53328 * lib/quote.h (PARAMS): Define and use.
53329 Reported by Akim Demaille.
53331 * lib/getopt.c: Update from libc.
53333 2000-10-16 Jim Meyering <meyering@lucent.com>
53335 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
53339 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
53341 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
53343 2000-09-25 Jim Meyering <meyering@lucent.com>
53345 * lib/md5.h (rol): Define (from GnuPG).
53347 * lib/sha.c: Give credit (GnuPG) where due.
53348 (M): Use rol rather than open-coding it.
53349 Add a FIXME comment.
53351 2000-09-21 Jim Meyering <meyering@lucent.com>
53353 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
53354 Reported by Michael Stone.
53356 2000-09-20 Jim Meyering <meyering@lucent.com>
53358 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
53359 (noinst_HEADERS): Add sha.h.
53360 Based on code from Scott G. Miller and from GnuPG.
53362 2000-09-18 Jim Meyering <meyering@lucent.com>
53364 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
53365 LIBS. Otherwise, everyone ends up linking with -lelf for some
53367 Reported by Mike Stone.
53369 2000-09-15 Jim Meyering <meyering@lucent.com>
53371 * lib/regex.c: Update from libc.
53373 2000-09-10 Jim Meyering <meyering@lucent.com>
53375 * lib/getopt.c (_getopt_internal): Update from glibc.
53377 2000-09-09 Jim Meyering <meyering@lucent.com>
53379 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
53380 think it should be used as a general replacement for isascii.
53381 * lib/fnmatch.c: Likewise.
53382 * lib/mbswidth.c: Likewise
53383 * lib/regex.c: Likewise.
53386 * lib/userspec.c: Include sys/param.h and limits.h.
53388 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
53389 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
53390 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
53391 UID, GID. Check range.
53393 2000-09-06 Jim Meyering <meyering@lucent.com>
53395 * lib/getopt.c (_getopt_internal): Update from glibc.
53397 2000-08-30 Jim Meyering <meyering@lucent.com>
53399 * lib/strftime.c: Merge in changes from GNU libc.
53401 2000-08-26 Jim Meyering <meyering@lucent.com>
53403 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
53404 * m4/fpending.m4: New file.
53406 2000-08-26 Jim Meyering <meyering@lucent.com>
53408 * lib/closeout.c: Include "__fpending.h".
53409 (close_stdout_status): Return right away if there's nothing to flush.
53411 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
53412 * lib/__fpending.c: New file.
53413 * lib/__fpending.h: New file.
53415 2000-08-20 Jim Meyering <meyering@lucent.com>
53417 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
53418 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
53419 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
53421 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
53423 Improve fileutils installation on systems where running
53424 programs (like install) can't be unlinked.
53425 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
53426 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
53428 2000-08-07 Paul Eggert <eggert@twinsun.com>
53430 Standardize on "memory exhausted" instead of "Memory exhausted"
53431 or "virtual memory exhausted".
53432 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
53433 "virtual memory exhausted".
53434 * lib/same.c (same_name): Invoke xalloc_die instead of printing
53436 * lib/userspec.c (parse_user_spec): Likewise.
53437 * lib/bumpalloc.h: comment fix
53438 * lib/same.c, userspec.c: Include xalloc.h.
53440 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
53441 not char *const and pointing to a constant array.
53442 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
53443 (xrealloc): Comment fix.
53445 * lib/userspec.c (parse_user_spec):
53446 Don't translate a message until just before returning,
53447 to avoid unnecessary translation.
53449 2000-08-07 Jim Meyering <meyering@lucent.com>
53451 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
53452 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
53453 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
53454 getgroups.c, gethostname.c, getopt.h, group-member.c,
53455 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
53456 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
53457 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
53458 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
53459 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
53460 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
53461 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
53462 yesno.c: Back out Copyright date changes for each file with no change
53463 this year. This eases coordination with other programs using the same
53464 source code modules. From Paul Eggert.
53466 2000-08-06 Paul Eggert <eggert@twinsun.com>
53468 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
53469 not char, for compatibility with glibc 2.1.3 strftime.c.
53471 2000-08-03 Greg McGary <greg@mcgary.org>
53473 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
53474 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
53475 (EXTEND_BUFFER): Use them.
53477 2000-08-01 Jim Meyering <meyering@lucent.com>
53479 * lib/dirname.c (ISSLASH): Define.
53480 (BACKSLASH_IS_PATH_SEPARATOR): Define.
53481 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
53482 both `\' and `/' may be use as path separators.
53483 Based on a patch from Prashant TR.
53485 2000-07-31 Paul Eggert <eggert@twinsun.com>
53487 * lib/quotearg.c (quotearg_n_options): Don't make the initial
53488 slot vector a constant, since it might get modified.
53490 2000-07-31 Jim Meyering <meyering@lucent.com>
53492 * lib/xmalloc.c: Use `virtual memory exhausted', not
53493 `Memory exhausted'.
53494 * lib/obstack.c (print_and_abort): Likewise.
53496 2000-07-30 Paul Eggert <eggert@twinsun.com>
53498 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
53499 buffer, so that the caller can always quote one small
53500 component of a "memory exhausted" message in slot 0.
53501 From a suggestion by Jim Meyering.
53503 2000-07-30 Jim Meyering <meyering@lucent.com>
53505 * lib/makepath.c (make_path): Quote the other instance, too.
53507 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
53508 (STATIC_BUF_SIZE): Define.
53509 (quotearg_n_options): Use only statically allocated storage when
53510 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
53511 than STATIC_BUF_SIZE.
53513 2000-07-29 Jim Meyering <meyering@lucent.com>
53515 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
53516 * lib/dirname.c (dir_name): Likewise.
53518 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
53521 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
53522 (dir_name): Assert that there are no trailing slashes.
53524 2000-07-29 Bruno Haible <haible@clisp.cons.org>
53526 * lib/mbswidth.h (mbswidth): Add a flags argument.
53527 (mbswidth): New declaration.
53528 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
53529 * lib/mbswidth.c (mbswidth): Add a flags argument.
53530 (mbsnwidth): New function.
53532 2000-07-24 Jim Meyering <meyering@lucent.com>
53534 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
53536 2000-07-23 Paul Eggert <eggert@twinsun.com>
53538 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
53540 2000-07-23 Paul Eggert <eggert@twinsun.com>
53542 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
53543 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
53544 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
53545 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
53546 invoke multibyte primitives.
53548 2000-07-23 Paul Eggert <eggert@twinsun.com>
53551 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
53552 so that mbstate_t is always defined.
53554 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
53555 be 1 in at least one GCC installation, and this configuration
53556 error is likely to be common. Ignoring MB_LEN_MAX hurts
53557 performance on hosts that have mbrtowc but have only unibyte
53558 locales, but I assume these hosts are rare.
53560 2000-07-23 Paul Eggert <eggert@twinsun.com>
53562 * lib/mbswidth.c (_XOPEN_SOURCE):
53563 Don't define; this causes problems on Solaris 7.
53564 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
53566 2000-07-23 Jim Meyering <meyering@lucent.com>
53568 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
53569 too: getgrgid, getpwuid, getuid.
53571 2000-07-23 Jim Meyering <meyering@lucent.com>
53573 * lib/basename.c (base_name): Add an assertion.
53575 2000-07-23 Bruno Haible <haible@clisp.cons.org>
53577 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
53578 shadow its mbsinit function.
53580 2000-07-17 Bruno Haible <haible@clisp.cons.org>
53582 * lib/mbswidth.h: New file.
53583 * lib/mbswidth.c: New file.
53584 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
53585 (noinst_HEADERS): Add mbswidth.h.
53587 2000-07-17 Bruno Haible <haible@clisp.cons.org>
53589 * lib/config.charset: Add support for FreeBSD. Improve support for
53592 2000-07-16 Bruno Haible <haible@clisp.cons.org>
53594 * m4/mbswidth.m4: New file.
53595 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
53597 2000-07-15 Jim Meyering <meyering@lucent.com>
53599 * lib/makepath.c: Include quote.h.
53600 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
53601 corresponding argument in a `quote (...)' call.
53602 Give better diagnostics.
53604 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
53605 (noinst_HEADERS): Add quote.h.
53607 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
53608 from tar's src/misc.c.
53609 * lib/quote.h: New file. Prototypes for same.
53611 2000-07-14 Paul Eggert <eggert@twinsun.com>
53613 From a suggestion by Bruno Haible.
53614 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
53615 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
53616 to decide whether to define the BeOS workaround macro;
53617 this adjusts to the change to AC_MBSTATE_T.
53619 2000-07-14 Jim Meyering <meyering@lucent.com>
53621 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
53622 jm_AC_TYPE_UINTMAX_T.
53624 2000-07-13 Paul Eggert <eggert@twinsun.com>
53626 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
53628 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
53629 quotearg_buffer_restyled): Add support for
53630 clocale_quoting_style. Undo previous change to
53631 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
53632 and "{RIGHT QUOTATION MARK}" msgids.
53634 2000-07-10 Paul Eggert <eggert@twinsun.com>
53636 From a suggestion by Bruno Haible.
53637 * m4/mbstate_t.m4 (AC_MBSTATE_T):
53638 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
53639 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
53640 and mbstate_t, to a single-part test that simply defines mbstate_t.
53641 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
53642 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
53644 2000-07-10 Jim Meyering <meyering@lucent.com>
53646 * m4/strerror_r.m4: Mirror the correction made in autoconf.
53648 * m4/gnu-source.m4: Output to confdefs.h directly.
53649 Suggestion from Akim Demaille.
53651 2000-07-09 Paul Eggert <eggert@twinsun.com>
53653 The old behavior of quoting `like this' doesn't look good with
53654 newer, ISO-style fonts. See:
53655 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
53657 Instead, quote "like this" by default. Let the translator
53658 tailor the locale-specific quoting behavior by providing
53659 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
53661 * lib/quotearg.c (N_): New macro.
53662 (gettext_default): New function.
53663 (quotearg_buffer_restyled): Use
53664 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
53665 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
53667 2000-07-09 Jim Meyering <meyering@lucent.com>
53669 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
53670 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
53672 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
53673 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
53675 2000-07-09 Jim Meyering <meyering@lucent.com>
53677 * lib/Most files: Update copyright dates to include 2000.
53679 2000-07-08 Jim Meyering <meyering@lucent.com>
53681 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
53683 (xgethostname): Remove now-unnecessary #ifdef.
53684 Move declaration of `err' into loop where it's used.
53686 2000-07-05 Paul Eggert <eggert@twinsun.com>
53687 and Bruno Haible <haible@clisp.cons.org>
53689 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
53690 only if the test for an object-type mbstate_t fails. This
53691 prevents us from mistakenly reporting that mbstate_t is a
53692 system object type after we "#define mbstate_t int" to work
53695 2000-07-05 Paul Eggert <eggert@twinsun.com>
53696 and Bruno Haible <haible@clisp.cons.org>
53698 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
53700 2000-07-05 Bruno Haible <haible@clisp.cons.org>
53702 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
53704 Include <ctype.h> for use of isalpha.
53706 2000-07-05 Bruno Haible <haible@clisp.cons.org>
53708 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
53709 by allocating a larger buffer. Test the gethostname return value for
53710 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
53711 returns an error and ENAMETOOLONG isn't defined.
53713 2000-07-05 Bruno Haible <haible@clisp.cons.org>
53715 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
53718 2000-07-04 Jim Meyering <meyering@lucent.com>
53720 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
53721 of the deprecated AC_CHECKING.
53723 2000-07-04 Jim Meyering <meyering@lucent.com>
53725 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
53726 Reported by Bruno Haible.
53728 2000-07-04 Jim Meyering <meyering@lucent.com>
53730 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
53731 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
53734 2000-07-03 Paul Eggert <eggert@twinsun.com>
53736 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
53737 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
53739 2000-07-03 Paul Eggert <eggert@twinsun.com>
53740 and Bruno Haible <haible@clisp.cons.org>
53742 * lib/quotearg.c (mbrtowc):
53743 Assign to *pwc, and return 1 only if result is nonzero.
53744 (iswprint): Use ISPRINT when substituting our own mbrtowc.
53746 2000-07-03 Jim Meyering <meyering@lucent.com>
53748 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
53750 2000-07-03 Jim Meyering <meyering@lucent.com>
53752 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
53753 This is necessary to get a definition of e.g., UTMP_FILE on
53757 2000-07-02 Jim Meyering <meyering@lucent.com>
53759 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
53761 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
53762 AC_LIBOBJ(function_name).
53763 * m4/chown.m4: Likewise.
53764 * m4/fnmatch.m4: Likewise.
53765 * m4/ftruncate.m4: Likewise.
53766 * m4/getgroups.m4: Likewise.
53767 * m4/getline.m4: Likewise.
53768 * m4/group-member.m4: Likewise.
53769 * m4/jm-macros.m4: Likewise.
53770 * m4/lstat.m4: Likewise.
53771 * m4/malloc.m4: Likewise.
53772 * m4/memcmp.m4: Likewise.
53773 * m4/nanosleep.m4: Likewise.
53774 * m4/putenv.m4: Likewise.
53775 * m4/realloc.m4: Likewise.
53776 * m4/regex.m4: Likewise.
53777 * m4/stat.m4: Likewise.
53778 * m4/strftime.m4: Likewise.
53780 2000-07-02 Jim Meyering <meyering@lucent.com>
53782 * lib/quotearg.c (mbstate_t): Don't define here.
53784 2000-07-02 Jim Meyering <meyering@lucent.com>
53786 * lib/nanosleep.c (SIGCONT): Define if not already defined.
53788 2000-07-01 Jim Meyering <meyering@lucent.com>
53790 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
53792 2000-07-01 Jim Meyering <meyering@lucent.com>
53794 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
53797 2000-07-01 Bruno Haible <haible@clisp.cons.org>
53799 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
53800 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
53802 2000-07-01 Bruno Haible <haible@clisp.cons.org>
53804 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
53805 per change in ../m4/ls-mntd-fs.m4.
53806 (read_filesystem_list): Ignore symbolic links.
53808 2000-06-29 Jim Meyering <meyering@lucent.com>
53810 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
53811 for declaration of strcmp.
53813 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
53815 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
53816 Avoid warning by casting result to `char *' to remove `const'.
53818 2000-06-28 Jim Meyering <meyering@lucent.com>
53820 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
53821 included by quotearg.c, for which we perform this test. From
53824 2000-06-27 Bruno Haible <haible@clisp.cons.org>
53826 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
53827 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
53828 <utmpx.h> exists, put readutmp.o into LIBOBJS.
53830 2000-06-27 Bruno Haible <haible@clisp.cons.org>
53832 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
53834 2000-06-26 Paul Eggert <eggert@twinsun.com>
53836 savedir now sets errno on failure and invokes xmalloc to get memory.
53837 Fix a couple of other minor bugs while we're at it.
53839 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
53840 (NAMLEN): Remove macro.
53841 (malloc, realloc): Remove decls.
53842 (stpcpy): Likewise.
53843 ("xalloc.h"): Include.
53844 (NAME_SIZE_DEFAULT): New macro.
53845 (savedir): Use xmalloc / xrealloc to allocate memory.
53846 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
53847 Skip "" directory entries.
53848 Use strlen to calculate directory entry length, since the old method
53849 is rarely used these days and isn't worth supporting.
53850 Don't use a pointer after freeing it.
53851 Check for integer overflow when calculating allocation size.
53852 Use memcpy to copy entries, instead of stpcpy.
53853 Set errno properly when returning NULL.
53854 Check for readdir error.
53856 2000-06-26 Jim Meyering <meyering@lucent.com>
53858 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
53860 2000-06-25 Jim Meyering <meyering@lucent.com>
53862 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
53863 Linux header bug when _XOPEN_SOURCE is defined to 500.
53865 2000-06-25 Bruno Haible <haible@clisp.cons.org>
53867 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
53870 2000-06-25 Bruno Haible <haible@clisp.cons.org>
53872 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
53874 Don't include <stdlib.h>. Don't declare malloc, realloc.
53876 2000-06-24 Jim Meyering <meyering@lucent.com>
53878 * m4/strerror_r.m4: Revive this file -- to try out an experimental
53879 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
53880 for which strerror does return char*, but which lacks a conveniently
53881 accessible declaration of the function. If the compile-test says
53882 strerror_r doesn't work, then resort to a `run'-test that works on
53883 BeOS and segfaults on DEC Unix.
53885 2000-06-24 Jim Meyering <meyering@lucent.com>
53887 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
53889 2000-06-23 Paul Eggert <eggert@twinsun.com>
53891 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
53892 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
53894 2000-06-23 Paul Eggert <eggert@twinsun.com>
53896 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
53897 (mbrtowc, mbstate_t): Define substitutes if
53898 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
53899 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
53900 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
53902 2000-06-23 Jim Meyering <meyering@lucent.com>
53904 * m4/afs.m4: Add missing AC_MSG_RESULT.
53905 Reported by Bruno Haible.
53907 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
53908 Suggestion from Bruno Haible.
53910 2000-06-23 Jim Meyering <meyering@lucent.com>
53912 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
53914 2000-06-21 Jim Meyering <meyering@lucent.com>
53916 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
53918 2000-06-21 Jim Meyering <meyering@lucent.com>
53920 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
53921 (noinst_HEADERS): Add getstr.h.
53923 * lib/getline.c (getstr): Move into a separate file.
53924 * lib/getstr.c (getstr): New file, extracted from getline.c, with
53925 the following changes: new parameter, delim2; both delim[12]
53926 parameters have type `int', not `char'. The latter would lose
53927 with 8-bit delimiters.
53928 * lib/getstr.h: New file.
53930 2000-06-21 Bruno Haible <haible@clisp.cons.org>
53932 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
53933 than 1024, return a memory chunk of least possible size, instead
53934 of size PATH_MAX + 2. In the loop, increment the size proportionally.
53935 Use free/xmalloc instead of xrealloc to avoid copying for very long
53938 2000-06-21 Bruno Haible <haible@clisp.cons.org>
53940 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
53943 2000-06-21 Bruno Haible <haible@clisp.cons.org>
53945 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
53946 address, not strdup. Include <stdlib.h> and don't declare free().
53948 2000-06-19 Jim Meyering <meyering@lucent.com>
53950 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
53952 2000-06-18 Jim Meyering <meyering@lucent.com>
53954 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
53956 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
53957 `checking whether...' message to be consistent with that of the
53960 2000-06-18 Jim Meyering <meyering@lucent.com>
53962 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
53963 Besides, these days every porting target provides a mkdir function.
53965 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
53966 needed. (this snippet comes from src/system.h).
53968 2000-06-16 Bruno Haible <haible@clisp.cons.org>
53970 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
53972 2000-06-15 Paul Eggert <eggert@twinsun.com>
53974 * lib/human.c (adjust_value): New function.
53975 (human_readable_inexact): Apply rounding style even when
53976 printing approximate values.
53978 2000-06-14 Paul Eggert <eggert@twinsun.com>
53980 * lib/human.c (human_readable_inexact): Allow an input block
53981 size that is not a multiple of the output block size, and vice versa.
53982 Reported by Piergiorgio Sartor.
53984 2000-06-14 Paul Eggert <eggert@twinsun.com>
53986 * lib/getdate.y (get_date): Apply relative times after time
53987 zone indicator, not before. Reported by Todd A. Jacobs.
53989 2000-06-13 Jim Meyering <meyering@lucent.com>
53991 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
53993 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
53995 2000-06-12 Paul Eggert <eggert@twinsun.com>
53997 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
53999 2000-06-12 Jim Meyering <meyering@lucent.com>
54001 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
54002 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
54004 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
54005 the optional argument, `lib'.
54007 2000-06-08 Jim Meyering <meyering@lucent.com>
54009 * m4/largefile.m4: Remove file (now that it's part of autoconf).
54011 2000-06-04 Paul Eggert <eggert@twinsun.com>
54013 Rewrite largefile configuration so that we don't need to run
54014 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
54015 AC_CANONICAL_HOST in configure.in -- jmm]
54017 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
54018 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
54019 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
54020 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
54021 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
54023 Instead of inspecting the output of getconf, try to compile the
54024 test program without and with the macro definition.
54025 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
54026 for getconf. Instead, check for the needed flags by compiling
54029 2000-06-04 Paul Eggert <eggert@twinsun.com>
54031 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
54033 2000-06-04 Jim Meyering <meyering@lucent.com>
54035 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
54036 SunOS 4.1.4 for which gid_t is an unsigned type.
54038 2000-06-03 Jim Meyering <meyering@lucent.com>
54040 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
54041 now that autoconf requires that.
54043 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
54044 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
54045 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
54047 2000-06-03 Jim Meyering <meyering@lucent.com>
54049 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
54051 2000-06-03 Bruno Haible <haible@clisp.cons.org>
54053 * m4/glibc21.m4: New file.
54054 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
54056 2000-06-03 Bruno Haible <haible@clisp.cons.org>
54058 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
54059 newer, don't install charset.alias.
54060 * lib/config.charset: Change the Linux/glibc rules so they become empty
54061 on glibc-2.1 or newer.
54063 2000-06-02 Jim Meyering <meyering@lucent.com>
54065 * lib/mountlist.c: Back out last change. Instead, do this...
54066 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
54067 me_dummy member using the same `ignore'-testing code.
54068 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
54072 2000-05-29 Jim Meyering <meyering@lucent.com>
54074 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
54075 mounts with the `ignore' attribute. Based on a patch from
54078 2000-05-28 Jim Meyering <meyering@lucent.com>
54080 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
54081 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54082 * m4/stat.m4: Likewise.
54083 * m4/lstat.m4: Likewise.
54084 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
54086 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
54087 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
54089 2000-05-26 Jim Meyering <meyering@lucent.com>
54091 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
54093 2000-05-24 Jim Meyering <meyering@lucent.com>
54095 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
54096 autoconf requires that.
54097 * m4/lib-check.m4: Likewise.
54098 * m4/jm-macros.m4: Likewise.
54099 * m4/strftime.m4: Likewise.
54101 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
54102 AC_CHECK_DECLS, now that autoconf requires that.
54104 2000-05-22 Jim Meyering <meyering@lucent.com>
54106 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54107 * m4/lstat.m4: Likewise.
54109 2000-05-22 Jim Meyering <meyering@lucent.com>
54111 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
54113 2000-05-20 Jim Meyering <meyering@lucent.com>
54115 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
54116 (jm_PREREQ): Use it.
54118 2000-05-18 Jim Meyering <meyering@lucent.com>
54120 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
54121 back, too, since it may have been modified by allocate_entry.
54122 (hash_delete): Rewrite to use neither the assignment operator
54123 nor the comma operator in an if-expression.
54125 2000-05-15 Paul Eggert <eggert@twinsun.com>
54128 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
54129 Remove; no longer needed.
54130 "quotearg.h": Add include.
54131 (file_name): Do not bother to explicitly initialize to NULL; it's less
54132 efficient on some hosts.
54133 (close_stdout_status): Remove test as to whether stdout was already
54134 closed; it breaks for the case "echo x | sort >&-".
54135 Quote file name colons.
54136 Do not assume that _("write error") lacks format strings.
54138 2000-05-15 Jim Meyering <meyering@lucent.com>
54140 * lib/version-etc.c (version_etc_copyright): Update the copyright
54141 string used in all --version output.
54143 2000-05-14 Jim Meyering <meyering@lucent.com>
54145 * lib/closeout.c (close_stdout_set_file_name): New function.
54146 (close_stdout_status): Use new file-scoped global.
54147 Return right away if fstat says the stdout file descriptor is invalid.
54148 * lib/closeout.h (close_stdout_set_file_name): Declare.
54150 2000-05-10 Jim Meyering <meyering@lucent.com>
54152 * lib/closeout.c [default_exit_status]: New file-scoped variable.
54153 (close_stdout_set_status): New function.
54154 * lib/closeout.h (close_stdout_set_status): Declare.
54156 2000-05-09 Jim Meyering <meyering@lucent.com>
54158 * m4/gettext.m4: Rename this...
54159 * m4/libintl.m4: ...to this.
54161 2000-05-08 Jim Meyering <meyering@lucent.com>
54163 * lib/long-options.c: Don't include closeout.h.
54164 (parse_long_options): Don't call close_stdout for --version.
54166 2000-05-06 Paul Eggert <eggert@twinsun.com>
54168 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
54169 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
54170 2.1.3 bug. This avoids a clash when files like regex.c define
54173 2000-05-06 Jim Meyering <meyering@lucent.com>
54175 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
54176 (AC_REPLACE_FUNCS): Add strnlen.
54178 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
54179 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
54181 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
54182 AC_SEARCH_LIBS call for nanosleep.
54183 (LIB_NANOSLEEP): Set and AC_SUBST.
54185 2000-05-06 Jim Meyering <meyering@lucent.com>
54187 * lib/strnlen.c: Undefine __strnlen and strnlen.
54188 [!weak_alias]: Define __strnlen to strnlen.
54190 * lib/atexit.c: New file, from libiberty.
54192 2000-05-06 Jim Meyering <meyering@lucent.com>
54194 * lib/closeout.c (close_stdout_status): Also check for errors on the
54197 2000-05-05 Jim Meyering <meyering@lucent.com>
54199 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
54200 AC_SEARCH_LIBS call for clock_gettime.
54201 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
54203 * m4/search-libs.m4: Update from autoconf.
54205 su doesn't work on Solaris 2.6.
54206 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
54207 <shadow.h>. Reported by Dragos Harabor.
54209 2000-05-05 Bruno Haible <haible@clisp.cons.org>
54211 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
54212 memcpy instead of xmalloc, xrealloc, path_concat.
54213 (locale_charset): Treat empty environment variables as absent.
54214 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
54216 2000-05-04 Jim Meyering <meyering@lucent.com>
54218 * lib/getopt.c: Update from glibc.
54219 * lib/obstack.c: Likewise.
54220 * lib/obstack.h: Likewise.
54221 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
54224 * lib/regex.h: Likewise.
54225 * lib/strndup.c: Likewise.
54226 * lib/strnlen.c: New file, from glibc.
54228 2000-05-03 Jim Meyering <meyering@lucent.com>
54230 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
54232 2000-05-02 Paul Eggert <eggert@twinsun.com>
54234 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
54235 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
54236 compile-time test, rather than inspecting host and OS, to
54237 decide whether to define _LARGEFILE_SOURCE.
54239 2000-05-01 Jim Meyering <meyering@lucent.com>
54241 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
54243 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
54244 Based on a patch from Bruno Haible.
54246 2000-05-01 Jim Meyering <meyering@lucent.com>
54248 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
54250 2000-04-29 Jim Meyering <meyering@lucent.com>
54252 * lib/path-concat.c: Declare strdup only if it's not defined.
54253 * lib/canon-host.c: Likewise.
54255 2000-04-28 Jim Meyering <meyering@lucent.com>
54257 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
54258 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
54259 is included first, then limits.h is included by locale.h by libintl.h.
54260 From John David Anglin.
54262 2000-04-25 Jim Meyering <meyering@lucent.com>
54264 * lib/makepath.c (S_IRWXUGO): Define.
54265 (make_path): Always perform explicit chmod if MODE specifies any
54266 of the `special' permission bits. Prompted by a bug report against
54267 install from Mate Wierdl and Joost van Baal.
54269 2000-04-18 Jim Meyering <meyering@lucent.com>
54271 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
54272 (jm_PREREQ): Use it.
54274 2000-04-18 Jim Meyering <meyering@lucent.com>
54276 * lib/README: New file.
54278 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
54279 getpagesize. For BeOS. Based on a patch from Bruno Haible.
54281 2000-04-17 Jim Meyering <meyering@lucent.com>
54284 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
54285 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
54286 Suggestion from Akim Demaille.
54288 2000-04-17 Jim Meyering <meyering@lucent.com>
54290 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
54291 the definition of it to rpl_strftime also defined-away the system's
54294 2000-04-15 Jim Meyering <meyering@lucent.com>
54296 Use `C' to denote so-called `contiguous' files, the same way
54298 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
54299 (ftypelet): Use S_ISCTG.
54300 From Michael Deutschmann.
54302 2000-04-14 Jim Meyering <meyering@lucent.com>
54304 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
54305 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
54308 2000-04-14 Jim Meyering <meyering@lucent.com>
54310 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
54312 2000-04-13 Jim Meyering <meyering@lucent.com>
54314 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
54315 AH_VERBATIM to insert required #ifndef into config.h.in.
54316 Suggestion from Akim Demaille.
54318 2000-04-12 Jim Meyering <meyering@lucent.com>
54320 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
54321 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
54322 Christian Krackowizer.
54324 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
54325 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
54326 (AC_SYS_LARGEFILE): Require.
54327 (AM_C_PROTOTYPES): Require.
54329 2000-04-08 Jim Meyering <meyering@lucent.com>
54331 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
54332 names don't conflict. Reported by Eli Zaretskii.
54334 2000-04-07 Jim Meyering <meyering@lucent.com>
54336 * lib/putenv.c: Move inclusion of errno.h so it follows that of
54337 sys/types.h, to work around system header problems on AIX 3.2.5.
54340 2000-04-07 Bruno Haible <haible@clisp.cons.org>
54342 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
54343 bug. Deal with the different error behavior of Irix iconv.
54345 2000-04-05 Paul Eggert <eggert@twinsun.com>
54347 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
54348 IRIX if the installer said otherwise.
54350 2000-04-05 Jim Meyering <meyering@lucent.com>
54352 Portability tweaks required for ultrix4.3.
54353 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
54354 (jm_CHECK_DECLS): Add getutent to the list of functions.
54355 (_jm_DECL_HEADERS): Add utmpx.h.
54356 From John David Anglin.
54358 * m4/strftime.m4: Back out the 2000-04-02 change.
54359 Instead of that change, simply undefine putenv in the test program.
54361 2000-04-05 Jim Meyering <meyering@lucent.com>
54363 Portability tweaks required for ultrix4.3.
54364 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
54366 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
54367 * lib/canon-host.c: Declare strdup.
54368 * lib/path-concat.c: Likewise.
54369 From John David Anglin.
54371 2000-04-04 Jim Meyering <meyering@lucent.com>
54373 Be more DOS 8.3-friendly.
54374 * lib/ref-add.sin: Renamed from ref-add.sed.in.
54375 * lib/ref-del.sin: Renamed from ref-del.sed.in.
54376 * lib/Makefile.am: Reflect renaming.
54377 Reported by Eli Zaretskii.
54379 Use a temporary file name that won't clash with `charset.alias'
54380 in the DOS 8.3 name space.
54381 * lib/Makefile.am (charset_tmp): Define.
54382 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
54383 (uninstall-local): Likewise.
54384 Reported by Eli Zaretskii.
54386 2000-04-03 Jim Meyering <meyering@lucent.com>
54388 * m4/gettext.m4: Fix typo in comment.
54390 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
54391 textutils/configure.in). Suggestion from Paul Eggert.
54392 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
54394 2000-04-02 Paul Eggert <eggert@twinsun.com>
54396 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
54397 variable in the shell rather than using putenv, which isn't
54398 portable. This avoids the configure-time inter-test dependency
54399 on the potentially-renamed putenv function.
54401 2000-03-30 Paul Eggert <eggert@twinsun.com>
54403 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
54404 before checking struct stat.st_blksize, so that
54405 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
54407 2000-03-29 Paul Eggert <eggert@twinsun.com>
54409 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
54410 since strftime.c uses HAVE_STRFTIME to decide whether to use
54411 the underlying strftime.
54413 2000-03-29 Paul Eggert <eggert@twinsun.com>
54415 * lib/time/strftime.c (my_strftime): Make sure we call the system
54416 strftime, not ourselves, when invoking the underlying strftime.
54418 2000-03-24 Jim Meyering <meyering@lucent.com>
54420 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
54421 (charset_alias): Define.
54422 (install-exec-local): Factor out common code.
54423 (uninstall-local): Split lines longer than 80.
54424 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
54425 (SUFFIXES): Define.
54426 (.sed.in.sed): New rule. Don't redirect directly to $@.
54427 (CLEANFILES): Add ref-add.sed and ref-del.sed.
54429 2000-03-19 Bruno Haible <haible@clisp.cons.org>
54431 * lib/config.charset: Output a line containing "Packages using this
54433 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
54434 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
54435 ref-del.sed): New rules.
54437 2000-03-17 Jim Meyering <meyering@lucent.com>
54439 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
54440 Otherwise, include <strings.h>
54442 2000-03-17 Bruno Haible <haible@clisp.cons.org>
54444 * lib/unicodeio.c (utf8_wctomb): New function.
54445 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
54446 format instead of in UCS-4 with platform dependent endianness.
54448 2000-03-10 Jim Meyering <meyering@lucent.com>
54450 * m4/lib-check.m4: Look for getspnam in -lgen, too.
54451 From Marco Franzen.
54453 2000-03-07 Paul Eggert <eggert@twinsun.com>
54455 * lib/savedir.c (savedir): Work even if directory size is
54456 negative; this can happen with some screwy NFS configurations.
54458 2000-03-06 Jim Meyering <meyering@lucent.com>
54460 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
54461 if it's NULL (because we ran out of memory). From Bruno Haible.
54463 2000-03-05 Jim Meyering <meyering@lucent.com>
54465 * lib/localcharset.c ("path-concat.h"): Include.
54466 (get_charset_aliases): Use path_concat instead of ANSI string
54469 * lib/unicodeio.h (PARAMS): Define.
54470 Use it to guard prototype.
54472 2000-03-04 Jim Meyering <meyering@lucent.com>
54474 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
54475 for lib/localcharset.c.
54477 2000-03-04 Jim Meyering <meyering@lucent.com>
54479 * lib/Makefile.am (install-exec-local): Create $(libdir) before
54480 installing into it.
54481 (uninstall-local): Uncomment this rule so `make distcheck' works
54484 * lib/unicodeio.c (<errno.h>): Include it.
54485 (errno): Declare if not defined.
54487 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
54489 * lib/config.charset: New version, incorporating remarks from a linux
54490 i18n mailing list. From Bruno Haible.
54492 2000-03-04 Bruno Haible <haible@clisp.cons.org>
54494 * m4/codeset.m4: New file.
54495 * m4/iconv.m4: New file.
54496 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
54498 2000-03-03 Jim Meyering <meyering@lucent.com>
54500 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
54502 2000-03-02 Jim Meyering <meyering@lucent.com>
54504 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
54505 the messages come out on separate lines.
54507 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
54508 rather than jm_CHECK_DECLARATIONS.
54509 * m4/decl.m4: Remove now-unused file.
54511 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
54514 2000-03-02 Jim Meyering <meyering@lucent.com>
54516 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
54518 2000-03-01 Jim Meyering <meyering@lucent.com>
54520 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
54521 * lib/unicodeio.c: Likewise.
54523 2000-03-01 Bruno Haible <haible@clisp.cons.org>
54525 * lib/config.charset: New file.
54526 * lib/localcharset.c: New file.
54527 * lib/unicodeio.h, lib/unicodeio.c: New files.
54528 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
54529 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
54530 (noinst_HEADERS): Add unicodeio.h.
54531 (all-local, install-exec-local, charset.alias): New targets.
54533 2000-02-28 Paul Eggert <eggert@twinsun.com>
54535 * lib/quotearg.c (ALERT_CHAR): New macro.
54536 (quotearg_buffer_restyled): Use it.
54538 2000-02-27 Jim Meyering <meyering@lucent.com>
54540 * m4/check-decl.m4: Add getenv to the list.
54542 2000-02-27 Jim Meyering <meyering@lucent.com>
54544 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
54545 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
54547 * lib/backupfile.c: Guard inclusion of stdlib.h with
54548 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
54549 Declare malloc if needed.
54551 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
54552 `#ifndef HAVE_DECL..'
54553 now that autoconf always defines the HAVE_DECL_ symbols.
54554 * lib/human.c: Likewise.
54555 * lib/same.c: Likewise.
54556 * lib/strtoumax.c: Likewise.
54558 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
54559 declaration check was not run.
54560 * lib/hash.c: Likewise.
54561 * lib/human.c: Likewise.
54562 * lib/same.c: Likewise.
54563 * lib/strtoumax.c: Likewise.
54565 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
54566 `.', then first look up the entire `.'-containing string as a login
54569 2000-02-23 Jim Meyering <meyering@lucent.com>
54571 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
54572 in place of my hack.
54574 2000-02-18 Paul Eggert <eggert@twinsun.com>
54576 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
54577 (textint): New typedef.
54578 (parser_control): Member year changed from int to textint.
54580 (YYSTYPE): Removed; replaced by %union with int and textint members.
54581 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
54582 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
54583 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
54584 (tSNUMBER, tUNUMBER): Now of type <textintval>.
54585 (date, number, to_year): Use width of number in digits, not its value,
54586 to determine whether it's a 2-digit year, or a 2-digit time.
54587 (yylex): Store number of digits of numeric tokens.
54588 Reported by John Kendall.
54590 (parser_control): Changed from struct parser_control to typedef (for
54591 consistency). All uses changed.
54593 (tID): Removed; not used.
54594 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
54596 2000-02-14 Paul Eggert <eggert@twinsun.com>
54598 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
54599 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
54601 2000-02-12 Jim Meyering <meyering@lucent.com>
54603 * lib/userspec.c (ISDIGIT): Define it.
54604 (isdigit): Remove definition.
54605 (is_number): Use ISDIGIT, not isdigit.
54606 <libintl.h>: Include.
54607 (_ and N_): Define.
54608 (parse_user_spec): Mark translatable strings.
54610 2000-02-10 Jim Meyering <meyering@lucent.com>
54612 With these changes, nanosleep.[ch] are finally enough like the other
54613 lib/* replacement files to compile on a few more losing systems.
54615 * lib/nanosleep.h: Don't include config.h.
54616 Remove prototype from declaration of nanosleep.
54617 (PARAMS): Remove now-unneeded definition.
54618 * lib/nanosleep.c: #undef nanosleep.
54619 (rpl_nanosleep): Rename from nanosleep.
54621 2000-02-10 Jim Meyering <meyering@lucent.com>
54623 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
54624 gnu_nanosleep to rpl_nanosleep.
54626 2000-02-09 Jim Meyering <meyering@lucent.com>
54628 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
54629 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
54631 2000-02-08 Akim Demaille <akim@epita.fr>
54633 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
54634 `[' and `]' and remove uses of `changequote'.
54635 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
54636 (AC_SYS_LARGEFILE): Likewise.
54637 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
54638 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
54640 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
54641 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
54642 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
54643 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
54645 2000-02-05 Jim Meyering <meyering@lucent.com>
54647 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
54648 Remove explicit use of AC_HEADER_TIME. It is required by
54649 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
54650 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
54651 in autoconf whereby the expansion of the latter ended up preceding
54652 the expansion of its prerequisite, AC_HEADER_TIME.
54653 Reported by Volker Borchert.
54655 2000-02-03 Jim Meyering <meyering@lucent.com>
54657 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
54659 2000-02-03 Jim Meyering <meyering@lucent.com>
54661 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
54662 rather than with `#if HAVE_UTMPNAME'.
54664 2000-02-02 Jim Meyering <meyering@lucent.com>
54666 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
54667 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
54668 Reported by Eli Zaretskii.
54670 2000-02-01 Jim Meyering <meyering@lucent.com>
54672 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
54674 2000-01-31 Jim Meyering <meyering@lucent.com>
54676 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
54677 functions. Add the time.h and sys/time.h headers along with the
54678 AC_REQUIRE'ment of AC_HEADER_TIME.
54680 2000-01-31 Jim Meyering <meyering@lucent.com>
54682 * lib/nanosleep.h (nanosleep): Guard declaration with
54683 `#if ! HAVE_DECL_NANOSLEEP'.
54684 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
54685 the declaration in that vendor's sys/timers.h.
54686 Reported by Christian Krackowizer.
54688 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
54689 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
54690 (ISPRINT): Likewise.
54691 Reported by Tom Tromey.
54693 2000-01-30 Jim Meyering <meyering@lucent.com>
54695 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
54697 * m4/prereq.m4 (utmp_includes): Define.
54698 Check for ut_user and ut_name members in both struct utmpx
54701 2000-01-30 Jim Meyering <meyering@lucent.com>
54703 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
54704 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
54705 header files where only utmpx.ut_user is declared.
54707 * lib/readutmp.h (UT_USER): Define.
54709 2000-01-29 Jim Meyering <meyering@lucent.com>
54711 * m4/lib-check.m4: New file containing library-related checks from
54712 fileutils and sh-utils (textutils had none).
54714 2000-01-28 Jim Meyering <meyering@lucent.com>
54716 * m4/perl.m4: Change format of warning message to look more like that
54717 from the missing script. Suggestion from François Pinard.
54719 2000-01-25 Jim Meyering <meyering@lucent.com>
54721 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
54722 well as time.h in the compile check.
54723 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
54724 Fix typo in cross-compiling case: s/yes/no/.
54726 2000-01-23 Jim Meyering <meyering@lucent.com>
54728 * m4/jm-macros.m4: Move df-related tests here from
54729 fileutils/configure.in
54731 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
54732 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
54734 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
54735 s/space/ac_fsusage_space/.
54736 (jm_FILE_SYSTEM_USAGE): Take two parameters.
54738 * m4/ftruncate.m4: New file (derived from part of
54739 fileutils/configure.in).
54740 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
54741 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
54743 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
54744 AC_SUBST these here, rather than just in sh-util/configure.in, so
54745 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
54747 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
54748 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
54749 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
54750 (AC_SUBST(POW_LIBM)): Likewise.
54751 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
54753 2000-01-23 Jim Meyering <meyering@lucent.com>
54755 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
54758 2000-01-22 Jim Meyering <meyering@lucent.com>
54760 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
54762 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
54764 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
54766 (AC_CHECK_HEADERS): Likewise for sh-utils.
54767 (AC_CHECK_HEADERS): Likewise for textutils.
54768 Merge the three lists of headers.
54770 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
54771 from fileutils' configure.in.
54773 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
54774 code. Moved tests into their own function (_jm_DECL_HEADERS) in
54777 * m4/check-decl.m4: Use #if rather than #ifdef.
54778 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
54779 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
54780 (_jm_DECL_HEADERS): Define new function.
54781 (jm_CHECK_DECLARATIONS): Require it.
54783 2000-01-22 Jim Meyering <meyering@lucent.com>
54785 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
54786 [! HAVE_DECL_STRTOULL]: Declare strtoull.
54787 Required for some AIX systems. Reported by Christian Krackowizer.
54788 [TESTING] (main): New function.
54790 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
54791 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
54794 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
54797 * lib/strverscmp.c (ISDIGIT): Define.
54798 (strverscmp): Use ISDIGIT, not isdigit.
54800 2000-01-19 Jim Meyering <meyering@lucent.com>
54802 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
54803 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
54804 defines `struct timespec' in <sys/time.h>
54806 * m4/c-bs-a.m4: Remove uses of changequote altogether.
54807 Thanks to Akim for explaining.
54809 2000-01-17 Paul Eggert <eggert@twinsun.com>
54811 * lib/nanosleep.c (nanosleep):
54812 Don't use SA_INTERRUPT to decide whether to call sigaction, as
54813 POSIX.1 doesn't require SA_INTERRUPT and some systems
54814 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
54815 it's been part of POSIX.1 since day 1 (in 1988).
54817 2000-01-17 Jim Meyering <meyering@lucent.com>
54819 * lib/interlock: Remove unused file. Reported by François Pinard.
54821 2000-01-16 Paul Eggert <eggert@twinsun.com>
54823 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
54824 alert, backslash, formfeed, and vertical tab unnecessarily in
54825 shell quoting style.
54827 2000-01-16 Jim Meyering <meyering@lucent.com>
54829 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
54830 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
54831 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
54832 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
54834 2000-01-16 Jim Meyering <meyering@lucent.com>
54836 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
54837 because the latter didn't work.
54839 2000-01-15 Jim Meyering <meyering@lucent.com>
54841 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
54842 (AC_REPLACE_FUNCS): Add memcpy and memset.
54843 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
54845 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
54847 2000-01-12 Jim Meyering <meyering@lucent.com>
54849 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
54850 (jm_PREREQ): Use it.
54851 (jm_PREREQ_READUTMP): New macro.
54852 (jm_PREREQ): Use it.
54854 2000-01-11 Paul Eggert <eggert@twinsun.com>
54856 Quote multibyte characters correctly.
54857 * m4/c-bs-a.m4: New file.
54858 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
54859 (jm_PREREQ): Use it.
54861 2000-01-11 Paul Eggert <eggert@twinsun.com>
54863 * m4/uintmax_t.m4: Port to autoconf 2.13.
54865 2000-01-08 Jim Meyering <meyering@ascend.com>
54867 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
54868 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
54870 2000-01-04 Jim Meyering <meyering@ascend.com>
54872 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
54873 jm_STRUCT_DIRENT_D_TYPE.
54874 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
54875 jm_STRUCT_DIRENT_D_INO.
54876 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
54878 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
54880 * m4/utime.m4: Likewise.
54882 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
54883 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
54885 2000-01-03 Paul Eggert <eggert@twinsun.com>
54887 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
54888 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
54890 2000-01-02 Jim Meyering <meyering@ascend.com>
54892 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
54893 remember if this is necessary.
54895 1999-12-26 Jim Meyering <meyering@ascend.com>
54897 * m4/jm-macros.m4: Use it here.
54898 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
54900 1999-12-23 Jim Meyering <meyering@ascend.com>
54902 * m4/jm-macros.m4: Check for clock_gettime (moved from
54903 fileutils/configure.in)
54904 Check for gettimeofday.
54906 1999-12-20 Jim Meyering <meyering@ascend.com>
54908 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
54909 autoconf-2.14a-1999-12-20.
54911 1999-12-19 Jim Meyering <meyering@ascend.com>
54913 * m4/lstat-slash.m4: New file.
54914 * m4/jm-macros.m4: Use the new macro:
54915 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54917 1999-12-07 Jim Meyering <meyering@ascend.com>
54919 * m4/perl.m4: Require that File::Compare be available, too.
54920 Too many systems seem to lack it.
54922 * m4/strftime.m4: Add checks for most of the cpp macros tested in
54923 GNU's strftime.c. Prompted by a patch from Paul Eggert.
54925 1999-11-18 Paul Eggert <eggert@twinsun.com>
54927 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
54928 problem with the QNX 4.25 shell, which doesn't propagate exit
54929 status of failed commands inside shell assignments.
54931 1999-11-17 Jim Meyering <meyering@ascend.com>
54933 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
54935 1999-11-07 Jim Meyering <meyering@ascend.com>
54937 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
54939 1999-11-06 Jim Meyering <meyering@ascend.com>
54941 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
54942 * m4/jm-macros.m4 (jm_MACROS): Use it here.
54944 1999-11-05 Jim Meyering <meyering@ascend.com>
54946 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
54947 configure.in of textutils, fileutils, and sh-utils into this one
54948 (shared between those packages) file.
54949 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
54950 AC_STRUCT_ST_BLKSIZE.
54952 1999-11-03 Jim Meyering <meyering@ascend.com>
54954 * m4/ssize_t.m4: Remove file. No longer needed since the new version
54955 of AC_CHECK_TYPE checks includes unistd.h.
54956 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
54957 Suggestion from Akim Demaille.
54959 1999-10-30 Jim Meyering <meyering@ascend.com>
54961 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
54963 * m4/ls-mntd-fs.m4: Likewise.
54964 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
54965 * m4/jm-winsz1.m4: Likewise.
54967 * m4/const.m4: Remove file, since the fix made it into the experimental
54968 version of autoconf.
54969 * m4/mktime.m4: Likewise.
54971 * m4/check-type.m4: Remove file, now that the latest version of
54972 AC_CHECK_TYPE takes a third arg to specify additional #includes.
54974 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
54975 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
54978 1999-10-04 Jim Meyering <meyering@ascend.com>
54980 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
54982 1999-09-22 Paul Eggert <eggert@twinsun.com>
54984 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
54985 2.95.1 bug with HP-UX 10.20.
54987 1999-09-17 Jim Meyering <meyering@ascend.com>
54989 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
54990 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
54991 due to missing strdup (against sh-utils-2.0).
54993 1999-08-29 Jim Meyering <meyering@ascend.com>
54995 * m4/jm-macros.m4: Require jm_BISON.
54996 * m4/bison.m4: New file.
54998 1999-08-17 Paul Eggert <eggert@twinsun.com>
55000 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
55001 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
55003 1999-08-05 Jim Meyering <meyering@ascend.com>
55005 * m4/getline.m4: Rename test file from conftestdata to conftest.data
55006 to avoid conflicts with `conftest' on 8+3 filesystems.
55007 Suggestion from Eli Zaretskii.
55009 1999-08-04 Jim Meyering <meyering@ascend.com>
55011 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
55012 fileutils and sh-utils (textutils's getline test was inadequate).
55013 (AM_FUNC_GETLINE): Run this test.
55014 (AC_CHECK_FUNCS): Check for getdelim.
55015 Reported by Bob Proulx.
55017 1999-08-02 Jim Meyering <meyering@ascend.com>
55019 * m4/jm-macros.m4: Add a comment.
55021 1999-08-01 Paul Eggert <eggert@twinsun.com>
55023 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
55024 <inttypes.h> defines strtoumax as a macro (and not as a
55027 1999-08-01 Paul Eggert <eggert@twinsun.com>
55029 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
55030 that we can shift, multiply and divide unsigned long long
55031 values; Ultrix cc can't do it.
55033 1999-08-01 Paul Eggert <eggert@twinsun.com>
55035 * m4/mktime.m4: New file, which is a preview of what should appear
55036 in the next public autoconf release.
55038 1999-08-01 Paul Eggert <eggert@twinsun.com>
55040 * m4/lfs.m4: Remove this file.
55041 * m4/largefile.m4: New file. It contains the old contents of
55042 lfs.m4, except that all names with prefix AC_LFS have been
55043 changed to use the prefix AC_SYS_LARGEFILE instead, to be
55044 compatible with future autoconf versions. Also, some minor m4
55045 quoting problems have been fixed.
55047 1999-08-01 Paul Eggert <eggert@twinsun.com>
55049 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
55050 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
55051 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
55052 and simplify the shell code.
55054 1999-08-01 Jim Meyering <meyering@ascend.com>
55056 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
55059 1999-07-20 Jim Meyering <meyering@ascend.com>
55061 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
55063 1999-07-15 Jim Meyering <meyering@ascend.com>
55065 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
55067 1999-05-22 Jim Meyering <meyering@ascend.com>
55069 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
55071 1999-05-20 Jim Meyering <meyering@ascend.com>
55073 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
55074 Add a colon after each `then' in case $4 is empty.
55076 1999-05-16 Jim Meyering <meyering@ascend.com>
55078 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
55080 1999-05-10 Jim Meyering <meyering@ascend.com>
55082 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
55084 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
55087 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
55089 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
55091 1999-05-04 Paul Eggert <eggert@twinsun.com>
55093 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
55094 not CPPFLAGS, so that linking works correctly in IRIX.
55096 1999-04-30 Paul Eggert <eggert@twinsun.com>
55098 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
55100 1999-04-20 Paul Eggert <eggert@twinsun.com>
55102 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
55103 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
55104 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
55105 jm_AC_TYPE_UNSIGNED_LONG_LONG.
55106 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
55108 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
55110 1999-04-20 Jim Meyering <meyering@ascend.com>
55112 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
55113 AC_REPLACE xstroull if necessary. From Paul Eggert.
55114 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
55116 1999-04-18 Jim Meyering <meyering@ascend.com>
55118 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
55119 * m4/jm-macros.m4: Use it.
55121 1999-04-06 Jim Meyering <meyering@ascend.com>
55123 * m4/strftime.m4: Remove test for %f.
55125 1999-03-29 Jim Meyering <meyering@ascend.com>
55127 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
55128 superset of the AC_TYPE_* checks in the textutils, fileutils,
55129 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
55132 1999-03-28 Jim Meyering <meyering@ascend.com>
55134 * m4/jm-macros.m4: Define GNU_PACKAGE here.
55135 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
55136 replaced e.g., in the *.sh files of the sh-utils.
55138 1999-03-20 Jim Meyering <meyering@ascend.com>
55140 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
55141 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
55142 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
55144 1999-03-19 Jim Meyering <meyering@ascend.com>
55146 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
55148 1999-03-12 Jim Meyering <meyering@ascend.com>
55150 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
55152 1999-03-07 Jim Meyering <meyering@ascend.com>
55154 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
55157 1999-02-17 Jim Meyering <meyering@ascend.com>
55159 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
55160 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
55162 1999-02-07 Jim Meyering <meyering@ascend.com>
55164 * m4/group-member.m4: New file -- extracted from sh-utils'
55167 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
55168 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
55170 1999-02-06 Jim Meyering <meyering@ascend.com>
55172 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
55173 * m4/fnmatch.m4: Likewise.
55174 * m4/getgroups.m4: Likewise.
55175 * m4/lstat.m4: Likewise.
55176 * m4/malloc.m4: Likewise.
55177 * m4/putenv.m4: Likewise.
55178 * m4/realloc.m4: Likewise.
55179 * m4/regex.m4: Likewise.
55180 * m4/stat.m4: Likewise.
55181 * m4/strftime.m4: Likewise.
55182 Suggestion from Alain Magloire.
55184 * m4/chown.m4: Use `.$ac_objext', not `.o'.
55185 * m4/fnmatch.m4: Likewise.
55186 * m4/getgroups.m4: Likewise.
55187 * m4/getline.m4: Likewise.
55188 * m4/lstat.m4: Likewise.
55189 * m4/malloc.m4: Likewise.
55190 * m4/memcmp.m4: Likewise.
55191 * m4/putenv.m4: Likewise.
55192 * m4/realloc.m4: Likewise.
55193 * m4/regex.m4: Likewise.
55194 * m4/stat.m4: Likewise.
55195 * m4/strftime.m4: Likewise.
55196 Suggestion from Alain Magloire.
55198 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
55201 * m4/regex.m4: Add a run-time Test for proper operation of
55202 re_compile_pattern.
55204 1999-01-31 Jim Meyering <meyering@ascend.com>
55206 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
55208 1999-01-30 Jim Meyering <meyering@ascend.com>
55210 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
55212 * m4/jm-mktime.m4: Make this a wrapper around the official
55213 AM_FUNC_MKTIME rather than my private copy, now that the official one
55215 * m4/mktime.m4: Remove file.
55217 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
55218 * m4/uptime.m4: Likewise.
55219 * m4/uintmax_t.m4: Likewise.
55221 1999-01-28 Jim Meyering <meyering@ascend.com>
55223 * m4/jm-macros.m4: Use jm_AFS.
55224 * m4/afs.m4: New file (from fileutils' configure.in).
55226 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
55227 * m4/chown.m4: Likewise.
55228 * m4/d-ino.m4: Likewise.
55229 * m4/d-type.m4: Likewise.
55230 * m4/fnmatch.m4: Likewise.
55231 * m4/getgroups.m4: Likewise.
55232 * m4/gettext.m4: Likewise.
55233 * m4/jm-mktime.m4: Likewise.
55234 * m4/jm-winsz2.m4: Likewise.
55235 * m4/lcmessage.m4: Likewise.
55236 * m4/ls-mntd-fs.m4: Likewise.
55237 * m4/malloc.m4: Likewise.
55238 * m4/memcmp.m4: Likewise.
55239 * m4/putenv.m4: Likewise.
55240 * m4/realloc.m4: Likewise.
55241 * m4/st_mtim.m4: Likewise.
55242 * m4/strftime.m4: Likewise.
55244 1999-01-16 Jim Meyering <meyering@ascend.com>
55246 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
55247 (ARGMATCH_DIE_DECL): Define.
55249 1999-01-12 Jim Meyering <meyering@ascend.com>
55251 * m4/Makefile.am.in: Rewrite to avoid using fmt.
55252 Reported by Lars Hecking.
55254 1999-01-10 Jim Meyering <meyering@ascend.com>
55256 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
55258 * m4/inttypes_h.m4: Likewise.
55259 * m4/lstat.m4: Likewise.
55260 * m4/malloc.m4: Likewise.
55261 * m4/readdir.m4: Likewise.
55262 * m4/realloc.m4: Likewise.
55263 * m4/st_dm_mode.m4: Likewise.
55264 * m4/stat.m4: Likewise.
55265 * m4/utimbuf.m4: Likewise.
55266 * m4/utimes.m4: Likewise.
55268 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
55269 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
55270 comments in config.h.in are meaningful.
55272 * m4/jm-macros.m4: Require autoconf-2.13 here.
55274 * m4/regex.m4: By default, don't use the included regex.c on systems
55275 with glibc 2. Suggestion from Uli Drepper.
55277 1999-01-02 Jim Meyering <meyering@ascend.com>
55279 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
55281 1998-12-18 Jim Meyering <meyering@ascend.com>
55283 * m4/Makefile.am.in (Makefile.am): Simplify rule.
55284 Based on a suggestion from Lars Hecking.
55286 1998-11-16 Paul Eggert <eggert@twinsun.com>
55288 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
55290 1998-11-16 Jim Meyering <meyering@ascend.com>
55292 * m4/lfs.m4: Double-quote the `uname...` expression.
55294 1998-11-14 Jim Meyering <meyering@ascend.com>
55296 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
55297 * m4/stat.m4: Likewise.
55299 1998-11-03 Jim Meyering <meyering@ascend.com>
55301 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
55302 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
55304 1998-10-18 Jim Meyering <meyering@ascend.com>
55306 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
55308 1998-10-17 Jim Meyering <meyering@ascend.com>
55310 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
55311 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
55312 calls for those previously hard-coded headers. Instead, take a new
55314 (jm_CHECK_DECLARATIONS): Reflect interface change.
55315 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
55316 (jm_CHECK_DECL_LOCALTIME_R): New macro.
55318 * m4/mktime.m4: Test for spring-forward gap before long-running test.
55320 1998-10-14 Jim Meyering <meyering@ascend.com>
55322 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
55323 instead of "TZ=America/Vancouver". From Paul Eggert.
55325 1998-10-11 Jim Meyering <meyering@ascend.com>
55327 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
55328 This adds a test for a recently added compatibility fix for mktime.c.
55329 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
55331 1998-09-27 Jim Meyering <meyering@ascend.com>
55333 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
55335 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
55336 ../configure.in, including a change from Gordon Matzigkeit to allow
55337 cross-compiling for the Hurd.
55339 * m4/glibc.m4: New file/macro to test for the GNU C Library
55340 versions 1 and 2. From Gordon Matzigkeit.
55343 1998-09-21 Jim Meyering <meyering@ascend.com>
55345 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
55347 1998-08-18 Paul Eggert <eggert@twinsun.com>
55349 Port nanosecond-resolution times to UnixWare 2.1.2 and
55350 pedantic Solaris 2.6.
55352 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
55354 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
55355 Generate name of ns member, instead of just 1 or undef.
55356 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
55358 1998-08-15 Jim Meyering <meyering@ascend.com>
55360 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
55361 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
55362 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
55363 instead of jm_TYPE_SSIZE_T.
55365 1998-08-12 Jim Meyering <meyering@ascend.com>
55367 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
55369 1998-08-02 Jim Meyering <meyering@ascend.com>
55371 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
55372 in acconfig.h manually.
55374 1998-07-31 Paul Eggert <eggert@twinsun.com>
55376 * m4/st_mtim.m4: New file.
55378 1998-07-28 Jim Meyering <meyering@ascend.com>
55380 * m4/utimes.m4: Undef stat.
55382 1998-07-25 Jim Meyering <meyering@ascend.com>
55384 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
55385 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
55387 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
55389 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
55390 uid and gid actually remain unchanged.
55392 1998-07-07 Jim Meyering <meyering@ascend.com>
55394 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
55396 1998-07-04 Jim Meyering <meyering@ascend.com>
55398 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
55399 to prove that this macro can be used in packages without regex.c.
55401 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
55403 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
55406 1998-07-03 Jim Meyering <meyering@ascend.com>
55408 * m4/gettext.m4: Add -lintl if it's found to be necessary.
55410 * m4/gettext.m4: New file -- from gettext-0.10.35.
55411 * m4/lcmessage.m4: Likewise.
55412 * m4/progtest.m4: Likewise.
55414 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
55415 * m4/jm-macros.m4: Require the new macro.
55417 1998-06-29 Jim Meyering <meyering@ascend.com>
55419 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
55420 for the definition of NGROUPS (used in a system header included
55423 1998-06-28 Jim Meyering <meyering@ascend.com>
55425 * m4/ls-mntd-fs.m4: New file.
55426 * m4/fstypename.m4: New file.
55428 * m4/jm-macros.m4: Require the new macro.
55429 * m4/jm-glibc-io.m4: New file.
55431 1998-05-19 Jim Meyering <meyering@ascend.com>
55433 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
55434 * m4/lchown.m4: New file.
55436 * m4/Makefile.am.in: New file.
55437 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
55439 1998-05-14 Jim Meyering <meyering@ascend.com>
55441 * m4/Makefile.am (EXTRA_DIST): Add them.
55442 * m4/jm-macros.m4: New file.
55443 * m4/utimbuf.m4: New file.
55445 1998-05-12 Jim Meyering <meyering@ascend.com>
55447 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
55449 1998-05-11 Jim Meyering <meyering@ascend.com>
55451 * m4/isc-posix.m4: New file.
55453 1998-05-10 Jim Meyering <meyering@ascend.com>
55455 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
55457 1998-05-09 Jim Meyering <meyering@ascend.com>
55459 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
55460 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
55463 * m4/ssize_t.m4: New file.
55464 * m4/mktime.m4: Remove file -- the new automake has this now.
55466 1998-04-26 Jim Meyering <meyering@ascend.com>
55468 * m4/assert.m4: New file.
55469 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
55471 1998-04-05 Jim Meyering <meyering@ascend.com>
55473 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
55474 (jm_PREREQ): Use it here.
55476 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
55478 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
55481 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
55483 * m4/prereq.m4: New file.
55484 * m4/error.m4: New file.
55485 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
55487 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
55489 * m4/getline.m4: Don't set am_cv_func_working_getline before the
55490 cache-check for the same variable -- that defeated the purpose of
55491 the test; the test program was never run. This was a problem only
55492 on systems with losing getline functions -- HP-UX 10.20 is one.
55493 Reported by Bjorn Helgaas.
55495 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
55497 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
55499 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
55501 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
55503 * m4/const.m4: New file. Use an initializer in this declaration
55504 typedef int charset[2]; const charset x;
55505 Reported by Bob Glickstein.
55507 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
55509 * m4/chown.m4: Fix reversed types on -1 args to chown.
55512 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
55514 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
55515 Add lseek and memchr.
55517 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
55518 T.E.Dickey <dickey@clark.net> said that some older preprocessors
55519 have a 20-character limit on names.
55521 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
55523 * m4/inttypes_h.m4: New file.
55524 * m4/uintmax_t.m4: New file.
55525 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
55534 Copyright (C) 1997-2009 Free Software Foundation, Inc.
55536 Copying and distribution of this file, with or without
55537 modification, are permitted provided the copyright notice
55538 and this notice are preserved.