sessiond: fix DIAG probe crate name (redox_syscall)
This commit is contained in:
@@ -230,11 +230,11 @@ fn main() {
|
||||
// kernel pipe fd (used by the mio waker, which should succeed).
|
||||
{
|
||||
use std::os::fd::AsRawFd;
|
||||
use syscall::data::Event;
|
||||
use syscall::flag::EventFlags;
|
||||
use redox_syscall::data::Event;
|
||||
use redox_syscall::flag::EventFlags;
|
||||
const O_RDWR_S: i32 = 0x0003_0000;
|
||||
const O_RDONLY_S: i32 = 0x0001_0000;
|
||||
fn register(epfd: usize, fd: usize) -> syscall::Result<usize> {
|
||||
fn register(epfd: usize, fd: usize) -> redox_syscall::Result<usize> {
|
||||
let ev = Event { id: fd, flags: EventFlags::EVENT_READ, data: 0 };
|
||||
let bytes = unsafe {
|
||||
core::slice::from_raw_parts(
|
||||
@@ -242,7 +242,7 @@ fn main() {
|
||||
core::mem::size_of::<Event>(),
|
||||
)
|
||||
};
|
||||
syscall::write(epfd, bytes)
|
||||
redox_syscall::write(epfd, bytes)
|
||||
}
|
||||
match libredox::call::open("/scheme/event", O_RDWR_S, 0) {
|
||||
Ok(epfd) => {
|
||||
|
||||
Reference in New Issue
Block a user