Subject: Re: libc/syscall relationship
To: None <tech-kern@netbsd.org>
From: Matthew Mondor <mmondor@gobot.ca>
List: tech-kern
Date: 10/24/2002 04:07:29
On Thu, 24 Oct 2002 00:44:02 -0700
Matt Thomas <matt@3am-software.com> wrote:

[...]
> >So I find part of the code calling those syscalls, but not their
> >origin... Then in src/sys/lib/libc/arch/ I find the asm stubs, but I
> >don't seem to find the libc code calling these... The C->asm interface.
> >It has to be there however, hence:
> >
> >% nm /usr/lib/libc.so | grep getegid
> >00051204 T getegid
> >%
> >
> >would that code be outside of src/lib/ finally?
> 
> Look at <lib/arch/$ARCH/SYS.h> for your architecture for the definition
> of SYSCALL.

Sorry maybe I was not clear in my request... yes I found the SYSCALL
macro, but could not find the code which makes use of it, to map libc
calls to syscalls.

Thanks again,
Matt