[PATCH] Add fseek to ui-file
Pedro Alves
palves@redhat.com
Tue Dec 11 14:39:00 GMT 2012
On 12/11/2012 02:34 PM, Hui Zhu wrote:
> What about add a flag to struct stdio_file to record the error in this fd.
> When stdio_file_xxx get error, set it and throw error.
> Each stdio_file_xxx function check this flag before do syscall. If
> this fd get error, just return.
That would allow the second caller to proceed as if no error
had happened. That's not a good interface.
--
Pedro Alves
More information about the Gdb-patches
mailing list