Jim Meyering <jim <at> meyering.net> writes:
>
> Let's wrap only freopen for now.
OK, I'll squash 2 and 3 and wrap just freopen.
> If someone can spot a problem with an fopen or popen use,
> that would lend weight to the "just wrap them all" approach.
Maybe I'll find time to audit the rest of the list for any corner case
behaviors.
> One potential problem:
> The removal of the
> #include <stdio.h>
> that precedes e.g., #include <assert.h>
>
> I recall (possibly on systems too old to be relevant) that including
> assert without first including stdio.h would cause compilation failure.
> Probably not worth worrying about.
And even if that IS true, it sounds like a perfect candidate for a gnulib
assert.in.h fixup.
--
Eric Blake