Skip to content

Commit 876783b

Browse files
committed
FreeBSD: add xinpgen and related types definitions
1 parent ec95a39 commit 876783b

File tree

1 file changed

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

1 file changed

+12
-0
lines changed

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

Lines changed: 12 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;
@@ -1720,6 +1723,15 @@ s_no_extra_traits! {
17201723
pub uc_flags: c_int,
17211724
__spare__: [c_int; 4],
17221725
}
1726+
1727+
pub struct xinpgen {
1728+
pub xig_len: ksize_t,
1729+
pub xig_count: u32,
1730+
_xig_spare32: u32,
1731+
pub xig_gen: inp_gen_t,
1732+
pub xig_sogen: so_gen_t,
1733+
_xig_spare64: [u64; 4],
1734+
}
17231735
}
17241736

17251737
cfg_if! {

0 commit comments

Comments
 (0)