summaryrefslogtreecommitdiff
path: root/kernelstr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kernelstr.cc')
-rw-r--r--kernelstr.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/kernelstr.cc b/kernelstr.cc
new file mode 100644
index 0000000..9b4aa0c
--- /dev/null
+++ b/kernelstr.cc
@@ -0,0 +1,34 @@
+# include <luma/main.hh>
+char const * luma::kernelstr(luma::kernel_t kernel) {
+ char const * str = "";
+ switch(kernel) {
+ default:
+ str = "Unknown";
+ break;
+ case luma::kernel_t::darwinos:
+ str = "Dawin OS";
+ break;
+ case luma::kernel_t::dragonflybsd:
+ str = "DragonFly BSD";
+ break;
+ case luma::kernel_t::freebsd:
+ str = "FreeBSD";
+ break;
+ case luma::kernel_t::hurd:
+ str = "Hurd";
+ break;
+ case luma::kernel_t::linux:
+ str = "Linux";
+ break;
+ case luma::kernel_t::minix:
+ str = "MINIX";
+ break;
+ case luma::kernel_t::netbsd:
+ str = "NetBSD";
+ break;
+ case luma::kernel_t::openbsd:
+ str = "OpenBSD";
+ break;
+ }
+ return str;
+}