Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-46021: fcntl module update supporting FreeBSD's F_KINFO proposal.#30000

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
devnexen wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromdevnexen:fcntl_fbsd_upd2

Conversation

devnexen
Copy link
Contributor

@devnexendevnexen commentedDec 9, 2021
edited by bedevere-bot
Loading

@devnexendevnexen changed the titlefcntl module update supporting FreeBSD's F_KINFO proposal.bpo-46021: fcntl module update supporting FreeBSD's F_KINFO proposal.Dec 9, 2021
Copy link
Member

@tirantiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please include

  • blurb (news entry)
  • documentation update
  • tests
  • configure.ac header check

Comment on lines +18 to +20
#ifdef __FreeBSD__
#include <sys/user.h>
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This needs anAC_CHECK_HEADERS check in configure.ac

Comment on lines +116 to +121
if (ret) {
PyDict_SetItemString(ret, "status", PyLong_FromLong(f.kf_status));
PyDict_SetItemString(ret, "type", PyLong_FromLong(f.kf_type));
PyDict_SetItemString(ret, "offset", PyLong_FromLongLong(f.kf_offset));
PyDict_SetItemString(ret, "path", PyBytes_FromString(f.kf_path));
return ret;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

fcntl.fcntl() returns either an integer or bytes. IfF_KINFO needs a different return type, then it would be better to implement the feature as a new platform-specific function in the fcntl module, e.g.fcntl.kinfo(fd: int) -> dict.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be put in the comfy chair!

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsbot added the staleStale PR or inactive for long period of time. labelJan 9, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tirantirantiran requested changes

Assignees
No one assigned
Labels
awaiting changesOS-freebsdstaleStale PR or inactive for long period of time.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@devnexen@bedevere-bot@tiran@vstinner@the-knights-who-say-ni@ezio-melotti

[8]ページ先頭

©2009-2025 Movatter.jp