Glibc Socket function

John Lumby johnlumby@hotmail.com
Thu Jun 3 14:16:00 GMT 2010


The kernel code is all in <kernel_source_tree>/net/socket.c

The names are a bit obscure owing to the tricky C-preprocessor macroification but look for functions named __sock_xxxx  

John

----------------------------------------
> From: vapier@gentoo.org
> To: libc-help@sourceware.org
> Subject: Re: Glibc Socket function
> Date: Wed, 2 Jun 2010 21:41:03 -0400
> CC: bhargava470@gmail.com
>
> On Wednesday, June 02, 2010 21:24:54 bhargava wrote:
>> I'm a beginner in network programming. I wanted to look at the source
>> code of the socket function (socket(domain, type, protocol)). I
>> downloaded glibc-2.9 from the gnu ftp server.
>> I could find only the stub functions for the socket and other functions.
>> Where can I find the actual source code for these function.
>
> the C library really doesnt do much. they simply invoke the related socket
> system call in the kernel.
> -mike
 		 	   		  
_________________________________________________________________
Look 'em in the eye: FREE Messenger video chat
http://go.microsoft.com/?linkid=9734386


More information about the Libc-help mailing list