[feature] turn POSIX error retured into errno
Merge pull request #16 from proxyio/dev

turn POSIX's error retured into errno