Skip to content

Commit 2c2f071

Browse files
committed
illumos SOL_FILTER socket option.
1 parent 52382d6 commit 2c2f071

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/unix/solarish/illumos.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ s! {
1313
pub shm_ctime: ::time_t,
1414
pub shm_pad4: [i64; 4],
1515
}
16+
17+
pub struct fil_info {
18+
pub fi_flags: ::c_int,
19+
pub fi_pos: ::c_int,
20+
pub fi_name: [::c_char; ::FILNAME_MAX as usize],
21+
}
1622
}
1723

1824
pub const AF_LOCAL: ::c_int = 1; // AF_UNIX
@@ -33,6 +39,15 @@ pub const F_OFD_SETLKW: ::c_int = 52;
3339
pub const F_FLOCK: ::c_int = 55;
3440
pub const F_FLOCKW: ::c_int = 56;
3541

42+
pub const FIL_ATTACH: ::c_int = 0x1;
43+
pub const FIL_DETACH: ::c_int = 0x2;
44+
pub const FIL_LIST: ::c_int = 0x3;
45+
pub const FILNAME_MAX: ::c_int = 32;
46+
pub const FILF_PROG: ::c_int = 0x1;
47+
pub const FILF_AUTO: ::c_int = 0x2;
48+
pub const FILF_BYPASS: ::c_int = 0x4;
49+
pub const SOL_FILTER: ::c_int = 0xfffc;
50+
3651
pub const MR_HDR_AOUT: ::c_uint = 0x3;
3752

3853
extern "C" {

0 commit comments

Comments
 (0)