On 19 May 2011 06:50, Rugxulo <rugx...@gmail.com> wrote:
> But honestly, this is a weird bug, surely LD itself (from GNU) didn't
> explicitly do this, did it? (I mean, why would it?) Mustn't it be a
> DJGPP libc bug? But 2.9.1 is old old old (latest is 2.21 !!) from May
> 1998, apparently, which would've been DJGPP 2.01 or such (instead of
> current 2.03p2 or beta 2.04).

It might well be libc, which was changed to ignore truncate errors
because of Win2k/XP problems with character devices:
http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/posix/fcntl/open.c.diff?r1=1.9&r2=1.10

But the operation isn't so odd: a "touch"ed 0 byte file when opened by
the c-library open(...,O_TRUNC|O_RDWR)
(without O_CREAT) will get you this.

Bart

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to