The following reply was made to PR kern/147226; it has been noted by GNATS.

From: Garrett Cooper <yanef...@gmail.com>
To: Bruce Cran <br...@cran.org.uk>
Cc: bug-follo...@freebsd.org
Subject: Re: kern/147226: read(fd, buffer, len) returns -1 immediately, if len 
        &gt;=2147483648
Date: Mon, 31 May 2010 16:06:38 -0700

 On Mon, May 31, 2010 at 8:30 AM, Bruce Cran <br...@cran.org.uk> wrote:
 > The following reply was made to PR kern/147226; it has been noted by GNAT=
 S.
 >
 > From: Bruce Cran <br...@cran.org.uk>
 > To: bug-follo...@freebsd.org, eugene.kharito...@gmail.com
 > Cc:
 > Subject: Re: kern/147226: read(fd, buffer, len) returns -1 immediately, =
 =A0if
 > =A0len &gt;=3D2147483648
 > Date: Mon, 31 May 2010 16:21:05 +0100
 >
 > =A0This actually looks like a 64-bit bug.
 > =A0http://opengroup.org/onlinepubs/007908775/xsh/read.html says that up t=
 o
 > =A0SSIZE_MAX bytes must be accepted, whereas FreeBSD only accepts up to
 > =A0INT_MAX bytes.
 
 The point being that SSIZE_MAX is INT_MAX on 32-bit archs and LONG_MAX
 on 64-bit archs.
 Cheers,
 -Garrett
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to