delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/15/09:08:06

Date: Thu, 15 Nov 2001 16:01:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: ROLAND <roland_asmann AT yahoo DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Problems with sgtty.h, ioctl.h and termios.h
In-Reply-To: <20011115135015.55452.qmail@web9106.mail.yahoo.com>
Message-ID: <Pine.SUN.3.91.1011115155925.14688N-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 15 Nov 2001, ROLAND wrote:

> I found out that /dev/tty00 is a serial connection,
> with bi-directional communication. Are you sure that
> there is no way that I can get this working under
> DJGPP?

Not with ioctl/termios calls.  They don't support anything but the 
console device in DJGPP.

> Can anybody tell me what is necessary to use the
> serial-port on a PC from a C-program?

There are a few async communications packages; see section 22.4 of the 
FAQ.  However, to use them you will have to convert the relevant parts of 
the program to use the functions from those packages instead of ioctl.

What does this program do, anyway?  Why is it worth so much trouble?  
Perhaps it would be easier for you to install a GNU/Linux system, where 
the code will probably work without any changes?

- Raw text -


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