correct prototypes for trap access functions