Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: Size of struct not same on Ultrix as on v7 Message-ID: <533@umcp-cs.UUCP> Date: Tue, 25-Mar-86 17:37:05 EST Article-I.D.: umcp-cs.533 Posted: Tue Mar 25 17:37:05 1986 Date-Received: Sun, 20-Apr-86 11:59:14 EST References: <258@cirl.UUCP> Distribution: net Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 16 In article <258@cirl.UUCP> das@cirl.UUCP writes: >... We are thus in the process of porting programs written on v7 >to Ultrix. One major problem has been that struct's appear not to >be the same size when compiled on Ultrix as they are when compiled >on v7. This appears to be true for 4.2bsd as well. Welcome to the wonderful world of heterogeneity. No one ever said your structures would look the same. If you want the data file to contain a machine independent byte stream, you have to read and write a machine independent byte stream. There is no reliable alternative. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@mimsy.umd.edu