www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/22/02:20:30

Date: Sat, 22 Apr 95 00:54:52 EDT
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: bdavidson AT ra DOT isisnet DOT com
Cc: bob AT xnet DOT com, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: TTY Flags
Reply-To: babcock AT cfa DOT harvard DOT edu

> Correct me if I am wrong, but I don't think djgpp has ioctl() in the 
> library.

Oops.  Turns out I have my own ioctl() for use with djgpp.  Here is is.
Note, this almost certainly won't work for any ioctl functions which pass a
buffer in ds:dx.  But, it's good enough for the information query call.

union REGS regs;
int ioctl(int handle, int func)
   {
   regs.x.ax = 0x4400 | func;
   regs.x.bx = handle;
   intdos(&regs, &regs);
   return(regs.x.dx);
   }

- Raw text -


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