tcpdump mailing list archives

Re: Multifile patch


From: Guy Harris <guy () alum mit edu>
Date: Tue, 4 Sep 2012 10:53:10 -0700


On Sep 4, 2012, at 3:11 AM, David Laight wrote:

On windows you can't pass 'FILE *' into shared libraries,
they are likely to have their own copies of the stdio
libraries - with different FILE structures.
(eg if one part is compiled with debug enabled).

In this patch, the library into which VFile is being passed is called "the C library", i.e., with the patch, we're not 
passing it to libpcap/WinPcap, we're passing it to fgets(); if you couldn't pass a FILE * to, say, fgets(), the stdio 
libraries would be completely useless.

_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: