Generic trap.h definition.