<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial size=2>The Linux serial unit was ported
to windows.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Refer to <A
href="http://www.mail-archive.com/lazarus@miraclec.com/msg15194.html">http://www.mail-archive.com/lazarus@miraclec.com/msg15194.html</A></FONT></DIV></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=papelhigienico@gmail.com
href="mailto:papelhigienico@gmail.com">papelhigienico@gmail.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=fpc-pascal@lists.freepascal.org
href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, October 03, 2007 10:53
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [fpc-pascal] serial ports under
Unix using Freepascal</DIV>
<DIV><BR></DIV>Hi!<BR><BR>I'm creating a component that handles serial port in
windows/unix. Under Windows I include in uses the unit windows, that open,
close, read, write, test if the configuration of serial port is valid (some
set of configurations of baudrate, stop bits and parity is invalid in
windows) and if serial port exists. <BR><BR>Under Unix I found the unit
Serial, that open, close, read and write. How to test if serial port exist?
Unix accept any set of configurations of the serial port? I see fpopen
that return the handle of serial port but I not found anything that describes
error codes returned by this function in fpc rtl documentation.
<BR></BLOCKQUOTE></BODY></HTML>