+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>
@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:
return chown (file, uid, gid);
#else /* !HAVE_CHOWN */
- errno = EOPNOTSUPP;
+ errno = ENOSYS;
return -1;
#endif
}
return chown (file, uid, gid);
#else /* !HAVE_CHOWN */
- errno = EOPNOTSUPP;
+ errno = ENOSYS;
return -1;
#endif
}
# if !@HAVE_MKDIRAT@
int mkdirat (int fd, char const *file, mode_t mode);
-#endif
+# endif
#elif defined GNULIB_POSIXCHECK
# undef fchmodat
m4/chown.m4
Depends-on:
-errno
open
unistd
sys_stat
configure.ac:
gl_FUNC_OPENAT
-gl_MODULE_INDICATOR([openat])
Makefile.am: