TeeEmCee wrote:What's wrong with using FB's builtin FileDateTime function?
Nothing as long as only the last modification timestamp is needed. In that case I'd also suggest to use FB's function.
St_W wrote:I recommend writing C code instead of FB (and linking it to your FB program) when you want to write portable code that accesses functions in Unix system headers, because the FB headers just can't be trusted.
I quite agree that there are so many conditions and FB's headers probably will be never equivalent. I guess the binary layout of that "stat" structure isn't standardized, is it? That's where a built-in C-parser in the compiler could help.