Searched hist:"8 a420dd109b9e4e2244cfa32bc92829093268b3e" (Results 1 – 6 of 6) sorted by relevance
/qemu/rust/qemu-api/src/ |
H A D | errno.rs | 8a420dd109b9e4e2244cfa32bc92829093268b3e Thu Nov 14 08:05:38 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: add module to convert between success/-errno and io::Result
It is a common convention in QEMU to return a positive value in case of success, and a negated errno value in case of error. Unfortunately, using errno portably in Rust is a bit complicated; on Unix the errno values are supported natively by io::Error, but on Windows they are not; so, use the libc crate.
This is a set of utility functions that are used by both chardev and block layer bindings.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
H A D | assertions.rs | 8a420dd109b9e4e2244cfa32bc92829093268b3e Thu Nov 14 08:05:38 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: add module to convert between success/-errno and io::Result
It is a common convention in QEMU to return a positive value in case of success, and a negated errno value in case of error. Unfortunately, using errno portably in Rust is a bit complicated; on Unix the errno values are supported natively by io::Error, but on Windows they are not; so, use the libc crate.
This is a set of utility functions that are used by both chardev and block layer bindings.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
H A D | prelude.rs | 8a420dd109b9e4e2244cfa32bc92829093268b3e Thu Nov 14 08:05:38 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: add module to convert between success/-errno and io::Result
It is a common convention in QEMU to return a positive value in case of success, and a negated errno value in case of error. Unfortunately, using errno portably in Rust is a bit complicated; on Unix the errno values are supported natively by io::Error, but on Windows they are not; so, use the libc crate.
This is a set of utility functions that are used by both chardev and block layer bindings.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
H A D | lib.rs | 8a420dd109b9e4e2244cfa32bc92829093268b3e Thu Nov 14 08:05:38 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: add module to convert between success/-errno and io::Result
It is a common convention in QEMU to return a positive value in case of success, and a negated errno value in case of error. Unfortunately, using errno portably in Rust is a bit complicated; on Unix the errno values are supported natively by io::Error, but on Windows they are not; so, use the libc crate.
This is a set of utility functions that are used by both chardev and block layer bindings.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/qemu/docs/devel/ |
H A D | rust.rst | 8a420dd109b9e4e2244cfa32bc92829093268b3e Thu Nov 14 08:05:38 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: add module to convert between success/-errno and io::Result
It is a common convention in QEMU to return a positive value in case of success, and a negated errno value in case of error. Unfortunately, using errno portably in Rust is a bit complicated; on Unix the errno values are supported natively by io::Error, but on Windows they are not; so, use the libc crate.
This is a set of utility functions that are used by both chardev and block layer bindings.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
/qemu/rust/qemu-api/ |
H A D | meson.build | 8a420dd109b9e4e2244cfa32bc92829093268b3e Thu Nov 14 08:05:38 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: add module to convert between success/-errno and io::Result
It is a common convention in QEMU to return a positive value in case of success, and a negated errno value in case of error. Unfortunately, using errno portably in Rust is a bit complicated; on Unix the errno values are supported natively by io::Error, but on Windows they are not; so, use the libc crate.
This is a set of utility functions that are used by both chardev and block layer bindings.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|