File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,21 @@ impl Error {
34
34
/// Try again.
35
35
pub const EAGAIN : Self = Error ( -( bindings:: EAGAIN as i32 ) ) ;
36
36
37
+ /// Device or resource busy.
38
+ pub const EBUSY : Self = Error ( -( bindings:: EBUSY as i32 ) ) ;
39
+
40
+ /// Restart the system call.
41
+ pub const ERESTARTSYS : Self = Error ( -( bindings:: ERESTARTSYS as i32 ) ) ;
42
+
43
+ /// Operation not permitted.
44
+ pub const EPERM : Self = Error ( -( bindings:: EPERM as i32 ) ) ;
45
+
46
+ /// No such process.
47
+ pub const ESRCH : Self = Error ( -( bindings:: ESRCH as i32 ) ) ;
48
+
49
+ /// No such file or directory.
50
+ pub const ENOENT : Self = Error ( -( bindings:: ENOENT as i32 ) ) ;
51
+
37
52
/// Creates an [`Error`] from a kernel error code.
38
53
pub fn from_kernel_errno ( errno : c_types:: c_int ) -> Error {
39
54
Error ( errno)
You can’t perform that action at this time.
0 commit comments