Following along with the examples from the Linux Systems Programming book by Robert Love.
Copyright 2007 O’Reilly Media, Inc., ISBN 978-0-596-00958-8.
Not all of the examples are verbatim, and I have annotated where I encountered specific issues on my system. I am running an up-to-date arch linux system.
Current versions:
gcc (GCC) 4.8.2 20140206 (prerelease)
Linux 3.13.6-1-ARCH #1 SMP PREEMPT x86_64 GNU/Linux
glibc 2.19-3
I combined several snippets to improve my own understanding and added makefiles to aid with building and to get to grips with those aspects of system programming.