GNU bug report logs - #15325
How does gzip reads/writes data from/to the file.

Previous Next

Package: gzip;

Reported by: ddun <ddun.user <at> gmail.com>

Date: Tue, 10 Sep 2013 18:03:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15325 in the body.
You can then email your comments to 15325 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#15325; Package gzip. (Tue, 10 Sep 2013 18:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ddun <ddun.user <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Tue, 10 Sep 2013 18:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ddun <ddun.user <at> gmail.com>
To: bug-gzip <at> gnu.org
Subject: How does gzip reads/writes data from/to the file.
Date: Tue, 10 Sep 2013 13:54:39 -0400
[Message part 1 (text/plain, inline)]
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* *
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 10 Sep 2013 18:16:01 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Tue, 10 Sep 2013 18:16:03 GMT) Full text and rfc822 format available.

Notification sent to ddun <ddun.user <at> gmail.com>:
bug acknowledged by developer. (Tue, 10 Sep 2013 18:16:04 GMT) Full text and rfc822 format available.

Message #12 received at 15325-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: ddun <ddun.user <at> gmail.com>
Cc: 15325-done <at> debbugs.gnu.org
Subject: Re: bug#15325: How does gzip reads/writes data from/to the file.
Date: Tue, 10 Sep 2013 12:15:07 -0600
[Message part 1 (text/plain, inline)]
tag 15325 notabug
thanks

On 09/10/2013 11:54 AM, ddun wrote:
> 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.

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.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 09 Oct 2013 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.