mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
d6daff1261
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.
20 lines
506 B
C
20 lines
506 B
C
#ifndef _SYS_UIO_H
|
|
#include <misc/sys/uio.h>
|
|
|
|
#ifndef _ISOMAC
|
|
/* Now define the internal interfaces. */
|
|
extern ssize_t __readv (int __fd, const struct iovec *__iovec,
|
|
int __count);
|
|
libc_hidden_proto (__readv)
|
|
extern ssize_t __writev (int __fd, const struct iovec *__iovec,
|
|
int __count);
|
|
libc_hidden_proto (__writev)
|
|
|
|
/* Used for p{read,write}{v64}v2 implementation. */
|
|
libc_hidden_proto (preadv)
|
|
libc_hidden_proto (preadv64)
|
|
libc_hidden_proto (pwritev)
|
|
libc_hidden_proto (pwritev64)
|
|
#endif
|
|
#endif
|