Microport Unix -- Large Model Problems

Dave Carlson dave at ur-valhalla.UUCP
Thu Nov 6 01:06:56 AEST 1986


A potential problem I smacked into yesterday when porting BSD to SV/AT
is ioctl(2) expects as the third argument:
union	{ int iarg;
	char *cparg;}
Problem is that the union will pull 4 bytes off the stack (in large model)
but the program calling with an integer will only push 2 bytes.  Oh S*$&!
I cast my integer args long and everything seems ok but what a pain...

I'm always a bit wary when I have to watch even system calls.
Raver dave



More information about the Comp.unix.wizards mailing list