Skip to content
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

OpenOptionsExt: add flags method #1273

Closed
pfpacket opened this issue Sep 7, 2015 · 1 comment
Closed

OpenOptionsExt: add flags method #1273

pfpacket opened this issue Sep 7, 2015 · 1 comment

Comments

@pfpacket
Copy link

pfpacket commented Sep 7, 2015

I recently encountered the case that needs to open a file with the given raw c_int flags, which is the second argument of open(2).

I think it's better to be able to create a OpenOptions with the given flags in the cases dealing with FFI or network protocols and so on.

Here is my experimental try.
branch: https://github.com/pfpacket/rust/tree/openoptext-flag

Edit:
Now I think from_flag method is unnecessary, so I removed it.

@pfpacket pfpacket changed the title OpenOptionsExt: add flag and from_flag methods OpenOptionsExt: add flag methods Sep 7, 2015
@pfpacket pfpacket changed the title OpenOptionsExt: add flag methods OpenOptionsExt: add flag method Sep 7, 2015
@pfpacket pfpacket changed the title OpenOptionsExt: add flag method OpenOptionsExt: add flags method Sep 7, 2015
@pfpacket pfpacket closed this as completed Feb 3, 2016
@pfpacket
Copy link
Author

pfpacket commented Feb 3, 2016

rust-lang/rust#30014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant