Date: Sun, 28 Sep 1997 15:03:25 -0700 (PDT) Message-Id: <199709282203.PAA14896@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Peter Palotas , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Int-Hooking, DOS vs LINUX Precedence: bulk At 01:37 9/28/1997 -0400, Peter Palotas wrote: >How does hooking interrupts and interrupts in general vary between DOS and >LINUX? Would an asm-file hooking an interrupt written for DJGPP work when >compiling it with GCC under LINUX? If not, what's the diffrences? You quite definitely cannot hook interrupts the same under Linux as DOS. Messing with the interrupt table is one of those yucky low-level things that a real operating system forbids. All interface to hardware is supposed to go through the /dev/* devices, and the kernel does the actual interrupt hooking to make the devices work. To hook interrupts under Linux, you either have to be the kernel, or at least be running as superuser. I also don't know how any non-kernel program would go about using interrupts (or for that matter how the kernel itself does it). You might ask on comp.os.linux if this is really important. Nate Eldredge eldredge AT ap DOT net