For file I/O (in core.ops, not io.ops), do we want to use file descriptors or streams?
open uses fopen(), close uses fclose(), but read uses read(), and write uses write().
And all the comments
say descriptors.
Any opinions one which way the code should be patched?
--
Bryan Logan
en_i_sc_sc (cur_opcode=0x814b8b0,
interpreter=0x8139750) at core.ops:146
146 $1 = (INTVAL)fopen(string_to_cstring(interpreter, ($2)),
string_to_cstring(interpreter, ($3)));
(gdb)
Notice the first time I hit I had "test.txt<", which is what pdb showed,
but notice the second time, I have "testdtxttest.txt"
Is this an assembler problem or a problem with open?
--
Bryan Logan