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:
@@ -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.
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -7,7 +7,6 @@ lib/fchown-stub.c
|
||||
m4/chown.m4
|
||||
|
||||
Depends-on:
|
||||
errno
|
||||
open
|
||||
unistd
|
||||
sys_stat
|
||||
|
Reference in New Issue
Block a user