summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-01 16:34:45 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-04-01 16:34:45 (GMT)
commit82c3e4599d067f7dc72cea1530d3a26ba1682028 (patch)
treefe7baed4b7cc0b58372f77c7bda499ef653ea0de /Include
parent81541f448066142c04fae736c3dda23b184c32be (diff)
downloadcpython-82c3e4599d067f7dc72cea1530d3a26ba1682028.zip
cpython-82c3e4599d067f7dc72cea1530d3a26ba1682028.tar.gz
cpython-82c3e4599d067f7dc72cea1530d3a26ba1682028.tar.bz2
Issue #23836: Add _Py_write_noraise() function
Helper to write() which retries write() if it is interrupted by a signal (fails with EINTR).
Diffstat (limited to 'Include')
-rw-r--r--Include/fileutils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h
index 4fd3172..2430c26 100644
--- a/Include/fileutils.h
+++ b/Include/fileutils.h
@@ -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,