]> pd.if.org Git - pd_readline/blob - mg/sysdef.h
Added mg from an OpenBSD mirror site. Many thanks to the OpenBSD team and the mg...
[pd_readline] / mg / sysdef.h
1 /*      $OpenBSD: sysdef.h,v 1.16 2008/09/15 16:11:35 kjell Exp $       */
2
3 /* This file is in the public domain. */
4
5 /*
6  *              POSIX system header file
7  */
8 #include <sys/param.h>
9 #include <sys/queue.h>
10 #include <stdio.h>
11 #include <unistd.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include <errno.h>
15 #include <signal.h>
16
17 #define KBLOCK          8192    /* Kill grow.                    */
18 #define GOOD            0       /* Good exit status.             */
19
20 typedef int     RSIZE;          /* Type for file/region sizes    */
21 typedef short   KCHAR;          /* Type for internal keystrokes  */
22
23 #define MALLOCROUND(m)  (m+=7,m&=~7)    /* round up to 8 byte boundary   */
24
25 struct fileinfo {
26         uid_t           fi_uid;
27         gid_t           fi_gid;
28         mode_t          fi_mode;
29         struct timespec fi_mtime;       /* Last modified time */
30 };