blob: 2971d9d1a306cd8d7b237c26862395b1ef8e6b0c [file] [log] [blame]
Victor Stinner4e314432010-10-07 21:45:39 +00001#ifndef Py_FILEUTILS_H
2#define Py_FILEUTILS_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8PyAPI_FUNC(wchar_t *) _Py_char2wchar(
9 char *arg);
10
11PyAPI_FUNC(char*) _Py_wchar2char(
12 const wchar_t *text);
13
14#if defined(MS_WINDOWS) || defined(HAVE_STAT)
15PyAPI_FUNC(int) _Py_wstat(
16 const wchar_t* path,
17 struct stat *buf);
18#endif
19
20#ifdef HAVE_STAT
21PyAPI_FUNC(int) _Py_stat(
22 PyObject *unicode,
23 struct stat *statbuf);
24#endif
25
26PyAPI_FUNC(FILE *) _Py_wfopen(
27 const wchar_t *path,
28 const wchar_t *mode);
29
30PyAPI_FUNC(FILE*) _Py_fopen(
31 PyObject *unicode,
32 const char *mode);
33
34#ifdef HAVE_READLINK
35PyAPI_FUNC(int) _Py_wreadlink(
36 const wchar_t *path,
37 wchar_t *buf,
38 size_t bufsiz);
39#endif
40
41#ifdef HAVE_REALPATH
42PyAPI_FUNC(wchar_t*) _Py_wrealpath(
43 const wchar_t *path,
44 wchar_t *resolved_path);
45#endif
46
47PyAPI_FUNC(wchar_t*) _Py_wgetcwd(
48 wchar_t *buf,
49 size_t size);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* !Py_FILEUTILS_H */