Technical requirements
For this chapter, you'll need the GBD tool, Valgrind, the GCC compiler, a generic Makefile, and the Make tool.
If you haven't installed GDB and Valgrind yet, you can do so now. Follow these instructions depending on your distributions. If you don't have sudo
installed or don't have sudo
privileges, you can switch to root using su
instead (and leave out the sudo
part).
For Debian and Ubuntu systems, run the following command:
$> sudo apt-get install gdb valgrind
For CentOS, Fedora, and Red Hat systems, run the following command:
$> sudo dnf install gdb valgrind
All the code samples for this chapter can be found on GitHub at https://github.com/PacktPublishing/Linux-System-Programming-Techniques/tree/master/ch12.
Check out the following link to see the Code in Action videos: https://bit.ly/2TTiIPp