delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/07/21/15:04:28

From: ckgp!thomas AT uunet DOT uu DOT net
Subject: Help! System locking up...
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 21 Jul 92 14:24:11 EDT

Hi,

   I have a device driver which translates text into phonetics and then
passes that info onto a speech synthisizer... Anyway with Turbo C I
can open the driver as a file and just write the text to it (fopen or open
fprintf or write etc..) from DOS I can redirect output to the device
(exp echo"this is a test" > ST) 
   But when I try to do the same (open,write,close) in DJGPP The system
freezes at the int21 ... (?)  I also have the option of doing IOCTL calls
(int21,44h -- right?) 
   So my question is, has anyone else had a problem accessing device
drives? What problems and solutions did you have/find?
   Will it work if I use IOCTL? The prolem I have with this is that I am
under the impression that I have to pass the FP_SEG and FP_OFF of the 
string before calling the interrupt... Could I just pass the pointer to
the string and 0x00 (for the SEG and OFF) so that the address is the same
as if we were using  SEG and OFF?  I guess what I am asking is how does 
DJGPP support interrupts? (specifically the IOCTL?) is IOCTL even
supported? Oh and why doesn't the regular old open/write work???

thanks!

================================================================================
Thank you,            ||  "Sol est invisiblis in hominibus, in terra vero
Michael Thomas        ||   visibilis, tamen ex uno et eodem sole sunt ambo"
(..uunet!ckgp!thomas) ||                    -- Theatrum Chemicum (Ursel, 1602)
================================================================================


- Raw text -


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