This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Glibc Socket function


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]