mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user