Update of /cvsroot/arcem/arcem
In directory vz-cvs-4.sog:/tmp/cvs-serv20379
Modified Files:
Tag: arcem-fast
hostfs.c
Log Message:
Fix FSEntry_File 7 always returning an error. Log any errors returned by hostfs
calls to stderr.
Index: hostfs.c
===================================================================
RCS file: /cvsroot/arcem/arcem/hostfs.c,v
retrieving revision 1.17.2.11
retrieving revision 1.17.2.12
diff -u -d -r1.17.2.11 -r1.17.2.12
--- hostfs.c 5 Nov 2011 17:47:14 -0000 1.17.2.11
+++ hostfs.c 5 Nov 2011 21:37:00 -0000 1.17.2.12
@@ -1280,7 +1280,7 @@
}
}
- if(bytes_written != length)
+ if(bytes_written != (state->Reg[5] - state->Reg[4]))
{
fprintf(stderr,"hostfs_write_file(): Failed to write full extent of
file\n");
/* TODO - Examine errno? */
@@ -2187,6 +2187,9 @@
break;
}
+ if(state->Reg[9] >= 0xb0)
+ fprintf(stderr,"\tReturning with error %x\n",state->Reg[9]);
+
#if defined(__riscos__) && defined(__TARGET_UNIXLIB__)
__riscosify_control = old_riscosify;
#endif
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
--
arcem-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/arcem-cvs