Wireshark-bugs: [Wireshark-bugs] [Bug 5802] Rewrite&cleanup wiretap/file_wrappers

Date: Sun, 3 Apr 2011 08:22:25 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5802

Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #6120|                            |review_for_checkin?
               Flag|                            |

--- Comment #3 from Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx> 2011-04-03 08:22:24 PDT ---
Created an attachment (id=6120)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=6120)
Introduce file_clearerr

I'm unsure of this patch, 

gzclearerr() is used to clear the end-of-file mark, but for FILE there's
function which do the same (clearerr).

I created test program if clearerr() is needed for tailing file. and it seems
to work without it (at least on Linux, so for !HAVE_LIBZ I commented it out).

For now this patch introduce file_clearerr macro, and define it only when EOF
marking must be cleared (i.e. when HAVE_LIBZ and HAVE_GZCLEARERR are defined).

So everything works like before, patch just to keep same prefix for file
interface :)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.