Arduino definition irregularities

I was trying to include a well known C library (LUA) in an Arduino project. I am having a lot of errors coming up from what I thought were standard defines, for example right now arduino is not recognising _IONBF, _IOFBF, _IOLBF, these are usually included in stdio.h (which I have included).

Is there something I'm missing here?

I'd normally associate those macros with a file system, which the Arduino doesn't have.

Fair enough I suppose, however here's another one: HUGE_VAL isn't defined

__builtin_huge_val ()