From owner-freebsd-questions Mon Mar 11 10: 4:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtpout.mac.com (smtpout.mac.com [204.179.120.86]) by hub.freebsd.org (Postfix) with ESMTP id D47F537B419 for ; Mon, 11 Mar 2002 10:04:56 -0800 (PST) Received: from smtp-relay01.mac.com (server-source-si02 [10.13.10.6]) by smtpout.mac.com (8.12.1/8.10.2/1.0) with ESMTP id g2BI4tJZ002931 for ; Mon, 11 Mar 2002 10:04:55 -0800 (PST) Received: from asmtp01.mac.com ([10.13.10.65]) by smtp-relay01.mac.com (Netscape Messaging Server 4.15 relay01 Jun 21 2001 23:53:48) with ESMTP id GSTM8600.NT4 for ; Mon, 11 Mar 2002 10:04:54 -0800 Received: from localhost ([67.81.66.59]) by asmtp01.mac.com (Netscape Messaging Server 4.15 asmtp01 Jun 21 2001 23:53:48) with ESMTP id GSTM8600.40F; Mon, 11 Mar 2002 10:04:54 -0800 Date: Mon, 11 Mar 2002 13:07:17 -0500 Subject: writing interrupt handlers Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v481) Cc: vmiller@ramapo.edu, amruth@ramapo.edu To: freebsd-questions@freebsd.org From: yonder Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.481) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I recently rediscovered some old DOS (the OS, not DoS!!!) turbo pascal code I wrote back in high school in which I wrote an interrupt handler, placed its address in the interrupt vector table, and returned control to the original handler when my new one was finished. I was wondering if there was a standard way to do this in *NIX C. For example, I could write a short function to load a sound and play it every time a key is pressed... and then return control to the original handler to process the keypress correctly. - Jaymin Kessler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message