You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB

  1. #ifndef Py_FILEUTILS_H
  2. #define Py_FILEUTILS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. PyAPI_FUNC(PyObject *) _Py_device_encoding(int);
  7. PyAPI_FUNC(wchar_t *) _Py_char2wchar(
  8. const char *arg,
  9. size_t *size);
  10. PyAPI_FUNC(char*) _Py_wchar2char(
  11. const wchar_t *text,
  12. size_t *error_pos);
  13. #if defined(HAVE_STAT) && !defined(MS_WINDOWS)
  14. PyAPI_FUNC(int) _Py_wstat(
  15. const wchar_t* path,
  16. struct stat *buf);
  17. #endif
  18. #ifdef HAVE_STAT
  19. PyAPI_FUNC(int) _Py_stat(
  20. PyObject *path,
  21. struct stat *statbuf);
  22. #endif
  23. PyAPI_FUNC(FILE *) _Py_wfopen(
  24. const wchar_t *path,
  25. const wchar_t *mode);
  26. PyAPI_FUNC(FILE*) _Py_fopen(
  27. PyObject *path,
  28. const char *mode);
  29. #ifdef HAVE_READLINK
  30. PyAPI_FUNC(int) _Py_wreadlink(
  31. const wchar_t *path,
  32. wchar_t *buf,
  33. size_t bufsiz);
  34. #endif
  35. #ifdef HAVE_REALPATH
  36. PyAPI_FUNC(wchar_t*) _Py_wrealpath(
  37. const wchar_t *path,
  38. wchar_t *resolved_path,
  39. size_t resolved_path_size);
  40. #endif
  41. PyAPI_FUNC(wchar_t*) _Py_wgetcwd(
  42. wchar_t *buf,
  43. size_t size);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif /* !Py_FILEUTILS_H */