[svlug] Re: Linux C Programming

John J. Cruz casacruz at bellatlantic.net
Tue Nov 9 13:19:31 PST 1999


Thanks for the info.

jjc



dave at thor.sbay.org wrote:

> On Tue, 9 Nov 1999, John J. Cruz wrote:
>
> > I lack detail information on using the device file for serial port 2.  I
> > do know that I should use function ioctl to configured the port but do
> > not know what parameters or range of values to use or for that matter
> > what include files to use.  Can I use open() to read and write to
> > port2?
>
> Yes. You'll need to open() it to do the ioctl()s anyway.
>
> >  Since Im using RH6.0, what is the correct nomenclature for com2 port?
>
> /dev/ttyS0   # com1
> /dev/ttyS1   # com2
> /dev/ttyS2   # com3
> /dev/ttyS3   # com4
>
> > Can you folks recommend a source of practical information.
>
> The Linux HOWTOs are a good start:
>
> http://linuxdoc.org/HOWTO/
>
> Take a look these two HOWTOs while you're there:
>
> http://linuxdoc.org/HOWTO/Serial-HOWTO.html
> http://linuxdoc.org/HOWTO/Serial-Programming-HOWTO.html
>
> That should answer most of your questions.
>
> davez
>
> --
> Dave Zarzycki
> http://thor.sbay.org/~dave/
> http://www.sbay.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: casacruz.vcf
Type: text/x-vcard
Size: 420 bytes
Desc: Card for John J. Cruz
Url : http://lists.svlug.org/archives/svlug/attachments/19991109/41744054/casacruz.vcf


More information about the svlug mailing list