Rewrite ptab.h based on new API
Create strerror framework