From owner-freebsd-hackers Sun Mar 9 21:10:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA05813 for hackers-outgoing; Sun, 9 Mar 1997 21:10:04 -0800 (PST) Received: from mule0.mindspring.com (mule0.mindspring.com [204.180.128.166]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA05782 for ; Sun, 9 Mar 1997 21:09:48 -0800 (PST) Received: from bogus.mindspring.com (borg.mindspring.com [204.180.128.14]) by mule0.mindspring.com (8.8.4/8.8.4) with SMTP id AAA67212; Mon, 10 Mar 1997 00:09:39 -0500 Message-Id: <1.5.4.32.19970310050939.007265d0@mindspring.com> X-Sender: kpneal@mindspring.com X-Mailer: Windows Eudora Light Version 1.5.4 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Mon, 10 Mar 1997 00:09:39 -0500 To: "Jeffery T. White" From: "Kevin P. Neal" Subject: Re: Structure member alignment Cc: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 08:18 PM 3/9/97 -0800, Jeffery T. White wrote: >I am writing a client server system with FreeBSD as the client. I would >like the clients [Windoze] to communicate with the server by sending >packets which are actually structures whose definitions both systems use. >In Windows the structure member alignment can be controlled using the >pack(x) pragma. so they can be byte/word/whatever aligned. > >1. Is there a way to control this in FreeBSD? > >2. If not is there a standard way [byte/word/etc.] that FreeBSD does this >that I can count on across all CPUs [386/486/Pentium]. Is this something >that might change in the future? > >3. Maybe some other compiler might do the trick? % man -k xdr Perhaps the eXternal Data Representation code will help out? -- XCOMM Kevin P. Neal, Junior, Comp. Sci. - House of Retrocomputing XCOMM mailto:kpneal@pobox.com - http://www.pobox.com/~kpn/ XCOMM kpneal@eos.ncsu.edu " *** StarDOS makes great coffee! ***" XCOMM From a mid-80's advertisement in "Compute's GAZETTE", a C64/C128 mag