[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon May 4 01:48:48 1994 
Subject:calling external functions with a structure 
From:"David.Hobley" (David Hobley) 
Volume-ID:940504.01 

I am trying to externally load a function, tcgetattr actually.
The type for this is:

int tcgetattr(int, struct termios *);

How should I accomplish this in pop11 ?

So far I have set up a p_typespec for the termios struct.
But cannot seem to easily specify that I want a ptr to that struct as
the second argument.

I thought of using Get_tty_params from devio.p in $popsrc, but
I wasn't entirely certain how to call that with the correct
paramters either.

I have read ref external, external_data, defstruct etc, but am a bit
confused.

Cheers,
david