[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Expected msgrcv(2) behaviour with msgsz > SSIZE_MAX ?
On Sat, Jan 03, 2009 at 12:25:32PM +0100, Nicolas Joly wrote:
> I was thinking about this a little more, and noticed that msgrcv will
> return negatives values for msgsz exceeding SSIZE_MAX ... in that
> range, a msgsz value of SIZE_MAX will make the syscall return a value
> of -1 as bytes received which will be hard to distinguish from an
I suspect a size that large is too big !!!
Fortunately we are not Linux ... (which doesn't have a separate system
call return register for 'errno' - but converts small -ve return values
to -1 + errno).
David Laight: david%l8s.co.uk@localhost
Main Index |
Thread Index |