This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
where is the system call code
- From: Sasha Sirotkin <demiurg at femtolinux dot com>
- To: libc-help at sourceware dot org
- Date: Thu, 29 Apr 2010 21:33:27 +0300
- Subject: where is the system call code
Hi.
I'm trying to understand how system calls are implemented in glibc.
For instance, I tried to find the recv() implementation, but only
found this:
ssize_t
__recv (fd, buf, n, flags)
int fd;
void *buf;
size_t n;
int flags;
{
__set_errno (ENOSYS);
return -1;INLINE_SYSCALL
}
weak_alias (__recv, recv)
Where is the actual recv code, the code that calls INLINE_SYSCALL
Thanks.