Serial and pread
Alexandre Julliard
julliard at winehq.org
Tue Apr 13 16:31:02 CDT 2004
Izak Burger <izakb at 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 at winehq.org
More information about the wine-devel
mailing list