Re: [PATCH] Fix 32-bit SSIZE_MAX

2016-07-14 Thread Corinna Vinschen
On Jul 14 12:39, Eric Blake wrote: > On 07/14/2016 09:09 AM, Corinna Vinschen wrote: > > On Jul 13 15:02, Eric Blake wrote: > >> POSIX requires that SSIZE_MAX have the same type as ssize_t, but > >> on 32-bit, we were defining it as a long even though ssize_t > >> resolves to an int. It also requi

Re: [PATCH] Fix 32-bit SSIZE_MAX

2016-07-14 Thread Eric Blake
On 07/14/2016 09:09 AM, Corinna Vinschen wrote: > On Jul 13 15:02, Eric Blake wrote: >> POSIX requires that SSIZE_MAX have the same type as ssize_t, but >> on 32-bit, we were defining it as a long even though ssize_t >> resolves to an int. It also requires that SSIZE_MAX be usable >> via preproces

Re: [PATCH] Fix 32-bit SSIZE_MAX

2016-07-14 Thread Corinna Vinschen
On Jul 13 15:02, Eric Blake wrote: > POSIX requires that SSIZE_MAX have the same type as ssize_t, but > on 32-bit, we were defining it as a long even though ssize_t > resolves to an int. It also requires that SSIZE_MAX be usable > via preprocessor #if, so we can't cheat and use a cast. > > If thi