Feature/writev master

/cc @isaacs @bnoordhuis

Previous discussion: #5246