Which tutorials ? I've seen several examples where the persons demonstrating the code *think* they're using C++, but their code is all C. Remember, a C++ compiler can build / compile C code too. Derrek Molloy's example however does seem to be C++ where possible.
This code is all C except for the statement
using namespace std;
Which probably means this person was using g++ instead of gcc. It is also what I'd consider bad practice . . .The #include statements are all C, and as such all library functions used are in C. Demonstrated by printf() ( C++ uses cout, and the insertion operator << ).
Anyway, I'm not sure that example is "good" or not, but baring that it is a example in how to blink the USR LEDs in C.
As for the linux libc headers . . .
debian@beaglebone:~$ apt-cache search linux-libc
linux-libc-dev - Linux support headers for userspace development