12 Traps and System Calls

This chapter is concerned with the way the system handles traps in general and system calls in particular.

There are quite a number of conditions which can cause the processor to “trap”. Many of these are quite clearly error conditions, such as hardware or power failures, and UNIX does not attempt any sophisticated recovery procedures for these.

The initial focus for our attention is the principal procedure in the file “trap.c”.