* socketI implementation
@ 2003-09-17 12:06 sting sting
2003-09-17 12:51 ` Richard B. Johnson
0 siblings, 1 reply; 2+ messages in thread
From: sting sting @ 2003-09-17 12:06 UTC (permalink / raw)
To: linux-kernel
Hello,
I had downloaded the tar.gz of glibc;
I
I am interested in the learning the network layer and
implementation of the socket API in glibc
(calls like socket,bind,gethostbyname,etc.).
I saw in the inet subdirectory on glibc that it seems that these calls
are eventually result in calls to methods in nss subdirectory.
But I am not sure.
Am I right in my assumption?
or where I can find the implementation of methods like bind(), connect(),
socket(), etc.
regards
sting
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: socketI implementation
2003-09-17 12:06 socketI implementation sting sting
@ 2003-09-17 12:51 ` Richard B. Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Richard B. Johnson @ 2003-09-17 12:51 UTC (permalink / raw)
To: sting sting; +Cc: linux-kernel
On Wed, 17 Sep 2003, sting sting wrote:
> Hello,
>
> I had downloaded the tar.gz of glibc;
> I
> I am interested in the learning the network layer and
> implementation of the socket API in glibc
> (calls like socket,bind,gethostbyname,etc.).
> I saw in the inet subdirectory on glibc that it seems that these calls
> are eventually result in calls to methods in nss subdirectory.
>
> But I am not sure.
> Am I right in my assumption?
> or where I can find the implementation of methods like bind(), connect(),
> socket(), etc.
>
> regards
> sting
>
Wrong list. However, the interface to the network through the
kernel is __NR_socketcall (function 102).
You need to learn how to use `find`, `grep` and other Unix
tools to search large directory trees like glibc.
For instance, in glibc-2.3.1, a lot of utility functions
are in glibc-2.3.1/inet and a lot of socket interface code
is in glibc-2.3.1/unix/sysv/linux/i386/socket.S
Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (794.73 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-17 12:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17 12:06 socketI implementation sting sting
2003-09-17 12:51 ` Richard B. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®