Annotation of 43BSD/contrib/mh/h/dropsbr.h, revision 1.1

1.1     ! root        1: /* dropsbr.h - definitions for maildrop-style files */
        !             2: 
        !             3: 
        !             4: /* A file which is formatted like a maildrop may have a corresponding map
        !             5:    file which is an index to the bounds of each message.  The first record
        !             6:    of such an map is special, it contains:
        !             7: 
        !             8:        d_id    = number of messages in file
        !             9:        d_size  = version number of map
        !            10:        d_start = magic cookie
        !            11:        d_stop  = size of file
        !            12: 
        !            13:     Each record after that contains:
        !            14:        d_id    = BBoard-ID: of message, or similar info
        !            15:        d_size  = size of message in ARPA Internet octets (\n == 2 octets)
        !            16:        d_start = starting position of message in file
        !            17:        d_stop  = stopping position of message in file
        !            18: 
        !            19:    Note that d_st{art,op} do NOT include the message delimiters, so
        !            20:    programs using the map can simply fseek to d_start and keep reading
        !            21:    until the position is at d_stop.
        !            22:  */
        !            23: 
        !            24: #define        DRVRSN  2
        !            25: #define        DRMAGIC (0xff00 | DRVRSN)
        !            26: 
        !            27: struct drop {
        !            28:     int     d_id;
        !            29:     int            d_size;
        !            30:     long    d_start;
        !            31:     long    d_stop;
        !            32: };
        !            33: 
        !            34: 
        !            35: int    map_chk (), map_read (), map_write ();
        !            36: char   *map_name ();
        !            37: 
        !            38: int    mbx_mmdf (), mbx_uucp ();
        !            39: int    mbx_open (), mbx_Xopen (), mbx_copy (), mbx_size (), mbx_close ();
        !            40: int    mbx_read (), mbx_write ();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.