add writev and readv for c++