[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FILE struct and _fileno

On Mon, Jul 30, 2001 at 09:59:05PM -0700, James Morrison wrote:
> Hello,
>  Today I came across two programs that wouldn't compile because
> of the symbol _fileno not being defined in the FILE struct.  However,
> one of these programs explictly checked for glibc.

POSIX defines FILE as an opaque structure, so programs can expect
to access elements inside this structure without breaking. I suggest
you replace all uses of F->_fileno by fileno(F).


Reply to: