This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]