Introduction

In this book we will see how our code interacts with the glibc library which inturn interacts with the system calls in order to get some work done from the computer.

We will go deep into the glibc code and see how it is all organized. How system calls are called from the user space programs. How arguments are passed and how are return values accessed.

We will see the code, we will see the same thing using debugger. The same thing we will see with the strace utility as well.

Acknowledgements

Most of the contents in this book is inspired from the contents in the internet, various blogs and internet. This is my first attempt at writing a document which is big enough to be called as a book.

Your suggestions and comments are very much required. You can interact with me on rishi.b.agrawal@gmail.com. Additionaly, incase you see any issue or if you would like to contribute, you can use the github repo https://github.com/rishiba/doc_syscalls for it.