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@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@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