[comp.unix.aux] How to write a Streams <-> MacOS driver ?

urlichs@smurf.sub.org (Matthias Urlichs) (04/27/91)

Suppose I want to write a MacOS device driver, which interfaces a MacOS-style
device manager interface to a kernel Streams driver.

The problems start when I think about implementing asynchronous calls,
completion routines, the works. Appletalk obviously does this, and Appletalk
is a Streams device driver, so I should be able to duplicate that.

Unfortunately, I don't have the faintest idea how.
/usr/include/mac/aux.h talks about SIGIO multiplexing, and it lists this
 interface:
typedef struct
{
	int     (*func)();
	int     mask;
} AuxSigio;

-- and now what are the parameters to that funtion, and what's the mask
supposed to say?  So many questions, so few answers...

NB: /usr/include/mac/aux.h also talks about secondary initialization for
    System 7, so one may hope..?
-- 
Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de     /(o\
Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330)   \o)/