AROS: We need emulation of readv/writev on aros

This commit is contained in:
Ronnie Sahlberg
2013-04-22 18:50:05 -07:00
parent 322be0cf24
commit 0a026e2da7
3 changed files with 15 additions and 0 deletions
+9
View File
@@ -167,3 +167,12 @@ int aros_poll(struct pollfd *fds, unsigned int nfds, int timo)
return rc;
}
ssize_t aros_readv(int fd, const struct iovec *iov, int iovcnt)
{
return read(fd, iov[0].iov_base, iov[0].iov_len);
}
ssize_t aros_writev(int fd, const struct iovec *iov, int iovcnt)
{
return write(fd, iov[0].iov_base, iov[0].iov_len);
}