Path: utzoo!mnetor!uunet!husc6!think!ames!oliveb!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: Calling original function after SetFunction() Message-ID: <44384@sun.uucp> Date: 6 Mar 88 17:19:45 GMT References: <346@lehi3b15.UUCP> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 21 In article <346@lehi3b15.UUCP> sbower@lehi3b15.UUCP (Steve Bower) writes: -> I'm currently working on my senior project; basically, I need to take -> over the OpenDevice() call and substitute my own device for the -> serial.device. Why not put your new device in DEVS: called serial.device and rename the existing one to amiga-serial.device. Then an open device of serial.device will get yours and an opendevice() of amiga-serial.device will get the amiga's. ->OpenDevice() call to do the actual opening (I merely need to ->substitute one device for another). Is it legal to use the address I ->get back from SetFunction() to call the original OpenDevice() ->function? I believe it is, although I personally haven't tried it. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.