1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00

Set errno to ENOSYS when a function is entirely unsupported.

This commit is contained in:
Bruno Haible
2009-09-06 22:36:55 +02:00
parent 39dcff84b2
commit dd62ffcdad
4 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,11 @@
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.

View 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
}

View 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
}

View File

@@ -7,7 +7,6 @@ lib/fchown-stub.c
m4/chown.m4
Depends-on:
errno
open
unistd
sys_stat