Skip to content

Commit 7d2a695

Browse files
committed
FreeBSD: add xinpgen and related types definitions
1 parent 8443057 commit 7d2a695

File tree

1 file changed

+13
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+13
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ pub type fixpt_t = __fixpt_t;
1111
pub type __lwpid_t = i32;
1212
pub type lwpid_t = __lwpid_t;
1313
pub type blksize_t = i32;
14+
pub type ksize_t = u64;
15+
pub type inp_gen_t = u64;
16+
pub type so_gen_t = u64;
1417
pub type clockid_t = c_int;
1518
pub type sem_t = _sem;
1619
pub type timer_t = *mut __c_anonymous__timer;
@@ -1722,6 +1725,16 @@ s_no_extra_traits! {
17221725
pub uc_flags: c_int,
17231726
__spare__: [c_int; 4],
17241727
}
1728+
1729+
#[repr(align(8))]
1730+
pub struct xinpgen {
1731+
pub xig_len: ksize_t,
1732+
pub xig_count: u32,
1733+
_xig_spare32: u32,
1734+
pub xig_gen: inp_gen_t,
1735+
pub xig_sogen: so_gen_t,
1736+
_xig_spare64: [u64; 4],
1737+
}
17251738
}
17261739

17271740
cfg_if! {

0 commit comments

Comments
 (0)