summaryrefslogtreecommitdiffstats
path: root/Include/fileutils.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-24 11:16:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-24 11:16:28 (GMT)
commit91afbb60885d5904dc6cb4d063ae33454507bf71 (patch)
tree88446ccd3150c4e107d0157cdb85a70dbc4de596 /Include/fileutils.h
parent10dc48497e9c79d253bd0861b5f41843a114f146 (diff)
downloadcpython-91afbb60885d5904dc6cb4d063ae33454507bf71.zip
cpython-91afbb60885d5904dc6cb4d063ae33454507bf71.tar.gz
cpython-91afbb60885d5904dc6cb4d063ae33454507bf71.tar.bz2
Issue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c
I expected more users of _Py_wstat(), but in practice it's only used by Modules/getpath.c. Move the function because it's not needed on Windows. Windows uses PC/getpathp.c which uses the Win32 API (ex: GetFileAttributesW()) not the POSIX API.
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r--Include/fileutils.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h
index 577ad88..93a9297 100644
--- a/Include/fileutils.h
+++ b/Include/fileutils.h
@@ -15,10 +15,6 @@ PyAPI_FUNC(char*) Py_EncodeLocale(
const wchar_t *text,
size_t *error_pos);
-PyAPI_FUNC(int) _Py_wstat(
- const wchar_t* path,
- struct stat *buf);
-
#ifndef Py_LIMITED_API
#ifdef MS_WINDOWS