13 Apr
2004
13 Apr
'04
9:31 p.m.
Izak Burger <izakb(a)synapp.com> writes:
I'm currently debugging a problem with serial comms over wine, and I see that when a serial device is opened (in server/serial.c) the serial_get_info function returns a type of FD_TYPE_DEFAULT, which in turn causes the serial device to be read from and written to with pread and pwrite in dlls/ntdll/file.c. Will this even work? I mean, how can you write or read to a serial port while using an offset?
You can't, the pread() call is supposed to fail with ESPIPE, in which case we fall back to a normal read. Doesn't this work for you? What error does the pread() call return? -- Alexandre Julliard julliard(a)winehq.org