Date: Mon, 10 Mar 1997 00:09:39 -0500 From: "Kevin P. Neal" <kpneal@pobox.com> To: "Jeffery T. White" <zellion@cyberwind.com> Cc: <freebsd-hackers@freebsd.org> Subject: Re: Structure member alignment Message-ID: <1.5.4.32.19970310050939.007265d0@mindspring.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1.5.4.32.19970310050939.007265d0>