Re: [RFC] cleaner FD_TYPE_XXX implementation
Hi Martin, looks good to me. The only complication i can see is if overlapped operations are possible on consoles. Mike Original message from: Martin Wilck <Martin.Wilck(a)fujitsu-siemens.com>
The FD_TYPE_XXX macros are used in the ReadFile() and WriteFile() routines to invoke special read/write procedures for file descriptors
of
certain types. I feel that for future improvements of Wine IO, it might be important to distinguish between FD type (regular file, serial port, pipe, ...) and FD attributes (can do overlapped IO, uses timeout, ....).
That is the rationale for the following small patch. Please comment.
Martin
------------------------------------------ mailto:Mike_McCormack(a)start.com.au ph +82 16 430 0425 __________________________________________________________________ Get your free Australian email account at http://www.Looksmart.com.au
On Fri, 4 Jan 2002, Mike McCormack wrote:
looks good to me. The only complication i can see is if overlapped operations are possible on consoles.
Yes, but the OVERLAPPED flag must be set explicitly by the get_file_info() method of the corresponding server object. console_get_file_info() will simply leave this flag unset if overlapped operations are impossible on consoles. The idea is that get_file_info() has a more flexible way to communicate the capabilities of a file descriptor; this doesn't imply all fields are completely independent of each other. Martin -- Martin Wilck Phone: +49 5251 8 15113 Fujitsu Siemens Computers Fax: +49 5251 8 20409 Heinz-Nixdorf-Ring 1 mailto:Martin.Wilck(a)Fujitsu-Siemens.com D-33106 Paderborn http://www.fujitsu-siemens.com/primergy
participants (2)
-
Martin Wilck -
Mike McCormack