Message238514
To factorize code handling EINTR, I propose add 2 new functions to fileutils.h: _Py_read() and _Py_write().
Attached patch adds these functions and use them in the os and _io modules.
The code of the functions is based on the code from the os and _io modules. The main change is that the functions now truncate code if greater than PY_SSIZE_T_MAX. Other changes are just refactoring. |
|
Date |
User |
Action |
Args |
2015-03-19 13:33:30 | vstinner | set | recipients:
+ vstinner |
2015-03-19 13:33:30 | vstinner | set | messageid: <1426772010.62.0.268490898603.issue23708@psf.upfronthosting.co.za> |
2015-03-19 13:33:30 | vstinner | link | issue23708 messages |
2015-03-19 13:33:30 | vstinner | create | |
|