This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
how __libc_read is different ?
- From: "Alexander (Sasha) Sirotkin" <sasha dot sirotkin at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Thu, 24 Jun 2010 19:59:17 +0300
- Subject: how __libc_read is different ?
I have to overwrite a couple of standard system calls. I managed to do
so for recv(), but I'm getting weird errors when I try to do the same
for read(). The following works for me:
recvfrom.c:
ssize_t __libc_recvfrom (int fd, void *buf, size_t n, int flags,
__SOCKADDR_ARG addr, socklen_t *addr_len) {
}
weak_alias (__libc_recvfrom, __recvfrom)
weak_alias (__recvfrom, recvfrom)
aftetr I removed recvfrom from syscalls.list under
/ports/sysdeps/unix/sysv/linux/arm/eabi directory.
When I try to do the same for read() it does not work. Any suggestions?