feat(error): Add error-mapping from C calls

Implements an error enum with mappings from the low-level C calls and
appropriate error descriptions.
This commit is contained in:
Vincent Ambo 2017-10-15 23:22:18 +02:00
parent a89b7255ee
commit 1f1a74108e
2 changed files with 99 additions and 0 deletions

View file

@ -4,3 +4,5 @@ version = "0.1.0"
authors = ["Vincent Ambo <tazjin@gmail.com>"]
[dependencies]
nix = "0.9"
libc = "0.2"