libk  boot.rt.c at [34059b4bf6]

File mod/kcore/boot.rt.c artifact a5bf4923b7 part of check-in 34059b4bf6


#include <k/core.h>
extern stat entry(kenv);

unsigned long long
_boot(unsigned int argc, /* argument count */
		char** argv, /* arguments */
		char** envp /* environment */ ) {
	kenv e = { 
		/* TODO: determine terminal class and set term vs ansi correctly! */
		{ {kiostream_term, 0}, {kiostream_term, 1} }, // chan std
		{ {kiostream_closed},  {kiostream_term, 2} }, // chan err
		argc, argv, 
		null // needs parsing
	};
	return entry(e);
}