aboutsummaryrefslogtreecommitdiff
path: root/Plan9/include
diff options
context:
space:
mode:
authorbhgv <bhgv.empire@gmail.com>2018-03-01 16:54:45 +0200
committerbhgv <bhgv.empire@gmail.com>2018-03-01 16:54:45 +0200
commitb786f20bbab5a59046aa78a2c6c2a11536497202 (patch)
tree0851ecdec889eb9b7ba3751cc04d4f0b474e4a9e /Plan9/include
inferno-os tree was separated from the inferno-os-android (separated from the Android driver)
Diffstat (limited to 'Plan9/include')
-rw-r--r--Plan9/include/lib9.h14
-rw-r--r--Plan9/include/lib9x.h20
2 files changed, 34 insertions, 0 deletions
diff --git a/Plan9/include/lib9.h b/Plan9/include/lib9.h
new file mode 100644
index 0000000..4b3dfad
--- /dev/null
+++ b/Plan9/include/lib9.h
@@ -0,0 +1,14 @@
+#include <u.h>
+typedef usize size_t;
+
+#define Rendez xRendez
+#include <libc.h>
+#undef Rendez
+
+
+/*
+ * Extensions for Inferno to basic libc.h
+ */
+
+#define setbinmode()
+#define USE_FPdbleword
diff --git a/Plan9/include/lib9x.h b/Plan9/include/lib9x.h
new file mode 100644
index 0000000..8973cd1
--- /dev/null
+++ b/Plan9/include/lib9x.h
@@ -0,0 +1,20 @@
+#include <u.h>
+typedef usize size_t;
+
+#define Runeerror xRuneerror
+#define Rendez xRendez
+#include <libc.h>
+#undef Runeerror
+#undef Rendez
+
+
+enum
+{
+ Runeerror = 0x80, /* decoding error in UTF */
+};
+/*
+ * Extensions for Inferno to basic libc.h
+ */
+
+#define setbinmode()
+#define USE_FPdbleword