Home
last modified time | relevance | path

Searched hist:"8 a420dd109b9e4e2244cfa32bc92829093268b3e" (Results 1 – 6 of 6) sorted by relevance

/qemu/rust/qemu-api/src/
H A Derrno.rs8a420dd109b9e4e2244cfa32bc92829093268b3e 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 Dassertions.rs8a420dd109b9e4e2244cfa32bc92829093268b3e 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 Dprelude.rs8a420dd109b9e4e2244cfa32bc92829093268b3e 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 Dlib.rs8a420dd109b9e4e2244cfa32bc92829093268b3e 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 Drust.rst8a420dd109b9e4e2244cfa32bc92829093268b3e 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 Dmeson.build8a420dd109b9e4e2244cfa32bc92829093268b3e 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>