Subject: Re: question regarding the socket() function.
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 03/13/2001 02:30:32
In article <3AAD85EC.55033291@net.com>,
Shankar Agarwal <shankar_agarwal@net.com> wrote:
>Hi,
>I am trying to find out where the function socket() is actually
>defined.I did a search on the sources and i kind of could not locate
>this
>function. Also i could not find the code for the function bind()
>connect(). I think i might be missing something here as i am directly
>looking for a function with a name socket, bind and connect. So if that
>is wrong then i will be grateful to you if you let me know the correct
>way to do it. I am using cscope to search for this purpose.

These are system calls; they are implemented as assembly language stubs
in the Makefile in /usr/src/lib/libc/sys.

christos