Re: Question:socket sources
- From: Chuck Swiger <cswiger@xxxxxxx>
- Date: Sat, 30 Sep 2006 10:06:34 -0400
vpaces@xxxxxxxxx wrote:
[ ... ]
For example:
int socket(int domain, int type, int protocol);
int bind(int s, const struct sockaddr *addr, socklen_t addrlen);
Browsing through your WWW CVS repository I'm just finding sources for MAN pages in directory / src / lib / libc / sys: access.2, connect.2 and so on. But where are the C sources of these calls? Or are the sources of these system calls not available?
C functions from section 2 of the manpages are "system calls", which means that a stub function is generated in libc via makesyscalls.sh, but most of the work in done in the kernel:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/uipc_syscalls.c?rev=1.221.2.4
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/uipc_socket.c?rev=1.283
--
-Chuck
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- Question:socket sources
- From: vpaces
- Question:socket sources
- Prev by Date: /etc/exports question
- Next by Date: Re: Can't ping localhost?
- Previous by thread: Question:socket sources
- Next by thread: USB IrDA Adapter
- Index(es):
Relevant Pages
|
|