Add sun_path
to the fake doc sockaddr_un
· qinheping/verify-rust-std@532cd85 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 532cd85
Add sun_path
to the fake doc sockaddr_un
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 3 additions & 1 deletion
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); |