From: Steve Dower Date: Sat, 21 Feb 2015 18:04:10 +0000 (-0800) Subject: Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat X-Git-Tag: v3.5.0a2~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2af1a5a5a73064328246f6c2b2233365e54acf3;p=python Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index cf59724955..48738bd7ea 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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, '.'); diff --git a/Python/fileutils.c b/Python/fileutils.c index 8f3fdca755..bf99e2d6bc 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -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;