in reply to Re^3: F_GETFL and Win32
in thread F_GETFL and Win32

Do the field names of the _iobuf struct vary by platform?

All I know is that when I tried to build it on my linux box I got:

Fmode.xs.6: structure has no member named `_flag'.

(The leading underscore generally indicates that it's not ANSI standard.)

I wonder if it would be better to pass a 'PerlIO*' (I think there is such a thing) rather than a 'FILE*'. If it could be made portable that would be soooo much better. There's already a 'FileHandle' namespace - so you could call it 'FileHandle::Fmode'.

As for the perl internals documentation - if you know what you're doing, then you'll probably understand it, but if you don't know what you're doing, then you'll probably not understand it. It's far more valuable as a reference, than as a learning aid (imho).

Cheers,
Rob