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

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