From 3fa7a91d37b3c000673075f58d332aefad4510bf Mon Sep 17 00:00:00 2001 From: Anton Dimitrov Date: Mon, 1 Oct 2018 17:00:21 +0300 Subject: [PATCH] Problem: zmq_msg_send doc incomplete return value description (issue #2488) Solution: Add more information to the doc specifying that MAX_INT is the maximum possible return value. --- doc/zmq_msg_send.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/zmq_msg_send.txt b/doc/zmq_msg_send.txt index 77b711c8b4..7604f77dfa 100644 --- a/doc/zmq_msg_send.txt +++ b/doc/zmq_msg_send.txt @@ -57,7 +57,8 @@ when sending each message part except the final one. RETURN VALUE ------------ The _zmq_msg_send()_ function shall return number of bytes in the message -if successful. Otherwise it shall return `-1` and set 'errno' to one of the +if successful (if number of bytes is higher than 'MAX_INT', the function will +return 'MAX_INT'). Otherwise it shall return `-1` and set 'errno' to one of the values defined below.