diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-09-28 00:01:40 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-09-28 00:49:05 +0200 |
commit | 52a1f1814ef530d8c78442f2bcaf28f4f2575790 (patch) | |
tree | 9bfb33f719c7c3a4be1c15fe904c485550844d82 /sysdeps | |
parent | 2c7bbfaf4e361b482f3ccfbdbb29cc5121ca0ea8 (diff) | |
download | glibc-52a1f1814ef530d8c78442f2bcaf28f4f2575790.tar glibc-52a1f1814ef530d8c78442f2bcaf28f4f2575790.tar.gz glibc-52a1f1814ef530d8c78442f2bcaf28f4f2575790.tar.bz2 glibc-52a1f1814ef530d8c78442f2bcaf28f4f2575790.zip |
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 'sysdeps')
-rw-r--r-- | sysdeps/mach/hurd/revoke.c | 4 | ||||
-rw-r--r-- | sysdeps/unix/bsd/unlockpt.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/revoke.c b/sysdeps/mach/hurd/revoke.c index 15b955b733..2f47f42de6 100644 --- a/sysdeps/mach/hurd/revoke.c +++ b/sysdeps/mach/hurd/revoke.c @@ -21,7 +21,7 @@ #include <hurd.h> int -revoke (const char *file_name) +__revoke (const char *file_name) { error_t err; file_t file = __file_name_lookup (file_name, 0, 0); @@ -36,3 +36,5 @@ revoke (const char *file_name) return __hurd_fail (err); return 0; } + +weak_alias (__revoke, revoke) diff --git a/sysdeps/unix/bsd/unlockpt.c b/sysdeps/unix/bsd/unlockpt.c index 7388c98523..ca4e7c654e 100644 --- a/sysdeps/unix/bsd/unlockpt.c +++ b/sysdeps/unix/bsd/unlockpt.c @@ -32,5 +32,5 @@ unlockpt (int fd) /* BSD doesn't have a lock, but it does have `revoke'. */ if (__ptsname_r (fd, buf, sizeof (buf))) return -1; - return revoke (buf); + return __revoke (buf); } |