1
0
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:
Samuel Thibault
2017-09-28 00:01:40 +02:00
parent 2c7bbfaf4e
commit 52a1f1814e
5 changed files with 14 additions and 3 deletions

View File

@ -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)