Issue #23152: Move declaration into a header and exclude from stable API.
This commit is contained in:
parent
4f38e483c2
commit
12ebbc74f1
|
@ -21,6 +21,7 @@ PyAPI_FUNC(int) _Py_wstat(
|
||||||
struct stat *buf);
|
struct stat *buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef Py_LIMITED_API
|
||||||
#if defined(HAVE_FSTAT) || defined(MS_WINDOWS)
|
#if defined(HAVE_FSTAT) || defined(MS_WINDOWS)
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
|
@ -41,6 +42,10 @@ struct _Py_stat_struct {
|
||||||
int st_ctime_nsec;
|
int st_ctime_nsec;
|
||||||
unsigned long st_file_attributes;
|
unsigned long st_file_attributes;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PyAPI_FUNC(void) _Py_time_t_to_FILE_TIME(time_t, int, FILETIME *);
|
||||||
|
PyAPI_FUNC(void) _Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *,
|
||||||
|
ULONG, struct _Py_stat_struct *);
|
||||||
#else
|
#else
|
||||||
# define _Py_stat_struct stat
|
# define _Py_stat_struct stat
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,6 +54,7 @@ PyAPI_FUNC(int) _Py_fstat(
|
||||||
int fd,
|
int fd,
|
||||||
struct _Py_stat_struct *stat);
|
struct _Py_stat_struct *stat);
|
||||||
#endif /* HAVE_FSTAT || MS_WINDOWS */
|
#endif /* HAVE_FSTAT || MS_WINDOWS */
|
||||||
|
#endif /* Py_LIMITED_API */
|
||||||
|
|
||||||
#ifdef HAVE_STAT
|
#ifdef HAVE_STAT
|
||||||
PyAPI_FUNC(int) _Py_stat(
|
PyAPI_FUNC(int) _Py_stat(
|
||||||
|
|
|
@ -1560,10 +1560,6 @@ get_target_path(HANDLE hdl, wchar_t **target_path)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* defined in fileutils.c */
|
|
||||||
void
|
|
||||||
_Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag, struct _Py_stat_struct *result);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
win32_xstat_impl_w(const wchar_t *path, struct _Py_stat_struct *result,
|
win32_xstat_impl_w(const wchar_t *path, struct _Py_stat_struct *result,
|
||||||
BOOL traverse);
|
BOOL traverse);
|
||||||
|
@ -6201,11 +6197,6 @@ exit:
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MS_WINDOWS
|
|
||||||
void
|
|
||||||
_Py_time_t_to_FILE_TIME(time_t time_in, int nsec_in, FILETIME *out_ptr);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times, PyObject *ns, int dir_fd, int follow_symlinks)
|
os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times, PyObject *ns, int dir_fd, int follow_symlinks)
|
||||||
/*[clinic end generated code: output=891489c35cc68c5d input=1f18c17d5941aa82]*/
|
/*[clinic end generated code: output=891489c35cc68c5d input=1f18c17d5941aa82]*/
|
||||||
|
|
Loading…
Reference in New Issue