summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-01 20:26:36 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-01 20:26:36 +0100
commit03d26f8087326966d827786c648e4e6d24c31d7a (patch)
treedda494c867307c869cd3bb7a688fd3378fedf054 /sys/src/cmd/cwfs
parent42f4cdc3fd3234999ed9dbb76b85b2de00e3dd22 (diff)
cwfs: use pragma pack for on disk structures for amd64
Diffstat (limited to 'sys/src/cmd/cwfs')
-rw-r--r--sys/src/cmd/cwfs/portdat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/src/cmd/cwfs/portdat.h b/sys/src/cmd/cwfs/portdat.h
index d360ed841..80af31044 100644
--- a/sys/src/cmd/cwfs/portdat.h
+++ b/sys/src/cmd/cwfs/portdat.h
@@ -77,6 +77,9 @@ typedef struct Tm Tm;
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 @@ struct Dentry
long mtime;
};
+#pragma pack off
+
/*
* derived constants
*/
@@ -399,6 +404,8 @@ struct Uid
char name[NAMELEN]; /* user name */
};
+#pragma pack on
+
/* DONT TOUCH, this is the disk structure */
struct Fbuf
{
@@ -413,6 +420,8 @@ struct Superb
Super1;
};
+#pragma pack off
+
struct Conf
{
ulong nmach; /* processors */
@@ -530,6 +539,7 @@ typedef struct
/*
* cw device
*/
+#pragma pack on
/* DONT TOUCH, this is the disk structure */
struct Cache
@@ -569,6 +579,8 @@ struct Label /* label block on Devlworms, in last block */
char service[64]; /* documentation only */
};
+#pragma pack off
+
typedef struct Map Map;
struct Map {
char *from;