[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.4

1.1       deraadt     1: /*
1.3       millert     2:  *             POSIX system header file
1.1       deraadt     3:  */
                      4: #include <stdio.h>
1.2       deraadt     5: #include <unistd.h>
                      6: #include <stdlib.h>
                      7: #include <string.h>
1.1       deraadt     8:
                      9: #define        KBLOCK  8192                    /* Kill grow.                   */
                     10: #define        GOOD    0                       /* Good exit status.            */
1.4     ! millert    11: #define SYMBLINK       1               /* Handle symbolic links        */
        !            12: #define        MAXPATH PATH_MAX                /* Maximum length of path for chdir */
1.1       deraadt    13:
1.2       deraadt    14: typedef int    RSIZE;                  /* Type for file/region sizes   */
1.1       deraadt    15: typedef short  KCHAR;                  /* Type for internal keystrokes */
                     16:
                     17: /*
                     18:  * Macros used by the buffer name making code.
                     19:  * Start at the end of the file name, scan to the left
                     20:  * until BDC1 (or BDC2, if defined) is reached. The buffer
                     21:  * name starts just to the right of that location, and
                     22:  * stops at end of string (or at the next BDC3 character,
                     23:  * if defined). BDC2 and BDC3 are mainly for VMS.
                     24:  */
                     25: #define        BDC1    '/'                     /* Buffer names.                */
                     26:
                     27: #define MALLOCROUND(m) (m+=7,m&=~7)    /* round up to 8 byte boundry   */
                     28:
                     29: #define        fncmp           strcmp          /* file name comparison         */
1.4     ! millert    30: #define        unlinkdir(fn)   rmdir(fn)       /* unlink directory             */
1.1       deraadt    31: #define        gettermtype()   getenv("TERM")  /* determine terminal type      */
                     32:
                     33: struct fileinfo {
1.4     ! millert    34:        mode_t fi_mode;
        !            35:        uid_t fi_uid;
        !            36:        gid_t short fi_gid;
1.1       deraadt    37: };