aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-28 00:01:40 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-28 00:49:05 +0200
commit52a1f1814ef530d8c78442f2bcaf28f4f2575790 (patch)
tree9bfb33f719c7c3a4be1c15fe904c485550844d82 /misc
parent2c7bbfaf4e361b482f3ccfbdbb29cc5121ca0ea8 (diff)
downloadglibc-52a1f1814ef530d8c78442f2bcaf28f4f2575790.zip
glibc-52a1f1814ef530d8c78442f2bcaf28f4f2575790.tar.gz
glibc-52a1f1814ef530d8c78442f2bcaf28f4f2575790.tar.bz2
hurd: Fix `revoke' symbol exposition from `unlockpt'
`revoke' is MISC only, it should not be exposed along `unlockpt' which is XOPEN. * include/unistd.h (__revoke): New declaration. * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak alias. * sysdeps/mach/hurd/revoke.c (revoke): Likewise. * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of revoke.
Diffstat (limited to 'misc')
-rw-r--r--misc/revoke.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/revoke.c b/misc/revoke.c
index d953216..21df2bb 100644
--- a/misc/revoke.c
+++ b/misc/revoke.c
@@ -20,9 +20,11 @@
#include <errno.h>
int
-revoke (const char *file)
+__revoke (const char *file)
{
__set_errno (ENOSYS);
return -1;
}
+
+weak_alias (__revoke, revoke)
stub_warning (revoke)