mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user