Ignore:
Timestamp:
Apr 25, 2010, 7:53:38 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
2b0d72a
Parents:
85e0a22
Message:

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

  • psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxrdwrv/test.c

    r85e0a22 r18b3b581  
    317317  /*  writev --  iov_len total overflows */
    318318  vec[0].iov_base = vec;
    319   vec[0].iov_len = SSIZE_MAX;
    320   vec[1].iov_base = vec;
    321   vec[1].iov_len = SSIZE_MAX;
     319  vec[0].iov_len = SIZE_MAX;
     320  vec[1].iov_base = vec;
     321  vec[1].iov_len = SIZE_MAX;
    322322  vec[2].iov_base = vec;
    323   vec[2].iov_len = SSIZE_MAX;
     323  vec[2].iov_len = SIZE_MAX;
    324324  puts("writev iov_len total overflows -- EINVAL");
    325325  rc = writev(fd, vec, 3);
     
    332332  /*  readv --  iov_len total overflows */
    333333  vec[0].iov_base = vec;
    334   vec[0].iov_len = SSIZE_MAX;
    335   vec[1].iov_base = vec;
    336   vec[1].iov_len = SSIZE_MAX;
     334  vec[0].iov_len = SIZE_MAX;
     335  vec[1].iov_base = vec;
     336  vec[1].iov_len = SIZE_MAX;
    337337  puts("readv iov_len total overflows -- EINVAL");
    338338  rc = readv(fd, vec, 2);
Note: See TracChangeset for help on using the changeset viewer.