On Thu, Feb 9, 2017 at 12:15 PM, Erich E. Hoover erich.e.hoover@wine-staging.com wrote:
On Thu, Feb 9, 2017 at 1:52 AM, Huw Davies huw@codeweavers.com wrote:
... If this does go in, we'll want some kind of caching.
The other places using fopen (ifstats.c) don't use caching, that was where I based the idea on. Due to the nature of network configuration I'm not sure it is a good idea, for example, when to renew the cache?
It looks like our existing code should actually be able to handle the case Bruno is interested in, our configure test is just missing some headers. Bruno is looking into it a little bit more, but I think the manual parsing can be avoided (at least, for the case he's interested in).
I still think the patch is useful and would like to see it commited independent of the FreeBSD stuff. I'll resend in a series with the FreeBSD configure.ac change with a few extra traces to ensure it is not used wrongly.