This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add fseek to ui-file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]