System Programming Concepts
Table of Contents
Introduction to prerequisite concepts of Linux system programming. These include the following:
- System calls
- Library functions
- Standard C library
- Issues related to portability
There are alternative implementations of the C standard library that are not glibc
.
These are a couple that look interesting:
You can determine the verison of glibc
by:
/lib/glibc.so.6
You can also determine the version of glibc
via the (list dynamic dependencies) program:
ldd myprog | grep libc
You can determine the version of glibc
via two constants that can be tested at compile time by #ifdef
.
These variables will contain the major and minor version of glibc
. In this example the glibc
version is 2.12
:
__GLIBC__ // 2
__GLIBC_MINOR__ // 12