-
Notifications
You must be signed in to change notification settings - Fork 12
[Refactor] Add network sockaddr data structure in sysdefs lib #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: threei-integration
Are you sure you want to change the base?
Conversation
Looks fine. I'm a bit confused though is the only thing this file is doing is exposing a unix sockaddr constructor? If so does it make sense to do this in a different file. |
use libc::{sa_family_t, sockaddr_un, sockaddr_in, sockaddr_in6, AF_UNIX, AF_INET, AF_INET6}; | ||
use libc::sockaddr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need these imports?
#[repr(C)] | ||
pub struct PollStruct { | ||
pub fd: i32, | ||
pub events: i16, | ||
pub revents: i16, | ||
} | ||
|
||
#[derive(Debug)] | ||
#[repr(C)] | ||
pub struct EpollEvent { | ||
pub events: u32, | ||
pub fd: i32, //in native this is a union which could be one of a number of things | ||
//however, we only support EPOLL_CTL subcommands which take the fd | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to include poll/epoll related things in this PR
No description provided.