git: 9front

Download patch

ref: 4ed85859542b294721eda18a7434239e8596b098
parent: 95949a1c8bb2fa66c3c92a3a74d6a8c7dce39199
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 1 15:26:36 EST 2014

cwfs: use pragma pack for on disk structures for amd64

--- a/sys/src/cmd/cwfs/portdat.h
+++ b/sys/src/cmd/cwfs/portdat.h
@@ -77,6 +77,9 @@
 typedef	struct	Uid	Uid;
 typedef	struct	Wpath	Wpath;
 
+#pragma pack on
+
+/* DONT TOUCH, this is the disk structure */
 struct	Tag
 {
 	short	pad;		/* make tag end at a long boundary */
@@ -139,6 +142,8 @@
 	long	mtime;
 };
 
+#pragma pack off
+
 /*
  * derived constants
  */
@@ -399,6 +404,8 @@
 	char	name[NAMELEN];	/* user name */
 };
 
+#pragma pack on
+
 /* DONT TOUCH, this is the disk structure */
 struct	Fbuf
 {
@@ -413,6 +420,8 @@
 	Super1;
 };
 
+#pragma pack off
+
 struct	Conf
 {
 	ulong	nmach;		/* processors */
@@ -530,6 +539,7 @@
 /*
  * cw device
  */
+#pragma pack on
 
 /* DONT TOUCH, this is the disk structure */
 struct	Cache
@@ -568,6 +578,8 @@
 	ushort	ord;		/* side number within Juke */
 	char	service[64];	/* documentation only */
 };
+
+#pragma pack off
 
 typedef struct Map Map;
 struct Map {
--