Date: Thu, 15 Nov 2001 16:01:44 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: ROLAND 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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?