Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f24bd91

Browse files
kostikbeltgross35
authored andcommitted
FreeBSD: add xinpgen and related types definitions
(backport <#4482>) (cherry picked from commit 7d2a695)
1 parent 0b79744 commit f24bd91

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;
@@ -1701,6 +1704,16 @@ s_no_extra_traits! {
17011704
pub uc_flags: c_int,
17021705
__spare__: [c_int; 4],
17031706
}
1707+
1708+
#[repr(align(8))]
1709+
pub struct xinpgen {
1710+
pub xig_len: ksize_t,
1711+
pub xig_count: u32,
1712+
_xig_spare32: u32,
1713+
pub xig_gen: inp_gen_t,
1714+
pub xig_sogen: so_gen_t,
1715+
_xig_spare64: [u64; 4],
1716+
}
17041717
}
17051718

17061719
cfg_if! {

0 commit comments

Comments
 (0)