diff options
| author | bors <bors@rust-lang.org> | 2022-01-04 23:48:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-01-04 23:48:18 +0000 |
| commit | cc186d743b3e00fb39806fa6429aae424cda80cb (patch) | |
| tree | c097de67ade3e10274295b33ad99ba44fd241282 /src/unix | |
| parent | 2910a5383a18ff83a9b25e3219655b9a2770a1d8 (diff) | |
| parent | 2c2f0715f77f437fa87dbb2797fb767bf1ed3931 (diff) | |
| download | rust-libc-cc186d743b3e00fb39806fa6429aae424cda80cb.tar.gz | |
Auto merge of #2609 - devnexen:solarish_sol_filter, r=Amanieu
illumos SOL_FILTER socket option.
Diffstat (limited to 'src/unix')
| -rw-r--r-- | src/unix/solarish/illumos.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs index 2607ac66fe..9df3c6b3bf 100644 --- a/src/unix/solarish/illumos.rs +++ b/src/unix/solarish/illumos.rs @@ -13,6 +13,12 @@ s! { pub shm_ctime: ::time_t, pub shm_pad4: [i64; 4], } + + pub struct fil_info { + pub fi_flags: ::c_int, + pub fi_pos: ::c_int, + pub fi_name: [::c_char; ::FILNAME_MAX as usize], + } } pub const AF_LOCAL: ::c_int = 1; // AF_UNIX @@ -33,6 +39,15 @@ pub const F_OFD_SETLKW: ::c_int = 52; pub const F_FLOCK: ::c_int = 55; pub const F_FLOCKW: ::c_int = 56; +pub const FIL_ATTACH: ::c_int = 0x1; +pub const FIL_DETACH: ::c_int = 0x2; +pub const FIL_LIST: ::c_int = 0x3; +pub const FILNAME_MAX: ::c_int = 32; +pub const FILF_PROG: ::c_int = 0x1; +pub const FILF_AUTO: ::c_int = 0x2; +pub const FILF_BYPASS: ::c_int = 0x4; +pub const SOL_FILTER: ::c_int = 0xfffc; + pub const MR_HDR_AOUT: ::c_uint = 0x3; extern "C" { |
