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

Add RWF_ATOMIC constant to os module #127921

Open
rruuaanng opened this issue Dec 13, 2024 · 0 comments
Open

Add RWF_ATOMIC constant to os module #127921

rruuaanng opened this issue Dec 13, 2024 · 0 comments
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@rruuaanng
Copy link
Contributor

rruuaanng commented Dec 13, 2024

Feature or enhancement

Proposal:

This issue suggests adding new os constants.

fd = /* open a file */
buffers = [/* some bytes */]
os.pwritev(fd, buffers, 0, RWF_ATOMIC) # Either the write operation is successful, or nothing is written.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

@rruuaanng rruuaanng added the type-feature A feature request or enhancement label Dec 13, 2024
@picnixz picnixz added the extension-modules C modules in the Modules dir label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants