ref: 03d26f8087326966d827786c648e4e6d24c31d7a
parent: 42f4cdc3fd3234999ed9dbb76b85b2de00e3dd22
author: cinap_lenrek <[email protected]>
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 {