[BACK]Return to sysdef.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Annotation of src/usr.bin/mg/sysdef.h, Revision 1.1

1.1     ! deraadt     1: /*
        !             2:  *             System V system header file
        !             3:  */
        !             4: #include <stdio.h>
        !             5:
        !             6: #define        KBLOCK  8192                    /* Kill grow.                   */
        !             7: #define        GOOD    0                       /* Good exit status.            */
        !             8: #define        MAXPATH 256                     /* Maximum length of path for chdir */
        !             9:
        !            10: typedef long   RSIZE;                  /* Type for file/region sizes   */
        !            11: typedef short  KCHAR;                  /* Type for internal keystrokes */
        !            12:
        !            13: /*
        !            14:  * Macros used by the buffer name making code.
        !            15:  * Start at the end of the file name, scan to the left
        !            16:  * until BDC1 (or BDC2, if defined) is reached. The buffer
        !            17:  * name starts just to the right of that location, and
        !            18:  * stops at end of string (or at the next BDC3 character,
        !            19:  * if defined). BDC2 and BDC3 are mainly for VMS.
        !            20:  */
        !            21: #define        BDC1    '/'                     /* Buffer names.                */
        !            22:
        !            23: #define MALLOCROUND(m) (m+=7,m&=~7)    /* round up to 8 byte boundry   */
        !            24:
        !            25: #define        fncmp           strcmp          /* file name comparison         */
        !            26: #define bcopy(s,d,n)   memcpy(d,s,n)   /* memory-to-memory copy        */
        !            27: #define bzero(s,n)     memset(s,0,n)   /* clear memory */
        !            28: char *getenv();
        !            29: #define        gettermtype()   getenv("TERM")  /* determine terminal type      */
        !            30: char *getcwd();
        !            31: #define getwd(cwd)     getcwd(cwd,NFILEN) /* get current working dir   */
        !            32:
        !            33: struct fileinfo {
        !            34:        unsigned short fi_mode;
        !            35:        unsigned short fi_uid;
        !            36:        unsigned short fi_gid;
        !            37: };