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
a391b113
Commit
a391b113
authored
Feb 25, 2011
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename internal helper function and make it static.
parent
941f956d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Modules/posixmodule.c
Modules/posixmodule.c
+5
-5
No files found.
Modules/posixmodule.c
View file @
a391b113
...
@@ -363,8 +363,8 @@ static int win32_can_symlink = 0;
...
@@ -363,8 +363,8 @@ static int win32_can_symlink = 0;
#endif
#endif
#endif
#endif
int
static
int
PyP
arse_off_t
(
PyObject
*
arg
,
void
*
addr
)
_p
arse_off_t
(
PyObject
*
arg
,
void
*
addr
)
{
{
#if !defined(HAVE_LARGEFILE_SUPPORT)
#if !defined(HAVE_LARGEFILE_SUPPORT)
*
((
off_t
*
)
addr
)
=
PyLong_AsLong
(
arg
);
*
((
off_t
*
)
addr
)
=
PyLong_AsLong
(
arg
);
...
@@ -5827,10 +5827,10 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict)
...
@@ -5827,10 +5827,10 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict)
#ifdef __APPLE__
#ifdef __APPLE__
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iiO&O&|OOi:sendfile"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iiO&O&|OOi:sendfile"
,
keywords
,
&
out
,
&
in
,
PyParse_off_t
,
&
offset
,
PyP
arse_off_t
,
&
sbytes
,
keywords
,
&
out
,
&
in
,
_parse_off_t
,
&
offset
,
_p
arse_off_t
,
&
sbytes
,
#else
#else
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iiO&n|OOi:sendfile"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iiO&n|OOi:sendfile"
,
keywords
,
&
out
,
&
in
,
PyP
arse_off_t
,
&
offset
,
&
len
,
keywords
,
&
out
,
&
in
,
_p
arse_off_t
,
&
offset
,
&
len
,
#endif
#endif
&
headers
,
&
trailers
,
&
flags
))
&
headers
,
&
trailers
,
&
flags
))
return
NULL
;
return
NULL
;
...
@@ -5914,7 +5914,7 @@ done:
...
@@ -5914,7 +5914,7 @@ done:
return
Py_BuildValue
(
"nO"
,
ret
,
Py_None
);
return
Py_BuildValue
(
"nO"
,
ret
,
Py_None
);
}
}
#endif
#endif
PyP
arse_off_t
(
offobj
,
&
offset
);
_p
arse_off_t
(
offobj
,
&
offset
);
Py_BEGIN_ALLOW_THREADS
Py_BEGIN_ALLOW_THREADS
ret
=
sendfile
(
out
,
in
,
&
offset
,
count
);
ret
=
sendfile
(
out
,
in
,
&
offset
,
count
);
Py_END_ALLOW_THREADS
Py_END_ALLOW_THREADS
...
...
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