make stdio open, read, and write operations cancellation points