From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:42781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hV9d1-00026t-TG for guix-patches@gnu.org; Mon, 27 May 2019 03:01:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hV9d0-0007Zi-Tr for guix-patches@gnu.org; Mon, 27 May 2019 03:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38965) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hV9d0-0007Zd-Rt for guix-patches@gnu.org; Mon, 27 May 2019 03:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hV9d0-0004nd-1K for guix-patches@gnu.org; Mon, 27 May 2019 03:01:02 -0400 Subject: [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for. Resent-Message-ID: From: Pierre Neidhardt In-Reply-To: <87a7f8kird.fsf@gnu.org> References: <20190524134238.22802-1-ludo@gnu.org> <20190524134238.22802-7-ludo@gnu.org> <877eaeo2zr.fsf@ambrevar.xyz> <87zhn9kn3p.fsf@gnu.org> <87r28llyr4.fsf@ambrevar.xyz> <87a7f8kird.fsf@gnu.org> Date: Mon, 27 May 2019 09:00:03 +0200 Message-ID: <87a7f8mlfw.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 35880@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable It does make sense, but then don't we have the same issue with zlib.scm: =2D-8<---------------cut here---------------start------------->8--- (define gzread! (let ((proc (zlib-procedure int "gzread" (list '* '* unsigned-int)))) (lambda* (gzfile bv #:optional (start 0) (count (bytevector-length bv))) "Read up to COUNT bytes from GZFILE into BV at offset START. Return = the number of uncompressed bytes actually read; it is zero if COUNT is zero or = if the end-of-stream has been reached." ... =2D-8<---------------cut here---------------end--------------->8--- I initially tried to mimic zlib.scm and this part confused me a lot back th= en. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlzrivMACgkQm9z0l6S7 zH/k8AgAnuANtYKcJPMxwlex95fPtVn/zOHGgWsz9ZbNoL/svuDgQgUYHHoUE7Rb WP/8jO1gzWmcD/kN0yoxqxjDsJ6l4S49ZAG+C6Z8CXurAJdoFqTMc3hXS4himnop 4ExpModEGqwrI2IQ6U7g58/hz7F5Mj2LrjgxTrVTZsdK7RD1gM0Fnrulih3uScQx 5VXTJpqyASsXcovdN23cCNPT2k9IzJcVHkdwj8ok2bDGOCoLcjeQBdehALY4JIKw HTuZ9/vEkPAnoHel9H7PXLWH6Id8Pqs1pTWjhYkvCOXPMnqLjhdwoL+LS4WpwGNG YcwrTVahk0+v14BxJstzXtkddJNVlA== =UXvg -----END PGP SIGNATURE----- --=-=-=--