[Top][All Lists]

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

Re: vm_size_t is unsigned, add vm_ssize_t?

From: Roland McGrath
Subject: Re: vm_size_t is unsigned, add vm_ssize_t?
Date: Mon, 21 Feb 2011 16:42:23 -0800 (PST)

ssize_t is for things that either return a size_t value or -1.
It's never used for parameters.  I don't think a vm_ssize_t makes any sense.

This is an odd way to use constructed the RPC interface for this, but we
already have it and perhaps there was some reason to do it that way.
You can just pass (vm_size_t) -1 as the value to indicate "no upper limit".
That should work automatically without any special effort on the server side.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]