Lines Matching defs:iovcnt
137 static int UserIovItemCheck(const struct iovec *iov, const int iovcnt)
140 for (i = 0; i < iovcnt; ++i) {
149 return iovcnt;
152 static int UserIovCopy(struct iovec **iovBuf, const struct iovec *iov, const int iovcnt, int *valid_iovcnt)
155 int bufLen = iovcnt * sizeof(struct iovec);
170 ret = UserIovItemCheck(*iovBuf, iovcnt);
1476 ssize_t SysReadv(int fd, const struct iovec *iov, int iovcnt)
1484 if ((iov == NULL) || (iovcnt < 0) || (iovcnt > IOV_MAX)) {
1488 if (iovcnt == 0) {
1492 ret = UserIovCopy(&iovRet, iov, iovcnt, &valid_iovcnt);
1512 ssize_t SysWritev(int fd, const struct iovec *iov, int iovcnt)
1520 if ((iovcnt < 0) || (iovcnt > IOV_MAX)) {
1524 if (iovcnt == 0) {
1532 ret = UserIovCopy(&iovRet, iov, iovcnt, &valid_iovcnt);
1537 if (valid_iovcnt != iovcnt) {
2104 ssize_t SysPreadv(int fd, const struct iovec *iov, int iovcnt, long loffset, long hoffset)
2115 if ((iov == NULL) || (iovcnt < 0) || (iovcnt > IOV_MAX)) {
2119 if (iovcnt == 0) {
2123 ret = UserIovCopy(&iovRet, iov, iovcnt, &valid_iovcnt);
2143 ssize_t SysPwritev(int fd, const struct iovec *iov, int iovcnt, long loffset, long hoffset)
2153 if ((iov == NULL) || (iovcnt < 0) || (iovcnt > IOV_MAX)) {
2157 if (iovcnt == 0) {
2161 ret = UserIovCopy(&iovRet, iov, iovcnt, &valid_iovcnt);
2166 if (valid_iovcnt != iovcnt) {