@@ -35,8 +35,10 @@ typedef enum {
35
35
_Py_ERROR_OTHER
36
36
} _Py_error_handler ;
37
37
38
+ // Export for '_testinternalcapi' shared extension
38
39
PyAPI_FUNC (_Py_error_handler ) _Py_GetErrorHandler (const char * errors );
39
40
41
+ // Export for '_testinternalcapi' shared extension
40
42
PyAPI_FUNC (int ) _Py_DecodeLocaleEx (
41
43
const char * arg ,
42
44
wchar_t * * wstr ,
@@ -45,6 +47,7 @@ PyAPI_FUNC(int) _Py_DecodeLocaleEx(
45
47
int current_locale ,
46
48
_Py_error_handler errors );
47
49
50
+ // Export for '_testinternalcapi' shared extension
48
51
PyAPI_FUNC (int ) _Py_EncodeLocaleEx (
49
52
const wchar_t * text ,
50
53
char * * str ,
@@ -98,23 +101,27 @@ struct _Py_stat_struct {
98
101
# define _Py_stat_struct stat
99
102
#endif
100
103
104
+ // Export for 'mmap' shared extension
101
105
PyAPI_FUNC (int ) _Py_fstat (
102
106
int fd ,
103
107
struct _Py_stat_struct * status );
104
108
109
+ // Export for 'mmap' shared extension
105
110
PyAPI_FUNC (int ) _Py_fstat_noraise (
106
111
int fd ,
107
112
struct _Py_stat_struct * status );
108
113
114
+ // Export for '_tkinter' shared extension
109
115
PyAPI_FUNC (int ) _Py_stat (
110
116
PyObject * path ,
111
117
struct stat * status );
112
118
113
- // Export for 'select' shared extension (Solaris newDevPollObject() uses it )
119
+ // Export for 'select' shared extension (Solaris newDevPollObject())
114
120
PyAPI_FUNC (int ) _Py_open (
115
121
const char * pathname ,
116
122
int flags );
117
123
124
+ // Export for '_posixsubprocess' shared extension
118
125
PyAPI_FUNC (int ) _Py_open_noraise (
119
126
const char * pathname ,
120
127
int flags );
@@ -128,12 +135,13 @@ extern Py_ssize_t _Py_read(
128
135
void * buf ,
129
136
size_t count );
130
137
131
- // Export for 'select' shared extension (Solaris devpoll_flush() uses it )
138
+ // Export for 'select' shared extension (Solaris devpoll_flush())
132
139
PyAPI_FUNC (Py_ssize_t ) _Py_write (
133
140
int fd ,
134
141
const void * buf ,
135
142
size_t count );
136
143
144
+ // Export for '_posixsubprocess' shared extension
137
145
PyAPI_FUNC (Py_ssize_t ) _Py_write_noraise (
138
146
int fd ,
139
147
const void * buf ,
@@ -165,12 +173,15 @@ extern wchar_t* _Py_wgetcwd(
165
173
166
174
extern int _Py_get_inheritable (int fd );
167
175
176
+ // Export for '_socket' shared extension
168
177
PyAPI_FUNC (int ) _Py_set_inheritable (int fd , int inheritable ,
169
178
int * atomic_flag_works );
170
179
180
+ // Export for '_posixsubprocess' shared extension
171
181
PyAPI_FUNC (int ) _Py_set_inheritable_async_safe (int fd , int inheritable ,
172
182
int * atomic_flag_works );
173
183
184
+ // Export for '_socket' shared extension
174
185
PyAPI_FUNC (int ) _Py_dup (int fd );
175
186
176
187
extern int _Py_get_blocking (int fd );
@@ -180,6 +191,7 @@ extern int _Py_set_blocking(int fd, int blocking);
180
191
#ifdef MS_WINDOWS
181
192
extern void * _Py_get_osfhandle_noraise (int fd );
182
193
194
+ // Export for '_testconsole' shared extension
183
195
PyAPI_FUNC (void * ) _Py_get_osfhandle (int fd );
184
196
185
197
extern int _Py_open_osfhandle_noraise (void * handle , int flags );
@@ -234,6 +246,7 @@ extern int _Py_GetLocaleconvNumeric(
234
246
PyObject * * decimal_point ,
235
247
PyObject * * thousands_sep );
236
248
249
+ // Export for '_posixsubprocess' (on macOS)
237
250
PyAPI_FUNC (void ) _Py_closerange (int first , int last );
238
251
239
252
extern wchar_t * _Py_GetLocaleEncoding (void );
@@ -262,7 +275,10 @@ extern int _Py_add_relfile(wchar_t *dirname,
262
275
const wchar_t * relfile ,
263
276
size_t bufsize );
264
277
extern size_t _Py_find_basename (const wchar_t * filename );
278
+
279
+ // Export for '_testinternalcapi' shared extension
265
280
PyAPI_FUNC (wchar_t * ) _Py_normpath (wchar_t * path , Py_ssize_t size );
281
+
266
282
extern wchar_t * _Py_normpath_and_size (wchar_t * path , Py_ssize_t size , Py_ssize_t * length );
267
283
268
284
// The Windows Games API family does not provide these functions
0 commit comments