Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,10 @@ pub const PORT_SOURCE_ALERT: c_int = 5;
pub const PORT_SOURCE_MQ: c_int = 6;
pub const PORT_SOURCE_FILE: c_int = 7;

pub const PORT_ALERT_SET: c_int = 0x01;
pub const PORT_ALERT_UPDATE: c_int = 0x02;
pub const PORT_ALERT_INVALID: c_int = PORT_ALERT_SET | PORT_ALERT_UPDATE;

pub const NONROOT_USR: c_short = 2;

pub const EMPTY: c_short = 0;
Expand Down Expand Up @@ -2657,6 +2661,7 @@ extern "C" {
events: c_int,
user: *mut c_void,
) -> c_int;
pub fn port_alert(port: c_int, flags: c_int, events: c_int, user: *mut c_void) -> c_int;

@tgross35 tgross35 Jun 26, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless I'm looking at the wrong thing, it seems like this definition should be Solaris-only since Illumos takes a struct pointer https://github.com/illumos/illumos-gate/blob/edd2f3461fcd719ff41d34b395ef3f5b5994fad1/usr/src/uts/common/fs/portfs/port.c#L453.

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack, thanks for the updated link. LGTM!

#[cfg_attr(
any(target_os = "solaris", target_os = "illumos"),
link_name = "__posix_getgrgid_r"
Expand Down