2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>

* psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
This commit is contained in:
Joel Sherrill
2010-04-25 19:53:38 +00:00
parent 85e0a2201f
commit 18b3b58110
2 changed files with 9 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com> 2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init() * psx07/init.c, psx07/task.c: Introduce enough of a delay so the Init()

View File

@@ -316,11 +316,11 @@ int doErrorTest(void)
/* writev -- iov_len total overflows */ /* writev -- iov_len total overflows */
vec[0].iov_base = vec; vec[0].iov_base = vec;
vec[0].iov_len = SSIZE_MAX; vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec; vec[1].iov_base = vec;
vec[1].iov_len = SSIZE_MAX; vec[1].iov_len = SIZE_MAX;
vec[2].iov_base = vec; vec[2].iov_base = vec;
vec[2].iov_len = SSIZE_MAX; vec[2].iov_len = SIZE_MAX;
puts("writev iov_len total overflows -- EINVAL"); puts("writev iov_len total overflows -- EINVAL");
rc = writev(fd, vec, 3); rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) { if ( (rc != -1) || (errno != EINVAL) ) {
@@ -331,9 +331,9 @@ int doErrorTest(void)
/* readv -- iov_len total overflows */ /* readv -- iov_len total overflows */
vec[0].iov_base = vec; vec[0].iov_base = vec;
vec[0].iov_len = SSIZE_MAX; vec[0].iov_len = SIZE_MAX;
vec[1].iov_base = vec; vec[1].iov_base = vec;
vec[1].iov_len = SSIZE_MAX; vec[1].iov_len = SIZE_MAX;
puts("readv iov_len total overflows -- EINVAL"); puts("readv iov_len total overflows -- EINVAL");
rc = readv(fd, vec, 2); rc = readv(fd, vec, 2);
if ( (rc != -1) || (errno != EINVAL) ) { if ( (rc != -1) || (errno != EINVAL) ) {