Paul do you know if libc.genenv() is available under GP2X?

Actually I would have thought the fpgetenv() should work as well. Maybe what is required is a fix in FPC to get fpgetenv() working.