# HG changeset patch # User Bruno Haible # Date 1252269415 -7200 # Node ID ebddaf9cb5db9258ca8b81bb0bd6de238fce4f72 # Parent a23404c3998054ada8384e56d21dd7720765e36c Set errno to ENOSYS when a function is entirely unsupported. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-09-06 Bruno Haible + + 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 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms. diff --git a/lib/chown.c b/lib/chown.c --- a/lib/chown.c +++ b/lib/chown.c @@ -103,7 +103,7 @@ return chown (file, uid, gid); #else /* !HAVE_CHOWN */ - errno = EOPNOTSUPP; + errno = ENOSYS; return -1; #endif } diff --git a/lib/lchown.c b/lib/lchown.c --- a/lib/lchown.c +++ b/lib/lchown.c @@ -52,7 +52,7 @@ return chown (file, uid, gid); #else /* !HAVE_CHOWN */ - errno = EOPNOTSUPP; + errno = ENOSYS; return -1; #endif } diff --git a/modules/chown b/modules/chown --- a/modules/chown +++ b/modules/chown @@ -7,7 +7,6 @@ m4/chown.m4 Depends-on: -errno open unistd sys_stat