Skip to content

Commit 465e736

Browse files
psumberatgross35
authored andcommitted
Add solarish port_alert definitions
Add PORT_ALERT_* constants and the port_alert declaration shared by Solaris and illumos.
1 parent e59daae commit 465e736

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/unix/solarish/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,6 +1825,10 @@ pub const PORT_SOURCE_ALERT: c_int = 5;
18251825
pub const PORT_SOURCE_MQ: c_int = 6;
18261826
pub const PORT_SOURCE_FILE: c_int = 7;
18271827

1828+
pub const PORT_ALERT_SET: c_int = 0x01;
1829+
pub const PORT_ALERT_UPDATE: c_int = 0x02;
1830+
pub const PORT_ALERT_INVALID: c_int = PORT_ALERT_SET | PORT_ALERT_UPDATE;
1831+
18281832
pub const NONROOT_USR: c_short = 2;
18291833

18301834
pub const EMPTY: c_short = 0;
@@ -2659,6 +2663,7 @@ extern "C" {
26592663
events: c_int,
26602664
user: *mut c_void,
26612665
) -> c_int;
2666+
pub fn port_alert(port: c_int, flags: c_int, events: c_int, user: *mut c_void) -> c_int;
26622667
#[cfg_attr(
26632668
any(target_os = "solaris", target_os = "illumos"),
26642669
link_name = "__posix_getgrgid_r"

0 commit comments

Comments
 (0)