add errno
Merge pull request #12 from coaku/feature_b_xzk_add_errno

add errno