how __libc_read is different ?
Alexander (Sasha) Sirotkin
sasha.sirotkin@gmail.com
Thu Jun 24 16:59:00 GMT 2010
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?
More information about the Libc-help
mailing list