]> pd.if.org Git - pd_readline/blobdiff - mg/sysdef.h
Added mg from an OpenBSD mirror site. Many thanks to the OpenBSD team and the mg...
[pd_readline] / mg / sysdef.h
diff --git a/mg/sysdef.h b/mg/sysdef.h
new file mode 100644 (file)
index 0000000..6b75614
--- /dev/null
@@ -0,0 +1,30 @@
+/*     $OpenBSD: sysdef.h,v 1.16 2008/09/15 16:11:35 kjell Exp $       */
+
+/* This file is in the public domain. */
+
+/*
+ *             POSIX system header file
+ */
+#include <sys/param.h>
+#include <sys/queue.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+#include <signal.h>
+
+#define        KBLOCK          8192    /* Kill grow.                    */
+#define        GOOD            0       /* Good exit status.             */
+
+typedef int    RSIZE;          /* Type for file/region sizes    */
+typedef short  KCHAR;          /* Type for internal keystrokes  */
+
+#define MALLOCROUND(m) (m+=7,m&=~7)    /* round up to 8 byte boundary   */
+
+struct fileinfo {
+       uid_t           fi_uid;
+       gid_t           fi_gid;
+       mode_t          fi_mode;
+       struct timespec fi_mtime;       /* Last modified time */
+};