Issue #9425: Create private _Py_stat() function

Use stat() or _wstat() depending on the OS.
This commit is contained in:
Victor Stinner 2010-08-14 14:50:26 +00:00
parent 4c9aa45175
commit 4f4402c4bb
2 changed files with 38 additions and 0 deletions

View file

@ -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