Unfortunately I'm producing 32bit program. What you said is only valid for 64bit this is a snapshot of stdio.h (the same code is in sys/types.h )
#define _OFF_T_DEFINED
#if __POCC_TARGET__ == 3
typedef long long _off_t;
#else
typedef long _off_t;
#endif /* __POCC_TARGET */
_stat is not aware of BIG file in 32bit pgm and stat64 is not accessible as is. It should be avalable in crtmt.lib and Ms library libcmt overlaps
It works with msvc / gcc and tinyCC .... but not Pelles C. (I have to distribute some source code and some trainee will have to complete and compile.)
I do not want to broke the distro as people will install it from the net ! And I do not really know how to update in order to have kernel32.lib/user32.lib and all includes properly sets for PellesC.