mseaborn/x86-decoder — comment on commit bc44c3f5445a01415cab8f2e1ed6741e78b38020
File: dfa_ncval.c line 94
By mseaborn:

On 3 February 2012 06:23, pasko <
reply@reply.github.com
> wrote:

> I'm wondering, why fseek()+ftell()+fseek() when there exists fstat()?
> revealed while reading code that supposed to be Victor's :)

fstat() is a POSIX function and is not part of stdio. Windows does not
have fstat(), although it does have an _fstat(), but you'd need an #ifdef
to check for that. It's better to be portable.

The code you're looking at was copied from
native_client/src/tools/validator_tools/ncstubout.c.

Mark