areadlinkat-with-size: new module
[gnulib.git] / ChangeLog
index 43b4bfe..dedcfc8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,232 @@
+2009-10-07  Eric Blake  <ebb9@byu.net>
+
+       areadlinkat-with-size: new module
+       * modules/areadlinkat-with-size: New module.
+       * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
+       * lib/areadlink.h (areadlinkat): Declare it.
+       * MODULES.html.sh (File system functions): Mention it.
+       * modules/areadlinkat-with-size-tests: New test.
+       * tests/test-areadlinkat-with-size.c: New file.
+
+       xreadlinkat: new module
+       * modules/xreadlinkat: New module.
+       * lib/xreadlinkat.c (xreadlinkat): New file.
+       * lib/xreadlink.h (xreadlinkat): Declare it.
+       * MODULES.html.sh (File system functions): Mention it.
+
+       areadlinkat: new module
+       * lib/at-func.c (FUNC_FAIL): New define.
+       (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
+       * modules/areadlinkat: New module.
+       * lib/linkat.c (areadlinkat): Move...
+       * lib/areadlinkat.c (areadlinkat): ...to new file.
+       * lib/areadlink.h (areadlinkat): Declare it.
+       * modules/linkat (Depends-on): Add areadlinkat.
+       * MODULES.html.sh (File system functions): Mention it.
+       * modules/areadlinkat-tests: New test.
+       * tests/test-areadlinkat.c: New file.
+
+       areadlink, areadlink-with-size: add tests
+       * modules/areadlink-tests: New test.
+       * modules/areadlink-with-size-tests: Likewise.
+       * tests/test-areadlink.h: New file.
+       * tests/test-areadlink.c: Likewise.
+       * tests/test-areadlink-with-size.c: Likewise.
+
+       maint: minor cleanups
+       * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
+       _UNUSED_PARAMETER_ instead.
+       * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
+       * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
+       * modules/linkat-tests (Files): Distribute test-link.h.
+
+       openat, utimens: whitespace cleanup
+       * lib/openat.c: Prefer space throughout, rather than mix of 8
+       spaces vs. tabs.
+       * lib/at-func.c: Likewise.
+       * lib/utimens.c: Likewise.
+
+       openat: avoid using wrong fd
+       * lib/openat.c (openat_permissive): Reject user's fd if saving the
+       working directory chooses same fd.
+       * lib/at-func.c (AT_FUNC_NAME): Likewise.
+
+       mkdir, mkdirat: fix cygwin 1.5.x bug
+       * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
+       * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
+       * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
+       bug.
+       (gl_PREREQ_MKDIR): Delete unused macro.
+       * modules/mkdir (Files): Track file rename.
+       (configure.ac): Update macro name.
+       * modules/openat (Depends-on): Add mkdir.
+       * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
+
+       mkdir, mkdirat: add tests
+       * modules/mkdir-tests: New test.
+       * tests/test-mkdir.h: New file.
+       * tests/test-mkdir.c: Likewise.
+       * tests/test-mkdirat.c: Likewise.
+       * modules/openat-tests (Files): Add new files.
+       (Makefile.am): Run new test.
+
+2009-10-06  Eric Blake  <ebb9@byu.net>
+
+       doc: tweak *at function documentation
+       * doc/posix-functions/faccessat.texi (faccessat): Mention
+       known issue with replacement.
+       * doc/posix-functions/fchdir.texi (fchdir): Likewise.
+       * doc/posix-functions/linkat.texi (linkat): Likewise.
+       * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
+       * doc/posix-functions/mknodat.texi (mknodat): Likewise.
+       * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
+       * doc/posix-functions/renameat.texi (renameat): Likewise.
+       * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
+
+       openat: fix GNU/Hurd bug in unlinkat
+       * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
+       broken.
+       * doc/posix-functions/unlink.texi (unlink): Document this.
+       * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
+
+       fdopendir: fix GNU/Hurd bug
+       * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
+       allowing non-directory fds.
+       * lib/fdopendir.c (rpl_fdopendir): Work around it.
+       * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
+       * modules/dirent (Makefile.am): Substitute it.
+       * lib/dirent.in.h (fdopendir): Declare replacement.
+       * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
+       * tests/test-fdopendir.c (main): Test something other than
+       /dev/null, since on Hurd that behaves like a directory.
+
+       test-symlink: port to GNU/Hurd
+       * tests/test-symlink.h (test_symlink): Relax expected errno.
+
+       doc: tweak more cygwin information
+       * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
+       now compatible with glibc.
+       * doc/posix-functions/getopt.texi (getopt): Likewise.
+
+       getopt-gnu: add another test
+       * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
+       guarantee behavior relied on by m4.
+       * tests/test-getopt.c (main): Use it.
+       * modules/getopt-posix-tests (Depends-on): Add setenv.
+       See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
+
+       getopt: fix compilation on darwin
+       * lib/getopt.in.h (includes): Leave breadcrumbs during system
+       include.
+       * lib/unistd.in.h (getopt): Use them to avoid recursive include.
+       Reported by Ludovic Courtès.
+
+2009-10-06  Bruno Haible  <bruno@clisp.org>
+
+       * modules/size_max (Description): Discourage its use.
+       Reported by Simon Josefsson.
+
+2009-10-06  Jim Meyering  <meyering@redhat.com>
+
+       linkat: avoid compilation failure
+       * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
+
+2009-10-05  Eric Blake  <ebb9@byu.net>
+
+       linkat: support Linux 2.6.17
+       * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
+       linkat on Linux, but allow cache variable override.
+       * lib/linkat.c (rpl_linkat): Define override.
+       * modules/linkat (Depends-on): Add symlinkat.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
+       * modules/unistd (Makefile.am): Substitute it.
+       * lib/unistd.in.h (linkat): Declare replacement.
+       Reported by Pádraig Brady.
+
+       quotearg: port test to systems with C.UTF-8 locale
+       * tests/test-quotearg.c (struct result_strings): Add another
+       member, differentiating between C.ASCII and C.UTF-8 handling.
+       (compare_strings): Add parameter.
+       (main): Adjust all callers.
+
+       getopt: avoid clash with FreeBSD _getopt_internal
+       * lib/getopt.in.h (_getopt_internal): Override the name.
+       * lib/getopt_int.h (includes): Pick up any overrides.
+       Reported by Reuben Thomas.
+
+       hash: allow C89 compilation
+       * lib/hash.c (check_tuning): Move declaration before statement.
+       Reported by Reuben Thomas.
+
+2009-10-05  Karl Berry  <karl@gnu.org>
+
+       * doc/gnulib.texi: @include execvpe.texi, missing for several days.
+
+2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       * lib/uname.c (uname): Use a table-driver algorithm to compute
+       Windows NT versions.
+
+2009-10-04  Bruno Haible  <bruno@clisp.org>
+
+       * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
+       program_invocation_short_name.
+       * modules/progname (configure.ac): Test for presence of
+       program_invocation_short_name.
+       Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
+
+2009-10-04  Bruno Haible  <bruno@clisp.org>
+
+       * lib/progname.c (set_program_name): Fix comment.
+       Reported by Jim Meyering.
+
+2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       * lib/uname.c: Include <string.h>.
+       (uname): Do only one call to GetVersionEx in the common case.
+
+2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
+       PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
+       (uname): Add support for Windows CE and various non-x86 CPU types.
+
+2009-10-03  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
+       invocation to tests/configure.ac.
+       Reported by Ian Beckwith <ianb@erislabs.net>.
+
 2009-10-02  Eric Blake  <ebb9@byu.net>
 
+       fchdir: avoid compiler warning
+       * lib/fchdir.c (canonicalize_file_name)
+       [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
+
+       test-open: support mingw errno values
+       * tests/test-open.h (test_open): Relax test.
+       * tests/test-fopen.h (test_fopen): Likewise.
+       * tests/test-openat-safer.c (main): Likewise.
+
+       open: fix opening directory on mingw
+       * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
+
+       test-open: on GNU/Hurd, /dev/null is a directory
+       * tests/test-fopen.h (main): Rename...
+       (test_fopen): ...to this.  Use a guaranteed non-directory when
+       confirming open behavior on trailing slash.
+       * tests/test-openat-safer.c (main): Likewise.
+       * tests/test-open.h (main): Likewise....
+       (test_open): ...to this.
+       * tests/test-fopen.c (main): Adjust caller.
+       * tests/test-fopen-safer.c (main): Likewise.
+       * tests/test-open.c (main): Likewise.
+       * tests/test-fcntl-safer.c (main): Likewise.
+       Reported by Samuel Thibault.
+
        rename, fchdir: don't ignore chdir failure
        * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
        * lib/rename.c (rpl_rename) [W32]: Likewise.
        maint: cleanup whitespace in recent commits
        * lib/rename.c (rpl_rename): Remove tabs.
        * tests/test-link.h (test_link): Likewise.
+       * lib/fchdir.c (get_name): Likewise.
        Reported by Jim Meyering.
 
 2009-10-02  Ben Pfaff  <blp@gnu.org>