aya: replace os::unix::prelude with os::fd
@@ -2,7 +2,7 @@
use std::{
borrow::{Borrow, BorrowMut},
- os::unix::prelude::{AsRawFd, RawFd},
+ os::fd::{AsRawFd, RawFd},
};
use crate::{
@@ -42,7 +42,7 @@ use std::{
marker::PhantomData,
mem,
ops::Deref,
- os::unix::{io::RawFd, prelude::AsRawFd},
path::Path,
ptr,
@@ -1,7 +1,7 @@
use bytes::BytesMut;
#[cfg(all(not(feature = "async_tokio"), feature = "async_std"))]
- os::unix::{io::AsRawFd, prelude::RawFd},
@@ -1,5 +1,5 @@
//! Cgroup device programs.
-use std::os::unix::prelude::{AsRawFd, RawFd};
+use std::os::fd::{AsRawFd, RawFd};
generated::{bpf_attach_type::BPF_CGROUP_DEVICE, bpf_prog_type::BPF_PROG_TYPE_CGROUP_DEVICE},
//! Cgroup skb programs.
hash::Hash,
@@ -3,7 +3,7 @@ pub use aya_obj::programs::CgroupSockAttachType;
@@ -3,7 +3,7 @@ pub use aya_obj::programs::CgroupSockAddrAttachType;
@@ -3,7 +3,7 @@ pub use aya_obj::programs::CgroupSockoptAttachType;
//! Cgroup sysctl programs.
//! Extension programs.
use thiserror::Error;
use object::Endianness;
@@ -6,7 +6,7 @@ use std::{
collections::{hash_map::Entry, HashMap},
ffi::CString,
io,
- os::unix::prelude::RawFd,
+ os::fd::RawFd,
path::{Path, PathBuf},
//! Lirc programs.
generated::{bpf_attach_type::BPF_LIRC_MODE2, bpf_prog_type::BPF_PROG_TYPE_LIRC_MODE2},
@@ -1,4 +1,4 @@
generated::{bpf_attach_type::BPF_SK_LOOKUP, bpf_prog_type::BPF_PROG_TYPE_SK_LOOKUP},
use libc::{setsockopt, SOL_SOCKET};
io, mem,