Merge branch 'upstream'
authorIan Beckwith <ianb@erislabs.net>
Sun, 6 Sep 2009 23:33:11 +0000 (00:33 +0100)
committerIan Beckwith <ianb@erislabs.net>
Sun, 6 Sep 2009 23:33:11 +0000 (00:33 +0100)
ChangeLog
doc/posix-headers/fcntl.texi
lib/chown.c
lib/lchown.c
lib/sys_stat.in.h
modules/chown
modules/openat

index e5653e1..937f8f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2009-09-06  Bruno Haible  <bruno@clisp.org>
+
+       * modules/openat (configure.ac): Remove unneeded witness.
+
+2009-09-06  Bruno Haible  <bruno@clisp.org>
+
+       Set errno to ENOSYS when a function is entirely unsupported.
+       * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
+       EOPNOTSUPP.
+       * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
+       * modules/chown (Depends-on): Remove errno.
+
+2009-09-06  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
+
+2009-09-06  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sys_stat.in.h: Fix preprocessor command indentation.
+
 2009-09-06  Ben Pfaff  <blp@gnu.org>
            Bruno Haible  <bruno@clisp.org>
 
index 5cf86ee..55d3ccf 100644 (file)
@@ -24,17 +24,18 @@ on some platforms but not on others.
 
 @item
 @samp{FD_CLOEXEC} is not defined on some platforms:
-mingw
-
-@item
-@samp{AT_FDCWD} is defined with a value too large for an int on some
-platforms:
-Solaris 10
+mingw.
 
 @item
 @samp{AT_FDCWD}, @samp{AT_EACCESS}, @samp{AT_SYMLINK_NOFOLLOW},
 @samp{AT_SYMLINK_FOLLOW}, and @samp{AT_REMOVEDIR}
-are missing on some platforms.
+are not defined on many platforms:
+glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 8, Cygwin, mingw, Interix 3.5, BeOS.
+
+@item
+@samp{AT_FDCWD} is defined with a value too large for an @code{int} on some
+platforms:
+Solaris 10.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index cca1d7f..b851cbc 100644 (file)
@@ -103,7 +103,7 @@ rpl_chown (const char *file, uid_t uid, gid_t gid)
   return chown (file, uid, gid);
 
 #else /* !HAVE_CHOWN */
-  errno = EOPNOTSUPP;
+  errno = ENOSYS;
   return -1;
 #endif
 }
index 10ba1c9..8cf10dd 100644 (file)
@@ -52,7 +52,7 @@ lchown (const char *file, uid_t uid, gid_t gid)
   return chown (file, uid, gid);
 
 #else /* !HAVE_CHOWN */
-  errno = EOPNOTSUPP;
+  errno = ENOSYS;
   return -1;
 #endif
 }
index 2d89beb..33482d2 100644 (file)
@@ -317,7 +317,7 @@ int fchmodat (int fd, char const *file, mode_t mode, int flag);
 
 # if !@HAVE_MKDIRAT@
 int mkdirat (int fd, char const *file, mode_t mode);
-#endif
+# endif
 
 #elif defined GNULIB_POSIXCHECK
 # undef fchmodat
index 7cd07f5..cf99210 100644 (file)
@@ -7,7 +7,6 @@ lib/fchown-stub.c
 m4/chown.m4
 
 Depends-on:
-errno
 open
 unistd
 sys_stat
index e1dda71..276882b 100644 (file)
@@ -35,7 +35,6 @@ unistd
 
 configure.ac:
 gl_FUNC_OPENAT
-gl_MODULE_INDICATOR([openat])
 
 Makefile.am: