Annotation of 43BSD/contrib/spms/include/pld.h, revision 1.1.1.1

1.1       root        1: /* $Header$ */
                      2: 
                      3: /*
                      4:  * Project Link Directory Definitions
                      5:  *
                      6:  * Author: Peter J. Nicklin
                      7:  */
                      8: 
                      9: /*
                     10:  * Nomenclature
                     11:  */
                     12: #define PLDNAME                "..."           /* project link directory */
                     13: 
                     14: /*
                     15:  * Buffer sizes
                     16:  */
                     17: #define PD_BUFSIZE     1012            /* project directory entry buf size */
                     18: 
                     19: /*
                     20:  * Project link directory (PLD) flag definitions
                     21:  */
                     22: #define PDIRDESC       "dd"            /* directory description */
                     23: #define PDIRPATH       "dp"            /* directory path */
                     24: #define PDIRTYPE       "dt"            /* directory type */
                     25: #define PROOTDIR       "^^"            /* project root directory flag */
                     26: 
                     27: /*
                     28:  * Project link directory entry struct
                     29:  */
                     30: typedef struct _pdir
                     31:        {
                     32:        unsigned long pd_mode;          /* type of project directory */
                     33:        unsigned long pd_reclen;        /* actual length of this record */
                     34:        unsigned short pd_alen;         /* alias length */
                     35:        unsigned short pd_plen;         /* pathname length */
                     36:        unsigned short pd_tlen;         /* type labels length */
                     37:        unsigned short pd_dlen;         /* directory description length */
                     38:        char pd_buf[PD_BUFSIZE];        /* project directory entry buffer */
                     39:        } PDIR;
                     40: 
                     41: /*
                     42:  * Handy macros
                     43:  */
                     44: #define PD_ALIAS(p)    ((p).pd_buf)
                     45: #define PD_PATH(p)     ((p).pd_buf+(p).pd_alen+1)
                     46: #define PD_TYPE(p)     ((p).pd_buf+(p).pd_alen+(p).pd_plen+2)
                     47: #define PD_DESC(p)     ((p).pd_buf+(p).pd_alen+(p).pd_plen+(p).pd_tlen+3)

unix.superglobalmegacorp.com

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