On 8 November 2011 16:06, Gé Weijers <ge@weijers.org> wrote: > One ugly way is to close the file descriptor behind the standard C > library's back. You could add a routine to your test harness that in > effect performs > > close(fileno(file)); Nice.