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

1.13    ! kjell       1: /*     $OpenBSD: sysdef.h,v 1.12 2005/04/03 02:09:28 db Exp $  */
        !             2:
        !             3: /* This file is in the public domain. */
1.7       niklas      4:
1.1       deraadt     5: /*
1.3       millert     6:  *             POSIX system header file
1.1       deraadt     7:  */
1.10      vincent     8: #include <sys/param.h>
1.1       deraadt     9: #include <stdio.h>
1.2       deraadt    10: #include <unistd.h>
                     11: #include <stdlib.h>
                     12: #include <string.h>
1.10      vincent    13: #include <errno.h>
1.1       deraadt    14:
1.12      db         15: #define        KBLOCK          8192    /* Kill grow.                    */
                     16: #define        GOOD            0       /* Good exit status.             */
                     17: #define        SYMBLINK        1       /* Handle symbolic links.        */
1.1       deraadt    18:
1.9       mickey     19: typedef int    RSIZE;          /* Type for file/region sizes    */
                     20: typedef short  KCHAR;          /* Type for internal keystrokes  */
1.1       deraadt    21:
1.12      db         22: #define MALLOCROUND(m) (m+=7,m&=~7)    /* round up to 8 byte boundary   */
1.1       deraadt    23:
                     24: struct fileinfo {
1.11      deraadt    25:        uid_t           fi_uid;
                     26:        gid_t           fi_gid;
1.9       mickey     27:        mode_t          fi_mode;
1.1       deraadt    28: };