Why are there two versions of the example programs?

The example programs for The Linux Programming Interface are provided in two versions:

Differences between the distribution and book versions occur for the following reasons: