[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vm_size_t is unsigned, add vm_ssize_t?
From: |
Samuel Thibault |
Subject: |
Re: vm_size_t is unsigned, add vm_ssize_t? |
Date: |
Tue, 22 Feb 2011 01:48:35 +0100 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Roland McGrath, le Mon 21 Feb 2011 16:42:23 -0800, a écrit :
> 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.
So we need to change the RPC documentation to explicit "-1" instead of
"negative", right?
Samuel