Add sun_path
to the fake doc sockaddr_un
· qinheping/verify-rust-std@532cd85 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 532cd85
Add sun_path
to the fake doc sockaddr_un
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -15,7 +15,9 @@ mod libc { | ||
15 | 15 | pub type socklen_t = u32; |
16 | 16 | pub struct sockaddr; |
17 | 17 | #[derive(Clone)] |
18 | -pub struct sockaddr_un; | |
18 | +pub struct sockaddr_un { | |
19 | +pub sun_path: [u8; 1], | |
20 | +} | |
19 | 21 | } |
20 | 22 | |
21 | 23 | const SUN_PATH_OFFSET: usize = mem::offset_of!(libc::sockaddr_un, sun_path); |