X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Fdropsbr.h;h=b32d316a7e64348fe5d809a0f6444b00e46fec3b;hp=146a63bf5c1277aa12845c3d62e7f7f948b1709b;hb=714b5c530ece27ea2835a313013f5b770163403c;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/h/dropsbr.h b/h/dropsbr.h index 146a63b..b32d316 100644 --- a/h/dropsbr.h +++ b/h/dropsbr.h @@ -1,59 +1,55 @@ - /* - * dropsbr.h -- definitions for maildrop-style files - * - * $Id$ - */ +** dropsbr.h -- definitions for maildrop-style files +*/ /* - * A file which is formatted like a maildrop may have a corresponding map - * file which is an index to the bounds of each message. The first record - * of such an map is special, it contains: - * - * d_id = number of messages in file - * d_size = version number of map - * d_start = last message read - * d_stop = size of file - * - * Each record after that contains: - * - * d_id = BBoard-ID: of message, or similar info - * d_size = size of message in ARPA Internet octets (\n == 2 octets) - * d_start = starting position of message in file - * d_stop = stopping position of message in file - * - * Note that d_start/d_stop do NOT include the message delimiters, so - * programs using the map can simply fseek to d_start and keep reading - * until the position is at d_stop. - */ +** A file which is formatted like a maildrop may have a corresponding map +** file which is an index to the bounds of each message. The first record +** of such an map is special, it contains: +** +** d_id = number of messages in file +** d_size = version number of map +** d_start = last message read +** d_stop = size of file +** +** Each record after that contains: +** +** d_id = BBoard-ID: of message, or similar info +** d_size = size of message in ARPA Internet octets (\n == 2 octets) +** d_start = starting position of message in file +** d_stop = stopping position of message in file +** +** Note that d_start/d_stop do NOT include the message delimiters, so +** programs using the map can simply fseek to d_start and keep reading +** until the position is at d_stop. +*/ /* - * various formats for maildrop files - */ +** various formats for maildrop files +*/ #define OTHER_FORMAT 0 #define MBOX_FORMAT 1 #define MMDF_FORMAT 2 -#define DRVRSN 3 +#define DRVRSN 3 struct drop { - int d_id; - int d_size; - off_t d_start; - off_t d_stop; + int d_id; + int d_size; + off_t d_start; + off_t d_stop; }; /* - * prototypes - */ -int mbx_open (char *, int, uid_t, gid_t, mode_t); -int mbx_read (FILE *, long, struct drop **, int); +** prototypes +*/ +int mbx_open(char *, int, uid_t, gid_t, mode_t); +int mbx_read(FILE *, long, struct drop **, int); int mbx_write(char *, int, FILE *, int, long, long, off_t, int, int); -int mbx_copy (char *, int, int, int, int, char *, int); -int mbx_size (int, off_t, off_t); -int mbx_close (char *, int); -char *map_name (char *); -int map_read (char *, long, struct drop **, int); -int map_write (char *, int, int, long, off_t, off_t, long, int, int); -int map_chk (char *, int, struct drop *, long, int); - +int mbx_copy(char *, int, int, int, int, char *, int); +int mbx_size(int, off_t, off_t); +int mbx_close(char *, int); +char *map_name(char *); +int map_read(char *, long, struct drop **, int); +int map_write(char *, int, int, long, off_t, off_t, long, int, int); +int map_chk(char *, int, struct drop *, long, int);