A couple of examples from Helmut Herold's "Linux / Unix Systemprogrammierung"