This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mingw > 20001111: fstat bug: buffer overflow?


> Which gcc version are you using?  There are different versions of the
> stat structure based on whether you are using CRTDLL or MSVCRT.  There
> is a bug in the specs file for gcc-2.95.2-7 in that __MSVCRT__ should be
> defined when -mno-cygwin is used.  The absence of this is what has
> caused your problem.

Merely #defining __MSVCRT__ in the right places doesn't help. I have to use
struct _stati64 and the _stati64 and _fstati64 functions explicitly to get
the right results. Perhaps there's something else going on? Or maybe I've
just misunderstood...

-- 
http://sc3d.org/rrt/ | Caution Children At Play Drive Slowly


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]