summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-14 14:50:26 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-14 14:50:26 (GMT)
commit4f4402c4bb780a89c1d1c2564522e8ca901cbe17 (patch)
tree3a0c661bfcb5c4407eae886b58cbf4ba6a410812 /Include
parent4c9aa451756ab52dd1fba381469fdbb2201ee4c4 (diff)
downloadcpython-4f4402c4bb780a89c1d1c2564522e8ca901cbe17.zip
cpython-4f4402c4bb780a89c1d1c2564522e8ca901cbe17.tar.gz
cpython-4f4402c4bb780a89c1d1c2564522e8ca901cbe17.tar.bz2
Issue #9425: Create private _Py_stat() function
Use stat() or _wstat() depending on the OS.
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index d5ac13e..eb5ea28 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -135,6 +135,11 @@ PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *);
PyAPI_FUNC(char*) _Py_wchar2char(const wchar_t *text);
PyAPI_FUNC(FILE *) _Py_wfopen(const wchar_t *path, const wchar_t *mode);
+/* _Py_stat lives in import.c */
+#ifdef HAVE_STAT
+int _Py_stat(PyObject *unicode, struct stat *statbuf);
+#endif
+
#ifdef __cplusplus
}
#endif