X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Tue, 04 Dec 2001 19:56:42 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: ROLAND Message-Id: <1190-Tue04Dec2001195642+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: andnews AT ihug DOT com DOT oz DOT au, djgpp AT delorie DOT com In-reply-to: <20011204144118.20426.qmail@web9104.mail.yahoo.com> (message from ROLAND on Tue, 4 Dec 2001 06:41:18 -0800 (PST)) Subject: Re: Serial Communicaton References: <20011204144118 DOT 20426 DOT qmail AT web9104 DOT mail DOT yahoo DOT com> 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 > Date: Tue, 4 Dec 2001 06:41:18 -0800 (PST) > From: ROLAND > > Well I've been going over the program again, and what > it does (basically) is this (don't mind the parameters > and stuff, 'cause I left some of them out): > > f3=open(/dev/tty00) /*for reading*/ > > f4=open(/dev/tty00) /*for writing*/ > > while(somethingToSend) > /*A call to a checkroutine, but I forgot the name*/ > write(f3,message); > > /* The checkroutine */ > while(someStatus) > read(f3,reply) > > I have to get this working on a PC. > I have been told (in this mailinglist) that I should > use a special package for serial communication for PC. > Can anybody help me with this? You need to use the DJGPP Filesystem Extensions feature to catch library calls as above and redirect them to the async communications library you downloaded. For working examples of using Filesystem Extensions for similar purposes, look in ports of GNU software, such as GNU Fileutils (file ls-msdos.c) and Ispell (file djterm.c). > One more thing, the original program was using > which I have replaced with and > . If there is something wrong with this, > than please advise about it to! You will have to resolve this one step at a time. If you have specific problems to compile with these header files, try to figure out how to get the same functionality with DJGPP, and if you can't figure that out, post the details here.