[Libsysio-commit] HEAD: libsysio/drivers/native fs_native.c
Brought to you by:
lward
From: Sonja T. <so...@us...> - 2004-08-13 14:40:18
|
Update of /cvsroot/libsysio/libsysio/drivers/native In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7514/drivers/native Modified Files: fs_native.c Log Message: Removed definition of MAX_IOVEC from fs_native.c Fixed ireadx to verify the iov_counts and xtv_counts are valid Index: fs_native.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/native/fs_native.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -w -b -B -p -r1.44 -r1.45 --- fs_native.c 5 Aug 2004 18:29:57 -0000 1.44 +++ fs_native.c 13 Aug 2004 14:40:09 -0000 1.45 @@ -1398,9 +1398,6 @@ doiov(const struct iovec *iov, { ssize_t cc; -#if !(defined(REDSTORM) || defined(MAX_IOVEC)) -#define MAX_IOVEC INT_MAX -#endif if (count <= 0) return -EINVAL; @@ -1425,7 +1422,11 @@ doiov(const struct iovec *iov, */ cc = #ifndef REDSTORM +#ifdef MAX_IOVEC count <= MAX_IOVEC +#else + count <= INT_MAX +#endif ? syscall(nio->nio_op == 'r' ? SYS_readv : SYS_writev, nio->nio_nino->ni_fd, iov, |