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 F_DUPFD_QUERY to fcntl #127385

Open
rruuaanng opened this issue Nov 29, 2024 · 0 comments · May be fixed by #127386
Open

Add F_DUPFD_QUERY to fcntl #127385

rruuaanng opened this issue Nov 29, 2024 · 0 comments · May be fixed by #127386
Labels
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:

int fd = /* open a file */;
/* 'ret' must be greater equal than 5 */
int ret = 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
@bedevere-app bedevere-app bot linked a pull request Nov 29, 2024 that will close this issue
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant