libk  Diff

Differences From Artifact [7899b05286]:

To Artifact [e3e3209cc1]:


     1      1   #include <k/core.h>
     2      2   #include <k/type.h>
     3      3   extern stat entry(kenv);
     4      4   
     5      5   unsigned long long
     6      6   _boot(unsigned int argc, /* argument count */
     7         -		char** argv, /* arguments */
            7  +		const char** argv, /* arguments */
     8      8   		char** envp /* environment */ ) {
     9      9   
    10     10   	envp ++; /* envp seems to point at a leading null;
    11     11   				this is probably a sign of breakage but
    12     12   				i don't know what else to do about it for
    13     13   				the moment. */
    14     14   
................................................................................
    35     35   
    36     36   	kenv e = { 
    37     37   		/* TODO: determine terminal class and set term vs ansi correctly! */
    38     38   		{ {kiostream_term, 0}, {kiostream_term, 1} }, // chan std
    39     39   		{ {kiostream_closed},  {kiostream_term, 2} }, // chan err
    40     40   		argc, argv, ep - envp, variables
    41     41   	};
           42  +
    42     43   	return entry(e);
    43     44   }