summaryrefslogtreecommitdiff
path: root/msgerr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'msgerr.cc')
-rw-r--r--msgerr.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/msgerr.cc b/msgerr.cc
new file mode 100644
index 0000000..b0f601b
--- /dev/null
+++ b/msgerr.cc
@@ -0,0 +1,7 @@
+# include <fcntl.h>
+# include <luma/main.hh>
+# include <unistd.h>
+void luma::msgerr(char const * msg) {
+ int pipe = ::open("/dev/stderr",O_WRONLY);
+ return luma::msg(pipe,msg);
+}