dope-uring 0.77.0

Owned io_uring backend for dope
Documentation
use dope_sys::kernel::{self, errno};

use crate::Backend;

// SAFETY: read accesses the calling thread's actual native errno slot, preserving
// the value set by its immediately preceding syscall.
unsafe impl kernel::raw::Source for Backend {
    fn read() -> i32 {
        // SAFETY: this native TLS cell is read synchronously on its owning thread.
        unsafe { libc::__errno_location().read() }
    }
}

impl errno::Source for Backend {
    fn clear() {
        // SAFETY: this native TLS cell is written synchronously on its owning thread.
        unsafe { libc::__errno_location().write(0) };
    }
}