From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Mon, 19 Feb 2018 22:18:05 +0200 Message-ID: <83eflg91j6.fsf@gnu.org> References: <1775923222.898447.1518559575706@mail.libero.it> <277032065.898859.1518560883271@mail.libero.it> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1519071378 24165 195.159.176.226 (19 Feb 2018 20:16:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 20:16:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 19 21:16:13 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enrr7-0005ia-ID for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 21:16:09 +0100 Original-Received: from localhost ([::1]:52198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enrt9-0008GG-LH for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 15:18:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enrsv-0008E6-Pf for emacs-devel@gnu.org; Mon, 19 Feb 2018 15:18:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enrsr-0000JP-LZ for emacs-devel@gnu.org; Mon, 19 Feb 2018 15:18:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enrsr-0000JL-I7; Mon, 19 Feb 2018 15:17:57 -0500 Original-Received: from [176.228.60.248] (port=2772 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1enrsq-0005Ju-SQ; Mon, 19 Feb 2018 15:17:57 -0500 In-reply-to: (message from Andy Moreton on Mon, 19 Feb 2018 20:03:09 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223438 > From: Andy Moreton > Date: Mon, 19 Feb 2018 20:03:09 +0000 > > int sys_read(int fd, char *buffer, unsigned int count); > > The limit for a chunk should be INT_MAX (not UINT_MAX) so that it > is representable in the (signed) return value. We should be able to change sys_read to return ssize_t instead. Can you try that?