add c language traps

Signed-off-by: Micky Ching <mickyching@gmail.com>