From owner-freebsd-hackers Sun Mar 9 20:11:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA03975 for hackers-outgoing; Sun, 9 Mar 1997 20:11:18 -0800 (PST) Received: from shell.wco.com (root@shell.wco.com [199.4.94.16]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA03970 for ; Sun, 9 Mar 1997 20:11:15 -0800 (PST) Received: from zellion.cyberwind.com (zellion.cyberwind.com [199.4.109.223]) by shell.wco.com (8.8.5/8.6.12) with ESMTP id UAA17876 for ; Sun, 9 Mar 1997 20:10:59 -0800 (PST) Message-Id: <199703100410.UAA17876@shell.wco.com> From: "Jeffery T. White" To: Subject: Structure member alignment Date: Sun, 9 Mar 1997 20:18:41 -0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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? I know what I am writing would likely be difficult to port to other OSes. Thanks, Jeff | Jeffery T. White | email: zellion@cyberwind.com | | Cyberwind, The wind knows... | http://www.cyberwind.com