Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



thorpej
Tue Jul 28 10:55:38 PDT 1998
Update of /cvsroot/src/sys/sys
In directory nb00:/tmp/cvs-serv19961

Modified Files:
        uio.h 
Log Message:
Make uio_resid a size_t.


thorpej
Tue Jul 28 10:58:29 PDT 1998
Update of /cvsroot/src/sys/kern
In directory nb00:/tmp/cvs-serv19983

Modified Files:
        sys_generic.c 
Log Message:
When checking for overflow in the residual count, test against SSIZE_MAX.
The read/write system calls return ssize_t because -1 is used to indicate
error, therefore the transfer size MUST be limited to SSIZE_MAX, otherwise
garbage can be returned to the user.

There is NO change from existing behavior here, only a more precise
definition of that the semantics are, except in the Alpha case, where
the full SSIZE_MAX transfer size can now be realized (ssize_t is 64-bit
on the Alpha).




Home | Main Index | Thread Index | Old Index