On Thu, 3 Dec 2009, Øyvind Harboe wrote:

> I added a missing #include <sys/stat.h>, but it is not quite ready to commit
> yet I think.
> 
> Does it build under Windows? Perhaps it does, I didn't try.

It probably does.  We maintain both a Linux and Windows build internally 
and I didn't get any complaint yet.

> I don't think we should try to make this work under anything but POSIX
> API for now, but the build should not fail. Autotools magic?

It might even just work, at least under Cygwin.

The way to make it more portable is to stick to stdio calls.  Problem 
with that is that fopen() and friends are using FILE* pointers which 
can't be passed directly (think of 64-bit hosts).  So a mapping table 
would have to be maintained, etc.  That might be the way to go anyway 
for added security, but I was not that motivated, at least for a first 
shot at it.  And this code as is fulfills my need already.

> Some docs to openocd.texi would be great.

It sure would.  ;-)


Nicolas
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to