tor. 16. jan. 2020 kl. 14:52 skrev Raymond, David <[email protected]>:
>
> Hmm....
>
> Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I
> guess I was mistaken.

Not necessarily. What you have probably seen is _POSIX_SSIZE_MAX
(which is almost literally
what you wrote in your first post), defined in limits.h to be 32767
(2^15 - 1). But that
specifies the minimum value that SSIZE_MAX can have and still conform
to the POSIX standard.
So the actual SSIZE_MAX may well be (and usually is) much bigger, as
others have pointed out.

> The real issue is whether doing write(2) to a TCP/IP socket bigger
> than 2^15 - 1 bytes causes problems.  I am not very experienced in
> this area.

Reply via email to