-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fcntl_lock should be supported on Solaris #1226
Conversation
e7a8edd
to
0df39bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this looks like my mistake. When libc removed LOCK_SH
etc., I disabled FlockOperation
on Solaris and then disabled fcntl_lock
as well to make everything build, forgetting that we still need that on Solaris. The fix looks good; I just suggest adding something like the following comment to explain what's going on:
target_os = "vita", | ||
target_os = "wasi" | ||
)))] | ||
#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] | |
// Solaris doesn't support `flock` and doesn't define `LOCK_SH` etc., but we | |
// reuse this `FlockOperation` enum for `fcntl_lock`, so on Solaris we use | |
// our own made-up integer values. | |
#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))] |
The CI failure is an unrelated bug now fixed on |
0df39bb
to
665808d
Compare
Even when Solaris libc doesn't define LOCK_SH, LOCK_EX, LOCK_NB and LOCK_UN (which are flock() related).
665808d
to
ae441b0
Compare
Thanks! |
Even when Solaris libc doesn't define LOCK_SH, LOCK_EX, LOCK_NB and LOCK_UN (which are flock() related).
Even when Solaris libc doesn't define LOCK_SH, LOCK_EX, LOCK_NB and LOCK_UN (which are flock() related).
This is now released in rustix 0.38.42. |
Even when Solaris libc doesn't define LOCK_SH, LOCK_EX, LOCK_NB and LOCK_UN (which are flock() related).