mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Hide __readv and __writev [BZ #18822]
Hide internal __readv and __writev functions to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/sys/uio.h (__readv): Add libc_hidden_proto. (__writev): Likewise. * misc/readv.c (__readv): Add libc_hidden_def. * misc/writev.c (__writev): Likewise. * sysdeps/posix/readv.c (__readv): Likewise. * sysdeps/posix/writev.c (__writev): Likewise. * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>. (__readv): Likewise. * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>. (__writev): Likewise.
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sysdep-cancel.h>
|
||||
|
||||
ssize_t
|
||||
@ -24,4 +25,5 @@ __readv (int fd, const struct iovec *iov, int iovcnt)
|
||||
{
|
||||
return SYSCALL_CANCEL (readv, fd, iov, iovcnt);
|
||||
}
|
||||
libc_hidden_def (__readv)
|
||||
weak_alias (__readv, readv)
|
||||
|
Reference in New Issue
Block a user