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
7cb695f7
Commit
7cb695f7
authored
Feb 21, 2015
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat
parent
e1ad8fab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Modules/posixmodule.c
Modules/posixmodule.c
+3
-3
Python/fileutils.c
Python/fileutils.c
+2
-2
No files found.
Modules/posixmodule.c
View file @
7cb695f7
...
...
@@ -1580,7 +1580,7 @@ get_target_path(HANDLE hdl, wchar_t **target_path)
/* defined in fileutils.c */
int
attribute_data_to_stat
(
BY_HANDLE_FILE_INFORMATION
*
info
,
ULONG
reparse_tag
,
struct
_Py_stat_struct
*
result
);
_Py_
attribute_data_to_stat
(
BY_HANDLE_FILE_INFORMATION
*
info
,
ULONG
reparse_tag
,
struct
_Py_stat_struct
*
result
);
static
int
win32_xstat_impl_w
(
const
wchar_t
*
path
,
struct
_Py_stat_struct
*
result
,
...
...
@@ -1669,7 +1669,7 @@ win32_xstat_impl(const char *path, struct _Py_stat_struct *result,
}
else
CloseHandle
(
hFile
);
}
attribute_data_to_stat
(
&
info
,
reparse_tag
,
result
);
_Py_
attribute_data_to_stat
(
&
info
,
reparse_tag
,
result
);
/* Set S_IEXEC if it is an .exe, .bat, ... */
dot
=
strrchr
(
path
,
'.'
);
...
...
@@ -1765,7 +1765,7 @@ win32_xstat_impl_w(const wchar_t *path, struct _Py_stat_struct *result,
}
else
CloseHandle
(
hFile
);
}
attribute_data_to_stat
(
&
info
,
reparse_tag
,
result
);
_Py_
attribute_data_to_stat
(
&
info
,
reparse_tag
,
result
);
/* Set S_IEXEC if it is an .exe, .bat, ... */
dot
=
wcsrchr
(
path
,
'.'
);
...
...
Python/fileutils.c
View file @
7cb695f7
...
...
@@ -592,7 +592,7 @@ attributes_to_mode(DWORD attr)
}
int
attribute_data_to_stat
(
BY_HANDLE_FILE_INFORMATION
*
info
,
ULONG
reparse_tag
,
struct
_Py_stat_struct
*
result
)
_Py_
attribute_data_to_stat
(
BY_HANDLE_FILE_INFORMATION
*
info
,
ULONG
reparse_tag
,
struct
_Py_stat_struct
*
result
)
{
memset
(
result
,
0
,
sizeof
(
*
result
));
result
->
st_mode
=
attributes_to_mode
(
info
->
dwFileAttributes
);
...
...
@@ -671,7 +671,7 @@ _Py_fstat(int fd, struct _Py_stat_struct *result)
return
-
1
;
}
attribute_data_to_stat
(
&
info
,
0
,
result
);
_Py_
attribute_data_to_stat
(
&
info
,
0
,
result
);
/* specific to fstat() */
result
->
st_ino
=
(((
__int64
)
info
.
nFileIndexHigh
)
<<
32
)
+
info
.
nFileIndexLow
;
return
0
;
...
...
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