Skip to content

Add F_DUPFD_QUERY to fcntl #127385

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

Closed
rruuaanng opened this issue Nov 29, 2024 · 0 comments · Fixed by #127386
Closed

Add F_DUPFD_QUERY to fcntl #127385

rruuaanng opened this issue Nov 29, 2024 · 0 comments · Fixed by #127386
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@rruuaanng
Copy link
Contributor

rruuaanng commented Nov 29, 2024

Feature or enhancement

Proposal:

It's used to query and copy a target file descriptor. for example:

import fcntl

f = /* open a file */;
/* 'ret' must be greater equal than 5 */
ret = fcntl.fcntl(fd, F_DUPFD_QUERY, 5);

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 Nov 29, 2024
@erlend-aasland erlend-aasland changed the title Add F_DUPFD_QUERY constants to fcntl module Add F_DUPFD_QUERY to fcntl Nov 29, 2024
@erlend-aasland erlend-aasland linked a pull request Nov 29, 2024 that will close this issue
@picnixz picnixz added the extension-modules C modules in the Modules dir label Jan 5, 2025
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

Successfully merging a pull request may close this issue.

2 participants