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