[ot] Linux stdio question, howto find fopened files
please retain the CC to rbutterworth
Subject: Linux stdio question.
On non-linux unix systems, one can reference __iob[]
to find all currently fopen()ed files
(e.g. when forking a new process one would generally
want to flush their buffers first, or perhaps close most of them).
Linux's stdio.h doesn't provide such an array of open FILE pointers,
or at least if it does I can't find it.
Any idea what they call it,
or how one can find all currently open FILEs?
Perhaps there is a better way?
A general guide to porting underlinux /debian would be appreciated.
Reply to: