mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #23836: Add _Py_write_noraise() function
Helper to write() which retries write() if it is interrupted by a signal (fails with EINTR).
This commit is contained in:
parent
81541f4480
commit
82c3e4599d
2 changed files with 88 additions and 48 deletions
|
@ -84,6 +84,11 @@ PyAPI_FUNC(Py_ssize_t) _Py_write(
|
|||
const void *buf,
|
||||
size_t count);
|
||||
|
||||
PyAPI_FUNC(Py_ssize_t) _Py_write_noraise(
|
||||
int fd,
|
||||
const void *buf,
|
||||
size_t count);
|
||||
|
||||
#ifdef HAVE_READLINK
|
||||
PyAPI_FUNC(int) _Py_wreadlink(
|
||||
const wchar_t *path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue