Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this 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
#ifdef __FreeBSD__ | ||
#include <sys/user.h> | ||
#endif |
There was a problem hiding this comment.
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
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; |
There was a problem hiding this comment.
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 commentedDec 9, 2021
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 phrase And if you don't make the requested changes, you will be put in the comfy chair! |
This PR is stale because it has been open for 30 days with no activity. |
Uh oh!
There was an error while loading.Please reload this page.
https://bugs.python.org/issue46021