libk  Diff

Differences From Artifact [e3e3209cc1]:

To Artifact [a8282db34a]:


     1      1   #include <k/core.h>
     2      2   #include <k/type.h>
     3      3   extern stat entry(kenv);
     4      4   
            5  +const char* _k_internal_binary_name;
            6  +
     5      7   unsigned long long
     6      8   _boot(unsigned int argc, /* argument count */
     7      9   		const char** argv, /* arguments */
     8     10   		char** envp /* environment */ ) {
           11  +
           12  +	_k_internal_binary_name = argv[0];
     9     13   
    10     14   	envp ++; /* envp seems to point at a leading null;
    11     15   				this is probably a sign of breakage but
    12     16   				i don't know what else to do about it for
    13     17   				the moment. */
    14     18   
    15     19   	char** ep;