Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
069bdcbb
Commit
069bdcbb
authored
Nov 10, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22821: Fixed fcntl() with integer argument on 64-bit big-endian
platforms.
parent
3454941d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Misc/NEWS
Misc/NEWS
+3
-0
Modules/fcntlmodule.c
Modules/fcntlmodule.c
+2
-2
No files found.
Misc/NEWS
View file @
069bdcbb
...
...
@@ -37,6 +37,9 @@ Core and Builtins
Library
-------
-
Issue
#
22821
:
Fixed
fcntl
()
with
integer
argument
on
64
-
bit
big
-
endian
platforms
.
-
Issues
#
814253
,
#
9179
:
Group
references
and
conditional
group
references
now
work
in
lookbehind
assertions
in
regular
expressions
.
...
...
Modules/fcntlmodule.c
View file @
069bdcbb
...
...
@@ -34,7 +34,7 @@ fcntl_fcntl(PyObject *self, PyObject *args)
{
int
fd
;
int
code
;
long
arg
;
int
arg
;
int
ret
;
char
*
str
;
Py_ssize_t
len
;
...
...
@@ -61,7 +61,7 @@ fcntl_fcntl(PyObject *self, PyObject *args)
PyErr_Clear
();
arg
=
0
;
if
(
!
PyArg_ParseTuple
(
args
,
"O&i|
l
;fcntl requires a file or file descriptor,"
"O&i|
I
;fcntl requires a file or file descriptor,"
" an integer and optionally a third integer or a string"
,
conv_descriptor
,
&
fd
,
&
code
,
&
arg
))
{
return
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment