3 * dropsbr.h -- definitions for maildrop-style files
9 * A file which is formatted like a maildrop may have a corresponding map
10 * file which is an index to the bounds of each message. The first record
11 * of such an map is special, it contains:
13 * d_id = number of messages in file
14 * d_size = version number of map
15 * d_start = last message read
16 * d_stop = size of file
18 * Each record after that contains:
20 * d_id = BBoard-ID: of message, or similar info
21 * d_size = size of message in ARPA Internet octets (\n == 2 octets)
22 * d_start = starting position of message in file
23 * d_stop = stopping position of message in file
25 * Note that d_start/d_stop do NOT include the message delimiters, so
26 * programs using the map can simply fseek to d_start and keep reading
27 * until the position is at d_stop.
31 * various formats for maildrop files
33 #define OTHER_FORMAT 0
49 int mbx_open (char *, int, uid_t, gid_t, mode_t);
50 int mbx_read (FILE *, long, struct drop **, int);
51 int mbx_write(char *, int, FILE *, int, long, long, off_t, int, int);
52 int mbx_copy (char *, int, int, int, int, char *, int);
53 int mbx_size (int, off_t, off_t);
54 int mbx_close (char *, int);
55 char *map_name (char *);
56 int map_read (char *, long, struct drop **, int);
57 int map_write (char *, int, int, long, off_t, off_t, long, int, int);
58 int map_chk (char *, int, struct drop *, long, int);