You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However O_RDONLY is 0 so the test is bogus and gives a clippy warning.
The O_XXXXvalues are not bit masks but rather they are values for the two low order bits of the flags value. The tests should probably look somethign like this:
The sample code contains the follow tests:
However
O_RDONLY
is0
so the test is bogus and gives a clippy warning.The
O_XXXX
values are not bit masks but rather they are values for the two low order bits of theflags
value. The tests should probably look somethign like this:The text was updated successfully, but these errors were encountered: