Xref: utzoo comp.unix.internals:2404 comp.unix.sysv386:6224 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!cs.uoregon.edu!ogicse!zephyr.ens.tek.com!tektronix!percy!m2xenix!quagga!proxima!olsa99!rascal!theo From: theo@rascal.UUCP (T. Kramer) Newsgroups: comp.unix.internals,comp.unix.sysv386 Subject: Re: SCO UNIX *double* device driver Message-ID: <1509@rascal.UUCP> Date: 21 Mar 91 11:16:28 GMT References: <905@zeusa.UUCP> Reply-To: theo@rascal.UUCP (T. Kramer) Followup-To: comp.unix.internals Organization: Rascal Systems Lines: 20 In article <905@zeusa.UUCP> hendrik@zeusa.UUCP (Hendrik Vermooten) writes: > >SCO Xenix/UNIX, PC type hardware. > >I need to "channel" all I/O going to and from a device, through my own >handler routine (this routine itself uses hardware to do its job). > How about the following:- #define fopen hvfopen #define fclose hvfclose : : Etc. for all required system calls, and then do in your function calls what you want to do. +--------------------------------+------------------------------------------+ | theo@rascal | Got nuthin else to say | +--------------------------------+------------------------------------------+