Use Cell representation for errno
This commit is contained in:
committed by
Jeremy Soller
parent
9ef3374c30
commit
9093f6bc47
@@ -63,9 +63,7 @@ pub fn e(sys: usize) -> usize {
|
||||
match e_raw(sys) {
|
||||
Ok(value) => value,
|
||||
Err(errcode) => {
|
||||
unsafe {
|
||||
errno = errcode as c_int;
|
||||
}
|
||||
errno.set(errcode as c_int);
|
||||
!0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user