C library provides functions such as write(),read(),open()...that we can use in our C program to make system calls. where can I find source code for these functions?
Take the 2-minute tour
×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.
|
There is good deep and detailed description about system call at kernel side in recent lwn article: http://lwn.net/Articles/604287/ . |
|||
|
If you want source code for standard C library, look at the link @goldilocks provided. If you want source code for linux system call, you must search through the linux source code. System call is defined in many locations of linux source. You can grep for string macro
Some of them you can see here. |
|||
|
After GNU's libc, you can look at source code for other libc implementions: Musl has source code on-line for browsing: most system calls are in here. Someone has put Diet Libc into github. It's noted as unofficial, though. |
|||
|