Skip to content

Add F_DUPFD_QUERY to fcntl #127385

Closed
Closed

Description

@rruuaanng

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

Activity

  1. changed the title [-]Add F_DUPFD_QUERY constants to fcntl module[/-] [+]Add `F_DUPFD_QUERY` to `fcntl`[/+] on Nov 29, 2024
  2. added a commit that references this issue on Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions