List Info

Thread: Question:socket sources




Question:socket sources
user name
2006-09-30 09:56:50
Dear FreeBSD team,
I decided to contact you because I cannot find some system
call C modules for a very long time.
I'd like to ask you where can I find sources containing code
for socket related system calls like
socket, accept, bind, connect .... with interfaces described
on FreeBSD  MAN pages (system calls).
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?

Thanks for your answer.

Best regards,
Viliam Paces.

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Question:socket sources
user name
2006-09-30 14:06:34
vpaceschello.sk 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/cvswe
b.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-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )