summaryrefslogblamecommitdiff
path: root/kernelstr.cc
blob: 9b4aa0c483d62229ebaa6ffc71ff7999fd8eb859 (plain) (tree)

































                                                     
# 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;
}