From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id E95753876057; Thu, 26 Mar 2020 11:27:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E95753876057 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] fhandler_serial: fix comments X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 082f2513c721e942d0fd563c4dc9117eee3513ab X-Git-Newrev: 8ffe12b394e4ed593b38c991da6d094100c3b78d Message-Id: <20200326112701.E95753876057@sourceware.org> Date: Thu, 26 Mar 2020 11:27:01 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 11:27:02 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8ffe12b394e4ed593b38c991da6d094100c3b78d commit 8ffe12b394e4ed593b38c991da6d094100c3b78d Author: Corinna Vinschen Date: Wed Mar 25 12:25:06 2020 +0100 fhandler_serial: fix comments Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/fhandler_serial.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc index 1750a9f97..3fd8a974c 100644 --- a/winsup/cygwin/fhandler_serial.cc +++ b/winsup/cygwin/fhandler_serial.cc @@ -45,7 +45,7 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen) if (ulen == 0) return; - /* If VMIN > 0 in blocking mode, we have to wait for at least VMIN chars. + /* If MIN > 0 in blocking mode, we have to wait for at least MIN chars. Otherwise we're in polling mode and there's no minimum chars. */ ssize_t minchars = is_nonblocking () ? 0 : vmin_; @@ -85,8 +85,8 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen) and don't wait. */ if (st.cbInQue && st.cbInQue >= minchars) bytes_to_read = MIN (st.cbInQue, bytes_to_read); - /* Otherwise, if VMIN > 0, VTIME == 0, we have to wait until - VMIN bytes are available in the inbound queue. */ + /* Otherwise, if MIN > 0, TIME == 0, we have to wait until + MIN bytes are available in the inbound queue. */ else if (minchars && !vtime_) wait_for_vmin = true; }