File: dropsbr.h

package info (click to toggle)
mh 6.8.4-28
  • links: PTS
  • area: main
  • in suites: slink
  • size: 7,012 kB
  • ctags: 7,496
  • sloc: ansic: 75,211; sh: 3,112; lisp: 2,205; ml: 1,894; makefile: 724; perl: 482; csh: 150; tcl: 66; sed: 43; awk: 7
file content (40 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* 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_st{art,op} 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.
 */

#define	DRVRSN	3

struct drop {
    int     d_id;
    int	    d_size;
    long    d_start;
    long    d_stop;
};


int	map_chk (), map_read (), map_write ();
char   *map_name ();

int	mbx_mmdf (), mbx_uucp ();
int	mbx_open (), mbx_Xopen (), mbx_copy (), mbx_size (), mbx_close ();
int	mbx_read (), mbx_write ();