summaryrefslogtreecommitdiff
path: root/old/src/luma/app_t/kernelstr.cc
blob: 9b326bdd0a20613d5e59af23d17312bffa080ffa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# include <luma/main.hh>
char const * luma::app_t::kernelstr(luma::kernel_t kernel) noexcept {
	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;
}