libk  Diff

Differences From Artifact [6007ea2ce5]:

To Artifact [a5bf4923b7]:


1
2
3

4


5
6
7
8
9
10
11
12
13
14
#include <k/core.h>
extern stat entry(kenv);


stat _boot(unsigned int argc, char** argv) {


	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 // no environment yet
	};
	return entry(e);
}
	



>
|
>
>

|


|
|




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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);
}