mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue #9425: Create private _Py_stat() function
Use stat() or _wstat() depending on the OS.
This commit is contained in:
parent
4c9aa45175
commit
4f4402c4bb
2 changed files with 38 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue