Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!ur-tut!ur-valhalla!dave From: dave@ur-valhalla.UUCP (Dave Carlson) Newsgroups: net.unix-wizards Subject: Re: Microport Unix -- Large Model Problems Message-ID: <840@ur-valhalla.UUCP> Date: Wed, 5-Nov-86 10:06:56 EST Article-I.D.: ur-valha.840 Posted: Wed Nov 5 10:06:56 1986 Date-Received: Wed, 5-Nov-86 22:22:31 EST References: <1376@batcomputer.TN.CORNELL.EDU> Reply-To: dave@valhalla.UUCP (Dave Carlson) Organization: EE VLSI Graduate Research Facility, UR, Rochester NY Lines: 11 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