-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
wasi-common/yanix: fix FreeBSD support #756
Conversation
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.
Hey! Thanks for the PR! The changes look great to me, just a couple of nitpicks.
Now that I look at how we use This is not directly relevant to changes introduced in this PR, but I thought it's good to point that out, and fix in a subsequent PR. |
The linked comment says that defining If FreeBSD doesn't support |
Hmm, that's a good catch! I missed the fact that the reason I reckon trying to implement them manually for our use sounds good, and if impossible, dropping it from WASI is within reason as well (as we might have to do with symlinks for instance due to the differences between *nixes and Windows). |
Maybe defining them to |
Yes, defining |
To elaborate, while the comment here says that defining |
Updated with
|
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.
Looks good, thanks!
* Clarify that FixedTied constraints are not Tied
O_DSYNC
, define that to zero, same withO_RSYNC
cfg
fornot(…)
in the bitflags because Constants cannot be cfg-gated multiple times bitflags/bitflags#137 butcfg_if
is better anyway (platforms only listed once)d_fileno
for inode