add errno
Merge branch 'dev'