Add solarish port_alert definitions#5203
Conversation
Add PORT_ALERT_* constants and the port_alert declaration shared by Solaris and illumos.
https://docs.oracle.com/cd/E88353_01/html/E37843/port-alert-3c.html |
| 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No. It's the same as on Solaris:
There was a problem hiding this comment.
Ack, thanks for the updated link. LGTM!
| 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; |
There was a problem hiding this comment.
Ack, thanks for the updated link. LGTM!
Add PORT_ALERT_* constants and the port_alert declaration shared by Solaris and illumos. (backport <rust-lang#5203>) (cherry picked from commit 465e736)
Add PORT_ALERT_* constants and the port_alert declaration shared by Solaris and illumos. (backport <rust-lang#5203>) (cherry picked from commit 465e736)
Add PORT_ALERT_* constants and the port_alert declaration shared by Solaris and illumos. (backport <rust-lang#5203>) (cherry picked from commit 465e736)
Add PORT_ALERT_* constants and the port_alert declaration shared by Solaris and illumos.
https://docs.oracle.com/cd/E88353_01/html/E37843/port-alert-3c.html
https://github.com/illumos/illumos-gate/blob/edd2f3461fcd719ff41d34b395ef3f5b5994fad1/usr/src/uts/common/sys/port.h#L97-L99
https://github.com/illumos/illumos-gate/blob/edd2f3461fcd719ff41d34b395ef3f5b5994fad1/usr/src/head/port.h#L48