SR_Ind said:Thanks. This is what I was looking for.
SR_Ind said:The APUE tarball seems interesting. But I don't see some interesting parts. Sound API for example. Where do I find the API's for network interface?
[...]
Assume I want to know all the system calls to the sound sub-system. Is there a place that list all the functions and a mention of the related header file and link library names?
I tYes. Please see manual pages in section 2 (syscalls) and 3 (library calls); they live in /usr/share/man/man2 and /usr/share/man/man3, respectively.
Can you explain how to do that? i can't seem to find anything about syscalls with 'man syscall' which merely describe the function ,plus library calls manual live in /usr/share/man/man3 ? how to read it? there are only there. Is there a documentation (like the ones in 'en-freebsd-doc' package ?Yes. Please see manual pages in section 2 (syscalls) and 3 (library calls); they live in /usr/share/man/man2 and /usr/share/man/man3, respectively.
SR_Ind, you may find Developers' Handook useful. Also, you can find a list of available system calls in syscall.h .Is there a FreeBSD API documentation somewhere?
less /usr/include/sys/syscall.h
SR_Ind, check netintro(4) for the implementation of network layer. Also, you may want to have a bit of ifconfig(8) source code reading to see some code examples. You will see that rather than having a high level API, many things are implemented as ioctl(2) calls to NIC driver.Where do I find the API's for network interface?
TonyMeteo , this link explains what a syscall is. Also, intro(2) manual page is a good starting point before diving into details.Can you explain how to do that? i can't seem to find anything about syscalls with 'man syscall' which merely describe the function
I am sure you know what man(1) and apropos(1) commands are?plus library calls manual live in /usr/share/man/man3 ? how to read it? there are only there
See my reply to SR_Ind above.Is there a documentation (like the ones in 'en-freebsd-doc' package ?