Annotation of src/usr.bin/mg/sysdef.h, Revision 1.10
1.10 ! vincent 1: /* $OpenBSD: sysdef.h,v 1.9 2001/05/24 03:05:26 mickey Exp $ */
1.7 niklas 2:
1.1 deraadt 3: /*
1.3 millert 4: * POSIX system header file
1.1 deraadt 5: */
1.10 ! vincent 6: #include <sys/param.h>
1.1 deraadt 7: #include <stdio.h>
1.2 deraadt 8: #include <unistd.h>
9: #include <stdlib.h>
10: #include <string.h>
1.10 ! vincent 11: #include <errno.h>
1.1 deraadt 12:
1.6 millert 13: #define KBLOCK 8192 /* Kill grow. */
14: #define GOOD 0 /* Good exit status. */
15: #define SYMBLINK 1 /* Handle symbolic links */
16: #define MAXPATH PATH_MAX /* Maximum length of path for chdir */
1.1 deraadt 17:
1.9 mickey 18: typedef int RSIZE; /* Type for file/region sizes */
19: typedef short KCHAR; /* Type for internal keystrokes */
1.1 deraadt 20:
1.6 millert 21: #define MALLOCROUND(m) (m+=7,m&=~7) /* round up to 8 byte boundry */
1.1 deraadt 22:
1.6 millert 23: #define gettermtype() getenv("TERM") /* determine terminal type */
1.1 deraadt 24:
25: struct fileinfo {
1.9 mickey 26: mode_t fi_mode;
27: uid_t fi_uid;
28: gid_t short fi_gid;
1.1 deraadt 29: };