Skip to content
Snippets Groups Projects
Commit f53b19b4 authored by rswindell's avatar rswindell
Browse files

Added byte-offset comments to msghdr_t definition.

parent 03db7f43
Branches
Tags
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* * * *
* Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html * * Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License * * modify it under the terms of the GNU General Public License *
...@@ -475,25 +475,25 @@ typedef struct _PACK { /* Message base status header */ ...@@ -475,25 +475,25 @@ typedef struct _PACK { /* Message base status header */
typedef struct _PACK { /* Message header */ typedef struct _PACK { /* Message header */
uchar id[LEN_HEADER_ID]; /* SHD<^Z> */ /* 00 */ uchar id[LEN_HEADER_ID]; /* SHD<^Z> */
ushort type; /* Message type (normally 0) */ /* 04 */ ushort type; /* Message type (normally 0) */
ushort version; /* Version of type (initially 100h for 1.00) */ /* 06 */ ushort version; /* Version of type (initially 100h for 1.00) */
ushort length; /* Total length of fixed record + all fields */ /* 08 */ ushort length; /* Total length of fixed record + all fields */
ushort attr; /* Attributes (bit field) (duped in SID) */ /* 0a */ ushort attr; /* Attributes (bit field) (duped in SID) */
ulong auxattr; /* Auxillary attributes (bit field) */ /* 0c */ ulong auxattr; /* Auxillary attributes (bit field) */
ulong netattr; /* Network attributes */ /* 10 */ ulong netattr; /* Network attributes */
when_t when_written; /* Date/time/zone message was written */ /* 14 */ when_t when_written; /* Date/time/zone message was written */
when_t when_imported; /* Date/time/zone message was imported */ /* 1a */ when_t when_imported; /* Date/time/zone message was imported */
ulong number; /* Message number */ /* 20 */ ulong number; /* Message number */
ulong thread_orig; /* Original message number in thread */ /* 24 */ ulong thread_orig; /* Original message number in thread */
ulong thread_next; /* Next message in thread */ /* 28 */ ulong thread_next; /* Next message in thread */
ulong thread_first; /* First reply to this message */ /* 2c */ ulong thread_first; /* First reply to this message */
ushort delivery_attempts; /* Delivery attempt counter */ /* 30 */ ushort delivery_attempts; /* Delivery attempt counter */
ulong times_downloaded; /* Total number of times downloaded */ /* 32 */ ulong times_downloaded; /* Total number of times downloaded */
ulong last_downloaded; /* Date/time of last download */ /* 36 */ ulong last_downloaded; /* Date/time of last download */
uchar reserved[6]; /* Reserved for future use */ /* 3a */ uchar reserved[6]; /* Reserved for future use */
ulong offset; /* Offset for buffer into data file (0 or mod 256) */ /* 40 */ ulong offset; /* Offset for buffer into data file (0 or mod 256) */
ushort total_dfields; /* Total number of data fields */ /* 44 */ ushort total_dfields; /* Total number of data fields */
} msghdr_t; } msghdr_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment