From unknown Sun Jun 22 03:57:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15325: How does gzip reads/writes data from/to the file. Resent-From: ddun Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Tue, 10 Sep 2013 18:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15325 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: 15325@debbugs.gnu.org X-Debbugs-Original-To: bug-gzip@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13788361671855 (code B ref -1); Tue, 10 Sep 2013 18:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2013 18:02:47 +0000 Received: from localhost ([127.0.0.1]:53040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJSH0-0000Tq-QK for submit@debbugs.gnu.org; Tue, 10 Sep 2013 14:02:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37564) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJS9z-0000Gt-2H for submit@debbugs.gnu.org; Tue, 10 Sep 2013 13:55:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJS9s-00058y-FE for submit@debbugs.gnu.org; Tue, 10 Sep 2013 13:55:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJS9s-00058u-Ct for submit@debbugs.gnu.org; Tue, 10 Sep 2013 13:55:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJS9r-0003ir-Bl for bug-gzip@gnu.org; Tue, 10 Sep 2013 13:55:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJS9o-00057z-5v for bug-gzip@gnu.org; Tue, 10 Sep 2013 13:55:23 -0400 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]:48644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJS9o-00057u-1X for bug-gzip@gnu.org; Tue, 10 Sep 2013 13:55:20 -0400 Received: by mail-qc0-f170.google.com with SMTP id m20so1993971qcx.29 for ; Tue, 10 Sep 2013 10:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=9Ni94doFBkHvrw5DisY+LrehRZkC1MyJOOnqk6Pxhq8=; b=jyLLRYL+za01ZFn6sdRYIsl186LSFcAcnXi5D1oxOZkWIewUvKnysc9txdUfjKie5A ojFKnk1u1Vb30BPqEfNI8Qsz3Z2IcxXROMFg4kxsQMpqUwYdHIaStjpSSPp3+378sB3F t0EeucmBvjNaDjAV7X1e8E94H0ZWAtQpB3YInjL0Ckj4aKi0M/rgNjvQW/jMGLIX08D9 /wNvCy1vp5Zy8cS5uEuE8TEJdswBvR5Nfk1adkInoc38+XjqG8EUZYf3mACCm+ycuMeS MI82XQkhbErQ7XYBul5VNTSobamXilgjFgbIynNnRNYyfETe2FflrU8lRQpJBR0SYZ9L sFdA== X-Received: by 10.49.12.108 with SMTP id x12mr35257632qeb.22.1378835719225; Tue, 10 Sep 2013 10:55:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.32.183 with HTTP; Tue, 10 Sep 2013 10:54:39 -0700 (PDT) From: ddun Date: Tue, 10 Sep 2013 13:54:39 -0400 X-Google-Sender-Auth: DhAhJOBMoVrmKLs7P7DQFuduLoE Message-ID: Content-Type: multipart/alternative; boundary=047d7b6d92f23fa0ee04e60b35e1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Tue, 10 Sep 2013 14:02:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7b6d92f23fa0ee04e60b35e1 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am trying to figure out what functions does gzip uses to read/write the data to/from the files. I saw that for error cases gzip was using *fprintf (stderr.. *but saw no fread/fscanf functions anywhere in the code. * * Can anyone point out the functions used by gzip to read/write to a file and in which code file are they. * * Thanks* * --047d7b6d92f23fa0ee04e60b35e1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I am trying to figure out what f= unctions does gzip uses to read/write the data to/from the files. I saw tha= t for error cases gzip was using fprintf (stderr.. but saw no fread/= fscanf functions anywhere in the code.

Can anyone point out the functions used by gzip = to read/write to a file and in which code file are they.

<= /b>
Thanks=A0
--047d7b6d92f23fa0ee04e60b35e1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 10 14:15:13 2013 Received: (at control) by debbugs.gnu.org; 10 Sep 2013 18:15:14 +0000 Received: from localhost ([127.0.0.1]:53065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJST3-0000oK-IM for submit@debbugs.gnu.org; Tue, 10 Sep 2013 14:15:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJSSy-0000nw-Uk; Tue, 10 Sep 2013 14:15:10 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8AIF70O017448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Sep 2013 14:15:08 -0400 Received: from [10.3.113.115] (ovpn-113-115.phx2.redhat.com [10.3.113.115]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r8AIF7DV019892; Tue, 10 Sep 2013 14:15:07 -0400 Message-ID: <522F61AB.9080103@redhat.com> Date: Tue, 10 Sep 2013 12:15:07 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: ddun Subject: Re: bug#15325: How does gzip reads/writes data from/to the file. References: In-Reply-To: X-Enigmail-Version: 1.5.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control Cc: 15325-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 15325 notabug thanks On 09/10/2013 11:54 AM, ddun wrote: > Hello, >=20 > I am trying to figure out what functions does gzip uses to read/write t= he > data to/from the files. I saw that for error cases gzip was using *fpri= ntf > (stderr.. *but saw no fread/fscanf functions anywhere in the code. > * > * > Can anyone point out the functions used by gzip to read/write to a file= and > in which code file are they. Look for the lower-level read()/write() interface (Unix unbuffered file I/O), not the higher-level fread() (C buffered file I/O). I'm closing this as not a bug, so that it doesn't clog the bug tracker; but feel free to continue to respond as you have other questions. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSL2GrAAoJEKeha0olJ0NqEpAH/jvu+6lJ8FVYTLesL3rc9q6W hxk+CbzdMZLy0sVXGcKyIajoaSCvLZp+NUOzxowcoPVaHUWocHch5iuNRvp0ivDY gMgWR5OPknA5Ps+b7tn660q7A22Ev0bjDBJzuq0gIQfZPBh/WARpIvVHHbMFjYaW k2vLAidW2DME7oS8uIXaZ4+Clm3/KwnC/K14GPJ1Ns3nScFBUJe0mxa/j3ue5rP0 KpDbJbpd37j1cHZ9XuxSNZxY+3xP+BPYTGiftwS/eJ9Ci6t+9Of2PbiUnhCulm5E bzB8SHTMwrkzi6LrUTfHZPym4M7q4sL5BlqpkddUqpbT86MUZ4CMFWD41lOuNRQ= =IxF8 -----END PGP SIGNATURE----- --cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP-- From unknown Sun Jun 22 03:57:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: ddun Subject: bug#15325: closed (Re: bug#15325: How does gzip reads/writes data from/to the file.) Message-ID: References: <522F61AB.9080103@redhat.com> X-Gnu-PR-Message: they-closed 15325 X-Gnu-PR-Package: gzip X-Gnu-PR-Keywords: notabug Reply-To: 15325@debbugs.gnu.org Date: Tue, 10 Sep 2013 18:16:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1378836964-3213-1" This is a multi-part message in MIME format... ------------=_1378836964-3213-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15325: How does gzip reads/writes data from/to the file. which was filed against the gzip package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15325@debbugs.gnu.org. --=20 15325: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15325 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1378836964-3213-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15325-done) by debbugs.gnu.org; 10 Sep 2013 18:15:13 +0000 Received: from localhost ([127.0.0.1]:53063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJST2-0000oF-JQ for submit@debbugs.gnu.org; Tue, 10 Sep 2013 14:15:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJSSy-0000nw-Uk; Tue, 10 Sep 2013 14:15:10 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8AIF70O017448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 10 Sep 2013 14:15:08 -0400 Received: from [10.3.113.115] (ovpn-113-115.phx2.redhat.com [10.3.113.115]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r8AIF7DV019892; Tue, 10 Sep 2013 14:15:07 -0400 Message-ID: <522F61AB.9080103@redhat.com> Date: Tue, 10 Sep 2013 12:15:07 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: ddun Subject: Re: bug#15325: How does gzip reads/writes data from/to the file. References: In-Reply-To: X-Enigmail-Version: 1.5.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 15325-done Cc: 15325-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 15325 notabug thanks On 09/10/2013 11:54 AM, ddun wrote: > Hello, >=20 > I am trying to figure out what functions does gzip uses to read/write t= he > data to/from the files. I saw that for error cases gzip was using *fpri= ntf > (stderr.. *but saw no fread/fscanf functions anywhere in the code. > * > * > Can anyone point out the functions used by gzip to read/write to a file= and > in which code file are they. Look for the lower-level read()/write() interface (Unix unbuffered file I/O), not the higher-level fread() (C buffered file I/O). I'm closing this as not a bug, so that it doesn't clog the bug tracker; but feel free to continue to respond as you have other questions. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSL2GrAAoJEKeha0olJ0NqEpAH/jvu+6lJ8FVYTLesL3rc9q6W hxk+CbzdMZLy0sVXGcKyIajoaSCvLZp+NUOzxowcoPVaHUWocHch5iuNRvp0ivDY gMgWR5OPknA5Ps+b7tn660q7A22Ev0bjDBJzuq0gIQfZPBh/WARpIvVHHbMFjYaW k2vLAidW2DME7oS8uIXaZ4+Clm3/KwnC/K14GPJ1Ns3nScFBUJe0mxa/j3ue5rP0 KpDbJbpd37j1cHZ9XuxSNZxY+3xP+BPYTGiftwS/eJ9Ci6t+9Of2PbiUnhCulm5E bzB8SHTMwrkzi6LrUTfHZPym4M7q4sL5BlqpkddUqpbT86MUZ4CMFWD41lOuNRQ= =IxF8 -----END PGP SIGNATURE----- --cJgUnpKug53v0Tdc1EqBf4m9CDxhv18DP-- ------------=_1378836964-3213-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Sep 2013 18:02:47 +0000 Received: from localhost ([127.0.0.1]:53040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJSH0-0000Tq-QK for submit@debbugs.gnu.org; Tue, 10 Sep 2013 14:02:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37564) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJS9z-0000Gt-2H for submit@debbugs.gnu.org; Tue, 10 Sep 2013 13:55:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJS9s-00058y-FE for submit@debbugs.gnu.org; Tue, 10 Sep 2013 13:55:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJS9s-00058u-Ct for submit@debbugs.gnu.org; Tue, 10 Sep 2013 13:55:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJS9r-0003ir-Bl for bug-gzip@gnu.org; Tue, 10 Sep 2013 13:55:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJS9o-00057z-5v for bug-gzip@gnu.org; Tue, 10 Sep 2013 13:55:23 -0400 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]:48644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJS9o-00057u-1X for bug-gzip@gnu.org; Tue, 10 Sep 2013 13:55:20 -0400 Received: by mail-qc0-f170.google.com with SMTP id m20so1993971qcx.29 for ; Tue, 10 Sep 2013 10:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=9Ni94doFBkHvrw5DisY+LrehRZkC1MyJOOnqk6Pxhq8=; b=jyLLRYL+za01ZFn6sdRYIsl186LSFcAcnXi5D1oxOZkWIewUvKnysc9txdUfjKie5A ojFKnk1u1Vb30BPqEfNI8Qsz3Z2IcxXROMFg4kxsQMpqUwYdHIaStjpSSPp3+378sB3F t0EeucmBvjNaDjAV7X1e8E94H0ZWAtQpB3YInjL0Ckj4aKi0M/rgNjvQW/jMGLIX08D9 /wNvCy1vp5Zy8cS5uEuE8TEJdswBvR5Nfk1adkInoc38+XjqG8EUZYf3mACCm+ycuMeS MI82XQkhbErQ7XYBul5VNTSobamXilgjFgbIynNnRNYyfETe2FflrU8lRQpJBR0SYZ9L sFdA== X-Received: by 10.49.12.108 with SMTP id x12mr35257632qeb.22.1378835719225; Tue, 10 Sep 2013 10:55:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.32.183 with HTTP; Tue, 10 Sep 2013 10:54:39 -0700 (PDT) From: ddun Date: Tue, 10 Sep 2013 13:54:39 -0400 X-Google-Sender-Auth: DhAhJOBMoVrmKLs7P7DQFuduLoE Message-ID: Subject: How does gzip reads/writes data from/to the file. To: bug-gzip@gnu.org Content-Type: multipart/alternative; boundary=047d7b6d92f23fa0ee04e60b35e1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 10 Sep 2013 14:02:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7b6d92f23fa0ee04e60b35e1 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am trying to figure out what functions does gzip uses to read/write the data to/from the files. I saw that for error cases gzip was using *fprintf (stderr.. *but saw no fread/fscanf functions anywhere in the code. * * Can anyone point out the functions used by gzip to read/write to a file and in which code file are they. * * Thanks* * --047d7b6d92f23fa0ee04e60b35e1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I am trying to figure out what f= unctions does gzip uses to read/write the data to/from the files. I saw tha= t for error cases gzip was using fprintf (stderr.. but saw no fread/= fscanf functions anywhere in the code.

Can anyone point out the functions used by gzip = to read/write to a file and in which code file are they.

<= /b>
Thanks=A0
--047d7b6d92f23fa0ee04e60b35e1-- ------------=_1378836964-3213-1--