Skip to content

Commit

Permalink
Add errnos 95-99 (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffyOMC authored Oct 3, 2023
1 parent 39ef3b0 commit a96537e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/kernel/src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ pub const ENOLINK: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(91) };
pub const EPROTO: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(92) };
pub const ENOTCAPABLE: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(93) };
pub const ECAPMODE: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(94) };
pub const ENOBLK: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(95) };
pub const EICV: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(96) };
pub const ENOPLAYGOENT: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(97) };
pub const EREVOKE: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(98) };
pub const ESDKVERSION: NonZeroI32 = unsafe { NonZeroI32::new_unchecked(99) };

/// An object that is mappable to PS4 errno.
pub trait Errno: Error {
Expand Down Expand Up @@ -203,6 +208,11 @@ pub fn strerror(num: NonZeroI32) -> &'static str {
EPROTO => "protocol error",
ENOTCAPABLE => "capabilities insufficient",
ECAPMODE => "not permitted in capability mode",
ENOBLK => "Block not ready",
EICV => "Integrity Check Error",
ENOPLAYGOENT => "File not found in PlayGo chunk definition file",
EREVOKE => "File is revoked",
ESDKVERSION => "SDK version of a binary file is invalid",
v => todo!("strerror {v}"),
}
}

0 comments on commit a96537e

Please sign in to comment.