delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/16/00:30:43

Message-ID: <001001beffc9$e3fa65a0$b5b537c3@c3po>
From: "Antonio Fontan" <afontan AT mundivia DOT es>
To: <djgpp AT delorie DOT com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990915120000 DOT 27871O-100000 AT is>
Subject: RE: Serial Ports
Date: Thu, 16 Sep 1999 00:30:15 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Reply-To: djgpp AT delorie DOT com

Of course Eli you are right. I made a mistake and were I wrote termios.h it
should have been termio.h and vice-versa.

I appreciate your answer, but I do not know if I am going to know how to
rebuild a library like termio.h. I suppose that many people porting programs
from solaris will have had the same problem.
Does anybody has ported termio.h?

Thank you in advance.



Sent: Wednesday, September 15, 1999 12:00 PM
Subject: Re: Serial Ports


>
> On Tue, 14 Sep 1999, MaCro wrote:
>
> > I have seen several libraries to program the serial port. My problem is
that
> > I want to use some sources from solaris that are using the prototypes
found
> > in termios.h (not termio.h), actually I need 115200 baud rate. DJGPP
does
> > not provide that header (only termio.h)
>
> I'm confused.  DJGPP does not have termio.h, it has termios.h.  What
> version of DJGPP are you using?
>
> > and it does not program the ports as unix (like a file,
> > ie. /dev/ttya)
>
> Correct.  The DJGPP termios implementation currently only supports the
> terminal device.  It does not support the serial port (or any other
> devices).  The recommended way to add such support is to use one of
> the available async communication packages in conjunction with the
> DJGPP Filesystem Extensions feature.  The DJGPP FAQ has pointers to
> several serial communication packages in section 22.3; the Filesystem
> Extensions are described in the DJGPP library reference.
>
> > additionally, the maximum speed is 38400 in termio.h.
>
> You mean termios.h, right?
>
> This is the largest baudrate because that's what most termios
> implementations support.  However, once you add serial port support to
> termios, you can easily add more Bnnnn constants and support them as
> well.
>
> > Well,my question is this, does anybody have to translate a program like
this
> > from solaris or Linux to DJGPP? (I would like to keep the sources as
close
> > as possible).
>
> If you use the Filesystem Extensions, the sources will be left
> unchanged.  All the magic happens on the library level; the program
> doesn't know anything about that.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019