]> granicus.if.org Git - python/commitdiff
Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat
authorSteve Dower <steve.dower@microsoft.com>
Sat, 21 Feb 2015 18:04:10 +0000 (10:04 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 21 Feb 2015 18:04:10 +0000 (10:04 -0800)
Modules/posixmodule.c
Python/fileutils.c

index cf59724955b2f456f7239cad1448e45b29c3b90c..48738bd7eafec3c2f20c998c40a666c72aa72c47 100644 (file)
@@ -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, '.');
index 8f3fdca7557507fe4c6a7fdb4423b6ba050ff50e..bf99e2d6bc9f6387d1ad51aff38ab7b90e813868 100644 (file)
@@ -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;