typedef int errcode_t;