Refactor context list

This commit is contained in:
Jeremy Soller 2016-08-18 08:30:45 -06:00
parent 2de2d4cac4
commit 490dd16776
6 changed files with 89 additions and 34 deletions

View file

@ -53,6 +53,8 @@ pub enum Error {
NotPermitted,
/// No such file or directory
NoEntry,
/// No such process
NoProcess,
/// Bad file number
BadFile,
/// Invalid argument
@ -70,6 +72,7 @@ impl From<Error> for usize {
match err {
Error::NotPermitted => 1,
Error::NoEntry => 2,
Error::NoProcess => 3,
Error::BadFile => 9,
Error::InvalidValue => 22,
Error::TooManyFiles => 24,