Skip to content

Commit

Permalink
Auto merge of #2551 - devnexen:ctl_describe_query_netbsd, r=JohnTitor
Browse files Browse the repository at this point in the history
netbsd add sysctldesc query.
  • Loading branch information
bors committed Nov 18, 2021
2 parents 8802703 + 5f7cbfe commit d429fc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/netbsd.txt
Expand Up @@ -1446,6 +1446,7 @@ sync
syscall
sysctl
sysctlbyname
sysctldesc
telldir
timer_create
timer_delete
Expand Down
7 changes: 7 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Expand Up @@ -556,6 +556,13 @@ s! {
pub psi_siginfo: siginfo_t,
pub psi_lwpid: lwpid_t,
}

pub struct sysctldesc {
pub descr_num: i32,
pub descr_ver: u32,
pub descr_len: u32,
pub descr_str: [::c_char; 1],
}
}

s_no_extra_traits! {
Expand Down

0 comments on commit d429fc4

Please sign in to comment.