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

Commit63ae381

Browse files
committed
Revert "[3.13]pythongh-69214: Fix fcntl.ioctl() request type (pythonGH-119498) (python#119504)"
This reverts commit0bab0b3.The change modified how negative values, like termios.TIOCSWINSZ, wastreated and is actually backward incompatible.
1 parenta055984 commit63ae381

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

‎Misc/NEWS.d/next/Library/2024-05-24-11-47-08.gh-issue-69214.Grl6zF.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎Modules/clinic/fcntlmodule.c.h

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Modules/fcntlmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fcntl_fcntl_impl(PyObject *module, int fd, int code, PyObject *arg)
112112
fcntl.ioctl
113113
114114
fd: fildes
115-
request as code:unsigned_long(bitwise=True)
115+
request as code:unsigned_int(bitwise=True)
116116
arg as ob_arg: object(c_default='NULL') = 0
117117
mutate_flag as mutate_arg: bool = True
118118
/
@@ -148,9 +148,9 @@ code.
148148
[clinic start generated code]*/
149149

150150
staticPyObject*
151-
fcntl_ioctl_impl(PyObject*module,intfd,unsignedlongcode,
151+
fcntl_ioctl_impl(PyObject*module,intfd,unsignedintcode,
152152
PyObject*ob_arg,intmutate_arg)
153-
/*[clinic end generated code: output=3d8eb6828666cea1 input=cee70f6a27311e58]*/
153+
/*[clinic end generated code: output=7f7f5840c65991be input=967b4a4cbeceb0a8]*/
154154
{
155155
#defineIOCTL_BUFSZ 1024
156156
/* We use the unsigned non-checked 'I' format for the 'code' parameter

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp