On Sat, Aug 3, 2019 at 12:08 PM Iñaki Baz Castillo <i...@aliax.net> wrote:
>
> On Sat, 3 Aug 2019 at 12:05, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
> > -1 corresponds to UV_EPERM on most platforms.
> >
> > If your assumption is that because the type is ssize_t it can only be
> > >= -1, that's mistaken. Hope that helps!
>
> What is mistaken? All references I read about ssize_t say that it's
> supposed to be >= -1:
>
> For instance, 
> https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html:
>
> > The type ssize_t shall be capable of storing values at least in the range 
> > [-1, {SSIZE_MAX}].

Note the "at least." :-)

In practice it's a signed type that's capable of representing at least
-INT_MAX-1 to INT_MAX.

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to libuv+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/libuv/CAHQurc-GX7RCbobQTTnUidYQ9SyZPwda9WbZ_mZGccoQqsYkdA%40mail.gmail.com.

Reply via email to